0

我正在尝试在 VsCode 上调试 glassfish 项目,我选择从扩展运行 micro payara,并且执行程序服务任务获取索引超出范围异常。

[2021-12-02T08:11:06.092-0400] [] [INFO] [NCLS-JMX-00006] [javax.enterprise.system.jmx] [tid: _ThreadID=88 _ThreadName=Thread-9] [timeMillis: 1638447066092] [levelValue: 800] JMXStartupService has disabled JMXConnector system

[2021-12-02T08:11:32.329-0400] [] [SEVERE] [] [javax.enterprise.system.tools.deployment.common] [tid: _ThreadID=35 _ThreadName=payara-executor-service-task] [timeMillis: 1638447092329] [levelValue: 1000] [[
  Exception while visiting jersey/repackaged/com/google/common/collect/AbstractMapBasedMultimap$RandomAccessWrappedList.class of size 2105
java.lang.IndexOutOfBoundsException: Index: 3, Size: 3
    at java.util.ArrayList.rangeCheck(ArrayList.java:657)
    at java.util.ArrayList.get(ArrayList.java:433)
    at org.glassfish.hk2.classmodel.reflect.impl.MethodModelImpl.getParameter(MethodModelImpl.java:104)
    at org.glassfish.hk2.classmodel.reflect.impl.ModelClassVisitor$ModelMethodVisitor.visitParameterAnnotation(ModelClassVisitor.java:392)
    at org.objectweb.asm.ClassReader.readParameterAnnotations(ClassReader.java:2932)
    at org.objectweb.asm.ClassReader.readMethod(ClassReader.java:1467)
    at org.objectweb.asm.ClassReader.accept(ClassReader.java:717)
    at org.objectweb.asm.ClassReader.accept(ClassReader.java:401)
    at org.glassfish.hk2.classmodel.reflect.Parser$5.on(Parser.java:336)
    at com.sun.enterprise.v3.server.ReadableArchiveScannerAdapter.handleEntry(ReadableArchiveScannerAdapter.java:165)
    at com.sun.enterprise.v3.server.ReadableArchiveScannerAdapter.onSelectedEntries(ReadableArchiveScannerAdapter.java:127)
    at org.glassfish.hk2.classmodel.reflect.Parser.doJob(Parser.java:321)
    at org.glassfish.hk2.classmodel.reflect.Parser.access$300(Parser.java:44)
    at org.glassfish.hk2.classmodel.reflect.Parser$3.call(Parser.java:280)
    at org.glassfish.hk2.classmodel.reflect.Parser$3.call(Parser.java:269)
    at java.util.concurrent.FutureTask.run(FutureTask.java:266)
    at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
    at java.lang.Thread.run(Thread.java:748)
]]

[2021-12-02T08:11:32.460-0400] [] [SEVERE] [] [javax.enterprise.system.tools.deployment.common] [tid: _ThreadID=35 _ThreadName=payara-executor-service-task] [timeMillis: 1638447092460] [levelValue: 1000] [[
  Exception while visiting jersey/repackaged/com/google/common/collect/AbstractMapBasedMultimap$WrappedCollection.class of size 6672
java.lang.IndexOutOfBoundsException: Index: 3, Size: 3
    at java.util.ArrayList.rangeCheck(ArrayList.java:657)
    at java.util.ArrayList.get(ArrayList.java:433)
    at org.glassfish.hk2.classmodel.reflect.impl.MethodModelImpl.getParameter(MethodModelImpl.java:104)
    at org.glassfish.hk2.classmodel.reflect.impl.ModelClassVisitor$ModelMethodVisitor.visitParameterAnnotation(ModelClassVisitor.java:392)
    at org.objectweb.asm.ClassReader.readParameterAnnotations(ClassReader.java:2932)
    at org.objectweb.asm.ClassReader.readMethod(ClassReader.java:1467)
    at org.objectweb.asm.ClassReader.accept(ClassReader.java:717)
    at org.objectweb.asm.ClassReader.accept(ClassReader.java:401)
    at org.glassfish.hk2.classmodel.reflect.Parser$5.on(Parser.java:336)
    at com.sun.enterprise.v3.server.ReadableArchiveScannerAdapter.handleEntry(ReadableArchiveScannerAdapter.java:165)
    at com.sun.enterprise.v3.server.ReadableArchiveScannerAdapter.onSelectedEntries(ReadableArchiveScannerAdapter.java:127)
    at org.glassfish.hk2.classmodel.reflect.Parser.doJob(Parser.java:321)
    at org.glassfish.hk2.classmodel.reflect.Parser.access$300(Parser.java:44)
    at org.glassfish.hk2.classmodel.reflect.Parser$3.call(Parser.java:280)
    at org.glassfish.hk2.classmodel.reflect.Parser$3.call(Parser.java:269)
    at java.util.concurrent.FutureTask.run(FutureTask.java:266)
    at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
    at java.lang.Thread.run(Thread.java:748)
]]

