Trunk is ok now, thanks for you help

Sean Radford a écrit :
Just done a clean build of the HEAD and get the following exception when trying to create a workspace - a bit of a biggy in terms of using the UI ;-)

Caused by: javax.el.ELException: /create_workspace.xhtml @21,110 value="#{messages['title.create.document']} #{messages[typesTool.selectedType.label]}": java.lang.NullPointerException at com.sun.facelets.el.TagValueExpression.getValue(TagValueExpression.java:76)
       at javax.faces.component.UIOutput.getValue(UIOutput.java:173)
       ... 68 more
Caused by: java.lang.NullPointerException
at org.nuxeo.ecm.webapp.action.TypesTool.getSelectedType(TypesTool.java:116) at org.nuxeo.ecm.webapp.action.TypesTool$$FastClassByCGLIB$$edc77ffe.invoke(<generated>)
       at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
at org.jboss.seam.intercept.RootInvocationContext.proceed(RootInvocationContext.java:45) at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:55) at org.jboss.seam.interceptors.BijectionInterceptor.bijectNonreentrantComponent(BijectionInterceptor.java:79) at org.jboss.seam.interceptors.BijectionInterceptor.bijectComponent(BijectionInterceptor.java:58)
       at sun.reflect.GeneratedMethodAccessor168.invoke(Unknown Source)
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:18)
at org.jboss.seam.intercept.Interceptor.aroundInvoke(Interceptor.java:169) at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:64) at org.jboss.seam.interceptors.ManagedEntityIdentityInterceptor.aroundInvoke(ManagedEntityIdentityInterceptor.java:36)


I've tried to have a brief look into what the problem is but can't quite make it out. A Seam typesTool component is being instantiated and the correct selectedType set. However, when the create_workspace page is subsequently being rendered a new typesTool is created and hence the selectedType null. The typesTool is set to CONVERSATION scope, and so presumably the first conversation where the typesTool is being set is not propagating to the page rendering.

Hope that helps, cheers,

Sean


--
Anahide Tchertchian, Nuxeo
Mail: [EMAIL PROTECTED] - Tel: +33 (0)1 40 33 79 87
http://www.nuxeo.com - http://www.nuxeo.org
_______________________________________________
ECM mailing list
[email protected]
http://lists.nuxeo.com/mailman/listinfo/ecm

Reply via email to