incubator-jspwiki-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Harry Metske <harry.met...@gmail.com>
Subject Re: java.io.IOException: Improperly padded Base64 input during JCR import
Date Thu, 24 Sep 2009 20:05:07 GMT
Well,
it fails when I don't exlude attachments during export.
I excluded those and went on testing with only flat pages.
The attachments are treated as binary files and are Base64 encoded, and
decoded during import.
Looking at the XML export file I don't see anything unusual.

To reproduce you just need te create one page, and attach a file to it.

Harry

2009/9/24 Janne Jalkanen <Janne.Jalkanen@ecyrd.com>

>
> Looks exotic. Any chance you could try to pare down the XML to something
> testable?
>
> /Janne
>
>
> On Sep 24, 2009, at 22:01 , Harry Metske wrote:
>
>  Hi,
>> I'm trying to import an xml exported JSPWiki repo into a JCR repo.
>> After a few tweaks I am stuck with the following problem, anyone any hints
>> ?
>>
>> java.io.IOException: Improperly padded Base64 input.
>> at org.priha.util.Base64$InputStream.read(Base64.java:1507)
>> at org.priha.util.Base64$InputStream.read(Base64.java:1568)
>> at java.io.FilterInputStream.read(FilterInputStream.java:107)
>> at org.priha.util.FileUtil.copyContents(FileUtil.java:75)
>> at
>>
>> org.priha.core.binary.MemoryBinarySource.<init>(MemoryBinarySource.java:53)
>> at org.priha.core.values.StreamValueImpl.<init>(StreamValueImpl.java:62)
>> at
>>
>> org.priha.core.values.ValueFactoryImpl.createValue(ValueFactoryImpl.java:109)
>> at org.priha.xml.XMLImport.characters(XMLImport.java:493)
>> at
>>
>> com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.characters(AbstractSAXParser.java:541)
>> at
>>
>> com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDocumentFragmentScannerImpl.java:439)
>> at
>>
>> com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:810)
>> at
>>
>> com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:740)
>> at
>>
>> com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(XMLParser.java:110)
>> at
>>
>> com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(AbstractSAXParser.java:1208)
>> at
>>
>> com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl$JAXPSAXParser.parse(SAXParserImpl.java:525)
>> at javax.xml.parsers.SAXParser.parse(SAXParser.java:392)
>> at javax.xml.parsers.SAXParser.parse(SAXParser.java:195)
>> at org.priha.xml.XMLImport.doImport(XMLImport.java:75)
>> at org.priha.core.WorkspaceImpl.importXML(WorkspaceImpl.java:423)
>> at org.apache.wiki.util.JCRImport.main(JCRImport.java:67)
>> javax.jcr.ValueFormatException: Cannot construct a binary source:
>> Improperly
>> padded Base64 input.
>> at org.priha.core.values.StreamValueImpl.<init>(StreamValueImpl.java:67)
>> at
>>
>> org.priha.core.values.ValueFactoryImpl.createValue(ValueFactoryImpl.java:109)
>> at org.priha.xml.XMLImport.characters(XMLImport.java:493)
>> at
>>
>> com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.characters(AbstractSAXParser.java:541)
>> at
>>
>> com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDocumentFragmentScannerImpl.java:439)
>> at
>>
>> com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:810)
>> at
>>
>> com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:740)
>> at
>>
>> com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(XMLParser.java:110)
>> at
>>
>> com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(AbstractSAXParser.java:1208)
>> at
>>
>> com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl$JAXPSAXParser.parse(SAXParserImpl.java:525)
>> at javax.xml.parsers.SAXParser.parse(SAXParser.java:392)
>> at javax.xml.parsers.SAXParser.parse(SAXParser.java:195)
>> at org.priha.xml.XMLImport.doImport(XMLImport.java:75)
>> at org.priha.core.WorkspaceImpl.importXML(WorkspaceImpl.java:423)
>> at org.apache.wiki.util.JCRImport.main(JCRImport.java:67)
>>
>>
>> regards,
>> Harry
>>
>
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message