Uploaded image for project: 'XalanJ2'
  1. XalanJ2
  2. XALANJ-987

NPE at XRTreeFrag.str(XRTreeFrag.java:280)

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Resolution: Fixed
    • 2.3Dx
    • None
    • XPath
    • None
    • Operating System: Windows NT/2K
      Platform: PC
    • 8657

    Description

      2.3.1

      I am using a cached transformer, as well as a cached menu(xml) document for a
      very common transformation (menu). The transform works well 99.9% of the time,
      but occasionally fails. After failure, without restarting the VM, try again
      and it works! There is not more than one xml, or transformer in cache (I am
      simply using a private member field.

      I am unable to recreate this error with any precision, but it does usually
      happen after the VM has been running for more than 30 minutes.

      at org.apache.xpath.objects.XRTreeFrag.str(XRTreeFrag.java:280)
      at org.apache.xpath.functions.FuncContains.execute(FuncContains.java:86)
      at org.apache.xpath.Expression.executeCharsToContentHandler
      (Expression.java:301)
      at org.apache.xalan.templates.ElemValueOf.execute(ElemValueOf.java:319)
      at org.apache.xalan.transformer.TransformerImpl.executeChildTemplates
      (TransformerImpl.java:2243)
      at org.apache.xalan.templates.ElemTemplate.execute(ElemTemplate.java:432)
      at org.apache.xalan.templates.ElemCallTemplate.execute
      (ElemCallTemplate.java:279)
      at org.apache.xalan.transformer.TransformerImpl.executeChildTemplates
      (TransformerImpl.java:2243)
      at org.apache.xalan.transformer.TransformerImpl.transformToRTF
      (TransformerImpl.java:1773)
      at org.apache.xalan.templates.ElemVariable.getValue(ElemVariable.java:327)
      at org.apache.xalan.templates.ElemVariable.execute(ElemVariable.java:282)
      at org.apache.xalan.templates.ElemForEach.transformSelectedNodes
      (ElemForEach.java:438)
      at org.apache.xalan.templates.ElemForEach.execute(ElemForEach.java:299)
      at org.apache.xalan.transformer.TransformerImpl.executeChildTemplates
      (TransformerImpl.java:2243)
      at org.apache.xalan.templates.ElemLiteralResult.execute
      (ElemLiteralResult.java:710)
      at org.apache.xalan.transformer.TransformerImpl.executeChildTemplates
      (TransformerImpl.java:2243)
      at org.apache.xalan.templates.ElemLiteralResult.execute
      (ElemLiteralResult.java:710)
      at org.apache.xalan.transformer.TransformerImpl.executeChildTemplates
      (TransformerImpl.java:2243)
      at org.apache.xalan.templates.ElemLiteralResult.execute
      (ElemLiteralResult.java:710)
      at org.apache.xalan.transformer.TransformerImpl.executeChildTemplates
      (TransformerImpl.java:2243)
      at org.apache.xalan.templates.ElemLiteralResult.execute
      (ElemLiteralResult.java:710)
      at org.apache.xalan.transformer.TransformerImpl.executeChildTemplates
      (TransformerImpl.java:2243)
      at org.apache.xalan.templates.ElemLiteralResult.execute
      (ElemLiteralResult.java:710)
      at org.apache.xalan.transformer.TransformerImpl.executeChildTemplates
      (TransformerImpl.java:2243)
      at org.apache.xalan.transformer.TransformerImpl.applyTemplateToNode
      (TransformerImpl.java:2069)
      at org.apache.xalan.transformer.TransformerImpl.transformNode
      (TransformerImpl.java:1171)
      ... 49 more

      Attachments

        Activity

          People

            Unassigned Unassigned
            kevin.ross@bredex.com Kevin Ross
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: