thanks for all the responses to this.
to be clear, importing the document /without/ graphics works as expected.
these are MS word for windows (2003) documents; the graphics are
embedded (not linked to external files)
when timing out, no data is produced.
Asiri Rathnayake wrote:
Few questions for you:
1. Is openoffice server listening on port 8100? Can XE connect to that port?
yes:
# telnet localhost 8100
Trying 127.0.0.1...
Connected to localhost.localdomain (127.0.0.1).
Escape character is '^]'.
`ø'com.sun.star.bridge.XProtocolPropertiesUrpProtocolProperties""äX{É[ÐABKt^]
telnet> close
Administer Xwiki -> OpenOffice Server : Server state = Connected
2. What does the XE log tell you when this problem
occurs.
# tail -f xwiki.log
2009-12-07 11:44:16,060
[
http://10.128.48.247:8080/xwiki/bin/view/XWiki/OfficeImporterResults]
ERROR rterVelocityContextInitializer - task did not complete within timeout
org.xwiki.officeimporter.OfficeImporterException: task did not complete
within timeout
at
org.xwiki.officeimporter.internal.DefaultOfficeImporter.importStream(DefaultOfficeImporter.java:175)
at
org.xwiki.officeimporter.internal.OfficeImporterVelocityBridge.importDocument(OfficeImporterVelocityBridge.java:94)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:616)
at
org.apache.velocity.util.introspection.UberspectImpl$VelMethodImpl.doInvoke(UberspectImpl.java:389)
at
org.apache.velocity.util.introspection.UberspectImpl$VelMethodImpl.invoke(UberspectImpl.java:378)
at
org.apache.velocity.runtime.parser.node.ASTMethod.execute(ASTMethod.java:270)
[.
.
.]
Caused by: net.sf.jodconverter.office.OfficeException: task did not
complete within timeout
at
net.sf.jodconverter.office.ManagedProcessOfficeManager.execute(ManagedProcessOfficeManager.java:93)
at
net.sf.jodconverter.OfficeDocumentConverter.convert(OfficeDocumentConverter.java:71)
at
org.xwiki.officeimporter.internal.openoffice.DefaultOpenOfficeDocumentConverter.convert(DefaultOpenOfficeDocumentConverter.java:99)
at
org.xwiki.officeimporter.internal.DefaultOfficeImporter.importStream(DefaultOfficeImporter.java:151)
... 110 more
Caused by: java.util.concurrent.TimeoutException
at
java.util.concurrent.FutureTask$Sync.innerGet(FutureTask.java:258)
at java.util.concurrent.FutureTask.get(FutureTask.java:119)
at
net.sf.jodconverter.office.ManagedProcessOfficeManager.execute(ManagedProcessOfficeManager.java:90)
... 113 more
Another possibility is that there might be a problem
with your openoffice
profile. Usually this should not happen because jodconverter automatically
creates a profile. Just in case, in xwiki.properties file try uncommenting
openoffice.profile option and point it to a valid (initialized) profile
directory (like /home/user/.openoffice.org/3).
# grep profilePath /var/xwiki/webapps/xwiki/WEB-INF/xwiki.properties
openoffice.profilePath=/var/xwiki/.openoffice.org/3
# ls -l /var/xwiki/.openoffice.org/3
total 8
drwxr-xr-x 17 xwiki xwiki 4096 Nov 25 18:01 user
# ls -l /var/xwiki/.openoffice.org/3/user/
total 128
drwxr-xr-x 2 xwiki xwiki 4096 Nov 25 18:00 autocorr
drwxr-xr-x 2 xwiki xwiki 4096 Nov 25 18:00 autotext
drwxr-xr-x 2 xwiki xwiki 4096 Nov 25 18:00 backup
drwxr-xr-x 3 xwiki xwiki 4096 Nov 25 18:00 basic
drwxr-xr-x 3 xwiki xwiki 4096 Nov 25 18:01 config
drwxr-xr-x 3 xwiki xwiki 4096 Nov 25 18:00 database
drwxr-xr-x 2 xwiki xwiki 4096 Nov 25 18:00 gallery
drwxr-xr-x 4 xwiki xwiki 4096 Nov 25 18:00 psprint
-rw-r--r-- 1 xwiki xwiki 1294 Nov 25 18:01 registration.xml
drwxr-xr-x 4 xwiki xwiki 4096 Nov 25 18:00 registry
drwxr-xr-x 2 xwiki xwiki 4096 Nov 25 18:00 Scripts
drwxr-xr-x 2 xwiki xwiki 4096 Nov 25 18:00 store
drwxr-xr-x 3 xwiki xwiki 4096 Nov 25 18:01 temp
drwxr-xr-x 2 xwiki xwiki 4096 Nov 25 18:00 template
drwxr-xr-x 3 xwiki xwiki 4096 Nov 25 18:00 uno_packages
drwxr-xr-x 2 xwiki xwiki 4096 Nov 25 18:00 wordbook
this directory was created by starting
openoffice.org on the gui one
time as the xwiki user.
please let me know if there are other files/settings i need to check
thanks & regards
p
--
Peter Lees