The problem seems to stem from the fact that the DocumentModel returned from the NXQL has no associated Session ID. So when trying to locate the session on rendering the new start-page, there is none. A new one is attempted to be created but DocumentModelFunctions passes null (as the HashMap) into the CoreInstance open() method, which results in the IllegalArgumentException.

If you change the null to an empty HashMap, the page is displayed with the correct document.

Would this be a 'correct' code change to DocumentModelFunctions?

This is not the end of my problem though, as the tab that is opened is TAB_RELATIONS when I would like it to be TAB_CONTENT. More investigation on this tomorrow...


Sean Radford a écrit :
I'm attempting to do just that but have a Nuxeo coding (usage) issue.

I have built my plugin that happily deploys and my class is run after
the user logs in but on the redirect to 'my' starting page I get an error.

In my 'test' class that replaces StartupHelper I override the
initDomainAndFindStartupPage and after finding the domain perform an
NXQL query to locate a particular Workspace. I then try and navigateTo
this Workspace, the resulting page is an error:

I would advise you to make you startup helper inject (with create = true) de
default startupHelper dans delegate de CoreSession initialization to it by
calling the default method first and then perform your custom init.

_______________________________________________
ECM mailing list
[email protected]
http://lists.nuxeo.com/mailman/listinfo/ecm




--
Dr. Sean Radford, MBBS, MSc
http://www.tacola.com/

_______________________________________________
ECM mailing list
[email protected]
http://lists.nuxeo.com/mailman/listinfo/ecm

Reply via email to