You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-user@axis.apache.org by Alistair Young <al...@smo.uhi.ac.uk> on 2006/08/10 14:11:45 UTC

[AXIS2] nightly build problem when parsing xml stream

Hi there,

Is there anything obvious that might be causing these? They occur  
when a MessageReceiver (generated by WSDL2Java) is trying to do a  
Factory.newInstance 
(org.apache.axiom.om.OMElement.getXMLStreamReaderWithoutCaching(),  
new org.apache.xmlbeans.XmlOptions().setLoadAdditionalNamespaces 
(extraNamespaces))

there's no other info in the logs.

first attempt at calling the service via stub:
SEVERE: java.lang.ExceptionInInitializerError

next attempt:
SEVERE: java.lang.NoClassDefFoundError
INFO: org.apache.axis2.AxisFault: null; nested exception is:
         com.ctc.wstx.exc.WstxIOException: null

thanks,

Alistair




---------------------------------------------------------------------
To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-user-help@ws.apache.org


RE: [AXIS2] nightly build problem when parsing xml stream

Posted by Derek <de...@crc-corp.com>.
Although I agree with what Ajith said, below, I still encourage you
(Alistair) to file a JIRA about the fact that Axis does not log the error.
Axis should not ever fail without logging an error message. Even if the
problem was due to misconfiguration, Axis should leave an informative error
message in the log file saying so. (It sounds like a static initialization
block in the code (or a static variable initializer) is missing a try..catch
block that would ensure that any thrown exceptions get logged.)

Derek

> -----Original Message-----
> From: Ajith Ranabahu [mailto:ajith.ranabahu@gmail.com] 
> Sent: Monday, August 14, 2006 1:20 PM
> To: axis-user@ws.apache.org; derek-axis@crc-corp.com
> Subject: Re: [AXIS2] nightly build problem when parsing xml stream
> 
> 
> Hi,
> Try using the generated ant build to build your aar file. The 
> ant build inserts the necessary files into the aar file and 
> you should not have a problem!
> 
> Ajith
> 
> On 8/14/06, Derek <de...@crc-corp.com> wrote:
> > Alistair:
> >
> > Please file a JIRA indicating that the error that occurs in 
> this case 
> > doesn't get logged (and it should!)
> >
> > Thanks.
> >
> > Derek
> >
> > > -----Original Message-----
> > > From: Alistair Young [mailto:alistair@smo.uhi.ac.uk]
> > > Sent: Thursday, August 10, 2006 6:37 AM
> > > To: axis-user@ws.apache.org
> > > Subject: Re: [AXIS2] nightly build problem when parsing xml stream
> > >
> > >
> > > aha! handy thing a debugger coz the exception doesn't 
> make it into 
> > > the log.
> > >
> > > schemaorg_apache_xmlbeans.system.sA6973D16021071091ABD334B25B9
> > > A53E.TypeS
> > > ystemHolder was missing.
> > >
> > > sorted
> > >
> > > Alistair
> > >
> > > On 10 Aug 2006, at 13:11, Alistair Young wrote:
> > >
> > > > Hi there,
> > > >
> > > > Is there anything obvious that might be causing these? 
> They occur 
> > > > when a MessageReceiver (generated by WSDL2Java) is 
> trying to do a 
> > > > Factory.newInstance 
> > > > 
> (org.apache.axiom.om.OMElement.getXMLStreamReaderWithoutCaching(),
> > > > new org.apache.xmlbeans.XmlOptions().setLoadAdditionalNamespaces
> > > > (extraNamespaces))
> > > >
> > > > there's no other info in the logs.
> > > >
> > > > first attempt at calling the service via stub:
> > > > SEVERE: java.lang.ExceptionInInitializerError
> > > >
> > > > next attempt:
> > > > SEVERE: java.lang.NoClassDefFoundError
> > > > INFO: org.apache.axis2.AxisFault: null; nested exception is:
> > > >         com.ctc.wstx.exc.WstxIOException: null
> > > >
> > > > thanks,
> > > >
> > > > Alistair
> > > >
> > > >
> > > >
> > > >
> > > >
> > > 
> --------------------------------------------------------------------
> > > -
> > > > To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
> > > > For additional commands, e-mail: axis-user-help@ws.apache.org
> > > >
> > >
> > >
> > > 
> --------------------------------------------------------------------
> > > -
> > > To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
> > > For additional commands, e-mail: axis-user-help@ws.apache.org
> > >
> > >
> >
> >
> >
> > 
> ---------------------------------------------------------------------
> > To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
> > For additional commands, e-mail: axis-user-help@ws.apache.org
> >
> >
> 
> 
> -- 
> Ajith Ranabahu
> 



