[ https://issues.apache.org/jira/browse/EAGLE-329?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15317743#comment-15317743 ]
Hao Chen commented on EAGLE-329: -------------------------------- For Java 8 bytecode, use asm 5.0.1+ For Java 6 or Java 7 bytecode, use asm 3.1 > Jersey dependency conflict bug > ------------------------------ > > Key: EAGLE-329 > URL: https://issues.apache.org/jira/browse/EAGLE-329 > Project: Eagle > Issue Type: Bug > Affects Versions: v0.5.0 > Reporter: Hao Chen > Assignee: Hao Chen > Labels: eagle-webservice > Fix For: v0.5.0 > > > 1) Jersey conflict with Java8: https://java.net/jira/browse/JERSEY-2429 > {code} > Caused by: java.lang.ArrayIndexOutOfBoundsException: 52264 > at org.objectweb.asm.ClassReader.readClass(Unknown Source) > ~[asm-3.1.jar:3.1] > at org.objectweb.asm.ClassReader.accept(Unknown Source) > ~[asm-3.1.jar:3.1] > at org.objectweb.asm.ClassReader.accept(Unknown Source) > ~[asm-3.1.jar:3.1] > at > com.sun.jersey.spi.scanning.AnnotationScannerListener.onProcess(AnnotationScannerListener.java:136) > ~[jersey-server-1.17.1.jar:1.17.1] > at > com.sun.jersey.core.spi.scanning.uri.FileSchemeScanner$1.f(FileSchemeScanner.java:86) > ~[jersey-core-1.17.1.jar:1.17.1] > at com.sun.jersey.core.util.Closing.f(Closing.java:71) > ~[jersey-core-1.17.1.jar:1.17.1] > at > com.sun.jersey.core.spi.scanning.uri.FileSchemeScanner.scanDirectory(FileSchemeScanner.java:83) > ~[jersey-core-1.17.1.jar:1.17.1] > at > com.sun.jersey.core.spi.scanning.uri.FileSchemeScanner.scan(FileSchemeScanner.java:71) > ~[jersey-core-1.17.1.jar:1.17.1] > at > com.sun.jersey.core.spi.scanning.PackageNamesScanner.scan(PackageNamesScanner.java:225) > ~[jersey-core-1.17.1.jar:1.17.1] > at > com.sun.jersey.core.spi.scanning.PackageNamesScanner.scan(PackageNamesScanner.java:141) > ~[jersey-core-1.17.1.jar:1.17.1] > at > com.sun.jersey.api.core.ScanningResourceConfig.init(ScanningResourceConfig.java:80) > ~[jersey-server-1.17.1.jar:1.17.1] > at > com.sun.jersey.api.core.PackagesResourceConfig.init(PackagesResourceConfig.java:104) > ~[jersey-server-1.17.1.jar:1.17.1] > at > com.sun.jersey.api.core.PackagesResourceConfig.<init>(PackagesResourceConfig.java:78) > ~[jersey-server-1.17.1.jar:1.17.1] > {code} > *Solution*: resolve with jersey-1.19.1 > 2) asm library conflict: Exception in thread "eXtcos managed thread 1" > java.lang.ArrayIndexOutOfBoundsException: 256 > {code} > Exception in thread "eXtcos managed thread 1" > java.lang.ArrayIndexOutOfBoundsException: 256 > at org.objectweb.asm.ClassReader.readClass(Unknown Source) > at org.objectweb.asm.ClassReader.accept(Unknown Source) > at org.objectweb.asm.ClassReader.accept(Unknown Source) > at > net.sf.extcos.internal.JavaResourceAccessor.readClassData(JavaResourceAccessor.java:339) > at > net.sf.extcos.internal.JavaResourceAccessor.setResourceUrl(JavaResourceAccessor.java:309) > at > net.sf.extcos.internal.URLResource.getResourceAccessor(URLResource.java:98) > at net.sf.extcos.internal.URLResource.isClass(URLResource.java:131) > at net.sf.extcos.internal.RootFilter.filter(RootFilter.java:22) > at > net.sf.extcos.internal.AbstractChainedFilter.filter(AbstractChainedFilter.java:89) > at > net.sf.extcos.internal.ThreadingFilterInterceptor$1.run(ThreadingFilterInterceptor.java:48) > at java.lang.Thread.run(Thread.java:745) > {code} > *Solution*: Resolve by excluding unnecessary `asm` dependencies -- This message was sent by Atlassian JIRA (v6.3.4#6332)