cxf-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Per Olesen <>
Subject JaxWs client failure on appengine
Date Thu, 29 May 2014 21:55:37 GMT

I am having trouble calling a web service using CXF from a google app engine app. I am getting
a "java.lang.IllegalAccessException: Reflection is not allowed on private static”
exception. From the CXF sources, I can see the problem lies in "CXFAuthenticator.addAuthenticator",
which does a lot of reflection stuff, amongst other things setting fields on “”
to public/accessible.

This does not play well on google app engine, which restricts such code.

Are there any known workarounds for this?

I have included the stack trace below:

java.lang.SecurityException: java.lang.IllegalAccessException: Reflection is not allowed on
private static
at org.apache.cxf.common.util.ReflectionUtil$
at org.apache.cxf.common.util.ReflectionUtil$
at org.apache.cxf.common.util.ReflectionUtil.setAccessible(
at org.apache.cxf.transport.http.CXFAuthenticator.addAuthenticator(
at org.apache.cxf.transport.http.URLConnectionHTTPConduit.<init>(
at org.apache.cxf.transport.http.HTTPTransportFactory.getConduit(
at org.apache.cxf.binding.soap.SoapTransportFactory.getConduit(
at org.apache.cxf.endpoint.AbstractConduitSelector.getSelectedConduit(
at org.apache.cxf.endpoint.UpfrontConduitSelector.prepare(
at org.apache.cxf.endpoint.ClientImpl.prepareConduitSelector(
at org.apache.cxf.endpoint.ClientImpl.doInvoke(
at org.apache.cxf.endpoint.ClientImpl.invoke(
at org.apache.cxf.endpoint.ClientImpl.invoke(
at org.apache.cxf.endpoint.ClientImpl.invoke(
at org.apache.cxf.frontend.ClientProxy.invokeSync(
at org.apache.cxf.jaxws.JaxWsClientProxy.invoke(

View raw message