---------------------------------------------------------------------
To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-user-help@ws.apache.org


Re: [AXIS2] nightly build problem when parsing xml stream

Posted by Ajith Ranabahu <aj...@gmail.com>.
Hi,
Try using the generated ant build to build your aar file. The ant
build inserts the necessary files into the aar file and you should not
have a problem!

Ajith

On 8/14/06, Derek <de...@crc-corp.com> wrote:
> Alistair:
>
> Please file a JIRA indicating that the error that occurs in this case
> doesn't get logged (and it should!)
>
> Thanks.
>
> Derek
>
> > -----Original Message-----
> > From: Alistair Young [mailto:alistair@smo.uhi.ac.uk]
> > Sent: Thursday, August 10, 2006 6:37 AM
> > To: axis-user@ws.apache.org
> > Subject: Re: [AXIS2] nightly build problem when parsing xml stream
> >
> >
> > aha! handy thing a debugger coz the exception doesn't make it into
> > the log.
> >
> > schemaorg_apache_xmlbeans.system.sA6973D16021071091ABD334B25B9
> > A53E.TypeS
> > ystemHolder was missing.
> >
> > sorted
> >
> > Alistair
> >
> > On 10 Aug 2006, at 13:11, Alistair Young wrote:
> >
> > > Hi there,
> > >
> > > Is there anything obvious that might be causing these? They occur
> > > when a MessageReceiver (generated by WSDL2Java) is trying to do a
> > > Factory.newInstance
> > > (org.apache.axiom.om.OMElement.getXMLStreamReaderWithoutCaching(),
> > > new org.apache.xmlbeans.XmlOptions().setLoadAdditionalNamespaces
> > > (extraNamespaces))
> > >
> > > there's no other info in the logs.
> > >
> > > first attempt at calling the service via stub:
> > > SEVERE: java.lang.ExceptionInInitializerError
> > >
> > > next attempt:
> > > SEVERE: java.lang.NoClassDefFoundError
> > > INFO: org.apache.axis2.AxisFault: null; nested exception is:
> > >         com.ctc.wstx.exc.WstxIOException: null
> > >
> > > thanks,
> > >
> > > Alistair
> > >
> > >
> > >
> > >
> > >
> > ---------------------------------------------------------------------
> > > To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
> > > For additional commands, e-mail: axis-user-help@ws.apache.org
> > >
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
> > For additional commands, e-mail: axis-user-help@ws.apache.org
> >
> >
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
> For additional commands, e-mail: axis-user-help@ws.apache.org
>
>


-- 
Ajith Ranabahu

---------------------------------------------------------------------
To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-user-help@ws.apache.org


Re: [AXIS2] nightly build problem when parsing xml stream

Posted by Davanum Srinivas <da...@gmail.com>.
if u use the generated build.xml it packages up the *.xsb stuff into a
jar and then places that into the aar.

-- dims

On 8/10/06, Alistair Young <al...@smo.uhi.ac.uk> wrote:
> aha! handy thing a debugger coz the exception doesn't make it into
> the log.
>
> schemaorg_apache_xmlbeans.system.sA6973D16021071091ABD334B25B9A53E.TypeS
> ystemHolder was missing.
>
> sorted
>
> Alistair
>
> On 10 Aug 2006, at 13:11, Alistair Young wrote:
>
> > Hi there,
> >
> > Is there anything obvious that might be causing these? They occur
> > when a MessageReceiver (generated by WSDL2Java) is trying to do a
> > Factory.newInstance
> > (org.apache.axiom.om.OMElement.getXMLStreamReaderWithoutCaching(),
> > new org.apache.xmlbeans.XmlOptions().setLoadAdditionalNamespaces
> > (extraNamespaces))
> >
> > there's no other info in the logs.
> >
> > first attempt at calling the service via stub:
> > SEVERE: java.lang.ExceptionInInitializerError
> >
> > next attempt:
> > SEVERE: java.lang.NoClassDefFoundError
> > INFO: org.apache.axis2.AxisFault: null; nested exception is:
> >         com.ctc.wstx.exc.WstxIOException: null
> >
> > thanks,
> >
> > Alistair
> >
> >
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
> > For additional commands, e-mail: axis-user-help@ws.apache.org
> >
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
> For additional commands, e-mail: axis-user-help@ws.apache.org
>
>


