this is still killin me. there were multiple jars with these classes in my
project, but ive cleaned them out. there now in my ear file is ONE
geronimo-stax-api_1.0_spec-1.0.1.jar and ONE wstx-asl-3.2.4.jar. i switched
out the geronimo for the stax in the distribution and same error. ive checked
weblogic and it has a few instances of the XMLInputFactory but i have the
prefer-web-inf-classes settings in the war files weblogic.xml file so those
shouldn't matter
its weblogic 10.0 if that matters. im going to start trying it on jboss and
see if that has any different effect.
-----Original Message-----
From: [EMAIL PROTECTED] on behalf of Serkan Camurcuoglu
Sent: Thu 7/10/2008 12:27 PM
To: JiBX users
Subject: Re: [jibx-users] java.lang.ExceptionInInitializerError
it seems like the javax.xml.stream.XMLInputFactory is loaded from
different jars, it's found in stax-api.jar.. so you may either have
multiple stax-api.jars or this class exists in multiple jars and is
loaded twice by different classloaders.. I think that's the case because
under normal conditions an instance of
com.ctc.wstx.stax.WstxInputFactory can be casted to
javax.xml.stream.XMLInputFactory if there's no classloader problem..
Slepecki, Willie wrote:
>
> no good. i stripped out all the jibx-run and jibx-bind jars and put a
> copy of them in the APP-INF/lib directory. still exact same error.
>
> i did manage to get logging working (another disaster) and got a
> little more detail in the exception.
>
> DEBUG 2008-07-10 12:10:14,828 [ACTIVE] ExecuteThread: '2' for queue:
> 'weblogic.kernel.Default (self-tuning)'
> org.apache.axis2.context.AbstractContext - ==================
> DEBUG 2008-07-10 12:10:14,828 [ACTIVE] ExecuteThread: '2' for queue:
> 'weblogic.kernel.Default (self-tuning)'
> com.jpmc.paycare.its.web.ITSMessageReceiverInOut - txnIPTransaction
> selected
> DEBUG 2008-07-10 12:10:14,828 [ACTIVE] ExecuteThread: '2' for queue:
> 'weblogic.kernel.Default (self-tuning)'
> org.apache.axiom.soap.impl.builder.StAXSOAPModelBuilder - Build the
> OMElelment TxnIPTransactionRequestBy the StaxSOAPModelBuilder
> DEBUG 2008-07-10 12:10:14,828 [ACTIVE] ExecuteThread: '2' for queue:
> 'weblogic.kernel.Default (self-tuning)'
> com.jpmc.paycare.its.web.ITSMessageReceiverInOut -
> [Ljava.lang.String;@1b5e32
> ERROR 2008-07-10 12:10:14,843 [ACTIVE] ExecuteThread: '2' for queue:
> 'weblogic.kernel.Default (self-tuning)'
> org.apache.axis2.transport.http.AxisServlet -
> java.lang.ExceptionInInitializerError
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
> at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
> at java.lang.reflect.Method.invoke(Method.java:585)
> at
> org.jibx.runtime.impl.UnmarshallingContext.createReaderFactory(UnmarshallingContext.java:195)
> at
> org.jibx.runtime.impl.UnmarshallingContext.<clinit>(UnmarshallingContext.java:80)
> at
> com.jpmc.paycare.schema.common.JiBX_its_core_jibx_bindingFactory.createUnmarshallingContext()
> at
> com.jpmc.paycare.its.web.ITSMessageReceiverInOut.getNewUnmarshalContext(ITSMessageReceiverInOut.java:283)
> at
> com.jpmc.paycare.its.web.ITSMessageReceiverInOut.fromOM(ITSMessageReceiverInOut.java:304)
> at
> com.jpmc.paycare.its.web.ITSMessageReceiverInOut.invokeBusinessLogic(ITSMessageReceiverInOut.java:157)
> at
> org.apache.axis2.receivers.AbstractInOutMessageReceiver.invokeBusinessLogic(AbstractInOutMessageReceiver.java:40)
> at
> org.apache.axis2.receivers.AbstractMessageReceiver.receive(AbstractMessageReceiver.java:100)
> at org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:176)
> at
> org.apache.axis2.transport.http.HTTPTransportUtils.processHTTPPostRequest(HTTPTransportUtils.java:275)
> at
> org.apache.axis2.transport.http.AxisServlet.doPost(AxisServlet.java:131)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:727)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
> at
> weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:226)
> at
> weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:124)
> at
> weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:283)
> at
> weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:175)
> at
> weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3395)
> at
> weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
> at weblogic.security.service.SecurityManager.runAs(Unknown Source)
> at
> weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2140)
> at
> weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2046)
> at
> weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1366)
> at weblogic.work.ExecuteThread.execute(ExecuteThread.java:200)
> at weblogic.work.ExecuteThread.run(ExecuteThread.java:172)
> Caused by: java.lang.ClassCastException:
> com.ctc.wstx.stax.WstxInputFactory
> at
> javax.xml.stream.XMLInputFactory.newInstance(XMLInputFactory.java:136)
> at
> org.jibx.runtime.impl.StAXReaderFactory.<init>(StAXReaderFactory.java:65)
> at
> org.jibx.runtime.impl.StAXReaderFactory.<clinit>(StAXReaderFactory.java:51)
> ... 29 more
>
>
> -----Original Message-----
> From: [EMAIL PROTECTED] on behalf of Serkan
> Camurcuoglu
> Sent: Thu 7/10/2008 11:51 AM
> To: JiBX users
> Subject: Re: [jibx-users] java.lang.ExceptionInInitializerError
>
> I don't think so.. Since IXMLReaderFactory and StAXReaderFactory are
> expected to be in the same jar file, this error is most probably caused
> by these two classes being loaded by different classloaders. I think you
> have more than one jibx-run-xxxx.jar (xxxx for the version) in your
> classloader hierarchy. Even if these two jars are of the same version,
> they would cause this error. You should look for all the jibx-run jars
> in your application server's possible lib directories.
>
> Regards,
>
> SerkanC
>
>
>
>
> Slepecki, Willie wrote:
> >
> > well, this is deployed as an axis2 web app, im doing all the binding
> > and stuff in jibx 1.1.6a, and the axis-jibx.jar is 1.4, could that be
> > my incompatibility?
> >
> >
> >
> > -----Original Message-----
> > From: [EMAIL PROTECTED] on behalf of Serkan
> > Camurcuoglu
> > Sent: Thu 7/10/2008 10:47 AM
> > To: JiBX users
> > Subject: Re: [jibx-users] java.lang.ExceptionInInitializerError
> >
> > after an exceptionininitializererror you always get a
> > noclassdeffounderror since the class failed to initialize.. the message
> > "Specified parser factory class org.jibx.runtime.impl.StAXReaderFactory
> > does not implement IXMLReaderFactory interface" indicates that you
> > should inspect where jibx classes are loaded from, maybe this is also
> > about jibx runtime versions..
> >
> >
> > Slepecki, Willie wrote:
> > >
> > > this gets a little weirder. when i bring up weblogic and send my
> > > request to the server, i get the error i previously posted. but when
> > > i run the exact same request a second time, i get this stack dump
> > >
> > > <Jul 10, 2008 10:39:07 AM EDT> <Notice> <Stdout> <BEA-000000> <[ERROR]
> > > java.lang.NoClassDefFoundError
> > > at
> > >
> >
> com.jpmc.paycare.schema.common.JiBX_its_core_jibx_bindingFactory.createUnmarshallingContext()
> > > at
> > >
> >
> com.jpmc.paycare.its.web.ITSMessageReceiverInOut.getNewUnmarshalContext(ITSMessageReceiverInOut.java:284)
> > > at
> > >
> >
> com.jpmc.paycare.its.web.ITSMessageReceiverInOut.fromOM(ITSMessageReceiverInOut.java:305)
> > > at
> > >
> >
> com.jpmc.paycare.its.web.ITSMessageReceiverInOut.invokeBusinessLogic(ITSMessageReceiverInOut.java:158)
> > > at
> > >
> >
> org.apache.axis2.receivers.AbstractInOutMessageReceiver.invokeBusinessLogic(AbstractInOutMessageReceiver.java:40)
> > > at
> > >
> >
> org.apache.axis2.receivers.AbstractMessageReceiver.receive(AbstractMessageReceiver.java:100)
> > > at
> > org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:176)
> > > at
> > >
> >
> org.apache.axis2.transport.http.HTTPTransportUtils.processHTTPPostRequest(HTTPTransportUtils.java:275)
> > > at
> > >
> org.apache.axis2.transport.http.AxisServlet.doPost(AxisServlet.java:131)
> > > at
> javax.servlet.http.HttpServlet.service(HttpServlet.java:727)
> > > at
> javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
> > > at
> > >
> >
> weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:226)
> > > at
> > >
> >
> weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:124)
> > > at
> > >
> >
> weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:283)
> > > at
> > >
> >
> weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:175)
> > > at
> > >
> >
> weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3395)
> > > at
> > >
> >
> weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
> > > at weblogic.security.service.SecurityManager.runAs(Unknown
> > Source)
> > > at
> > >
> >
> weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2140)
> > > at
> > >
> >
> weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2046)
> > > at
> > >
> >
> weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1366)
> > > at weblogic.work.ExecuteThread.execute(ExecuteThread.java:200)
> > > at weblogic.work.ExecuteThread.run(ExecuteThread.java:172)>
> > >
> > >
> > > is there a way for the binder app to also generate the sources for the
> > > bindings so i can track this down and find out exactly what class its
> > > not finding?
> > >
> > >
> > > -----Original Message-----
> > > From: Slepecki, Willie
> > > Sent: Wed 7/9/2008 3:33 PM
> > > To: [email protected]
> > > Subject: java.lang.ExceptionInInitializerError
> > >
> > > ok, about a dozen problems down and at a minimum one more to go. ive
> > > got my test class hitting the web service with a soap xml, and am
> > > getting this exception.
> > >
> > >
> > > <Jul 9, 2008 3:16:49 PM EDT> <Notice> <Stdout> <BEA-000000> <[ERROR]
> > > java.lang.ExceptionInInitializerError
> > > at
> > >
> >
> com.jpmc.paycare.schema.common.JiBX_its_core_jibx_bindingFactory.createUnmarshallingContext()
> > > at
> > >
> >
> com.jpmc.paycare.its.web.ITSMessageReceiverInOut.getNewUnmarshalContext(ITSMessageReceiverInOut.java:283)
> > > at
> > >
> >
> com.jpmc.paycare.its.web.ITSMessageReceiverInOut.fromOM(ITSMessageReceiverInOut.java:304)
> > > at
> > >
> >
> com.jpmc.paycare.its.web.ITSMessageReceiverInOut.invokeBusinessLogic(ITSMessageReceiverInOut.java:157)
> > > at
> > >
> >
> org.apache.axis2.receivers.AbstractInOutMessageReceiver.invokeBusinessLogic(AbstractInOutMessageReceiver.java:40)
> > > at
> > >
> >
> org.apache.axis2.receivers.AbstractMessageReceiver.receive(AbstractMessageReceiver.java:100)
> > > at
> > org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:176)
> > > at
> > >
> >
> org.apache.axis2.transport.http.HTTPTransportUtils.processHTTPPostRequest(HTTPTransportUtils.java:275)
> > > at
> > >
> org.apache.axis2.transport.http.AxisServlet.doPost(AxisServlet.java:131)
> > > at
> javax.servlet.http.HttpServlet.service(HttpServlet.java:727)
> > > at
> javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
> > > at
> > >
> >
> weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:226)
> > > at
> > >
> >
> weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:124)
> > > at
> > >
> >
> weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:283)
> > > at
> > >
> >
> weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:175)
> > > at
> > >
> >
> weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3395)
> > > at
> > >
> >
> weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
> > > at weblogic.security.service.SecurityManager.runAs(Unknown
> > Source)
> > > at
> > >
> >
> weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2140)
> > > at
> > >
> >
> weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2046)
> > > at
> > >
> >
> weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1366)
> > > at weblogic.work.ExecuteThread.execute(ExecuteThread.java:200)
> > > at weblogic.work.ExecuteThread.run(ExecuteThread.java:172)
> > > Caused by: java.lang.RuntimeException: Specified parser factory class
> > > org.jibx.runtime.impl.StAXReaderFactory does not implement
> > > IXMLReaderFactory interface
> > > at
> > >
> >
> org.jibx.runtime.impl.UnmarshallingContext.createReaderFactory(UnmarshallingContext.java:188)
> > > at
> > >
> >
> org.jibx.runtime.impl.UnmarshallingContext.<clinit>(UnmarshallingContext.java:80)
> > > ... 23 more>
> > >
> > > now this may be a namespace issue, here is the xml im sending
> > >
> > > <SOAP-ENV:Envelope
> > > xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"
> > > xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/"
> > > xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
> > > xmlns:xsd="http://www.w3.org/2001/XMLSchema"
> > > xmlns:m0="http://schema.paycare.jpmc.com/Common">
> > > <SOAP-ENV:Body>
> > > <m:TxnIPTransactionRequest
> > >
> > > xmlns:m="http://schema.paycare.jpmc.com/txnIPTransactionRequest">
> > > <SecurityInfo>
> > > <m0:TxnStateAbbr>AK</m0:TxnStateAbbr>
> > > <m0:TxnDeviceID>a</m0:TxnDeviceID>
> > > <m0:TxnToken>a</m0:TxnToken>
> > >
> > > <m0:TxnDeviceTime>2001-12-17T09:30:47.0Z</m0:TxnDeviceTime>
> > > </SecurityInfo>
> > > <MessageData>String</MessageData>
> > > </m:TxnIPTransactionRequest>
> > > </SOAP-ENV:Body>
> > > </SOAP-ENV:Envelope>
> > >
> > >
> ------------------------------------------------------------------------
> > >
> > >
> >
> -------------------------------------------------------------------------
> > > Sponsored by: SourceForge.net Community Choice Awards: VOTE NOW!
> > > Studies have shown that voting for your favorite open source project,
> > > along with a healthy diet, reduces your potential for chronic lameness
> > > and boredom. Vote Now at http://www.sourceforge.net/community/cca08
> > >
> ------------------------------------------------------------------------
> > >
> > > _______________________________________________
> > > jibx-users mailing list
> > > [email protected]
> > > https://lists.sourceforge.net/lists/listinfo/jibx-users
> > >
> >
> >
> >
> -------------------------------------------------------------------------
> > Sponsored by: SourceForge.net Community Choice Awards: VOTE NOW!
> > Studies have shown that voting for your favorite open source project,
> > along with a healthy diet, reduces your potential for chronic lameness
> > and boredom. Vote Now at http://www.sourceforge.net/community/cca08
> > _______________________________________________
> > jibx-users mailing list
> > [email protected]
> > https://lists.sourceforge.net/lists/listinfo/jibx-users
> >
> >
> > ------------------------------------------------------------------------
> >
> >
> -------------------------------------------------------------------------
> > Sponsored by: SourceForge.net Community Choice Awards: VOTE NOW!
> > Studies have shown that voting for your favorite open source project,
> > along with a healthy diet, reduces your potential for chronic lameness
> > and boredom. Vote Now at http://www.sourceforge.net/community/cca08
> > ------------------------------------------------------------------------
> >
> > _______________________________________________
> > jibx-users mailing list
> > [email protected]
> > https://lists.sourceforge.net/lists/listinfo/jibx-users
> >
>
>
> -------------------------------------------------------------------------
> Sponsored by: SourceForge.net Community Choice Awards: VOTE NOW!
> Studies have shown that voting for your favorite open source project,
> along with a healthy diet, reduces your potential for chronic lameness
> and boredom. Vote Now at http://www.sourceforge.net/community/cca08
> _______________________________________________
> jibx-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/jibx-users
>
>
> ------------------------------------------------------------------------
>
> -------------------------------------------------------------------------
> Sponsored by: SourceForge.net Community Choice Awards: VOTE NOW!
> Studies have shown that voting for your favorite open source project,
> along with a healthy diet, reduces your potential for chronic lameness
> and boredom. Vote Now at http://www.sourceforge.net/community/cca08
> ------------------------------------------------------------------------
>
> _______________________________________________
> jibx-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/jibx-users
>
-------------------------------------------------------------------------
Sponsored by: SourceForge.net Community Choice Awards: VOTE NOW!
Studies have shown that voting for your favorite open source project,
along with a healthy diet, reduces your potential for chronic lameness
and boredom. Vote Now at http://www.sourceforge.net/community/cca08
_______________________________________________
jibx-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jibx-users
-------------------------------------------------------------------------
Sponsored by: SourceForge.net Community Choice Awards: VOTE NOW!
Studies have shown that voting for your favorite open source project,
along with a healthy diet, reduces your potential for chronic lameness
and boredom. Vote Now at http://www.sourceforge.net/community/cca08
_______________________________________________
jibx-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jibx-users