From: <php...@li...> - 2015-04-30 19:45:47
|
So the issue was not that something had changed with chef. We have 2 workflows, in one, this request is handled by a php cli script. That works. The other workflow comes from a ReST request, that fails. I tried to add this: session_start(); $_SESSION["C"]=$this; To the constructor of the class that calls and executes Java.inc file but I get the same result. On Wed, Apr 29, 2015 at 6:07 PM, Michael Lindsay <mli...@me...> wrote: > Hey All, > > I have a vagrant instance provisioned by chef that has just started giving > me some trouble recently. So I've debugged into the Java.inc file that is > placed in my workspace, I'm in the middle of parsing the request then I get > this: > > ==> /var/log/processor/error.log <== > 2015-04-28 17:47:07 Error: Fatal Error (256): protocol error: ,Invalid document end at col 28. Check the back end log for OutOfMemoryErrors. in [/tmp/chaucerprocessor/temp1430243217.8342_0/local/26/Java.inc, line 869] > 2015-04-28 17:47:07 Error: [FatalErrorException] protocol error: ,Invalid document end at col 28. Check the back end log for OutOfMemoryErrors. > Request URL: /Books/add/ > Stack Trace: > #0 /vagrant/ChaucerProcessor/lib/Cake/Error/ErrorHandler.php(205): ErrorHandler::handleFatalError(256, 'protocol error:...', '/tmp/chaucerpro...', 869) > #1 /vagrant/ChaucerProcessor/processor/Lib/Error/ProcessorErrorHandler.php(18): ErrorHandler::handleError(256, 'protocol error:...', '/tmp/chaucerpro...', 869, Array) > #2 [internal function]: ProcessorErrorHandler::handleError(256, 'protocol error:...', '/tmp/chaucerpro...', 869, Array) > #3 /tmp/chaucerprocessor/temp1430243217.8342_0/local/26/Java.inc(869): trigger_error('protocol error:...', 256) > #4 /tmp/chaucerprocessor/temp1430243217.8342_0/local/26/Java.inc(873): java_SocketHandler->dieWithBrokenConnection('protocol error:...') > #5 /tmp/chaucerprocessor/temp1430243217.8342_0/local/26/Java.inc(701): java_SocketHandler->shutdownBrokenConnection('protocol error:...') > #6 /tmp/chaucerprocessor/temp1430243217.8342_0/local/26/Java.inc(722): java_NativeParser->parse() > #7 /tmp/chaucerprocessor/temp1430243217.8342_0/local/26/Java.inc(347): java_Parser->parse() > > > At the same time, catalina.out says: > java.lang.NullPointerException: cannot manipulate the object #60 which has > already been destroyed by PHP > at php.java.bridge.GlobalRef.get(GlobalRef.java:88) > at php.java.bridge.Request.getGlobalRef(Request.java:50) > at php.java.bridge.Request.begin(Request.java:359) > at php.java.bridge.Parser.CALL_BEGIN(Parser.java:148) > at php.java.bridge.Parser.parse(Parser.java:208) > at php.java.bridge.Request.handleRequest(Request.java:383) > at php.java.bridge.Request.handleRequests(Request.java:500) > at php.java.bridge.http.ContextRunner.run(ContextRunner.java:145) > at php.java.bridge.ThreadPool$Delegate.run(ThreadPool.java:60) > > Now I'm using a chef cookbook and have just realized the I didn't pin > either the java or tomcat community cookbooks, so it seems most likely they > have changed and I've pulled down something shiny and new in one of those > cookbooks. Any bells ringing for you guys? > > TIA, > - Michael > > > |