Petals BC SOAP

NPE when the partner service returns an empty body in the consumer mode

Details

  • Type: Bug Bug
  • Status: Resolved Resolved
  • Priority: Major Major
  • Resolution: Fixed
  • Affects Version/s: 4.0.4
  • Fix Version/s: 4.0.4
  • Component/s: None
  • Security Level: Public
  • Description:
    Hide

    If the partner service returns an empty body in the consumer mode, there is a NPE:

    [Petals.Container.Components.petals-bc-soap]-FINE 2010-10-20 16:14:45,037 OUTGOING Payload : <pet:multiply xmlns:pet="http://petals.ow2.org/" xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
    <a>?</a>
    <b>?</b>
    </pet:multiply>
    [Petals.Container.Components.petals-bc-soap]-WARNING 2010-10-20 16:15:17,222 Catch an exception on the WS invocation : null
    java.lang.NullPointerException
    at org.ow2.petals.binding.soap.util.Marshaller.setProperties(Marshaller.java:488)
    at org.ow2.petals.binding.soap.listener.outgoing.SOAPCaller.call(SOAPCaller.java:337)
    at org.ow2.petals.binding.soap.listener.outgoing.JBIListener.invokeCaller(JBIListener.java:132)
    at org.ow2.petals.binding.soap.listener.outgoing.JBIListener.onJBIMessage(JBIListener.java:156)
    at org.ow2.petals.component.framework.process.MessageExchangeProcessor.processInOutAsProvider(MessageExchangeProcessor.java:637)
    at org.ow2.petals.component.framework.process.MessageExchangeProcessor.processAsProvider(MessageExchangeProcessor.java:372)
    at org.ow2.petals.component.framework.process.MessageExchangeProcessor.process(MessageExchangeProcessor.java:234)
    at org.ow2.petals.component.framework.process.MessageExchangeProcessor.run(MessageExchangeProcessor.java:177)
    at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
    at java.lang.Thread.run(Thread.java:619)
    [Petals.Container.Components.petals-bc-soap]-FINE 2010-10-20 16:15:17,224 Intercepting message processing on ACCEPT_RESPONSE
    [Petals.Container.Components.petals-bc-soap]-FINEST 2010-10-20 16:15:17,224 Message Fault with Id 'petals:uid:C4ECA8A4EDE398D25B275713143429148' to send
    [Petals.Container.Components.petals-bc-soap]-FINEST 2010-10-20 16:15:17,224 Operation : {http://petals.ow2.org/}multiply
    [Petals.Container.Components.petals-bc-soap]-FINEST 2010-10-20 16:15:17,225 MEP : http://www.w3.org/2004/08/wsdl/in-out
    [Petals.Container.Components.petals-bc-soap]-FINEST 2010-10-20 16:15:17,226 Message Content : <?xml version="1.0" encoding="UTF-8" standalone="no"?><soapenv:Fault xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"><faultcode>soapenv:Server</faultcode><faultstring><![CDATA[NullPointerException]]></faultstring><faultactor>http://petals.ow2.org/petals-bc-soap</faultactor><detail><stackTrace><![CDATA[org.ow2.petals.component.framework.api.exception.SOAP11FaultServerException: NullPointerException
    at org.ow2.petals.component.framework.process.MessageExchangeProcessor.processInOutAsProvider(MessageExchangeProcessor.java:664)
    at org.ow2.petals.component.framework.process.MessageExchangeProcessor.processAsProvider(MessageExchangeProcessor.java:372)
    at org.ow2.petals.component.framework.process.MessageExchangeProcessor.process(MessageExchangeProcessor.java:234)
    at org.ow2.petals.component.framework.process.MessageExchangeProcessor.run(MessageExchangeProcessor.java:177)
    at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
    at java.lang.Thread.run(Thread.java:619)
    ]]></stackTrace></detail></soapenv:Fault>
    [Petals.Container.Components.petals-bc-soap]-FINE 2010-10-20 16:15:17,227 Receive an Active status message
    [Petals.Container.Components.petals-bc-soap]-FINE 2010-10-20 16:15:17,227 We found a fault into the JBI exchange.
    [Petals.Container.Components.petals-bc-soap]-FINEST 2010-10-20 16:15:17,228 Message acknowledgement DONE with Id 'petals:uid:C4ECA8A4EDE398D25B275713143429148' to send
    [Petals.Container.Components.petals-bc-soap]-FINE 2010-10-20 16:15:17,229 Accepting a JBI message with Id : petals:uid:C4ECA8A4EDE398D25B275713143429148
    [Petals.Container.Components.petals-bc-soap.jetty]-FINEST 2010-10-20 16:15:17,231 RESPONSE /petals/services/IntegrationServiceSOAPByPetals 500

    Show
    If the partner service returns an empty body in the consumer mode, there is a NPE: [Petals.Container.Components.petals-bc-soap]-FINE 2010-10-20 16:14:45,037 OUTGOING Payload : <pet:multiply xmlns:pet="http://petals.ow2.org/" xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"> <a>?</a> <b>?</b> </pet:multiply> [Petals.Container.Components.petals-bc-soap]-WARNING 2010-10-20 16:15:17,222 Catch an exception on the WS invocation : null java.lang.NullPointerException at org.ow2.petals.binding.soap.util.Marshaller.setProperties(Marshaller.java:488) at org.ow2.petals.binding.soap.listener.outgoing.SOAPCaller.call(SOAPCaller.java:337) at org.ow2.petals.binding.soap.listener.outgoing.JBIListener.invokeCaller(JBIListener.java:132) at org.ow2.petals.binding.soap.listener.outgoing.JBIListener.onJBIMessage(JBIListener.java:156) at org.ow2.petals.component.framework.process.MessageExchangeProcessor.processInOutAsProvider(MessageExchangeProcessor.java:637) at org.ow2.petals.component.framework.process.MessageExchangeProcessor.processAsProvider(MessageExchangeProcessor.java:372) at org.ow2.petals.component.framework.process.MessageExchangeProcessor.process(MessageExchangeProcessor.java:234) at org.ow2.petals.component.framework.process.MessageExchangeProcessor.run(MessageExchangeProcessor.java:177) at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) at java.lang.Thread.run(Thread.java:619) [Petals.Container.Components.petals-bc-soap]-FINE 2010-10-20 16:15:17,224 Intercepting message processing on ACCEPT_RESPONSE [Petals.Container.Components.petals-bc-soap]-FINEST 2010-10-20 16:15:17,224 Message Fault with Id 'petals:uid:C4ECA8A4EDE398D25B275713143429148' to send [Petals.Container.Components.petals-bc-soap]-FINEST 2010-10-20 16:15:17,224 Operation : {http://petals.ow2.org/}multiply [Petals.Container.Components.petals-bc-soap]-FINEST 2010-10-20 16:15:17,225 MEP : http://www.w3.org/2004/08/wsdl/in-out [Petals.Container.Components.petals-bc-soap]-FINEST 2010-10-20 16:15:17,226 Message Content : <?xml version="1.0" encoding="UTF-8" standalone="no"?><soapenv:Fault xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"><faultcode>soapenv:Server</faultcode><faultstring><![CDATA[NullPointerException]]></faultstring><faultactor>http://petals.ow2.org/petals-bc-soap</faultactor><detail><stackTrace><![CDATA[org.ow2.petals.component.framework.api.exception.SOAP11FaultServerException: NullPointerException at org.ow2.petals.component.framework.process.MessageExchangeProcessor.processInOutAsProvider(MessageExchangeProcessor.java:664) at org.ow2.petals.component.framework.process.MessageExchangeProcessor.processAsProvider(MessageExchangeProcessor.java:372) at org.ow2.petals.component.framework.process.MessageExchangeProcessor.process(MessageExchangeProcessor.java:234) at org.ow2.petals.component.framework.process.MessageExchangeProcessor.run(MessageExchangeProcessor.java:177) at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) at java.lang.Thread.run(Thread.java:619) ]]></stackTrace></detail></soapenv:Fault> [Petals.Container.Components.petals-bc-soap]-FINE 2010-10-20 16:15:17,227 Receive an Active status message [Petals.Container.Components.petals-bc-soap]-FINE 2010-10-20 16:15:17,227 We found a fault into the JBI exchange. [Petals.Container.Components.petals-bc-soap]-FINEST 2010-10-20 16:15:17,228 Message acknowledgement DONE with Id 'petals:uid:C4ECA8A4EDE398D25B275713143429148' to send [Petals.Container.Components.petals-bc-soap]-FINE 2010-10-20 16:15:17,229 Accepting a JBI message with Id : petals:uid:C4ECA8A4EDE398D25B275713143429148 [Petals.Container.Components.petals-bc-soap.jetty]-FINEST 2010-10-20 16:15:17,231 RESPONSE /petals/services/IntegrationServiceSOAPByPetals 500
  • Environment:
    os:all

Activity

Transition Status Change Time Execution Times Last Executer Last Execution Date
New New Open Open
9s
1
noddoux
Wed, 20 Oct 2010 - 16:18:20 +0200
Open Open In Progress In Progress
17m 8s
1
noddoux
Wed, 20 Oct 2010 - 16:35:28 +0200
In Progress In Progress Resolved Resolved
6s
1
noddoux
Wed, 20 Oct 2010 - 16:35:34 +0200

People

  • Assignee:
    noddoux
    Reporter:
    noddoux
  • Watchers:
    0

Dates

  • Created:
    Wed, 20 Oct 2010 - 16:18:11 +0200
    Updated:
    Wed, 20 Oct 2010 - 16:35:34 +0200
    Resolved:
    Wed, 20 Oct 2010 - 16:35:34 +0200