[jboss-jira] [JBoss JIRA] (WFLY-1572) NPE in org.jboss.resteasy.spi.metadata.ResourceConstructor

Bill Burke (JIRA) jira-events at lists.jboss.org
Fri Jun 21 14:26:21 EDT 2013


    [ https://issues.jboss.org/browse/WFLY-1572?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12783716#comment-12783716 ] 

Bill Burke commented on WFLY-1572:
----------------------------------

Nope thats not it.  I can't reproduce the problem and am able to add the resteasy-cache-core dependency to the WAR and also am able to add the ServerCacheFeature as a provider.

I need more information to fix this problem.
                
> NPE in org.jboss.resteasy.spi.metadata.ResourceConstructor
> ----------------------------------------------------------
>
>                 Key: WFLY-1572
>                 URL: https://issues.jboss.org/browse/WFLY-1572
>             Project: WildFly
>          Issue Type: Bug
>          Components: REST
>    Affects Versions: 8.0.0.Alpha2
>            Reporter: Juergen Zimmermann
>            Assignee: Stuart Douglas
>
> I just tried the WildFly snapshot containing RESTEasy 3.0.1.Final. After I added the Maven dependency org.jboss.resteasy:resteasy-cache-core (http://docs.jboss.org/resteasy/docs/3.0.1.Final/userguide/html/Cache_NoCache_CacheControl.html#server_cache) I got the following stacktrace:
> 15:29:01,083 ERROR [org.jboss.msc.service.fail] MSC000001: Failed to start service jboss.undertow.deployment.default-host./shop: org.jboss.msc.service.StartException in service jboss.undertow.deployment.default-host./shop: Failed to start service
> 	at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1898) [jboss-msc-1.2.0.Beta1.jar:1.2.0.Beta1]
> 	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) [rt.jar:1.7.0_25]
> 	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) [rt.jar:1.7.0_25]
> 	at java.lang.Thread.run(Thread.java:724) [rt.jar:1.7.0_25]
> Caused by: java.lang.NullPointerException
> 	at org.jboss.resteasy.spi.metadata.ResourceConstructor.<init>(ResourceConstructor.java:24)
> 	at org.jboss.resteasy.spi.metadata.ResourceBuilder$ResourceConstructorBuilder.<init>(ResourceBuilder.java:424)
> 	at org.jboss.resteasy.spi.metadata.ResourceBuilder$ResourceClassBuilder.constructor(ResourceBuilder.java:96)
> 	at org.jboss.resteasy.spi.metadata.ResourceBuilder.constructor(ResourceBuilder.java:681)
> 	at org.jboss.resteasy.plugins.server.resourcefactory.POJOResourceFactory.registered(POJOResourceFactory.java:41)
> 	at org.jboss.resteasy.core.ResourceMethodRegistry.addResourceFactory(ResourceMethodRegistry.java:207)
> 	at org.jboss.resteasy.core.ResourceMethodRegistry.addResourceFactory(ResourceMethodRegistry.java:193)
> 	at org.jboss.resteasy.core.ResourceMethodRegistry.addResourceFactory(ResourceMethodRegistry.java:179)
> 	at org.jboss.resteasy.core.ResourceMethodRegistry.addResourceFactory(ResourceMethodRegistry.java:156)
> 	at org.jboss.resteasy.core.ResourceMethodRegistry.addPerRequestResource(ResourceMethodRegistry.java:75)
> 	at org.jboss.resteasy.spi.ResteasyDeployment.registration(ResteasyDeployment.java:400)
> 	at org.jboss.resteasy.spi.ResteasyDeployment.start(ResteasyDeployment.java:241)
> 	at org.jboss.resteasy.plugins.server.servlet.ServletContainerDispatcher.init(ServletContainerDispatcher.java:112)
> 	at org.jboss.resteasy.plugins.server.servlet.HttpServletDispatcher.init(HttpServletDispatcher.java:36)
> 	at io.undertow.servlet.core.ManagedServlet$DefaultInstanceStrategy.start(ManagedServlet.java:146)
> 	at io.undertow.servlet.core.ManagedServlet.start(ManagedServlet.java:63)
> 	at io.undertow.servlet.core.DeploymentManagerImpl.start(DeploymentManagerImpl.java:377)
> 	at org.wildfly.extension.undertow.deployment.UndertowDeploymentService.startContext(UndertowDeploymentService.java:81)
> 	at org.wildfly.extension.undertow.deployment.UndertowDeploymentService.start(UndertowDeploymentService.java:68)
> 	at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1942) [jboss-msc-1.2.0.Beta1.jar:1.2.0.Beta1]
> 	at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1875) [jboss-msc-1.2.0.Beta1.jar:1.2.0.Beta1]
> 	... 3 more

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira


More information about the jboss-jira mailing list