JDK-8134420 : sun/tools/jps/TestJpsClass fails with java.lang.RuntimeException: The line 'line 2' does not match pattern '^\\d+\\s+.*': expected true, was false
  • Type: Bug
  • Component: core-svc
  • Sub-Component: tools
  • Affected Version: 9
  • Priority: P3
  • Status: Resolved
  • Resolution: Fixed
  • Submitted: 2015-08-25
  • Updated: 2019-03-18
  • Resolved: 2015-09-04
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
JDK 9
9 b82Fixed
Related Reports
Duplicate :  
Relates :  
Sub Tasks
JDK-8134458 :  
JDK-8134686 :  
Description
[/scratch/jenkins/workspace/9-dev-tier2-solaris-sparc/build/jdk/bin/jps -J-d64 -J-XX:+UsePerfData -m -v -V]
13312 AgentServer -allowSetSecurityManager -port 33026 -ea -esa -Xmx512m -Djava.security.policy=file:/scratch/jenkins/workspace/9-dev-tier2-solaris-sparc/JTwork/jtreg.policy
13313 AgentServer -allowSetSecurityManager -port 64341 -ea -esa -Xmx512m -Djava.security.policy=file:/scratch/jenkins/workspace/9-dev-tier2-solaris-sparc/JTwork/jtreg.policy
13314 AgentServer -allowSetSecurityManager -port 64257 -ea -esa -Xmx512m -Djava.security.policy=file:/scratch/jenkins/workspace/9-dev-tier2-solaris-sparc/JTwork/jtreg.policy
16454 AgentServer -allowSetSecurityManager -port 41433 -Djava.security.policy=file:/scratch/jenkins/workspace/9-dev-tier2-solaris-sparc/JTwork/jtreg.policy
1484 Jstat -gcutil 1461@slc09qkw:45264/TestJstatdServer 250 5 -Denv.class.path=/scratch/jenkins/workspace/9-dev-tier2-solaris-sparc/jdkbuildwrapper/.data/unpacked/jpg/infra/builddeps/jtreg-4.1/1.3/jtreg/lib/javatest.jar:/scratch/jenkins/workspace/9-dev-tier2-solaris-sparc/jdkbuildwrapper/.data/unpacked/jpg/infra/builddeps/jtreg-4.1/1.3/jtreg/lib/jtreg.jar -Dapplication.home=/scratch/jenkins/workspace/9-dev-tier2-solaris-sparc/build/jdk -Xms8m -XX:+UsePerfData -Duser.language=en
13521 AgentServer -allowSetSecurityManager -port 58833 -Djava.security.policy=file:/scratch/jenkins/workspace/9-dev-tier2-solaris-sparc/JTwork/jtreg.policy
1490 Jps -m -v -V -Denv.class.path=/scratch/jenkins/workspace/9-dev-tier2-solaris-sparc/jdkbuildwrapper/.data/unpacked/jpg/infra/builddeps/jtreg-4.1/1.3/jtreg/lib/javatest.jar:/scratch/jenkins/workspace/9-dev-tier2-solaris-sparc/jdkbuildwrapper/.data/unpacked/jpg/infra/builddeps/jtreg-4.1/1.3/jtreg/lib/jtreg.jar:/scratch/jenkins/workspace/9-dev-tier2-solaris-sparc/JTwork/jdk_test/classes/14/sun/tools/jps:/scratch/jenkins/workspace/9-dev-tier2-solaris-sparc/jdk/test/sun/tools/jps:/scratch/jenkins/workspace/9-dev-tier2-solaris-sparc/JTwork/jdk_test/classes/14/lib/testlibrary -Dapplication.home=/scratch/jenkins/workspace/9-dev-tier2-solaris-sparc/build/jdk -Xms8m -XX:+UsePerfData
30738 AgentServer -allowSetSecurityManager -port 35353 -ea -esa -Xmx512m -Djava.security.policy=file:/scratch/jenkins/workspace/9-dev-tier2-solaris-sparc/JTwork/jtreg.policy
16403 AgentServer -allowSetSecurityManager -port 42190 -Djava.security.policy=file:/scratch/jenkins/workspace/9-dev-tier2-solaris-sparc/JTwork/jtreg.policy
1491 Jps -m -v -V -Denv.class.path=/scratch/jenkins/workspace/9-dev-tier2-solaris-sparc/jdkbuildwrapper/.data/unpacked/jpg/infra/builddeps/jtreg-4.1/1.3/jtreg/lib/javatest.jar:/scratch/jenkins/workspace/9-dev-tier2-solaris-sparc/jdkbuildwrapper/.data/unpacked/jpg/infra/builddeps/jtreg-4.1/1.3/jtreg/lib/jtreg.jar -Dapplication.home=/scratch/jenkins/workspace/9-dev-tier2-solaris-sparc/build/jdk -Xms8m -XX:+UsePerfData
19669 AgentServer -allowSetSecurityManager -port 56990 -Djava.security.policy=file:/scratch/jenkins/workspace/9-dev-tier2-solaris-sparc/JTwork/jtreg.policy
1493 Main cfe /scratch/jenkins/workspace/9-dev-tier2-solaris-sparc/JTwork/jdk_test/scratch/5/test.jar Foo Foo.class -Denv.class.path=/scratch/jenkins/workspace/9-dev-tier2-solaris-sparc/jdkbuildwrapper/.data/unpacked/jpg/infra/builddeps/jtreg-4.1/1.3/jtreg/lib/javatest.jar:/scratch/jenkins/workspace/9-dev-tier2-solaris-sparc/jdkbuildwrapper/.data/unpacked/jpg/infra/builddeps/jtreg-4.1/1.3/jtreg/lib/jtreg.jar -Dapplication.home=/scratch/jenkins/workspace/9-dev-tier2-solaris-sparc/build/jdk -Xms8m
1495  -Dmultiple.lines=line 1
line 2

