You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-dev@axis.apache.org by Giridhar Manepalli <gm...@gmail.com> on 2006/07/02 09:45:54 UTC

Null Pointer Exception: BijectiveNSMap.java

Hello,
I am facing the same problem as this one

http://mail-archives.apache.org/mod_mbox/ws-axis-user/200605.mbox/%3c000901c675ab$c65b56d0$760110ac@KenC%3e

Is there anyone who is facing the same problem as me? I am using axis2
v1.0 and all the packaged jars with this particular distribution.

I would appreciate if one of you could throw some light on this issue.

FYI
databinding is using xmlbeans
wsdl is doc/literal wrapped


Regards,
Giridhar

My particular error dump is

org.apache.axis2.AxisFault: Transport error 500 . Error Message is
<html><head><title>Apache Tomcat/5.5.9 - Error
report</title><style><!--H1
{font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:22px;}
H2 {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:16px;}
H3 {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:14px;}
BODY {font-family:Tahoma,Arial,sans-serif;color:black;background-color:white;}
B {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;}
P {font-family:Tahoma,Arial,sans-serif;background:white;color:black;font-size:12px;}A
{color : black;}A.name {color : black;}HR {color :
#525D76;}--></style> </head><body><h1>HTTP Status 500 - </h1><HR
size="1" noshade="noshade"><p><b>type</b> Exception
report</p><p><b>message</b> <u></u></p><p><b>description</b> <u>The
server encountered an internal error () that prevented it from
fulfilling this request.</u></p><p><b>exception</b>
<pre>java.lang.NullPointerException
com.ctc.wstx.util.BijectiveNsMap.findPrefixByUri(BijectiveNsMap.java:132)
	com.ctc.wstx.sw.SimpleOutputElement.getPrefix(SimpleOutputElement.java:453)
	org.apache.axiom.om.impl.serialize.StreamingOMSerializer.serializeAttributes(StreamingOMSerializer.java:214)
	org.apache.axiom.om.impl.serialize.StreamingOMSerializer.serializeElement(StreamingOMSerializer.java:147)
	org.apache.axiom.om.impl.serialize.StreamingOMSerializer.serializeNode(StreamingOMSerializer.java:73)
	org.apache.axiom.om.impl.serialize.StreamingOMSerializer.serialize(StreamingOMSerializer.java:56)
	org.apache.axiom.om.impl.util.OMSerializerUtil.serializeByPullStream(OMSerializerUtil.java:315)
	org.apache.axiom.om.impl.llom.OMElementImpl.internalSerialize(OMElementImpl.java:786)
	org.apache.axiom.om.impl.llom.OMElementImpl.internalSerializeAndConsume(OMElementImpl.java:809)
	org.apache.axiom.om.impl.llom.OMElementImpl.internalSerialize(OMElementImpl.java:780)
	org.apache.axiom.soap.impl.llom.SOAPEnvelopeImpl.internalSerialize(SOAPEnvelopeImpl.java:171)
	org.apache.axiom.om.impl.llom.OMElementImpl.internalSerializeAndConsume(OMElementImpl.java:809)
	org.apache.axiom.om.impl.llom.OMNodeImpl.serializeAndConsume(OMNodeImpl.java:381)
	org.apache.axis2.transport.http.CommonsHTTPTransportSender.sendUsingOutputStream(CommonsHTTPTransportSender.java:256)
	org.apache.axis2.transport.http.CommonsHTTPTransportSender.invoke(CommonsHTTPTransportSender.java:210)
	org.apache.axis2.engine.AxisEngine.send(AxisEngine.java:589)
	org.apache.axis2.receivers.AbstractInOutSyncMessageReceiver.receive(AbstractInOutSyncMessageReceiver.java:43)
	org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:454)
	org.apache.axis2.transport.http.HTTPTransportUtils.processHTTPPostRequest(HTTPTransportUtils.java:284)
	org.apache.axis2.transport.http.AxisServlet.doPost(AxisServlet.java:136)
	javax.servlet.http.HttpServlet.service(HttpServlet.java:709)
	javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
</pre></p><p><b>note</b> <u>The full stack trace of the root cause is
available in the Apache Tomcat/5.5.9 logs.</u></p><HR size="1"
noshade="noshade"><h3>Apache Tomcat/5.5.9</h3></body></html>

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


Re: Null Pointer Exception: BijectiveNSMap.java

