|
From: Bryan L. <bl...@th...> - 2005-08-03 17:06:11
|
I want to be able to store an object in $_SESSION so that I can retrive
the object with subsequent php pages. I think the issue I'm having is
due to an out of scope condition when the php page exits. I see the
Cache reference in the docs and tests.php4/Cache.java in the
distribution but I'm little fuzzy on what to actually do.
Here is a code snippet followed by the exception that is raised when my
php page exits:
...
// OrderServiceUtil() handles the context lookup, remote object
narrowing and home.create calls
$orderServiceUtil = new OrderServiceUtil();
// get an instance of the home interface of the session bean
$order = $orderServiceUtil->getInstance();
// get product id 1041
$product = $order->getProduct(1041);
$_SESSION['product'] = $product;
...
java.lang.NoSuchMethodException: __sleep(). Candidates: []
at php.java.bridge.JavaBridge.Invoke(JavaBridge.java:966)
at php.java.bridge.Request.handleRequests(Request.java:190)
at php.java.bridge.JavaBridge.run(JavaBridge.java:142)
at php.java.bridge.ThreadPool$Delegate.run(ThreadPool.java:20)
Fatal error: Exception thrown without a stack frame in Unknown on line 0
Just looking over the java bridge code it appears it is performing a
wait() which probably call a system specific sleep(). What I can't
figure out is which class the invocation is attempted. wait() and
sleep() should be in rt.jar.
Any thoughts?
|