Upload and convert file --> Errors

397 views
Skip to first unread message

phamvinhduy

unread,
Mar 22, 2010, 12:08:27 PM3/22/10
to OpenMeetings User
I upload DOC, XLS file, it shows below errors:

Name: exitValue
Value: 0
Name: command
Value: [java, -cp, "/usr/local/red5/webapps/openmeetings/jod/commons-
cli-1.2.jar" -cp "/usr/local/red5/webapps/openmeetings/jod/commons-
io-1.4.jar" -cp "/usr/local/red5/webapps/openmeetings/jod/
jodconverter-2.2.2.jar" -cp "/usr/local/red5/webapps/openmeetings/jod/
jodconverter-cli-2.2.2.jar" -cp "/usr/local/red5/webapps/openmeetings/
jod/juh-3.0.1.jar" -cp "/usr/local/red5/webapps/openmeetings/jod/
jurt-3.0.1.jar" -cp "/usr/local/red5/webapps/openmeetings/jod/
ridl-3.0.1.jar" -cp "/usr/local/red5/webapps/openmeetings/jod/slf4j-
api-1.5.6.jar" -cp "/usr/local/red5/webapps/openmeetings/jod/slf4j-
jdk14-1.5.6.jar" -cp "/usr/local/red5/webapps/openmeetings/jod/
unoil-3.0.1.jar" -cp "/usr/local/red5/webapps/openmeetings/jod/
xstream-1.3.1.jar", -jar, /usr/local/red5/webapps/openmeetings/jod/
jodconverter-cli-2.2.2.jar, /usr/local/red5/webapps/openmeetings/
uploadtemp/3/070911031148070911031148KCN_8_.xls, /usr/local/red5/
webapps/openmeetings/upload/3/070911031148070911031148KCN_8_/
070911031148070911031148KCN_8_.pdf]
Name: error
Value: Mar 22, 2010 11:12:41 PM
com.artofsolving.jodconverter.openoffice.connection.AbstractOpenOfficeConnection
connectINFO: connectedMar 22, 2010 11:12:43 PM
com.artofsolving.jodconverter.openoffice.connection.AbstractOpenOfficeConnection
disposingINFO: disconnected
Name: process
Value: doJodConvert
Name: exitValue
Value: 0
Name: process
Value: generateXMLDocument
Name: exitValue
Value: 0
Name: command
Value: [convert, -thumbnail, 80, /usr/local/red5/webapps/openmeetings/
upload/3/070911031148070911031148KCN_8_/
070911031148070911031148KCN_8_.pdf, /usr/local/red5/webapps/
openmeetings/upload/3/070911031148070911031148KCN_8_/_thumb_page-
%04d.jpg]
Name: error
Value:
Name: process
Value: generateBatchThumb
Name: exitValue
Value: 0
Name: process
Value: processPDF
Name: exitValue
Value: -1
Name: command
Value: [ /usr/local/src/swftools-2010-02-06-1900/src/pdf2swf, -s,
insertstop, /usr/local/red5/webapps/openmeetings/upload/
3/070911031148070911031148KCN_8_/070911031148070911031148KCN_8_.pdf, /
usr/local/red5/webapps/openmeetings/upload/
3/070911031148070911031148KCN_8_/070911031148070911031148KCN_8_.swf]
Name: error
Value: Cannot run program " /usr/local/src/swftools-2010-02-06-1900/
src/pdf2swf": java.io.IOException: error=2, No such file or directory
Name: process
Value: generateSwf

Could you help me how to fix it?

Thanks alot

Lee Archer

unread,
Mar 22, 2010, 12:10:47 PM3/22/10
to openmeet...@googlegroups.com
What OS and

Value: Cannot run program " /usr/local/src/swftools-2010-02-06-1900/
src/pdf2swf": java.io.IOException: error=2, No such file or directory

might be important. Did you not make install it?

Lee

Thanks alot

