• OKM-012015 Trash Error

  • We tried to make OpenKM as intuitive as possible, but an advice is always welcome.
We tried to make OpenKM as intuitive as possible, but an advice is always welcome.
Forum rules: Please, before asking something see the documentation wiki or use the search feature of the forum. And remember we don't have a crystal ball or mental readers, so if you post about an issue tell us which OpenKM are you using and also the browser and operating system version. For more info read How to Report Bugs Effectively.
 #2759  by JerryH
 
Hi there,

I\'m running 3.0 Community at the moment and have come up against and error I can\'t diagnose.

One of the users (isn\'t it always !!) was organising documents then reported that the system was generating an error which a restart didn\'t fix.

Any ideas, as I can\'t find a flush for the trash any where.

Thanks,
Jerry

Image

When I try to add a bug report I get directed to :

http://www.openkm.com/index.php?option= ... &Itemid=36

Where the PHP dies because the SOAP isn\'t getting it\'s stream :
Code: Select all
Warning: SoapClient::SoapClient(http://oficina.git.es:82/mantis/api/soap/mantisconnect.php?wsdl) [function.SoapClient-SoapClient]: failed to open stream: Connection timed out in /home/openkm/web/components/com_mantis/mantis.php on line 17

Warning: SoapClient::SoapClient() [function.SoapClient-SoapClient]: I/O warning : failed to load external entity \"http://oficina.git.es:82/mantis/api/soap/mantisconnect.php?wsdl\" in /home/openkm/web/components/com_mantis/mantis.php on line 17

Fatal error: Uncaught SoapFault exception: [WSDL] SOAP-ERROR: Parsing WSDL: Couldn\'t load from \'http://oficina.git.es:82/mantis/api/soap/mantisconnect.php?wsdl\' in /home/openkm/web/components/com_mantis/mantis.php:17 Stack trace: #0 /home/openkm/web/components/com_mantis/mantis.php(17): SoapClient->SoapClient(\'http://oficina....\') #1 /home/openkm/web/index.php(236): require_once(\'/home/openkm/we...\') #2 {main} thrown in /home/openkm/web/components/com_mantis/mantis.php on line 17
 #2760  by JerryH
 
Oh and this is the Java error :
Code: Select all
12:51:05,213 ERROR [DirectRepositoryModule] okm:home/tim/okm:trash
javax.jcr.PathNotFoundException: okm:home/tim/okm:trash
	at org.apache.jackrabbit.core.NodeImpl.getNode(NodeImpl.java:2473)
	at es.git.openkm.module.direct.DirectFolderModule.getProperties(DirectFolderModule.java:74)
	at es.git.openkm.module.direct.DirectRepositoryModule.getTrashFolder(DirectRepositoryModule.java:390)
	at es.git.openkm.api.OKMRepository.getTrashFolder(OKMRepository.java:59)
	at es.git.openkm.frontend.server.OKMRepositoryServlet.getTrash(OKMRepositoryServlet.java:156)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.lang.reflect.Method.invoke(Method.java:616)
	at com.google.gwt.user.server.rpc.RPC.invokeAndEncodeResponse(RPC.java:527)
	at com.google.gwt.user.server.rpc.RemoteServiceServlet.processCall(RemoteServiceServlet.java:164)
	at com.google.gwt.user.server.rpc.RemoteServiceServlet.doPost(RemoteServiceServlet.java:86)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:710)
	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:179)
	at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:432)
	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:636)
And it sits in a loop \"Updating folder tree\" from the front end when you browse to the users folder.
 #2772  by jllort
 
Seems a bad error, because under user TIM at starting tries to get okm:home/tim/okm:trash node and not founds it. That might never happens, because nobody can drop trash, root etc... folders.

Have you accessed to repository directly ?
You\'re using on production environment or only for testing purposes ?
Have you stopped server or jboss incorrectly, some shutdown etc...
 #2782  by JerryH
 
