jbwyatt4 / openmeetings

Automatically exported from code.google.com/p/openmeetings
1 stars 0 forks source link

Cannot upload ppt #1071

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
i have just test the latest version r2776 under Ubuntu 8.04 64bit Server, 
there is still the problem:
cannot upload ppt file.

i have already searched a little, and already install swftools imagemagick 
openoffice, and have configured the tool path right.

here is the error:
=====================================================================
Name: exitValue
Value: 1
Name: command
Value: [java, -
cp, "/opt/openmeetings_r2776/./webapps/openmeetings/jod/commons-cli-
1.2.jar" -cp "/opt/openmeetings_r2776/./webapps/openmeetings/jod/commons-
io-1.4.jar" -
cp "/opt/openmeetings_r2776/./webapps/openmeetings/jod/jodconverter-
2.2.2.jar" -
cp "/opt/openmeetings_r2776/./webapps/openmeetings/jod/jodconverter-cli-
2.2.2.jar" -cp "/opt/openmeetings_r2776/./webapps/openmeetings/jod/juh-
3.0.1.jar" -cp "/opt/openmeetings_r2776/./webapps/openmeetings/jod/jurt-
3.0.1.jar" -cp "/opt/openmeetings_r2776/./webapps/openmeetings/jod/ridl-
3.0.1.jar" -cp "/opt/openmeetings_r2776/./webapps/openmeetings/jod/slf4j-
api-1.5.6.jar" -
cp "/opt/openmeetings_r2776/./webapps/openmeetings/jod/slf4j-jdk14-
1.5.6.jar" -cp "/opt/openmeetings_r2776/./webapps/openmeetings/jod/unoil-
3.0.1.jar" -cp "/opt/openmeetings_r2776/./webapps/openmeetings/jod/xstream-
1.3.1.jar", -
jar, /opt/openmeetings_r2776/./webapps/openmeetings/jod/jodconverter-cli-
2.2.2.jar, /opt/openmeetings_r2776/./webapps/openmeetings/uploadtemp/3/new1
.ppt, /opt/openmeetings_r2776/./webapps/openmeetings/upload/3/new1/new1.pdf
]
Name: error
Value: Jan 6, 2010 4:52:50 PM 
com.artofsolving.jodconverter.openoffice.connection.AbstractOpenOfficeConne
ction connectINFO: connectedJan 6, 2010 4:52:50 PM 
com.artofsolving.jodconverter.openoffice.connection.AbstractOpenOfficeConne
ction disposingINFO: disconnectedException in thread "main" 
com.artofsolving.jodconverter.openoffice.connection.OpenOfficeException: 
conversion failed: could not load input document    at 
com.artofsolving.jodconverter.openoffice.converter.OpenOfficeDocumentConver
ter.loadAndExport(OpenOfficeDocumentConverter.java:131) at 
com.artofsolving.jodconverter.openoffice.converter.OpenOfficeDocumentConver
ter.convertInternal(OpenOfficeDocumentConverter.java:120)   at 
com.artofsolving.jodconverter.openoffice.converter.AbstractOpenOfficeDocume
ntConverter.convert(AbstractOpenOfficeDocumentConverter.java:104)   at 
com.artofsolving.jodconverter.openoffice.converter.AbstractOpenOfficeDocume
ntConverter.convert(AbstractOpenOfficeDocumentConverter.java:74)    at 
com.artofsolving.jodconverter.openoffice.converter.AbstractOpenOfficeDocume
ntConverter.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.remoteUnoRequestRaisedExceptio
n(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 $Proxy5.loadComponentFromURL(Unknown Source) at 
com.artofsolving.jodconverter.openoffice.converter.OpenOfficeDocumentConver
ter.loadDocument(OpenOfficeDocumentConverter.java:150)  at 
com.artofsolving.jodconverter.openoffice.converter.OpenOfficeDocumentConver
ter.loadAndExport(OpenOfficeDocumentConverter.java:127) ... 6 more
Name: process
Value: doJodConvert
Name: exitValue
Value: 0
Name: process
Value: generateXMLDocument
Name: exitValue
Value: 1
Name: command
Value: [/usr/bin/convert, -thumbnail, 
80, /opt/openmeetings_r2776/./webapps/openmeetings/upload/3/new1/new1.pdf, 
/opt/openmeetings_r2776/./webapps/openmeetings/upload/3/new1/_thumb_page-%
04d.jpg]
Name: error
Value: convert: unable to open image 
`/opt/openmeetings_r2776/./webapps/openmeetings/upload/3/new1/new1.pdf': 
No such file or directory.convert: missing an image filename 
`/opt/openmeetings_r2776/./webapps/openmeetings/upload/3/new1/_thumb_page-%
04d.jpg'.
Name: process
Value: generateBatchThumb
Name: exitValue
Value: 0
Name: process
Value: processPDF
Name: exitValue
Value: 1
Name: command
Value: [/usr/bin/pdf2swf, -s, 
insertstop, /opt/openmeetings_r2776/./webapps/openmeetings/upload/3/new1/ne
w1.pdf, /opt/openmeetings_r2776/./webapps/openmeetings/upload/3/new1/new1.s
wf]
Name: error
Value: Error: Couldn't open 
file '/opt/openmeetings_r2776/./webapps/openmeetings/upload/3/new1/new1.pdf
'
Name: process
Value: generateSwf
=====================================================================
has anybody any idea?

Original issue reported on code.google.com by walter.w...@gmail.com on 6 Jan 2010 at 9:04

GoogleCodeExporter commented 9 years ago
just a question....have you installed ghostscript ?

Original comment by jyothivasnair on 6 Jan 2010 at 9:17

GoogleCodeExporter commented 9 years ago
yes i have checked again, there was ghostscript installed.
i think it's not the problem of ghostscript, because the convertion of ppt to 
swf
should be ppt -> pdf -> swf. And the step from ppt to pdf failed.  
i have also test using the following command:
java -jar 
/opt/openmeetings_r2776/webapps/openmeetings/jod/jodconverter-cli-2.2.2.jar
-f pdf /home/walter/new1.ppt
having the errors:
=====================
Jan 6, 2010 5:22:59 PM
com.artofsolving.jodconverter.openoffice.connection.AbstractOpenOfficeConnection
 connect
INFO: connected
Jan 6, 2010 5:22:59 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.l
oadAndExport(OpenOfficeDocumentConverter.java:131)
    at
com.artofsolving.jodconverter.openoffice.converter.OpenOfficeDocumentConverter.c
onvertInternal(OpenOfficeDocumentConverter.java:120)
    at
com.artofsolving.jodconverter.openoffice.converter.AbstractOpenOfficeDocumentCon
verter.convert(AbstractOpenOfficeDocumentConverter.java:104)
    at
com.artofsolving.jodconverter.openoffice.converter.AbstractOpenOfficeDocumentCon
verter.convert(AbstractOpenOfficeDocumentConverter.java:74)
    at
com.artofsolving.jodconverter.openoffice.converter.AbstractOpenOfficeDocumentCon
verter.convert(AbstractOpenOfficeDocumentConverter.java:70)
    at
com.artofsolving.jodconverter.cli.ConvertDocument.convertOne(ConvertDocument.jav
a:154)
    at com.artofsolving.jodconverter.cli.ConvertDocument.main(ConvertDocument.java:139)
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.jav
a:101)
    at
