Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

CFMessagePortCreateLocal failed Error



I have a java application that I usually run via a shell script on OS X. If
I run the shell script from the command line, the application works fine.
However, if I call the shell script from another java application via
Runtime.exec (String[]), the process doesn't complete successfully, and I
get the following error message on stderr:

CFMessagePortCreateLocal failed (name = Processes-0.3014657 error = 0)
/Applications/tomcat-4.0-b5/NeuralNet/NN.sh: line 1: 497 Abort
trap java -cp
"/Applications/tomcat-4.0-b5/webapps/ROOT/javaprograms/NeuralNet.jar"
stahlLab.NeuralNet $*



No stack trace is returned.

The shell script returns an error code of -112 (retrieved with
process.exitValue()).


I recently upgraded a few days before to 10.2, so this may be the cause (I
can't be sure as I didn't test this application until a few days later). It
worked fine a week ago under 10.1.5.

Some other stuff:

The java application that calls the shell script is faceless.
The java application that the shell script calls does have a GUI (the class
containing main extends JApplet).

The shell script is very simple:

#! /bin/sh

java -cp
"/Applications/tomcat-4.0-b5/webapps/ROOT/javaprograms/NeuralNet.jar"
stahlLab.NeuralNet $* ;


The java -cp ... $* ; is all on one line



If anybody knows what is wrong or how to fix it, please let me know. Again,
the script works fine when executed directly from the command line, this
error only occurs when calling Runtime.exec(String[]).

Thanks,
Erik Tribou
_______________________________________________
java-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/java-dev
Be sure to read the FAQ http://developer.apple.com/java/faq/ before posting
Do not post admin requests to the list. They will be ignored.



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.