pdf2swf error while upload document file in openmeetings - pdf2swf

openmeetings-2.1.1 in my system,i have install ghostscript,ImageMagick-6.8.9 and swftools, when i try to upload document file like .ppt,.doc file, it upload successfully but when i drag to white board it give me error like below.
key: processSWF
process: generateSwf
command; [pdf2swf, -s, insertstop, -s, poly2bitmap, -i, -j, 85, -s, zoom=72,
/home/PROJECTNAME/web/PROJECTNAME/FOLDER/apache-
openmeetings/webapps/openmeetings/upload/files/
be44f8c982e2ca52610b691c3dbda38e/be44f8c982e2c
a52610b691c3dbda38e.pdf,
/home/PROJECTNAME/web/FOLDER/public_html/apache-
openmeetings/webapps/openmeetings/upload/files/
be44f8c982e2ca52610b691c3dbda38e/be44f8c982e2
ca52610b691c3dbda38e.swf]
exception: java.io.IOException: Cannot run program "pdf2swf": error=2, No such file or
directory
error: Cannot run program "pdf2swf": error=2, No such file or directory
exitValue: java.io.IOException: Cannot run program "pdf2swf": error=2, No such file or
directory
i got this error in dialog box.i have Google a lot, kindly help me to figure out this problem.
thank you.

You Have to edit the "swftools_path" in configuration!
If you don't have swftools you should install version 2012-10-15-1307, the newest version doesn't work!

Related

/usr/lib/rstudio-server/bin/rserver: /usr/pgsql-12/lib/libpq.so.5: no version information available (required by /usr/lib/rstudio-server/bin/rserver)

i'm using CENTOS.7, while trying to run the rstudio-server start command to start Rstudio on my machine it brings me back this error
-bash-4.2$ rstudio-server start
/usr/lib/rstudio-server/bin/rserver: /usr/pgsql-12/lib/libpq.so.5: no version information available (required by /usr/lib/rstudio-server/bin/rserver)
Unable to open config file: /etc/rstudio/rserver.conf
2021-11-04T10:17:50.482013Z [rserver] ERROR system error 2 (No such file or directory) [path: /etc/rstudio/rserver.conf, description: Unable to open config file: /etc/rstudio/rserver.conf]; OCCURRED AT rstudio::core::Error rstudio::core::FilePath::openForRead(std::shared_ptr<std::basic_istream<char> >&) const src/cpp/shared_core/FilePath.cpp:1453; LOGGED FROM: bool rstudio::core::program_options::parseConfigFile(rstudio_boost::program_options::variables_map&, const string&, const rstudio::core::program_options::OptionsDescription&, bool) src/cpp/core/ProgramOptions.cpp:136
Has anyone had the same problem? Thank you in advance for your feedback.
Regards
Try using the SUDO command prior to the command, to run it as an administrator.
See this link.
You also need, of course, to have admin rights to the OS.

Android Studio 4 Build ERROR : Execution failed for task ':app:mergeDebugResources'

Hello this is my first time make android program and found this error but the code not have an error point. the error message is below :
Execution failed for task ':app:mergeDebugResources'.
Could not resolve all files for configuration ':app:_internal_aapt2_binary'.
Failed to transform aapt2-4.1.1-6503028-windows.jar (com.android.tools.build:aapt2:4.1.1-6503028) to match attributes {artifactType=_internal-android-aapt2-binary, org.gradle.libraryelements=jar, org.gradle.status=release, org.gradle.usage=java-runtime}.
> Execution failed for Aapt2Extractor: C:\Users\lenovo.gradle\caches\modules-2\files-2.1\com.android.tools.build\aapt2\4.1.1-6503028\cc838ebadee3649d47e07d029371bc1054e2200d\aapt2-4.1.1-6503028-windows.jar.
> java.io.IOException: Unable to delete directory 'C:\Users\lenovo.gradle\caches\transforms-2\files-2.1\aa8b5888abc00f78a9403248465821cc'
Failed to delete some children. This might happen because a process has files open or has its working directory set in the target directory.
- C:\Users\lenovo.gradle\caches\transforms-2\files-2.1\aa8b5888abc00f78a9403248465821cc\aapt2-4.1.1-6503028-windows
can someone tell me how to fix it ?
i had same problem in linux
tried many ways and asked some question.
finally found out there is file missing named aap2 in build-tools
i couldn't find that file to place it in destination so i deleted whole file and re Download it with sdk manager and if it doesn't work too i guess u should try reinstall android studio
yes its not a good answer but it was all experience i had with this error.

