Mantis Bugtracker

Viewing Issue Advanced Details Jump to Notes ] View Simple ] Issue History ] Print ]
ID Category Severity Reproducibility Date Submitted Last Update
0005228 [Resin] minor always 09-28-12 21:06 10-22-12 11:42
Reporter ferg View Status public  
Assigned To ferg
Priority normal Resolution fixed Platform
Status closed   OS
Projection none   OS Version
ETA none Fixed in Version 4.0.33 Product Version 4.0.29
  Product Build
Summary 0005228: CDI issue with Jersey
Description (rep by Ryan T)

com.caucho.server.cluster.Server.start resin.home = /.../resin-pro-4.0.29/
 com.caucho.server.cluster.Server.start resin.root = /.../resin-pro-4.0.29/
 com.caucho.server.cluster.Server.start resin.conf = /.../resin-pro-4.0.29/conf/resin.xml
 com.caucho.server.cluster.Server.start server = (app-tier:app)
 com.caucho.server.cluster.Server.start stage = production
 com.caucho.server.webapp.WebApp.setConfigException java.lang.NullPointerException
            at com.sun.jersey.server.impl.cdi.CDIExtension.processAnnotatedMethod(
            at com.sun.jersey.server.impl.cdi.CDIExtension.processAnnotatedType(
            at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
            at sun.reflect.NativeMethodAccessorImpl.invoke(
            at sun.reflect.DelegatingMethodAccessorImpl.invoke(
            at java.lang.reflect.Method.invoke(
            at com.caucho.config.extension.ExtensionManager$ExtensionObserver.notify(
            at com.caucho.config.event.EventManager.fireLocalEvent(
            at com.caucho.config.event.EventManager.fireExtensionEvent(
            at com.caucho.config.extension.ExtensionManager.processAnnotatedType(
            at com.caucho.config.inject.InjectManager.createManagedBean(
            at com.caucho.config.inject.InjectManager.createBeanFactory(
            at com.caucho.server.webapp.WebAppController.configureInstanceVariables(
            at com.caucho.server.webapp.WebAppController.configureInstanceVariables(
            at com.caucho.env.deploy.EnvironmentDeployController.configureInstance(
            at com.caucho.env.deploy.EnvironmentDeployController.configureInstance(
            at com.caucho.env.deploy.DeployController.startImpl(
            at com.caucho.env.deploy.StartAutoRedeployAutoStrategy.startOnInit(
            at com.caucho.env.deploy.DeployController.startOnInit(
            at com.caucho.env.deploy.DeployContainer.start(
            at com.caucho.server.webapp.WebAppContainer.start(
            at com.caucho.env.deploy.DeployController.startImpl(
            at com.caucho.env.deploy.StartAutoRedeployAutoStrategy.startOnInit(
            at com.caucho.env.deploy.DeployController.startOnInit(
            at com.caucho.env.deploy.DeployContainer.start(
            at com.caucho.server.cluster.Server.start(
            at com.caucho.server.cluster.ServletSystem.start(
            at com.caucho.env.service.ResinSystem.startServices(
            at com.caucho.env.service.ResinSystem.start(
            at com.caucho.server.resin.Resin.start(
            at com.caucho.server.resin.Resin.initMain(
            at com.caucho.server.resin.Resin.main(
It's a pretty standard spring web application with a jax-rs context, but this error comes up before anything else happens. No other context starts. I'll start to pare down the other dependencies to try to get a test case, but the line in the stack trace:

Set<DiscoveredParameter> discovered = discoveredParameterMap.get(annotation.annotationType());
indicates that either the CDIExtension has not been initialized, thus discoveredParameterMap is null, or the annotation on the setter (line 560) is null.

I'll keep you posted, but if anyone has any suggestions, they are most welcome.
Steps To Reproduce
Additional Information
Attached Files

- Relationships

- Notes
Olaf Krische
10-09-12 07:41

What version of jersey that is?

There is also a workaround by providing your own IoCComponentProviderFactory to jersey.

But the answer here is weird:

- [^]

I always thought, jersey should work on any standard servlet container.
10-22-12 11:42


Combination of an already resolved issue with CDI loading (fixed before 4.0.33) and a ServletContainerInitializer @HandlesTypes issue.


- Issue History
Date Modified Username Field Change
09-28-12 21:06 ferg New Issue
10-09-12 07:41 Olaf Krische Note Added: 0006056
10-22-12 11:42 ferg Note Added: 0006063
10-22-12 11:42 ferg Assigned To  => ferg
10-22-12 11:42 ferg Status new => closed
10-22-12 11:42 ferg Resolution open => fixed
10-22-12 11:42 ferg Fixed in Version  => 4.0.33

Mantis 1.0.0rc3[^]
Copyright © 2000 - 2005 Mantis Group
31 total queries executed.
27 unique queries executed.
Powered by Mantis Bugtracker