line 3 -Dopen.quote=Open quote to EOL -Dcontinue.with.leadingWS=Continue with leading WS. -Dcontinue.without.leadingWS=Continue without leading WS. -Descape.seq=escaped chars: "abc\u000c	v96238228377477278287

29400 AgentServer -allowSetSecurityManager -port 51907 -ea -esa -Xmx512m -Djava.security.policy=file:/scratch/jenkins/workspace/9-dev-tier2-solaris-sparc/JTwork/jtreg.policy
16474 AgentServer -allowSetSecurityManager -port 64908 -Djava.security.policy=file:/scratch/jenkins/workspace/9-dev-tier2-solaris-sparc/JTwork/jtreg.policy
27418 AgentServer -allowSetSecurityManager -port 40599 -ea -esa -Xmx512m -Djava.security.policy=file:/scratch/jenkins/workspace/9-dev-tier2-solaris-sparc/JTwork/jtreg.policy
29531 AgentServer -allowSetSecurityManager -port 46583 -ea -esa -Xmx512m -Djava.security.policy=file:/scratch/jenkins/workspace/9-dev-tier2-solaris-sparc/JTwork/jtreg.policy
29533 AgentServer -allowSetSecurityManager -port 46267 -ea -esa -Xmx512m -Djava.security.policy=file:/scratch/jenkins/workspace/9-dev-tier2-solaris-sparc/JTwork/jtreg.policy
5727 jar
16479 AgentServer -allowSetSecurityManager -port 33573 -Djava.security.policy=file:/scratch/jenkins/workspace/9-dev-tier2-solaris-sparc/JTwork/jtreg.policy
10848 jar
29604 AgentServer -allowSetSecurityManager -port 47070 -ea -esa -Xmx512m -Djava.security.policy=file:/scratch/jenkins/workspace/9-dev-tier2-solaris-sparc/JTwork/jtreg.policy
16742 AgentServer -allowSetSecurityManager -port 33287 -Djava.security.policy=file:/scratch/jenkins/workspace/9-dev-tier2-solaris-sparc/JTwork/jtreg.policy
1131 JpsBase monkey -XX:+UsePerfData -Xmx512m -XX:+PrintGCDetails -XX:Flags=/scratch/jenkins/workspace/9-dev-tier2-solaris-sparc/JTwork/jdk_test/scratch/1/vmflags -Dtest.jdk=/scratch/jenkins/workspace/9-dev-tier2-solaris-sparc/build/jdk -Dtest.src=/scratch/jenkins/workspace/9-dev-tier2-solaris-sparc/jdk/test/sun/tools/jps +DisableExplicitGC
1132 MainWrapper /scratch/jenkins/workspace/9-dev-tier2-solaris-sparc/JTwork/jdk_test/classes/14/sun/tools/jps/TestJpsJar.jta -Dtest.class.path.prefix=/scratch/jenkins/workspace/9-dev-tier2-solaris-sparc/JTwork/jdk_test/classes/14/sun/tools/jps:/scratch/jenkins/workspace/9-dev-tier2-solaris-sparc/jdk/test/sun/tools/jps:/scratch/jenkins/workspace/9-dev-tier2-solaris-sparc/JTwork/jdk_test/classes/14/lib/testlibrary -Dtest.src=/scratch/jenkins/workspace/9-dev-tier2-solaris-sparc/jdk/test/sun/tools/jps -Dtest.src.path=/scratch/jenkins/workspace/9-dev-tier2-solaris-sparc/jdk/test/sun/tools/jps:/scratch/jenkins/workspace/9-dev-tier2-solaris-sparc/jdk/test/lib/testlibrary -Dtest.classes=/scratch/jenkins/workspace/9-dev-tier2-solaris-sparc/JTwork/jdk_test/classes/14/sun/tools/jps -Dtest.class.path=/scratch/jenkins/workspace/9-dev-tier2-solaris-sparc/JTwork/jdk_test/classes/14/sun/tools/jps:/scratch/jenkins/workspace/9-dev-tier2-solaris-sparc/JTwork/jdk_test/classes/14/lib/testlibrary -Dtest.vm.opts=-ea -esa -Xmx512m -Dtest.tool.vm.opts=-J-ea -J-esa -J-Xmx512m -Dtest.compiler.opts= -Dtest.java.opts= -Dtest.jdk=/scratch/jenkins/workspace/9-de
1135 JpsBase.jar monkey -XX:+UsePerfData -Xmx512m -XX:+PrintGCDetails -XX:Flags=/scratch/jenkins/workspace/9-dev-tier2-solaris-sparc/JTwork/jdk_test/scratch/6/vmflags -Dtest.jdk=/scratch/jenkins/workspace/9-dev-tier2-solaris-sparc/build/jdk -Dtest.src=/scratch/jenkins/workspace/9-dev-tier2-solaris-sparc/jdk/test/sun/tools/jps +DisableExplicitGC
12852 jtreg.jar -e:buildid=BUILD_ID -agentvm -conc:8 -k:!headful -a -ea -esa -timeoutFactor:5 -vmoption:-Xmx512m -verbose:fail,error,multirun -retain:fail,error -ignore:quiet -exclude:jdk/test/ProblemList.txt -exclude:jdk/test/closed/ProblemList.txt -exclude:langtools/test/ProblemList.txt -exclude:jaxp/test/ProblemList.txt -exclude:nashorn/test/ProblemList.txt -xml:verify -reportDir:/scratch/jenkins/workspace/9-dev-tier2-solaris-sparc/JTreport -workDir:/scratch/jenkins/workspace/9-dev-tier2-solaris-sparc/JTwork -jdk:build/jdk langtools/test:tier2 jdk/test:tier2 nashorn/test:tier2 jaxp/test:tier2 -Xmx512m -Dprogram=jtreg
1461 -- process information unavailable
13307 AgentServer -allowSetSecurityManager -port 33198 -ea -esa -Xmx512m -Djava.security.policy=file:/scratch/jenkins/workspace/9-dev-tier2-solaris-sparc/JTwork/jtreg.policy
13308 AgentServer -allowSetSecurityManager -port 38566 -ea -esa -Xmx512m -Djava.security.policy=file:/scratch/jenkins/workspace/9-dev-tier2-solaris-sparc/JTwork/jtreg.policy
13309 AgentServer -allowSetSecurityManager -port 37560 -ea -esa -Xmx512m -Djava.security.policy=file:/scratch/jenkins/workspace/9-dev-tier2-solaris-sparc/JTwork/jtreg.policy
13310 AgentServer -allowSetSecurityManager -port 33904 -ea -esa -Xmx512m -Djava.security.policy=file:/scratch/jenkins/workspace/9-dev-tier2-solaris-sparc/JTwork/jtreg.policy
13311 AgentServer -allowSetSecurityManager -port 47676 -ea -esa -Xmx512m -Djava.security.policy=file:/scratch/jenkins/workspace/9-dev-tier2-solaris-sparc/JTwork/jtreg.policy
29375 AgentServer -allowSetSecurityManager -port 50277 -ea -esa -Xmx512m -Djava.security.policy=file:/scratch/jenkins/workspace/9-dev-tier2-solaris-sparc/JTwork/jtreg.policy
17151 AgentServer -allowSetSecurityManager -port 50288 -Djava.security.policy=file:/scratch/jenkins/workspace/9-dev-tier2-solaris-sparc/JTwork/jtreg.policy

