Page 1 of 2
OKM-012015 Trash Error
PostPosted:Thu Jun 18, 2009 7:43 pm
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
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 allWarning: 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
Re:OKM-012015 Trash Error
PostPosted:Thu Jun 18, 2009 7:49 pm
by JerryH
Oh and this is the Java error :
Code: Select all12: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.
Re:OKM-012015 Trash Error
PostPosted:Sat Jun 20, 2009 4:44 pm
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...
Re:OKM-012015 Trash Error
PostPosted:Mon Jun 22, 2009 4:58 pm
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.
Re: OKM-012015 Trash Error
PostPosted:Fri May 14, 2010 3:30 pm
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?
Re: OKM-012015 Trash Error
PostPosted:Fri May 14, 2010 9:16 pm
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.
Re: OKM-012015 Trash Error
PostPosted:Sat May 15, 2010 5:38 pm
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?
Re: OKM-012015 Trash Error
PostPosted:Sat May 15, 2010 6:28 pm
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...
Re: OKM-012015 Trash Error
PostPosted:Mon May 17, 2010 11:24 am
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)
Re: OKM-012015 Trash Error
PostPosted:Tue May 18, 2010 6:17 am
by jllort
You tried like it
Code: Select allcom.openkm.api.OKMFolder.create("8355711681964473296-15105104592", "/okm:home/lsantos/okm:trash")
Re: OKM-012015 Trash Error
PostPosted:Thu May 20, 2010 8:38 am
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/" )
Re: OKM-012015 Trash Error
PostPosted:Fri May 21, 2010 3:56 pm
by jllort
Try with
Code: Select alles.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
Re: OKM-012015 Trash Error
PostPosted:Mon May 24, 2010 8:37 am
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: (
Re: OKM-012015 Trash Error
PostPosted:Mon May 24, 2010 10:49 am
by jllort
Claro te sobra el "string" en cuanto al folder el tema es distinto tienes que crear un folder antes:
Code: Select allFolder folder = new Folder();
folder.setPath("/okm:home/lsantos/okm:trash");
es.git.openkm.api.OKMFolder.create("8355711681964473296-15105104592", folder);
Re: OKM-012015 Trash Error
PostPosted:Wed May 26, 2010 10:02 am
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