Have you accessed to repository directly ?
Yes, it\'s in office I set it up and have root access to the machine.
You\'re using on production environment or only for testing purposes ?
It\'s a test at the moment to see how it works for us, though I\'m hoping to be able to use it in a production environment.
Have you stopped server or jboss incorrectly, some shutdown etc...
Up until the getting that error the server (inc OpenKM) was up for about 25 days. I restarted OpenKM to see if there was any clean up routine that would of helped, but it stayed the same.

All I could think was to delete the user and add them again, though they would loose all their documents and version history that way.
 #5003  by ricardomarques
 
I'm having the same problem with one of the users. I think The trash folder disappered from the database. Anyone knows how to create it?
 #5010  by jllort
 
If you've not accesing directly to repository you can not delete trash user .. I don't know how have you deleted it ?
First I would like to understand it.
 #5017  by ricardomarques
 
One of the users was having problems with the trash folder. He couldn't empty the trash folder. So I've used the admin and used this link: http://localhost:8080/OpenKM/admin/repository_view.jsp and entered the trash folder of the user. By mistake I clicked remove current and the trash folder was removed from the database. How can I create it?
 #5019  by jllort
 
lo mas facil que se me ocurre es utilizar el scripting:
http://wiki.openkm.com/index.php/Scripting

y atacar la clase :
com.openkm.api.OKMFolder.create(String token, Folder fldPath)

el fldPath es la ruta "/ okm:home/toni/okm:trash"
el token lo puedes pillar desde la administración ( en el sitio que tienes para deslogear usuarios esta el token actual del usuario, pilla el del administrador )

El script lo puedes ejecutar directamente desde la administración , te he puesto la clase de la version 5.0 en la version 4.X la clase igual es es.git.openkm.api. etc...
 #5028  by ricardomarques
 
I tried that. I got this error: Parse error at line 1, column 32. Encountered: (

The command I put was: com.openkm.api.OKMFolder.create(string 8355711681964473296-15105104592, folder /okm:home/lsantos/okm:trash)
 #5039  by jllort
 
You tried like it
Code: Select all
com.openkm.api.OKMFolder.create("8355711681964473296-15105104592", "/okm:home/lsantos/okm:trash")
 #5091  by ricardomarques
 
I've tested like that and got this error:

Sourced file: inline evaluation of: ``com.openkm.api.OKMFolder.create("1076396410681137230296-126142675157", "/okm:hom . . . '' : Class or variable not found: com.openkm.api.OKMFolder : at Line: 1 : in file: inline evaluation of: ``com.openkm.api.OKMFolder.create("1076396410681137230296-126142675157", "/okm:hom . . . '' : com .openkm .api .OKMFolder .create ( "1076396410681137230296-126142675157" , "/okm:home/lsantos/okm:trash/" )
 #5104  by jllort
 
Try with
Code: Select all
es.git.openkm.api.OKMFolder.create("8355711681964473296-15105104592", "/okm:home/lsantos/okm:trash")
In openkm 5.0 we've done refactoring not yet done in version 4.1
 #5119  by ricardomarques
 
es.git.openkm.api.OKMFolder.create(string "1076396410683499736296-9153889163", folder "/okm:home/lsantos/okm:trash")

I've tested like that and got an error:

Parse error at line 1, column 35. Encountered: (
 #5121  by jllort
 
Claro te sobra el "string" en cuanto al folder el tema es distinto tienes que crear un folder antes:
Code: Select all
Folder folder = new Folder();
folder.setPath("/okm:home/lsantos/okm:trash");
es.git.openkm.api.OKMFolder.create("8355711681964473296-15105104592", folder);
 #5139  by ricardomarques
 
I don't understand your instructions. I'm sorry but I don't know that much about java. Could you be more explicit? I'm sorry to bother you :(

About Us

OpenKM is part of the management software. A management software is a program that facilitates the accomplishment of administrative tasks. OpenKM is a document management system that allows you to manage business content and workflow in a more efficient way. Document managers guarantee data protection by establishing information security for business content.