Workspace creation in user workspace

View: New views
3 Messages — Rating Filter:   Alert me  

Workspace creation in user workspace

by jiveforums-ecm :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi,

I have a problem with our Nuxeo installation when I try to create a workspace within my personal workspace. It seems that the system fail to retrieve the template list needed to render the workspace creation view (see the stack trace below).

Here is how to reproduce the error:

- create many domains
- navigate to the domain view (domain list)
- from there, go to you personal workspace
- click New document...
- the page is not rendered and an error page is displayed instead.

it works correctly if I navigate to a domain first!

We use:
Nuxeo DM 5.3.0 GA with PostgreSQL 8.3
CentOS 5

Is it a known issue? Can you reproduce it? Could it be a problem with our configuration?

Thanks for your help!

Here is the stack trace:
...
Request Attributes:

javax.servlet.forward.request_uri : /nuxeo/nxpath/default/default-domain/UserWorkspaces/hlalibert/espace-partage-hugo/partagefichier@create_workspace
javax.servlet.forward.context_path : /nuxeo
javax.servlet.forward.servlet_path : /nxpath/default/default-domain/UserWorkspaces/hlalibert/espace-partage-hugo/partagefichier@create_workspace
javax.servlet.forward.query_string : conversationId=0NXMAIN&tabId=TAB_CONTENT&subTabId=
nuxeo.force.url.encoding : true
com.sun.faces.util.RequestStateManager : {com.sun.faces.ExternalContextImpl=com.sun.faces.context.ExternalContextImpl@138f5b, com.sun.faces.ELResolverChainType=Faces, com.sun.faces.renderKitImplForRequest=org.ajax4jsf.renderkit.ChameleonRenderKitFactory@28d3b8, com.sun.faces.INVOCATION_PATH=.faces}
securityError : false
selectedNavigationTree : CONTENT_TREE
com.sun.faces.FORM_HAS_COMMAND_LINK_ATTR : com.sun.faces.NO_COMMAND_LINK_FOUND
stackTrace : javax.servlet.ServletException
        at javax.faces.webapp.FacesServlet.service(FacesServlet.java:277)
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
        at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:83)
        at org.jboss.seam.web.MultipartFilter.doFilter(MultipartFilter.java:85)
        at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
        at org.jboss.seam.web.ExceptionFilter.doFilter(ExceptionFilter.java:64)
        at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
        at org.jboss.seam.web.RedirectFilter.doFilter(RedirectFilter.java:45)
        at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
        at org.ajax4jsf.webapp.BaseXMLFilter.doXmlFilter(BaseXMLFilter.java:178)
        at org.ajax4jsf.webapp.BaseFilter.handleRequest(BaseFilter.java:290)
        at org.ajax4jsf.webapp.BaseFilter.processUploadsAndHandleRequest(BaseFilter.java:368)
        at org.ajax4jsf.webapp.BaseFilter.doFilter(BaseFilter.java:495)
        at org.jboss.seam.web.Ajax4jsfFilter.doFilter(Ajax4jsfFilter.java:60)
        at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
...

Caused by: java.lang.NullPointerException
        at org.nuxeo.ecm.webapp.documenttemplates.DocumentTemplatesActionsBean.getTemplates(DocumentTemplatesActionsBean.java:115)
        at org.nuxeo.ecm.webapp.documenttemplates.DocumentTemplatesActionsBean.getTemplates(DocumentTemplatesActionsBean.java:139)
        at org.nuxeo.ecm.webapp.documenttemplates.DocumentTemplatesActionsBean.templatesListFactory(DocumentTemplatesActionsBean.java:102)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:585)
        at org.jboss.seam.util.Reflections.invoke(Reflections.java:21)
        at org.jboss.seam.intercept.RootInvocationContext.proceed(RootInvocationContext.java:31)
        at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:56)
        at org.jboss.seam.transaction.RollbackInterceptor.aroundInvoke(RollbackInterceptor.java:31)
        at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:68)
        at org.jboss.seam.core.BijectionInterceptor.aroundInvoke(BijectionInterceptor.java:46)
        at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:68)
        at org.jboss.seam.core.MethodContextInterceptor.aroundInvoke(MethodContextInterceptor.java:42)
        at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:68)
        at org.jboss.seam.intercept.RootInterceptor.invoke(RootInterceptor.java:107)
        at org.jboss.seam.intercept.JavaBeanInterceptor.interceptInvocation(JavaBeanInterceptor.java:166)
        at org.jboss.seam.intercept.JavaBeanInterceptor.invoke(JavaBeanInterceptor.java:102)
        at org.nuxeo.ecm.webapp.documenttemplates.DocumentTemplatesActionsBean_$$_javassist_81.templatesListFactory(DocumentTemplatesActionsBean_$$_javassist_81.java)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:585)
        at org.jboss.seam.util.Reflections.invoke(Reflections.java:21)
        at org.jboss.seam.util.Reflections.invokeAndWrap(Reflections.java:125)
        at org.jboss.seam.Component.callComponentMethod(Component.java:2178)
        at org.jboss.seam.Component.getInstanceFromFactory(Component.java:2015)
        at org.jboss.seam.Component.getInstance(Component.java:1952)
        at org.jboss.seam.Component.getInstance(Component.java:1929)
        at org.jboss.seam.Namespace.getComponentInstance(Namespace.java:55)
        at org.jboss.seam.Namespace.getComponentInstance(Namespace.java:50)
        at org.jboss.seam.el.SeamELResolver.resolveBase(SeamELResolver.java:166)
        at org.jboss.seam.el.SeamELResolver.getValue(SeamELResolver.java:53)
        at javax.el.CompositeELResolver.getValue(CompositeELResolver.java:53)
        at com.sun.faces.el.FacesCompositeELResolver.getValue(FacesCompositeELResolver.java:72)
        at org.jboss.el.parser.AstIdentifier.getValue(AstIdentifier.java:44)
        at org.jboss.el.parser.AstEmpty.getValue(AstEmpty.java:29)
        at org.jboss.el.parser.AstNot.getValue(AstNot.java:26)
        at org.jboss.el.ValueExpressionImpl.getValue(ValueExpressionImpl.java:186)
        at com.sun.facelets.el.TagValueExpression.getValue(TagValueExpression.java:71)
        at javax.faces.component.UIComponentBase.isRendered(UIComponentBase.java:390)
        at javax.faces.component.UIComponent.encodeAll(UIComponent.java:930)
        at javax.faces.render.Renderer.encodeChildren(Renderer.java:148)
        at javax.faces.component.UIComponentBase.encodeChildren(UIComponentBase.java:837)
        at javax.faces.component.UIComponent.encodeAll(UIComponent.java:936)
        at javax.faces.component.UIComponent.encodeAll(UIComponent.java:942)
        at com.sun.facelets.FaceletViewHandler.renderView(FaceletViewHandler.java:578)
        at org.ajax4jsf.application.ViewHandlerWrapper.renderView(ViewHandlerWrapper.java:100)
        at org.ajax4jsf.application.AjaxViewHandler.renderView(AjaxViewHandler.java:176)
        at com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:109)
        at com.sun.faces.lifecycle.Phase.doPhase(Phase.java:100)
        at com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:139)
        at org.nuxeo.ecm.platform.ui.web.lifecycle.NuxeoLifeCycleImpl.render(NuxeoLifeCycleImpl.java:98)
        at javax.faces.webapp.FacesServlet.service(FacesServlet.java:266)
        ... 61 more

requestedUrl : nxpath/default/default-domain/UserWorkspaces/hlalibert/espace-partage-hugo/partagefichier@create_workspace?old_conversationId=0NXMAIN&tabId=TAB_CONTENT&subTabId=
org.nuxeo.theme.default.theme : galaxy/default
currentServerLocation : org.nuxeo.ecm.platform.util.RepositoryLocation@5c13d641
org.nuxeo.theme.default.perspective : default
lockActions : org.nuxeo.ecm.webapp.edit.lock.LockActionsBean@63dc4b
isInsidePersonalWorkspace : true
facelets.Encoding : UTF-8
com.sun.faces.scriptState : true
nuxeo.disable.redirect.wrapper : true
org.jboss.seam.transaction.transaction : org.jboss.seam.transaction.Transaction@13cd76
currentSuperSpace : DocumentModelImpl { -title: Projet -  Partage de Fichiers, sessionId: default--4357942082178903487, doc id: e9fd14a7-f74a-4b42-96c0-2f2360d1f85c, name: partagefichier, path: /default-domain/UserWorkspaces/hlalibert/espace-partage-hugo/partagefichier, ref: e9fd14a7-f74a-4b42-96c0-2f2360d1f85c, parent ref: abd2eede-7eee-40b4-8fc9-d0c58f064f13, data models: {dublincore=DocumentModelImpl { schema: dublincore,15 fields, webcontainer=DocumentModelImpl { schema: webcontainer,14 fields}, declaredFacets: [WebView, Folderish, SuperSpace], declaredSchemas: [Ljava.lang.String;@16073f}
deleteActions : org.nuxeo.ecm.webapp.action.DeleteActionsBean@35e333
currentDocument : DocumentModelImpl { -title: Projet -  Partage de Fichiers, sessionId: default--4357942082178903487, doc id: e9fd14a7-f74a-4b42-96c0-2f2360d1f85c, name: partagefichier, path: /default-domain/UserWorkspaces/hlalibert/espace-partage-hugo/partagefichier, ref: e9fd14a7-f74a-4b42-96c0-2f2360d1f85c, parent ref: abd2eede-7eee-40b4-8fc9-d0c58f064f13, data models: {dublincore=DocumentModelImpl { schema: dublincore,15 fields, webcontainer=DocumentModelImpl { schema: webcontainer,14 fields}, declaredFacets: [WebView, Folderish, SuperSpace], declaredSchemas: [Ljava.lang.String;@16073f}
org.nuxeo.theme.url : nxtheme://theme/default/*/jsf-facelets/galaxy/default/multiple_domains
org.jboss.seam.core.manager : Manager([0NXMAIN])
org.jboss.seam.transaction.synchronizations : org.jboss.seam.transaction.SeSynchronizations@1d73bd7
org.jboss.seam.core.conversationPropagation : org.jboss.seam.core.ConversationPropagation@199c82d
NuxeoExceptionHandlerMarker : true
org.jboss.seam.core.eventContext : BasicContext(EVENT)
facelets.ContentType : text/html
restHelper : org.nuxeo.ecm.platform.ui.web.rest.RestHelper@1253a92
org.nuxeo.theme.default.engine : default
changeableDocument : DocumentModelImpl { -title: null, sessionId: default--4357942082178903487, doc id: null, name: null, path: null, ref: null, parent ref: null, data models: {files=DocumentModelImpl { schema: files,1 fields, dublincore=DocumentModelImpl { schema: dublincore,15 fields, file=DocumentModelImpl { schema: file,2 fields, publishing=DocumentModelImpl { schema: publishing,1 fields, common=DocumentModelImpl { schema: common,3 fields, webcontainer=DocumentModelImpl { schema: webcontainer,14 fields}, declaredFacets: null, declaredSchemas: null}
org.jboss.seam.core.conversationContext : ConversationContext(0NXMAIN)
DocumentView : org.nuxeo.ecm.platform.url.DocumentViewImpl@1284cf5
backendPath : [org.nuxeo.ecm.platform.ui.web.pathelements.DocumentPathElement@d48624, org.nuxeo.ecm.platform.ui.web.pathelements.DocumentPathElement@b2a7f6, org.nuxeo.ecm.platform.ui.web.pathelements.DocumentPathElement@1311632]
availableDomains : [DocumentModelImpl { -title: Domaine SCI, sessionId: default--4357942082178903487, doc id: 9418d2e8-2a32-42c9-a889-51f588739094, name: default-domain, path: /default-domain, ref: 9418d2e8-2a32-42c9-a889-51f588739094, parent ref: 6d467bfc-22df-415a-a4a4-7810b0716704, data models: {common=DocumentModelImpl { schema: common,3 fields}, declaredFacets: [Folderish, SuperSpace], declaredSchemas: [Ljava.lang.String;@1a8377c}, DocumentModelImpl { -title: Domaine TEST, sessionId: default--4357942082178903487, doc id: ed78ae29-10b4-408c-a1f5-af35fb0af21b, name: domaine-cri, path: /domaine-cri, ref: ed78ae29-10b4-408c-a1f5-af35fb0af21b, parent ref: 6d467bfc-22df-415a-a4a4-7810b0716704, data models: {common=DocumentModelImpl { schema: common,3 fields}, declaredFacets: [Folderish, SuperSpace], declaredSchemas: [Ljava.lang.String;@d2d3ab}, DocumentModelImpl { -title: Domaine Présidence, sessionId: default--4357942082178903487, doc id: bab487ed-c916-4a8c-bee0-0f31627c75a0, name: domaine-presidence, path: /domaine-presidence, ref: bab487ed-c916-4a8c-bee0-0f31627c75a0, parent ref: 6d467bfc-22df-415a-a4a4-7810b0716704, data models: {common=DocumentModelImpl { schema: common,3 fields}, declaredFacets: [Folderish, SuperSpace], declaredSchemas: [Ljava.lang.String;@146a1d3}]
user_message : Error.Unknown
--
Posted by "laliberte" at Nuxeo Discussions <http://nuxeo.org/discussions>
View the complete thread: <http://www.nuxeo.org/discussions/thread.jspa?threadID=3007#8851>
_______________________________________________
ECM mailing list
ECM@...
http://lists.nuxeo.com/mailman/listinfo/ecm
To unsubscribe, go to http://lists.nuxeo.com/mailman/options/ecm

Re: Workspace creation in user workspace

by jiveforums-ecm :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

I can't reproduce your problem. When you create a domain, aren't you directed to this domain root after creation ?
could you give me the user/permission you are using for your test ?
--
Posted by "arussel" at Nuxeo Discussions <http://nuxeo.org/discussions>
View the complete thread: <http://www.nuxeo.org/discussions/thread.jspa?threadID=3007#8860>
_______________________________________________
ECM mailing list
ECM@...
http://lists.nuxeo.com/mailman/listinfo/ecm
To unsubscribe, go to http://lists.nuxeo.com/mailman/options/ecm

Re: Workspace creation in user workspace

by jiveforums-ecm :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Sorry, I realise my explanation is not clear at all :-) The problem is not related to domain creation. It is only a concern if I have many domains to choose from.
So, if I navigate from a "domain root" to my personal workspace, workspace creation works normaly.
If I navigate from the domain list view (if I dont choose a domain first), I obtain the error I have described. I have administrator rights when doing so.
The same problem arises if I follow the link "Personal Workspace" from the "server view" page and then if I try to create a workspace (other document types work fine) in my personal workspace. Same thing if I navigate from the domain list page to my Dashboard then to my personal workspace...
So, the problem occurs only if I have not navigated to a domain before going to my personal workspace. It looks like the "current domain" is not set. More over, if I select a domain and then I create a workspace in my personal workspace, the template list displayed is the one from the current domain not the "default" one which contains (in our configuration) all the Users Workspace.

It is not a big deal actually because the users who have acces to many domains just have to choose a domain first when they first log on, but it can be confusing.

A bientôt,
Hugo Laliberté
--
Posted by "laliberte" at Nuxeo Discussions <http://nuxeo.org/discussions>
View the complete thread: <http://www.nuxeo.org/discussions/thread.jspa?threadID=3007#8863>
_______________________________________________
ECM mailing list
ECM@...
http://lists.nuxeo.com/mailman/listinfo/ecm
To unsubscribe, go to http://lists.nuxeo.com/mailman/options/ecm