Try GFish 4.0.1 nightly builds for JDK8+lambdas support

Just a head up: Lambdas are not working OOTB with Glass Fish 4.0

Code Snippet



You will see an error similar to below

SEVERE: Exception while visiting WEB-INF/classes/com/abhirockzz/websocketapi/SimpleWSEndpoint.class of size 4732
java.lang.ArrayIndexOutOfBoundsException: 52264
at org.objectweb.asm.ClassReader.readClass(
at org.objectweb.asm.ClassReader.accept(
at org.objectweb.asm.ClassReader.accept(
at org.glassfish.hk2.classmodel.reflect.Parser$5.on(
at com.sun.enterprise.v3.server.ReadableArchiveScannerAdapter.handleEntry(
at com.sun.enterprise.v3.server.ReadableArchiveScannerAdapter.onSelectedEntries(
at org.glassfish.hk2.classmodel.reflect.Parser.doJob(
at org.glassfish.hk2.classmodel.reflect.Parser.access$300(
at org.glassfish.hk2.classmodel.reflect.Parser$
at org.glassfish.hk2.classmodel.reflect.Parser$
at java.util.concurrent.ThreadPoolExecutor.runWorker(
at java.util.concurrent.ThreadPoolExecutor$

About Abhishek

Currently working as a Senior Product Manager in the Oracle Cloud Application Development team with a focus on Oracle Cloud PaaS portfolio. When not hovering in the clouds, I stay grounded with Java EE
This entry was posted in Java, Java EE and tagged , , , . Bookmark the permalink.

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s