Uploaded image for project: 'JBoss Portal'
  1. JBoss Portal
  2. JBPORTAL-1335

Object.xml deployment Error performing load command. No row with the given identifier exists

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Major
    • Resolution: Won't Fix
    • Affects Version/s: 2.6.Beta1
    • Fix Version/s: 2.6.1 Final, 2.8 Final
    • Component/s: Portal Core
    • Labels:
      None
    • Environment:

      Mysql 5.x db
      mysql-5.1.16-beta-osx10.4-powerpc.dmg

    • Affects:
      Compatibility/Configuration
    • Workaround:
      Workaround Exists
    • Workaround Description:
      Hide

      Only load a war once. Do not redeploy.
      Or ignore the error ?

      Show
      Only load a war once. Do not redeploy. Or ignore the error ?

      Description

      When I redeploy a war containing xxx-object.xml with data to build a portal I get error
      1) The first time the <deployment> is executed it goes ok
      2) The second time it fails.
      3) The objectNode#370 would be nice to obtain some data from the file instead of object ID
      4) I have no clue ... is this a bug or is this data error in the MySQL DB?
      5) Maybe my xxx-object.xml file is buggy ?
      6) The objectID increments one each time I redeploy the war
      7) My war is next to empty (the only objective for the war is to create portal menues etc for my application.
      8) xxxx-object.xml content below is reduced to a mimimum. ... it only declares a portal .. no pages in order to make the bug simpler ... in my realworld xml I also declare pages and windows
      9) Do we have some database consistency analysis tools ?

      9) stackdump below

      <?xml version="1.0" encoding="UTF-8"?>
      <deployments>
      <deployment>
      <parent-ref/>
      <if-exists>overwrite</if-exists>
      <portal>
      <portal-name>time</portal-name>
      <properties>
      <property>
      <name>layout.id</name>
      <value>generic</value>
      </property>
      <property>
      <name>theme.id</name>
      <value>Nphalanx</value>
      </property>
      <property>
      <name>theme.renderSetId</name>
      <value>divRenderer</value>
      </property>
      <property>
      <name>layout.strategyId</name>
      <value>maximizedRegion</value>
      </property>
      </properties>
      <supported-modes>
      <mode>view</mode>
      <mode>edit</mode>
      <mode>help</mode>
      </supported-modes>
      <supported-window-states>
      <window-state>normal</window-state>
      <window-state>minimized</window-state>
      <window-state>maximized</window-state>
      </supported-window-states>
      <security-constraint>
      <policy-permission>
      <role-name>Users</role-name>
      <action-name>viewrecursive</action-name>
      </policy-permission>
      </security-constraint>
      </portal>
      </deployment>
      </deployments>

      STACKDUMP:

      Error performing load command
      org.hibernate.ObjectNotFoundException: No row with the given identifier exists: org.jboss.portal.core.impl.model.portal.ObjectNode#370
      at org.hibernate.impl.SessionFactoryImpl$1.handleEntityNotFound(SessionFactoryImpl.java:375)
      at org.hibernate.event.def.DefaultLoadEventListener.load(DefaultLoadEventListener.java:143)
      at org.hibernate.event.def.DefaultLoadEventListener.proxyOrLoad(DefaultLoadEventListener.java:193)
      at org.hibernate.event.def.DefaultLoadEventListener.onLoad(DefaultLoadEventListener.java:101)
      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:266)
      at org.hibernate.type.ManyToOneType.assemble(ManyToOneType.java:196)
      at org.hibernate.cache.StandardQueryCache.get(StandardQueryCache.java:130)
      at org.hibernate.loader.Loader.getResultFromQueryCache(Loader.java:2085)
      at org.hibernate.loader.Loader.listUsingQueryCache(Loader.java:2050)
      at org.hibernate.loader.Loader.list(Loader.java:2020)
      at org.hibernate.loader.criteria.CriteriaLoader.list(CriteriaLoader.java:95)
      at org.hibernate.impl.SessionImpl.list(SessionImpl.java:1569)
      at org.hibernate.impl.CriteriaImpl.list(CriteriaImpl.java:283)
      at org.hibernate.impl.CriteriaImpl.uniqueResult(CriteriaImpl.java:305)
      at org.jboss.portal.core.impl.model.portal.PersistentPortalObjectContainer.getObjectNodeNoCache(PersistentPortalObjectContainer.java:266)
      at org.jboss.portal.core.impl.model.portal.PersistentPortalObjectContainer.getObjectNode(PersistentPortalObjectContainer.java:294)
      at org.jboss.portal.core.impl.model.portal.PersistentPortalObjectContainer.getObjectNode(PersistentPortalObjectContainer.java:246)
      at org.jboss.portal.core.impl.model.portal.AbstractPortalObjectContainer.setSecurityBindings(AbstractPortalObjectContainer.java:193)
      at org.jboss.portal.core.model.portal.metadata.PortalObjectMetaData.configure(PortalObjectMetaData.java:194)
      at org.jboss.portal.core.model.portal.metadata.PortalObjectMetaData.create(PortalObjectMetaData.java:129)
      at org.jboss.portal.core.deployment.jboss.ObjectDeployment.org$jboss$portal$core$deployment$jboss$ObjectDeployment$doStart$aop(ObjectDeployment.java:233)
      at org.jboss.portal.core.deployment.jboss.ObjectDeployment$doStart_7390365741110132881.invokeNext(ObjectDeployment$doStart_7390365741110132881.java)
      at org.jboss.aspects.tx.TxPolicy.invokeInOurTx(TxPolicy.java:79)
      at org.jboss.aspects.tx.TxInterceptor$Required.invoke(TxInterceptor.java:191)
      at org.jboss.portal.core.deployment.jboss.ObjectDeployment$doStart_7390365741110132881.invokeNext(ObjectDeployment$doStart_7390365741110132881.java)
      at org.jboss.portal.core.deployment.jboss.ObjectDeployment.doStart(ObjectDeployment.java)
      at org.jboss.portal.core.deployment.jboss.ObjectDeployment.start(ObjectDeployment.java:94)
      at org.jboss.portal.server.deployment.jboss.DeploymentContext.start(DeploymentContext.java:99)
      at org.jboss.portal.server.deployment.jboss.PortalDeploymentInfoContext.start(PortalDeploymentInfoContext.java:211)
      at org.jboss.portal.server.deployment.jboss.ServerDeployer.start(ServerDeployer.java:217)
      at org.jboss.deployment.MainDeployer.start(MainDeployer.java:1025)
      at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:819)
      at sun.reflect.GeneratedMethodAccessor205.invoke(Unknown Source)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      at java.lang.reflect.Method.invoke(Method.java:585)
      at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
      at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
      at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:133)
      at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
      at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:142)
      at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
      at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
      at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
      at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
      at $Proxy173.deploy(Unknown Source)
      at org.jboss.portal.server.deployment.jboss.ServerDeployer.deploy(ServerDeployer.java:259)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      at java.lang.reflect.Method.invoke(Method.java:585)
      at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
      at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
      at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
      at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
      at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
      at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
      at $Proxy146.deploy(Unknown Source)
      at org.jboss.portal.server.deployment.WebAppAdapter.deploy(WebAppAdapter.java:54)
      at org.jboss.portal.server.deployment.WebAppIntercepter.handleNotification(WebAppIntercepter.java:160)
      at sun.reflect.GeneratedMethodAccessor3.invoke(Unknown Source)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      at java.lang.reflect.Method.invoke(Method.java:585)
      at org.jboss.mx.notification.NotificationListenerProxy.invoke(NotificationListenerProxy.java:153)
      at $Proxy176.handleNotification(Unknown Source)
      at org.jboss.mx.util.JBossNotificationBroadcasterSupport.handleNotification(JBossNotificationBroadcasterSupport.java:127)
      at org.jboss.mx.util.JBossNotificationBroadcasterSupport.sendNotification(JBossNotificationBroadcasterSupport.java:108)
      at org.jboss.deployment.SubDeployerSupport.emitNotification(SubDeployerSupport.java:340)
      at org.jboss.deployment.SubDeployerSupport.start(SubDeployerSupport.java:308)
      at org.jboss.web.AbstractWebContainer.start(AbstractWebContainer.java:482)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      at java.lang.reflect.Method.invoke(Method.java:585)
      at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
      at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
      at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:133)
      at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
      at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:142)
      at org.jboss.mx.interceptor.DynamicInterceptor.invoke(DynamicInterceptor.java:97)
      at org.jboss.system.InterceptorServiceMBeanSupport.invokeNext(InterceptorServiceMBeanSupport.java:238)
      at org.jboss.ws.integration.jboss.DeployerInterceptor.start(DeployerInterceptor.java:92)
      at org.jboss.deployment.SubDeployerInterceptorSupport$XMBeanInterceptor.start(SubDeployerInterceptorSupport.java:188)
      at org.jboss.deployment.SubDeployerInterceptor.invoke(SubDeployerInterceptor.java:95)
      at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
      at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
      at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
      at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
      at $Proxy160.start(Unknown Source)
      at org.jboss.deployment.MainDeployer.start(MainDeployer.java:1025)
      at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:819)
      at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:782)
      at sun.reflect.GeneratedMethodAccessor75.invoke(Unknown Source)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      at java.lang.reflect.Method.invoke(Method.java:585)
      at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
      at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
      at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:133)
      at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
      at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:142)
      at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
      at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
      at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
      at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
      at $Proxy8.deploy(Unknown Source)
      at org.jboss.deployment.scanner.URLDeploymentScanner.deploy(URLDeploymentScanner.java:421)
      at org.jboss.deployment.scanner.URLDeploymentScanner.scan(URLDeploymentScanner.java:610)
      at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.doScan(AbstractDeploymentScanner.java:263)
      at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.loop(AbstractDeploymentScanner.java:274)
      at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.run(AbstractDeploymentScanner.java:225)

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Assignee:
                theute Thomas Heute
                Reporter:
                anders3 Anders Andersen
              • Votes:
                1 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: