AnnotationLiteral throws NPE on Glassfish v3 + SeamFaces
wschwendt May 24, 2010 12:30 PMI started to evaluate Primefaces 2.0.2 together with Seamfaces 3.0.0-SNAPSHOT, running on Glassfish v3.
For Glassfish I use the Windows-Installer distribution available at https://glassfish.dev.java.net/downloads/v3-final.html and then use the updater tool to update any modules to the most recent version available through the updater.
For the Glassfish package glassfish-cdi, which contains CDI/Weld, the latest version avaiblabe through the update mechanism is 3.0.1-19, packaged on 2010/05/19. It contains
Implementation-Title: Weld OSGi Bundle Built-By: janey Tool: Bnd-0.0.311 Implementation-Vendor: Seam Framework Specification-Title: Weld OSGi Bundle Implementation-Version: 1.0.1.SP2 Build-Time: May 12, 2010 11:23:40 AM PDT
I use Primefaces 2.0.2 together with JSF 2.0.2-FCS Mojarra, and then everything works fine. But when I add
I add Seamfaces 3.0.0-SNAPSHOT, I get the following NullPointerException.
[code] [#|2010-05-24T11:47:02.079+0200|WARNING|glassfish3.0.1|javax.enterprise.system.container.web.com.sun.enterprise.web|_ThreadID=31;_ThreadName=http-thread-pool-8080-(1);|StandardWrapperValve[Faces Servlet]: PWC1406: Servlet.service() for servlet Faces Servlet threw exception java.lang.NullPointerException at javax.enterprise.util.AnnotationLiteral.hashCode(AnnotationLiteral.java:321) at java.util.HashMap.getEntry(HashMap.java:344) at java.util.HashMap.containsKey(HashMap.java:335) at java.util.HashSet.contains(HashSet.java:184) at org.jboss.weld.resolution.ResolvableBuilder.checkQualifier(ResolvableBuilder.java:214) at org.jboss.weld.resolution.ResolvableBuilder.addQualifier(ResolvableBuilder.java:175) at org.jboss.weld.resolution.ResolvableBuilder.addQualifiers(ResolvableBuilder.java:194) at org.jboss.weld.manager.BeanManagerImpl.resolveObserverMethods(BeanManagerImpl.java:475) at org.jboss.weld.manager.BeanManagerImpl.fireEvent(BeanManagerImpl.java:647) at org.jboss.weld.manager.BeanManagerImpl.fireEvent(BeanManagerImpl.java:641) at org.jboss.seam.faces.event.SystemEventBridge.processEvent(SystemEventBridge.java:80) at org.jboss.seam.faces.event.DelegatingSystemEventListener.processEvent(DelegatingSystemEventListener.java:51) at javax.faces.event.SystemEvent.processListener(SystemEvent.java:102) at com.sun.faces.application.ApplicationImpl.processListeners(ApplicationImpl.java:1993) at com.sun.faces.application.ApplicationImpl.invokeListenersFor(ApplicationImpl.java:1969) at com.sun.faces.application.ApplicationImpl.publishEvent(ApplicationImpl.java:299) at com.sun.faces.application.ApplicationImpl.publishEvent(ApplicationImpl.java:243) at javax.faces.application.ApplicationWrapper.publishEvent(ApplicationWrapper.java:666) at javax.faces.application.ApplicationWrapper.publishEvent(ApplicationWrapper.java:666) at javax.faces.component.UIComponentBase.processValidators(UIComponentBase.java:1075) at javax.faces.component.UIComponentBase.processValidators(UIComponentBase.java:1080) at javax.faces.component.UIComponentBase.processValidators(UIComponentBase.java:1080) at javax.faces.component.UIViewRoot.processValidators(UIViewRoot.java:1180) at com.sun.faces.lifecycle.ProcessValidationsPhase.execute(ProcessValidationsPhase.java:76) at com.sun.faces.lifecycle.Phase.doPhase(Phase.java:101) at com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:118) at javax.faces.webapp.FacesServlet.service(FacesServlet.java:312)
Obviously, this exception is triggered by the SeamFaces-Event bridge. With my post I'd like to ask whether this problem is already known. Also, are there any working versions available which allow the use of Primefaces together with Seamfaces and JSF 2.0 on Glassfish v3?