0 Replies Latest reply on Nov 23, 2011 8:36 AM by M -

    Unexpected exception cleaning smooks resource

    M - Newbie

      I get this exception sometimes usually right after or before SOAPClient in SOAP Client Action sends the message. There's a 'Smooks Transform' parameter set for all messages to add ws-security header for the request messages. Everything works but the exception is a bit alarming.

       

      Does anyone know how to get rid of this?:

      [WARN ] [org.jboss.soa.esb.services.soapui.SoapUIClientService] (pool-35-thread-1) [Unexpected exception cleaning smooks resource]

      1. java.lang.NullPointerException

                       at org.jboss.soa.esb.services.soapui.SoapUIClientService$SmooksCache.closeSmooks(SoapUIClientService.java:1290)

                       at org.jboss.soa.esb.services.soapui.SoapUIClientService$SmooksCache.checkExpired(SoapUIClientService.java:1283)

                       at org.jboss.soa.esb.services.soapui.SoapUIClientService$SmooksCache.release(SoapUIClientService.java:1259)

                       at org.jboss.soa.esb.services.soapui.SoapUIClientService.applySmooksTransform(SoapUIClientService.java:844)

                       at org.jboss.soa.esb.services.soapui.SoapUIClientService.buildSOAPMessage(SoapUIClientService.java:700)

                       at org.jboss.soa.esb.services.soapui.SoapUIClientService.buildRequest(SoapUIClientService.java:346)

                       at sun.reflect.GeneratedMethodAccessor526.invoke(Unknown Source)

                       at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)

                       at java.lang.reflect.Method.invoke(Method.java:597)

                       at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:157)

                       at org.jboss.mx.server.Invocation.dispatch(Invocation.java:96)

                       at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)

                       at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)

                       at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:668)

                       at org.jboss.soa.esb.actions.soap.MBeanSoapUIInvoker.buildRequest(MBeanSoapUIInvoker.java:76)

                       at org.jboss.soa.esb.actions.soap.SOAPClient.process(SOAPClient.java:433)

                       at org.jboss.soa.esb.listeners.message.ActionProcessingPipeline.processPipeline(ActionProcessingPipeline.java:649)

                       at org.jboss.soa.esb.listeners.message.ActionProcessingPipeline.processPipeline(ActionProcessingPipeline.java:603)

                       at org.jboss.soa.esb.listeners.message.ActionProcessingPipeline.process(ActionProcessingPipeline.java:433)

                       at org.jboss.soa.esb.listeners.message.MessageAwareListener$TransactionalRunner.run(MessageAwareListener.java:540)

                       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)

       

       

      Here's the actions configuration:

       

      <action
           class="RequestSomething" name="Request">    
          </action>
          <action class="org.jboss.soa.esb.actions.soap.SOAPClient" name="RequestSomethingSoapClient">
           <property name="SOAPAction" value="RequestSomethingSoapAction"/>
           <property name="smooksTransform" value="/transforms/header-transform.xml"/>
           <property name="endpointUrl" value="http://blaablaa.com/"/>
           <property name="responseAsOgnlMap" value="true"/>
           <property name="get-payload-location" value="RequestSomethingMap"/>
          </action>
          <action
           class="ResponseSomething" name="Response"/>
         </actions>
      
      

       

       

      And the smooks:

       

       

      <?xml version="1.0" encoding="UTF-8"?>
      <smooks-resource-list xmlns="http://www.milyn.org/xsd/smooks-1.0.xsd">
      
      
          <resource-config selector="header">
              <resource type="xsl">
                  <![CDATA[
                  <wsse:Security xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd">
                      <wsse:UsernameToken>
                          <wsse:Username>uname</wsse:Username>
                          <wsse:Password>pword</wsse:Password>
                      </wsse:UsernameToken>
                  </wsse:Security>
                  ]]>
              </resource>
              <param name="is-xslt-templatelet">true</param>
              <param name="action">addto</param>
          </resource-config>
      
      
      </smooks-resource-list>