[gatein-issues] [JBoss JIRA] (GTNPORTAL-1362) gatein-jcr and gatein-idm Independence issue - drpping gatein-jcr db brings NPE error when accessing admin portlets.

Thomas Heute (Commented) (JIRA) jira-events at lists.jboss.org
Thu Jan 5 12:55:09 EST 2012


    [ https://issues.jboss.org/browse/GTNPORTAL-1362?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12654134#comment-12654134 ] 

Thomas Heute commented on GTNPORTAL-1362:
-----------------------------------------

Marc, do you mean that this bug doesn't exist anymore in 5.2 or that you don't need to delete your DB and don't face it ?

I'm not able to reproduce so far.
                
> gatein-jcr and gatein-idm Independence issue - drpping gatein-jcr db brings NPE error when accessing admin portlets.
> --------------------------------------------------------------------------------------------------------------------
>
>                 Key: GTNPORTAL-1362
>                 URL: https://issues.jboss.org/browse/GTNPORTAL-1362
>             Project: GateIn Portal
>          Issue Type: Task
>      Security Level: Public(Everyone can see) 
>    Affects Versions: 3.0.0-GA
>            Reporter: Gary Hu
>
> We are running into a situation where the Independence of gatein-jcr and gatein-idm dbs is concerned. 
> Here is how to reproduce the issue:
> 1) set up gatein-jcr and gatein-idm using mysql dbs.
> 2) start the server and create a new user via the UI.
> 3) stop the server and drop the gatein-jcr db.
> 4) delete the data/tmp/work folders and restart the server.
> 5) it's ok to login into the portal using the newly created user account. but if accessing the admin portlets, for example, the OrganizationPortlet, an NPE exception is thrown.
> ERROR [org.exoplatform.webui.application.portlet.PortletApplicationController] (http-0.0.0.0-8080-2) Error while rendering the porlet
> org.exoplatform.groovyscript.TemplateRuntimeException: Groovy template exception at DataText[pos=Position[col=1,line=24],data=	boolean userCouldEditPage = uicomponent.hasEditPermissionOnPage();] for template app:/groovy/admintoolbar/webui/component/UIAdminToolbarPortlet.gtmpl
> 	at org.exoplatform.groovyscript.GroovyScript.buildRuntimeException(GroovyScript.java:162)
>        ...
> Caused by: java.lang.NullPointerException
> 	at org.exoplatform.toolbar.webui.component.UIAdminToolbarPortlet.hasEditPermissionOnPage(UIAdmi
>         ...
> Debugging the code shows that the call 
>        UIPageBody pageBody = uiWorkingWS.findFirstComponentOfType(UIPageBody.class);
> always returns null.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.jboss.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        


More information about the gatein-issues mailing list