ctoestreich/cxf-client — Issue #6: Conflict with plugin Jasper
Author: armandodj5
Created: 2012-02-16 22:20:16+00:00
State: open

I have installed the plugin version 1.2.7

I have put Out interceptors. Everything works fine, I can to cunsume simple and complex services.

I need to make reports with jasper plugin (http://grails.org/plugin/jasper) but when I install it, for some reason I start to have problems with Web services.

It is a conflict with the jasper plugin.

The erros details are:

Error 500: Executing action [index] of controller [imp.ServiceController] caused exception: null
Servlet: grails
URI: /sos/grails/service/findPatient.dispatch
Exception Message: javax/xml/namespace/NamespaceContext
Caused by: Executing action [index] of controller [imp.ServiceController] caused exception: null
Class: WebServiceClientFactoryImpl

e.stacktrace() ----->

org.codehaus.groovy.grails.web.servlet.mvc.exceptions.ControllerExecutionException: Executing action [index] of controller [imp.ServiceController] caused exception: null

at java.lang.Thread.run(Thread.java:662)

Caused by: java.lang.reflect.UndeclaredThrowableException

at $Proxy48.findPatients(Unknown Source)

at imp.ImpServicePortType$findPatients.call(Unknown Source)

at imp.ServiceController$_closure11.doCall(ServiceController.groovy:385)

at imp.ServiceController$_closure11.doCall(ServiceController.groovy)

... 1 more

Caused by: com.grails.cxf.client.exception.CxfClientException: java.lang.reflect.InvocationTargetException

at com.grails.cxf.client.WebServiceClientFactoryImpl$WSClientInvocationHandler.invoke(WebServiceClientFactoryImpl.groovy:257)

... 5 more

Caused by: java.lang.reflect.InvocationTargetException

at java_lang_reflect_Method$invoke.call(Unknown Source)

at com.grails.cxf.client.WebServiceClientFactoryImpl$WSClientInvocationHandler.invoke(WebServiceClientFactoryImpl.groovy:254)

... 5 more

Caused by: java.lang.LinkageError: javax/xml/namespace/NamespaceContext

at javax.xml.bind.DatatypeConverterImpl._printQName(DatatypeConverterImpl.java:449)

at javax.xml.bind.DatatypeConverterImpl.printQName(DatatypeConverterImpl.java:443)

at javax.xml.bind.DatatypeConverter.printQName(DatatypeConverter.java:521)

at com.sun.xml.bind.v2.runtime.XMLSerializer.childAsXsiType(XMLSerializer.java:685)

at com.sun.xml.bind.v2.runtime.property.SingleElementNodeProperty.serializeBody(SingleElementNodeProperty.java:152)

at com.sun.xml.bind.v2.runtime.ClassBeanInfoImpl.serializeBody(ClassBeanInfoImpl.java:340)

at com.sun.xml.bind.v2.runtime.XMLSerializer.childAsXsiType(XMLSerializer.java:696)

at com.sun.xml.bind.v2.runtime.property.SingleElementNodeProperty.serializeBody(SingleElementNodeProperty.java:152)

at com.sun.xml.bind.v2.runtime.ElementBeanInfoImpl$1.serializeBody(ElementBeanInfoImpl.java:157)

at com.sun.xml.bind.v2.runtime.ElementBeanInfoImpl$1.serializeBody(ElementBeanInfoImpl.java:189)

at com.sun.xml.bind.v2.runtime.ElementBeanInfoImpl.serializeBody(ElementBeanInfoImpl.java:316)

at com.sun.xml.bind.v2.runtime.ElementBeanInfoImpl.serializeRoot(ElementBeanInfoImpl.java:323)

at com.sun.xml.bind.v2.runtime.ElementBeanInfoImpl.serializeRoot(ElementBeanInfoImpl.java:72)

at com.sun.xml.bind.v2.runtime.XMLSerializer.childAsRoot(XMLSerializer.java:494)

at com.sun.xml.bind.v2.runtime.MarshallerImpl.write(MarshallerImpl.java:315)

at com.sun.xml.bind.v2.runtime.MarshallerImpl.marshal(MarshallerImpl.java:172)

at org.apache.cxf.jaxb.JAXBEncoderDecoder.writeObject(JAXBEncoderDecoder.java:534)

at org.apache.cxf.jaxb.JAXBEncoderDecoder.marshall(JAXBEncoderDecoder.java:227)

at org.apache.cxf.jaxb.io.DataWriterImpl.write(DataWriterImpl.java:169)

at org.apache.cxf.interceptor.AbstractOutDatabindingInterceptor.writeParts(AbstractOutDatabindingInterceptor.java:119)

at org.apache.cxf.interceptor.BareOutInterceptor.handleMessage(BareOutInterceptor.java:68)

at org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:247)

at org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:516)

at org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:313)

at org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:265)

at org.apache.cxf.frontend.ClientProxy.invokeSync(ClientProxy.java:73)

at org.apache.cxf.jaxws.JaxWsClientProxy.invoke(JaxWsClientProxy.java:124)

at $Proxy49.findPatients(Unknown Source)

... 7 more