[2021-12-02T08:11:32.495-0400] [] [SEVERE] [] [javax.enterprise.system.tools.deployment.common] [tid: _ThreadID=35 _ThreadName=payara-executor-service-task] [timeMillis: 1638447092495] [levelValue: 1000] [[
  Exception while visiting jersey/repackaged/com/google/common/collect/AbstractMapBasedMultimap$WrappedList.class of size 5708
java.lang.IndexOutOfBoundsException: Index: 3, Size: 3
    at java.util.ArrayList.rangeCheck(ArrayList.java:657)
    at java.util.ArrayList.get(ArrayList.java:433)
    at org.glassfish.hk2.classmodel.reflect.impl.MethodModelImpl.getParameter(MethodModelImpl.java:104)
    at org.glassfish.hk2.classmodel.reflect.impl.ModelClassVisitor$ModelMethodVisitor.visitParameterAnnotation(ModelClassVisitor.java:392)
    at org.objectweb.asm.ClassReader.readParameterAnnotations(ClassReader.java:2932)
    at org.objectweb.asm.ClassReader.readMethod(ClassReader.java:1467)
    at org.objectweb.asm.ClassReader.accept(ClassReader.java:717)
    at org.objectweb.asm.ClassReader.accept(ClassReader.java:401)
    at org.glassfish.hk2.classmodel.reflect.Parser$5.on(Parser.java:336)
    at com.sun.enterprise.v3.server.ReadableArchiveScannerAdapter.handleEntry(ReadableArchiveScannerAdapter.java:165)
    at com.sun.enterprise.v3.server.ReadableArchiveScannerAdapter.onSelectedEntries(ReadableArchiveScannerAdapter.java:127)
    at org.glassfish.hk2.classmodel.reflect.Parser.doJob(Parser.java:321)
    at org.glassfish.hk2.classmodel.reflect.Parser.access$300(Parser.java:44)
    at org.glassfish.hk2.classmodel.reflect.Parser$3.call(Parser.java:280)
    at org.glassfish.hk2.classmodel.reflect.Parser$3.call(Parser.java:269)
    at java.util.concurrent.FutureTask.run(FutureTask.java:266)
    at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
    at java.lang.Thread.run(Thread.java:748)
]]

[2021-12-02T08:11:32.503-0400] [] [SEVERE] [] [javax.enterprise.system.tools.deployment.common] [tid: _ThreadID=35 _ThreadName=payara-executor-service-task] [timeMillis: 1638447092503] [levelValue: 1000] [[
  Exception while visiting jersey/repackaged/com/google/common/collect/AbstractMapBasedMultimap$WrappedSortedSet.class of size 4003
java.lang.IndexOutOfBoundsException: Index: 3, Size: 3
    at java.util.ArrayList.rangeCheck(ArrayList.java:657)
    at java.util.ArrayList.get(ArrayList.java:433)
    at org.glassfish.hk2.classmodel.reflect.impl.MethodModelImpl.getParameter(MethodModelImpl.java:104)
    at org.glassfish.hk2.classmodel.reflect.impl.ModelClassVisitor$ModelMethodVisitor.visitParameterAnnotation(ModelClassVisitor.java:392)
    at org.objectweb.asm.ClassReader.readParameterAnnotations(ClassReader.java:2932)
    at org.objectweb.asm.ClassReader.readMethod(ClassReader.java:1467)
    at org.objectweb.asm.ClassReader.accept(ClassReader.java:717)
    at org.objectweb.asm.ClassReader.accept(ClassReader.java:401)
    at org.glassfish.hk2.classmodel.reflect.Parser$5.on(Parser.java:336)
    at com.sun.enterprise.v3.server.ReadableArchiveScannerAdapter.handleEntry(ReadableArchiveScannerAdapter.java:165)
    at com.sun.enterprise.v3.server.ReadableArchiveScannerAdapter.onSelectedEntries(ReadableArchiveScannerAdapter.java:127)
    at org.glassfish.hk2.classmodel.reflect.Parser.doJob(Parser.java:321)
    at org.glassfish.hk2.classmodel.reflect.Parser.access$300(Parser.java:44)
    at org.glassfish.hk2.classmodel.reflect.Parser$3.call(Parser.java:280)
    at org.glassfish.hk2.classmodel.reflect.Parser$3.call(Parser.java:269)
    at java.util.concurrent.FutureTask.run(FutureTask.java:266)
    at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
    at java.lang.Thread.run(Thread.java:748)
]]

我不确定这是否与在 VsCode 上运行 Java8 项目所需的 XML 绑定黑客有关,因为 Payara Extension 使用 env JAVA_HOME 和 JDK(项目应该是 Java8,但需要 Java11 作为 Java 的 JAVA_HOME/JDK_HOME工作的扩展)。

编辑:尽管有异常,该实例似乎仍然运行良好。

[2021-12-02T08:12:23.124-0400] [] [INFO] [] [PayaraMicro] [tid: _ThreadID=1 _ThreadName=main] [timeMillis: 1638447143124] [levelValue: 800] 
Payara Micro URLs:



[2021-12-02T08:12:23.127-0400] [] [INFO] [] [PayaraMicro] [tid: _ThreadID=1 _ThreadName=main] [timeMillis: 1638447143127] [levelValue: 800] Payara Micro  5.2021.5 #badassmicrofish (build 770) ready in 111,507 (ms)

编辑:执行时:

mvn fish.payara.maven.plugins:payara-micro-maven-plugin:start -X

不会发生异常。所以看来是插件的问题。

4

0 回答 0