From: <php...@li...> - 2007-01-03 22:34:32
|
Am I doing something wrong when calling the java_context() function? I first tried to use java_context()->*getHttpServletResponse<http://php-java-bridge.sourceforge.net/pjb/server/documentation/API/php/java/servlet/Context.html#getHttpServletResponse%28%29> *() but that returned null. I then tried calling java_context()->getAttribute('javax.script.filename'), but that throws an Exception, complaining about Context.java:80. (stack trace pasted below) I've got sample code I can send to the mailing list of other want to try and duplicate it. I'm running Apache 2.2, PHP 5.2.0, Tomcat 5.5, and PHP/Java Bridge 3.2.1 java stack trace: [o(ByteArrayOutputStream):"java.lang.Exception: Invoke failed: [o(RemoteContext)]->getAttribute((String)o(String)). Cause: java.lang.NullPointerException Responsible VM: 1.6.0@http://java.sun.com/ at php.java.servlet.Context.getAttribute(Context.java:80) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at php.java.bridge.JavaBridge.Invoke(JavaBridge.java:1114) at php.java.bridge.Request.handleRequest(Request.java:342) at php.java.bridge.Request.handleRequests(Request.java:388) at php.java.bridge.http.ContextRunner.run(ContextRunner.java:188) at php.java.bridge.BaseThreadPool$Delegate.run(BaseThreadPool.java:66) Caused by: java.lang.NullPointerException ... 10 more "] |