Page 1 of 1

Preview problems with documents

PostPosted:Wed Jan 07, 2015 3:52 pm
by Sven
Hello

I'm struggling with the document preview and it is driving me nuts

I'm running OpenKM 6.3.0 on a windows server 2008 R2 64-bit
open office 4.1.1 is installed

when I'm starting openKM, I can see that the soffice process is starting to in the Task-manager.

the config check shows me that everything is ok
Code: Select all
system.swftools.pdf2swf
OK - D:\openkm-6.3.0-community\tomcat\bin\pdf2swf.bat
system.imagemagick.convert
OK - D:\openkm-6.3.0-community\imagemagick\ImageMagick-6.9.0-Q16\convert.exe
system.ocr
OK - D:\openkm-6.3.0-community\tomcat\bin
system.openoffice.path
OK - C:\OpenOffice4\program\soffice.bin
here is the config editor
Code: Select all
amazon.access.key	String		Edit    Delete
amazon.secret.key	String		Edit    Delete
application.url	String	http://DC2.admin.lbv.lu/OpenKM/index.jsp	Edit    Delete
csv.format.comment.indicator	String	#	Edit    Delete
csv.format.delimiter	String	;	Edit    Delete
csv.format.ignore.empty.lines	Boolean	Active	Edit    Delete
csv.format.quote.character	String	"	Edit    Delete
csv.format.skip_header	Boolean	Inactive	Edit    Delete
default.admin.role	String	ROLE_ADMIN	Edit    Delete
default.lang	String		Edit    Delete
default.script	Text	print("UserId: " + session.getUserID());
print("EventType: " + eventType);
print("EventNode: " + eventNode.getPath());
print("ScriptNode: " + scriptNode.getPath());	Edit    Delete
default.user.role	String	ROLE_USER	Edit    Delete
hibernate.indexer.batch.size.load.objects	Integer	30	Edit    Delete
hibernate.indexer.mass.indexer	Boolean	Inactive	Edit    Delete
hibernate.indexer.threads.index.writer	Integer	3	Edit    Delete
hibernate.indexer.threads.load.objects	Integer	4	Edit    Delete
hibernate.indexer.threads.subsequent.fetching	Integer	8	Edit    Delete
kea.thesaurus.base.url	String		Edit    Delete
kea.thesaurus.owl.file	String		Edit    Delete
kea.thesaurus.skos.file	String		Edit    Delete
kea.thesaurus.tree.childs	Text		Edit    Delete
kea.thesaurus.tree.root	Text		Edit    Delete
kea.thesaurus.vocabulary.serql	Text		Edit    Delete
keep.session.alive.interval	Integer	5	Edit    Delete
logo.login	File		Edit    Delete
logo.report	File		Edit    Delete
managed.text.extraction	Boolean	Active	Edit    Delete
managed.text.extraction.batch	Integer	10	Edit    Delete
managed.text.extraction.concurrent	Boolean	Inactive	Edit    Delete
managed.text.extraction.pool.size	Integer	5	Edit    Delete
managed.text.extraction.pool.threads	Integer	5	Edit    Delete
managed.text.extraction.pool.timeout	Integer	1	Edit    Delete
max.file.size	String	0	Edit    Delete
max.search.results	Integer	500	Edit    Delete
min.search.characters	Integer	3	Edit    Delete
notification.message.body	Text	<b>Message: </b>${notificationMessage}<br/><b>User: </b>${userId}<br/><#list documentList as doc><b>Document: </b><a href="${doc.url}">${doc.path}</a><br/></#list>	Edit    Delete
notification.message.subject	Text	OpenKM - NOTIFICATION	Edit    Delete
notify.twitter.password	String		Edit    Delete
notify.twitter.status	Text	OpenKM - ${documentUrl} - ${documentPath} - ${userId} - ${eventType}	Edit    Delete
notify.twitter.user	String		Edit    Delete
openmeetings.credentials	String		Edit    Delete
openmeetings.port	String		Edit    Delete
openmeetings.url	String		Edit    Delete
openmeetings.user	String		Edit    Delete
plugin.debug	Boolean	Inactive	Edit    Delete
principal.adapter	String	com.openkm.principal.DatabasePrincipalAdapter	Edit    Delete
principal.database.filter.inactive.users	Boolean	Active	Edit    Delete
principal.hide.connection.roles	Boolean	Inactive	Edit    Delete
principal.identifier.validation	String	^[a-zA-Z0-9_]+$	Edit    Delete
principal.ldap.mail.attribute	String		Edit    Delete
principal.ldap.mail.search.base	String		Edit    Delete
principal.ldap.mail.search.filter	String		Edit    Delete
principal.ldap.referral	String		Edit    Delete
principal.ldap.role.attribute	String		Edit    Delete
principal.ldap.role.search.base	List		Edit    Delete
principal.ldap.role.search.filter	String		Edit    Delete
principal.ldap.roles.by.user.attribute	String		Edit    Delete
principal.ldap.roles.by.user.search.base	String		Edit    Delete
principal.ldap.roles.by.user.search.filter	String		Edit    Delete
principal.ldap.security.credentials	String		Edit    Delete
principal.ldap.security.principal	String		Edit    Delete
principal.ldap.server	String		Edit    Delete
principal.ldap.user.attribute	String		Edit    Delete
principal.ldap.user.search.base	List		Edit    Delete
principal.ldap.user.search.filter	String		Edit    Delete
principal.ldap.username.attribute	String		Edit    Delete
principal.ldap.username.search.base	String		Edit    Delete
principal.ldap.username.search.filter	String		Edit    Delete
principal.ldap.users.by.role.attribute	String		Edit    Delete
principal.ldap.users.by.role.search.base	String		Edit    Delete
principal.ldap.users.by.role.search.filter	String		Edit    Delete
principal.ldap.users.from.roles	Boolean	Inactive	Edit    Delete
registered.text.extractors	List	org.apache.jackrabbit.extractor.PlainTextExtractor
org.apache.jackrabbit.extractor.MsWordTextExtractor
org.apache.jackrabbit.extractor.MsExcelTextExtractor
org.apache.jackrabbit.extractor.MsPowerPointTextExtractor
org.apache.jackrabbit.extractor.OpenOfficeTextExtractor
org.apache.jackrabbit.extractor.RTFTextExtractor
org.apache.jackrabbit.extractor.HTMLTextExtractor
org.apache.jackrabbit.extractor.XMLTextExtractor
org.apache.jackrabbit.extractor.PngTextExtractor
org.apache.jackrabbit.extractor.MsOutlookTextExtractor
com.openkm.extractor.PdfTextExtractor
com.openkm.extractor.AudioTextExtractor
com.openkm.extractor.ExifTextExtractor
com.openkm.extractor.CuneiformTextExtractor
com.openkm.extractor.SourceCodeTextExtractor
com.openkm.extractor.MsOffice2007TextExtractor	Edit    Delete
remote.conversion.server	String		Edit    Delete
repository.content.checksum	Boolean	Active	Edit    Delete
repository.purgatory.home	String		Edit    Delete
restrict.file.mime	Boolean	Inactive	Edit    Delete
restrict.file.name	String	*~;*.bak	Edit    Delete
schedule.dashboard.refresh	Integer	30	Edit    Delete
schedule.session.keepalive	Integer	15	Edit    Delete
schedule.ui.notification	Integer	1	Edit    Delete
security.access.manager	String	simple	Edit    Delete
security.live.change.node.limit	Integer	100	Edit    Delete
security.mode.multiple	Boolean	Inactive	Edit    Delete
security.search.evaluation	String	lucene	Edit    Delete
store.node.path	Boolean	Inactive	Edit    Delete
subscription.message.body	Text	<b>Document: </b><a href="${documentUrl}">${documentPath}</a><br/><b>User: </b>${userId}<br/><b>Event: </b>${eventType}<br/><b>Comment: </b>${subscriptionComment}<br/>	Edit    Delete
subscription.message.subject	Text	OpenKM - ${eventType} - ${documentPath}	Edit    Delete
system.antivir	String		Edit    Delete
system.apache.request.header.fix	Boolean	Inactive	Edit    Delete
system.catdoc.xls2csv	String		Edit    Delete
system.document.name.mismatch.check	Boolean	Active	Edit    Delete
system.execution.timeout	Integer	5	Edit    Delete
system.ghostscript.ps2pdf	String	D:/openkm-6.3.0-community/tomcat/bin/pdf2swf.bat	Edit    Delete
system.imagemagick.convert	String	D:/openkm-6.3.0-community/imagemagick/ImageMagick-6.9.0-Q16/convert.exe	Edit    Delete
system.keyword.lowercase	Boolean	Active	Edit    Delete
system.login.lowercase	Boolean	Inactive	Edit    Delete
system.maintenance	Boolean	Inactive	Edit    Delete
system.ocr	String	D:/openkm-6.3.0-community/tomcat/bin	Edit    Delete
system.ocr.rotate	String		Edit    Delete
system.openoffice.dictionary	String	C:/OpenOffice4	Edit    Delete
system.openoffice.path	String	C:/OpenOffice4	Edit    Delete
system.openoffice.port	Integer	8100	Edit    Delete
system.openoffice.server	String		Edit    Delete
system.openoffice.tasks	Integer	200	Edit    Delete
system.pdf.force.ocr	Boolean	Inactive	Edit    Delete
system.previewer	Select	flexpaper	Edit    Delete
system.profiling	Boolean	Inactive	Edit    Delete
system.readonly	Boolean	Inactive	Edit    Delete
system.swftools.pdf2swf	String	D:/openkm-6.3.0-community/tomcat/bin/pdf2swf.bat	Edit    Delete
system.webdav.fix	Boolean	Inactive	Edit    Delete
system.webdav.server	Boolean	Inactive	Edit    Delete
tomcat.connector.uri.encoding	String	ISO-8859-1	Edit    Delete
unit.testing.folder	String	/okm:root/okmTesting	Edit    Delete
unit.testing.password	String	admin	Edit    Delete
unit.testing.user	String	okmAdmin	Edit    Delete
upload.throttle.filter	Boolean	Inactive	Edit    Delete
user.assign.document.creation	Boolean	Active	Edit    Delete
user.password.reset	Boolean	Inactive	Edit    Delete
validator.password	String	com.openkm.validator.password.NoPasswordValidator	Edit    Delete
validator.password.max.length	Integer	0	Edit    Delete
validator.password.min.digits	Integer	0	Edit    Delete
validator.password.min.length	Integer	0	Edit    Delete
validator.password.min.lowercase	Integer	0	Edit    Delete
validator.password.min.uppercase	Integer	0	Edit    Delete
validator.password.mini.special	Integer	0	Edit    Delete
version.numeration.adapter	String	com.openkm.vernum.MajorMinorVersionNumerationAdapter	Edit    Delete
version.numeration.format	String	%d	Edit    Delete
workflow.run.config.form	String	run_config	Edit    Delete
workflow.start.task.auto.run	Boolean	Active	Edit    Delete
zoho.api.key	String		Edit    Delete
zoho.password	String		Edit    Delete
zoho.secret.key	String		Edit    Delete
zoho.user	String	
I've tryed every port I found in the wiki documentiation an in this forum 2002 8100 2222 and so one.

