[ http://issues.apache.org/jira/browse/XALANJ-1914?page=history ]

Henry Zongaro updated XALANJ-1914:
----------------------------------

    Description: 
Using the currentCVS version of XalanJ2.

When I run transformation using single thread, it works fine.
When multi threads are using for the transformation using the same xml file and 
xsl file that is used in single thread test, I get various symptoms.  The 
following three symptoms occur randomly:

First Symptom:
--------------
javax.xml.transform.TransformerException: 5 >= 1
     at org.apache.xpath.XPath.execute(XPath.java(Compiled Code))
     at org.apache.xalan.templates.ElemWithParam.getValue(ElemWithParam.java
(Compiled Code))
     at org.apache.xalan.templates.ElemCallTemplate.execute
(ElemCallTemplate.java(Compiled Code))
     at org.apache.xalan.transformer.TransformerImpl.executeChildTemplates
(TransformerImpl.java(Compiled Code))
     ...
---------
java.lang.ArrayIndexOutOfBoundsException: 5 >= 1
     at java.util.Vector.elementAt(Vector.java(Inlined Compiled Code))
     at org.apache.xml.dtm.ref.DTMStringPool.indexToString(DTMStringPool.java
(Inlined Compiled Code))
     at org.apache.xml.dtm.ref.sax2dtm.SAX2DTM.getStringValue(SAX2DTM.java
(Compiled Code))
     at org.apache.xpath.objects.XRTreeFrag.str(XRTreeFrag.java(Compiled Code))
     at org.apache.xpath.objects.XRTreeFragSelectWrapper.execute
(XRTreeFragSelectWrapper.java(Compiled Code))
     at org.apache.xpath.XPath.execute(XPath.java(Compiled Code))
     ...
     
     
Second Symptom:
---------------

javax.xml.transform.TransformerException: -1
     at org.apache.xpath.XPath.execute(XPath.java(Compiled Code))
     at org.apache.xalan.templates.ElemWithParam.getValue(ElemWithParam.java
(Compiled Code))
     at org.apache.xalan.templates.ElemCallTemplate.execute
(ElemCallTemplate.java(Compiled Code))
     at org.apache.xalan.transformer.TransformerImpl.executeChildTemplates
(TransformerImpl.java(Compiled Code))
     ...
 
---------
java.lang.ArrayIndexOutOfBoundsException: -1
     at org.apache.xml.utils.SuballocatedIntVector.elementAt
(SuballocatedIntVector.java(Inlined Compiled Code))
     at org.apache.xml.dtm.ref.DTMDefaultBase._firstch(DTMDefaultBase.java
(Compiled Code))
     at org.apache.xml.dtm.ref.sax2dtm.SAX2DTM.getStringValue(SAX2DTM.java
(Compiled Code))
     at org.apache.xpath.objects.XRTreeFrag.str(XRTreeFrag.java(Compiled Code))
     at org.apache.xpath.objects.XRTreeFragSelectWrapper.execute
(XRTreeFragSelectWrapper.java(Compiled Code))
     at org.apache.xpath.XPath.execute(XPath.java(Compiled Code))
     ...
     
Third Symptom:
--------------

javax.xml.transform.TransformerException: Unknown error in XPath.
     at org.apache.xpath.XPath.execute(XPath.java(Compiled Code))
     at org.apache.xalan.templates.ElemWithParam.getValue(ElemWithParam.java
(Compiled Code))
     at org.apache.xalan.templates.ElemCallTemplate.execute
(ElemCallTemplate.java(Compiled Code))
     at org.apache.xalan.transformer.TransformerImpl.executeChildTemplates
(TransformerImpl.java(Compiled Code))
     ...

---------
java.lang.NullPointerException
     at org.apache.xpath.objects.XNodeSet.getStringFromNode(XNodeSet.java
(Inlined Compiled Code))
     at org.apache.xpath.objects.XNodeSet.str(XNodeSet.java(Compiled Code))
     at org.apache.xpath.objects.XRTreeFragSelectWrapper.execute
(XRTreeFragSelectWrapper.java(Compiled Code))
     at org.apache.xpath.XPath.execute(XPath.java(Compiled Code))
     ...
     
-------------------------------------------------------------------
These symptoms are random.  Also, the output file is not consistent.  In 
multithread environment, the output file seems to differ for one thread to 
other.

Yash

  was:
Using the currentCVS version of XalanJ2.

When I run transformation using single thread, it works fine.
When multi threads are using for the transformation using the same xml file and 
xsl file that is used in single thread test, I get various symptoms.  The 
following three symptoms occur randomly:

First Symptom:
--------------
javax.xml.transform.TransformerException: 5 >= 1
     at org.apache.xpath.XPath.execute(XPath.java(Compiled Code))
     at org.apache.xalan.templates.ElemWithParam.getValue(ElemWithParam.java
(Compiled Code))
     at org.apache.xalan.templates.ElemCallTemplate.execute
(ElemCallTemplate.java(Compiled Code))
     at org.apache.xalan.transformer.TransformerImpl.executeChildTemplates
(TransformerImpl.java(Compiled Code))
     ...
---------
java.lang.ArrayIndexOutOfBoundsException: 5 >= 1
     at java.util.Vector.elementAt(Vector.java(Inlined Compiled Code))
     at org.apache.xml.dtm.ref.DTMStringPool.indexToString(DTMStringPool.java
(Inlined Compiled Code))
     at org.apache.xml.dtm.ref.sax2dtm.SAX2DTM.getStringValue(SAX2DTM.java
(Compiled Code))
     at org.apache.xpath.objects.XRTreeFrag.str(XRTreeFrag.java(Compiled Code))
     at org.apache.xpath.objects.XRTreeFragSelectWrapper.execute
(XRTreeFragSelectWrapper.java(Compiled Code))
     at org.apache.xpath.XPath.execute(XPath.java(Compiled Code))
     ...
     
     
Second Symptom:
---------------

javax.xml.transform.TransformerException: -1
     at org.apache.xpath.XPath.execute(XPath.java(Compiled Code))
     at org.apache.xalan.templates.ElemWithParam.getValue(ElemWithParam.java
(Compiled Code))
     at org.apache.xalan.templates.ElemCallTemplate.execute
(ElemCallTemplate.java(Compiled Code))
     at org.apache.xalan.transformer.TransformerImpl.executeChildTemplates
(TransformerImpl.java(Compiled Code))
     ...
 
---------
java.lang.ArrayIndexOutOfBoundsException: -1
     at org.apache.xml.utils.SuballocatedIntVector.elementAt
(SuballocatedIntVector.java(Inlined Compiled Code))
     at org.apache.xml.dtm.ref.DTMDefaultBase._firstch(DTMDefaultBase.java
(Compiled Code))
     at org.apache.xml.dtm.ref.sax2dtm.SAX2DTM.getStringValue(SAX2DTM.java
(Compiled Code))
     at org.apache.xpath.objects.XRTreeFrag.str(XRTreeFrag.java(Compiled Code))
     at org.apache.xpath.objects.XRTreeFragSelectWrapper.execute
(XRTreeFragSelectWrapper.java(Compiled Code))
     at org.apache.xpath.XPath.execute(XPath.java(Compiled Code))
     ...
     
Third Symptom:
--------------

javax.xml.transform.TransformerException: Unknown error in XPath.
     at org.apache.xpath.XPath.execute(XPath.java(Compiled Code))
     at org.apache.xalan.templates.ElemWithParam.getValue(ElemWithParam.java
(Compiled Code))
     at org.apache.xalan.templates.ElemCallTemplate.execute
(ElemCallTemplate.java(Compiled Code))
     at org.apache.xalan.transformer.TransformerImpl.executeChildTemplates
(TransformerImpl.java(Compiled Code))
     ...

---------
java.lang.NullPointerException
     at org.apache.xpath.objects.XNodeSet.getStringFromNode(XNodeSet.java
(Inlined Compiled Code))
     at org.apache.xpath.objects.XNodeSet.str(XNodeSet.java(Compiled Code))
     at org.apache.xpath.objects.XRTreeFragSelectWrapper.execute
(XRTreeFragSelectWrapper.java(Compiled Code))
     at org.apache.xpath.XPath.execute(XPath.java(Compiled Code))
     ...
     
-------------------------------------------------------------------
These symptoms are random.  Also, the output file is not consistent.  In 
multithread environment, the output file seems to differ for one thread to 
other.

Yash

    Environment: 
Operating System: Windows NT/2K
Platform: Other

  was:
Operating System: Windows NT/2K
Platform: Other

       Priority: Blocker
    Bugzilla Id:   (was: 30262)
    Fix Version: CurrentCVS

> Transformation failure in Multithread environment.  
> javax.xml.transform.TransformerException: 5 >= 1
> ----------------------------------------------------------------------------------------------------
>
>          Key: XALANJ-1914
>          URL: http://issues.apache.org/jira/browse/XALANJ-1914
>      Project: XalanJ2
>         Type: Bug
>   Components: Xalan-interpretive, transformation
>     Versions: CurrentCVS
>  Environment: Operating System: Windows NT/2K
> Platform: Other
>     Reporter: Yash Talwar
>     Assignee: Yash Talwar
>     Priority: Blocker
>      Fix For: CurrentCVS
>  Attachments: patch.txt
>
> Using the currentCVS version of XalanJ2.
> When I run transformation using single thread, it works fine.
> When multi threads are using for the transformation using the same xml file 
> and 
> xsl file that is used in single thread test, I get various symptoms.  The 
> following three symptoms occur randomly:
> First Symptom:
> --------------
> javax.xml.transform.TransformerException: 5 >= 1
>      at org.apache.xpath.XPath.execute(XPath.java(Compiled Code))
>      at org.apache.xalan.templates.ElemWithParam.getValue(ElemWithParam.java
> (Compiled Code))
>      at org.apache.xalan.templates.ElemCallTemplate.execute
> (ElemCallTemplate.java(Compiled Code))
>      at org.apache.xalan.transformer.TransformerImpl.executeChildTemplates
> (TransformerImpl.java(Compiled Code))
>      ...
> ---------
> java.lang.ArrayIndexOutOfBoundsException: 5 >= 1
>      at java.util.Vector.elementAt(Vector.java(Inlined Compiled Code))
>      at org.apache.xml.dtm.ref.DTMStringPool.indexToString(DTMStringPool.java
> (Inlined Compiled Code))
>      at org.apache.xml.dtm.ref.sax2dtm.SAX2DTM.getStringValue(SAX2DTM.java
> (Compiled Code))
>      at org.apache.xpath.objects.XRTreeFrag.str(XRTreeFrag.java(Compiled 
> Code))
>      at org.apache.xpath.objects.XRTreeFragSelectWrapper.execute
> (XRTreeFragSelectWrapper.java(Compiled Code))
>      at org.apache.xpath.XPath.execute(XPath.java(Compiled Code))
>      ...
>      
>      
> Second Symptom:
> ---------------
> javax.xml.transform.TransformerException: -1
>      at org.apache.xpath.XPath.execute(XPath.java(Compiled Code))
>      at org.apache.xalan.templates.ElemWithParam.getValue(ElemWithParam.java
> (Compiled Code))
>      at org.apache.xalan.templates.ElemCallTemplate.execute
> (ElemCallTemplate.java(Compiled Code))
>      at org.apache.xalan.transformer.TransformerImpl.executeChildTemplates
> (TransformerImpl.java(Compiled Code))
>      ...
>  
> ---------
> java.lang.ArrayIndexOutOfBoundsException: -1
>      at org.apache.xml.utils.SuballocatedIntVector.elementAt
> (SuballocatedIntVector.java(Inlined Compiled Code))
>      at org.apache.xml.dtm.ref.DTMDefaultBase._firstch(DTMDefaultBase.java
> (Compiled Code))
>      at org.apache.xml.dtm.ref.sax2dtm.SAX2DTM.getStringValue(SAX2DTM.java
> (Compiled Code))
>      at org.apache.xpath.objects.XRTreeFrag.str(XRTreeFrag.java(Compiled 
> Code))
>      at org.apache.xpath.objects.XRTreeFragSelectWrapper.execute
> (XRTreeFragSelectWrapper.java(Compiled Code))
>      at org.apache.xpath.XPath.execute(XPath.java(Compiled Code))
>      ...
>      
> Third Symptom:
> --------------
> javax.xml.transform.TransformerException: Unknown error in XPath.
>      at org.apache.xpath.XPath.execute(XPath.java(Compiled Code))
>      at org.apache.xalan.templates.ElemWithParam.getValue(ElemWithParam.java
> (Compiled Code))
>      at org.apache.xalan.templates.ElemCallTemplate.execute
> (ElemCallTemplate.java(Compiled Code))
>      at org.apache.xalan.transformer.TransformerImpl.executeChildTemplates
> (TransformerImpl.java(Compiled Code))
>      ...
> ---------
> java.lang.NullPointerException
>      at org.apache.xpath.objects.XNodeSet.getStringFromNode(XNodeSet.java
> (Inlined Compiled Code))
>      at org.apache.xpath.objects.XNodeSet.str(XNodeSet.java(Compiled Code))
>      at org.apache.xpath.objects.XRTreeFragSelectWrapper.execute
> (XRTreeFragSelectWrapper.java(Compiled Code))
>      at org.apache.xpath.XPath.execute(XPath.java(Compiled Code))
>      ...
>      
> -------------------------------------------------------------------
> These symptoms are random.  Also, the output file is not consistent.  In 
> multithread environment, the output file seems to differ for one thread to 
> other.
> Yash

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
If you want more information on JIRA, or have a bug to report see:
   http://www.atlassian.com/software/jira


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to