--
You received this message because you are subscribed to the Google
Groups "OpenMeetings User" group.
To post to this group, send email to openmeet...@googlegroups.com.
To unsubscribe from this group, send email to
openmeetings-u...@googlegroups.com.
For more options, visit this group at
http://groups.google.com/group/openmeetings-user?hl=en.

phamvinhduy

unread,
Mar 22, 2010, 12:22:44 PM3/22/10
to OpenMeetings User
My OS is Centos 5.3. I installed swftools

Could you give me some advice?

Lee Archer

unread,
Mar 22, 2010, 12:27:14 PM3/22/10
to openmeet...@googlegroups.com
I have it working fine on CentOS 5.4. Did you make install pdf2swf? I also found that I needed to manually build imagemagick, ffmpeg and sox. If you have done a make install go into the Admin > Config and specify the proper paths.

phamvinhduy

unread,
Mar 22, 2010, 12:31:40 PM3/22/10
to OpenMeetings User
For me, it has worked fine 3 times. But, it's fail at this time. I
found someone also have same question:
http://www.mail-archive.com/openmeet...@googlegroups.com/msg04405.html

Maybe, I'll try to install it again and again

Lee Archer

unread,
Mar 22, 2010, 12:48:20 PM3/22/10
to openmeet...@googlegroups.com
My build process for CentOS 5.4 is as follows and has worked each time I have installed it which is why I have documented it should I need to do it again. I had to piece to together from several sources and also many reinstalls to get it right. Recording should also work fully.

Server

*Development
Development Libraries
Development Tools

*Servers
MySQL Database

*Base System
No Dialup Networking Support
Java

*Firewall configuration
Security Level: Disabled
SELinux: Disabled

*System services
OFF
apmd
auditd
autofs
avahi-daemon
bluetooth
cpuspeed
cups
firstboot
gpm
hidd
ip6tables
iptables
irqbalance
mcstrans
mdmonitor
microcode_ctl
netfs
nfslock
pcscd
portmap
restorecond
rpcidmapd
rpcsvcgssd
sendmail
smartd
xfs
yum-updatesd

yum update

*Only required if pre-installed
rpm -e ImageMagick-6.2.8.0-4.el5_1.1
rpm -e --nodeps sox-12.18.1-1

*mysql
default-character-set=utf8
character-set-server=utf8
chkconfig mysqld on
service mysqld start

rpm -Uhv http://apt.sw.be/redhat/el5/en/i386/rpmforge/RPMS/rpmforge-release-0.3.6-1.el5.rf.i386.rpm

vi /etc/rc.local
/usr/lib/openoffice.org/program/soffice "-accept=socket,host=localhost,port=8100;urp;StarOffice.ServiceManager" -nologo -headless -nofirststartwizard &

yum install freetype freetype-devel fontconfig fontconfig-devel java-1.6.0-openjdk-devel libtiff libtiff-devel libjpeg-devel libjpeg giflib giflib-devel libpaper libpaper-devel xml-commons-apis libpng libpng-devel libxml2 libxml2-devel fftw3 fftw3-devel cairo cairo-devel flac flac-devel wavpack wavpack-devel libsndfile libsndfile-devel ghostscript ghostscript-devel ghostscript-fonts

yum groupinstall 'Office/Productivity'
yum install openoffice.org-headless

*lame
wget http://downloads.sourceforge.net/project/lame/lame/3.98.3/lame-3.98.3.tar.gz
./configure --prefix=/usr
make all
make install

*swftools
wget http://www.swftools.org/swftools-0.9.0.tar.gz
./configure --prefix=/usr
make all
make install

*imagemagick
wget ftp://ftp.imagemagick.org/pub/ImageMagick/ImageMagick-6.5.9-10.tar.gz
./configure --prefix=/usr
make all
make install

*ffmpeg
svn checkout svn://svn.ffmpeg.org/ffmpeg/trunk ffmpeg
./configure --enable-libmp3lame --enable-postproc --enable-gpl --enable-pthreads --enable-avfilter --prefix=/usr
make all
make install

