|
From: <php...@li...> - 2007-06-05 15:05:47
|
I tried running my website with the standalone, command-line deployment
of the Java Bridge...
$ java -jar JavaBridge.jar SERVLET:8080
...which seemed to work well. That is, until a random line of code,
which normally executes just fine, started throwing a ClassCastException
each time it was encountered:
self::$jaxbContext =3D new JavaClass('javax.xml.bind.JAXBContext');
self::$talkContext =3D
self::$jaxbContext->newInstance('org.indivo.xml.talk');
Once the CCE appeared, my application could not recover until I
restarted the Bridge and Apache.
I'd never had a problem with those lines with 3.0.7 using the PHP
extension, and I don't see the problem at all while running 4.0.7 from
Tomcat. Does such a scenario ring any bells? (Exception text pasted
below.)
Thanks for your help,
Jonathan
[[o:Exception]:"java.lang.Exception: Invoke failed:
[[c:JAXBContext]]->newInstance((o:String)[o:String]). Cause:
java.lang.ClassCastException:
com.sun.xml.bind.v2.runtime.JAXBContextImpl Responsible VM:
1.5.0_08@http://java.sun.com/" at:
#-14 javax.xml.bind.ContextFinder.newInstance(ContextFinder.java:149)
#-13 javax.xml.bind.ContextFinder.find(ContextFinder.java:285)
#-12 javax.xml.bind.JAXBContext.newInstance(JAXBContext.java:372)
#0 http://localhost:8080/JavaBridge/java/Java.inc(151):
java_ThrowExceptionProxyFactory->getProxy(2, true)
#1 http://localhost:8080/JavaBridge/java/Java.inc(304):
java_Arg->getResult(true)
#2 http://localhost:8080/JavaBridge/java/Java.inc(310):
java_Client->getWrappedResult(true)
#3 http://localhost:8080/JavaBridge/java/Java.inc(489):
java_Client->getResult()
#4 http://localhost:8080/JavaBridge/java/Java.inc(735):
java_Client->invokeMethod(1, 'newInstance', Array)
#5 http://localhost:8080/JavaBridge/java/Java.inc(853):
java_JavaProxy->__call('newInstance', Array)
#6 [inte in http://localhost:8080/JavaBridge/java/Java.inc on line 129
|