Menu

#329 Command line migrate of a directory stops on first pres file

open
margotc
None
5
2012-03-16
2011-06-23
No

Testing in Testing Branch (Date: Wed Jun 22 14:38:33 2011 +1000)

The command line version of Xena stops processing a directory of files when the first non-migrated file format is encountered.

For example:

java -cp xena.jar:plugins/audio.jar au.gov.naa.digipres.xena.core.XenaMain -f /home/al/DocoSamples/office_docs_with_embedded_images/* -p plugins/ -o /home/al/Xena/Destination/ -m
plugins
/home/al/DocoSamples/office_docs_with_embedded_images/A_testPowerPointPresentationYellow.ppt OK
/home/al/DocoSamples/office_docs_with_embedded_images/Embedded image.odtException in thread "main" au.gov.naa.digipres.xena.kernel.XenaException: File does not get converted, copied without modification.
at au.gov.naa.digipres.xena.kernel.normalise.NormaliserManager.normalise(NormaliserManager.java:1202)
at au.gov.naa.digipres.xena.core.Xena.normalise(Xena.java:742)
at au.gov.naa.digipres.xena.core.Xena.normalise(Xena.java:610)
at au.gov.naa.digipres.xena.core.XenaMain.processNormalisation(XenaMain.java:150)
at au.gov.naa.digipres.xena.core.XenaMain.main(XenaMain.java:83)

It should really work as a warning and continue to process the remaining files in the directory.

Discussion

  • Jeff

    Jeff - 2011-06-28

    Error handling needs to be added to the commandline process. This is not strictly a migration only issue.

     
  • Jeff

    Jeff - 2011-06-30
    • assigned_to: smeehee --> acunliffe
     
  • Jeff

    Jeff - 2011-06-30

    Error handling for the migration only processing has been changed. This should allow the processing via the command line to continue to the next file rather than stopping at the first error. Fix made in the Testing branch, and tagged with the bug id.
    Note that this does not address the overall issue of error handling for the command line processing, but rather offers a way for the migration code segment to work until the error handling for all processing is addressed.

     
  • Allan Cunliffe

    Allan Cunliffe - 2011-07-05

    Tested in Xena Testing Branch (Date: Thu Jun 30 10:30:11 2011 +1000)

    Tested migration on the command line with a set of files containing files that will be migrated and others that won't. Xena went through all files, indicating failures where relevant.

    I also tested normalisation. I ran a set of unsupported files through Xena GUI. All files wet through (errors indicated). I ran the same set through via the command line but it failed part way through with the following command line error:

    home/al/Documents/Technical_Doco/DocoSamples/unsupportedfiles/Business Diagram 1.vsdException in thread "main" au.gov.naa.digipres.xena.kernel.XenaException: org.xml.sax.SAXException: URL seems to be an unsupported one.
    com.sun.star.lang.IllegalArgumentException: URL seems to be an unsupported one.
    at au.gov.naa.digipres.xena.kernel.normalise.NormaliserManager.parse(NormaliserManager.java:885)
    at au.gov.naa.digipres.xena.kernel.normalise.NormaliserManager.normalise(NormaliserManager.java:1260)
    at au.gov.naa.digipres.xena.core.Xena.normalise(Xena.java:742)
    at au.gov.naa.digipres.xena.core.Xena.normalise(Xena.java:610)
    at au.gov.naa.digipres.xena.core.XenaMain.processNormalisation(XenaMain.java:150)
    at au.gov.naa.digipres.xena.core.XenaMain.main(XenaMain.java:83)
    Caused by: org.xml.sax.SAXException: URL seems to be an unsupported one.
    com.sun.star.lang.IllegalArgumentException: URL seems to be an unsupported one.
    at au.gov.naa.digipres.xena.plugin.office.OpenOfficeConverter.convertInput(OpenOfficeConverter.java:205)
    at au.gov.naa.digipres.xena.plugin.office.OfficeToXenaOooNormaliser.parse(OfficeToXenaOooNormaliser.java:94)
    at au.gov.naa.digipres.xena.kernel.normalise.NormaliserManager.parse(NormaliserManager.java:876)
    ... 5 more
    Caused by: com.sun.star.lang.IllegalArgumentException: URL seems to be an unsupported one.
    at com.sun.star.lib.uno.environments.remote.Job.remoteUnoRequestRaisedException(Job.java:182)
    at com.sun.star.lib.uno.environments.remote.Job.execute(Job.java:148)
    at com.sun.star.lib.uno.environments.remote.JobQueue.enter(JobQueue.java:344)
    at com.sun.star.lib.uno.environments.remote.JobQueue.enter(JobQueue.java:313)
    at com.sun.star.lib.uno.environments.remote.JavaThreadPool.enter(JavaThreadPool.java:101)
    at com.sun.star.lib.uno.bridges.java_remote.java_remote_bridge.sendRequest(java_remote_bridge.java:652)
    at com.sun.star.lib.uno.bridges.java_remote.ProxyFactory$Handler.request(ProxyFactory.java:154)
    at com.sun.star.lib.uno.bridges.java_remote.ProxyFactory$Handler.invoke(ProxyFactory.java:136)
    at $Proxy2.loadComponentFromURL(Unknown Source)
    at au.gov.naa.digipres.xena.plugin.office.OpenOfficeConverter.loadDocument(OpenOfficeConverter.java:97)
    at au.gov.naa.digipres.xena.plugin.office.OpenOfficeConverter.loadDocument(OpenOfficeConverter.java:73)
    at au.gov.naa.digipres.xena.plugin.office.OpenOfficeConverter.convertInput(OpenOfficeConverter.java:161)
    ... 7 more

    I've attached the above file.

     
  • Allan Cunliffe

    Allan Cunliffe - 2011-07-05
     
  • margotc

    margotc - 2012-03-16
    • assigned_to: acunliffe --> margotc
     

Log in to post a comment.