cxf-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Krzysztof Nowicki <krzysiek.nowi...@gmail.com>
Subject Re: cxf 3.0.0 issue
Date Wed, 09 Jul 2014 09:25:29 GMT
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 <sberyozkin@gmail.com>:

> 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 <sberyozkin@gmail.com
>> <mailto:sberyozkin@gmail.com>>:
>>
>>
>>     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>
>>
>>
>>     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>>,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
>>             <sberyozkin@gmail.com <mailto:sberyozkin@gmail.com>
>>             <mailto:sberyozkin@gmail.com <mailto:sberyozkin@gmail.com>>
>> >__:
>>
>>                  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
>>                      <sberyozkin@gmail.com <mailto:sberyozkin@gmail.com>
>>             <mailto:sberyozkin@gmail.com <mailto:sberyozkin@gmail.com>>
>>                      <mailto:sberyozkin@gmail.com
>>             <mailto:sberyozkin@gmail.com> <mailto:sberyozkin@gmail.com
>>             <mailto:sberyozkin@gmail.com>>>__>__:
>>
>>
>>
>>                           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>>>.__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>>>.__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>>>.__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
>>
>>
>>
>>
>>
>>
>>
>
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message