cxf-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Freeman Fang (JIRA)" <j...@apache.org>
Subject [jira] Created: (CXF-651) handlers sample doesn't work
Date Tue, 15 May 2007 03:20:16 GMT
handlers sample doesn't work
----------------------------

                 Key: CXF-651
                 URL: https://issues.apache.org/jira/browse/CXF-651
             Project: CXF
          Issue Type: Bug
            Reporter: Freeman Fang


when try ant client in handlers sample, get exception as
client:
     [java] Invoking addNumbers(10, 20)
     [java] LogicalMessageHandler handleMessage called
     [java] May 15, 2007 11:10:39 AM org.apache.cxf.jaxws.handler.HandlerChainInvoker invokeHandleMessage
     [java] WARNING: HANDLER_RAISED_RUNTIME_EXCEPTION
     [java] javax.xml.ws.WebServiceException: javax.xml.bind.UnmarshalException: unexpected
element (uri:"http://apache.org/handlers/types", local:"addNumbers"). Expected elements are
(none)
     [java]     at org.apache.cxf.jaxws.handler.logical.LogicalMessageImpl.getPayload(LogicalMessageImpl.java:113)
     [java]     at demo.handlers.common.SmallNumberHandler.handleMessage(SmallNumberHandler.java:57)
     [java]     at demo.handlers.common.SmallNumberHandler.handleMessage(SmallNumberHandler.java:38)
     [java]     at org.apache.cxf.jaxws.handler.HandlerChainInvoker.invokeHandleMessage(HandlerChainInvoker.java:358)
     [java]     at org.apache.cxf.jaxws.handler.HandlerChainInvoker.invokeHandlerChain(HandlerChainInvoker.java:310)
     [java]     at org.apache.cxf.jaxws.handler.HandlerChainInvoker.invokeLogicalHandlers(HandlerChainInvoker.java:127)
     [java]     at org.apache.cxf.jaxws.handler.logical.LogicalHandlerOutInterceptor$LogicalHandlerOutEndingInterceptor.handleMessage(LogicalHandlerOutInterceptor.java:113)
     [java]     at org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:148)
     [java]     at org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:230)
     [java]     at org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:181)
     [java]     at org.apache.cxf.frontend.ClientProxy.invokeSync(ClientProxy.java:73)
     [java]     at org.apache.cxf.jaxws.JaxWsClientProxy.invoke(JaxWsClientProxy.java:131)
     [java]     at $Proxy33.addNumbers(Unknown Source)
     [java]     at demo.handlers.client.Client.main(Client.java:69)
     [java] Caused by: javax.xml.bind.UnmarshalException: unexpected element (uri:"http://apache.org/handlers/types",
local:"addNumbers"). Expected elements are (none)
     [java]     at com.sun.xml.bind.v2.runtime.unmarshaller.UnmarshallingContext.handleEvent(UnmarshallingContext.java:523)
     [java]     at com.sun.xml.bind.v2.runtime.unmarshaller.Loader.reportError(Loader.java:199)
     [java]     at com.sun.xml.bind.v2.runtime.unmarshaller.Loader.reportError(Loader.java:194)
     [java]     at com.sun.xml.bind.v2.runtime.unmarshaller.Loader.reportUnexpectedChildElement(Loader.java:71)
     [java]     at com.sun.xml.bind.v2.runtime.unmarshaller.UnmarshallingContext$DefaultRootLoader.childElement(UnmarshallingContext.java:920)
     [java]     at com.sun.xml.bind.v2.runtime.unmarshaller.UnmarshallingContext._startElement(UnmarshallingContext.java:366)
     [java]     at com.sun.xml.bind.v2.runtime.unmarshaller.UnmarshallingContext.startElement(UnmarshallingContext.java:347)
     [java]     at com.sun.xml.bind.v2.runtime.unmarshaller.InterningXmlVisitor.startElement(InterningXmlVisitor.java:35)
     [java]     at com.sun.xml.bind.v2.runtime.unmarshaller.SAXConnector.startElement(SAXConnector.java:101)
     [java]     at com.sun.xml.bind.unmarshaller.DOMScanner.visit(DOMScanner.java:224)
     [java]     at com.sun.xml.bind.unmarshaller.DOMScanner.scan(DOMScanner.java:107)
     [java]     at com.sun.xml.bind.unmarshaller.DOMScanner.scan(DOMScanner.java:90)
     [java]     at com.sun.xml.bind.v2.runtime.unmarshaller.UnmarshallerImpl.unmarshal0(UnmarshallerImpl.java:291)
     [java]     at com.sun.xml.bind.v2.runtime.unmarshaller.UnmarshallerImpl.unmarshal(UnmarshallerImpl.java:271)
     [java]     at javax.xml.bind.helpers.AbstractUnmarshallerImpl.unmarshal(AbstractUnmarshallerImpl.java:107)
     [java]     at org.apache.cxf.jaxws.handler.logical.LogicalMessageImpl.getPayload(LogicalMessageImpl.java:111)
     [java]     ... 13 more
     [java] LogicalHandler close called
     [java] Exception in thread "main" javax.xml.ws.WebServiceException: javax.xml.bind.UnmarshalException:
