dcsimg
Problem with java.lang.UNIXProcess.forANDExec()
1 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   Brendan_Caffrey
Posted On:   Wednesday, June 13, 2001 09:10 AM

I am implemeting a GUI client running on HPUX-11 that has DAT saving functionality. Intermittently, I get a problem when trying to perform a DAT save. The first operation, performed before the actual save, is to rewind the DAT tape, this is done using "Runtime.getRuntime().exec("mt rewind");". Now and then (maybe 1 in 15 times) this throws the following exception : IOException: > java.io.IOException: ?????X?y?[?X???????????B > at java.lang.UNIXProcess.forkAndExec(Native Method). Yes, I really do get all those ???X[ characters. Runtime has eventually called this UNIXProcess method that seems to be the problem - ether in forking the process or executing the command. Has anyone ever seen anything simi   More>>

I am implemeting a GUI client running on HPUX-11 that has DAT saving functionality. Intermittently, I get a problem when trying to perform a DAT save. The first operation, performed before the actual save, is to rewind the DAT tape, this is done using "Runtime.getRuntime().exec("mt rewind");".

Now and then (maybe 1 in 15 times) this throws the following exception : IOException:
> java.io.IOException: ?????X?y?[?X???????????B
> at java.lang.UNIXProcess.forkAndExec(Native Method). Yes, I really do get all those ???X[ characters. Runtime has eventually called this UNIXProcess method that seems to be the problem - ether in forking the process or executing the command. Has anyone ever seen anything similar to this. The only exception being thrown is an IOException, so I can't narrow down my catch clause. Can anybody help with this.

Cheers.

   <<Less

Re: Problem with java.lang.UNIXProcess.forANDExec()

Posted By:   Nathan_Meyers  
Posted On:   Thursday, June 14, 2001 06:54 AM

I'd recommend trying alternate VMs - three different VMs are available from Sun, Blackdown, and IBM - to see if the problem is a bug in a specific implementation.
About | Sitemap | Contact