|
From: <php...@li...> - 2008-02-28 10:41:58
|
Hello
I have some problems running php/java bridge in INET-Mode.
First some information:
- system: Gentoo + Apache
- include Java.inc: require_once ( "/www/xxxx/xxxx/java/Java.inc" );
- define("JAVA_HOSTS", "127.0.0.1:9600")
Everthing runs great when i'm using the INET_LOCAL mode. Here's the config:
Feb 25 16:55:57 VMBridge INFO : VM :
1.6.0_03@http://java.sun.com/
Feb 25 16:55:57 VMBridge INFO : VMBridge version : 5.1.0
Feb 25 16:55:57 VMBridge INFO : logFile : /tmp/javabridge.log
Feb 25 16:55:57 VMBridge INFO : default logLevel : 3
Feb 25 16:55:57 VMBridge INFO : socket : SERVLET_LOCAL:9676
Feb 25 16:55:57 VMBridge INFO : java.ext.dirs :
/opt/sun-jdk-1.6.0.03/jre/lib/ext:/usr/java/packages/lib/ext
Feb 25 16:55:57 VMBridge INFO : php.java.bridge.base: /home/www
Feb 25 16:55:57 VMBridge INFO : thread pool size : 20
Feb 25 16:55:57 VMBridge INFO : JavaBridgeRunner started on port
INET_LOCAL:9676
Now i have the bridge to be avaible for the whole network and so i
have to switch to INET-mode:
Feb 27 16:05:35 VMBridge INFO : VM :
1.6.0_03@http://java.sun.com/
Feb 27 16:05:35 VMBridge INFO : VMBridge version : 5.1.0
Feb 27 16:05:35 VMBridge INFO : logFile : /tmp/javabridge2.log
Feb 27 16:05:35 VMBridge INFO : default logLevel : 3
Feb 27 16:05:35 VMBridge INFO : socket : INET:9676
Feb 27 16:05:35 VMBridge INFO : java.ext.dirs :
/opt/sun-jdk-1.6.0.03/jre/lib/ext:/usr/java/packages/lib/ext
Feb 27 16:05:35 VMBridge INFO : php.java.bridge.base: /home/www
Feb 27 16:05:35 VMBridge INFO : thread pool size : 20
Now this exception is thrown:
Feb 28 09:31:30 VMBridge ERROR: An exception occured:
java.lang.IllegalArgumentException: Standard header not supported
anymore. Use the extended header.
java.lang.IllegalArgumentException: Standard header not supported
anymore. Use the extended header.
at php.java.bridge.Parser.initOptions(Parser.java:68)
at php.java.bridge.Request.init(Request.java:181)
at php.java.bridge.JavaBridge.run(JavaBridge.java:206)
at php.java.bridge.ThreadPool$Delegate.run(ThreadPool.java:60)
I hope somebody can help me
Best regards
Christian
|