the follow code is in the catalina.log
Code: Select all
2015-01-07 14:47:31,287 [http-bio-0.0.0.0-8082-exec-4] ERROR com.openkm.servlet.frontend.ConverterServlet- Please specify an input file

com.openkm.core.ConversionException: Please specify an input file

	at com.openkm.util.DocConverter.pdf2swf(DocConverter.java:685)
	at com.openkm.servlet.frontend.ConverterServlet.toSWF(ConverterServlet.java:308)
	at com.openkm.servlet.frontend.ConverterServlet.service(ConverterServlet.java:145)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:727)
	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:303)
	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
	at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)
	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
	at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:311)
	at org.springframework.security.web.access.intercept.FilterSecurityInterceptor.invoke(FilterSecurityInterceptor.java:116)
	at org.springframework.security.web.access.intercept.FilterSecurityInterceptor.doFilter(FilterSecurityInterceptor.java:83)
	at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:323)
	at org.springframework.security.web.access.ExceptionTranslationFilter.doFilter(ExceptionTranslationFilter.java:113)
	at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:323)
	at org.springframework.security.web.session.SessionManagementFilter.doFilter(SessionManagementFilter.java:101)
	at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:323)
	at org.springframework.security.web.authentication.AnonymousAuthenticationFilter.doFilter(AnonymousAuthenticationFilter.java:113)
	at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:323)
	at org.springframework.security.web.servletapi.SecurityContextHolderAwareRequestFilter.doFilter(SecurityContextHolderAwareRequestFilter.java:54)
	at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:323)
	at org.springframework.security.web.savedrequest.RequestCacheAwareFilter.doFilter(RequestCacheAwareFilter.java:45)
	at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:323)
	at org.springframework.security.web.authentication.AbstractAuthenticationProcessingFilter.doFilter(AbstractAuthenticationProcessingFilter.java:182)
	at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:323)
	at org.springframework.security.web.context.SecurityContextPersistenceFilter.doFilter(SecurityContextPersistenceFilter.java:87)
	at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:323)
	at org.springframework.security.web.FilterChainProxy.doFilter(FilterChainProxy.java:173)
	at org.springframework.web.filter.DelegatingFilterProxy.invokeDelegate(DelegatingFilterProxy.java:346)
	at org.springframework.web.filter.DelegatingFilterProxy.doFilter(DelegatingFilterProxy.java:259)
	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
	at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:220)
	at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:122)
	at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:501)
	at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:170)
	at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:98)
	at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:950)
	at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:116)
	at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:408)
	at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1040)
	at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:607)
	at org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:315)
	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
	at java.lang.Thread.run(Thread.java:745)
many thanks in advance for your help

Re: Preview problems with documents

PostPosted:Sun Jan 11, 2015 11:23 am
by jllort
At least this parameter is wrong
Code: Select all
system.ghostscript.ps2pdf=D:/openkm-6.3.0-community/tomcat/bin/pdf2swf.bat
There're missing the parameters ${fileIn} -o ${fileOut} and should be .exe file. Must be something like /..../pdf2swf.exe -f -T 9 -t -s storeallcharacters ${fileIn} -o ${fileOut} ( take a look here http://wiki.openkm.com/index.php/Third- ... :_SWFTools for more information )

Re: Preview problems with documents

PostPosted:Mon Nov 30, 2015 10:41 am
by ethrbh
hello,

Yes, your last reply was helped me lot. I removed "program" in the path of OpenOffice, and set the enviromnent variable for sigar, and finally the preview works as is should.

thanks for your help,
/Robi

Re: Preview problems with documents

PostPosted:Mon Nov 30, 2015 10:44 am
by ethrbh
hello,

Sorry, I was put my previous reply in a wrong place :-( Please ignore this.

br,
/Robi