3 Replies Latest reply on Sep 7, 2009 6:09 AM by tashtego

    UnsupportedOperationException: setProperty

    tashtego

      JBoss: 5.1.0.GA
      Java: 1.6.1
      OS: Win XP Professional

      WSDL file gets generated and is listed in:
      http://localhost:8080/jbossws/services

      I see the methods in eclipse web service explorer:
      http://127.0.0.1:1863/wse/wsexplorer/wsexplorer.jsp?org.eclipse.wst.ws.explorer=0

      Trying to execute my web service leads to an exception:


      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.<init>(SOAPMessageImpl.java:87)
      at org.jboss.ws.core.soap.MessageFactoryImpl.createMessage(MessageFactoryImpl.java:215)
      at org.jboss.ws.core.soap.MessageFactoryImpl.createMessage(MessageFactoryImpl.java:193)
      at org.jboss.wsf.stack.jbws.RequestHandlerImpl.processRequest(RequestHandlerImpl.java:455)
      at org.jboss.wsf.stack.jbws.RequestHandlerImpl.handleRequest(RequestHandlerImpl.java:295)
      at org.jboss.wsf.stack.jbws.RequestHandlerImpl.doPost(RequestHandlerImpl.java:205)
      at org.jboss.wsf.stack.jbws.RequestHandlerImpl.handleHttpRequest(RequestHandlerImpl.java:131)
      at org.jboss.wsf.common.servlet.AbstractEndpointServlet.service(AbstractEndpointServlet.java:85)
      at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
      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:235)
      at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
      at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:190)
      at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:92)
      at org.jboss.web.tomcat.security.SecurityContextEstablishmentValve.process(SecurityContextEstablishmentValve.java:126)
      at org.jboss.web.tomcat.security.SecurityContextEstablishmentValve.invoke(SecurityContextEstablishmentValve.java:70)
      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:158)
      at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
      at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:330)
      at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:829)
      at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:598)
      at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
      at java.lang.Thread.run(Unknown Source)


      Can anyone help?

        • 1. Re: UnsupportedOperationException: setProperty
          peterj

          A search in the forum of the term "setProperty must be overridden by all subclasses of SOAPMessage" should have resulted in many forum posts that already cover this topic. Typically, the problem is that you are using JDK 6 (which you are), but you downloaded the JDK 5 variant of the JBoss AS binary - downloading the JDK 6 variant should fix this.

          • 2. Re: UnsupportedOperationException: setProperty
            tashtego

            nope.
            using jboss-5.1.0.GA-jdk6.zip
            any further help would be nice :(

            • 3. Re: UnsupportedOperationException: setProperty
              tashtego

               

              "_guido" wrote:
              thank you jlankfo,

              this helps me a lot because i started the server with the run.sh script (usually i used the eclipse ide) and the webservice works fine (finally: without any changes at the script:)).

              eclipse uses the run.jar to start jboss.
              i added:

              -Djava.endorsed.dirs=.......jboss-5.1.0.GA/lib/endorsed

              to the server vm arguments in eclipse and everything works perfect.

              thanks for the push to the solution,

              guido