[jboss-jira] [JBoss JIRA] Commented: (JBPORTAL-2081) NPE when deleting a portal

Prabhat Jha (JIRA) jira-events at lists.jboss.org
Wed Jul 23 17:42:45 EDT 2008


    [ https://jira.jboss.org/jira/browse/JBPORTAL-2081?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12422312#action_12422312 ] 

Prabhat Jha commented on JBPORTAL-2081:
---------------------------------------

I took liberty to see what's happening and looks like in PortalObjectManager.destroyObject would need to check if it's default portal. Currently, it just nukes it regardless of which portal it is. I think better solution at this stage would be to force admin to mark another portal if available as default portal. 

> NPE when deleting a portal
> --------------------------
>
>                 Key: JBPORTAL-2081
>                 URL: https://jira.jboss.org/jira/browse/JBPORTAL-2081
>             Project: JBoss Portal
>          Issue Type: Bug
>      Security Level: Public(Everyone can see) 
>          Components: Portal Core
>    Affects Versions: 2.6.6 Final
>            Reporter: Prabhat Jha
>            Assignee: Thomas Heute
>            Priority: Blocker
>             Fix For: 2.6.6 Final
>
>
> I created a new portal. Added a page. So now there are two pages in portal including default. Make this portal default. Everything is fine. Now when I delete this portal, I get NPE. I think problem is because it's the default portal. 
> avax.servlet.ServletException: java.lang.NullPointerException
> 	org.jboss.portal.server.servlet.PortalServlet.service(PortalServlet.java:276)
> 	javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
> 	org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
> root cause
> java.lang.NullPointerException
> 	org.jboss.portal.core.aspects.controller.PageCustomizerInterceptor.injectDashboardNav(PageCustomizerInterceptor.java:310)
> 	org.jboss.portal.core.aspects.controller.PageCustomizerInterceptor.invoke(PageCustomizerInterceptor.java:165)
> 	org.jboss.portal.core.controller.ControllerInterceptor.invoke(ControllerInterceptor.java:40)
> 	org.jboss.portal.common.invocation.Invocation.invokeNext(Invocation.java:115)
> 	org.jboss.portal.core.aspects.controller.PolicyEnforcementInterceptor.invoke(PolicyEnforcementInterceptor.java:78)
> 	org.jboss.portal.core.controller.ControllerInterceptor.invoke(ControllerInterceptor.java:40)
> 	org.jboss.portal.common.invocation.Invocation.invokeNext(Invocation.java:115)
> 	org.jboss.portal.core.aspects.controller.node.PortalNodeInterceptor.invoke(PortalNodeInterceptor.java:81)
> 	org.jboss.portal.core.controller.ControllerInterceptor.invoke(ControllerInterceptor.java:40)
> 	org.jboss.portal.common.invocation.Invocation.invokeNext(Invocation.java:115)
> 	org.jboss.portal.core.aspects.controller.ControlInterceptor.invoke(ControlInterceptor.java:56)
> 	org.jboss.portal.core.controller.ControllerInterceptor.invoke(ControllerInterceptor.java:40)
> 	org.jboss.portal.common.invocation.Invocation.invokeNext(Invocation.java:115)
> 	org.jboss.portal.core.aspects.controller.NavigationalStateInterceptor.invoke(NavigationalStateInterceptor.java:42)
> 	org.jboss.portal.core.controller.ControllerInterceptor.invoke(ControllerInterceptor.java:40)
> 	org.jboss.portal.common.invocation.Invocation.invokeNext(Invocation.java:115)
> 	org.jboss.portal.core.controller.ajax.AjaxInterceptor.invoke(AjaxInterceptor.java:56)
> 	org.jboss.portal.core.controller.ControllerInterceptor.invoke(ControllerInterceptor.java:40)
> 	org.jboss.portal.common.invocation.Invocation.invokeNext(Invocation.java:115)
> 	org.jboss.portal.core.aspects.controller.ResourceAcquisitionInterceptor.invoke(ResourceAcquisitionInterceptor.java:50)
> 	org.jboss.portal.core.controller.ControllerInterceptor.invoke(ControllerInterceptor.java:40)
> 	org.jboss.portal.common.invocation.Invocation.invokeNext(Invocation.java:115)
> 	org.jboss.portal.common.invocation.Invocation.invoke(Invocation.java:157)
> 	org.jboss.portal.core.controller.ControllerContext.execute(ControllerContext.java:134)
> 	org.jboss.portal.core.model.portal.PortalObjectResponseHandler.processCommandResponse(PortalObjectResponseHandler.java:81)
> 	org.jboss.portal.core.controller.classic.ClassicResponseHandler.processHandlers(ClassicResponseHandler.java:79)
> 	org.jboss.portal.core.controller.classic.ClassicResponseHandler.processCommandResponse(ClassicResponseHandler.java:53)
> 	org.jboss.portal.core.controller.handler.ResponseHandlerSelector.processCommandResponse(ResponseHandlerSelector.java:70)
> 	org.jboss.portal.core.controller.Controller.processCommandResponse(Controller.java:271)
> 	org.jboss.portal.core.controller.Controller.processCommand(Controller.java:259)
> 	org.jboss.portal.core.controller.Controller.handle(Controller.java:217)
> 	org.jboss.portal.server.RequestControllerDispatcher.invoke(RequestControllerDispatcher.java:51)
> 	org.jboss.portal.common.invocation.Invocation.invokeNext(Invocation.java:131)
> 	org.jboss.portal.core.cms.aspect.IdentityBindingInterceptor.invoke(IdentityBindingInterceptor.java:47)
> 	org.jboss.portal.server.ServerInterceptor.invoke(ServerInterceptor.java:38)
> 	org.jboss.portal.common.invocation.Invocation.invokeNext(Invocation.java:115)
> 	org.jboss.portal.server.aspects.server.ContentTypeInterceptor.invoke(ContentTypeInterceptor.java:68)
> 	org.jboss.portal.server.ServerInterceptor.invoke(ServerInterceptor.java:38)
> 	org.jboss.portal.common.invocation.Invocation.invokeNext(Invocation.java:115)
> 	org.jboss.portal.core.aspects.server.PortalContextPathInterceptor.invoke(PortalContextPathInterceptor.java:45)
> 	org.jboss.portal.server.ServerInterceptor.invoke(ServerInterceptor.java:38)
> 	org.jboss.portal.common.invocation.Invocation.invokeNext(Invocation.java:115)
> 	org.jboss.portal.core.aspects.server.LocaleInterceptor.invoke(LocaleInterceptor.java:96)
> 	org.jboss.portal.server.ServerInterceptor.invoke(ServerInterceptor.java:38)
> 	org.jboss.portal.common.invocation.Invocation.invokeNext(Invocation.java:115)
> 	org.jboss.portal.core.aspects.server.UserInterceptor.invoke(UserInterceptor.java:246)
> 	org.jboss.portal.server.ServerInterceptor.invoke(ServerInterceptor.java:38)
> 	org.jboss.portal.common.invocation.Invocation.invokeNext(Invocation.java:115)
> 	org.jboss.portal.server.aspects.server.SignOutInterceptor.invoke(SignOutInterceptor.java:98)
> 	org.jboss.portal.server.ServerInterceptor.invoke(ServerInterceptor.java:38)
> 	org.jboss.portal.common.invocation.Invocation.invokeNext(Invocation.java:115)
> 	org.jboss.portal.core.impl.api.user.UserEventBridgeTriggerInterceptor.invoke(UserEventBridgeTriggerInterceptor.java:65)
> 	org.jboss.portal.server.ServerInterceptor.invoke(ServerInterceptor.java:38)
> 	org.jboss.portal.common.invocation.Invocation.invokeNext(Invocation.java:115)
> 	org.jboss.portal.core.aspects.server.IdentityCacheInterceptor.invoke(IdentityCacheInterceptor.java:68)
> 	org.jboss.portal.server.ServerInterceptor.invoke(ServerInterceptor.java:38)
> 	org.jboss.portal.common.invocation.Invocation.invokeNext(Invocation.java:115)
> 	org.jboss.portal.core.aspects.server.TransactionInterceptor.org$jboss$portal$core$aspects$server$TransactionInterceptor$invoke$aop(TransactionInterceptor.java:49)
> 	org.jboss.portal.core.aspects.server.TransactionInterceptor$invoke_N5143606530999904530.invokeNext(TransactionInterceptor$invoke_N5143606530999904530.java)
> 	org.jboss.aspects.tx.TxPolicy.invokeInOurTx(TxPolicy.java:79)
> 	org.jboss.aspects.tx.TxInterceptor$RequiresNew.invoke(TxInterceptor.java:253)
> 	org.jboss.portal.core.aspects.server.TransactionInterceptor$invoke_N5143606530999904530.invokeNext(TransactionInterceptor$invoke_N5143606530999904530.java)
> 	org.jboss.aspects.tx.TxPolicy.invokeInOurTx(TxPolicy.java:79)
> 	org.jboss.aspects.tx.TxInterceptor$RequiresNew.invoke(TxInterceptor.java:262)
> 	org.jboss.portal.core.aspects.server.TransactionInterceptor$invoke_N5143606530999904530.invokeNext(TransactionInterceptor$invoke_N5143606530999904530.java)
> 	org.jboss.portal.core.aspects.server.TransactionInterceptor.invoke(TransactionInterceptor.java)
> 	org.jboss.portal.server.ServerInterceptor.invoke(ServerInterceptor.java:38)
> 	org.jboss.portal.common.invocation.Invocation.invokeNext(Invocation.java:115)
> 	org.jboss.portal.server.aspects.LockInterceptor$InternalLock.invoke(LockInterceptor.java:69)
> 	org.jboss.portal.server.aspects.LockInterceptor.invoke(LockInterceptor.java:130)
> 	org.jboss.portal.common.invocation.Invocation.invokeNext(Invocation.java:115)
> 	org.jboss.portal.common.invocation.Invocation.invoke(Invocation.java:157)
> 	org.jboss.portal.server.servlet.PortalServlet.service(PortalServlet.java:250)

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

        



More information about the jboss-jira mailing list