[jboss-jira] [JBoss JIRA] Commented: (JBPORTAL-1879) problem accessing a portlet deployed in a cluster

Prabhat Jha (JIRA) jira-events at lists.jboss.org
Tue Jun 10 14:38:52 EDT 2008


    [ http://jira.jboss.com/jira/browse/JBPORTAL-1879?page=comments#action_12416327 ] 
            
Prabhat Jha commented on JBPORTAL-1879:
---------------------------------------

To take this one step ahead, I let about 5 threads hit server and as expected it hang but I wanted to see what happens after that. After about 5 minutes, I see following in server log:

2008-06-10 14:19:29,360 INFO  [org.jboss.system.server.Server] JBoss (MX MicroKernel) [4.2.2.GA (build: SVNTag=JBoss_4_2_2_GA date=200710221139)] Started in 40s:241ms
2008-06-10 14:25:14,808 ERROR [org.apache.catalina.core.ContainerBase.[jboss.web].[localhost].[/portal-core].[jsp]] Servlet.service() for servlet jsp threw exception
java.lang.NullPointerException
        at org.hibernate.engine.loading.LoadContexts.cleanup(LoadContexts.java:89)
        at org.hibernate.engine.loading.CollectionLoadContext.endLoadingCollections(CollectionLoadContext.java:203)
        at org.hibernate.loader.Loader.endCollectionLoad(Loader.java:877)
        at org.hibernate.loader.Loader.initializeEntitiesAndCollections(Loader.java:865)
        at org.hibernate.loader.Loader.doQuery(Loader.java:729)
        at org.hibernate.loader.Loader.doQueryAndInitializeNonLazyCollections(Loader.java:236)
        at org.hibernate.loader.Loader.loadEntity(Loader.java:1860)
        at org.hibernate.loader.entity.AbstractEntityLoader.load(AbstractEntityLoader.java:48)
  at org.hibernate.loader.entity.AbstractEntityLoader.load(AbstractEntityLoader.java:42)
        at org.hibernate.persister.entity.AbstractEntityPersister.load(AbstractEntityPersister.java:3044)
        at org.hibernate.event.def.DefaultLoadEventListener.loadFromDatasource(DefaultLoadEventListener.java:395)
        at org.hibernate.event.def.DefaultLoadEventListener.doLoad(DefaultLoadEventListener.java:375)
        at org.hibernate.event.def.DefaultLoadEventListener.load(DefaultLoadEventListener.java:139)
        at org.hibernate.event.def.DefaultLoadEventListener.proxyOrLoad(DefaultLoadEventListener.java:195)
        at org.hibernate.event.def.DefaultLoadEventListener.onLoad(DefaultLoadEventListener.java:103)
        at org.hibernate.impl.SessionImpl.fireLoad(SessionImpl.java:878)
        at org.hibernate.impl.SessionImpl.internalLoad(SessionImpl.java:846)
        at org.hibernate.type.EntityType.resolveIdentifier(EntityType.java:557)
        at org.hibernate.type.EntityType.resolve(EntityType.java:379)
        at org.hibernate.engine.TwoPhaseLoad.initializeEntity(TwoPhaseLoad.java:116)
        at org.hibernate.loader.Loader.initializeEntitiesAndCollections(Loader.java:854)
        at org.hibernate.loader.Loader.doQuery(Loader.java:729)
        at org.hibernate.loader.Loader.doQueryAndInitializeNonLazyCollections(Loader.java:236)
        at org.hibernate.loader.Loader.loadCollection(Loader.java:1994)
        at org.hibernate.loader.collection.CollectionLoader.initialize(CollectionLoader.java:36)
        at org.hibernate.persister.collection.AbstractCollectionPersister.initialize(AbstractCollectionPersister.java:565)
        at org.hibernate.event.def.DefaultInitializeCollectionEventListener.onInitializeCollection(DefaultInitializeCollectionEventListener.java:60)
        at org.hibernate.impl.SessionImpl.initializeCollection(SessionImpl.java:1716)
        at org.hibernate.collection.AbstractPersistentCollection.initialize(AbstractPersistentCollection.java:344)
        at org.hibernate.collection.AbstractPersistentCollection.read(AbstractPersistentCollection.java:86)
        at org.hibernate.collection.PersistentMap.entrySet(PersistentMap.java:242)
  at java.util.AbstractMap.putAll(AbstractMap.java:314)
        at java.util.TreeMap.putAll(TreeMap.java:328)
        at java.util.TreeMap.<init>(TreeMap.java:156)
        at org.jboss.portal.core.impl.model.portal.PortalObjectImpl$ChildrenCollection$ChildrenIterator.<init>(PortalObjectImpl.java:320)
        at org.jboss.portal.core.impl.model.portal.PortalObjectImpl$ChildrenCollection.iterator(PortalObjectImpl.java:284)
        at org.jboss.portal.core.impl.api.node.PortalNodeImpl$NodeList.buildChildMap(PortalNodeImpl.java:379)
        at org.jboss.portal.core.impl.api.node.PortalNodeImpl$Siblings.createMap(PortalNodeImpl.java:440)
        at org.jboss.portal.core.impl.api.node.PortalNodeImpl$NodeList.getMap(PortalNodeImpl.java:355)
        at org.jboss.portal.core.impl.api.node.PortalNodeImpl$NodeList.getList(PortalNodeImpl.java:339)
        at org.jboss.portal.core.impl.api.node.PortalNodeImpl.getChildren(PortalNodeImpl.java:228)
        at org.apache.jsp.WEB_002dINF.jsp.header.tabs_jsp._jspService(tabs_jsp.java:90)
        at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
        at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:373)


