Petals BC SOAP

A NPE occurs if the external webservice provider URL is defined by a placeholder not set at component level

Details

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

    1/ Install the BC SOAP for which no properties file is configured in its JBI descriptor (its a default installation)
    2/ Deploy a SOAP "provide" SU using a placeholder (for example "${myservice.url}") as URL for the external webservice provider
    3/ Invoke the service provider
    --> The following error occurs:

    [Petals.Container.Components.petals-bc-soap]-WARNING 2011-09-12 10:10:11,808 Catch an exception on the WS invocation : null
    java.lang.NullPointerException
            at org.apache.axis2.client.ServiceClient.cleanupTransport(ServiceClient.java:825)
            at org.ow2.petals.binding.soap.listener.outgoing.SOAPCaller.call(SOAPCaller.java:352)
            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:662)
    Show
    1/ Install the BC SOAP for which no properties file is configured in its JBI descriptor (its a default installation) 2/ Deploy a SOAP "provide" SU using a placeholder (for example "${myservice.url}") as URL for the external webservice provider 3/ Invoke the service provider --> The following error occurs:
    [Petals.Container.Components.petals-bc-soap]-WARNING 2011-09-12 10:10:11,808 Catch an exception on the WS invocation : null
    java.lang.NullPointerException
            at org.apache.axis2.client.ServiceClient.cleanupTransport(ServiceClient.java:825)
            at org.ow2.petals.binding.soap.listener.outgoing.SOAPCaller.call(SOAPCaller.java:352)
            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:662)
  • Environment:
    -

Activity

Hide
Christophe DENEUX added a comment - Fri, 14 Oct 2011 - 15:26:15 +0200

A check has been added on the external webservice URL to control that it is a valid URI.

Fixed in branch petals-entreprise-3.1.x

Show
Christophe DENEUX added a comment - Fri, 14 Oct 2011 - 15:26:15 +0200 A check has been added on the external webservice URL to control that it is a valid URI. Fixed in branch petals-entreprise-3.1.x
Hide
Christophe DENEUX added a comment - Fri, 14 Oct 2011 - 15:26:30 +0200

To merge in trunk

Show
Christophe DENEUX added a comment - Fri, 14 Oct 2011 - 15:26:30 +0200 To merge in trunk
Hide
noddoux added a comment - Thu, 15 Dec 2011 - 11:24:26 +0100

Merged to trunk

Show
noddoux added a comment - Thu, 15 Dec 2011 - 11:24:26 +0100 Merged to trunk

People

Dates

  • Created:
    Mon, 12 Sep 2011 - 10:21:04 +0200
    Updated:
    Thu, 16 Feb 2012 - 17:06:31 +0100
    Resolved:
    Thu, 15 Dec 2011 - 11:24:26 +0100