From: Raphael V. <rv_...@os...> - 2005-09-29 07:35:33
|
Hi, I tried to call a EJB from the JavaBridge (2.0.8) as described here: http://cvs.sourceforge.net/viewcvs.py/php-java-bridge/php-java-bridge/examples/j2ee/README?rev=1.4&view=markup It results in the following error: Fatal error: Uncaught [o(Exception):"java.lang.Exception: Invoke failed: [c:javax.rmi.PortableRemoteObject]->narrow((java.lang.Object)o(CDRInputStream_1_0$1):"com.sun.corba.se.internal.iiop.CDRInputStream_1_0$1:IOR:0000000000000022524d493a446f63756d656e74486f6d653a30303030303030303030303030303030000000000000010000000000000188000102000000000d31302e3131322e32302e393500000e7400000056afabcb00000000260000003f00000009533141532d4f5242000000000000000200000008526f6f74504f41000000001237333932333136393634333532383139320000000000000d0106a0bb2b46000000000001ff0a000000000007000000010000002000000000000100010000000205010001000100200001010900000001000101000000002600000002000200000000000300000018000000000000000d31302e3131322e32302e393500000eec0000000300000018000000000000000d31302e3131322e32302e393500000f500000001f0000000400000003000000200000000400000001000000210000007c00000000000000010000000000000024000000200000006600000000000000010000000d31302e3131322e32302e393500000eec0040000000000008060667! 810201010100000017040100080606678102010101000000 in C:\Htdocs\JavaBridge\globals.php on line 34 Line 34 in globals.php is: $home = $PortableRemoteObject->narrow($objref, $DocumentHome); After that I tried a similar example with an Session EJB in an OC4J-Container. This does not work as well. The error eccurs in the same method PortableRemoteObject->narrow: Fatal error: Uncaught [o(Exception):"java.lang.Exception: Invoke failed: [c:javax.rmi.PortableRemoteObject]->narrow((java.lang.Object)o(__Proxy2):"SessionEJB EJBHome", (java.lang.Class)i:mypackage2.SessionEJBHome). Cause: java.lang.ClassCastException"] thrown in C:\Htdocs\JavaBridge\testClient.php on line 52 Seems so as if the Bridge has problems to cast the EJB to the home interface. Has anybody tried the example successfully? Regards, Raphael Vullriede |