Posted by Giridhar Manepalli <gm...@gmail.com>.
Anne and Dennis, Thanks for your reply.

I figured out the problem. However someone else did it prior to me.

http://mail-archives.apache.org/mod_mbox/ws-commons-dev/200605.mbox/browser

The latest code of axiom from subversion includes the fix (although
the fix solves the problem, few people believe that is not the way to
go).

Regards,
Giridhar

On 7/2/06, Dennis Sosnoski <dm...@sosnoski.com> wrote:
> It's actually part of the Axis2 distribution, Anne, in the wstx-asl
> Woodstox StAX parser jar.
>
> I don't know offhand why you'd be getting this error, Giridhar, though
> it looks like it's namespace related. There have been some problems with
> XMLBeans and the Woodstox StAX parser because of namespace uri handling.
> Hopefully someone from the Axiom side will recognize the symptoms - if
> not, you should enter a Jira bug report.
>
>   - Dennis
>
> Anne Thomas Manes wrote:
> > I suggest you submit this question to the folks that supplied you with
> > this package:
> >
> >          com.ctc.wstx.util.BijectiveNsMap.findPrefixByUri
> >
> > Anne
> >
> > On 7/2/06, Giridhar Manepalli <gm...@gmail.com> wrote:
> >> Hello,
> >> I am facing the same problem as this one
> >>
> >> http://mail-archives.apache.org/mod_mbox/ws-axis-user/200605.mbox/%3c000901c675ab$c65b56d0$760110ac@KenC%3e
> >>
> >>
> >> Is there anyone who is facing the same problem as me? I am using axis2
> >> v1.0 and all the packaged jars with this particular distribution.
> >>
> >> I would appreciate if one of you could throw some light on this issue.
> >>
> >> FYI
> >> databinding is using xmlbeans
> >> wsdl is doc/literal wrapped
> >>
> >>
> >> Regards,
> >> Giridhar
> >>
> >> My particular error dump is
> >>
> >> org.apache.axis2.AxisFault: Transport error 500 . Error Message is
> >> <html><head><title>Apache Tomcat/5.5.9 - Error
> >> report</title><style><!--H1
> >> {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:22px;}
> >>
> >> H2
> >> {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:16px;}
> >>
> >> H3
> >> {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:14px;}
> >>
> >> BODY
> >> {font-family:Tahoma,Arial,sans-serif;color:black;background-color:white;}
> >>
> >> B
> >> {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;}
> >>
> >> P
> >> {font-family:Tahoma,Arial,sans-serif;background:white;color:black;font-size:12px;}A
> >>
> >> {color : black;}A.name {color : black;}HR {color :
> >> #525D76;}--></style> </head><body><h1>HTTP Status 500 - </h1><HR
> >> size="1" noshade="noshade"><p><b>type</b> Exception
> >> report</p><p><b>message</b> <u></u></p><p><b>description</b> <u>The
> >> server encountered an internal error () that prevented it from
> >> fulfilling this request.</u></p><p><b>exception</b>
> >> <pre>java.lang.NullPointerException
> >> com.ctc.wstx.util.BijectiveNsMap.findPrefixByUri(BijectiveNsMap.java:132)
> >>
> >>
> >> com.ctc.wstx.sw.SimpleOutputElement.getPrefix(SimpleOutputElement.java:453)
> >>
> >>
> >> org.apache.axiom.om.impl.serialize.StreamingOMSerializer.serializeAttributes(StreamingOMSerializer.java:214)
> >>
> >>
> >> org.apache.axiom.om.impl.serialize.StreamingOMSerializer.serializeElement(StreamingOMSerializer.java:147)
> >>
> >>
> >> org.apache.axiom.om.impl.serialize.StreamingOMSerializer.serializeNode(StreamingOMSerializer.java:73)
> >>
> >>
> >> org.apache.axiom.om.impl.serialize.StreamingOMSerializer.serialize(StreamingOMSerializer.java:56)
> >>
> >>
> >> org.apache.axiom.om.impl.util.OMSerializerUtil.serializeByPullStream(OMSerializerUtil.java:315)
> >>
> >>
> >> org.apache.axiom.om.impl.llom.OMElementImpl.internalSerialize(OMElementImpl.java:786)
> >>
> >>
> >> org.apache.axiom.om.impl.llom.OMElementImpl.internalSerializeAndConsume(OMElementImpl.java:809)
> >>
> >>
> >> org.apache.axiom.om.impl.llom.OMElementImpl.internalSerialize(OMElementImpl.java:780)
> >>
> >>
> >> org.apache.axiom.soap.impl.llom.SOAPEnvelopeImpl.internalSerialize(SOAPEnvelopeImpl.java:171)
> >>
> >>
> >> org.apache.axiom.om.impl.llom.OMElementImpl.internalSerializeAndConsume(OMElementImpl.java:809)
> >>
> >>
> >> org.apache.axiom.om.impl.llom.OMNodeImpl.serializeAndConsume(OMNodeImpl.java:381)
> >>
> >>
> >> org.apache.axis2.transport.http.CommonsHTTPTransportSender.sendUsingOutputStream(CommonsHTTPTransportSender.java:256)
> >>
> >>
> >> org.apache.axis2.transport.http.CommonsHTTPTransportSender.invoke(CommonsHTTPTransportSender.java:210)
> >>
> >>         org.apache.axis2.engine.AxisEngine.send(AxisEngine.java:589)
> >>
> >> org.apache.axis2.receivers.AbstractInOutSyncMessageReceiver.receive(AbstractInOutSyncMessageReceiver.java:43)
> >>
> >>         org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:454)
> >>
> >> org.apache.axis2.transport.http.HTTPTransportUtils.processHTTPPostRequest(HTTPTransportUtils.java:284)
> >>
> >>
> >> org.apache.axis2.transport.http.AxisServlet.doPost(AxisServlet.java:136)
> >>         javax.servlet.http.HttpServlet.service(HttpServlet.java:709)
> >>         javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
> >> </pre></p><p><b>note</b> <u>The full stack trace of the root cause is
> >> available in the Apache Tomcat/5.5.9 logs.</u></p><HR size="1"
> >> noshade="noshade"><h3>Apache Tomcat/5.5.9</h3></body></html>
> >>
> >> ---------------------------------------------------------------------
> >> To unsubscribe, e-mail: axis-dev-unsubscribe@ws.apache.org
> >> For additional commands, e-mail: axis-dev-help@ws.apache.org
> >>
> >>
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: axis-dev-unsubscribe@ws.apache.org
> > For additional commands, e-mail: axis-dev-help@ws.apache.org
> >
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: axis-dev-unsubscribe@ws.apache.org
> For additional commands, e-mail: axis-dev-help@ws.apache.org
>
>

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