Grunt watch not working- tmp files get edited and appear

I am running grunt watch on my project folder which gives me following errors:
FATAL ERROR: ENOENT, no such file or directory 'path to edited file's folder\a-temporary-file-name.tmp'
After that is says,
Running "esteWatch" task
Waiting
File changed: "path to edited file's folder\a-temporary-file-name.tmp"
Running "esteWatch" task
Waiting
File changed: "path to edited file's folder\another-temporary-file-name.tmp"
This repeats for 5 to 6 times..
And in the end I do not get the desired result. My intended file does not get updated.
Please provide a solution.

Prod logs in symfony 2 not using root dir

I'm developping a symfony2 website. I'm using apache2.2.
Everything works fine in dev environment.
But when i want to try it on the prod environment, it goes :
Fatal error: Uncaught exception 'UnexpectedValueException' with message 'The stream or
file "/var/www/domain/app/logs/prod.log" could not be opened:
fopen(/var/www/domain/app/logs/prod.log) [function.fopen]: failed to open stream: No
such file or directory' in /var/www/myapp/app/cache/prod/classes.php on line 4799
Why is it trying to write in /var/www/domain since my application is in /var/www/myapp ?
I tried to modify the config_prod.yml to no result.
Any idea ?
Thanks
#Boris Guéry it was a cache problem, you were right, but i couldn't use de command line to clear it. I had to use rm -rf in the shell.
Thanks

plone4.3 add-on document viewer error

i'm setting a Plone server. and set add-on Document Viewer on it.
but when i convert .doc on broswer i get error.
Exception in thread "main" org.artofsolving.jodconverter.office.OfficeException: failed to start and connect
at org.artofsolving.jodconverter.office.ManagedOfficeProcess.startAndWait(ManagedOfficeProcess.java:64)
at org.artofsolving.jodconverter.office.PooledOfficeManager.start(PooledOfficeManager.java:101)
at org.artofsolving.jodconverter.office.ProcessPoolOfficeManager.start(ProcessPoolOfficeManager.java:62)
at org.artofsolving.jodconverter.cli.Convert.main(Convert.java:112)
Caused by: java.util.concurrent.ExecutionException: org.artofsolving.jodconverter.office.OfficeException: could not establish connection
at java.util.concurrent.FutureTask$Sync.innerGet(FutureTask.java:252)
at java.util.concurrent.FutureTask.get(FutureTask.java:111)
at org.artofsolving.jodconverter.office.ManagedOfficeProcess.startAndWait(ManagedOfficeProcess.java:62)
... 3 more
from debug information i know the error come from a command:
java -Djava.awt.headless=true
-Djava.util.logging.config.file=/usr/lib/ruby/gems/1.8/gems/docsplit-0.7.2/vendor/logging.properties
-cp /usr/lib/ruby/gems/1.8/gems/docsplit-0.7.2/build:/usr/lib/ruby/gems/1.8/gems/docsplit-0.7.2/vendor/'*'
-jar /usr/lib/ruby/gems/1.8/gems/docsplit-0.7.2/vendor/jodconverter/jodconverter-core-3.0-beta-4.jar
-r /usr/lib/ruby/gems/1.8/gems/docsplit-0.7.2/vendor/conf/document-formats.js /tmp/tmpPYP2u5/dump.doc /tmp/tmpPYP2u5/dump.pdf 2>&1
but if i run it in bash with root privileges. i get no error.
I change libreoffice to openoffice3.org then the problem disapeared

Resources