JDK-8037347 : TEST_BUG: javax/xml/jaxp/parsers/8022548/XOMParserTest.java shuld not write to testbase
  • Type: Bug
  • Component: xml
  • Sub-Component: jaxp
  • Affected Version: 7
  • Priority: P4
  • Status: Closed
  • Resolution: Duplicate
  • OS: generic
  • CPU: generic
  • Submitted: 2014-03-14
  • Updated: 2014-04-11
  • Resolved: 2014-03-14
Related Reports
Duplicate :  
Description
Testsuite name: Regression
Test name: javax/xml/jaxp/parsers/8022548/XOMParserTest.java
JDK tested: 7u51 b34
OS tested: Solaris 10 sparc

This test writes an output to testbase, this should not happen, because the testbase is often read-only.

LOG:

#section:main
----------messages:(3/113)----------
command: main XOMParserTest
reason: User specified action: run main XOMParserTest 
elapsed time (seconds): 2.162
----------System.out:(4/54)----------

Number of tests passed: 0
Number of tests failed: 1

----------System.err:(14/1052)----------
java.lang.RuntimeException: /export/local/aurora/CommonData/j2se_javax_rest/test/javax/xml/jaxp/parsers/8022548/JDK8022548.out (Permission denied)
	at TestBase.tearDown(TestBase.java:55)
	at XOMParserTest.main(XOMParserTest.java:59)
	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:606)
	at com.sun.javatest.regtest.MainWrapper$MainThread.run(MainWrapper.java:94)
	at java.lang.Thread.run(Thread.java:744)

JavaTest Message: Test threw exception: java.lang.RuntimeException: /export/local/aurora/CommonData/j2se_javax_rest/test/javax/xml/jaxp/parsers/8022548/JDK8022548.out (Permission denied)
JavaTest Message: shutting down test

STATUS:Failed.`main' threw exception: java.lang.RuntimeException: /export/local/aurora/CommonData/j2se_javax_rest/test/javax/xml/jaxp/parsers/8022548/JDK8022548.out (Permission denied)


test result: Failed. Execution failed: `main' threw exception: java.lang.RuntimeException: /export/local/aurora/CommonData/j2se_javax_rest/test/javax/xml/jaxp/parsers/8022548/JDK8022548.out (Permission denied)
Comments
RULE javax/xml/jaxp/parsers/8022548/XOMParserTest.java java.lang.RuntimeException: C:\local\aurora\CommonData\j2se_javax_rest\test\javax\xml\jaxp\parsers\8022548\JDK8022548.out (Access is denied)
11-04-2014

The issue was fixed in JDK-8024876. See also JDK-8027860 for further improvement.
14-03-2014