I'm trying to export a website in order to move it to the production
environment. Each time there is an attachement somewhere exorcist stops to
an ArrayIndexOutOfBoundsException.

I'm using exorcist exorcist-1.0-beta-3 and java 1.4.2. Exorcist was compiled
from source by using 'maven dist'. The setup I'm using is below:


<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE beans PUBLIC "-//SPRING//DTD BEAN//EN"
                "http://www.springframework.org/dtd/spring-beans.dtd";>
<beans>
  <bean id="exporter" class="net.sf.exorcist.midgard.MidgardExporter">
    <property name="sitegroup" value="2"/>
    <property name="filepath" value="/var/lib/midgard/blobs/midgard/"/>
    <property name="database"
value="jdbc:mysql://127.0.0.1/midgard?useUnicode=true&#38;characterEncoding=
UTF-8"/>
    <property name="username" value="midgard"/>
    <property name="password" value="midgard"/>
  </bean>

  <bean id="converter" class="net.sf.exorcist.core.NoOpProcessor"/>

  <bean id="importer" class="net.sf.exorcist.xml.XmlImporter">
    <property name="xmlFile" value="exorcist_dump.xml"/>
  </bean>
</beans>


...and the exception is:


3.1.2006 23:59:47 net.sf.exorcist.midgard.MidgardExporter exportParameters
INFO: Exporting parameter 93bdc090c32c1a50df78895dc3396b76
3.1.2006 23:59:47 net.sf.exorcist.midgard.MidgardExporter exportParameters
INFO: Exporting parameter f50aab338a31349cb0e867c3fa73c9ba
3.1.2006 23:59:47 net.sf.exorcist.midgard.MidgardExporter exportParameters
INFO: Exporting parameter 2ec328ff091e6b5fec909e8f29302437
Exception in thread "main" java.lang.ArrayIndexOutOfBoundsException: -2
        at net.sf.exorcist.api.HashStream.close(HashStream.java:122)
        at
net.sf.exorcist.api.AttachmentStream.close(AttachmentStream.java:105)
        at
net.sf.exorcist.tree.FileContentTree$1.close(FileContentTree.java:117)
        at
net.sf.exorcist.tree.StreamContentTree.setAttachmentStream(StreamContentTree
.java:238)
        at
net.sf.exorcist.midgard.MidgardExporter.exportAttachments(MidgardExporter.ja
va:392)
        at
net.sf.exorcist.midgard.MidgardExporter.exportAll(MidgardExporter.java:234)
        at
net.sf.exorcist.midgard.MidgardExporter.processContent(MidgardExporter.java:
159)
        at net.sf.exorcist.core.Exorcist.main(Exorcist.java:52)


Does anyone know a good workaround for this? 

Is it possible that this would have something to do with jcr-1.0.jar because
I just downloaded a one that I could find with google and placed it into my
Maven repository.

Seppo


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to