I also see

2008-06-10 14:25:14,827 ERROR [org.jboss.portal.security.PortalPermissionCollection] Permission check against the repository failed
org.hibernate.HibernateException: Current transaction is not in progress
        at org.hibernate.context.JTASessionContext.currentSession(JTASessionContext.java:67)
        at org.hibernate.impl.SessionFactoryImpl.getCurrentSession(SessionFactoryImpl.java:544)
        at org.jboss.portal.core.impl.model.portal.PersistentPortalObjectContainer.getObjectNode(PersistentPortalObjectContainer.java:252)
        at org.jboss.portal.core.impl.model.portal.AbstractPortalObjectContainer.getPermission(AbstractPortalObjectContainer.java:166)
        at org.jboss.portal.core.model.portal.PortalObjectPermission.implies(PortalObjectPermission.java:227)
        at org.jboss.portal.security.PortalPermissionCollection.implies(PortalPermissionCollection.java:96)
        at org.jboss.portal.security.impl.jacc.Permissions.implies(Permissions.java:93)
        at org.jboss.portal.security.impl.jacc.SecurityContext.implies(SecurityContext.java:81)
        at org.jboss.portal.security.impl.jacc.JACCPortalAuthorizationManager.internalCheckPermission(JACCPortalAuthorizationManager.java:272)
        at org.jboss.portal.security.impl.jacc.JACCPortalAuthorizationManager.checkPermission(JACCPortalAuthorizationManager.java:301)
        at org.jboss.portal.security.impl.jacc.JACCPortalAuthorizationManager.checkPermission(JACCPortalAuthorizationManager.java:326)
  at org.jboss.portal.core.aspects.controller.PageCustomizerInterceptor.injectDashboardNav(PageCustomizerInterceptor.java:287)
        at org.jboss.portal.core.aspects.controller.PageCustomizerInterceptor.invoke(PageCustomizerInterceptor.java:164)
        at org.jboss.portal.core.controller.ControllerInterceptor.invoke(ControllerInterceptor.java:40)
        at org.jboss.portal.common.invocation.Invocation.invokeNext(Invocation.java:115)
        at org.jboss.portal.core.aspects.controller.PolicyEnforcementInterceptor.invoke(PolicyEnforcementInterceptor.java:78)
        at org.jboss.portal.core.controller.ControllerInterceptor.invoke(ControllerInterceptor.java:40)
        at org.jboss.portal.common.invocation.Invocation.invokeNext(Invocation.java:115)
        at org.jboss.portal.core.aspects.controller.node.PortalNodeInterceptor.invoke(PortalNodeInterceptor.java:81)
        at org.jboss.portal.core.controller.ControllerInterceptor.invoke(ControllerInterceptor.java:40)
        at org.jboss.portal.common.invocation.Invocation.invokeNext(Invocation.java:115)
        at org.jboss.portal.core.aspects.controller.NavigationalStateInterceptor.invoke(NavigationalStateInterceptor.java:42)
        at org.jboss.portal.core.controller.ControllerInterceptor.invoke(ControllerInterceptor.java:40)
        at org.jboss.portal.common.invocation.Invocation.invokeNext(Invocation.java:115)
        at org.jboss.portal.core.controller.ajax.AjaxInterceptor.invoke(AjaxInterceptor.java:56)
        at org.jboss.portal.core.controller.ControllerInterceptor.invoke(ControllerInterceptor.java:40)
        at org.jboss.portal.common.invocation.Invocation.invokeNext(Invocation.java:115)
        at org.jboss.portal.core.aspects.controller.ResourceAcquisitionInterceptor.invoke(ResourceAcquisitionInterceptor.java:50)
        at org.jboss.portal.core.controller.ControllerInterceptor.invoke(ControllerInterceptor.java:40)
        at org.jboss.portal.common.invocation.Invocation.invokeNext(Invocation.java:115)
        at org.jboss.portal.common.invocation.Invocation.invoke(Invocation.java:157)



> problem accessing a portlet deployed in a cluster
> -------------------------------------------------
>
>                 Key: JBPORTAL-1879
>                 URL: http://jira.jboss.com/jira/browse/JBPORTAL-1879
>             Project: JBoss Portal
>          Issue Type: Bug
>      Security Level: Public(Everyone can see) 
>          Components: Portal Server
>    Affects Versions: 2.6.4 Final
>            Reporter: Prabhat Jha
>         Assigned To: Thomas Heute
>             Fix For: 2.7 Final
>
>         Attachments: cluster-jam.zip
>
>
> This is something I had noticed in my scalability test but at that time I thought I may have done something stupid and later, I saw a similar note in support case.
> I have two portal servers (ports-01, ports-02) configuration where nullPortletPage.war is predeployed before servers are started. If I start both servers simultaneously and access http://localhost:8280/portal/portal/default/NullPortletPage then I get a 404 error with "The requested resource () is not available". I am able to access the page if I hit http://localhost:8180/portal/portal/default/NullPortletPage (notice the port) .
> What is more interesting is that when I start servers one by one i.e. start second server when first one has already started, then I can access the NullPortletPage in both servers. Since there is a work around, let's fix this by 2.6.5 release.

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

        



More information about the jboss-jira mailing list