-- 
Davanum Srinivas : http://www.wso2.net (Oxygen for Web Service Developers)

---------------------------------------------------------------------
To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-user-help@ws.apache.org


RE: [AXIS2] nightly build problem when parsing xml stream

Posted by Derek <de...@crc-corp.com>.
Alistair:

Please file a JIRA indicating that the error that occurs in this case
doesn't get logged (and it should!)

Thanks.

Derek

> -----Original Message-----
> From: Alistair Young [mailto:alistair@smo.uhi.ac.uk] 
> Sent: Thursday, August 10, 2006 6:37 AM
> To: axis-user@ws.apache.org
> Subject: Re: [AXIS2] nightly build problem when parsing xml stream
> 
> 
> aha! handy thing a debugger coz the exception doesn't make it into  
> the log.
> 
> schemaorg_apache_xmlbeans.system.sA6973D16021071091ABD334B25B9
> A53E.TypeS 
> ystemHolder was missing.
> 
> sorted
> 
> Alistair
> 
> On 10 Aug 2006, at 13:11, Alistair Young wrote:
> 
> > Hi there,
> >
> > Is there anything obvious that might be causing these? They occur
> > when a MessageReceiver (generated by WSDL2Java) is trying to do a  
> > Factory.newInstance 
> > (org.apache.axiom.om.OMElement.getXMLStreamReaderWithoutCaching(),  
> > new org.apache.xmlbeans.XmlOptions().setLoadAdditionalNamespaces 
> > (extraNamespaces))
> >
> > there's no other info in the logs.
> >
> > first attempt at calling the service via stub:
> > SEVERE: java.lang.ExceptionInInitializerError
> >
> > next attempt:
> > SEVERE: java.lang.NoClassDefFoundError
> > INFO: org.apache.axis2.AxisFault: null; nested exception is:
> >         com.ctc.wstx.exc.WstxIOException: null
> >
> > thanks,
> >
> > Alistair
> >
> >
> >
> >
> > 
> ---------------------------------------------------------------------
> > To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
> > For additional commands, e-mail: axis-user-help@ws.apache.org
> >
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
> For additional commands, e-mail: axis-user-help@ws.apache.org
> 
> 



---------------------------------------------------------------------
To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-user-help@ws.apache.org


Re: [AXIS2] nightly build problem when parsing xml stream

Posted by Alistair Young <al...@smo.uhi.ac.uk>.
aha! handy thing a debugger coz the exception doesn't make it into  
the log.

schemaorg_apache_xmlbeans.system.sA6973D16021071091ABD334B25B9A53E.TypeS 
ystemHolder was missing.

sorted

Alistair

On 10 Aug 2006, at 13:11, Alistair Young wrote:

> Hi there,
>
> Is there anything obvious that might be causing these? They occur  
> when a MessageReceiver (generated by WSDL2Java) is trying to do a  
> Factory.newInstance 
> (org.apache.axiom.om.OMElement.getXMLStreamReaderWithoutCaching(),  
> new org.apache.xmlbeans.XmlOptions().setLoadAdditionalNamespaces 
> (extraNamespaces))
>
> there's no other info in the logs.
>
> first attempt at calling the service via stub:
> SEVERE: java.lang.ExceptionInInitializerError
>
> next attempt:
> SEVERE: java.lang.NoClassDefFoundError
> INFO: org.apache.axis2.AxisFault: null; nested exception is:
>         com.ctc.wstx.exc.WstxIOException: null
>
> thanks,
>
> Alistair
>
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
> For additional commands, e-mail: axis-user-help@ws.apache.org
>


---------------------------------------------------------------------
To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-user-help@ws.apache.org