Re: [xwiki-users] office importer vs graphics
On 09/12/2009, at 4:35 PM, Asiri Rathnayake wrote: Hi Peter, i will send you the sample document directly so as not to spam the alias. Thanks. I received your file and tested it both on XE 2.0.3 and XE snapshot and it worked without issue. However, I must ask you to do one more experiment to nail down this issue. Sorry about having to ask for this much but this is because I cannot locally reproduce your issue. This is what you have to do: ...i haven't tried these steps yet, but i think i've uncovered the problem: i transferred the VMDK to a different computer re-created the VM. it used the default settings, giving the system much more RAM (1GB vs 600MB) i was able to import graphics immediately. nothing else was changed. p ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
Re: [xwiki-users] office importer vs graphics
Asiri Rathnayake wrote: The images embedded inside Office document, how large are they? (very high-resolution images?) in my sample case - not large at all (whole document is 125KB) - If they are quite large, you might want to increase the time-out for officeimporter operations (from xwiki.properties file). timeout is set to 5 minutes (30ms) - Now, if they are not that large (if the most trivial images also fail), then it'll be great if you can provide us a sample failing document i will send you the sample document directly so as not to spam the alias. Also, there is a small test you can perform if you have access to a GUI in your computer: - Open the failing document in OpenOffice. - Save the document as HTML into some place. Does above operation work without issues? And what about images, are they properly saved? and what type of images are they ? (The last question is because OpenOffice has a problem with EMF/WMF image formats on windows and linux boxes). worked without issues. the images in this case are PNG and GIF thanks again for your help regards p ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
Re: [xwiki-users] office importer vs graphics
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 ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
[xwiki-users] upgrading standalone xwiki?
hi folks, can anyone point me to a step-by-step example of upgrading a standalone xwiki? replacing the contents of ${XWIKI_HOME}/webapps/xwiki/ with xwiki-enterprise-web-2.1-rc-1.war copying back the hibernate.cfg.xml and xwiki.cfg has resulted in: Problem accessing /xwiki/bin/view/Main/. Reason: Error number 3 in 0: Could not initialize main XWiki context Wrapped Exception: Error number 3001 in 3: Cannot load class com.xpn.xwiki.store.migration.hibernate.XWikiHibernateMigrationManager from param xwiki.store.migration.manager.class Wrapped Exception: Error number 0 in 3: Exception while hibernate execute Wrapped Exception: Could not parse mapping document from resource xwiki.hbm.xml i'm upgrading 2.0.3 to 2.1RC1 sorry if this is covered in a FAQ - the upgrade Xwiki Core from http://platform.xwiki.org/xwiki/bin/view/AdminGuide/Installation#HUpgradingXWikiCore isn't very explicit any suggestions? regards p -- Peter Lees ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
Re: [xwiki-users] office importer vs graphics
Asiri Rathnayake wrote: Hi, On Fri, Nov 27, 2009 at 11:45 AM, Peter Lees p...@yseda.com wrote: hi folks i am having lots of trouble importing documents with graphics in them. even a doc with 1 or 2 small graphics is running past the timeout period (even though i've set timeout to 300,000 msec - 5min). system is: - xwiki 2.0.3 standalone - openoffice 3.1 - centos 5.4 linux on vmware - java heap set to 300MB (JAVA_OPTS=-Xmx300m) is this a known problem and/or can anyone suggest a fix? is office importer even supposed to be able to handle graphics? Yup, office importer can handle graphics without issues. I think this has something to do with your particular operating environment, is this a desktop system or a server? I suspect this is something with your X server configuration but I'm not sure. I will check 2.0.3 myself to see if there have been a regression. Hello all With X turned on (runlevel 5 on the linux box) there's no improvement in the import of documents with images (still times out) I start xwiki automatically from an init script - so it doesn't pick up a DISPLAY environment variable. Can anyone confirm whether they can import documents with images with: - linux 2.6(.18) - openoffice.org 3.1.1 - xwiki (standalone) 2.0.3 ? regards p ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
Re: [xwiki-users] office importer vs graphics
Asiri Rathnayake wrote: Hi, On Fri, Nov 27, 2009 at 11:45 AM, Peter Lees p...@yseda.com wrote: hi folks i am having lots of trouble importing documents with graphics in them. even a doc with 1 or 2 small graphics is running past the timeout period (even though i've set timeout to 300,000 msec - 5min). system is: - xwiki 2.0.3 standalone - openoffice 3.1 - centos 5.4 linux on vmware - java heap set to 300MB (JAVA_OPTS=-Xmx300m) is this a known problem and/or can anyone suggest a fix? is office importer even supposed to be able to handle graphics? Yup, office importer can handle graphics without issues. I think this has something to do with your particular operating environment, is this a desktop system or a server? I suspect this is something with your X server configuration but I'm not sure. I will check 2.0.3 myself to see if there have been a regression. thanks for the response the xwiki is running on linux (centos 5.4) which is running in a VM guest with VMware server running on windows xp. i'm accessing the xwiki via a web browser on the windows system the linux system is at runlevel 3 - multiuser server, no gui login. Xwindows, etc, is installed however. the openoffice.org instance is running internally any thoughts on what can be done would be appreciated. regards p ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
[xwiki-users] office importer vs graphics
hi folks i am having lots of trouble importing documents with graphics in them. even a doc with 1 or 2 small graphics is running past the timeout period (even though i've set timeout to 300,000 msec - 5min). system is: - xwiki 2.0.3 standalone - openoffice 3.1 - centos 5.4 linux on vmware - java heap set to 300MB (JAVA_OPTS=-Xmx300m) is this a known problem and/or can anyone suggest a fix? is office importer even supposed to be able to handle graphics? p ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users