[
http://jira.jboss.com/jira/browse/JBRULES-1543?page=comments#action_12407267 ]
Aleksandar Kostadinov commented on JBRULES-1543:
------------------------------------------------
setTckConf in org/jcp/jsr94/tck/AllTests.java can't handle the case when classes are
inside a jar archive. To run tests in the SOA-P environment we get the jars from the
regular build and that breaks these tests for us. Quick read of the file showed me this:
URL url = Jsr94FactHandle.class.getResource( "Jsr94FactHandle.class"
);
rootDirectory = new File( url.getFile()
).getParentFile().getParentFile().getParentFile().getParentFile();
zos = new ZipOutputStream( new FileOutputStream( jarFile ) );
zipDir( rootDirectory,
zos );
<...>
String[] dirList = zipDir.list(); (here zipDir is rootDirectory which is
probably a JAR file and not a directory)
<...>
and then on line 152: dirList.length (where dirList is null because zipDir is
not a dir)
java.lang.NullPointerException
at org.jcp.jsr94.tck.AllTests.zipDir(AllTests.java:152)
at org.jcp.jsr94.tck.AllTests.setTckConf(AllTests.java:94)
at org.jcp.jsr94.tck.AllTests.suite(AllTests.java:42)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at
org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.run(JUnitTestRunner.java:272)
at
org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.launch(JUnitTestRunner.java:672)
at
org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.main(JUnitTestRunner.java:546)
I'll try to workaround this issue in our tests but will be great to be fixed.
tests failing with JANINO
-------------------------
Key: JBRULES-1543
URL:
http://jira.jboss.com/jira/browse/JBRULES-1543
Project: JBoss Drools
Issue Type: Bug
Security Level: Public(Everyone can see)
Reporter: Aleksandar Kostadinov
Assigned To: Mark Proctor
Test suite of
http://anonsvn.labs.jboss.com/labs/jbossrules/tags/DROOLS_SOA_4_2_19342_CP1
is failing when run with JANINO (mvn install -Ddrools.dialect.java.compiler=JANINO).
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira