10 Replies Latest reply on Jul 27, 2011 4:58 AM by llwang0455

    servicemix-cxf-bc WSDLQueryException

    llwang0455

      Hi,all,

      I encounted a problem when using servicemix-cxf-bc to proxy an external webservice.

      I use servicemix 4.2.0,and use the osgi package to proxy webservice.

       

      my beans.xml file and the wsdl file are in the attach files.

       

      The problem is when I deploy the package into servicemix_home\deploy folder,it works and in the explorer I can get the wsdl xml file,but when I delete the package from the deploy folder and then copy the same package as before ,I can't get the wsdl xml file from the explorer,however,the bundle's state is active ,and I can send the soap message to the proxy web service ,in the log file, I can see the WSDLQueryException occured,the detail is :

       

      org.apache.cxf.transport.http.WSDLQueryException: Exception occurred while trying to process http://10.10.31.11:22332/httpReceiver/0303-01-20110425-0001/?wsdl

           at org.apache.cxf.transport.http.WSDLQueryHandler.writeResponse(WSDLQueryHandler.java:228)

           at org.apache.cxf.transport.http_jetty.JettyHTTPDestination.doService(JettyHTTPDestination.java:251)

           at org.apache.cxf.transport.http_jetty.JettyHTTPHandler.handle(JettyHTTPHandler.java:70)

           at org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:765)

           at org.mortbay.jetty.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:230)

           at org.mortbay.jetty.handler.HandlerList.handle(HandlerList.java:49)

           at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:152)

           at org.mortbay.jetty.Server.handle(Server.java:326)

           at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:542)

           at org.mortbay.jetty.HttpConnection$RequestHandler.headerComplete(HttpConnection.java:923)

           at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:547)

           at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:212)

           at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:404)

           at org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java:409)

           at org.mortbay.thread.QueuedThreadPool$PoolThread.run(QueuedThreadPool.java:582)

      Caused by: java.lang.IllegalStateException: The bundle is uninstalled.

           at org.apache.felix.framework.Felix.getBundleResource(Felix.java:1391)

           at org.apache.felix.framework.BundleImpl.getResource(BundleImpl.java:598)

           at org.springframework.osgi.util.BundleDelegatingClassLoader.findResource(BundleDelegatingClassLoader.java:124)

           at org.springframework.osgi.util.BundleDelegatingClassLoader.getResource(BundleDelegatingClassLoader.java:146)

           at java.lang.ClassLoader.getResourceAsStream(ClassLoader.java:1159)

           at javax.xml.transform.SecuritySupport$4.run(SecuritySupport.java:94)

           at java.security.AccessController.doPrivileged(Native Method)

           at javax.xml.transform.SecuritySupport.getResourceAsStream(SecuritySupport.java:87)

           at javax.xml.transform.FactoryFinder.findJarServiceProvider(FactoryFinder.java:248)

           at javax.xml.transform.FactoryFinder.find(FactoryFinder.java:221)

           at javax.xml.transform.TransformerFactory.newInstance(TransformerFactory.java:102)

           at org.apache.cxf.helpers.XMLUtils.newTransformer(XMLUtils.java:119)

           at org.apache.cxf.wsdl11.SchemaSerializer.writeXml(SchemaSerializer.java:56)

           at org.apache.cxf.wsdl11.SchemaSerializer.marshall(SchemaSerializer.java:49)

           at com.ibm.wsdl.xml.WSDLWriterImpl.printExtensibilityElements(Unknown Source)

           at com.ibm.wsdl.xml.WSDLWriterImpl.printTypes(Unknown Source)

           at com.ibm.wsdl.xml.WSDLWriterImpl.printDefinition(Unknown Source)

           at com.ibm.wsdl.xml.WSDLWriterImpl.writeWSDL(Unknown Source)

           at com.ibm.wsdl.xml.WSDLWriterImpl.getDocument(Unknown Source)

           at org.apache.cxf.transport.http.WSDLQueryHandler.writeResponse(WSDLQueryHandler.java:180)

           ... 14 more

       

      Is anyone who encounted the same issue or who knows why the exception throwed out?

       

      Thanks for your attention!

       

      Edited by: llwang0455 on Jul 11, 2011 3:09 AM