You are viewing a plain text version of this content. The canonical link for it is here.
Posted to j-users@xalan.apache.org by "Cote, Jean-Claude" <Je...@nrc-cnrc.gc.ca> on 2003/09/30 14:18:51 UTC

junit/xalan

Hello,

I'm running a junit test using ant. It produces an xml file called
TEST-org.gridlab.gridsphere.GridSphereTest.xml. I then run a junitreport
using ant which uses xalan 2.4.1 to produce an junit-noframes.html report.
All is fine until I reach somekind of limitation with Xalan. I think...

In the input file I have properties one of which is <property
name="java.class.path">. When the value of this property contains more than
57 paths I get this error. Any ideas what's happening. Is there a limitation
to the lenght of a value?

test-reports:
     [echo] Making GridSphere Junit Test Reports
[junitreport] Using Xalan version: Xalan Java 2.4.1

BUILD FAILED
java.lang.StackOverflowError

Total time: 1 second
java.lang.StackOverflowError


Thanks for you help.
Jean-Claude



Re: junit/xalan

Posted by Johannes Lebek <jo...@gmx.de>.
Hi Jean-Claude,

I encountered the same problem at exactly the same property 
(java.class.path). I did not count the number ot path entries. I just 
saw that more than about 5000 characters as an attribute value make 
Xalan crash.
I worked around by editing the stylesheet: property "java.class.path" is 
not evaluated anymore...
Since this is no perfect solution, I'm also interested in a fix or 
something.
Regards,

Johannes



Cote, Jean-Claude wrote:
> Hello,
> 
> I'm running a junit test using ant. It produces an xml file called 
> TEST-org.gridlab.gridsphere.GridSphereTest.xml. I then run a junitreport 
> using ant which uses xalan 2.4.1 to produce an junit-noframes.html 
> report. All is fine until I reach somekind of limitation with Xalan. I 
> think...
> 
> In the input file I have properties one of which is <property 
> name="java.class.path">. When the value of this property contains more 
> than 57 paths I get this error. Any ideas what's happening. Is there a 
> limitation to the lenght of a value?
> 
> test-reports:
>      [echo] Making GridSphere Junit Test Reports
> [junitreport] Using Xalan version: Xalan Java 2.4.1
> 
> BUILD FAILED
> java.lang.StackOverflowError
> 
> Total time: 1 second
> java.lang.StackOverflowError
> 
> 
> Thanks for you help.
> Jean-Claude
> 
>