[ 
https://issues.apache.org/jira/browse/JCRVLT-108?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15120349#comment-15120349
 ] 

Tobias Bocanegra commented on JCRVLT-108:
-----------------------------------------

btw: the full stack trace is:
{noformat}
Caused by: java.lang.IllegalStateException: String is too long: 
2318847178994591412
        at 
org.apache.jackrabbit.oak.plugins.segment.Segment.loadString(Segment.java:387)
        at 
org.apache.jackrabbit.oak.plugins.segment.Segment.readString(Segment.java:354)
        at 
org.apache.jackrabbit.oak.plugins.segment.Segment.readString(Segment.java:348)
        at 
org.apache.jackrabbit.oak.plugins.segment.SegmentPropertyState.getValue(SegmentPropertyState.java:174)
        at 
org.apache.jackrabbit.oak.plugins.segment.SegmentPropertyState.getValue(SegmentPropertyState.java:165)
        at 
org.apache.jackrabbit.oak.plugins.value.ValueImpl.getValue(ValueImpl.java:381)
        at 
org.apache.jackrabbit.oak.plugins.value.ValueImpl.getOakString(ValueImpl.java:144)
        at 
org.apache.jackrabbit.oak.plugins.value.ValueImpl.getString(ValueImpl.java:287)
        at 
org.apache.jackrabbit.vault.util.DocViewProperty.apply(DocViewProperty.java:406)
        at 
org.apache.jackrabbit.vault.fs.impl.io.DocViewSAXImporter.addNode(DocViewSAXImporter.java:980)
        at 
org.apache.jackrabbit.vault.fs.impl.io.DocViewSAXImporter.startElement(DocViewSAXImporter.java:638)
{noformat}


> Import of binaries fail because they cannot be converted to strings
> -------------------------------------------------------------------
>
>                 Key: JCRVLT-108
>                 URL: https://issues.apache.org/jira/browse/JCRVLT-108
>             Project: Jackrabbit FileVault
>          Issue Type: Bug
>    Affects Versions: 3.1.26
>            Reporter: Marius Petria
>         Attachments: JCRVLT-108.2.diff, JCRVLT-108.diff
>
>
> Importing a binary that already exists will try to compare the existing 
> binary with the current value by converting it to String [1]. That fails with 
> {noformat}
> (org.xml.sax.SAXException: String is too long: 2318847178994591412 
> java.lang.IllegalStateException: String is too long: 2318847178994591412)
> {noformat}
> [1] 
> https://github.com/apache/jackrabbit-filevault/blob/e61e618796998175dde476ed8836fecd3ce2913b/vault-core/src/main/java/org/apache/jackrabbit/vault/util/DocViewProperty.java#L406



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to