Delete testng.zip after extraction

Michael Haupt michael.haupt at oracle.com
Tue Jul 14 06:58:08 UTC 2015


Hi Ahmed,

thank you - before we continue: do you have a stand-alone clone of Nashorn, or do you have a clone of the complete jdk9-dev forest, of which Nashorn is a part? You need the latter.

Best,

Michael

> Am 13.07.2015 um 20:05 schrieb Ahmed Ashour <asashour at yahoo.com>:
> 
> Hi Michael,
> 
>>> BTW the -test-nosecurity target just completed happily for me without the ZIP file being around. It would help if you could indicate the nature of the >> problem you've encountered.
> 
> 
> With HEAD version, there are 3 issues.
> 
> 1- javadocnh: fails because of javafx.application.Application not found
> 
> This wasn't happening last time I ran the tests.
> 
> 2- On manually deleting the <javadoc> in build.xml and running the 'test' target, there is: WARNING: TestNG not available
> 
> 3- Without doing anything, running the same target again, there is java.lang.NoClassDefFoundError: org/testng/reporters/JUnitReportReporter
> 
> BTW, error #3 is the one I faced earlier when the .zip file was manually removed, but I am not able to reproduce that. In case #3, the .zip file is there, yet still the error happens.
> 
> 
> Hope that helps,
> 
> The full details below:
> 
> --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
> 
> c:\base\nashorn\make>ant -autoproxy test
> Buildfile: c:\base\nashorn\make\build.xml
> 
> check-ant-version:
> 
> check-java-version:
> 
> init-conditions:
> 
> init-cc-disabled:
> 
> init-cc-enabled:
> 
> init-cc:
> 
> init:
>     [echo] run.test.jvmargs=-server -Dfile.encoding=UTF-8 -Duser.language=tr -Duser.country=TR -Dnashorn.typeInfo.cacheDir=build\test\type_
> info_cache  -XX:+HeapDumpOnOutOfMemoryError -esa -ea
>     [echo] run.test.jvmargs.octane=-server -Dfile.encoding=UTF-8 -Duser.language=tr -Duser.country=TR -Dnashorn.typeInfo.cacheDir=build\tes
> t\type_info_cache  -XX:+HeapDumpOnOutOfMemoryError -XX:TypeProfileLevel=222
>     [echo] run.test.xms=2G
>     [echo] run.test.xmx=2G
> 
> prepare:
> 
> get-testng:
> 
> compile:
> 
> build-nasgen:
> 
> init:
> 
> prepare:
> 
> compile:
> 
> jar:
> 
> run-nasgen:
> 
> prepare-to-be-instrumented:
> 
> generate-cc-template:
> 
> jar:
>      [jar] Building jar: c:\base\nashorn\dist\nashorn.jar
> 
> javadocnh:
>  [javadoc] Generating Javadoc
>  [javadoc] Javadoc execution
>  [javadoc] javadoc: warning - Error fetching URL: http://docs.oracle.com/javase/8/docs/api/
>  [javadoc] 1 error
>  [javadoc] 1 warning
>  [javadoc] javadoc: error - com.sun.tools.doclets.internal.toolkit.util.DocletAbortException: com.sun.tools.javac.code.Symbol$CompletionFai
> lure: class file for javafx.application.Application not found
> 
> BUILD FAILED
> c:\base\nashorn\make\build.xml:233: Javadoc returned 1
> 
> Total time: 37 seconds
> 
> c:\base\nashorn\make>
> --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
> c:\base\nashorn\make>ant -autoproxy test
> Buildfile: c:\base\nashorn\make\build.xml
> 
> check-ant-version:
> 
> check-java-version:
> 
> init-conditions:
> 
> init-cc-disabled:
> 
> init-cc-enabled:
> 
> init-cc:
> 
> init:
>     [echo] run.test.jvmargs=-server -Dfile.encoding=UTF-8 -Duser.language=tr -Duser.country=TR -Dnashorn.typeInfo.cacheDir=build\test\type_
> info_cache  -XX:+HeapDumpOnOutOfMemoryError -esa -ea
>     [echo] run.test.jvmargs.octane=-server -Dfile.encoding=UTF-8 -Duser.language=tr -Duser.country=TR -Dnashorn.typeInfo.cacheDir=build\tes
> t\type_info_cache  -XX:+HeapDumpOnOutOfMemoryError -XX:TypeProfileLevel=222
>     [echo] run.test.xms=2G
>     [echo] run.test.xmx=2G
> 
> prepare:
> 
> get-testng:
>      [get] Getting: http://testng.org/testng-6.8.zip
>      [get] To: c:\base\nashorn\test\lib\testng-6.8.zip
>    [unzip] Expanding: c:\base\nashorn\test\lib\testng-6.8.zip into c:\base\nashorn\test\lib
>     [move] Moving 1 file to c:\base\nashorn\test\lib
>   [delete] Deleting directory c:\base\nashorn\test\lib\testng-6.8
> 
> compile:
> 
> build-nasgen:
> 
> init:
> 
> prepare:
> 
> compile:
> 
> jar:
> 
> run-nasgen:
> 
> prepare-to-be-instrumented:
> 
> generate-cc-template:
> 
> jar:
>      [jar] Building jar: c:\base\nashorn\dist\nashorn.jar
> 
> javadocnh:
> 
> -test-classes-all:
> 
> -test-classes-single:
> 
> check-testng:
>     [echo] WARNING: TestNG not available, will not run tests. Please copy testng.jar under c:\base\nashorn\test\lib direct
> ory.
> 
> check-external-tests:
> 
> compile-test:
> 
> generate-policy-file:
> 
> test-pessimistic:
> 
> test-optimistic:
> 
> test:
> 
> BUILD SUCCESSFUL
> Total time: 13 seconds
> 
> c:\base\nashorn\make>
> --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
> c:\base\nashorn\make>ant -autoproxy test
> Buildfile: c:\base\nashorn\make\build.xml
> 
> check-ant-version:
> 
> check-java-version:
> 
> init-conditions:
> 
> init-cc-disabled:
> 
> init-cc-enabled:
> 
> init-cc:
> 
> init:
>     [echo] run.test.jvmargs=-server -Dfile.encoding=UTF-8 -Duser.language=tr -Duser.country=TR -Dnashorn.typeInfo.cacheDir=build\test\type_
> info_cache  -XX:+HeapDumpOnOutOfMemoryError -esa -ea
>     [echo] run.test.jvmargs.octane=-server -Dfile.encoding=UTF-8 -Duser.language=tr -Duser.country=TR -Dnashorn.typeInfo.cacheDir=build\tes
> t\type_info_cache  -XX:+HeapDumpOnOutOfMemoryError -XX:TypeProfileLevel=222
>     [echo] run.test.xms=2G
>     [echo] run.test.xmx=2G
> 
> prepare:
> 
> get-testng:
> 
> compile:
>    [javac] Compiling 382 source files to c:\base\nashorn\build\classes
> 
> build-nasgen:
> 
> init:
> 
> prepare:
> 
> compile:
> 
> jar:
> 
> run-nasgen:
> 
> prepare-to-be-instrumented:
>     [copy] Copying 1312 files to c:\base\nashorn\build\to_be_instrumented
> 
> generate-cc-template:
> 
> jar:
>      [jar] Building jar: c:\base\nashorn\dist\nashorn.jar
> 
> javadocnh:
> 
> -test-classes-all:
> 
> -test-classes-single:
> 
> check-testng:
> 
> check-external-tests:
> 
> compile-test:
> 
> generate-policy-file:
> 
> test-pessimistic:
>     [echo] Running test suite in PESSIMISTIC mode...
> 
> -test-nosecurity:
>   [testng] Exception in thread "main" java.lang.NoClassDefFoundError: org/testng/reporters/JUnitReportReporter
>   [testng]     at java.lang.ClassLoader.findBootstrapClass(Native Method)
>   [testng]     at java.lang.ClassLoader.findBootstrapClassOrNull(ClassLoader.java:1012)
>   [testng]     at java.lang.ClassLoader.loadClass(ClassLoader.java:413)
>   [testng]     at java.lang.ClassLoader.loadClass(ClassLoader.java:411)
>   [testng]     at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:331)
>   [testng]     at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
>   [testng]     at org.testng.internal.ClassHelper.forName(ClassHelper.java:96)
>   [testng]     at org.testng.internal.ClassHelper.fileToClass(ClassHelper.java:519)
>   [testng]     at org.testng.TestNG.configure(TestNG.java:1426)
>   [testng]     at org.testng.TestNG.privateMain(TestNG.java:1328)
>   [testng]     at org.testng.TestNG.main(TestNG.java:1307)
> 
> BUILD FAILED
> c:\base\nashorn\make\build.xml:494: The following error occurred while executing this line:
> c:\base\nashorn\make\build.xml:436: The tests failed.
> 
> Total time: 27 seconds
> 
> c:\base\nashorn\make>
> 

-- 

 <http://www.oracle.com/>
Dr. Michael Haupt | Principal Member of Technical Staff
Phone: +49 331 200 7277 | Fax: +49 331 200 7561
Oracle Java Platform Group | LangTools Team | Nashorn
Oracle Deutschland B.V. & Co. KG, Schiffbauergasse 14 | 14467 Potsdam, Germany
 <http://www.oracle.com/commitment>	Oracle is committed to developing practices and products that help protect the environment



More information about the nashorn-dev mailing list