[
https://issues.jboss.org/browse/GTNPORTAL-1362?page=com.atlassian.jira.pl...
]
Marc Zottner commented on GTNPORTAL-1362:
-----------------------------------------
Hi Thomas,
Since I updated on 5.2, I do not get any NPE as I access the different admin-portlets
(even if I drop the DB/LDAP...)
From my point of view the issue is fixed and
https://issues.jboss.org/browse/JBEPP-395 too.
best regards,
Marc
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