Page 1 of 1

Can not preview any documents

PostPosted:Mon Jul 02, 2012 11:32 am
by theepan
Configuration Settings
Configuration Settings
config settings.jpg (49.45 KiB) Viewed 7128 times
Configuration Settings
Configuration Settings
config settings.jpg (49.45 KiB) Viewed 7128 times
I am new to OpenKM,
I installed OpenKM 5.1.10 on my Windows XP,
and also i installed Open Office3,Swtools pdf2swf,Tesseract-OCR and ImageMagick-6.7.8-Q16
but i can not preview any documents in OpenKM
It's Says "There was a problem with conversion Generation,Please contact your OpenKM Administrator"
Please check my my log file and configuration setting attached.
Please help me to resolve this issue.
Thanks

Theepan.
Configuration Settings
Configuration Settings
config settings.jpg (49.45 KiB) Viewed 7128 times
Configuration check
Configuration check
config check.jpg (20.65 KiB) Viewed 7128 times
Code: Select all
2012-07-02 14:20:06,746 DEBUG [com.openkm.api.OKMPropertyGroup] getGroups: []
2012-07-02 14:20:06,761 DEBUG [com.openkm.api.OKMDocument] getVersionHistory: [{name=1.0, size=111104, author=okmAdmin, actual=true, comment=, created=Mon Jul 02 12:26:37 AST 2012}]
2012-07-02 14:20:06,761 DEBUG [com.openkm.api.OKMDocument] getVersionHistorySize: 111104
2012-07-02 14:20:09,855 DEBUG [com.openkm.api.OKMRepository] getNodePath(null, e4cca5e8-cd27-40fb-9417-71a2c545cf54)
2012-07-02 14:20:09,855 DEBUG [com.openkm.api.OKMRepository] getNodePath: /okm:root/Thiva/PJ 250 MOM 5.doc
2012-07-02 14:20:09,855 DEBUG [com.openkm.api.OKMDocument] getProperties(null, /okm:root/Thiva/PJ 250 MOM 5.doc)
2012-07-02 14:20:09,871 DEBUG [com.openkm.util.DocConverter] convertibleToPdf(application/msword)
2012-07-02 14:20:09,871 DEBUG [com.openkm.util.DocConverter] convertibleToPdf: true
2012-07-02 14:20:09,871 DEBUG [com.openkm.util.DocConverter] convertibleToSwf(application/msword)
2012-07-02 14:20:09,871 DEBUG [com.openkm.util.DocConverter] convertibleToPdf(application/msword)
2012-07-02 14:20:09,871 DEBUG [com.openkm.util.DocConverter] convertibleToPdf: true
2012-07-02 14:20:09,871 DEBUG [com.openkm.util.DocConverter] convertibleToSwf: true
2012-07-02 14:20:09,871 DEBUG [com.openkm.util.DocConverter] convertibleToDxf(application/msword)
2012-07-02 14:20:09,871 DEBUG [com.openkm.util.DocConverter] convertibleToDxf: false
2012-07-02 14:20:09,871 DEBUG [com.openkm.api.OKMDocument] getProperties: {path=/okm:root/Thiva/PJ 250 MOM 5.doc, mimeType=application/msword, author=okmAdmin, permissions=15, created=Mon Jul 02 12:26:37 AST 2012, lastModified=Mon Jul 02 12:26:37 AST 2012, keywords=[], categories=[], locked=false, lockInfo=null, actualVersion={name=1.0, size=111104, author=okmAdmin, actual=true, comment=, created=Mon Jul 02 12:26:37 AST 2012}, subscribed=false, uuid=e4cca5e8-cd27-40fb-9417-71a2c545cf54, convertibleToPdf=true, convertibleToSwf=true, convertibleToDxf=false, cipherName=null, notes=[]}
2012-07-02 14:20:09,871 DEBUG [com.openkm.api.OKMDocument] getContent(null, /okm:root/Thiva/PJ 250 MOM 5.doc, false)
2012-07-02 14:20:09,871 DEBUG [com.openkm.api.OKMDocument] getContent: org.apache.jackrabbit.core.data.LazyFileInputStream@1447b1f
2012-07-02 14:20:09,886 DEBUG [com.openkm.util.DocConverter] convertibleToSwf(application/msword)
2012-07-02 14:20:09,886 DEBUG [com.openkm.util.DocConverter] convertibleToPdf(application/msword)
2012-07-02 14:20:09,886 DEBUG [com.openkm.util.DocConverter] convertibleToPdf: true
2012-07-02 14:20:09,886 DEBUG [com.openkm.util.DocConverter] convertibleToSwf: true
2012-07-02 14:20:09,886 DEBUG [com.openkm.util.DocConverter] convertibleToPdf(application/msword)
2012-07-02 14:20:09,886 DEBUG [com.openkm.util.DocConverter] convertibleToPdf: true
2012-07-02 14:20:09,886 DEBUG [com.openkm.util.DocConverter] convertibleToPdf(application/msword)
2012-07-02 14:20:09,886 DEBUG [com.openkm.util.DocConverter] convertibleToPdf: true
2012-07-02 14:20:09,886 DEBUG [com.openkm.util.DocConverter] ** Convert from PDF to SWF **
2012-07-02 14:20:10,027 DEBUG [com.openkm.util.ExecutionUtils] runCmd(C:\openkm-5.1\jboss-4.2.3.GA\ExModules\SWFTools\pdf2swf.exe)
2012-07-02 14:20:10,027 DEBUG [com.openkm.util.ExecutionUtils] runCmdImpl([C:\openkm-5.1\jboss-4.2.3.GA\ExModules\SWFTools\pdf2swf.exe], 300000)
2012-07-02 14:20:10,027 WARN  [com.openkm.util.ExecutionUtils] Abnormal program termination: 1
2012-07-02 14:20:10,027 WARN  [com.openkm.util.ExecutionUtils] CommandLine: [C:\openkm-5.1\jboss-4.2.3.GA\ExModules\SWFTools\pdf2swf.exe]
2012-07-02 14:20:10,027 WARN  [com.openkm.util.ExecutionUtils] STDERR: 
2012-07-02 14:20:10,027 DEBUG [com.openkm.util.ExecutionUtils] Elapse time: 00:00:00
2012-07-02 14:20:10,027 ERROR [com.openkm.servlet.frontend.ConverterServlet] 
com.openkm.core.ConversionException: 
	at com.openkm.util.DocConverter.pdf2swf(DocConverter.java:528)
	at com.openkm.servlet.frontend.ConverterServlet.toSWF(ConverterServlet.java:226)
	at com.openkm.servlet.frontend.ConverterServlet.service(ConverterServlet.java:106)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
	at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
	at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:230)
	at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
	at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:182)
	at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:524)
	at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:84)
	at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
	at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
	at org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:157)
	at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
	at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:262)
	at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)
	at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)
	at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:446)
	at java.lang.Thread.run(Thread.java:722)

