Hi Fabio,
Unfortunately there is no logging statements in the code. I want to
enable a much more dynamic approach with the concept of a developer
mode that adapts classes with logging information rather than
"polluting" the runtime code with logging statements.
What is AtividadeSmartGWTRequest? a JAXB object or your own type? if
the latter i presume you have message body reader for that type, are
you sure the reader is returning an instance compatible with that type?
Paul.
On May 28, 2009, at 11:06 AM, Fabio Oliveira wrote:
> Hi list!
>
> Is there any way to log the Jersey activity? I'm having problems
> while sending a msg and parsing using Jersey, and I'm receiving the
> message:
>
> java.lang.IllegalArgumentException: argument type mismatch
> sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>
> sun
> .reflect
> .NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
>
> sun
> .reflect
> .DelegatingMethodAccessorImpl
> .invoke(DelegatingMethodAccessorImpl.java:25)
> java.lang.reflect.Method.invoke(Method.java:597)
>
> com
> .sun
> .jersey
> .server
> .impl.model.method.dispatch.AbstractResourceMethodDispatchProvider
> $
> TypeOutInvoker._dispatch(AbstractResourceMethodDispatchProvider.java:
> 156)
>
> com
> .sun
> .jersey
> .server
> .impl
> .model
> .method
> .dispatch
> .ResourceJavaMethodDispatcher
> .dispatch(ResourceJavaMethodDispatcher.java:67)
>
> com
> .sun
> .jersey
> .server.impl.uri.rules.HttpMethodRule.accept(HttpMethodRule.java:166)
>
> com
> .sun
> .jersey
> .server.impl.uri.rules.SubLocatorRule.accept(SubLocatorRule.java:108)
>
> com
> .sun
> .jersey
> .server
> .impl.uri.rules.RightHandPathRule.accept(RightHandPathRule.java:114)
>
> com
> .sun
> .jersey
> .server
> .impl.uri.rules.ResourceClassRule.accept(ResourceClassRule.java:74)
>
> com
> .sun
> .jersey
> .server
> .impl.uri.rules.RightHandPathRule.accept(RightHandPathRule.java:114)
>
> com
> .sun
> .jersey
> .server
> .impl
> .uri
> .rules.RootResourceClassesRule.accept(RootResourceClassesRule.java:66)
>
> com
> .sun
> .jersey
> .server
> .impl
> .application
> .WebApplicationImpl._handleRequest(WebApplicationImpl.java:658)
>
> com
> .sun
> .jersey
> .server
> .impl
> .application
> .WebApplicationImpl.handleRequest(WebApplicationImpl.java:616)
>
> com
> .sun
> .jersey
> .server
> .impl
> .application
> .WebApplicationImpl.handleRequest(WebApplicationImpl.java:607)
>
> com
> .sun
> .jersey.spi.container.servlet.WebComponent.service(WebComponent.java:
> 309)
>
> com
> .sun
> .jersey
> .spi
> .container.servlet.ServletContainer.service(ServletContainer.java:425)
>
> com
> .sun
> .jersey
> .spi
> .container.servlet.ServletContainer.service(ServletContainer.java:590)
> javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
>
> org
> .springframework
> .orm
> .jpa
> .support
> .OpenEntityManagerInViewFilter
> .doFilterInternal(OpenEntityManagerInViewFilter.java:112)
>
> org
> .springframework
> .web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:
> 76)
>
> javawebparts
> .filter.CompressionFilter.doFilter(CompressionFilter.java:309)
>
> My method signature:
>
> @PUT
> @Consumes(MediaType.TEXT_XML)
> public SmartGWTResponse putAtividade(AtividadeSmartGWTRequest
> request) {
> ...
> }
>
>
> Thanks!
>
> --
>
> Fábio Braga de Oliveira
> ArchitecTeam Consulting
> http://www.linkedin.com/in/fabiobragaoliveira
> E-mail: fabio.braga_at_gmail.com
> Mobile: +55 19 9270-6574
>