3 Replies Latest reply on Dec 29, 2008 3:15 AM by Hasan

    JBoss load command and PermGen error

    Karim Mechhoure Newbie

      Hi,

      I'm runing JBoss AS (4.2.2) clustered on two redhat machines and JBoss Portal(2.6.4) .At first launch, I've got this error :

      18:03:18,859 INFO [UpdateTimestampsCache] starting update timestamps cache at region: org.hibernate.cache.UpdateTimestampsCache
      18:03:18,860 INFO [StandardQueryCache] starting query cache at region: org.hibernate.cache.StandardQueryCache
      18:03:21,795 INFO [DefaultLoadEventListener] Error performing load command
      org.hibernate.InstantiationException: Cannot instantiate abstract class or interface: org.jboss.portal.core.impl.model.portal.PortalObjectImpl
       at org.hibernate.tuple.PojoInstantiator.instantiate(PojoInstantiator.java:78)
       at org.hibernate.tuple.PojoInstantiator.instantiate(PojoInstantiator.java:100)
       at org.hibernate.tuple.entity.AbstractEntityTuplizer.instantiate(AbstractEntityTuplizer.java:351)
       at org.hibernate.persister.entity.AbstractEntityPersister.instantiate(AbstractEntityPersister.java:3606)
       at org.hibernate.impl.SessionImpl.instantiate(SessionImpl.java:1275)
       at org.hibernate.impl.SessionImpl.instantiate(SessionImpl.java:1264)
       at org.hibernate.loader.Loader.instanceNotYetLoaded(Loader.java:1299)
       at org.hibernate.loader.Loader.getRow(Loader.java:1206)
       at org.hibernate.loader.Loader.getRowFromResultSet(Loader.java:580)
       at org.hibernate.loader.Loader.doQuery(Loader.java:701)
       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)
      


      And then while browsing the portal, I've got a PermGen error.
      I've already tried to add more memory to the JVM (-Xms1024m -Xmx1024m) but the problem remains.

      Anybody ? Please?






        • 1. Re: JBoss load command and PermGen error
          Jorge Vitor Newbie

          This will probly solve your permgen problems, adjust values as needed:

          set JAVA_OPTS=%JAVA_OPTS% -Xms512m -Xmx1024m -XX:PermSize=256m -XX:MaxPermSize=512m

          • 2. Re: JBoss load command and PermGen error
            Karim Mechhoure Newbie

            Yes, it did !!
            Thanks for your answer.

            For the load command error, I tried to reinstall all (JBoss AS and portal) and it works fine now.
            Gooood!

            Thanks.

            • 3. Re: JBoss load command and PermGen error
              Hasan Newbie

              i configured JBoss portal 2.6.4 with JBOss AS 4.3 with Mysql as DB.

              In CMS Tab of Admin section i got this.




              javax.servlet.ServletException: org.hibernate.InstantiationException: Cannot instantiate abstract class or interface: org.jboss.portal.core.impl.model.portal.PortalObjectImpl
              org.jboss.portal.server.servlet.PortalServlet.service(PortalServlet.java:276)
              javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
              org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)


              root cause

              org.hibernate.InstantiationException: Cannot instantiate abstract class or interface: org.jboss.portal.core.impl.model.portal.PortalObjectImpl
              org.hibernate.tuple.PojoInstantiator.instantiate(PojoInstantiator.java:78)
              org.hibernate.tuple.PojoInstantiator.instantiate(PojoInstantiator.java:100)
              org.hibernate.tuple.entity.AbstractEntityTuplizer.instantiate(AbstractEntityTuplizer.java:351)
              org.hibernate.persister.entity.AbstractEntityPersister.instantiate(AbstractEntityPersister.java:3606)
              org.hibernate.impl.SessionImpl.instantiate(SessionImpl.java:1275)
              org.hibernate.impl.SessionImpl.instantiate(SessionImpl.java:1264)
              org.hibernate.loader.Loader.instanceNotYetLoaded(Loader.java:1299)
              org.hibernate.loader.Loader.getRow(Loader.java:1206)
              org.hibernate.loader.Loader.getRowFromResultSet(Loader.java:580)
              org.hibernate.loader.Loader.doQuery(Loader.java:701)
              org.hibernate.loader.Loader.doQueryAndInitializeNonLazyCollections(Loader.java:236)
              org.hibernate.loader.Loader.loadEntity(Loader.java:1860)
              org.hibernate.loader.entity.AbstractEntityLoader.load(AbstractEntityLoader.java:48)
              org.hibernate.loader.entity.AbstractEntityLoader.load(AbstractEntityLoader.java:42)
              org.hibernate.persister.entity.AbstractEntityPersister.load(AbstractEntityPersister.java:3044)
              org.hibernate.event.def.DefaultLoadEventListener.loadFromDatasource(DefaultLoadEventListener.java:395)
              org.hibernate.event.def.DefaultLoadEventListener.doLoad(DefaultLoadEventListener.java:375)
              org.hibernate.event.def.DefaultLoadEventListener.load(DefaultLoadEventListener.java:139)
              org.hibernate.event.def.DefaultLoadEventListener.proxyOrLoad(DefaultLoadEventListener.java:195)
              org.hibernate.event.def.DefaultLoadEventListener.onLoad(DefaultLoadEventListener.java:103)
              org.hibernate.impl.SessionImpl.fireLoad(SessionImpl.java:878)
              org.hibernate.impl.SessionImpl.internalLoad(SessionImpl.java:846)
              org.hibernate.type.EntityType.resolveIdentifier(EntityType.java:567)
              org.hibernate.type.EntityType.resolve(EntityType.java:389)
              org.hibernate.engine.TwoPhaseLoad.initializeEntity(TwoPhaseLoad.java:116)
              org.hibernate.loader.Loader.initializeEntitiesAndCollections(Loader.java:854)
              org.hibernate.loader.Loader.doQuery(Loader.java:729)
              org.hibernate.loader.Loader.doQueryAndInitializeNonLazyCollections(Loader.java:236)
              org.hibernate.loader.Loader.loadEntity(Loader.java:1907)
              org.hibernate.loader.entity.CollectionElementLoader.loadElement(CollectionElementLoader.java:72)
              org.hibernate.persister.collection.OneToManyPersister.getElementByIndex(OneToManyPersister.java:360)
              org.hibernate.collection.AbstractPersistentCollection.readElementByIndex(AbstractPersistentCollection.java:158)
              org.hibernate.collection.PersistentMap.get(PersistentMap.java:146)
              org.jboss.portal.core.impl.model.portal.PortalObjectImpl.getChild(PortalObjectImpl.java:427)
              org.jboss.portal.core.aspects.controller.PageCustomizerInterceptor.injectDashboardNav(PageCustomizerInterceptor.java:250)
              org.jboss.portal.core.aspects.controller.PageCustomizerInterceptor.invoke(PageCustomizerInterceptor.java:164)
              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.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:74)
              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.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)
              javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
              org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)