[gatein-issues] [JBoss JIRA] Created: (GTNPORTAL-1387) NPE on portlet's edit mode when edit mode is not supported

Prabhat Jha (JIRA) jira-events at lists.jboss.org
Thu Jul 29 16:49:49 EDT 2010


NPE on portlet's edit mode when edit mode is not supported
----------------------------------------------------------

                 Key: GTNPORTAL-1387
                 URL: https://jira.jboss.org/browse/GTNPORTAL-1387
             Project: GateIn Portal
          Issue Type: Bug
      Security Level: Public (Everyone can see)
    Affects Versions: 3.1.0-GA
            Reporter: Prabhat Jha
             Fix For: 3.2.0-GA


I have not been able to reproduce it again but this was my workflow:

- Deploy a JSF based portlet which only supports VIEW and HELP mode
- Add the portlet to home page under Edit page and click on its edit icon (pencil).

It throws following exception

2010-07-29 14:00:33,426 ERROR [portal:UIPortletForm] The portlet null could not be loaded. Check if properly deployed.
java.lang.NullPointerException
        at java.lang.String.<init>(String.java:515)
        at org.exoplatform.portal.webui.application.UIPortletForm.getEditModeContent(UIPortletForm.java:221)
        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:597)
        at org.codehaus.groovy.runtime.callsite.PojoMetaMethodSite$PojoCachedMethodSiteNoUnwrapNoCoerce.invoke(PojoMetaMethodSite.java:229)
        at org.codehaus.groovy.runtime.callsite.PojoMetaMethodSite.call(PojoMetaMethodSite.java:52)
        at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:40)
        at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:117)
        at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:121)
        at UIPortletForm.run(UIPortletForm.gtmpl:55)
        at org.exoplatform.groovyscript.GroovyScript.render(GroovyScript.java:95)
        at org.exoplatform.groovyscript.GroovyTemplate.render(GroovyTemplate.java:112)
        at org.exoplatform.groovyscript.text.TemplateService.merge(TemplateService.java:116)
        at org.exoplatform.webui.core.lifecycle.Lifecycle.renderTemplate(Lifecycle.java:132)
        at org.exoplatform.webui.core.lifecycle.Lifecycle.processRender(Lifecycle.java:85)
        at org.exoplatform.webui.core.UIComponent.processRender(UIComponent.java:148)
        at org.exoplatform.webui.form.UIForm.processRender(UIForm.java:191)
        at org.exoplatform.webui.core.UIComponentDecorator.renderChildren(UIComponentDecorator.java:93)
        at sun.reflect.GeneratedMethodAccessor489.invoke(Unknown Source)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:597)
        at org.codehaus.groovy.runtime.callsite.PojoMetaMethodSite$PojoCachedMethodSiteNoUnwrapNoCoerce.invoke(PojoMetaMethodSite.java:229)
        at org.codehaus.groovy.runtime.callsite.PojoMetaMethodSite.call(PojoMetaMethodSite.java:52)
        at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:121)
        at UIMaskWorkspace.run(UIMaskWorkspace.gtmpl:30)
        at org.exoplatform.groovyscript.GroovyScript.render(GroovyScript.java:95)

Looking at source: 

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.jboss.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        


More information about the gatein-issues mailing list