9 Replies Latest reply on May 12, 2007 5:50 PM by Frank Langelage

    JBoss 4.0.5--JAX-RPC has Issues?

    Russ Newbie

      I have a simple web service using JAX-RPC. I have setup the service to make the web server think it is dealing with a servlet. When I use Eclipse's Web Service Explored for testing the service, I receive this error on the server:

      [13:29:42,196] [ERROR] [[WebServiceImpl]] [Servlet.service() for servlet WebServiceImpl threw exception]
      java.lang.ExceptionInInitializerError
       at java.lang.Class.forName0(Native Method)
       at java.lang.Class.forName(Class.java:164)
       at org.jboss.ws.soap.attachment.ContentHandlerRegistry.<clinit>(ContentHandlerRegistry.java:51)
       at org.jboss.ws.xop.XOPUnmarshallerImpl.<clinit>(XOPUnmarshallerImpl.java:59)
       at org.jboss.ws.jaxrpc.encoding.SimpleDeserializer.deserialize(SimpleDeserializer.java:52)
       at org.jboss.ws.soap.SOAPContentElement.getObjectValue(SOAPContentElement.java:235)
       at org.jboss.ws.binding.EndpointInvocation.transformPayloadValue(EndpointInvocation.java:233)
       at org.jboss.ws.binding.EndpointInvocation.getRequestParamValue(EndpointInvocation.java:103)
       at org.jboss.ws.binding.EndpointInvocation.getRequestPayload(EndpointInvocation.java:117)
       at org.jboss.ws.server.ServiceEndpointInvokerJSE.invokeServiceEndpoint(ServiceEndpointInvokerJSE.java:94)
       at org.jboss.ws.server.ServiceEndpointInvoker.invoke(ServiceEndpointInvoker.java:115)
       at org.jboss.ws.server.ServiceEndpoint.handleRequest(ServiceEndpoint.java:209)
       at org.jboss.ws.server.ServiceEndpointManager.processSOAPRequest(ServiceEndpointManager.java:355)
       at org.jboss.ws.server.StandardEndpointServlet.doPost(StandardEndpointServlet.java:115)
       at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
       at org.jboss.ws.server.StandardEndpointServlet.service(StandardEndpointServlet.java:76)
       at javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
       at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
       at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
       at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
       at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
       at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
       at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
       at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
       at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:175)
       at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:74)
       at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
       at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
       at org.jboss.web.tomcat.tc5.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:156)
       at org.apache.catalina.valves.FastCommonAccessLogValve.invoke(FastCommonAccessLogValve.java:495)
       at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
       at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
       at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869)
       at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:664)
       at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
       at org.apache.tomcat.util.net.MasterSlaveWorkerThread.run(MasterSlaveWorkerThread.java:112)
       at java.lang.Thread.run(Thread.java:595)
      Caused by: java.lang.IllegalArgumentException: failed to parse:image/bmp, image/x-bmp, image/x-windows-bmp
       at java.awt.datatransfer.DataFlavor.<init>(DataFlavor.java:292)
       at javax.activation.ActivationDataFlavor.<init>(ActivationDataFlavor.java:81)
       at org.jboss.ws.soap.attachment.ImageDataContentHandler.buildFlavors(ImageDataContentHandler.java:77)
       at org.jboss.ws.soap.attachment.ImageDataContentHandler.<clinit>(ImageDataContentHandler.java:63)
       ... 37 more
      


      Any help in sheding some light on this issue would be greatly appreciated. We have several people effected by this while one indidividual is not. He's version of JBoss 4.0.5 is working without an issue although we have the same files and configurations.

        • 1. Re: JBoss 4.0.5--JAX-RPC has Issues?
          Russ Newbie

          When I look at the reponse within the Web Services Explorer I see this:

          --------------------------------------------------------------------------------
          
          The SOAP response failed schema validation. Please switch to the source view for the SOAP response in XML format
          
          --------------------------------------------------------------------------------
          




          I've turned on the debugging for web services and I see this when the service is ran:


          --------------------------------------------------------------------------------
          [11:36:14,125] [DEBUG] [SOAPMessageDispatcher] [getDispatchDestination: {http://workflow.company.com/}getDepartments][11:36:14,156] [DEBUG] [SOAPBindingProvider] [unbindRequestMessage: {http://workflow.company.com/}getDepartments][11:36:14,156] [DEBUG] [EndpointInvocation] [setRequestParamValue: [name=userId,value=org.jboss.ws.soap.SOAPContentElement]][11:36:14,156] [DEBUG] [EndpointInvocation] [setRequestParamValue: [name=operId,value=org.jboss.ws.soap.SOAPContentElement]][11:36:14,156] [DEBUG] [OperationMetaData] [Get java method for: {http://workflow.company.com/}getDepartments][11:36:14,156] [DEBUG] [OperationMetaData] [Found best matching java method: public abstract java.lang.String com.company.dept.product.webservice.WebServiceImpl_SEI.getDepartments(java.lang.String,java.lang.String) throws java.lang.Exception][11:36:14,156] [DEBUG] [ServiceEndpointInvokerJSE] [invokeServiceEndpoint: getDepartments][11:36:14,156] [DEBUG] [OperationMetaData] [Get java method for: {http://workflow.company.com/}getDepartments][11:36:14,156] [DEBUG] [OperationMetaData] [Found best matching java method: public abstract java.lang.String com.company.dept.product.webservice.WebServiceImpl_SEI.getDepartments(java.lang.String,java.lang.String) throws java.lang.Exception][11:36:14,156] [DEBUG] [EndpointInvocation] [getRequestPayload][11:36:14,156] [DEBUG] [EndpointInvocation] [getRequestParamValue: userId][11:36:14,156] [DEBUG] [SOAPContentElement] [getObjectValue [xmlType={http://www.w3.org/2001/XMLSchema}string,javaType=class java.lang.String]][11:36:14,171] [DEBUG] [SimpleDeserializer] [deserialize: [xmlName=userId,xmlType={http://www.w3.org/2001/XMLSchema}string]][11:36:14,484] [DEBUG] [ServiceEndpoint] [END handleRequest: jboss.ws:context=ProjectForWebService,endpoint=WebServiceImpl][11:36:14,484] [DEBUG] [MessageContextAssociation] [popMessageContext: org.jboss.ws.soap.SOAPMessageContextImpl@10771a6]
          --------------------------------------------------------------------------------
          


          So we are getting to the Web Services, I make a deduction here. However, we are not completing the operation.

          Russ

          • 2. Re: JBoss 4.0.5--JAX-RPC has Issues?
            Reinhard Behrens Newbie

            Hi,

            I'm experiencing the same problems. Tested the Web Service in Netbeans, got the same output on my JBoss 4.0.5.

            Have you found anything of value yet?

            Kind regards,
            Reinhard

            • 3. Re: JBoss 4.0.5--JAX-RPC has Issues?
              Heiko Braun Master

              What's this?

              Caused by: java.lang.IllegalArgumentException: failed to parse:image/bmp, image/x-bmp, image/x-windo
              ws-bmp
              


              • 4. Re: JBoss 4.0.5--JAX-RPC has Issues?
                Reinhard Behrens Newbie

                Theory : JAI (Java Advanced API) toolkit issues?

                Reason: I uninstalled my JAI installation and my web services are now working. Quite strange.

                -Reinhard

                • 5. Re: JBoss 4.0.5--JAX-RPC has Issues?
                  Reinhard Behrens Newbie

                  Correction (Java Advance Image API)

                  • 6. Re: JBoss 4.0.5--JAX-RPC has Issues?
                    Adriano Basile Newbie

                    I have the same problem, but I don't have JAI.
                    Anyone resolved the proble?
                    On my pc (with windows xp) all work, but the same jboss whith the same web service on a unix server give me the error:

                    ERROR [[WPMServiceServlet]] Servlet.service() for servlet WPMServiceServlet threw exception
                    java.lang.ExceptionInInitializerError
                    at java.lang.Class.forName0(Native Method)
                    at java.lang.Class.forName(Class.java:164)
                    at org.jboss.ws.soap.attachment.ContentHandlerRegistry.(ContentHandlerRegistry.java:51)
                    at org.jboss.ws.xop.XOPUnmarshallerImpl.(XOPUnmarshallerImpl.java:59)
                    at org.jboss.ws.jaxrpc.encoding.SimpleDeserializer.deserialize(SimpleDeserializer.java:52)
                    at org.jboss.ws.soap.SOAPContentElement.getObjectValue(SOAPContentElement.java:235)
                    at org.jboss.ws.binding.EndpointInvocation.transformPayloadValue(EndpointInvocation.java:233)
                    at org.jboss.ws.binding.EndpointInvocation.getRequestParamValue(EndpointInvocation.java:103)
                    at org.jboss.ws.binding.EndpointInvocation.getRequestPayload(EndpointInvocation.java:117)
                    at org.jboss.ws.server.ServiceEndpointInvokerJSE.invokeServiceEndpoint(ServiceEndpointInvokerJSE.java:94)
                    at org.jboss.ws.server.ServiceEndpointInvoker.invoke(ServiceEndpointInvoker.java:115)
                    at org.jboss.ws.server.ServiceEndpoint.handleRequest(ServiceEndpoint.java:209)
                    at org.jboss.ws.server.ServiceEndpointManager.processSOAPRequest(ServiceEndpointManager.java:355)
                    at org.jboss.ws.server.StandardEndpointServlet.doPost(StandardEndpointServlet.java:115)
                    at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
                    at org.jboss.ws.server.StandardEndpointServlet.service(StandardEndpointServlet.java:76)
                    at javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
                    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
                    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
                    at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
                    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
                    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
                    at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
                    at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
                    at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:175)
                    at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:74)
                    at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
                    at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
                    at org.jboss.web.tomcat.tc5.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:156)
                    at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
                    at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
                    at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869)
                    at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:664)
                    at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
                    at org.apache.tomcat.util.net.MasterSlaveWorkerThread.run(MasterSlaveWorkerThread.java:112)
                    at java.lang.Thread.run(Thread.java:595)
                    Caused by: java.lang.IllegalArgumentException: failed to parse:image/bmp, image/x-bmp, image/x-windows-bmp
                    at java.awt.datatransfer.DataFlavor.(DataFlavor.java:292)
                    at javax.activation.ActivationDataFlavor.(ActivationDataFlavor.java:81)
                    at org.jboss.ws.soap.attachment.ImageDataContentHandler.buildFlavors(ImageDataContentHandler.java:77)
                    at org.jboss.ws.soap.attachment.ImageDataContentHandler.(ImageDataContentHandler.java:63)
                    ... 36 more

                    • 7. Re: JBoss 4.0.5--JAX-RPC has Issues?
                      Adriano Basile Newbie

                      I resolved using a jboss prevous version

                      • 8. Re: JBoss 4.0.5--JAX-RPC has Issues?
                        bjorn.engdahl Newbie

                        I have the same issue with 4.0.5 running on Solaris 10, JDK 1.5. Anybody knows about a resolution?

                        • 9. Re: JBoss 4.0.5--JAX-RPC has Issues?
                          Frank Langelage Master

                          The problem has been solved with JBossWS 1.2.1.
                          See http://jbws.dyndns.org/mediawiki/index.php/Install_JBossWS how to install JBossWS or checkout JBoss-4.0.5.SP1.