• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Call to runtime.exec fails on xserve 10.4.1
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Call to runtime.exec fails on xserve 10.4.1


  • Subject: Call to runtime.exec fails on xserve 10.4.1
  • From: Wolfram Stebel <email@hidden>
  • Date: Fri, 08 Jul 2005 09:12:51 +0200

Hi all,

i use ThumbsUp to create thumbnails of uploaded images.
For this i create a commandline and execute it from class "Runtime".
On my local G5 this works great and it has been running on my server until
upgrading to 10.4.1.

The same command executed on the commandline works correct.

This is the code:

// calling external program for thumbnail creation
String appLocation = session.application ().getThumbnailerLocation ();
if ( NSLog.debugLoggingAllowedForLevel ( NSLog.DebugLevelDetailed  ) )
{
     NSLog.err.appendln ( "Thumbing command : " + appLocation +
outputFilePath );
}
Process p = Runtime.getRuntime ().exec ( appLocation + outputFilePath );
int terminated = p.waitFor ();
int result = p.exitValue ();
if ( NSLog.debugLoggingAllowedForLevel ( NSLog.DebugLevelDetailed  ) )
{
    NSLog.err.appendln ( "Thumbing result: terminated (0=OK) : " +
terminated + ", result (0=OK) : " + result );
    BufferedReader in = new BufferedReader( new InputStreamReader (
p.getErrorStream () ) );
    NSLog.err.appendln ( "Thumbing error : " + in.readLine () );
}

The output of the above:

Thumbing result: terminated (0=OK) : 6, result (0=OK) : 6
[2005-07-07 22:32:44 CEST] <WorkerThread10> Thumbing error :
INIT_Processeses(), could not establish the default connection to the
WindowServer.

----

It is possible that i have a permission problem in the file system.
What are the required access rights for the WO-Process?

What is " INIT_Processeses" doing? (except that the developer needs an
english class :-), like me :-)))  )
Does anybody know the interpretation of the numerical result code of
"Process"?

How can i fix it?

Thanks

Wolfram


 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Prev by Date: Correct character sets settings with mysql 4.1.10?
  • Next by Date: XML ObjectIDRefs
  • Previous by thread: Followup: Correct character sets settings with mysql 4.1.10?
  • Next by thread: XML ObjectIDRefs
  • Index(es):
    • Date
    • Thread