Re: Can not preview any documents

PostPosted:Mon Jul 02, 2012 12:45 pm
by theepan
Hi friends,
I have solved my problems,
i change my openoffice service to Local system account
Now i can preview any documents.
Sorry for disturbance
Thanks
Theepan

Re: Can not preview any documents

PostPosted:Tue Jul 03, 2012 8:26 am
by mahyar
Hi theepan,

I am having the same problem here. My configuration check returns all OK ! but with preview is an error generated: "The System has generated an error" is the title and as error message just "conversion: ".
OpenKM is running under windows 7 and if it is of any help, I am using chrome as my browser.

How do you start OpenOffice as local system account?
I think I have done all the things described in the forums and OpenKM troubleshooting just right, but still no success!

Thanks for any help-

Re: Can not preview any documents

PostPosted:Wed Jul 04, 2012 6:23 pm
by jllort
After configuring openoffice path is necessary restart jboss. See in log if soffice service is correctly started here we have tryed explain the configuration process http://wiki.openkm.com/index.php/Previsualization

Re: Can not preview any documents

PostPosted:Thu Jul 05, 2012 6:10 am
by theepan
Hi mahyar,
Sorry for late Reply,
1) Download and install openoffice
2) run openoffice once before installing it as a service
3) Download and install windows 2003 resource kit from microsoft website.
follow this steps
4) Create a service named OpenOfficeUnoServer to do so run the following command
“C:\Program Files\Windows Resource Kits\Tools\Instsrv.exe” OpenOfficeUnoServer “C:\Program Files\Windows Resource Kits\Tools\Srvany.exe”
5) Open registry and find out the service before you created before (OpenOfficeUnoServer):
Path:HKEY_LOCAL_MACHINEl->SYSTEM->CurrentControlSet->Services->OpenOfficeUnoServer
6)Make a New key value Named Parameters and inside that key make 2 String value Named Application and AppParameters,
Enter Value data for Application key is “C:\openkm5.1\jboss4.2.3.GA\ExModules\OpenOffice.org3\program\soffice.exe”
(Your soffice path)
And
Enter Value data for AppParameters key is” -headless -accept=socket,host=0.0.0.0,port=8100;urp;StarOffice.ServiceManager
Please check the Snap here.