com.sun.star.lib.uno.bridges.java_remote.java_remote_bridge.sendRequest(java_rem
ote_bridge.java:652)
    at
com.sun.star.lib.uno.bridges.java_remote.ProxyFactory$Handler.request(ProxyFacto
ry.java:154)
    at
com.sun.star.lib.uno.bridges.java_remote.ProxyFactory$Handler.invoke(ProxyFactor
y.java:136)
    at $Proxy5.loadComponentFromURL(Unknown Source)
    at
com.artofsolving.jodconverter.openoffice.converter.OpenOfficeDocumentConverter.l
oadDocument(OpenOfficeDocumentConverter.java:150)
    at
com.artofsolving.jodconverter.openoffice.converter.OpenOfficeDocumentConverter.l
oadAndExport(OpenOfficeDocumentConverter.java:127)
    ... 6 more

===================== 

Original comment by walter.w...@gmail.com on 6 Jan 2010 at 9:23

GoogleCodeExporter commented 9 years ago
does your red5 service have writing rights on your server ?
are you using some kind of wrapper to start your service ?

secondly to check your installation
1) upload an image and check is its working fine.
2) if you have folder rights for your server, then in your installation 
directory
inside you webapp folder there is a folder named "upload" within that you can 
find
your converted files (jpeg, pdf, thumbnails, swf) etc, check if what all are 
created
to get and idea

and i think it will be better off if you discuss out here 
http://groups.google.com/group/openmeetings-user
rather than in this issue list section :)

