[
https://issues.apache.org/jira/browse/AXIS2-4244?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13094120#comment-13094120
]
Keith Roberts commented on AXIS2-4244:
--------------------------------------
I was also getting this NPE in 1.6.0 when calling webservices using a generated
stub, until I discovered a workaround.
By default, generated stubs end up calling this
ConfigurationContextFactory.createConfigurationContextFromFileSystem(null,
null);
And that works in 1.6.0
My code was using this (I need to modify the context to add a phase)
ConfigurationContextFactory.createDefaultConfigurationContext()
In 1.5.4, this worked, but in 1.6.0, this no longer works (NPE). Seems like a
bug/regression.
I fixed my problem by using the 1st call above to create my Stub instances.
> NullPointerException in generated Stub.
> ---------------------------------------
>
> Key: AXIS2-4244
> URL: https://issues.apache.org/jira/browse/AXIS2-4244
> Project: Axis2
> Issue Type: Bug
> Affects Versions: 1.4
> Reporter: Jan Thomä
> Priority: Blocker
> Attachments: stack.txt
>
>
> I have created a Stub from a WSDL using XMLBeans. Now i get an NPE inside the
> generated stub around this code line:
> throw f;
> }
> } finally {
>
> _messageContext.getTransportOut().getSender().cleanup(_messageContext);
> }
> }
> It looks like getTransportOut() returns null leading to the NPE.
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]