unexpected element (uri:"http://apache.org/handlers/types", local:"addNumbers"). Expected
elements are (none)
     [java]     at org.apache.cxf.jaxws.JaxWsClientProxy.invoke(JaxWsClientProxy.java:134)
     [java]     at $Proxy33.addNumbers(Unknown Source)
     [java]     at demo.handlers.client.Client.main(Client.java:69)
     [java] Caused by: javax.xml.bind.UnmarshalException: unexpected element (uri:"http://apache.org/handlers/types",
local:"addNumbers"). Expected elements are (none)
     [java]     at com.sun.xml.bind.v2.runtime.unmarshaller.UnmarshallingContext.handleEvent(UnmarshallingContext.java:523)
     [java]     at com.sun.xml.bind.v2.runtime.unmarshaller.Loader.reportError(Loader.java:199)
     [java]     at com.sun.xml.bind.v2.runtime.unmarshaller.Loader.reportError(Loader.java:194)
     [java]     at com.sun.xml.bind.v2.runtime.unmarshaller.Loader.reportUnexpectedChildElement(Loader.java:71)
     [java]     at com.sun.xml.bind.v2.runtime.unmarshaller.UnmarshallingContext$DefaultRootLoader.childElement(UnmarshallingContext.java:920)
     [java]     at com.sun.xml.bind.v2.runtime.unmarshaller.UnmarshallingContext._startElement(UnmarshallingContext.java:366)
     [java]     at com.sun.xml.bind.v2.runtime.unmarshaller.UnmarshallingContext.startElement(UnmarshallingContext.java:347)
     [java]     at com.sun.xml.bind.v2.runtime.unmarshaller.InterningXmlVisitor.startElement(InterningXmlVisitor.java:35)
     [java]     at com.sun.xml.bind.v2.runtime.unmarshaller.SAXConnector.startElement(SAXConnector.java:101)
     [java]     at com.sun.xml.bind.unmarshaller.DOMScanner.visit(DOMScanner.java:224)
     [java]     at com.sun.xml.bind.unmarshaller.DOMScanner.scan(DOMScanner.java:107)
     [java]     at com.sun.xml.bind.unmarshaller.DOMScanner.scan(DOMScanner.java:90)
     [java]     at com.sun.xml.bind.v2.runtime.unmarshaller.UnmarshallerImpl.unmarshal0(UnmarshallerImpl.java:291)
     [java]     at com.sun.xml.bind.v2.runtime.unmarshaller.UnmarshallerImpl.unmarshal(UnmarshallerImpl.java:271)
     [java]     at javax.xml.bind.helpers.AbstractUnmarshallerImpl.unmarshal(AbstractUnmarshallerImpl.java:107)
     [java]     at org.apache.cxf.jaxws.handler.logical.LogicalMessageImpl.getPayload(LogicalMessageImpl.java:111)
     [java]     at demo.handlers.common.SmallNumberHandler.handleMessage(SmallNumberHandler.java:57)
     [java]     at demo.handlers.common.SmallNumberHandler.handleMessage(SmallNumberHandler.java:38)
     [java]     at org.apache.cxf.jaxws.handler.HandlerChainInvoker.invokeHandleMessage(HandlerChainInvoker.java:358)
     [java]     at org.apache.cxf.jaxws.handler.HandlerChainInvoker.invokeHandlerChain(HandlerChainInvoker.java:310)
     [java]     at org.apache.cxf.jaxws.handler.HandlerChainInvoker.invokeLogicalHandlers(HandlerChainInvoker.java:127)
     [java]     at org.apache.cxf.jaxws.handler.logical.LogicalHandlerOutInterceptor$LogicalHandlerOutEndingInterceptor.handleMessage(LogicalHandlerOutInterceptor.java:113)
     [java]     at org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:148)
     [java]     at org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:230)
     [java]     at org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:181)
     [java]     at org.apache.cxf.frontend.ClientProxy.invokeSync(ClientProxy.java:73)
     [java]     at org.apache.cxf.jaxws.JaxWsClientProxy.invoke(JaxWsClientProxy.java:131)
     [java]     ... 2 more
     [java] Java Result: 1


-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message