#java #visual-studio-code #glassfish #indexoutofboundsexception #payara-micro
#Ява #visual-studio-код #стеклянная рыба #исключение indexoutofboundsexception #пайара-микро
Вопрос:
Я пытаюсь отладить проект glassfish на VSCode, я решил запустить микро-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) ]]
Я не уверен, связано ли это с взломом привязки XML, необходимым для запуска проекта Java8 на VSCode, поскольку расширение Payara использует env JAVA_HOME и JDK (который для проекта должен быть Java8, но Java11 необходим как JAVA_HOME/JDK_HOME для работы расширений Java).
Изменить: экземпляр, похоже, продолжает работать нормально, несмотря на исключение.
[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
Исключение не возникает. Так что, похоже, это проблема с плагином.