Hand build OOo documents need repair function authorisation.

Bug #670594 reported by Mike Mestnik
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
jodconverter-cli (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

My program takes an unpacked odt file and zips it adding a comment. I'm certian the comment is not the problem, the document needs to be repaired regardless. It's common practice for me to well comment all my zip files. To open the resulting document in OOo you must click "Yes", OOo should repair the file.

jodconverter has the following error:
Nov 3, 2010 2:36:41 PM com.artofsolving.jodconverter.openoffice.connection.AbstractOpenOfficeConnection connect
INFO: connected
Nov 3, 2010 2:36:41 PM com.artofsolving.jodconverter.openoffice.connection.AbstractOpenOfficeConnection disposing
INFO: disconnected
Exception in thread "main" com.artofsolving.jodconverter.openoffice.connection.OpenOfficeException: conversion failed: could not load input document
 at com.artofsolving.jodconverter.openoffice.converter.OpenOfficeDocumentConverter.loadAndExport(OpenOfficeDocumentConverter.java:131)
 at com.artofsolving.jodconverter.openoffice.converter.OpenOfficeDocumentConverter.convertInternal(OpenOfficeDocumentConverter.java:120)
 at com.artofsolving.jodconverter.openoffice.converter.AbstractOpenOfficeDocumentConverter.convert(AbstractOpenOfficeDocumentConverter.java:104)
 at com.artofsolving.jodconverter.openoffice.converter.AbstractOpenOfficeDocumentConverter.convert(AbstractOpenOfficeDocumentConverter.java:74)
 at com.artofsolving.jodconverter.openoffice.converter.AbstractOpenOfficeDocumentConverter.convert(AbstractOpenOfficeDocumentConverter.java:70)
 at com.artofsolving.jodconverter.cli.ConvertDocument.convertOne(ConvertDocument.java:154)
 at com.artofsolving.jodconverter.cli.ConvertDocument.main(ConvertDocument.java:133)
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:177)
 at com.sun.star.lib.uno.environments.remote.Job.execute(Job.java:143)
 at com.sun.star.lib.uno.environments.remote.JobQueue.enter(JobQueue.java:335)
 at com.sun.star.lib.uno.environments.remote.JobQueue.enter(JobQueue.java:304)
 at com.sun.star.lib.uno.environments.remote.JavaThreadPool.enter(JavaThreadPool.java:91)
 at com.sun.star.lib.uno.bridges.java_remote.java_remote_bridge.sendRequest(java_remote_bridge.java:639)
 at com.sun.star.lib.uno.bridges.java_remote.ProxyFactory$Handler.request(ProxyFactory.java:151)
 at com.sun.star.lib.uno.bridges.java_remote.ProxyFactory$Handler.invoke(ProxyFactory.java:133)
 at $Proxy5.loadComponentFromURL(Unknown Source)
 at com.artofsolving.jodconverter.openoffice.converter.OpenOfficeDocumentConverter.loadDocument(OpenOfficeDocumentConverter.java:150)
 at com.artofsolving.jodconverter.openoffice.converter.OpenOfficeDocumentConverter.loadAndExport(OpenOfficeDocumentConverter.java:127)
 ... 6 more

Here is my program for referance:
#!/usr/bin/make -Bf
# Usage:
# make all
export MEID=$$Id: Makefile 196 2010-11-03 19:32:49Z mmestnik $$
# This file contains the commands for building the documentation
# odt files
#
# $Id: Makefile 196 2010-11-03 19:32:49Z mmestnik $

FINDPRUNE=-name .svn -prune -o -name \*\ \* -prune -o \
 -name \*\$$\* -prune -o -name \*\"\* -prune -o \
 -name \*\'\* -prune -o

all: $(addsuffix .odt, \
 $(shell basename "$$(pwd)"))

clean:
 @rm -f *.odt

.PHONY: clean all

.SECONDEXPANSION:
%.odt: content.xml $$(shell find data $(FINDPRUNE) -print)
 @rm -f $@; { \
 echo 'Created by: $(MEID).'; \
 date; \
 echo -n 'Hostname: '; hostname; \
 echo -n 'User: '; whoami; \
 svn info; \
 svn st; \
 svn diff; \
 } | ( cd data; zip --temp-path ../.. -1 -r -q -z ../$@ .; )
 @zip --temp-path .. -1 -q $@ content.xml

%.pdf: $(addsuffix .odt, \
        $(shell basename "$$(pwd)"))
 @soffice -headless -accept="socket,port=8100;urp;"
 @jodconverter $< $@

ProblemType: Bug
DistroRelease: Ubuntu 10.10
Package: jodconverter 2.2.2-4
ProcVersionSignature: Ubuntu 2.6.35-22.35-generic-pae 2.6.35.4
Uname: Linux 2.6.35-22-generic-pae i686
Architecture: i386
Date: Wed Nov 3 14:39:31 2010
InstallationMedia: Ubuntu 10.04 LTS "Lucid Lynx" - Release i386 (20100429)
PackageArchitecture: all
ProcEnviron:
 LANG=en_US.utf8
 SHELL=/bin/bash
SourcePackage: jodconverter-cli

Revision history for this message
Mike Mestnik (cheako) wrote :
Revision history for this message
Mike Mestnik (cheako) wrote :

No movement on this? What's the point in having an XML/ZIP open format if one can't use XML and ZIP?

Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in jodconverter-cli (Ubuntu):
status: New → Confirmed
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.