From: Bharath T. <bh...@mv...> - 2005-09-13 20:13:40
|
When I try to browse to the test.php in the bridge deployed on tomcat I get the following error on and off on windows JavaBridge DEBUG: @f6e9d first request (session is new). JavaBridge DEBUG: @f6e9d Client changed its request log level to: 4 JavaBridge DEBUG: @f6e9d --> <C v=3D"java.lang.System" p=3D"I" = i=3D"10203232" > JavaBridge DEBUG: @f6e9d --> </C> JavaBridge DEBUG: @f6e9d <-- <O v=3D"1" i=3D"10203232"/> JavaBridge DEBUG: @f6e9d re-directing to port# 9568 JavaBridge DEBUG: @f6e9d waiting for context: 1 JavaBridge DEBUG: @f6e9d context finished: 1 java.lang.NullPointerException at php.java.servlet.ContextRunner.init(ContextRunner.java:48) at php.java.servlet.SocketRunner.accept(SocketRunner.java:73) at php.java.servlet.SocketRunner.run(SocketRunner.java:95) at java.lang.Thread.run(Unknown Source) JavaBridge INFO : Socket runner stopped, the local channel is not available anymore. Any idea? Regards Bharath |
From: Bharath T. <bh...@mv...> - 2005-09-13 20:15:23
|
More info JavaBridge DEBUG: @584294 first request (session is new). JavaBridge DEBUG: @584294 Client changed its request log level to: 4 JavaBridge DEBUG: @584294 --> <C v=3D"java.lang.System" p=3D"I" i=3D"10203232" > JavaBridge DEBUG: @584294 --> </C> JavaBridge DEBUG: @584294 <-- <O v=3D"1" i=3D"10203232"/> JavaBridge DEBUG: @7b3b24 first request (session is new). JavaBridge DEBUG: @7b3b24 Client changed its request log level to: 4 JavaBridge DEBUG: @7b3b24 --> <I v=3D"1" m=3D"getProperties" p=3D"I" i=3D"10238128" > java.lang.NullPointerException at php.java.bridge.GlobalRef.get(GlobalRef.java:32) at php.java.bridge.Request.begin(Request.java:104) at php.java.bridge.Parser.CALL_BEGIN(Parser.java:98) at php.java.bridge.Parser.parse(Parser.java:159) at php.java.bridge.Request.handleRequests(Request.java:197) at php.java.servlet.PhpJavaServlet.handleHttpConnection(PhpJavaServlet.java :284) at php.java.servlet.PhpJavaServlet.doPut(PhpJavaServlet.java:356) at javax.servlet.http.HttpServlet.service(HttpServlet.java:712) at javax.servlet.http.HttpServlet.service(HttpServlet.java:802) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Applica tionFilterChain.java:237) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilt erChain.java:157) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValv e.java:214) at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveCo ntext.java:104) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:5 20) at org.apache.catalina.core.StandardContextValve.invokeInternal(StandardCon textValve.java:198) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValv e.java:152) at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveCo ntext.java:104) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:5 20) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java :137) at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveCo ntext.java:104) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java :118) at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveCo ntext.java:102) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:5 20) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve. java:109) at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveCo ntext.java:104) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:5 20) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:929) at org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:160) at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:79 9) at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processC onnection(Http11Protocol.java:705) at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:57 7) at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool .java:683) at java.lang.Thread.run(Unknown Source) -----Original Message----- From: Bharath Thirunavukkarasu=20 Sent: Tuesday, September 13, 2005 4:13 PM To: 'php...@li...' Subject: RE: php-java-bridge-users digest, Vol 1 #90 - 1 msg When I try to browse to the test.php in the bridge deployed on tomcat I get the following error on and off on windows JavaBridge DEBUG: @f6e9d first request (session is new). JavaBridge DEBUG: @f6e9d Client changed its request log level to: 4 JavaBridge DEBUG: @f6e9d --> <C v=3D"java.lang.System" p=3D"I" = i=3D"10203232" > JavaBridge DEBUG: @f6e9d --> </C> JavaBridge DEBUG: @f6e9d <-- <O v=3D"1" i=3D"10203232"/> JavaBridge DEBUG: @f6e9d re-directing to port# 9568 JavaBridge DEBUG: @f6e9d waiting for context: 1 JavaBridge DEBUG: @f6e9d context finished: 1 java.lang.NullPointerException at php.java.servlet.ContextRunner.init(ContextRunner.java:48) at php.java.servlet.SocketRunner.accept(SocketRunner.java:73) at php.java.servlet.SocketRunner.run(SocketRunner.java:95) at java.lang.Thread.run(Unknown Source) JavaBridge INFO : Socket runner stopped, the local channel is not available anymore. Any idea? Regards Bharath |
From: Jost B. <jos...@ya...> - 2005-09-14 17:48:36
|
Hi Bharath, first of all thank you very much for this bug report. Assuming that phpinfo shows that X_JAVABRIDGE_OVERRIDE_HOSTS 127.0.0.1:9980 X_JAVABRIDGE_CONTEXT 1 the null pointer means that the php_java.dll was not able to send back the X_JAVABRIDGE_CONTEXT and that the servlet has received the invalid context 0. I could not reproduce this problem, but I have created a ticket (#1291175) for this NP exception. Please see https://sourceforge.net/tracker/index.php?func=detail&aid=1291175&group_id=117793&atid=679233 Please attach the values for X_JAVABRIDGE_OVERRIDE_HOSTS and X_JAVABRIDGE_CONTEXT there and the method (POST or GET) there. If possible please also attach the php_java.dll and the php-cgi.exe you use. Please also check why the bridge uses port# 9568 and not 9567. Is it possible that you use an old version of the php_java.dll with a recent version of the JavaBridge.war backend? It might be that your php_java.dll still sends a 32 bit value for the context# and the backend always reads the 2 high bytes, which are 0. Regards, Jost Boekemeier ___________________________________________________________ Gesendet von Yahoo! Mail - Jetzt mit 1GB Speicher kostenlos - Hier anmelden: http://mail.yahoo.de |