hope it helps

Original comment by jyothivasnair on 6 Jan 2010 at 9:39

GoogleCodeExporter commented 9 years ago
hi, jyothivasnair,
the openmeetings is installed in /opt, and i run red5 using "sudo red5.sh". By
uploading ppt file, a folder "3" is created in folder 'upload', so i think red5
service does have the writing rights.

i tested again, image(png) and pdf uploading are fine. 

btw, i cannot open the site http://groups.google.com/group/openmeetings-user
it is walled in China.

Original comment by walter.w...@gmail.com on 7 Jan 2010 at 1:03

GoogleCodeExporter commented 9 years ago
ok..

so what all files were found in your folder "3", did you find the pdf, swf and
images, were they created

now i believe it is some internal error occurring with your jod convertor, can 
you
double check your openoffice installation as jod uses that to convert.

secondly you can try and access the UploadHandler.java file inside your source 
files
which will surely give you a better idea of the flow of things while uploading 
and
debug it

sad to know you cant access the openmeeting group as you can get help from the
Sebastian etc out there, who can surely help you better

Original comment by jyothivasnair on 7 Jan 2010 at 4:45

GoogleCodeExporter commented 9 years ago
hi, jyothivasnair,
There are 2 files [library.xml new1.ppt] created in folder '3'.
and the content of library.xml is:

<?xml version="1.0" encoding="UTF-8"?>
<presentation><originalDocument lastmod="1262840330000"
size="137728">new1.ppt</originalDocument><pdfDocument lastmod="0"
size="0">new1.pdf</pdfDocument><swfDocument lastmod="1262840330000"
size="137728">new1.swf</swfDocument><thumbs/></presentation>

i will look at the UploadHandler.java, hope i can find something useful.

anyway, thank for your rapid help.:)

Original comment by walter.w...@gmail.com on 7 Jan 2010 at 5:05

GoogleCodeExporter commented 9 years ago
just to add try uploading different office documents...like odt, xls, doc
if the problem exists check your openoffice installation, and that it is 
listening to
port 8100
as you are facing problem over there itself at openoffice setup...best of luck 
:)

Original comment by jyothivasnair on 7 Jan 2010 at 5:12

GoogleCodeExporter commented 9 years ago
to jyothivasnair,
have time to test it again, and now it works[Ubuntu 8.04 64bit Server with
openmeetings r2776].
I just add 
-----------------------------------------
deb http://ppa.launchpad.net/openoffice-pkgs/ppa/ubuntu hardy main
deb-src http://ppa.launchpad.net/openoffice-pkgs/ppa/ubuntu hardy main
-----------------------------------------
to /etc/apt/source.list
and run
-----------------------------------------
sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 247D1CFF
-----------------------------------------
to add apt-key.
and then upgrade ubuntu system:(i have already installed Openoffice 2.4 before)
sudo apt-get dist-upgrade
OpenOffice 2.4 then will be replaced by OpenOffice 3.1
after that, i run test:
java -jar 
/opt/openmeetings_r2776/webapps/openmeetings/jod/jodconverter-cli-2.2.2.jar
-f pdf ./new1.ppt
and get the sucess output:
Jan 13, 2010 3:03:05 PM
com.artofsolving.jodconverter.openoffice.connection.AbstractOpenOfficeConnection
 connect
INFO: connected
Jan 13, 2010 3:03:06 PM
com.artofsolving.jodconverter.openoffice.connection.AbstractOpenOfficeConnection
disposing
INFO: disconnected

So the problem was caused by OpenOffice 2.4 default installed in Ubuntu 8.04.
Hope this may help others. 

Original comment by walter.w...@gmail.com on 13 Jan 2010 at 7:05

GoogleCodeExporter commented 9 years ago
good to hear your issue was solved :)

Original comment by jyothivasnair on 13 Jan 2010 at 7:12

GoogleCodeExporter commented 9 years ago

Original comment by seba.wag...@gmail.com on 31 Jan 2012 at 12:23

GoogleCodeExporter commented 9 years ago
OpenMeetings moves to Apache Foundation, update your bookmarks to the new 
project page:

http://incubator.apache.org/openmeetings/

New Issue tracker is located: https://issues.apache.org/jira/browse/OPENMEETINGS

New Mailing Lists located at: 
http://incubator.apache.org/openmeetings/mail-lists.html 

Original comment by seba.wag...@gmail.com on 31 Jan 2012 at 12:25