Uploaded image for project: 'SwitchYard'
  1. SwitchYard
  2. SWITCHYARD-2818

Test failure in quickstarts, soap-attachment and soap-mtom

    Details

      Description

      soap-attachment and soap-mtom quickstarts fail to build due to test failure:

      soap-attachment
      java.lang.AssertionError
              at org.switchyard.quickstarts.soap.attachment.SoapAttachmentTest.testSwitchYardWebService(SoapAttachmentTest.java:49)
      
      (...snip...)
      
      02:54:00,882 WARN  [org.apache.cxf.phase.PhaseInterceptorChain] Interceptor for {urn:switchyard-quickstart:soap-attachment:1.0}ImageServiceService has thrown exception, unwinding now
      java.lang.ClassCastException: javax.mail.internet.InternetHeaders cannot be cast to java.util.Map
              at org.apache.cxf.binding.soap.interceptor.SoapActionInInterceptor.getSoapAction(SoapActionInInterceptor.java:86)
              at org.apache.cxf.binding.soap.interceptor.SoapActionInInterceptor.handleMessage(SoapActionInInterceptor.java:121)
              at org.apache.cxf.binding.soap.interceptor.SoapActionInInterceptor.handleMessage(SoapActionInInterceptor.java:45)
              at org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:272)
              at org.apache.cxf.transport.ChainInitiationObserver.onMessage(ChainInitiationObserver.java:121)
              at org.apache.cxf.transport.http_jetty.JettyHTTPDestination.serviceRequest(JettyHTTPDestination.java:355)
              at org.apache.cxf.transport.http_jetty.JettyHTTPDestination.doService(JettyHTTPDestination.java:319)
              at org.apache.cxf.transport.http_jetty.JettyHTTPHandler.handle(JettyHTTPHandler.java:66)
              at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1088)
              at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1024)
              at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:135)
              at org.eclipse.jetty.server.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:255)
              at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:116)
              at org.eclipse.jetty.server.Server.handle(Server.java:370)
              at org.eclipse.jetty.server.AbstractHttpConnection.handleRequest(AbstractHttpConnection.java:494)
              at org.eclipse.jetty.server.AbstractHttpConnection.content(AbstractHttpConnection.java:982)
              at org.eclipse.jetty.server.AbstractHttpConnection$RequestHandler.content(AbstractHttpConnection.java:1043)
              at org.eclipse.jetty.http.HttpParser.parseNext(HttpParser.java:865)
              at org.eclipse.jetty.http.HttpParser.parseAvailable(HttpParser.java:240)
              at org.eclipse.jetty.server.AsyncHttpConnection.handle(AsyncHttpConnection.java:82)
              at org.eclipse.jetty.io.nio.SelectChannelEndPoint.handle(SelectChannelEndPoint.java:667)
              at org.eclipse.jetty.io.nio.SelectChannelEndPoint$1.run(SelectChannelEndPoint.java:52)
              at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:608)
              at org.eclipse.jetty.util.thread.QueuedThreadPool$3.run(QueuedThreadPool.java:543)
              at java.lang.Thread.run(Thread.java:745)
      
      soap-mtom
      javax.xml.ws.soap.SOAPFaultException: Marshalling Error: null
              at org.switchyard.quickstarts.soap.mtom.SoapMtomTest.testSwitchYardWebService(SoapMtomTest.java:47)
      Caused by: java.lang.NullPointerException
              at org.switchyard.quickstarts.soap.mtom.SoapMtomTest.testSwitchYardWebService(SoapMtomTest.java:47)
      
      (...snip...)
      
      02:54:14,720 WARN  [org.apache.cxf.phase.PhaseInterceptorChain] Interceptor for {urn:switchyard-quickstart:soap-mtom:1.0}ImageServiceService#{urn:switchyard-quickstart:
      soap-mtom:1.0}resizeImage has thrown exception, unwinding now
      org.apache.cxf.interceptor.Fault: Marshalling Error: null
              at org.apache.cxf.jaxb.JAXBEncoderDecoder.marshall(JAXBEncoderDecoder.java:267)
              at org.apache.cxf.jaxb.io.DataWriterImpl.write(DataWriterImpl.java:229)
              at org.apache.cxf.interceptor.AbstractOutDatabindingInterceptor.writeParts(AbstractOutDatabindingInterceptor.java:122)
              at org.apache.cxf.interceptor.BareOutInterceptor.handleMessage(BareOutInterceptor.java:68)
              at org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:272)
              at org.apache.cxf.endpoint.ClientImpl.doInvoke(ClientImpl.java:572)
              at org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:481)
              at org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:382)
              at org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:335)
              at org.apache.cxf.frontend.ClientProxy.invokeSync(ClientProxy.java:96)
              at org.apache.cxf.jaxws.JaxWsClientProxy.invoke(JaxWsClientProxy.java:136)
              at com.sun.proxy.$Proxy83.resizeImage(Unknown Source)
              at org.switchyard.quickstarts.soap.mtom.SoapMtomClient.sendMessage(SoapMtomClient.java:60)
              at org.switchyard.quickstarts.soap.mtom.SoapMtomTest.testSwitchYardWebService(SoapMtomTest.java:47)
              at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
              at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
              at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
              at java.lang.reflect.Method.invoke(Method.java:606)
              at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:47)
              at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)
              at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:44)
              at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17)
              at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:271)
              at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:70)
              at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:50)
              at org.junit.runners.ParentRunner$3.run(ParentRunner.java:238)
              at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:63)
              at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:236)
              at org.junit.runners.ParentRunner.access$000(ParentRunner.java:53)
              at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:229)
              at org.junit.runners.ParentRunner.run(ParentRunner.java:309)
              at org.switchyard.test.SwitchYardRunner.run(SwitchYardRunner.java:94)
              at org.apache.maven.surefire.junit4.JUnit4Provider.execute(JUnit4Provider.java:344)
              at org.apache.maven.surefire.junit4.JUnit4Provider.executeWithRerun(JUnit4Provider.java:269)
              at org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4Provider.java:240)
              at org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java:184)
              at org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoader(ForkedBooter.java:286)
              at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:240)
              at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:121)
      Caused by: java.lang.NullPointerException
              at java.net.URLEncoder.encode(URLEncoder.java:205)
              at org.apache.cxf.attachment.AttachmentUtil.createContentID(AttachmentUtil.java:207)
              at org.apache.cxf.attachment.AttachmentUtil.createMtomAttachment(AttachmentUtil.java:373)
              at org.apache.cxf.jaxb.attachment.JAXBAttachmentMarshaller.addMtomAttachment(JAXBAttachmentMarshaller.java:56)
              at com.sun.xml.bind.v2.runtime.output.MTOMXmlOutput.text(MTOMXmlOutput.java:125)
              at com.sun.xml.bind.v2.runtime.XMLSerializer.text(XMLSerializer.java:421)
              at com.sun.xml.bind.v2.model.impl.RuntimeBuiltinLeafInfoImpl$PcdataImpl.writeText(RuntimeBuiltinLeafInfoImpl.java:187)
              at com.sun.xml.bind.v2.runtime.LeafBeanInfoImpl.serializeBody(LeafBeanInfoImpl.java:130)
              at com.sun.xml.bind.v2.runtime.XMLSerializer.childAsXsiType(XMLSerializer.java:696)
              at com.sun.xml.bind.v2.runtime.ElementBeanInfoImpl$1.serializeBody(ElementBeanInfoImpl.java:155)
              at com.sun.xml.bind.v2.runtime.ElementBeanInfoImpl$1.serializeBody(ElementBeanInfoImpl.java:130)
              at com.sun.xml.bind.v2.runtime.ElementBeanInfoImpl.serializeBody(ElementBeanInfoImpl.java:332)
              at com.sun.xml.bind.v2.runtime.ElementBeanInfoImpl.serializeRoot(ElementBeanInfoImpl.java:339)
              at com.sun.xml.bind.v2.runtime.ElementBeanInfoImpl.serializeRoot(ElementBeanInfoImpl.java:75)
              at com.sun.xml.bind.v2.runtime.XMLSerializer.childAsRoot(XMLSerializer.java:494)
              at com.sun.xml.bind.v2.runtime.MarshallerImpl.write(MarshallerImpl.java:323)
              at com.sun.xml.bind.v2.runtime.MarshallerImpl.marshal(MarshallerImpl.java:251)
              at javax.xml.bind.helpers.AbstractMarshallerImpl.marshal(AbstractMarshallerImpl.java:95)
              at org.apache.cxf.jaxb.JAXBEncoderDecoder.writeObject(JAXBEncoderDecoder.java:616)
              at org.apache.cxf.jaxb.JAXBEncoderDecoder.marshall(JAXBEncoderDecoder.java:240)
              ... 38 more
      

        Gliffy Diagrams

          Attachments

            Issue Links

              Activity

                People

                • Assignee:
                  igarashitm tomohisa igarashi
                  Reporter:
                  igarashitm tomohisa igarashi
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  2 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved: