Page 1 of 1

Problem with OKM:mail??

PostPosted:Sat Oct 08, 2011 9:32 am
by gameking_49
I access openkm system with admin role, i removed current openkm:mail in admin tab, i logout and login, i can't login and received problem:com.openkm.core.RepositoryException: okm:mail ???
plz help me fix a problem!
(i use ldap authenticate AD, mail exchange server 2007, mysql, server: linux os server)
Thanks for your help!

Re: Problem with OKM:mail??

PostPosted:Mon Oct 10, 2011 7:13 am
by jllort
How did you delete it ... browsing from repository viewer ? It's a non trivial problem

login from here http://localhost:8080/OpenKM/admin/

Try with scripting
Code: Select all
import com.openkm.bean.Folder;
import com.openkm.api.OKMFolder;

Folder folder = new Folder();
folder.setPath("/okm:mail");
OKMFolder.getInstance().create(null, folder);

Re: Problem with OKM:mail??

PostPosted:Mon Oct 10, 2011 7:17 am
by gameking_49
Yes, i delete this folder from Repository Viewer. Plz help me!
thanks!

Re: Problem with OKM:mail??

PostPosted:Mon Oct 10, 2011 7:20 am
by gameking_49
when i login from http://localhost:8080/OpenKM/Admin, login with admin accour, i received problem: Application Error: com.openkm.core.RepositoryException:okm:mail???

Re: Problem with OKM:mail??

PostPosted:Mon Oct 10, 2011 7:55 am
by gameking_49
i can login with link: http://localhost:8080/OpenKM/Admin/Scripting , i post your script but script error...:(

Re: Problem with OKM:mail??

PostPosted:Mon Oct 10, 2011 3:43 pm
by jllort
Which error

Re: Problem with OKM:mail??

PostPosted:Tue Oct 11, 2011 1:15 am
by gameking_49
PathnotFoundException...okm:mail.

Re: Problem with OKM:mail??

PostPosted:Tue Oct 11, 2011 9:21 am
by jllort
That will not be easy to solve, must be done calling low level repository functions:

DirectRepositoryModule ( where mail node is created )
http://openkm.svn.sourceforge.net/viewv ... iew=markup

Take a look:
1- createBase method
2- createBase(session, root, Repository.MAIL);

some scripting code to get session will be useful too
import javax.jcr.*;
import com.openkm.core.*;
import com.openkm.bean.*;
import com.openkm.module.base.*;

String token = JcrSessionManager.getInstance().getSystemToken();
Session session = JcrSessionManager.getInstance().get(token);
If you need support contact with us at http://www.openkm.com/Contact that's not a trivial issue, and need some time job to reparing it. Althought it with information I give to you can doing yourself, but you'll need some time I suggest write scripting step by step.

Re: Problem with OKM:mail??

PostPosted:Wed Oct 12, 2011 3:39 am
by gameking_49
When i use your script, i received "Script out: null" ,... :!:

Re: Problem with OKM:mail??

PostPosted:Sat Oct 15, 2011 6:53 am
by jllort
I've tested on our online demo and there's no error on lines I give to you.

You must work on implement extra calls present on DirectRepositoryModule ( as I said in last post ), it's not a trivial job and must be done with patience.

You're on production environment no ?, Other solution you could test could be exporting data ( I'm not sure if with this internal repository error will be possible ).

Re: Problem with OKM:mail??

PostPosted:Sun Oct 16, 2011 7:33 am
by gameking_49
Thanks for your help, it's a complex problem. I have built a new system with version 5.1.8 (build 7300) in two day,^^. :shock: relly, my job haven't time for fix this error :)

Re: Problem with OKM:mail??

PostPosted:Sun Oct 16, 2011 1:57 pm
by jllort
If it was a simply problem that with few minutes will could give to you the script we had done, but really we'll need some hours to prepare it, and in these cases it's only available across professional technical supporting program.

I suggest you ensure you're making backups correctly, because on this scenario some restoring should be really usefull.