Hi
Well, it appears Spring AOP is interfering.
I can not do anything about it by just looking at the stack trace.
I can see ThreadLocalInvocationHandler doing the call but what is the
source of NPE is not known.
Can you please debug into it ?
Or create a basic Maven project that will let me build a bundle and debug ?
Cheers, Sergey
On 09/07/14 10:25, Krzysztof Nowicki wrote:
Hi,
After applied your fix ResourceInfo was inject without problems but than
when I had executed getResourceMethod I got exception:
2014-07-09 11:17:47,688 | WARN | tp1760451987-131 |
PhaseInterceptorChain | 91 - org.apache.cxf.cxf-core - 3.0.0
| Interceptor for
{http://rest.subscriber.core.mvoip.tlabs.com/}SubscribersResource has
thrown exception, unwinding now
java.lang.NullPointerException
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)[:1.7.0_06]
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)[:1.7.0_06]
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)[:1.7.0_06]
at java.lang.reflect.Method.invoke(Method.java:601)[:1.7.0_06]
at
org.apache.cxf.jaxrs.impl.tl.ThreadLocalInvocationHandler.invoke(ThreadLocalInvocationHandler.java:36)[90:org.apache.cxf.cxf-rt-frontend-jaxrs:3.0.0]
at $Proxy519.getResourceMethod(Unknown Source)
at
com.tlabs.mvoip.oauth.BasicAuthenticationFilter.isBasicAuthorizationAllowed(BasicAuthenticationFilter.java:54)[99:com.tlabs.mvoip.common.security.oauth2:0.34.0.SNAPSHOT-20140709-1104]
at
com.tlabs.mvoip.oauth.BasicAuthenticationFilter.filter(BasicAuthenticationFilter.java:34)[99:com.tlabs.mvoip.common.security.oauth2:0.34.0.SNAPSHOT-20140709-1104]
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)[:1.7.0_06]
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)[:1.7.0_06]
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)[:1.7.0_06]
at java.lang.reflect.Method.invoke(Method.java:601)[:1.7.0_06]
at
org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:317)[56:org.springframework.aop:3.2.4.RELEASE]
at
org.springframework.osgi.service.importer.support.internal.aop.ServiceInvoker.doInvoke(ServiceInvoker.java:58)[248:org.springframework.osgi.core:1.2.1]
at
org.springframework.osgi.service.importer.support.internal.aop.ServiceInvoker.invoke(ServiceInvoker.java:62)[248:org.springframework.osgi.core:1.2.1]
at
org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)[56:org.springframework.aop:3.2.4.RELEASE]
at
org.springframework.aop.support.DelegatingIntroductionInterceptor.doProceed(DelegatingIntroductionInterceptor.java:132)[56:org.springframework.aop:3.2.4.RELEASE]
at
org.springframework.aop.support.DelegatingIntroductionInterceptor.invoke(DelegatingIntroductionInterceptor.java:120)[56:org.springframework.aop:3.2.4.RELEASE]
at
org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)[56:org.springframework.aop:3.2.4.RELEASE]
at
org.springframework.osgi.service.util.internal.aop.ServiceTCCLInterceptor.invokeUnprivileged(ServiceTCCLInterceptor.java:56)[248:org.springframework.osgi.core:1.2.1]
at
org.springframework.osgi.service.util.internal.aop.ServiceTCCLInterceptor.invoke(ServiceTCCLInterceptor.java:39)[248:org.springframework.osgi.core:1.2.1]
at
org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)[56:org.springframework.aop:3.2.4.RELEASE]
at
org.springframework.osgi.service.importer.support.LocalBundleContextAdvice.invoke(LocalBundleContextAdvice.java:59)[248:org.springframework.osgi.core:1.2.1]
at
org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)[56:org.springframework.aop:3.2.4.RELEASE]
at
org.springframework.aop.support.DelegatingIntroductionInterceptor.doProceed(DelegatingIntroductionInterceptor.java:132)[56:org.springframework.aop:3.2.4.RELEASE]
at
org.springframework.aop.support.DelegatingIntroductionInterceptor.invoke(DelegatingIntroductionInterceptor.java:120)[56:org.springframework.aop:3.2.4.RELEASE]
at
org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)[56:org.springframework.aop:3.2.4.RELEASE]
at
org.springframework.aop.framework.CglibAopProxy$FixedChainStaticTargetInterceptor.intercept(CglibAopProxy.java:582)[56:org.springframework.aop:3.2.4.RELEASE]
at
com.tlabs.mvoip.oauth.BasicAuthenticationFilter$$EnhancerByCGLIB$$c742d1ee.filter(<generated>)[mvn:org.springframework/org.springframework.core/3.2.4.RELEASE:]
at
org.apache.cxf.jaxrs.utils.JAXRSUtils.runContainerRequestFilters(JAXRSUtils.java:1627)[90:org.apache.cxf.cxf-rt-frontend-jaxrs:3.0.0]
at
org.apache.cxf.jaxrs.interceptor.JAXRSInInterceptor.processRequest(JAXRSInInterceptor.java:201)[90:org.apache.cxf.cxf-rt-frontend-jaxrs:3.0.0]
at
org.apache.cxf.jaxrs.interceptor.JAXRSInInterceptor.handleMessage(JAXRSInInterceptor.java:76)[90:org.apache.cxf.cxf-rt-frontend-jaxrs:3.0.0]
at
org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:307)[91:org.apache.cxf.cxf-core:3.0.0]
at
org.apache.cxf.transport.ChainInitiationObserver.onMessage(ChainInitiationObserver.java:121)[91:org.apache.cxf.cxf-core:3.0.0]
at
org.apache.cxf.transport.http.AbstractHTTPDestination.invoke(AbstractHTTPDestination.java:243)[96:org.apache.cxf.cxf-rt-transports-http:3.0.0]
at
org.apache.cxf.transport.servlet.ServletController.invokeDestination(ServletController.java:223)[96:org.apache.cxf.cxf-rt-transports-http:3.0.0]
at
org.apache.cxf.transport.servlet.ServletController.invoke(ServletController.java:197)[96:org.apache.cxf.cxf-rt-transports-http:3.0.0]
at
org.apache.cxf.transport.servlet.ServletController.invoke(ServletController.java:149)[96:org.apache.cxf.cxf-rt-transports-http:3.0.0]
at
org.apache.cxf.transport.servlet.CXFNonSpringServlet.invoke(CXFNonSpringServlet.java:171)[96:org.apache.cxf.cxf-rt-transports-http:3.0.0]
at
org.apache.cxf.transport.servlet.AbstractHTTPServlet.handleRequest(AbstractHTTPServlet.java:286)[96:org.apache.cxf.cxf-rt-transports-http:3.0.0]
at
org.apache.cxf.transport.servlet.AbstractHTTPServlet.doGet(AbstractHTTPServlet.java:211)[96:org.apache.cxf.cxf-rt-transports-http:3.0.0]
at
javax.servlet.http.HttpServlet.service(HttpServlet.java:575)[102:org.apache.geronimo.specs.geronimo-servlet_3.0_spec:1.0]
at
org.apache.cxf.transport.servlet.AbstractHTTPServlet.service(AbstractHTTPServlet.java:262)[96:org.apache.cxf.cxf-rt-transports-http:3.0.0]
at
org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:684)[218:org.eclipse.jetty.aggregate.jetty-all-server:8.1.14.v20131031]
at
org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:501)[218:org.eclipse.jetty.aggregate.jetty-all-server:8.1.14.v20131031]
at
org.ops4j.pax.web.service.jetty.internal.HttpServiceServletHandler.doHandle(HttpServiceServletHandler.java:69)[228:org.ops4j.pax.web.pax-web-jetty:3.1.0]
at
org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:137)[218:org.eclipse.jetty.aggregate.jetty-all-server:8.1.14.v20131031]
at
org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:557)[218:org.eclipse.jetty.aggregate.jetty-all-server:8.1.14.v20131031]
at
org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:231)[218:org.eclipse.jetty.aggregate.jetty-all-server:8.1.14.v20131031]
at
org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1086)[218:org.eclipse.jetty.aggregate.jetty-all-server:8.1.14.v20131031]
at
org.ops4j.pax.web.service.jetty.internal.HttpServiceContext.doHandle(HttpServiceContext.java:240)[228:org.ops4j.pax.web.pax-web-jetty:3.1.0]
at
org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:428)[218:org.eclipse.jetty.aggregate.jetty-all-server:8.1.14.v20131031]
at
org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:193)[218:org.eclipse.jetty.aggregate.jetty-all-server:8.1.14.v20131031]
at
org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1020)[218:org.eclipse.jetty.aggregate.jetty-all-server:8.1.14.v20131031]
at
org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:135)[218:org.eclipse.jetty.aggregate.jetty-all-server:8.1.14.v20131031]
at
org.ops4j.pax.web.service.jetty.internal.JettyServerHandlerCollection.handle(JettyServerHandlerCollection.java:77)[228:org.ops4j.pax.web.pax-web-jetty:3.1.0]
at
org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:116)[218:org.eclipse.jetty.aggregate.jetty-all-server:8.1.14.v20131031]
at
org.eclipse.jetty.server.Server.handle(Server.java:370)[218:org.eclipse.jetty.aggregate.jetty-all-server:8.1.14.v20131031]
at
org.eclipse.jetty.server.AbstractHttpConnection.handleRequest(AbstractHttpConnection.java:494)[218:org.eclipse.jetty.aggregate.jetty-all-server:8.1.14.v20131031]
at
org.eclipse.jetty.server.AbstractHttpConnection.headerComplete(AbstractHttpConnection.java:971)[218:org.eclipse.jetty.aggregate.jetty-all-server:8.1.14.v20131031]
at
org.eclipse.jetty.server.AbstractHttpConnection$RequestHandler.headerComplete(AbstractHttpConnection.java:1033)[218:org.eclipse.jetty.aggregate.jetty-all-server:8.1.14.v20131031]
at
org.eclipse.jetty.http.HttpParser.parseNext(HttpParser.java:644)[218:org.eclipse.jetty.aggregate.jetty-all-server:8.1.14.v20131031]
at
org.eclipse.jetty.http.HttpParser.parseAvailable(HttpParser.java:235)[218:org.eclipse.jetty.aggregate.jetty-all-server:8.1.14.v20131031]
at
org.eclipse.jetty.server.AsyncHttpConnection.handle(AsyncHttpConnection.java:82)[218:org.eclipse.jetty.aggregate.jetty-all-server:8.1.14.v20131031]
at
org.eclipse.jetty.io.nio.SelectChannelEndPoint.handle(SelectChannelEndPoint.java:667)[218:org.eclipse.jetty.aggregate.jetty-all-server:8.1.14.v20131031]
at
org.eclipse.jetty.io.nio.SelectChannelEndPoint$1.run(SelectChannelEndPoint.java:52)[218:org.eclipse.jetty.aggregate.jetty-all-server:8.1.14.v20131031]
at
org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:608)[218:org.eclipse.jetty.aggregate.jetty-all-server:8.1.14.v20131031]
at
org.eclipse.jetty.util.thread.QueuedThreadPool$3.run(QueuedThreadPool.java:543)[218:org.eclipse.jetty.aggregate.jetty-all-server:8.1.14.v20131031]
at java.lang.Thread.run(Thread.java:722)[:1.7.0_06]
Thanks,
Kris
2014-07-08 17:43 GMT+02:00 Sergey Beryozkin <[email protected]
<mailto:[email protected]>>:
Hi
On 08/07/14 14:49, Krzysztof Nowicki wrote:
Hi,
I believe I've fixed the issue, I was able to get ResourceInfo
injected
and reporting the correct class and method name.
See the fix at [1], can you try it please ?
- Ok I will try inject ResourceInfo with your fix and send you
results
Thanks
You mentioned ResourceInfo.getResource returning null, that can
happen
in a PreMatch ContainerRequestFilter. What kind of filter do you
use ?
- Yes you are right it was in PreMatch filter so no surprise that
ResourceInfo object was not created yet
and I got null nevertheless I
tried also in not PreMatch filter but than I got NPE during
ResourceInfo.__getResourceMethod()
Can you post a stacktrace ? May be it is the case of Spring
proxifying something...
Cheers, Sergey
Thanks,
Kris
2014-07-08 14:14 GMT+02:00 Sergey Beryozkin
<[email protected] <mailto:[email protected]>
<mailto:[email protected] <mailto:[email protected]>>>__:
Hi,
I believe I've fixed the issue, I was able to get ResourceInfo
injected and reporting the correct class and method name.
See the fix at [1], can you try it please ?
You mentioned ResourceInfo.getResource returning null, that can
happen in a PreMatch ContainerRequestFilter. What kind of
filter do
you use ?
Re RequestContext: not sure where NPE is coming from,
perhaps it was
related to a ThreadLocalProxy issue, can you retry ? I was
able to
use RequestContext to initialize a subresource (it is
supposed to be
used with subresources only). I've found a minor issue with
it (late
context value injection), something I will fix
Cheers, Sergey
[1] https://issues.apache.org/____jira/browse/CXF-5860
<https://issues.apache.org/__jira/browse/CXF-5860>
<https://issues.apache.org/__jira/browse/CXF-5860
<https://issues.apache.org/jira/browse/CXF-5860>>
On 08/07/14 10:49, Sergey Beryozkin wrote:
Hi
I've reproduced the issue and am looking into it
Cheers, Sergey
On 07/07/14 09:15, Krzysztof Nowicki wrote:
Hi,
That was also my first thought that package is not
exported
but when I
checked it seems that export packages are correct:
Exported Packages
org.apache.cxf.jaxrs,version=____3.0.0
org.apache.cxf.jaxrs.____blueprint,version=3.0.0
org.apache.cxf.jaxrs.ext,____version=3.0.0
org.apache.cxf.jaxrs.ext.____multipart,version=3.0.0
org.apache.cxf.jaxrs.ext.xml,____version=3.0.0
org.apache.cxf.jaxrs.impl,____version=3.0.0
org.apache.cxf.jaxrs.impl.tl <http://org.apache.cxf.jaxrs.impl.tl>
<http://org.apache.cxf.jaxrs.__impl.tl
<http://org.apache.cxf.jaxrs.impl.tl>>
<http://org.apache.cxf.jaxrs.____impl.tl
<http://impl.tl>
<http://org.apache.cxf.jaxrs.__impl.tl
<http://org.apache.cxf.jaxrs.impl.tl>>>,version=3.0.0
org.apache.cxf.jaxrs.____interceptor,version=3.0.0
org.apache.cxf.jaxrs.____lifecycle,version=3.0.0
org.apache.cxf.jaxrs.model,____version=3.0.0
org.apache.cxf.jaxrs.provider,____version=3.0.0
org.apache.cxf.jaxrs.security,____version=3.0.0
org.apache.cxf.jaxrs.servlet,____version=3.0.0
org.apache.cxf.jaxrs.spring,____version=3.0.0
org.apache.cxf.jaxrs.utils,____version=3.0.0
org.apache.cxf.jaxrs.utils.____multipart,version=3.0.0
org.apache.cxf.jaxrs.utils.____schemas,version=3.0.0
org.apache.cxf.jaxrs.____validation,version=3.0.0
Do you have any ideas what else I can try ?
Cheers,
Krzysztof Nowicki
2014-07-06 22:51 GMT+02:00 Sergey Beryozkin
<[email protected] <mailto:[email protected]>
<mailto:[email protected] <mailto:[email protected]>>
<mailto:[email protected]
<mailto:[email protected]> <mailto:[email protected]
<mailto:[email protected]>>>__>__:
Hi,
We have tests where ResourceInfo is injected.
The problem is that in OSGI it is not visible
to it not
being
exported.
Rather than modifying the code, can you
experiment with
updating the
Export-Package instruction in the pom.xml ?
Cheers, Sergey
On 05/07/14 11:05, Krzysztof Nowicki wrote:
Hi,
So I suppose that there is a bug in
InjectionUtils
class, the
jsr339
classloader is used for new
ThreadLocalProxy so
changed a
little bit
implementation:
ClassLoader classLoader =
ThreadLocalProxy.class.______isAssignableFrom(type)
? type
.getClassLoader() :
ThreadLocalProxy.class.______getClassLoader();
return (ThreadLocalProxy<T>)
Proxy
.newProxyInstance(classLoader, new
Class[]{type,
ThreadLocalProxy.class},
new
ThreadLocalInvocationHandler<______T>());
After this I was able to inject
ResourceInfo or
ResourceContext
classes,
but overall it didn't resolve my problem
which is
determine
target
Method in filter.
ResourceInfo after injection was null.
Also tried this:
JAXRSUtils.getCurrentMessage()______.getExchange().get(______OperationResourceInfo.class)
but it's also null.
When I tried to use ResourceContext then
in runtime
I got:
java.lang.NullPointerException
at
org.apache.cxf.jaxrs.impl.______ResourceContextImpl.<init>(______ResourceContextImpl.java:36)[______90:org.apache.cxf.cxf-rt-______frontend-jaxrs:3.0.0]
at
org.apache.cxf.jaxrs.utils.______JAXRSUtils.__createContextValue(______JAXRSUtils.java:1076)[90:____org.__apache.cxf.cxf-rt-____frontend-__jaxrs:3.0.0]
at
org.apache.cxf.jaxrs.utils.______InjectionUtils.______injectContextFields(______InjectionUtils.java:977)[90:______org.apache.cxf.cxf-rt-______frontend-jaxrs:3.0.0]
at
org.apache.cxf.jaxrs.utils.______InjectionUtils.__injectContexts(______InjectionUtils.java:946)[90:______org.apache.cxf.cxf-rt-______frontend-jaxrs:3.0.0]
at
org.apache.cxf.jaxrs.utils.______JAXRSUtils.______runContainerRequestFilters(______JAXRSUtils.java:1626)[90:org.______apache.cxf.cxf-rt-__frontend-____jaxrs:3.0.0]
at
org.apache.cxf.jaxrs.______interceptor.______JAXRSInInterceptor.______processRequest(______JAXRSInInterceptor.java:104)[______90:org.apache.cxf.cxf-rt-______frontend-jaxrs:3.0.0]
at
org.apache.cxf.jaxrs.______interceptor.______JAXRSInInterceptor.______handleMessage(______JAXRSInInterceptor.java:76)[______90:org.apache.cxf.cxf-rt-______frontend-jaxrs:3.0.0]
at
org.apache.cxf.phase.______PhaseInterceptorChain.______doIntercept(______PhaseInterceptorChain.java:______307)[91:org.apache.cxf.cxf-______core:3.0.0]
at
org.apache.cxf.transport.______ChainInitiationObserver.______onMessage(______ChainInitiationObserver.java:______121)[91:org.apache.cxf.cxf-______core:3.0.0]
at
org.apache.cxf.transport.http.______AbstractHTTPDestination.______invoke(______AbstractHTTPDestination.java:______243)[96:org.apache.cxf.cxf-____rt-__transports-http:3.0.0]
at
org.apache.cxf.transport.______servlet.ServletController.______invokeDestination(______ServletController.java:223)[______96:org.apache.cxf.cxf-rt-______transports-http:3.0.0]
at
org.apache.cxf.transport.______servlet.ServletController.______invoke(ServletController.java:______197)[96:org.apache.cxf.__cxf-__rt-__transports-http:3.__0.0]
at
org.apache.cxf.transport.______servlet.ServletController.______invoke(ServletController.java:______149)[96:org.apache.cxf.__cxf-__rt-__transports-http:3.__0.0]
at
org.apache.cxf.transport.______servlet.CXFNonSpringServlet.______invoke(CXFNonSpringServlet.______java:171)[96:org.apache.__cxf.____cxf-rt-transports-__http:3.0.0]
at
org.apache.cxf.transport.______servlet.AbstractHTTPServlet.______handleRequest(______AbstractHTTPServlet.java:286)[______96:org.apache.cxf.cxf-rt-______transports-http:3.0.0]
at
org.apache.cxf.transport.______servlet.AbstractHTTPServlet.______doGet(AbstractHTTPServlet.______java:211)[96:org.apache.cxf.______cxf-rt-transports-http:3.__0.0]
at
javax.servlet.http.______HttpServlet.service(______HttpServlet.java:575)[102:org.______apache.geronimo.specs.______geronimo-servlet_3.0_spec:1.0]
at
org.apache.cxf.transport.______servlet.AbstractHTTPServlet.______service(AbstractHTTPServlet.______java:262)[96:org.apache.__cxf.____cxf-rt-transports-__http:3.0.0]
at
org.eclipse.jetty.servlet.______ServletHolder.handle(______ServletHolder.java:684)[222:______org.eclipse.jetty.aggregate.______jetty-all-server:8.1.14.______v20131031]
at
org.eclipse.jetty.servlet.______ServletHandler.doHandle(______ServletHandler.java:501)[222:______org.eclipse.jetty.__aggregate.____jetty-all-__server:8.1.14.____v20131031]
at
org.ops4j.pax.web.service.______jetty.internal.______HttpServiceServletHandler.______doHandle(______HttpServiceServletHandler.______java:69)[232:org.ops4j.pax.______web.pax-web-jetty:3.1.0]
at
org.eclipse.jetty.server.______handler.ScopedHandler.handle(______ScopedHandler.java:137)[__222:____org.eclipse.jetty.__aggregate.____jetty-all-__server:8.1.14.____v20131031]
at
org.eclipse.jetty.security.______SecurityHandler.handle(______SecurityHandler.java:557)[222:______org.eclipse.jetty.__aggregate.____jetty-all-__server:8.1.14.____v20131031]
at
org.eclipse.jetty.server.______session.SessionHandler.______doHandle(SessionHandler.java:______231)[222:org.eclipse.jetty.______aggregate.jetty-all-__server:8.____1.14.v20131031]
at
org.eclipse.jetty.server.______handler.ContextHandler.______doHandle(ContextHandler.java:______1086)[222:org.eclipse.__jetty.____aggregate.jetty-all-__server:8.____1.14.v20131031]
at
org.ops4j.pax.web.service.______jetty.internal.______HttpServiceContext.doHandle(______HttpServiceContext.java:240)__[____232:org.ops4j.pax.web.__pax-__web-__jetty:3.1.0]
at
org.eclipse.jetty.servlet.______ServletHandler.doScope(______ServletHandler.java:428)[222:______org.eclipse.jetty.__aggregate.____jetty-all-__server:8.1.14.____v20131031]
at
org.eclipse.jetty.server.______session.SessionHandler.______doScope(SessionHandler.java:______193)[222:org.eclipse.jetty.______aggregate.jetty-all-server:__8.____1.14.v20131031]
at
org.eclipse.jetty.server.______handler.ContextHandler.______doScope(ContextHandler.java:______1020)[222:org.eclipse.jetty.______aggregate.jetty-all-__server:8.____1.14.v20131031]
at
org.eclipse.jetty.server.______handler.ScopedHandler.handle(______ScopedHandler.java:135)[__222:____org.eclipse.jetty.__aggregate.____jetty-all-__server:8.1.14.____v20131031]
at
org.ops4j.pax.web.service.______jetty.internal.______JettyServerHandlerCollection.______handle(______JettyServerHandlerCollection.______java:77)[232:org.ops4j.pax.______web.pax-web-jetty:3.1.0]
at
org.eclipse.jetty.server.______handler.HandlerWrapper.handle(______HandlerWrapper.java:116)[____222:__org.eclipse.jetty.____aggregate.__jetty-all-server:____8.1.14.__v20131031]
at
org.eclipse.jetty.server.______Server.handle(Server.java:370)______[222:org.eclipse.jetty.______aggregate.jetty-all-server:8.______1.14.v20131031]
at
org.eclipse.jetty.server.______AbstractHttpConnection.______handleRequest(______AbstractHttpConnection.java:______494)[222:org.eclipse.jetty.______aggregate.jetty-all-server:__8.____1.14.v20131031]
at
org.eclipse.jetty.server.______AbstractHttpConnection.______headerComplete(______AbstractHttpConnection.java:______971)[222:org.eclipse.jetty.______aggregate.jetty-all-server:__8.____1.14.v20131031]
at
org.eclipse.jetty.server.______AbstractHttpConnection$______RequestHandler.headerComplete(______AbstractHttpConnection.__java:____1033)[222:org.__eclipse.jetty.____aggregate.__jetty-all-server:__8.__1.14.__v20131031]
at
org.eclipse.jetty.http.______HttpParser.parseNext(______HttpParser.java:644)[222:org.______eclipse.jetty.aggregate.____jetty-__all-server:8.1.14.____v20131031]
at
org.eclipse.jetty.http.______HttpParser.parseAvailable(______HttpParser.java:235)[222:org.______eclipse.jetty.aggregate.____jetty-__all-server:8.1.14.____v20131031]
at
org.eclipse.jetty.server.______AsyncHttpConnection.handle(______AsyncHttpConnection.java:82)[______222:org.eclipse.jetty.______aggregate.jetty-all-server:8.______1.14.v20131031]
at
org.eclipse.jetty.io.nio.______SelectChannelEndPoint.handle(______SelectChannelEndPoint.java:______667)[222:org.eclipse.__jetty.____aggregate.jetty-all-__server:8.____1.14.v20131031]
at
org.eclipse.jetty.io.nio.______SelectChannelEndPoint$1.run(______SelectChannelEndPoint.java:__52)____[222:org.eclipse.jetty.______aggregate.jetty-all-__server:8.____1.14.v20131031]
at
org.eclipse.jetty.util.thread.______QueuedThreadPool.runJob(______QueuedThreadPool.java:608)[______222:org.eclipse.jetty.______aggregate.jetty-all-server:8.______1.14.v20131031]
at
org.eclipse.jetty.util.thread.______QueuedThreadPool$3.run(______QueuedThreadPool.java:543)[______222:org.eclipse.jetty.______aggregate.jetty-all-server:8.______1.14.v20131031]
at
java.lang.Thread.run(Thread.______java:722)[:1.7.0_06]
2014-07-04 15:27:08,326 | WARN |
tp1790679978-170 |
PhaseInterceptorChain | 91 -
org.apache.cxf.cxf-core
- 3.0.0
| Exception in handleFault on interceptor
org.apache.cxf.jaxrs.______interceptor.______JAXRSDefaultFaultOutIntercepto______r@5e64b67
org.apache.cxf.interceptor.______Fault
at
org.apache.cxf.interceptor.________AbstractFaultChainInitiatorObs______erver.onMessage(______AbstractFaultChainInitiatorObs______erver.java:76)[91:org.____apache.__cxf.cxf-core:3.0.0]
at
org.apache.cxf.phase.______PhaseInterceptorChain.______doIntercept(______PhaseInterceptorChain.java:______371)[91:org.apache.cxf.cxf-______core:3.0.0]
at
org.apache.cxf.transport.______ChainInitiationObserver.______onMessage(______ChainInitiationObserver.java:______121)[91:org.apache.cxf.cxf-______core:3.0.0]
at
org.apache.cxf.transport.http.______AbstractHTTPDestination.______invoke(______AbstractHTTPDestination.java:______243)[96:org.apache.cxf.cxf-____rt-__transports-http:3.0.0]
at
org.apache.cxf.transport.______servlet.ServletController.______invokeDestination(______ServletController.java:223)[______96:org.apache.cxf.cxf-rt-______transports-http:3.0.0]
at
org.apache.cxf.transport.______servlet.ServletController.______invoke(ServletController.java:______197)[96:org.apache.cxf.__cxf-__rt-__transports-http:3.__0.0]
at
org.apache.cxf.transport.______servlet.ServletController.______invoke(ServletController.java:______149)[96:org.apache.cxf.__cxf-__rt-__transports-http:3.__0.0]
at
org.apache.cxf.transport.______servlet.CXFNonSpringServlet.______invoke(CXFNonSpringServlet.______java..
Thanks,
Krzysztof Nowicki
2014-07-04 16:42 GMT+02:00 Sergey Beryozkin
<[email protected]
<mailto:[email protected]> <mailto:[email protected]
<mailto:[email protected]>>
<mailto:[email protected]
<mailto:[email protected]> <mailto:[email protected]
<mailto:[email protected]>>>
<mailto:[email protected]
<mailto:[email protected]>
<mailto:[email protected]
<mailto:[email protected]>> <mailto:[email protected]
<mailto:[email protected]>
<mailto:[email protected]
<mailto:[email protected]>>>__>__>__:
Hi
So the problem is here:
> Caused by:
java.lang.________IllegalArgumentException:
interface
> org.apache.cxf.jaxrs.impl.tl
<http://org.apache.cxf.jaxrs.impl.tl>
<http://org.apache.cxf.jaxrs.__impl.tl
<http://org.apache.cxf.jaxrs.impl.tl>>
<http://org.apache.cxf.jaxrs.____impl.tl
<http://impl.tl>
<http://org.apache.cxf.jaxrs.__impl.tl
<http://org.apache.cxf.jaxrs.impl.tl>>>
<http://org.apache.cxf.jaxrs.______impl.tl <http://impl.tl>
<http://impl.tl>
<http://org.apache.cxf.jaxrs.____impl.tl
<http://impl.tl>
<http://org.apache.cxf.jaxrs.__impl.tl
<http://org.apache.cxf.jaxrs.impl.tl>>>>.__ThreadLocalProxy
is not
visible from class
> loader
> at
java.lang.reflect.Proxy.________getProxyClass(Proxy.java:373)
> at
java.lang.reflect.Proxy.________newProxyInstance(Proxy.java:________601)
and we have SpringDM.
The JAX-RS frontend pom exports
'org.apache.cxf.jaxrs*'
So I'm not sure why
org.apache.cxf.jaxrs.impl.tl <http://org.apache.cxf.jaxrs.impl.tl>
<http://org.apache.cxf.jaxrs.__impl.tl
<http://org.apache.cxf.jaxrs.impl.tl>>
<http://org.apache.cxf.jaxrs.____impl.tl
<http://impl.tl>
<http://org.apache.cxf.jaxrs.__impl.tl
<http://org.apache.cxf.jaxrs.impl.tl>>>
<http://org.apache.cxf.jaxrs.______impl.tl <http://impl.tl>
<http://impl.tl>
<http://org.apache.cxf.jaxrs.____impl.tl
<http://impl.tl>
<http://org.apache.cxf.jaxrs.__impl.tl
<http://org.apache.cxf.jaxrs.impl.tl>>>>.__ThreadLocalProxy
would not
be visible :-)
Dan, do you have an idea why it might
be the
case ?
Thanks, Sergey
On 04/07/14 13:15, Krzysztof Nowicki
wrote:
Hi,
Can you help me with following
issue, it
occurs when
I'm trying
inject
ResourceInfo into filter:
Exception in thread
"SpringOsgiExtenderThread-116"
org.springframework.beans.________factory.__BeanCreationException:
Error
creating
bean with name 'oAuthServer':
Invocation
of init method
failed;
nested
exception is
org.apache.cxf.service.________factory.________ServiceConstructionException
at
org.springframework.beans.________factory.support.________AbstractAutowireCapableBeanFac________tory.initializeBean(__________AbstractAutowireCapableBeanFac________tory.java:1482)
at
org.springframework.beans.________factory.support.________AbstractAutowireCapableBeanFac________tory.doCreateBean(________AbstractAutowireCapableBeanFac________tory.java:521)
at
org.springframework.beans.________factory.support.________AbstractAutowireCapableBeanFac________tory.createBean(________AbstractAutowireCapableBeanFac________tory.java:458)
at
org.springframework.beans.________factory.support.________AbstractBeanFactory$1.________getObject(AbstractBeanFactory.________java:295)
at
org.springframework.beans.________factory.support.________DefaultSingletonBeanRegistry.________getSingleton(________DefaultSingletonBeanRegistry.________java:223)
at
org.springframework.beans.________factory.support.________AbstractBeanFactory.doGetBean(________AbstractBeanFactory.__java:____292)
at
org.springframework.beans.________factory.support.________AbstractBeanFactory.getBean(________AbstractBeanFactory.java:____194)
at
org.springframework.beans.________factory.support.________DefaultListableBeanFactory.________preInstantiateSingletons(__________DefaultListableBeanFactory.________java:628)
at
org.springframework.context.________support.________AbstractApplicationContext.____________finishBeanFactoryInitializatio________n(______AbstractApplicationContext.________java:932)
at
org.springframework.osgi.________context.support.________AbstractDelegatedExecutionAppl________icationContext.access$____1600(__________AbstractDelegatedExecutionAppl________icationContext.java:69)
at
org.springframework.osgi.________context.support.________AbstractDelegatedExecutionAppl________icationContext$4.run(__________AbstractDelegatedExecutionAppl________icationContext.java:355)
at
org.springframework.osgi.util.________internal.__PrivilegedUtils.________executeWithCustomTCCL(________PrivilegedUtils.java:85)
at
org.springframework.osgi.________context.support.________AbstractDelegatedExecutionAppl________icationContext.________completeRefresh(________AbstractDelegatedExecutionAppl________icationContext.java:320)
at
org.springframework.osgi.________extender.internal.________dependencies.startup.________DependencyWaiterApplicationCon________textExecutor$________CompleteRefreshTask.run(________DependencyWaiterApplicationCon________textExecutor.java:132)
at
java.lang.Thread.run(Thread.________java:722)
Caused by:
org.apache.cxf.service.________factory.________ServiceConstructionException
at
org.apache.cxf.jaxrs.________JAXRSServerFactoryBean.create(________JAXRSServerFactoryBean.____java:____210)
at
sun.reflect.________NativeMethodAccessorImpl.________invoke0(Native
Method)
at
sun.reflect.________NativeMethodAccessorImpl.________invoke(________NativeMethodAccessorImpl.java:________57)
at
sun.reflect.________DelegatingMethodAccessorImpl.________invoke(________DelegatingMethodAccessorImpl.________java:43)
at
java.lang.reflect.Method.________invoke(Method.java:601)
at
org.springframework.beans.________factory.support.________AbstractAutowireCapableBeanFac________tory.____invokeCustomInitMethod(____________AbstractAutowireCapableBeanFac________tory.java:1608)
at
org.springframework.beans.________factory.support.________AbstractAutowireCapableBeanFac________tory.invokeInitMethods(____________AbstractAutowireCapableBeanFac________tory.java:1549)
at
org.springframework.beans.________factory.support.________AbstractAutowireCapableBeanFac________tory.initializeBean(__________AbstractAutowireCapableBeanFac________tory.java:1479)
... 14 more
Caused by:
java.lang.________IllegalArgumentException:
interface
org.apache.cxf.jaxrs.impl.tl <http://org.apache.cxf.jaxrs.impl.tl>
<http://org.apache.cxf.jaxrs.__impl.tl
<http://org.apache.cxf.jaxrs.impl.tl>>
<http://org.apache.cxf.jaxrs.____impl.tl
<http://impl.tl>
<http://org.apache.cxf.jaxrs.__impl.tl
<http://org.apache.cxf.jaxrs.impl.tl>>>
<http://org.apache.cxf.jaxrs.______impl.tl <http://impl.tl>
<http://impl.tl>
<http://org.apache.cxf.jaxrs.____impl.tl
<http://impl.tl>
<http://org.apache.cxf.jaxrs.__impl.tl
<http://org.apache.cxf.jaxrs.impl.tl>>>>.__ThreadLocalProxy
is not
visible from class
loader
at
java.lang.reflect.Proxy.________getProxyClass(Proxy.java:373)
at
java.lang.reflect.Proxy.________newProxyInstance(Proxy.java:________601)
at
org.apache.cxf.jaxrs.utils.________InjectionUtils.________createThreadLocalProxy(________InjectionUtils.java:975)
at
org.apache.cxf.jaxrs.model.________AbstractResourceInfo.________getFieldThreadLocalProxy(________AbstractResourceInfo.java:__142)
at
org.apache.cxf.jaxrs.model.________AbstractResourceInfo.________findContextFields(________AbstractResourceInfo.java:124)
at
org.apache.cxf.jaxrs.model.________AbstractResourceInfo.________findContexts(________AbstractResourceInfo.java:82)
at
org.apache.cxf.jaxrs.model.________AbstractResourceInfo.<init>__(______AbstractResourceInfo.__java:__76)
at
org.apache.cxf.jaxrs.model.________ProviderInfo.<init>(________ProviderInfo.java:38)
at
org.apache.cxf.jaxrs.model.________ProviderInfo.<init>(________ProviderInfo.java:32)
at
org.apache.cxf.jaxrs.provider.________ProviderFactory.________prepareProviders(________ProviderFactory.java:1242)
at
org.apache.cxf.jaxrs.provider.________ServerProviderFactory.________setProviders(________ServerProviderFactory.java:________216)
at
org.apache.cxf.jaxrs.provider.________ProviderFactory.________setUserProviders(________ProviderFactory.java:766)
at
org.apache.cxf.jaxrs.________AbstractJAXRSFactoryBean.________setupFactory(________AbstractJAXRSFactoryBean.java:________322)
at
org.apache.cxf.jaxrs.________JAXRSServerFactoryBean.________setupFactory(________JAXRSServerFactoryBean.java:________228)
at
org.apache.cxf.jaxrs.________JAXRSServerFactoryBean.create(________JAXRSServerFactoryBean.____java:____173)
... 21 more
Thanks,
Krzysztof Nowicki
--
Sergey Beryozkin
Talend Community Coders
http://coders.talend.com/
Blog: http://sberyozkin.blogspot.com
--
Sergey Beryozkin
Talend Community Coders
http://coders.talend.com/
Blog: http://sberyozkin.blogspot.com