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 "Samisa Abeysinghe (JIRA)" <ji...@apache.org> on 2010/12/21 15:28:00 UTC
[jira] Resolved: (RAMPART-293) NPE in RampartMessageData prevents
fault being returned to service consumer
[ https://issues.apache.org/jira/browse/RAMPART-293?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Samisa Abeysinghe resolved RAMPART-293.
---------------------------------------
Resolution: Fixed
Fix Version/s: NextVersion
Applied the patch. Revision: 1051506
> NPE in RampartMessageData prevents fault being returned to service consumer
> ---------------------------------------------------------------------------
>
> Key: RAMPART-293
> URL: https://issues.apache.org/jira/browse/RAMPART-293
> Project: Rampart
> Issue Type: Bug
> Components: rampart-core
> Affects Versions: 1.5
> Environment: Oracle OC4J 10.1.3, Axis2 1.5.1, Rampart 1.5
> Reporter: Michael Strasser
> Assignee: Samisa Abeysinghe
> Fix For: NextVersion
>
>
> When Rampart throws an exception due to policy violation or a provided handler throws an exception because of incorrect credentials, the SOAP fault that is created never reaches the consumer because RampartMessageData.<init> throws an NPE in line 372.
> The NPE occurs because the MessageContext object it is given has no AxisService. Most code in the constructor checks for null axisService but this line doesn't. A suggested patch is:
> --- RampartMessageData.java Wed Apr 21 16:51:31 2010
> +++ RampartMessageData.java Wed Apr 21 16:51:31 2010
> @@ -372 +372,3 @@
> - this.customClassLoader = msgCtx.getAxisService().getClassLoader();
> + if (axisService != null) {
> + this.customClassLoader = axisService.getClassLoader();
> + }
> I don't know if there are ramifications of having a null customClassLoader beyond this point: probably not, given that the web service call is failing!
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
---------------------------------------------------------------------
To unsubscribe, e-mail: java-dev-unsubscribe@axis.apache.org
For additional commands, e-mail: java-dev-help@axis.apache.org