[ 
https://issues.apache.org/jira/browse/JCR-1992?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12675383#action_12675383
 ] 

ppakulski edited comment on JCR-1992 at 2/20/09 7:58 AM:
---------------------------------------------------------------

Example  node exported using 1.4 : 

<sv:node sv:name="DP11" 
xmlns:mix="http://www.jcp.org/jcr/mix/1.0"; 
xmlns:nt="http://www.jcp.org/jcr/nt/1.0"; 
xmlns:fn_old="http://www.w3.org/2004/10/xpath-functions"; 
xmlns:fn="http://www.w3.org/2005/xpath-functions"; 
xmlns:mtm="com.oyster.mom.contentserver" 
xmlns:xs="http://www.w3.org/2001/XMLSchema"; 
xmlns:sv="http://www.jcp.org/jcr/sv/1.0"; 
xmlns:rep="internal" 
xmlns:jcr="http://www.jcp.org/jcr/1.0";>

node exported using 1.6 :

<sv:node
xmlns:fn="http://www.w3.org/2005/xpath-functions"; 
xmlns:fn_old="http://www.w3.org/2004/10/xpath-functions";
xmlns:mtm="com.oyster.mom.contentserver" 
xmlns:xs="http://www.w3.org/2001/XMLSchema"; 
xmlns:jcr="http://www.jcp.org/jcr/1.0"; 
xmlns:mix="http://www.jcp.org/jcr/mix/1.0"; 
xmlns:sv="http://www.jcp.org/jcr/sv/1.0"; 
xmlns:rep="internal" 
xmlns:nt="http://www.jcp.org/jcr/nt/1.0"; 
sv:name="DP11"
xmlns:fn="http://www.w3.org/2005/xpath-functions"; 
xmlns:fn_old="http://www.w3.org/2004/10/xpath-functions"; 
xmlns:mtm="com.oyster.mom.contentserver" 
xmlns:xs="http://www.w3.org/2001/XMLSchema";
xmlns:jcr="http://www.jcp.org/jcr/1.0";
xmlns:mix="http://www.jcp.org/jcr/mix/1.0";
xmlns:sv="http://www.jcp.org/jcr/sv/1.0";
xmlns:rep="internal"
xmlns:nt="http://www.jcp.org/jcr/nt/1.0";>

It is causing the following exception when trying to import serialized content 
later :

Caused by: javax.jcr.InvalidSerializedDataException: XML parse error: Attribute 
"fn" bound to namespace "http://www.w3.org/2000/xmlns/"; was already specified 
for element "sv:node".: Attribute "fn" bound to namespace 
"http://www.w3.org/2000/xmlns/"; was already specified for element "sv:node".
 at 
org.apache.jackrabbit.commons.AbstractSession.importXML(AbstractSession.java:356)

      was (Author: ppakulski):
    Example : 

<sv:node sv:name="DP11" 
xmlns:mix="http://www.jcp.org/jcr/mix/1.0"; 
xmlns:nt="http://www.jcp.org/jcr/nt/1.0"; 
xmlns:fn_old="http://www.w3.org/2004/10/xpath-functions"; 
xmlns:fn="http://www.w3.org/2005/xpath-functions"; 
xmlns:mtm="com.oyster.mom.contentserver" 
xmlns:xs="http://www.w3.org/2001/XMLSchema"; 
xmlns:sv="http://www.jcp.org/jcr/sv/1.0"; 
xmlns:rep="internal" 
xmlns:jcr="http://www.jcp.org/jcr/1.0";>

It is causing the following exception when trying to import serialized content 
later :

Caused by: javax.jcr.InvalidSerializedDataException: XML parse error: Attribute 
"fn" bound to namespace "http://www.w3.org/2000/xmlns/"; was already specified 
for element "sv:node".: Attribute "fn" bound to namespace 
"http://www.w3.org/2000/xmlns/"; was already specified for element "sv:node".
 at 
org.apache.jackrabbit.commons.AbstractSession.importXML(AbstractSession.java:356)
  
> XML serialization in JRE 1.6 broken
> -----------------------------------
>
>                 Key: JCR-1992
>                 URL: https://issues.apache.org/jira/browse/JCR-1992
>             Project: Jackrabbit Content Repository
>          Issue Type: Bug
>          Components: jackrabbit-jcr-commons
>    Affects Versions: 1.5.2, 1.6.0
>            Reporter: Przemo Pakulski
>             Fix For: 1.5.3, 1.6.0
>
>
> It looks that after fixing JCR-1767, prefix mappings are added twice when 
> running export using JRE 1.6.

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

Reply via email to