*sox
wget http://downloads.sourceforge.net/project/sox/sox/14.3.0/sox-14.3.0.tar.gz
./configure --prefix=/usr
make all
make install

ldconfig -vvvvvv

*openmeetings
wget http://i4demo.com/openmeetings/builds/131/openmeetings_r3130.zip
mkdir /usr/src/om
cd /usr/src/om
unzip /usr/src/openmeetings_r3130.zip

cd /usr/src/om/webapps/openmeetings/conf
cp mysql_hibernate.cfg.xml hibernate.cfg.xml
cd /usr/src/om
sh ./red5.sh

http://XXX.XXX.XXX.XXX:5080/openmeetings/install

Regards

phamvinhduy

unread,
Mar 22, 2010, 1:08:24 PM3/22/10
to OpenMeetings User
Here is my steps

Step 1: Install java
Go to: http://java.com/en/download/linux_manual.jsp. Download
jre-6u18-linux-x64rpm.bin and jdk-6u18-linux-x64.rpm.bin
mkdir /usr/java
mv jre-6u18-linux-x64rpm.bin jdk-6u18-linux-x64.rpm.bin /usr/java
./jre-6u18-linux-x64-rpm.bin. Type "yes" to install
./jdk-6u18-linux-x64-rpm.bin. Type "yes" to install
Open /etc/bashrc and add this line at the end: export JAVA_HOME=/usr/
java/jdk1.6.0_18/bin

Step 2: Install MySQL
yum -y install mysql mysql-server mysql-devel de cai dat MySQL
service mysqld start
mysqladmin -u root password “newpassword” <-- change admin password

vi /etc/my.cnf. Add 3 line in [mysqld] section:
bind-address=SERVER-IP
default-character-set=utf8
character-set-server=utf8

service mysqld restart
netstat -an to check listening on 3306 port

Step 3: Install OpenOffice
yum -y install openoffice*
Create /etc/init.d/soffice with below content:
#!/bin/bash
# chkconfig: 345 20 80
# description: init.d script for headless openoffice.org (2.3+ for
RHEL5 32bit)
#
# processname: soffice
#
# source function library
. /etc/rc.d/init.d/functions

RETVAL=0
SOFFICE_PATH='/usr/lib64/openoffice.org/program'
SOFFICE_ARGS='-accept="socket,host=localhost,port=8100;urp" -headless'
SOFFICE_PIDFILE=/var/run/soffice.bin.pid

start_soffice() {
echo -n $"Starting OpenOffice.org"
daemon $SOFFICE_PATH/soffice.bin $SOFFICE_ARGS &
[ $? -eq 0 ] && echo_success || echo_failure
pidof soffice.bin > $SOFFICE_PIDFILE
echo
}
start() {
start_soffice
}
stop() {
echo -n $"Stopping OpenOffice"
killproc soffice.bin
echo
}
case "$1" in
start)
start
;;
stop)
stop
;;
restart)
stop
start
;;
*)
echo $"Usage: $0 {start|stop|restart}"
esac

$ chmod +x /etc/init.d/soffice
$ chkconfig --add soffice
$ chkconfig soffice on
$ service soffice start

Step 4: Install ImageMagick
yum -y install ImageMagick

Step 5: install SWFTools
yum install freetype-devel
yum install libjpeg-devel
yum install giflib-devel
yum installl gcc gcc-c++

Download swftools 0.9.0 package from http://www.swftools.org/download.html
tar -zvxf swftools-0.x.x.tar
cd swftools-0.x.x
./configure
make
make install

Step 6: Install lame
Download lame package from : http://sourceforge.net/projects/lame/files/
(lame-397.tar.gz)
tar xvzf lame-397.tar.gz
cd lame-397
./configure
make
make install

Step 7: Install FFmpeg
yum install subversion
svn checkout svn://svn.mplayerhq.hu/ffmpeg/trunk ffmpeg
cd ffmpeg
./configure --enable-libmp3lame
make
make install

