[prev in list] [next in list] [prev in thread] [next in thread] 

List:       xalan-dev
Subject:    [jira] Commented: (XALANJ-2445) putDocumentInCache found reparse of
From:       "Glenn Roberts (JIRA)" <xalan-dev () xml ! apache ! org>
Date:       2008-12-15 17:05:44
Message-ID: 867209430.1229360744543.JavaMail.jira () brutus
[Download RAW message or body]


    [ https://issues.apache.org/jira/browse/XALANJ-2445?page=com.atlassian.jira.plugin \
.system.issuetabpanels:comment-tabpanel&focusedCommentId=12656662#action_12656662 ] 

Glenn Roberts commented on XALANJ-2445:
---------------------------------------

I have seen several examples of this error description in forums, most of which link \
it to the use of Xalan with ant, when a file is parsed more than once using the \
"document" function.

From my experience this problem may not be only related to the use of Xalan with Ant, \
although the catalog resolver provided may be the relevant factor.  One forum post \
gave me a clue for the workaround I needed to avoid the problem in my particular \
environment.

Environment:  XP SP2; jdk1.5.0_12; xalan 2.7.1; Oxygen Eclipse plugin 10.0.0.

My file path contained a space character (not usually a good idea), which the \
resulting error message displayed as "%20".  When I changed the files to remove the \
space character from the path the error disappeared.

I do not know whether this is the only circumstance that causes this symptom (I guess \
not) but as this bug is not likely to be fixed in the near future, somebody else may \
also need the same workaround.  They should look for any potential abnormality in the \
file path, which could have the potential to be treated inconsistently. 

> putDocumentInCache found reparse of doc
> ---------------------------------------
> 
> Key: XALANJ-2445
> URL: https://issues.apache.org/jira/browse/XALANJ-2445
> Project: XalanJ2
> Issue Type: Bug
> Security Level: No security risk; visible to anyone(Ordinary problems in Xalan \
>                 projects.  Anybody can view the issue.) 
> Components: XPath
> Affects Versions: The Latest Development Code, 2.7.1
> Environment: XP SP3, jdk1.6.0_05, xalan 2.7.1 endorsed, ant 1.7.0, xslt task
> Reporter: Guntis Ozols
> 
> org.apache.xpath.SourceTreeManager.putDocumentInCache(int, Source) throws \
> "Programmer's Error!  putDocumentInCache found reparse of doc: ..." at stylesheet \
> developers and produces incorrect results. Stylesheet developers are not interested \
> in this message and expect correct results. If this message is necessary for \
> debugging xalan, there should be assert or log statement instead. With throws \
> clause removed, stylesheet produces expected results.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: xalan-dev-unsubscribe@xml.apache.org
For additional commands, e-mail: xalan-dev-help@xml.apache.org


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic