|
From: <php...@li...> - 2010-09-04 12:26:27
|
Fixed in CVS head. You can now allocate a session later on, but only
if running within a JEE environment. If you use Apache, you will get
an error message "response commited", as usual.
<?php require_once("java/Java.inc");
echo java_session(null, false);
echo java_session(null, true);
?>
Running from a JEE server:
=>php...@16....HttpSessionFacade@1635aad
Running from Apache, connected to JEE back end:
=> <b>Fatal error</b>: Uncaught
[[o:Exception]:"java.lang.Exception: Invoke f
ailed: [[o:JavaBridge]]->getSession((o:String)null, (o:short)[o:Short], (o:in
t)[o:Integer]). Cause: java.lang.IllegalStateException: Cannot create a session
after the response has been committed VM: 1.6.0_20@http://java.sun.com/" at
:
Regards,
Jost Bökemeier
|