Add /usr/local/lib to “/etc/ld.so.conf”. Then, type ldconfig

Step 8: Install Sox
yum -y install amrnb-devel amrwb-devel speex-devel libid3tag-devel
libmad-devel libvorbis-devel sox-devel ladspa-devel faac-devel faad2-
devel wavpack-devel libsndfile-devel
wget http://sourceforge.net/projects/sox/files/sox/14.3.0/sox-14.3.0.tar.gz/download
tar xzvf sox-14.3.0.tar.gz
./configure
make -s && make install

Step 10: Install Openmeeting like guide at this google groups

Give me some advides?

Thnaks a lot

> rpm -Uhvhttp://apt.sw.be/redhat/el5/en/i386/rpmforge/RPMS/rpmforge-release-0....


>
> vi /etc/rc.local
> /usr/lib/openoffice.org/program/soffice "-accept=socket,host=localhost,port=8100;urp;StarOffice.ServiceManager" -nologo -headless -nofirststartwizard &
>
> yum install freetype freetype-devel fontconfig fontconfig-devel java-1.6.0-openjdk-devel libtiff libtiff-devel libjpeg-devel libjpeg giflib giflib-devel libpaper libpaper-devel xml-commons-apis libpng libpng-devel libxml2 libxml2-devel fftw3 fftw3-devel cairo cairo-devel flac flac-devel wavpack wavpack-devel libsndfile libsndfile-devel ghostscript ghostscript-devel ghostscript-fonts
>
> yum groupinstall 'Office/Productivity'
> yum install openoffice.org-headless
>
> *lame

> wgethttp://downloads.sourceforge.net/project/lame/lame/3.98.3/lame-3.98.3...


> ./configure --prefix=/usr
> make all
> make install
>
> *swftools

> wgethttp://www.swftools.org/swftools-0.9.0.tar.gz


> ./configure --prefix=/usr
> make all
> make install
>
> *imagemagick

> wgetftp://ftp.imagemagick.org/pub/ImageMagick/ImageMagick-6.5.9-10.tar.gz


> ./configure --prefix=/usr
> make all
> make install
>
> *ffmpeg
> svn checkout svn://svn.ffmpeg.org/ffmpeg/trunk ffmpeg
> ./configure --enable-libmp3lame --enable-postproc --enable-gpl --enable-pthreads --enable-avfilter --prefix=/usr
> make all
> make install
>
> *sox

> wgethttp://downloads.sourceforge.net/project/sox/sox/14.3.0/sox-14.3.0.ta...


> ./configure --prefix=/usr
> make all
> make install
>
> ldconfig -vvvvvv
>
> *openmeetings

> wgethttp://i4demo.com/openmeetings/builds/131/openmeetings_r3130.zip


> mkdir /usr/src/om
> cd /usr/src/om
> unzip /usr/src/openmeetings_r3130.zip
>
> cd /usr/src/om/webapps/openmeetings/conf
> cp mysql_hibernate.cfg.xml hibernate.cfg.xml
> cd /usr/src/om
> sh ./red5.sh
>
> http://XXX.XXX.XXX.XXX:5080/openmeetings/install
>
> Regards
>
> Lee
>
> -----Original Message-----
> From: openmeet...@googlegroups.com [mailto:openmeet...@googlegroups.com] On Behalf Of phamvinhduy
> Sent: 22 March 2010 16:32
> To: OpenMeetings User
> Subject: Re: Upload and convert file --> Errors
>
> For me, it has worked fine 3 times. But, it's fail at this time. I

> found someone also have same question:http://www.mail-archive.com/openmeet...@googlegroups.com/msg0440...

Lee Archer

unread,
Mar 22, 2010, 1:11:38 PM3/22/10
to openmeet...@googlegroups.com
Imagemagick form the repo I found didn't work very well and gave me errors. I also found that sox wouldn't detect ffmpeg unless I installed ffmpeg to /usr/bin.

