I have similar problem, did you managed to fix it?
In my case i'm using FOP to printout a PDF.
But i get this error:
[13-Dec-2009 13:33:54] php: protocol error: , Invalid document end at col 1.
Check the back end log for OutOfMemoryErrors.
[13-Dec-2009 13:33:54] PHP Fatal error: Call to a member function read() on
a non-object in ....\Java.inc on line 207
And this happens only the first call after I haven't used it for some time.
I'm sure i'm using the latest version - 5.5.4.1 and that the Java.inc is the
some version (it's from the jar)(definitely wont be allow to include through
URL).
Am running the PHP/Java Bridge Server, not the war file in a Application
Server. I tried running it in Tomcat and it works, but i too am not allowed
to use it.
I find it hard to debug the Java.inc, I think that the first call it does
not send any request to the PHP/Java Bridge Server, nor try to start it and
the second one right after this it works fine.
Best Regards,
Dimitar Stefanov
PS: It's my first time posting on mailing list so i may have messed up
something :)
----------------------------------------------------------------------------------
> What do you mean by "fetch directly from the backend"?
Use the require command I have given. Please fetch Java.inc directly
from the back end, use
<?php require_once("http://localhost:8080/JavaBridge/java/Java.inc"<http://localhost:8080/JavaBridge/java/Java.inc>
);
...
?>
Or make sure that the version of your Java.inc matches the version of
your back end.
> What's the backend here?
The PHP/Java Bridge application.
> can configure the path to the
> PHPjavaBridge installation in a variable
Which seems to be the problem here. You have probably confused the
versions. Or the Java daemon you have written crashes immediately.
> I'm not allowed to use a tomcat although I'd like to have it.
Interesting. I thought you were running the back end as a daemon.
Regards,
Jost Boekemeier
|