1 2 Previous Next 15 Replies Latest reply on Aug 23, 2008 10:33 AM by Vishal

    Webservice consumer sample error

    Vishal Novice

      I am running the WebServiceConsumer1 demo
      the demo was deployed correctly on server but when i sent the message using SendJMSMessage class i got error and here is the exception part
      can any one give an idea why this has happened and what is the solution ?

      thanks in anticipation !

      00:26:59,875 INFO [SchemaUtils] schema for [http://webservice_consumer1/helloworld] contained [{}] namespaces
      00:27:00,546 INFO [WsdlImporter] Finding importer for {http://webservice_consumer1/helloworld}HelloWorldBinding
      00:27:00,546 INFO [WsdlImporter] Importing binding {http://webservice_consumer1/helloworld}HelloWorldBinding
      00:27:00,718 INFO [Soap11HttpBindingImporter] importing endpoint http://127.0.0.1:8080/Quickstart_webservice_consumer1/HelloWorldWS
      00:27:00,718 INFO [Soap11HttpBindingImporter] importing operation sayHello
      00:27:01,187 ERROR [SOAPFaultHelperJAXWS] SOAP request exception
      java.lang.UnsupportedOperationException: setProperty must be overridden by all subclasses of SOAPMessage
      at javax.xml.soap.SOAPMessage.setProperty(Unknown Source)
      at org.jboss.ws.core.soap.SOAPMessageImpl.(SOAPMessageImpl.java:67)
      at org.jboss.ws.core.soap.MessageFactoryImpl.createMessage(MessageFactoryImpl.java:207)
      at org.jboss.ws.core.soap.MessageFactoryImpl.createMessage(MessageFactoryImpl.java:185)
      at org.jboss.wsf.stack.jbws.RequestHandlerImpl.processRequest(RequestHandlerImpl.java:389)
      at org.jboss.wsf.stack.jbws.RequestHandlerImpl.handleRequest(RequestHandlerImpl.java:272)
      at org.jboss.wsf.stack.jbws.RequestHandlerImpl.doPost(RequestHandlerImpl.java:189)
      at org.jboss.wsf.stack.jbws.RequestHandlerImpl.handleHttpRequest(RequestHandlerImpl.java:122)
      at org.jboss.wsf.stack.jbws.EndpointServlet.service(EndpointServlet.java:84)
      at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
      at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)

        • 1. Re: Webservice consumer sample error
          Daniel Bevenius Master

          Hi,

          can you give us the version of JBossESB you are running?
          Are you using the jbossesb-server or deploying to a JBossAS?

          Regards,

          /Daniel

          • 2. Re: Webservice consumer sample error
            Daniel Bevenius Master

            Can you also check that you do not have another javax.xml.soap.SOAPMessage other then the one in jboss-saaj.jar?

            For example, if you have axis-saaj-1.4.jar before jboss-saaj.jar you will get this error.

            Regards,

            /Daniel

            • 3. Re: Webservice consumer sample error
              Vishal Novice

              yes i do have axis 1.4 installed but i m not sure abt the jar locations where they are conflicting or not but i think it is possible , so what shud i do as i want to develop axis webservices and use them with ESB

              please help

              thanks

              • 4. Re: Webservice consumer sample error
                Daniel Bevenius Master

                To get the webservice_consumer1 quickstart to work can you try putting jboss-saaj.jar in your JREs lib/endorsed directory.

                BTW, are you using Java6?

                Regards,

                /Daniel

                • 5. Re: Webservice consumer sample error
                  Vishal Novice

                  yes i am using Java 6 version !

                  • 6. Re: Webservice consumer sample error
                    Daniel Bevenius Master

                    Then you should be able to add jboss-saaj.jar to jre/lib/endorsed and get the quickstart to work.
                    Did you have a chance to try that?

                    Regards,

                    /Daniel

                    • 7. Re: Webservice consumer sample error
                      Vishal Novice

                      hi

                      sorry for late response i tried ! first of all i could not find the lib/ endorsed directory so i added the jar file to lib of both sdk / jre as well as jre but still it gace the same exception !

                      • 8. Re: Webservice consumer sample error
                        Daniel Bevenius Master

                         

                        first of all i could not find the lib/ endorsed directory so i added the jar file to lib of both sdk / jre as well as jre but still it gace the same exception

                        If the endorsed directory does not exist just create it and copy the jboss-saaj.jar to this directory.

                        • 9. Re: Webservice consumer sample error
                          Vishal Novice

                          i created endorsed dir but same output

                          here is more detailed console output here it says it failed i loading a settings file and creating new .... does that gives any idea
                          23:40:06,484 INFO [JBoss4ESBDeployer] create esb service, Quickstart_webservice_consumer1.esb
                          23:40:06,515 INFO [QueueService] Queue[/queue/quickstart_webservice_consumer1_esb] started, fullSize=200000, pageSize=2000, downCacheSize=2000
                          23:40:06,531 INFO [QueueService] Queue[/queue/quickstart_webservice_consumer1_esb_reply] started, fullSize=200000, pageSize=2000, downCacheSize=2000
                          23:40:06,531 INFO [QueueService] Queue[/queue/quickstart_webservice_consumer1_Request_gw] started, fullSize=200000, pageSize=2000, downCacheSize=2000
                          23:40:06,625 INFO [JDBCDataStore] Generated token 'authToken:8CC5F110-7075-11DD-A4CC-CAE25523F261' for user: 'jbossesb/JBoss ESB User'
                          23:40:07,000 INFO [QuartzScheduler] Scheduler DefaultQuartzScheduler_$_NON_CLUSTERED started.
                          23:40:07,093 INFO [TomcatDeployer] deploy, ctxPath=/Quickstart_webservice_consumer1, warUrl=.../tmp/deploy/tmp63098Quickstart_webservice_consumer1.esb-contents/Quickstart_webservice_consumer1-exp.war/
                          23:40:07,453 INFO [WSDLFilePublisher] WSDL published to: file:/C:/jbossesb-server-4.3.GA/jbossesb-server-4.3.GA/server/default/data/wsdl/Quickstart_webservice_consumer1.esb/Quickstart_webservice_consumer1.war/HelloWorldWSService63099.wsdl
                          23:40:37,718 INFO [STDOUT] &&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&
                          23:40:37,718 INFO [STDOUT] Request map is: {sayHello.toWhom=Jimbo}
                          23:40:37,718 INFO [STDOUT] &&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&
                          23:40:42,421 WARN [SoapUI] Failed to load settings [soapui-settings.xml (The system cannot find the file specified)], creating new
                          23:40:45,234 INFO [STDOUT] Progress: 1 - Caching definition from url [http://127.0.0.1:8080/Quickstart_webservice_consumer1/HelloWorldWS?wsdl]
                          23:40:45,390 INFO [SchemaUtils] Added default schema from file:/C:/jbossesb-server-4.3.GA/jbossesb-server-4.3.GA/server/default/tmp/deploy/tmp62958soapui-1.7.1.jar!/xop.xsd with targetNamespace http://www.w3.org/2004/08/xop/include
                          23:40:45,500 INFO [SchemaUtils] Added default schema from file:/C:/jbossesb-server-4.3.GA/jbossesb-server-4.3.GA/server/default/tmp/deploy/tmp62958soapui-1.7.1.jar!/XMLSchema.xsd with targetNamespace http://www.w3.org/2001/XMLSchema
                          23:40:45,500 INFO [SchemaUtils] Added default schema from file:/C:/jbossesb-server-4.3.GA/jbossesb-server-4.3.GA/server/default/tmp/deploy/tmp62958soapui-1.7.1.jar!/xml.xsd with targetNamespace http://www.w3.org/XML/1998/namespace
                          23:40:45,500 INFO [SchemaUtils] Added default schema from file:/C:/jbossesb-server-4.3.GA/jbossesb-server-4.3.GA/server/default/tmp/deploy/tmp62958soapui-1.7.1.jar!/swaref.xsd with targetNamespace http://ws-i.org/profiles/basic/1.1/xsd
                          23:40:45,500 INFO [SchemaUtils] Added default schema from file:/C:/jbossesb-server-4.3.GA/jbossesb-server-4.3.GA/server/default/tmp/deploy/tmp62958soapui-1.7.1.jar!/xmime200505.xsd with targetNamespace http://www.w3.org/2005/05/xmlmime
                          23:40:45,515 INFO [SchemaUtils] Added default schema from file:/C:/jbossesb-server-4.3.GA/jbossesb-server-4.3.GA/server/default/tmp/deploy/tmp62958soapui-1.7.1.jar!/xmime200411.xsd with targetNamespace http://www.w3.org/2004/11/xmlmime
                          23:40:46,125 WARN [HttpMethodBase] Going to buffer response body of large or unknown size. Using getResponseBodyAsStream instead is recommended.
                          23:40:46,187 INFO [STDOUT] Progress: 1 - Loading definition from cache
                          23:40:46,375 INFO [STDOUT] Retrieving document at 'http://127.0.0.1:8080/Quickstart_webservice_consumer1/HelloWorldWS?wsdl'.
                          23:40:46,734 INFO [SchemaUtils] Loading schema types from [http://127.0.0.1:8080/Quickstart_webservice_consumer1/HelloWorldWS?wsdl]
                          23:40:46,734 INFO [SchemaUtils] Getting schema http://127.0.0.1:8080/Quickstart_webservice_consumer1/HelloWorldWS?wsdl
                          23:40:46,750 INFO [SchemaUtils] schema for [http://webservice_consumer1/helloworld] contained [{}] namespaces
                          23:40:47,390 INFO [WsdlImporter] Finding importer for {http://webservice_consumer1/helloworld}HelloWorldBinding
                          23:40:47,421 INFO [WsdlImporter] Importing binding {http://webservice_consumer1/helloworld}HelloWorldBinding
                          23:40:47,687 INFO [Soap11HttpBindingImporter] importing endpoint http://127.0.0.1:8080/Quickstart_webservice_consumer1/HelloWorldWS
                          23:40:47,687 INFO [Soap11HttpBindingImporter] importing operation sayHello
                          23:40:48,515 ERROR [SOAPFaultHelperJAXWS] SOAP request exception
                          java.lang.UnsupportedOperationException: setProperty must be overridden by all subclasses of SOAPMessage
                          at javax.xml.soap.SOAPMessage.setProperty(Unknown Source)
                          at org.jboss.ws.core.soap.SOAPMessageImpl.(SOAPMessageImpl.java:67)
                          at org.jboss.ws.core.soap.MessageFactoryImpl.createMessage(MessageFactoryImpl.java:207)
                          at org.jboss.ws.core.soap.MessageFactoryImpl.createMessage(MessageFactoryImpl.java:185)
                          at org.jboss.wsf.stack.jbws.RequestHandlerImpl.processRequest(RequestHandlerImpl.java:389)
                          at org.jboss.wsf.stack.jbws.RequestHandlerImpl.handleRequest(RequestHandlerImpl.java:272)
                          at org.jboss.wsf.stack.jbws.RequestHandlerImpl.doPost(RequestHandlerImpl.java:189)
                          at org.jboss.wsf.stack.jbws.RequestHandlerImpl.handleHttpRequest(RequestHandlerImpl.java:122)
                          at org.jboss.wsf.stack.jbws.EndpointServlet.service(EndpointServlet.java:84)
                          at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
                          at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
                          at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
                          at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
                          at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
                          at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
                          at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:230)
                          at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
                          at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:179)
                          at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:84)
                          at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
                          at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
                          at org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:157)
                          at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
                          at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:262)
                          at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)
                          at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)
                          at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:446)
                          at java.lang.Thread.run(Unknown Source)
                          23:40:48,515 ERROR [RequestHandlerImpl] Error processing web service request
                          org.jboss.ws.WSException: java.lang.UnsupportedOperationException: setProperty must be overridden by all subclasses of SOAPMessage
                          at org.jboss.ws.WSException.rethrow(WSException.java:68)
                          at org.jboss.wsf.stack.jbws.RequestHandlerImpl.handleRequest(RequestHandlerImpl.java:310)
                          at org.jboss.wsf.stack.jbws.RequestHandlerImpl.doPost(RequestHandlerImpl.java:189)
                          at org.jboss.wsf.stack.jbws.RequestHandlerImpl.handleHttpRequest(RequestHandlerImpl.java:122)
                          at org.jboss.wsf.stack.jbws.EndpointServlet.service(EndpointServlet.java:84)
                          at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
                          at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
                          at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
                          at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
                          at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
                          at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
                          at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:230)
                          at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
                          at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:179)
                          at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:84)
                          at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
                          at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
                          at org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:157)
                          at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
                          at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:262)
                          at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)
                          at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)
                          at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:446)
                          at java.lang.Thread.run(Unknown Source)
                          Caused by: java.lang.UnsupportedOperationException: setProperty must be overridden by all subclasses of SOAPMessage
                          at javax.xml.soap.SOAPMessage.setProperty(Unknown Source)
                          at org.jboss.ws.core.soap.SOAPMessageImpl.(SOAPMessageImpl.java:67)
                          at org.jboss.ws.core.soap.MessageFactoryImpl.createMessage(MessageFactoryImpl.java:161)
                          at org.jboss.ws.core.jaxws.SOAPFaultHelperJAXWS.toSOAPMessage(SOAPFaultHelperJAXWS.java:232)
                          at org.jboss.ws.core.jaxws.SOAPFaultHelperJAXWS.exceptionToFaultMessage(SOAPFaultHelperJAXWS.java:161)
                          at org.jboss.ws.core.jaxws.binding.SOAP11BindingJAXWS.createFaultMessageFromException(SOAP11BindingJAXWS.java:104)
                          at org.jboss.ws.core.CommonSOAPBinding.bindFaultMessage(CommonSOAPBinding.java:645)
                          at org.jboss.wsf.stack.jbws.RequestHandlerImpl.processRequest(RequestHandlerImpl.java:430)
                          at org.jboss.wsf.stack.jbws.RequestHandlerImpl.handleRequest(RequestHandlerImpl.java:272)
                          ... 22 more
                          23:40:48,546 ERROR [[HelloWorldWS]] Servlet.service() for servlet HelloWorldWS threw exception

                          • 10. Re: Webservice consumer sample error
                            Vishal Novice

                            few more things i have copied axis2.war to jbossesbs deploy directory and i dont have any other axis jar file in project reference

                            • 11. Re: Webservice consumer sample error
                              Vishal Novice

                              i also have axis2.war copied to deploy directory

                              • 12. Re: Webservice consumer sample error
                                Vishal Novice

                                also i tried removing axis2 frm the seb server and run the demo again but still it gave same error

                                • 13. Re: Webservice consumer sample error
                                  Vishal Novice

                                  is the error because of AXIS then ?

                                  • 14. Re: Webservice consumer sample error
                                    Daniel Bevenius Master

                                    Sorry, when I had this problem with our build I got around it by putting the jboss-saaj.jar in jre/lib/endorsed.
                                    When running in the app server I was able to get around this by putting the jar in jbossesb-server-4.4.GA/lib/endorsed. This worked for me.
                                    Can you give that a try?

                                    1 2 Previous Next