phamvinhduy

unread,
Mar 25, 2010, 3:20:29 AM3/25/10
to OpenMeetings User
Yes, I found sox couldn't detect ffmpeg when I installed ffmpeg at /
usr/ffmpeg.

How can I solve this problem?

Could you help me, Lee ?

> Download swftools 0.9.0 package fromhttp://www.swftools.org/download.html

> wgethttp://sourceforge.net/projects/sox/files/sox/14.3.0/sox-14.3.0.tar.g...

> ...
>
> read more »

phamvinhduy

unread,
Mar 25, 2010, 4:16:35 AM3/25/10
to OpenMeetings User
I installed fourth times and still have this error: "Cannot run
program " /usr/swftools-2010-02-06-1900/
src/pdf2swf": java.io.IOException: error=2"

I filled below informations in installation progress. Is it right?

SWFTools: /usr/swftools-2010-02-06-1900/src
FFMPEG: /usr/ffmpeg
Sox: /usr/sox-14.3.0/src
ImageMagick: /usr/ImageMagick-6.5.9-10

> ...
>
> read more »

phamvinhduy

unread,
Mar 25, 2010, 4:16:57 AM3/25/10
to OpenMeetings User
I installed fourth times and still have this error: "Cannot run
program " /usr/swftools-2010-02-06-1900/
src/pdf2swf": java.io.IOException: error=2"

I filled below informations in installation progress. Is it right?

SWFTools: /usr/swftools-2010-02-06-1900/src
FFMPEG: /usr/ffmpeg
Sox: /usr/sox-14.3.0/src
ImageMagick: /usr/ImageMagick-6.5.9-10

On Mar 25, 2:20 pm, phamvinhduy <phamvinh...@gmail.com> wrote:

> ...
>
> read more »

phamvinhduy

unread,
Mar 25, 2010, 4:31:46 AM3/25/10
to OpenMeetings User
I installed fourth times and still have this error: "Cannot run
program " /usr/swftools-2010-02-06-1900/
src/pdf2swf": java.io.IOException: error=2"

I filled below informations in installation progress. Is it right?

SWFTools: /usr/swftools-2010-02-06-1900/src
FFMPEG: /usr/ffmpeg
Sox: /usr/sox-14.3.0/src
ImageMagick: /usr/ImageMagick-6.5.9-10

On Mar 25, 2:20 pm, phamvinhduy <phamvinh...@gmail.com> wrote:

> ...
>
> read more »

phamvinhduy

unread,
Mar 25, 2010, 5:09:49 AM3/25/10
to OpenMeetings User
I installed fourth times and still have this error: "Cannot run
program " /usr/swftools-2010-02-06-1900/
src/pdf2swf": java.io.IOException: error=2"

I filled below informations in installation progress. Is it right?

SWFTools: /usr/swftools-2010-02-06-1900/src
FFMPEG: /usr/ffmpeg
Sox: /usr/sox-14.3.0/src
ImageMagick: /usr/ImageMagick-6.5.9-10

On Mar 25, 2:20 pm, phamvinhduy <phamvinh...@gmail.com> wrote:

> ...
>
> read more »

phamvinhduy

unread,
Mar 25, 2010, 5:30:44 AM3/25/10
to OpenMeetings User
I installed fourth times and still have this error: "Cannot run
program " /usr/swftools-2010-02-06-1900/
src/pdf2swf": java.io.IOException: error=2"

I filled below informations in installation progress. Is it right?

SWFTools: /usr/swftools-2010-02-06-1900/src
FFMPEG: /usr/ffmpeg
Sox: /usr/sox-14.3.0/src
ImageMagick: /usr/ImageMagick-6.5.9-10

On Mar 25, 2:20 pm, phamvinhduy <phamvinh...@gmail.com> wrote:

> ...
>
> read more »

Reply all
Reply to author
Forward
0 new messages