Uploaded image for project: 'CXF'
  1. CXF
  2. CXF-4183

SOAP Fault cause NullPointerException

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.5.2
    • 2.4.7, 2.5.3
    • Soap Binding
    • Unknown

    Description

      The below exception happens "sometimes" I tried to trace the code. it seems like the XMLStreamWriter doesn't have namespace context

      (StaxUtils.java:727) String decUri = writer.getNamespaceContext().getNamespaceURI(prefix);

      Mar 15, 2012 11:23:14 PM org.apache.cxf.phase.PhaseInterceptorChain doDefaultLogging
      INFO: Application

      {http://example.com/blackboard/kb/}

      Subscriber#

      {http://example.com/blackboard/kb/}

      push has thrown exception, unwinding now: com.example.kb.failure.FeedServiceException: net.organon.platform.channel.ChannelException: java.lang.NullPointerException
      Mar 15, 2012 11:23:14 PM org.apache.cxf.binding.soap.interceptor.Soap12FaultOutInterceptor$Soap12FaultOutInterceptorInternal handleMessage
      INFO: class org.apache.cxf.binding.soap.interceptor.Soap12FaultOutInterceptor$Soap12FaultOutInterceptorInternalapplication/soap+xml
      Mar 15, 2012 11:23:14 PM org.apache.cxf.binding.soap.interceptor.Soap12FaultOutInterceptor$Soap12FaultOutInterceptorInternal handleMessage
      WARNING: Error writing to XMLStreamWriter.

      java.lang.NullPointerException
              at org.apache.cxf.staxutils.StaxUtils.writeElement(StaxUtils.java:727)
              at org.apache.cxf.staxutils.StaxUtils.writeElement(StaxUtils.java:693)
              at org.apache.cxf.staxutils.StaxUtils.writeNode(StaxUtils.java:808)
              at org.apache.cxf.binding.soap.interceptor.Soap12FaultOutInterceptor$Soap12FaultOutInterceptorInternal.handleMessage(Soap12FaultOutInterceptor.java:124)
              at org.apache.cxf.binding.soap.interceptor.Soap12FaultOutInterceptor$Soap12FaultOutInterceptorInternal.handleMessage(Soap12FaultOutInterceptor.java:56)
              at org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:263)
              at org.apache.cxf.interceptor.AbstractFaultChainInitiatorObserver.onMessage(AbstractFaultChainInitiatorObserver.java:113)
              at org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:323)
              at org.apache.cxf.transport.ChainInitiationObserver.onMessage(ChainInitiationObserver.java:123)
              at net.organon.messaging.xmpp.soap.XMPPSOAPTransporter$1.run(XMPPSOAPTransporter.java:238)
              at java.security.AccessController.doPrivileged(Native Method)
              at javax.security.auth.Subject.doAs(Subject.java:415)
              at net.organon.security.identify.runtime.SSOSubject.doAs(SSOSubject.java:180)
              at net.organon.messaging.xmpp.soap.XMPPSOAPTransporter.handleMessage(XMPPSOAPTransporter.java:234)
              at net.organon.messaging.xmpp.model.stanza.processor.AbstractAgent.execute(AbstractAgent.java:70)
              at net.organon.messaging.xmpp.model.stanza.processor.AbstractComponent.execute(AbstractComponent.java:82)
              at net.organon.messaging.xmpp.runtime.channel.XMPPEventContext.sendUpstream(XMPPEventContext.java:122)
              at net.organon.platform.channel.AbstractChannelEventContext.sendUpstream(AbstractChannelEventContext.java:146)
              at net.organon.platform.channel.UpstreamChannelEventContext.call(UpstreamChannelEventContext.java:43)
              at net.organon.platform.channel.UpstreamChannelEventContext.call(UpstreamChannelEventContext.java:19)
              at net.organon.messaging.xmpp.runtime.channel.AbstractXMPPChannel.writeOperation(AbstractXMPPChannel.java:273)
              at net.organon.messaging.xmpp.runtime.channel.AbstractXMPPChannel.writeOperation(AbstractXMPPChannel.java:263)
              at net.organon.messaging.xmpp.runtime.channel.AbstractXMPPChannel.writeOperation(AbstractXMPPChannel.java:256)
              at net.organon.messaging.xmpp.runtime.channel.AbstractXMPPChannel.writeUpstream(AbstractXMPPChannel.java:230)
              at net.organon.platform.channel.DefaultUpstreamChannel.writeUpstream(DefaultUpstreamChannel.java:35)
              at net.organon.messaging.xmpp.runtime.channel.AbstractXMPPRouterChannel.route(AbstractXMPPRouterChannel.java:273)
              at net.organon.messaging.xmpp.runtime.channel.AbstractXMPPRouterChannel.writeUpstream(AbstractXMPPRouterChannel.java:248)
              at net.organon.messaging.xmpp.runtime.channel.AbstractXMPPChannel.writeUpstream(AbstractXMPPChannel.java:241)
              at net.organon.messaging.xmpp.runtime.channel.AbstractXMPPChannel.writeUpstream(AbstractXMPPChannel.java:232)
              at net.organon.platform.channel.DefaultUpstreamChannel.writeUpstream(DefaultUpstreamChannel.java:35)
              at net.organon.messaging.bus.EventQueue.writeUpstream(EventQueue.java:191)
              at net.organon.platform.channel.DefaultUpstreamChannel.writeUpstream(DefaultUpstreamChannel.java:104)
              at net.organon.platform.channel.DefaultUpstreamChannel.writeUpstream(DefaultUpstreamChannel.java:42)
              at net.organon.platform.channel.DefaultUpstreamChannel.writeUpstream(DefaultUpstreamChannel.java:35)
              at net.organon.messaging.bus.EventQueue.writeDownstream(EventQueue.java:177)
              at net.organon.platform.channel.DefaultChannel.writeDownstream(DefaultChannel.java:104)
              at net.organon.platform.channel.DefaultChannel.writeDownstream(DefaultChannel.java:42)
              at net.organon.messaging.bus.EventFuture$1.run(EventFuture.java:70)
              at net.organon.messaging.bus.EventFuture$1.run(EventFuture.java:65)
              at java.security.AccessController.doPrivileged(Native Method)
              at javax.security.auth.Subject.doAs(Subject.java:415)
              at net.organon.security.identify.runtime.SSOSubject.doAs(SSOSubject.java:180)
              at net.organon.messaging.bus.EventFuture.run(EventFuture.java:65)
              at net.organon.messaging.bus.EventQueue.execute(EventQueue.java:225)
              at net.organon.messaging.bus.EventQueue$EventQueueProcessor.run(EventQueue.java:235)
              at net.organon.platform.internal.runtime.InternalProcessManager$Worker$1.run(InternalProcessManager.java:190)
              at java.security.AccessController.doPrivileged(Native Method)
              at javax.security.auth.Subject.doAs(Subject.java:415)
              at net.organon.security.identify.runtime.SSOSubject.doAs(SSOSubject.java:180)
              at net.organon.platform.internal.runtime.InternalProcessManager$Worker.run(InternalProcessManager.java:183)
              at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)
              at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)
              at java.lang.Thread.run(Thread.java:722)
      

      Mar 15, 2012 11:23:14 PM org.apache.cxf.phase.PhaseInterceptorChain doDefaultLogging
      INFO: Application

      {http://example.com/blackboard/kb/}

      Subscriber#

      {http://example/blackboard/kb/}

      push has thrown exception, unwinding now: com.example.blackboard.kb.failure.FeedServiceException: net.organon.platform.channel.ChannelException: java.lang.NullPointerException

      Attachments

        Activity

          People

            dkulp Daniel Kulp
            mina Mina R Waheeb
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: