users@glassfish.java.net

[gf-users] Unknow type constant pool

From: Nielsen, Michael M. (FKN) <"Nielsen,>
Date: Mon, 28 Sep 2015 21:48:21 +0000

When I try to deploy some changes to my web (PrimeFaces 5.2) app, I get a whole bunch of these:

[2015-09-28T17:38:04.715-0400] [glassfish 4.1] [SEVERE] [] [javax.enterprise.system.tools.deployment.dol] [tid: _ThreadID=192 _ThreadName=admin-listener(23)] [timeMillis: 1443476284715] [levelValue: 1000] [[
Unknow type constant pool 0 at position336]]

I'm on GF4.1.

It looks like it's some bytecode scanning in:

public boolean containsAnnotation<http://codenav.org/code.html?project=/com/sun/faces/jsf-impl/2.1.0-b09&path=/Source%20Packages/com.sun.faces.config/JavaClassScanningAnnotationScanner.java#hyperlink>(int constantPoolSize<http://codenav.org/code.html?project=/com/sun/faces/jsf-impl/2.1.0-b09&path=/Source%20Packages/com.sun.faces.config/JavaClassScanningAnnotationScanner.java#hyperlink>,
                                          final ByteBuffer<http://codenav.org/code.html?project=/com/sun/faces/jsf-impl/2.1.0-b09&path=/Source%20Packages/com.sun.faces.config/JavaClassScanningAnnotationScanner.java#hyperlink> buffer<http://codenav.org/code.html?project=/com/sun/faces/jsf-impl/2.1.0-b09&path=/Source%20Packages/com.sun.faces.config/JavaClassScanningAnnotationScanner.java#hyperlink>,
                                         final ReadableByteChannel<http://codenav.org/code.html?project=/com/sun/faces/jsf-impl/2.1.0-b09&path=/Source%20Packages/com.sun.faces.config/JavaClassScanningAnnotationScanner.java#hyperlink> in<http://codenav.org/code.html?project=/com/sun/faces/jsf-impl/2.1.0-b09&path=/Source%20Packages/com.sun.faces.config/JavaClassScanningAnnotationScanner.java#hyperlink>)

I looked around the web and saw some hints that it could be that I'm using Java 8 constructs in my JSF managed beans, but these aren't new to this new version of the code -- I've checked my code history back to a version that did deploy successfully and those bits are the same.

In any event, the method mentioned above does not fail on the error, it simply logs a "Level.SEVERE" so I can't imagine that's what's causing my app to fail to deploy.

Nonetheless, there's *nothing* else in the server log.

I would be very grateful if someone could give me some pointers as to where to look: I can't seem to find any hints about what particular class file is causing the problem. I've been banging my head on the wall for hours on this.

Thanks!