Announcement Announcement Module
Collapse
No announcement yet.
AbstractStaxEventPayloadEndpoint UnsupportedOperationException problem Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • AbstractStaxEventPayloadEndpoint UnsupportedOperationException problem

    Could somebody please tell me why I'm getting the following exception:

    My Endpoint extends AbstractStaxEventPayloadEndpoint

    Any help would be most appreciated.

    Code:
    <bean id="productEndpoint" autowire="byName"
          class="com.foo.endpoint.ProductEndpoint">
    	<constructor-arg ref="productService"/>
    </bean>
    
    <bean id="endpointMapping" class="org.springframework.ws.server.endpoint.mapping.PayloadRootQNameEndpointMapping">
    	<property name="mappings">
    		<props>
    			<prop key="{http://foo.com/schemas}ProductTypesRequest">
    				productEndpoint
    			</prop>
    		</props>
    	</property>
    	<property name="interceptors">
    		<bean class="org.springframework.ws.server.endpoint.interceptor.PayloadLoggingInterceptor"/>
    	</property>
    </bean>
    Code:
    java.lang.UnsupportedOperationException: XMLInputFactory.createXMLStreamReader(javax.xml.transform.dom.DOMSource) not yet implemented
    	at com.bea.xml.stream.MXParserFactory.createXMLStreamReader(MXParserFactory.java:70)
    	at com.bea.xml.stream.MXParserFactory.createXMLEventReader(MXParserFactory.java:143)
    	at org.springframework.ws.server.endpoint.AbstractStaxEventPayloadEndpoint.getEventReader(AbstractStaxEventPayloadEndpoint.java:99)
    	at org.springframework.ws.server.endpoint.AbstractStaxEventPayloadEndpoint.invoke(AbstractStaxEventPayloadEndpoint.java:55)
    	at org.springframework.ws.server.endpoint.adapter.MessageEndpointAdapter.invoke(MessageEndpointAdapter.java:41)
    	at org.springframework.ws.server.MessageDispatcher.dispatch(MessageDispatcher.java:211)
    	at org.springframework.ws.server.MessageDispatcher.receive(MessageDispatcher.java:158)
    	at org.springframework.ws.transport.support.WebServiceMessageReceiverObjectSupport.handleConnection(WebServiceMessageReceiverObjectSupport.java:87)
    	at org.springframework.ws.transport.http.WebServiceMessageReceiverHandlerAdapter.handle(WebServiceMessageReceiverHandlerAdapter.java:57)
    	at org.springframework.ws.transport.http.MessageDispatcherServlet.doService(MessageDispatcherServlet.java:158)
    	at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:461)
    	at org.springframework.web.servlet.FrameworkServlet.doPost(FrameworkServlet.java:426)
    	at javax.servlet.http.HttpServlet.service(HttpServlet.java:710)
    	at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
    	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:269)
    	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)
    	at org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:265)
    	at org.acegisecurity.intercept.web.FilterSecurityInterceptor.invoke(FilterSecurityInterceptor.java:107)
    	at org.acegisecurity.intercept.web.FilterSecurityInterceptor.doFilter(FilterSecurityInterceptor.java:72)
    	at org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:275)
    	at org.acegisecurity.ui.ExceptionTranslationFilter.doFilter(ExceptionTranslationFilter.java:166)
    	at org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:275)
    	at org.acegisecurity.providers.anonymous.AnonymousProcessingFilter.doFilter(AnonymousProcessingFilter.java:125)
    	at org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:275)
    	at org.acegisecurity.wrapper.SecurityContextHolderAwareRequestFilter.doFilter(SecurityContextHolderAwareRequestFilter.java:81)
    	at org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:275)
    	at org.acegisecurity.ui.logout.LogoutFilter.doFilter(LogoutFilter.java:110)
    	at org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:275)
    	at org.acegisecurity.ui.AbstractProcessingFilter.doFilter(AbstractProcessingFilter.java:271)
    	at com.standardandpoors.security.SPAuthenticationProcessingFilter.doFilter(Unknown Source)
    	at org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:275)
    	at org.acegisecurity.context.HttpSessionContextIntegrationFilter.doFilter(HttpSessionContextIntegrationFilter.java:249)
    	at org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:275)
    	at org.acegisecurity.util.FilterChainProxy.doFilter(FilterChainProxy.java:149)
    	at org.acegisecurity.util.FilterToBeanProxy.doFilter(FilterToBeanProxy.java:98)
    	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:215)
    	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)
    	at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:210)
    	at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:174)
    	at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
    	at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:117)
    	at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:108)
    	at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:151)
    	at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:870)
    	at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:665)
    	at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:528)
    	at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:81)
    	at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:685)
    	at java.lang.Thread.run(Thread.java:595)

  • #2
    Why is the Source passed to AbstractStaxEventPayloadEndpoint.getEventReader a javax.xml.transform.dom.DOMSource?

    Is this a bug or am I missing something?

    ... and is there an example of how to use AbstractStaxEventPayloadEndpoint?
    So far my googling has turned up nothing useful.

    Comment


    • #3
      After reading the following post: http://forum.springframework.org/arc...p/t-26258.html

      I have tried to change to using AxiomSoapMessageContextFactory. Now I have in my classpath:

      axiom-api-1.2.4.jar
      axiom-impl-1.2.4.jar
      bcel-5.1.jar
      jibx-bind-1.1.5.jar
      jibx-run-1.1.5.jar
      stax-1.2.0.jar
      stax-api-1.0.1.jar

      and no saaj jars...

      But still the same exception occurs because Source is still a DOMSource.

      Any ideas? Am i asking a stupid question here??

      Comment


      • #4
        Source is a DOMSource if you are using SAAJ, probably provided by Weblogic. You can check the logs of the app server, it probably says something like "Creating SAAJ 1.1 MessageFactory".

        To use the AxiomSoapMessageFactory, you just have to add it as a bean in your spring-ws-servlet.xml. It will be detected automatically.

        Comment

        Working...
        X