axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Andre Pankraz (JIRA)" <>
Subject [jira] Created: (RAMPART-325) NullPointerException with UsernameToken Policy and MTOM Policy without Rampart Config in WSDL
Date Sun, 27 Feb 2011 16:22:39 GMT
NullPointerException with UsernameToken Policy and MTOM Policy without Rampart Config in WSDL

                 Key: RAMPART-325
             Project: Rampart
          Issue Type: Bug
          Components: rampart-core
    Affects Versions: 1.5.1
         Environment: JDK 1.6.0_23, Windows
            Reporter: Andre Pankraz
            Priority: Critical


16:56:01,973 INFO  [STDOUT] [ERROR] 
	at org.apache.rampart.policy.RampartPolicyData.getOptimizePartsConfig(
	at org.apache.rampart.handler.RampartSender.invoke(
	at org.apache.axis2.engine.Phase.invoke(
	at org.apache.axis2.engine.AxisEngine.invoke(
	at org.apache.axis2.engine.AxisEngine.send(
	at org.apache.axis2.receivers.AbstractInOutMessageReceiver.invokeBusinessLogic(
	at org.apache.axis2.receivers.AbstractMessageReceiver.receive(
	at org.apache.axis2.engine.AxisEngine.receive(
	at org.apache.axis2.transport.http.HTTPTransportUtils.processHTTPPostRequest(
	at org.apache.axis2.transport.http.AxisServlet.doPost(

I think the problem is a missing rampart-config in the WSDL...but this additional configuration
isn't really necessary for MTOM Policy together with UserName Token Security Policy. (no message
signature or encryption involved)

Possible Bugfix - it works in our case with this small change:

In org.apache.rampart.MessageBuilder, Line 161, additional Null check:

        * Checking whether MTOMSerializable is there. If so set optimizeElement.
        * */
        	msgCtx.setProperty(Constants.Configuration.ENABLE_MTOM, Constants.VALUE_TRUE);
        	RampartConfig rampartConfig = rpd.getRampartConfig();
			if (rampartConfig != null) {
				OptimizePartsConfig config = rampartConfig.getOptimizeParts();
				if (config != null) {
							config.getExpressions(), config.getNamespaces());

This message is automatically generated by JIRA.
For more information on JIRA, see:


To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message