java.lang.reflect.InvocationTargetException

There are no available Samebug tips for this exception. Do you have an idea how to solve this issue? A short tip would help users who saw this issue last week.

  • This test has been failing since it re-worked via JDK-8004926. Below is a sample failure. Note that the agent is running in agentvm mode with concurrency, this means that each agent VM gets its own work directory (which might explain why TestApplication cannot be found) #Test Results (version 2) #Sat Oct 26 00:00:47 IST 2013 #checksum:62f403376fcea318 #-----testdescription----- $file=/data/jenkins/jobs/jdk8-tl-build/builds/2013-10-25_23-03-39/archive/jdk/test/sun/management/jmxremote/bootstrap/LocalManagementTest.java $root=/data/jenkins/jobs/jdk8-tl-build/builds/2013-10-25_23-03-39/archive/jdk/test keywords=bug5016507 bug6173612 bug6319776 bug6342019 bug6484550 bug8004926 library=../../../../lib/testlibrary maxTimeout=300 run=USER_SPECIFIED build TestManager TestApplication\nUSER_SPECIFIED main/timeout\=300 LocalManagementTest\n source=LocalManagementTest.java title=Start a managed VM and test that a management tool can connect without connection or username/password details. #-----environment----- #-----testresult----- description=file\:/data/jenkins/jobs/jdk8-tl-build/builds/2013-10-25_23-03-39/archive/jdk/test/sun/management/jmxremote/bootstrap/LocalManagementTest.java elapsed=21071 0\:00\:21.071 end=Sat Oct 26 00\:00\:47 IST 2013 environment=regtest execStatus=Failed. Execution failed\: `main' threw exception\: java.lang.Error\: Test failed hostname=ashtown.ie.oracle.com javatestOS=Linux 3.2.0-23-generic (amd64) javatestVersion=4.4 jtregVersion=jtreg 4.1 dev b00 script=com.sun.javatest.regtest.RegressionScript sections=script_messages build compile build compile main start=Sat Oct 26 00\:00\:26 IST 2013 test=sun/management/jmxremote/bootstrap/LocalManagementTest.java user.name=jenkins work=/data/jenkins/workspace/jdk8-tl-test/JTwork/sun/management/jmxremote/bootstrap #section:script_messages ----------messages:(5/312)---------- JDK under test: (/data/jenkins/jobs/jdk8-tl-build/lastSuccessful/archive/build/linux-x86_64-normal-server-release/images/j2sdk-image) java version "1.8.0-internal" Java(TM) SE Runtime Environment (build 1.8.0-internal-jenkins_2013_10_25_23_11-b00) Java HotSpot(TM) 64-Bit Server VM (build 25.0-b54, mixed mode) #section:build ----------messages:(3/143)---------- command: build TestManager TestApplication reason: User specified action: run build TestManager TestApplication elapsed time (seconds): 0.069 result: Passed. Build successful #section:compile ----------messages:(3/386)---------- command: compile -XDignore.symbol.file=true /data/jenkins/jobs/jdk8-tl-build/builds/2013-10-25_23-03-39/archive/jdk/test/sun/management/jmxremote/bootstrap/TestManager.java /data/jenkins/jobs/jdk8-tl-build/builds/2013-10-25_23-03-39/archive/jdk/test/sun/management/jmxremote/bootstrap/TestApplication.java reason: .class file out of date or does not exist elapsed time (seconds): 0.069 ----------rerun:(21/2784)*---------- HOME=/var/lib/jenkins \\ LANG=en_IE.UTF-8 \\ PATH=/bin:/usr/bin \\ /data/jenkins/jobs/jdk8-tl-build/lastSuccessful/archive/build/linux-x86_64-normal-server-release/images/j2sdk-image/bin/javac \\ -J-ea \\ -J-esa \\ -J-Xmx256m \\ -J-XX:-UseLargePages \\ -J-DCompatibilityTest.disableNetwork=true \\ -J-Dtest.vm.opts='-ea -esa -Xmx256m -XX:-UseLargePages -DCompatibilityTest.disableNetwork=true' \\ -J-Dtest.class.path.prefix=/data/jenkins/workspace/jdk8-tl-test/JTwork/classes/1/sun/management/jmxremote/bootstrap:/data/jenkins/jobs/jdk8-tl-build/builds/2013-10-25_23-03-39/archive/jdk/test/sun/management/jmxremote/bootstrap \\ -J-Dtest.jdk=/data/jenkins/jobs/jdk8-tl-build/lastSuccessful/archive/build/linux-x86_64-normal-server-release/images/j2sdk-image \\ -J-Dtest.src.path=/data/jenkins/jobs/jdk8-tl-build/builds/2013-10-25_23-03-39/archive/jdk/test/sun/management/jmxremote/bootstrap:/data/jenkins/jobs/jdk8-tl-build/builds/2013-10-25_23-03-39/archive/jdk/test/lib/testlibrary \\ -J-Dtest.compiler.opts= \\ -J-Dcompile.jdk=/data/jenkins/jobs/jdk8-tl-build/lastSuccessful/archive/build/linux-x86_64-normal-server-release/images/j2sdk-image \\ -J-Dtest.classes=/data/jenkins/workspace/jdk8-tl-test/JTwork/classes/1/sun/management/jmxremote/bootstrap \\ -J-Dtest.class.path=/data/jenkins/workspace/jdk8-tl-test/JTwork/classes/1/sun/management/jmxremote/bootstrap:/data/jenkins/workspace/jdk8-tl-test/JTwork/classes/1/lib/testlibrary \\ -J-Dtest.java.opts= \\ -J-Dtest.src=/data/jenkins/jobs/jdk8-tl-build/builds/2013-10-25_23-03-39/archive/jdk/test/sun/management/jmxremote/bootstrap \\ -J-Dtest.tool.vm.opts='-J-ea -J-esa -J-Xmx256m -J-XX:-UseLargePages -J-DCompatibilityTest.disableNetwork=true' \\ -d /data/jenkins/workspace/jdk8-tl-test/JTwork/classes/1/sun/management/jmxremote/bootstrap -classpath /data/jenkins/workspace/jdk8-tl-test/JTwork/classes/1/sun/management/jmxremote/bootstrap:/data/jenkins/jobs/jdk8-tl-build/builds/2013-10-25_23-03-39/archive/jdk/test/sun/management/jmxremote/bootstrap:/data/jenkins/jobs/jdk8-tl-build/lastSuccessful/archive/build/linux-x86_64-normal-server-release/images/j2sdk-image/lib/tools.jar -sourcepath /data/jenkins/jobs/jdk8-tl-build/builds/2013-10-25_23-03-39/archive/jdk/test/sun/management/jmxremote/bootstrap:/data/jenkins/jobs/jdk8-tl-build/builds/2013-10-25_23-03-39/archive/jdk/test/lib/testlibrary -XDignore.symbol.file=true /data/jenkins/jobs/jdk8-tl-build/builds/2013-10-25_23-03-39/archive/jdk/test/sun/management/jmxremote/bootstrap/TestManager.java /data/jenkins/jobs/jdk8-tl-build/builds/2013-10-25_23-03-39/archive/jdk/test/sun/management/jmxremote/bootstrap/TestApplication.java ----------direct:(2/221)---------- Note: /data/jenkins/jobs/jdk8-tl-build/builds/2013-10-25_23-03-39/archive/jdk/test/lib/testlibrary/jdk/testlibrary/StreamPumper.java uses unchecked or unsafe operations. Note: Recompile with -Xlint:unchecked for details. result: Passed. Compilation successful #section:build ----------messages:(3/104)---------- command: build LocalManagementTest reason: Named class compiled on demand elapsed time (seconds): 0.031 result: Passed. Build successful #section:compile ----------messages:(3/261)---------- command: compile -XDignore.symbol.file=true /data/jenkins/jobs/jdk8-tl-build/builds/2013-10-25_23-03-39/archive/jdk/test/sun/management/jmxremote/bootstrap/LocalManagementTest.java reason: .class file out of date or does not exist elapsed time (seconds): 0.031 ----------rerun:(21/2659)*---------- HOME=/var/lib/jenkins \\ LANG=en_IE.UTF-8 \\ PATH=/bin:/usr/bin \\ /data/jenkins/jobs/jdk8-tl-build/lastSuccessful/archive/build/linux-x86_64-normal-server-release/images/j2sdk-image/bin/javac \\ -J-ea \\ -J-esa \\ -J-Xmx256m \\ -J-XX:-UseLargePages \\ -J-DCompatibilityTest.disableNetwork=true \\ -J-Dtest.vm.opts='-ea -esa -Xmx256m -XX:-UseLargePages -DCompatibilityTest.disableNetwork=true' \\ -J-Dtest.class.path.prefix=/data/jenkins/workspace/jdk8-tl-test/JTwork/classes/1/sun/management/jmxremote/bootstrap:/data/jenkins/jobs/jdk8-tl-build/builds/2013-10-25_23-03-39/archive/jdk/test/sun/management/jmxremote/bootstrap \\ -J-Dtest.jdk=/data/jenkins/jobs/jdk8-tl-build/lastSuccessful/archive/build/linux-x86_64-normal-server-release/images/j2sdk-image \\ -J-Dtest.src.path=/data/jenkins/jobs/jdk8-tl-build/builds/2013-10-25_23-03-39/archive/jdk/test/sun/management/jmxremote/bootstrap:/data/jenkins/jobs/jdk8-tl-build/builds/2013-10-25_23-03-39/archive/jdk/test/lib/testlibrary \\ -J-Dtest.compiler.opts= \\ -J-Dcompile.jdk=/data/jenkins/jobs/jdk8-tl-build/lastSuccessful/archive/build/linux-x86_64-normal-server-release/images/j2sdk-image \\ -J-Dtest.classes=/data/jenkins/workspace/jdk8-tl-test/JTwork/classes/1/sun/management/jmxremote/bootstrap \\ -J-Dtest.class.path=/data/jenkins/workspace/jdk8-tl-test/JTwork/classes/1/sun/management/jmxremote/bootstrap:/data/jenkins/workspace/jdk8-tl-test/JTwork/classes/1/lib/testlibrary \\ -J-Dtest.java.opts= \\ -J-Dtest.src=/data/jenkins/jobs/jdk8-tl-build/builds/2013-10-25_23-03-39/archive/jdk/test/sun/management/jmxremote/bootstrap \\ -J-Dtest.tool.vm.opts='-J-ea -J-esa -J-Xmx256m -J-XX:-UseLargePages -J-DCompatibilityTest.disableNetwork=true' \\ -d /data/jenkins/workspace/jdk8-tl-test/JTwork/classes/1/sun/management/jmxremote/bootstrap -classpath /data/jenkins/workspace/jdk8-tl-test/JTwork/classes/1/sun/management/jmxremote/bootstrap:/data/jenkins/jobs/jdk8-tl-build/builds/2013-10-25_23-03-39/archive/jdk/test/sun/management/jmxremote/bootstrap:/data/jenkins/jobs/jdk8-tl-build/lastSuccessful/archive/build/linux-x86_64-normal-server-release/images/j2sdk-image/lib/tools.jar -sourcepath /data/jenkins/jobs/jdk8-tl-build/builds/2013-10-25_23-03-39/archive/jdk/test/sun/management/jmxremote/bootstrap:/data/jenkins/jobs/jdk8-tl-build/builds/2013-10-25_23-03-39/archive/jdk/test/lib/testlibrary -XDignore.symbol.file=true /data/jenkins/jobs/jdk8-tl-build/builds/2013-10-25_23-03-39/archive/jdk/test/sun/management/jmxremote/bootstrap/LocalManagementTest.java result: Passed. Compilation successful #section:main ----------messages:(3/138)---------- command: main LocalManagementTest reason: User specified action: run main/timeout=300 LocalManagementTest elapsed time (seconds): 20.971 ----------rerun:(17/2052)*---------- HOME=/var/lib/jenkins \\ LANG=en_IE.UTF-8 \\ PATH=/bin:/usr/bin \\ /data/jenkins/jobs/jdk8-tl-build/lastSuccessful/archive/build/linux-x86_64-normal-server-release/images/j2sdk-image/bin/java \\ -Dtest.vm.opts='-ea -esa -Xmx256m -XX:-UseLargePages -DCompatibilityTest.disableNetwork=true' \\ -Dtest.class.path.prefix=/data/jenkins/workspace/jdk8-tl-test/JTwork/classes/1/sun/management/jmxremote/bootstrap:/data/jenkins/jobs/jdk8-tl-build/builds/2013-10-25_23-03-39/archive/jdk/test/sun/management/jmxremote/bootstrap \\ -Dtest.jdk=/data/jenkins/jobs/jdk8-tl-build/lastSuccessful/archive/build/linux-x86_64-normal-server-release/images/j2sdk-image \\ -Dtest.src.path=/data/jenkins/jobs/jdk8-tl-build/builds/2013-10-25_23-03-39/archive/jdk/test/sun/management/jmxremote/bootstrap:/data/jenkins/jobs/jdk8-tl-build/builds/2013-10-25_23-03-39/archive/jdk/test/lib/testlibrary \\ -Dtest.compiler.opts= \\ -Dcompile.jdk=/data/jenkins/jobs/jdk8-tl-build/lastSuccessful/archive/build/linux-x86_64-normal-server-release/images/j2sdk-image \\ -Dtest.classes=/data/jenkins/workspace/jdk8-tl-test/JTwork/classes/1/sun/management/jmxremote/bootstrap \\ -Dtest.class.path=/data/jenkins/workspace/jdk8-tl-test/JTwork/classes/1/sun/management/jmxremote/bootstrap:/data/jenkins/workspace/jdk8-tl-test/JTwork/classes/1/lib/testlibrary \\ -Dtest.java.opts= \\ -Dtest.src=/data/jenkins/jobs/jdk8-tl-build/builds/2013-10-25_23-03-39/archive/jdk/test/sun/management/jmxremote/bootstrap \\ -Dtest.tool.vm.opts='-J-ea -J-esa -J-Xmx256m -J-XX:-UseLargePages -J-DCompatibilityTest.disableNetwork=true' \\ -classpath /data/jenkins/workspace/jdk8-tl-test/JTwork/classes/1/sun/management/jmxremote/bootstrap:/data/jenkins/jobs/jdk8-tl-build/builds/2013-10-25_23-03-39/archive/jdk/test/sun/management/jmxremote/bootstrap:/data/jenkins/jobs/jdk8-tl-build/lastSuccessful/archive/build/linux-x86_64-normal-server-release/images/j2sdk-image/lib/tools.jar \\ LocalManagementTest ----------System.out:(10/85)---------- test5 ========== test1 ========== test4 ========== test2 ========== test3 ========== ----------System.err:(90/5494)---------- [TestApplication] Error: Could not find or load main class TestApplication java.lang.reflect.InvocationTargetException at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:483) at LocalManagementTest.main(LocalManagementTest.java:63) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:483) at com.sun.javatest.regtest.MainAction$SameVMRunnable.run(MainAction.java:746) at java.lang.Thread.run(Thread.java:744) Caused by: java.util.concurrent.TimeoutException at java.util.concurrent.Phaser.awaitAdvanceInterruptibly(Phaser.java:800) at jdk.testlibrary.ProcessTools.startProcess(ProcessTools.java:134) at LocalManagementTest.doTest(LocalManagementTest.java:176) at LocalManagementTest.test5(LocalManagementTest.java:137) ... 11 more [TestApplication] Error: Could not find or load main class TestApplication java.lang.reflect.InvocationTargetException at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:483) at LocalManagementTest.main(LocalManagementTest.java:63) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:483) at com.sun.javatest.regtest.MainAction$SameVMRunnable.run(MainAction.java:746) at java.lang.Thread.run(Thread.java:744) Caused by: java.util.concurrent.TimeoutException at java.util.concurrent.Phaser.awaitAdvanceInterruptibly(Phaser.java:800) at jdk.testlibrary.ProcessTools.startProcess(ProcessTools.java:134) at LocalManagementTest.doTest(LocalManagementTest.java:176) at LocalManagementTest.test1(LocalManagementTest.java:80) ... 11 more [TestApplication] Error: Could not find or load main class TestApplication test4 failed [TestApplication] Error: Could not find or load main class TestApplication java.lang.reflect.InvocationTargetException at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:483) at LocalManagementTest.main(LocalManagementTest.java:63) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:483) at com.sun.javatest.regtest.MainAction$SameVMRunnable.run(MainAction.java:746) at java.lang.Thread.run(Thread.java:744) Caused by: java.util.concurrent.TimeoutException at java.util.concurrent.Phaser.awaitAdvanceInterruptibly(Phaser.java:800) at jdk.testlibrary.ProcessTools.startProcess(ProcessTools.java:134) at LocalManagementTest.doTest(LocalManagementTest.java:176) at LocalManagementTest.test2(LocalManagementTest.java:87) ... 11 more [TestApplication] Error: Could not find or load main class TestApplication java.lang.reflect.InvocationTargetException at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:483) at LocalManagementTest.main(LocalManagementTest.java:63) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:483) at com.sun.javatest.regtest.MainAction$SameVMRunnable.run(MainAction.java:746) at java.lang.Thread.run(Thread.java:744) Caused by: java.util.concurrent.TimeoutException at java.util.concurrent.Phaser.awaitAdvanceInterruptibly(Phaser.java:800) at jdk.testlibrary.ProcessTools.startProcess(ProcessTools.java:134) at LocalManagementTest.doTest(LocalManagementTest.java:176) at LocalManagementTest.test3(LocalManagementTest.java:97) ... 11 more java.lang.Error: Test failed at LocalManagementTest.main(LocalManagementTest.java:75) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:483) at com.sun.javatest.regtest.MainAction$SameVMRunnable.run(MainAction.java:746) at java.lang.Thread.run(Thread.java:744) JavaTest Message: Test threw exception: java.lang.Error JavaTest Message: shutting down test result: Failed. Execution failed: `main' threw exception: java.lang.Error: Test failed test result: Failed. Execution failed: `main' threw exception: java.lang.Error: Test failed
    via by Alan Bateman,
    • java.lang.reflect.InvocationTargetException at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:483) at LocalManagementTest.main(LocalManagementTest.java:63) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:483) at com.sun.javatest.regtest.MainAction$SameVMRunnable.run(MainAction.java:746) at java.lang.Thread.run(Thread.java:744) Caused by: java.util.concurrent.TimeoutException at java.util.concurrent.Phaser.awaitAdvanceInterruptibly(Phaser.java:800) at jdk.testlibrary.ProcessTools.startProcess(ProcessTools.java:134) at LocalManagementTest.doTest(LocalManagementTest.java:176) at LocalManagementTest.test1(LocalManagementTest.java:80) ... 11 more
    No Bugmate found.