Re: Null Pointer Exception: BijectiveNSMap.java

Posted by Dennis Sosnoski <dm...@sosnoski.com>.
It's actually part of the Axis2 distribution, Anne, in the wstx-asl 
Woodstox StAX parser jar.

I don't know offhand why you'd be getting this error, Giridhar, though 
it looks like it's namespace related. There have been some problems with 
XMLBeans and the Woodstox StAX parser because of namespace uri handling. 
Hopefully someone from the Axiom side will recognize the symptoms - if 
not, you should enter a Jira bug report.

  - Dennis

Anne Thomas Manes wrote:
> I suggest you submit this question to the folks that supplied you with
> this package:
>
>          com.ctc.wstx.util.BijectiveNsMap.findPrefixByUri
>
> Anne
>
> On 7/2/06, Giridhar Manepalli <gm...@gmail.com> wrote:
>> Hello,
>> I am facing the same problem as this one
>>
>> http://mail-archives.apache.org/mod_mbox/ws-axis-user/200605.mbox/%3c000901c675ab$c65b56d0$760110ac@KenC%3e 
>>
>>
>> Is there anyone who is facing the same problem as me? I am using axis2
>> v1.0 and all the packaged jars with this particular distribution.
>>
>> I would appreciate if one of you could throw some light on this issue.
>>
>> FYI
>> databinding is using xmlbeans
>> wsdl is doc/literal wrapped
>>
>>
>> Regards,
>> Giridhar
>>
>> My particular error dump is
>>
>> org.apache.axis2.AxisFault: Transport error 500 . Error Message is
>> <html><head><title>Apache Tomcat/5.5.9 - Error
>> report</title><style><!--H1
>> {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:22px;} 
>>
>> H2 
>> {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:16px;} 
>>
>> H3 
>> {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:14px;} 
>>
>> BODY 
>> {font-family:Tahoma,Arial,sans-serif;color:black;background-color:white;} 
>>
>> B 
>> {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;} 
>>
>> P 
>> {font-family:Tahoma,Arial,sans-serif;background:white;color:black;font-size:12px;}A 
>>
>> {color : black;}A.name {color : black;}HR {color :
>> #525D76;}--></style> </head><body><h1>HTTP Status 500 - </h1><HR
>> size="1" noshade="noshade"><p><b>type</b> Exception
>> report</p><p><b>message</b> <u></u></p><p><b>description</b> <u>The
>> server encountered an internal error () that prevented it from
>> fulfilling this request.</u></p><p><b>exception</b>
>> <pre>java.lang.NullPointerException
>> com.ctc.wstx.util.BijectiveNsMap.findPrefixByUri(BijectiveNsMap.java:132) 
>>
>>         
>> com.ctc.wstx.sw.SimpleOutputElement.getPrefix(SimpleOutputElement.java:453) 
>>
>>         
>> org.apache.axiom.om.impl.serialize.StreamingOMSerializer.serializeAttributes(StreamingOMSerializer.java:214) 
>>
>>         
>> org.apache.axiom.om.impl.serialize.StreamingOMSerializer.serializeElement(StreamingOMSerializer.java:147) 
>>
>>         
>> org.apache.axiom.om.impl.serialize.StreamingOMSerializer.serializeNode(StreamingOMSerializer.java:73) 
>>
>>         
>> org.apache.axiom.om.impl.serialize.StreamingOMSerializer.serialize(StreamingOMSerializer.java:56) 
>>
>>         
>> org.apache.axiom.om.impl.util.OMSerializerUtil.serializeByPullStream(OMSerializerUtil.java:315) 
>>
>>         
>> org.apache.axiom.om.impl.llom.OMElementImpl.internalSerialize(OMElementImpl.java:786) 
>>
>>         
>> org.apache.axiom.om.impl.llom.OMElementImpl.internalSerializeAndConsume(OMElementImpl.java:809) 
>>
>>         
>> org.apache.axiom.om.impl.llom.OMElementImpl.internalSerialize(OMElementImpl.java:780) 
>>
>>         
>> org.apache.axiom.soap.impl.llom.SOAPEnvelopeImpl.internalSerialize(SOAPEnvelopeImpl.java:171) 
>>
>>         
>> org.apache.axiom.om.impl.llom.OMElementImpl.internalSerializeAndConsume(OMElementImpl.java:809) 
>>
>>         
>> org.apache.axiom.om.impl.llom.OMNodeImpl.serializeAndConsume(OMNodeImpl.java:381) 
>>
>>         
>> org.apache.axis2.transport.http.CommonsHTTPTransportSender.sendUsingOutputStream(CommonsHTTPTransportSender.java:256) 
>>
>>         
>> org.apache.axis2.transport.http.CommonsHTTPTransportSender.invoke(CommonsHTTPTransportSender.java:210) 
>>
>>         org.apache.axis2.engine.AxisEngine.send(AxisEngine.java:589)
>>         
>> org.apache.axis2.receivers.AbstractInOutSyncMessageReceiver.receive(AbstractInOutSyncMessageReceiver.java:43) 
>>
>>         org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:454)
>>         
>> org.apache.axis2.transport.http.HTTPTransportUtils.processHTTPPostRequest(HTTPTransportUtils.java:284) 
>>
>>         
>> org.apache.axis2.transport.http.AxisServlet.doPost(AxisServlet.java:136)
>>         javax.servlet.http.HttpServlet.service(HttpServlet.java:709)
>>         javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
>> </pre></p><p><b>note</b> <u>The full stack trace of the root cause is
>> available in the Apache Tomcat/5.5.9 logs.</u></p><HR size="1"
>> noshade="noshade"><h3>Apache Tomcat/5.5.9</h3></body></html>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: axis-dev-unsubscribe@ws.apache.org
>> For additional commands, e-mail: axis-dev-help@ws.apache.org
>>
>>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: axis-dev-unsubscribe@ws.apache.org
> For additional commands, e-mail: axis-dev-help@ws.apache.org
>

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