7) Start Service Control panel->administrative tools->Services and start “OpenOfficeUnoServer”
Check the Snap
8) Open command prompt and change to your open office directory to C:\openkm5.1\jboss4.2.3.GA\ExModules\OpenOffice.org3\program
Run the following command
soffice -accept=”socket,host=0.0.0.0,port=8100;urp;StarOffice.ServiceManager”
Run netstat -anp tcp

Make sure a listening on port 8100

It’s all for to install openoffice as a windows service

Try this steps,
Still you have problem,just tell me i will post all the steps i followed to OpenKM in my computer.
I hope it will help you
Thanks,
Theepan.

Re: Can not preview any documents

PostPosted:Thu Jul 05, 2012 10:20 am
by dungmonitor
You have to set parameter for pdf2swf.exe. Try :"pdf2swf.exe -T 9 -p 1-5 -f -G ${fileIn} -o ${fileOut}"

Re: Can not preview any documents

PostPosted:Mon Mar 18, 2013 11:08 am
by rajawasthi
Dear Friends,

I am struggling with the same problem since last week but unable to solve the problem.

I have:
-Windows 7 Home premium 32 bit as OS
-Browser Firefox 19.0.2 along with installed flash plugin
-OpenKM 6.2 community version
-swftools 0.9.0
-OCR cuneiform
-OpenOffice 3.4.1
-Image Magick 6.8.3-9

I have installed resource tool kit and created a new service for OpenOffice as mentioned in this conversation. I also started the service and found that the port 8100 is listening while checking with the command netstat -anp tcp. Then I set the Administration configuration and while checking everything is ok. My OpenKM.cfg file is as:

OpenKM Hibernate configuration values
Code: Select all
hibernate.dialect=org.hibernate.dialect.HSQLDialect
hibernate.hbm2ddl=none
system.openoffice=on
system.openoffice.path=C:\\tomcat\\bin\\OpenOffice\\
system.swftools.pdf2swf=C:\\tomcat\\bin\\swftools\\pdf2swf.exe -T 9 -f -t -G -s storeallcharacters ${fileIn} -o ${fileOut}
system.imagemagick.convert=C:\\tomcat\\bin\\ImageMagick-6.8.3-Q16\\convert.exe
system.ocr=C:\\tomcat\\bin\\cuneiform\\
However I get the error as : The system has generated an error Conversion:

How can I solve this problem? Can anyone help please.

Re: Can not preview any documents

PostPosted:Tue Mar 19, 2013 7:37 pm
by jllort
You should take a look at the configuration parameters in administration -> parameters because the change in OpenKM.cfg only take effects first time application is executed, really adding or changing parameters there has no effect you should change from administration.

Re: Can not preview any documents

PostPosted:Wed Mar 20, 2013 10:04 am
by rajawasthi
Dear jllort,

I think you are talking about these parameters in administration.


Image
Image

I have already set these parameters and I have also mentioned it in my previous request.

If not can you give me some further info.


Regards,
Deepak

Re: Can not preview any documents

PostPosted:Thu Mar 21, 2013 6:17 pm
by pavila
Delete the content of the $TOMCAT/repository/cache/pdf and $TOMCAT/repository/cache/swf. Also take a look at http://wiki.openkm.com/index.php/OpenOf ... ion_issues.