Heap
 garbage-first heap   total 524288K, used 8001K [0x00000007a0000000, 0x00000007a0101000, 0x00000007c0000000)
  region size 1024K, 9 young (9216K), 1 survivors (1024K)
 Metaspace       used 5680K, capacity 5940K, committed 6144K, reserved 1056768K
  class space    used 633K, capacity 742K, committed 768K, reserved 1048576K
];
 stderr: [Exception in thread "main" java.lang.RuntimeException: The line 'line 2' does not match pattern '^\\d+\\s+.*': expected true, was false
	at jdk.testlibrary.Asserts.fail(Asserts.java:536)
	at jdk.testlibrary.Asserts.assertTrue(Asserts.java:486)
	at jdk.testlibrary.OutputAnalyzer.shouldMatchByLine(OutputAnalyzer.java:526)
	at jdk.testlibrary.OutputAnalyzer.stdoutShouldMatchByLine(OutputAnalyzer.java:503)
	at jdk.testlibrary.OutputAnalyzer.stdoutShouldMatchByLine(OutputAnalyzer.java:451)
	at JpsHelper.verifyJpsOutput(JpsHelper.java:186)
	at JpsBase.main(JpsBase.java:121)
]
 exitValue = 1

java.lang.RuntimeException: Expected to get exit value of [0]

	at jdk.testlibrary.OutputAnalyzer.shouldHaveExitValue(OutputAnalyzer.java:353)
	at TestJpsClass.main(TestJpsClass.java:62)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.lang.reflect.Method.invoke(Method.java:519)
	at com.sun.javatest.regtest.agent.MainActionHelper$SameVMRunnable.run(MainActionHelper.java:218)
	at java.lang.Thread.run(Thread.java:746)

