cxf-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Daniel Kulp <dk...@apache.org>
Subject Re: Different bevaviour in 2.0.4
Date Tue, 05 Feb 2008 20:48:08 GMT

Hmm...  the incoming messages definitely are the same.   That shouldn't 
be an issue.

Next question: if you do a "?wsdl" on the endpoint, are the wsdl's 
EXACTLY the same?   Also, is this doc/lit bare or wrapped?   Code 
first/wsdl first? (it looks wrapped, but want to verify the rest)

I WOULD expect this behavior if the WSDL or runtime thinks the parts are 
supposed to be unqualified.   Basically, it's walking through elements 
and trying to match them up with the parts from the service model.   
However, the call to rname.equals(part.getConcreteName()) is never 
returning true so it's not finding the appropriate part.

What you MAY want to try looking at if you have this in the debugger is 
to see what rname is and what part.getConcreteName() is.    If 
getConcreteName() doesn't have a URL, it definitely thinks it should be 
unqualified and it may be a bug in how the servicemodel is setup.


Dan


On Sunday 03 February 2008, Frederic Soulier wrote:
> Hi Dan
>
> THere doesn't seem to be a difference in the messages.
>
>
> CXF 2.0.4
> =========
>
> 02-Feb-2008 12:46:56 org.apache.cxf.interceptor.LoggingInInterceptor
> logging
> INFO: Inbound Message
> ----------------------------
> Encoding: UTF-8
> Headers: {Host=[192.168.10.61:9530], User-Agent=[Java/1.5.0_13],
> connection=[keep-alive], SOAPAction=[""], transfer-encoding=
> [chunked], Pragma=[no-cache], content-type=[text/xml; charset=UTF-8],
> Cache-Control=[no-cache], Accept=[*]}
> Messages:
> Message:
>
> Payload: <soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/
> envelope/"><soap:Body><ns1:lookupUK xmlns:ns1="http://
> addresslookup.surgex.com"><ns1:credential><ns2:serviceName
> xmlns:ns2="http://model.remoting.commons.surgex.com">TEST</
> ns2:serviceName><ns2:servicePassword xmlns:ns2="http://
> model.remoting.commons.surgex.com">password</ns2:servicePassword></
> ns1:credential><ns1:postcode>SW7 7ET</ns1:postcode><ns1:otherInfo /
>
>  ><ns1:multipleResults>false</ns1:multipleResults></ns1:lookupUK></
>
> soap:Body></soap:Envelope>
> --------------------------------------
> 02-Feb-2008 12:46:56 org.apache.cxf.phase.PhaseInterceptorChain
> doIntercept
> INFO: Application has thrown exception, unwinding now
> org.apache.cxf.interceptor.Fault: null while invoking public
> com.surgex.addresslookup.model.UKAddress[]
> com.surgex.addresslookup.service.impl.AddressLookupServiceImpl.lookupU
>K(
> com.surgex.commons.remoting.model.Credential,java.lang.String,java.uti
>l. Map,boolean) throws
> com.surgex.commons.remoting.exceptions.RemotingException,com.surgex.co
>mm
> ons.remoting.exceptions.InvalidArgumentException,com.surgex.commons.re
>mo ting.exceptions.UnauthorisedAccessException with params [null, null,
> null, null].
>          at org.apache.cxf.service.invoker.AbstractInvoker.createFault
> (AbstractInvoker.java:109)
>          at org.apache.cxf.jaxws.JAXWSMethodInvoker.createFault
> (JAXWSMethodInvoker.java:76)
>          at org.apache.cxf.service.invoker.AbstractInvoker.invoke
> (AbstractInvoker.java:101)
>          at org.apache.cxf.jaxws.JAXWSMethodInvoker.invoke
> (JAXWSMethodInvoker.java:100)
>          at org.apache.cxf.service.invoker.AbstractInvoker.invoke
> (AbstractInvoker.java:68)
>          at org.apache.cxf.interceptor.ServiceInvokerInterceptor$1.run
> (ServiceInvokerInterceptor.java:56)
>          at org.apache.cxf.workqueue.SynchronousExecutor.execute
> (SynchronousExecutor.java:37)
>          at
> org.apache.cxf.interceptor.ServiceInvokerInterceptor.handleMessage
> (ServiceInvokerInterceptor.java:92)
>          at org.apache.cxf.phase.PhaseInterceptorChain.doIntercept
> (PhaseInterceptorChain.java:208)
>          at org.apache.cxf.transport.ChainInitiationObserver.onMessage
> (ChainInitiationObserver.java:77)
>          at
> org.apache.cxf.transport.servlet.ServletDestination.doMessage
> (ServletDestination.java:79)
>          at
> org.apache.cxf.transport.servlet.ServletController.invokeDestination
> (ServletController.java:264)
>          at org.apache.cxf.transport.servlet.ServletController.invoke
> (ServletController.java:160)
>          at org.apache.cxf.transport.servlet.AbstractCXFServlet.invoke
> (AbstractCXFServlet.java:170)
>          at org.apache.cxf.transport.servlet.AbstractCXFServlet.doPost
> (AbstractCXFServlet.java:148)
>          at
> javax.servlet.http.HttpServlet.service(HttpServlet.java:763) at
> javax.servlet.http.HttpServlet.service(HttpServlet.java:856) at
> org.mortbay.jetty.servlet.ServletHolder.handle
> (ServletHolder.java:487)
>          at org.mortbay.jetty.servlet.ServletHandler.handle
> (ServletHandler.java:362)
>          at org.mortbay.jetty.servlet.SessionHandler.handle
> (SessionHandler.java:181)
>          at org.mortbay.jetty.handler.ContextHandler.handle
> (ContextHandler.java:726)
>          at org.mortbay.jetty.handler.HandlerWrapper.handle
> (HandlerWrapper.java:139)
>          at org.mortbay.jetty.Server.handle(Server.java:324)
>          at org.mortbay.jetty.HttpConnection.handleRequest
> (HttpConnection.java:505)
>          at org.mortbay.jetty.HttpConnection$RequestHandler.content
> (HttpConnection.java:842)
>          at
> org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:730) at
> org.mortbay.jetty.HttpParser.parseAvailable
> (HttpParser.java:205)
>          at org.mortbay.jetty.HttpConnection.handle
> (HttpConnection.java:380)
>          at org.mortbay.io.nio.SelectChannelEndPoint.run
> (SelectChannelEndPoint.java:395)
>          at org.mortbay.thread.BoundedThreadPool$PoolThread.run
> (BoundedThreadPool.java:450)
> Caused by: java.lang.IllegalArgumentException
>          at sun.reflect.NativeMethodAccessorImpl.invoke0(Native
> Method) at sun.reflect.NativeMethodAccessorImpl.invoke
> (NativeMethodAccessorImpl.java:39)
>          at sun.reflect.DelegatingMethodAccessorImpl.invoke
> (DelegatingMethodAccessorImpl.java:25)
>          at java.lang.reflect.Method.invoke(Method.java:585)
>          at
> org.apache.cxf.service.invoker.AbstractInvoker.performInvocation
> (AbstractInvoker.java:124)
>          at org.apache.cxf.service.invoker.AbstractInvoker.invoke
> (AbstractInvoker.java:82)
>          ... 27 more
> 02-Feb-2008 12:46:56 org.apache.cxf.interceptor.LoggingOutInterceptor
> $LoggingCallback onClose
> INFO: Outbound Message
> ---------------------------
> Encoding: UTF-8
> Headers: {}
> Messages:
> Payload: <soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/
> envelope/"><soap:Body><soap:Fault><faultcode>soap:Server</
> faultcode><faultstring>null while invoking public
> com.surgex.addresslookup.model.UKAddress[]
> com.surgex.addresslookup.service.impl.AddressLookupServiceImpl.lookupU
>K(
> com.surgex.commons.remoting.model.Credential,java.lang.String,java.uti
>l. Map,boolean) throws
> com.surgex.commons.remoting.exceptions.RemotingException,com.surgex.co
>mm
> ons.remoting.exceptions.InvalidArgumentException,com.surgex.commons.re
>mo ting.exceptions.UnauthorisedAccessException with params [null, null,
> null, null].</faultstring></soap:Fault></soap:Body></soap:Envelope>
>
>
>
>
>
> CXF 2.0.3
> =========
>
> 03-Feb-2008 11:12:35 org.apache.cxf.interceptor.LoggingInInterceptor
> handleMessage
> INFO: Inbound Message
> --------------------------------------
> Encoding: UTF-8
> Headers: {Host=[192.168.10.61:9530], User-Agent=[Java/1.5.0_13],
> connection=[keep-alive], SOAPAction=[""], transfer-encoding=
> [chunked], Pragma=[no-cache], content-type=[text/xml; charset=UTF-8],
> Cache-Control=[no-cache], Accept=[*]}
> Message:
> <soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/
> envelope/"><soap:Body><ns1:lookupUK xmlns:ns1="http://
> addresslookup.surgex.com"><ns1:credential><ns2:serviceName
> xmlns:ns2="http://model.remoting.commons.surgex.com">TEST</
> ns2:serviceName><ns2:servicePassword xmlns:ns2="http://
> model.remoting.commons.surgex.com">password</ns2:servicePassword></
> ns1:credential><ns1:postcode>SW7 7ET</ns1:postcode><ns1:otherInfo /
>
>  ><ns1:multipleResults>false</ns1:multipleResults></ns1:lookupUK></
>
> soap:Body></soap:Envelope>
> --------------------------------------
> 2008-02-03 11:12:35,328  DEBUG Looking up UK address. Parameters
> [TEST:password:SW7 7ET:none:false].
> 2008-02-03 11:12:35,618  DEBUG Looking up UK address using SAM.
> Parameters [SW7 7ET].
> 2008-02-03 11:12:35,687  DEBUG Looked up UK address using SAM.
> Parameters [SW7 7ET]. Found [15] addresses.
>
> On 2 Feb 2008, at 03:13, Daniel Kulp wrote:
> > In your spring config, can you add:
> >
> >
> >     <cxf:bus>
> >         <cxf:features>
> >             <cxf:logging/>
> >         </cxf:features>
> >     </cxf:bus>
> >
> > You'll probably need to add:
> > http://cxf.apache.org/core http://cxf.apache.org/schemas/core.xsd
> > to the schemaLocation.
> >
> > This should make it log the incoming/outgoing soap messages to the
> > normal
> > logging place.  (default would be to the console).    I'd be
> > curious to
> > see the difference between the 2.0.3 and 2.0.4 messages.
> >
> > Dan
>
> --
> Frederic P. Soulier
> OpenPGP key available on http://pgpkeys.mit.edu/
> 1024D/BA6700ED   49A6 8E8E 4230 8D41 1ADE  B649 3203 1DD2 BA67 00ED



-- 
J. Daniel Kulp
Principal Engineer, IONA
dkulp@apache.org
http://www.dankulp.com/blog

Mime
View raw message