Re: Null Pointer Exception: BijectiveNSMap.java

Posted by Anne Thomas Manes <at...@gmail.com>.
I suggest you submit this question to the folks that supplied you with
this package:

          com.ctc.wstx.util.BijectiveNsMap.findPrefixByUri

Anne

On 7/2/06, Giridhar Manepalli <gm...@gmail.com> wrote:
> Hello,
> I am facing the same problem as this one
>
> http://mail-archives.apache.org/mod_mbox/ws-axis-user/200605.mbox/%3c000901c675ab$c65b56d0$760110ac@KenC%3e
>
> Is there anyone who is facing the same problem as me? I am using axis2
> v1.0 and all the packaged jars with this particular distribution.
>
> I would appreciate if one of you could throw some light on this issue.
>
> FYI
> databinding is using xmlbeans
> wsdl is doc/literal wrapped
>
>
> Regards,
> Giridhar
>
> My particular error dump is
>
> org.apache.axis2.AxisFault: Transport error 500 . Error Message is
> <html><head><title>Apache Tomcat/5.5.9 - Error
> report</title><style><!--H1
> {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:22px;}
> H2 {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:16px;}
> H3 {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:14px;}
> BODY {font-family:Tahoma,Arial,sans-serif;color:black;background-color:white;}
> B {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;}
> P {font-family:Tahoma,Arial,sans-serif;background:white;color:black;font-size:12px;}A
> {color : black;}A.name {color : black;}HR {color :
> #525D76;}--></style> </head><body><h1>HTTP Status 500 - </h1><HR
> size="1" noshade="noshade"><p><b>type</b> Exception
> report</p><p><b>message</b> <u></u></p><p><b>description</b> <u>The
> server encountered an internal error () that prevented it from
> fulfilling this request.</u></p><p><b>exception</b>
> <pre>java.lang.NullPointerException
> com.ctc.wstx.util.BijectiveNsMap.findPrefixByUri(BijectiveNsMap.java:132)
>         com.ctc.wstx.sw.SimpleOutputElement.getPrefix(SimpleOutputElement.java:453)
>         org.apache.axiom.om.impl.serialize.StreamingOMSerializer.serializeAttributes(StreamingOMSerializer.java:214)
>         org.apache.axiom.om.impl.serialize.StreamingOMSerializer.serializeElement(StreamingOMSerializer.java:147)
>         org.apache.axiom.om.impl.serialize.StreamingOMSerializer.serializeNode(StreamingOMSerializer.java:73)
>         org.apache.axiom.om.impl.serialize.StreamingOMSerializer.serialize(StreamingOMSerializer.java:56)
>         org.apache.axiom.om.impl.util.OMSerializerUtil.serializeByPullStream(OMSerializerUtil.java:315)
>         org.apache.axiom.om.impl.llom.OMElementImpl.internalSerialize(OMElementImpl.java:786)
>         org.apache.axiom.om.impl.llom.OMElementImpl.internalSerializeAndConsume(OMElementImpl.java:809)
>         org.apache.axiom.om.impl.llom.OMElementImpl.internalSerialize(OMElementImpl.java:780)
>         org.apache.axiom.soap.impl.llom.SOAPEnvelopeImpl.internalSerialize(SOAPEnvelopeImpl.java:171)
>         org.apache.axiom.om.impl.llom.OMElementImpl.internalSerializeAndConsume(OMElementImpl.java:809)
>         org.apache.axiom.om.impl.llom.OMNodeImpl.serializeAndConsume(OMNodeImpl.java:381)
>         org.apache.axis2.transport.http.CommonsHTTPTransportSender.sendUsingOutputStream(CommonsHTTPTransportSender.java:256)
>         org.apache.axis2.transport.http.CommonsHTTPTransportSender.invoke(CommonsHTTPTransportSender.java:210)
>         org.apache.axis2.engine.AxisEngine.send(AxisEngine.java:589)
>         org.apache.axis2.receivers.AbstractInOutSyncMessageReceiver.receive(AbstractInOutSyncMessageReceiver.java:43)
>         org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:454)
>         org.apache.axis2.transport.http.HTTPTransportUtils.processHTTPPostRequest(HTTPTransportUtils.java:284)
>         org.apache.axis2.transport.http.AxisServlet.doPost(AxisServlet.java:136)
>         javax.servlet.http.HttpServlet.service(HttpServlet.java:709)
>         javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
> </pre></p><p><b>note</b> <u>The full stack trace of the root cause is
> available in the Apache Tomcat/5.5.9 logs.</u></p><HR size="1"
> noshade="noshade"><h3>Apache Tomcat/5.5.9</h3></body></html>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: axis-dev-unsubscribe@ws.apache.org
> For additional commands, e-mail: axis-dev-help@ws.apache.org
>
>

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