JavaTest Message: Test threw exception: java.lang.RuntimeException
JavaTest Message: shutting down test

result: Failed. Execution failed: `main' threw exception: java.lang.RuntimeException: Expected to get exit value of [0]

Comments
Actually, it makes sense for 'jps' to escape the VM argument values, not to interpret \n and \r characters and print "\n" and "\r" strings instead. Putting in new lines in the output messes it up and makes it much harder to parse for tools as well as humans.
02-09-2015

ILW = M (decreased test coverage) M (happens only when run concurrently with certain tests) H (no workaround) = P3
01-09-2015

The fix in the sub-task failed to address the problem. Maybe the cause is that exclusiveAccess.dirs does not do what I thought it did. From the documentation: exclusiveAccess.dirs <directories> Directories containing tests which should not be run concurrently at the same time as other tests. A harness that supports concurrent test execution should ensure that all tests in the specified directories are run when no other tests in the same directory is being run. Note the last part: "...when no other tests in the same directory is being run.". Thus this isn't helping when we want to make sure tests are not run at the same time as tests in a different directory.
27-08-2015

Created a sub-task to add the jps tests to exclusiveAccess.dirs. The real solution should be something more elaborate to make sure the jps tests fail on such output - leaving this bug open for that fix.
25-08-2015

sun/tools/jps/TestJpsJar can fail in a similar way: [D:\jenkins\workspace\9-dev-tier2-windows-i586\build\jdk\bin\jps.exe -J-XX:+UsePerfData -v -V] 33280 Foo 56448 AgentServer -ea -esa -Xmx512m -Djava.security.policy=file:/d:/jenkins/workspace/9-dev-tier2-windows-i586/JTwork/jtreg.policy 64640 AgentServer -Djava.security.policy=file:/d:/jenkins/workspace/9-dev-tier2-windows-i586/JTwork/jtreg.policy 75008 AgentServer -ea -esa -Xmx512m -Djava.security.policy=file:/d:/jenkins/workspace/9-dev-tier2-windows-i586/JTwork/jtreg.policy 79360 -Dmultiple.lines=line 1 line 2 line 3 -Dopen.quote=Open quote to EOL -Dcontinue.with.leadingWS=Continue with leading WS. -Dcontinue.without.leadingWS=Continue without leading WS. -Descape.seq=escaped chars: "abc\u000c v96238228377477278287 36612 AgentServer -ea -esa -Xmx512m -Djava.security.policy=file:/d:/jenkins/workspace/9-dev-tier2-windows-i586/JTwork/jtreg.policy 56644 AgentServer -Djava.security.policy=file:/d:/jenkins/workspace/9-dev-tier2-windows-i586/JTwork/jtreg.policy 61892 AgentServer -Djava.security.policy=file:/d:/jenkins/workspace/9-dev-tier2-windows-i586/JTwork/jtreg.policy 63620 AgentServer -Djava.security.policy=file:/d:/jenkins/workspace/9-dev-tier2-windows-i586/JTwork/jtreg.policy 70212 AgentServer -ea -esa -Xmx512m -Djava.security.policy=file:/d:/jenkins/workspace/9-dev-tier2-windows-i586/JTwork/jtreg.policy 74052 AgentServer -ea -esa -Xmx512m -Djava.security.policy=file:/d:/jenkins/workspace/9-dev-tier2-windows-i586/JTwork/jtreg.policy 79172 AgentServer -ea -esa -Xmx512m -Djava.security.policy=file:/d:/jenkins/workspace/9-dev-tier2-windows-i586/JTwork/jtreg.policy 65992 AgentServer -ea -esa -Xmx512m -Djava.security.policy=file:/d:/jenkins/workspace/9-dev-tier2-windows-i586/JTwork/jtreg.policy 67720 Main -Dapplication.home=D:\jenkins\workspace\9-dev-tier2-windows-i586\build\jdk -Xms8m -ea -esa -Xmx512m -Djava.security.egd=file:/dev/./urandom 73032 JpsBase -XX:+UsePerfData -Xmx512m -XX:+PrintGCDetails -XX:Flags=D:\jenkins\workspace\9-dev-tier2-windows-i586\JTwork\jdk_test\scratch\9\vmflags -Dtest.jdk=D:\jenkins\workspace\9-dev-tier2-windows-i586\build\jdk -Dtest.src=D:\jenkins\workspace\9-dev-tier2-windows-i586\jdk\test\sun\tools\jps +DisableExplicitGC 73288 AgentServer -ea -esa -Xmx512m -Djava.security.policy=file:/d:/jenkins/workspace/9-dev-tier2-windows-i586/JTwork/jtreg.policy 52376 Jps -Denv.class.path=D:\jenkins\workspace\9-dev-tier2-windows-i586\jdkbuildwrapper\.data\uunpacked\jpg\infra\builddeps\jtreg-4.1\1.3\jtreg\lib\javatest.jar;D:\jenkins\workspace\9-dev-tier2-windows-i586\jdkbuildwrapper\.data\uunpacked\jpg\infra\builddeps\jtreg-4.1\1.3\jtreg\lib\jtreg.jar;D:\jenkins\workspace\9-dev-tier2-windows-i586\JTwork\jdk_test\classes\17\sun\tools\jps;D:\jenkins\workspace\9-dev-tier2-windows-i586\jdk\test\sun\tools\jps;D:\jenkins\workspace\9-dev-tier2-windows-i586\JTwork\jdk_test\classes\17\lib\testlibrary -Dapplication.home=D:\jenkins\workspace\9-dev-tier2-windows-i586\build\jdk -Xms8m -XX:+UsePerfData 72344 AgentServer -ea -esa -Xmx512m -Djava.security.policy=file:/d:/jenkins/workspace/9-dev-tier2-windows-i586/JTwork/jtreg.policy 50012 AgentServer -ea -esa -Xmx512m -Djava.security.policy=file:/d:/jenkins/workspace/9-dev-tier2-windows-i586/JTwork/jtreg.policy 31584 jtreg.jar -Xmx512m -Dprogram=jtreg 67936 TimestampCheck -ea -esa -Xmx512m -ea -esa -Xmx512m -Dtest.tool.vm.opts=-J-ea -J-esa -J-Xmx512m 71328 AgentServer -ea -esa -Xmx512m -Djava.security.policy=file:/d:/jenkins/workspace/9-dev-tier2-windows-i586/JTwork/jtreg.policy 71972 AgentServer -ea -esa -Xmx512m -Djava.security.policy=file:/d:/jenkins/workspace/9-dev-tier2-windows-i586/JTwork/jtreg.policy 78756 MainWrapper -Dtest.class.path.prefix=D:\jenkins\workspace\9-dev-tier2-windows-i586\JTwork\jdk_test\classes\15\sun\security\krb5\auto;D:\jenkins\workspace\9-dev-tier2-windows-i586\jdk\test\sun\security\krb5\auto -Dtest.src=D:\jenkins\workspace\9-dev-tier2-windows-i586\jdk\test\sun\security\krb5\auto -Dtest.src.path=D:\jenkins\workspace\9-dev-tier2-windows-i586\jdk\test\sun\security\krb5\auto -Dtest.classes=D:\jenkins\workspace\9-dev-tier2-windows-i586\JTwork\jdk_test\classes\15\sun\security\krb5\auto -Dtest.class.path=D:\jenkins\workspace\9-dev-tier2-windows-i586\JTwork\jdk_test\classes\15\sun\security\krb5\auto -Dtest.vm.opts=-ea -esa -Xmx512m -Dtest.tool.vm.opts=-J-ea -J-esa -J-Xmx512m -Dtest.compiler.opts= -Dtest.java.opts= -Dtest.jdk=D:\jenkins\workspace\9-dev-tier2-windows-i586\build\jdk -Dcompile.jdk=D:\jenkins\workspace\9-dev-tier2-windows-i586\build\jdk -Dtest.timeout.factor=4.0 -ea -esa -Xmx512m 69096 AgentServer -ea -esa -Xmx512m -Djava.security.policy=file:/d:/jenkins/workspace/9-dev-tier2-windows-i586/JTwork/jtreg.policy 76328 MainWrapper -Dtest.class.path.prefix=D:\jenkins\workspace\9-dev-tier2-windows-i586\JTwork\jdk_test\classes\17\sun\tools\jps;D:\jenkins\workspace\9-dev-tier2-windows-i586\jdk\test\sun\tools\jps;D:\jenkins\workspace\9-dev-tier2-windows-i586\JTwork\jdk_test\classes\17\lib\testlibrary -Dtest.src=D:\jenkins\workspace\9-dev-tier2-windows-i586\jdk\test\sun\tools\jps -Dtest.src.path=D:\jenkins\workspace\9-dev-tier2-windows-i586\jdk\test\sun\tools\jps;D:\jenkins\workspace\9-dev-tier2-windows-i586\jdk\test\lib\testlibrary -Dtest.classes=D:\jenkins\workspace\9-dev-tier2-windows-i586\JTwork\jdk_test\classes\17\sun\tools\jps -Dtest.class.path=D:\jenkins\workspace\9-dev-tier2-windows-i586\JTwork\jdk_test\classes\17\sun\tools\jps;D:\jenkins\workspace\9-dev-tier2-windows-i586\JTwork\jdk_test\classes\17\lib\testlibrary -Dtest.vm.opts=-ea -esa -Xmx512m -Dtest.tool.vm.opts=-J-ea -J-esa -J-Xmx512m -Dtest.compiler.opts= -Dtest.java.opts= -Dtest.jdk=D:\jenkins\workspace\9-dev-tier2-windows-i586\build\jdk -Dcompile.jdk=D:\jenkins\workspace\9-d 77800 AgentServer -ea -esa -Xmx512m -Djava.security.policy=file:/d:/jenkins/workspace/9-dev-tier2-windows-i586/JTwork/jtreg.policy 79016 AgentServer -Djava.security.policy=file:/d:/jenkins/workspace/9-dev-tier2-windows-i586/JTwork/jtreg.policy 64876 AgentServer -Djava.security.policy=file:/d:/jenkins/workspace/9-dev-tier2-windows-i586/JTwork/jtreg.policy 77100 AgentServer -ea -esa -Xmx512m -Djava.security.policy=file:/d:/jenkins/workspace/9-dev-tier2-windows-i586/JTwork/jtreg.policy 69680 AgentServer -Djava.security.policy=file:/d:/jenkins/workspace/9-dev-tier2-windows-i586/JTwork/jtreg.policy 73648 AgentServer -Djava.security.policy=file:/d:/jenkins/workspace/9-dev-tier2-windows-i586/JTwork/jtreg.policy 75632 AgentServer -ea -esa -Xmx512m -Djava.security.policy=file:/d:/jenkins/workspace/9-dev-tier2-windows-i586/JTwork/jtreg.policy 45880 AgentServer -ea -esa -Xmx512m -Djava.security.policy=file:/d:/jenkins/workspace/9-dev-tier2-windows-i586/JTwork/jtreg.policy 66296 JpsBase.jar -XX:+UsePerfData -Xmx512m -XX:+PrintGCDetails -XX:Flags=D:\jenkins\workspace\9-dev-tier2-windows-i586\JTwork\jdk_test\scratch\7\vmflags -Dtest.jdk=D:\jenkins\workspace\9-dev-tier2-windows-i586\build\jdk -Dtest.src=D:\jenkins\workspace\9-dev-tier2-windows-i586\jdk\test\sun\tools\jps +DisableExplicitGC 76920 AgentServer -ea -esa -Xmx512m -Djava.security.policy=file:/d:/jenkins/workspace/9-dev-tier2-windows-i586/JTwork/jtreg.policy 53756 -- process information unavailable 57724 AgentServer -ea -esa -Xmx512m -Djava.security.policy=file:/d:/jenkins/workspace/9-dev-tier2-windows-i586/JTwork/jtreg.policy 62524 -- process information unavailable 73532 AgentServer -Djava.security.policy=file:/d:/jenkins/workspace/9-dev-tier2-windows-i586/JTwork/jtreg.policy 74812 AgentServer -ea -esa -Xmx512m -Djava.security.policy=file:/d:/jenkins/workspace/9-dev-tier2-windows-i586/JTwork/jtreg.policy 76988 -- process information unavailable Heap garbage-first heap total 524288K, used 6100K [0x00000000e0000000, 0x00000000e0101000, 0x0000000100000000) region size 1024K, 7 young (7168K), 1 survivors (1024K) Metaspace used 5635K, capacity 5898K, committed 6144K, reserved 1056768K class space used 631K, capacity 731K, committed 768K, reserved 1048576K ]; stderr: [Exception in thread "main" java.lang.RuntimeException: The line '79360 -Dmultiple.lines=line 1 line 2 line 3 -Dopen.quote=Open quote to EOL -Dcontinue.with.leadingWS=Continue with leading WS. -Dcontinue.without.leadingWS=Continue without leading WS. -Descape.seq=escaped chars: "abc\u000c v96238228377477278287 ' does not match pattern '^\d+\s+.*': expected true, was false at jdk.testlibrary.Asserts.fail(Asserts.java:536) at jdk.testlibrary.Asserts.assertTrue(Asserts.java:486) at jdk.testlibrary.OutputAnalyzer.shouldMatchByLine(OutputAnalyzer.java:526) at jdk.testlibrary.OutputAnalyzer.stdoutShouldMatchByLine(OutputAnalyzer.java:503) at jdk.testlibrary.OutputAnalyzer.stdoutShouldMatchByLine(OutputAnalyzer.java:451) at JpsHelper.verifyJpsOutput(JpsHelper.java:186) at JpsBase.main(JpsBase.java:121) ] exitValue = 1 java.lang.RuntimeException: Expected to get exit value of [0] at jdk.testlibrary.OutputAnalyzer.shouldHaveExitValue(OutputAnalyzer.java:353) at TestJpsJar.main(TestJpsJar.java:62) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:519) at com.sun.javatest.regtest.agent.MainWrapper$MainThread.run(MainWrapper.java:92) at java.lang.Thread.run(Thread.java:746) JavaTest Message: Test threw exception: java.lang.RuntimeException: Expected to get exit value of [0]
25-08-2015

Perhaps the jps tests need to be added to exclusiveAccess.dirs in TEST.ROOT (Tests that cannot run concurrently with other tests).
25-08-2015

A new test (tools/launcher/ArgFileSyntax.java) was recently added. One of the things that test does is create command lines with newlines in them. If this is run at the same time as the jps test, the regexp in the jps tests fails on the newlines in the output. See the following part of the output above: 1495 -Dmultiple.lines=line 1 line 2 line 3 -Dopen.quote=Open quote to EOL -Dcontinue.with.leadingWS=Continue with leading WS. -Dcontinue.without.leadingWS=Continue without leading WS. -Descape.seq=escaped chars: "abc\u000c v96238228377477278287
25-08-2015