1 Reply Latest reply on Aug 4, 2006 2:25 PM by Danny Hon

    JBP 2.4.0 CR3 Error

    Danny Hon Newbie

      I built the portal (2.4 CR3) and WSRP from CVS source, and deployed them to AS 4.0.4GA. When I first started the server, I got the following errors:

      13:09:51,872 WARN [TxConnectionManager] Connection error occured: org.jboss.resource.connectionmanager.TxConnectionMana
      ger$TxConnectionEventListener@4cbcaf[state=NORMAL mc=org.jboss.resource.adapter.jdbc.local.LocalManagedConnection@19e543
      1 handles=1 lastUse=1154714991872 permit=true trackByTx=true mcp=org.jboss.resource.connectionmanager.JBossManagedConnec
      tionPool$OnePool@1a97149 context=org.jboss.resource.connectionmanager.InternalManagedConnectionPool@14c759a xaResource=o
      rg.jboss.resource.connectionmanager.TxConnectionManager$LocalXAResource@bce28a txSync=null]
      java.lang.ArrayIndexOutOfBoundsException
      at java.lang.System.arraycopy(Native Method)
      at org.jboss.portal.jems.hibernate.ByteArrayBlob.getBytes(ByteArrayBlob.java:74)
      at com.mysql.jdbc.PreparedStatement.setBlob(PreparedStatement.java:312)
      at org.jboss.resource.adapter.jdbc.WrappedPreparedStatement.setBlob(WrappedPreparedStatement.java:517)
      at org.jboss.portal.jems.hibernate.CacheableBlobUserType.nullSafeSet(CacheableBlobUserType.java:97)
      at org.hibernate.type.CustomType.nullSafeSet(CustomType.java:145)
      at org.hibernate.persister.entity.AbstractEntityPersister.dehydrate(AbstractEntityPersister.java:1910)
      at org.hibernate.persister.entity.AbstractEntityPersister.dehydrate(AbstractEntityPersister.java:1887)
      at org.hibernate.persister.entity.AbstractEntityPersister$1.bindValues(AbstractEntityPersister.java:2038)
      at org.hibernate.id.insert.AbstractReturningDelegate.performInsert(AbstractReturningDelegate.java:32)
      at org.hibernate.persister.entity.AbstractEntityPersister.insert(AbstractEntityPersister.java:2044)
      at org.hibernate.persister.entity.AbstractEntityPersister.insert(AbstractEntityPersister.java:2481)
      at org.hibernate.action.EntityIdentityInsertAction.execute(EntityIdentityInsertAction.java:47)
      at org.hibernate.engine.ActionQueue.execute(ActionQueue.java:248)
      at org.hibernate.event.def.AbstractSaveEventListener.performSaveOrReplicate(AbstractSaveEventListener.java:290)
      at org.hibernate.event.def.AbstractSaveEventListener.performSave(AbstractSaveEventListener.java:180)
      at org.hibernate.event.def.AbstractSaveEventListener.saveWithGeneratedId(AbstractSaveEventListener.java:108)
      at org.hibernate.event.def.DefaultSaveOrUpdateEventListener.saveWithGeneratedOrRequestedId(DefaultSaveOrUpdateEv
      entListener.java:186)
      at org.hibernate.event.def.DefaultSaveEventListener.saveWithGeneratedOrRequestedId(DefaultSaveEventListener.java
      :33)
      at org.hibernate.event.def.DefaultSaveOrUpdateEventListener.entityIsTransient(DefaultSaveOrUpdateEventListener.j
      ava:175)
      at org.hibernate.event.def.DefaultSaveEventListener.performSaveOrUpdate(DefaultSaveEventListener.java:27)
      at org.hibernate.event.def.DefaultSaveOrUpdateEventListener.onSaveOrUpdate(DefaultSaveOrUpdateEventListener.java
      :70)
      at org.hibernate.impl.SessionImpl.fireSave(SessionImpl.java:537)
      at org.hibernate.impl.SessionImpl.save(SessionImpl.java:525)
      at org.hibernate.impl.SessionImpl.save(SessionImpl.java:521)
      at org.jboss.portal.cms.hibernate.HibernateStore$1.close(HibernateStore.java:1049)
      at sun.nio.cs.StreamEncoder$CharsetSE.implClose(StreamEncoder.java:431)
      at sun.nio.cs.StreamEncoder.close(StreamEncoder.java:160)
      at java.io.OutputStreamWriter.close(OutputStreamWriter.java:222)
      at org.apache.jackrabbit.core.RepositoryImpl.loadRootNodeId(RepositoryImpl.java:429)
      at org.apache.jackrabbit.core.RepositoryImpl.(RepositoryImpl.java:214)
      at org.apache.jackrabbit.core.RepositoryImpl.create(RepositoryImpl.java:483)
      at org.jboss.portal.cms.impl.jcr.jackrabbit.JackrabbitJCRService.start(JackrabbitJCRService.java:102)
      at org.jboss.portal.cms.impl.jcr.JCRCMS.startJCR(JCRCMS.java:200)
      at org.jboss.portal.cms.impl.jcr.JCRCMS.startService(JCRCMS.java:167)
      at org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupport.java:289)
      at org.jboss.system.ServiceMBeanSupport.start(ServiceMBeanSupport.java:196)
      at org.jboss.portal.common.system.AbstractJBossService.start(AbstractJBossService.java:72)
      at sun.reflect.GeneratedMethodAccessor15.invoke(Unknown Source)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)

      ....

      13:09:52,137 WARN [JDBCExceptionReporter] SQL Error: 0, SQLState: null
      13:09:52,137 ERROR [JDBCExceptionReporter] Error; - nested throwable: (java.lang.ArrayIndexOutOfBoundsException)
      13:09:52,137 ERROR [HibernateStore] failed to create new file: /meta/rootUUID
      org.hibernate.exception.GenericJDBCException: could not insert: [org.jboss.portal.cms.hibernate.RepositoryEntry]
      at org.hibernate.exception.SQLStateConverter.handledNonSpecificException(SQLStateConverter.java:103)
      at org.hibernate.exception.SQLStateConverter.convert(SQLStateConverter.java:91)
      at org.hibernate.exception.JDBCExceptionHelper.convert(JDBCExceptionHelper.java:43)
      at org.hibernate.id.insert.AbstractReturningDelegate.performInsert(AbstractReturningDelegate.java:40)
      at org.hibernate.persister.entity.AbstractEntityPersister.insert(AbstractEntityPersister.java:2044)
      at org.hibernate.persister.entity.AbstractEntityPersister.insert(AbstractEntityPersister.java:2481)
      at org.hibernate.action.EntityIdentityInsertAction.execute(EntityIdentityInsertAction.java:47)
      at org.hibernate.engine.ActionQueue.execute(ActionQueue.java:248)
      at org.hibernate.event.def.AbstractSaveEventListener.performSaveOrReplicate(AbstractSaveEventListener.java:290)
      at org.hibernate.event.def.AbstractSaveEventListener.performSave(AbstractSaveEventListener.java:180)
      at org.hibernate.event.def.AbstractSaveEventListener.saveWithGeneratedId(AbstractSaveEventListener.java:108)
      at org.hibernate.event.def.DefaultSaveOrUpdateEventListener.saveWithGeneratedOrRequestedId(DefaultSaveOrUpdateEv
      entListener.java:186)
      at org.hibernate.event.def.DefaultSaveEventListener.saveWithGeneratedOrRequestedId(DefaultSaveEventListener.java
      :33)
      at org.hibernate.event.def.DefaultSaveOrUpdateEventListener.entityIsTransient(DefaultSaveOrUpdateEventListener.j
      ava:175)
      at org.hibernate.event.def.DefaultSaveEventListener.performSaveOrUpdate(DefaultSaveEventListener.java:27)
      at org.hibernate.event.def.DefaultSaveOrUpdateEventListener.onSaveOrUpdate(DefaultSaveOrUpdateEventListener.java
      :70)
      at org.hibernate.impl.SessionImpl.fireSave(SessionImpl.java:537)
      at org.hibernate.impl.SessionImpl.save(SessionImpl.java:525)
      at org.hibernate.impl.SessionImpl.save(SessionImpl.java:521)
      at org.jboss.portal.cms.hibernate.HibernateStore$1.close(HibernateStore.java:1049)
      at sun.nio.cs.StreamEncoder$CharsetSE.implClose(StreamEncoder.java:431)
      at sun.nio.cs.StreamEncoder.close(StreamEncoder.java:160)
      at java.io.OutputStreamWriter.close(OutputStreamWriter.java:222)
      at org.apache.jackrabbit.core.RepositoryImpl.loadRootNodeId(RepositoryImpl.java:429)
      at org.apache.jackrabbit.core.RepositoryImpl.(RepositoryImpl.java:214)
      at org.apache.jackrabbit.core.RepositoryImpl.create(RepositoryImpl.java:483)
      at org.jboss.portal.cms.impl.jcr.jackrabbit.JackrabbitJCRService.start(JackrabbitJCRService.java:102)
      at org.jboss.portal.cms.impl.jcr.JCRCMS.startJCR(JCRCMS.java:200)
      at org.jboss.portal.cms.impl.jcr.JCRCMS.startService(JCRCMS.java:167)
      at org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupport.java:289)
      at org.jboss.system.ServiceMBeanSupport.start(ServiceMBeanSupport.java:196)
      at org.jboss.portal.common.system.AbstractJBossService.start(AbstractJBossService.java:72)
      at sun.reflect.GeneratedMethodAccessor15.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.system.ServiceController$ServiceProxy.invoke(ServiceController.java:995)

      ...

      13:09:52,762 WARN [JDBCExceptionReporter] SQL Error: 0, SQLState: null
      13:09:52,762 ERROR [JDBCExceptionReporter] Error; - nested throwable: (java.lang.ArrayIndexOutOfBoundsException)
      13:09:52,762 ERROR [HibernateStore] failed to create new file: /meta/rep.properties
      org.hibernate.exception.GenericJDBCException: could not insert: [org.jboss.portal.cms.hibernate.RepositoryEntry]
      at org.hibernate.exception.SQLStateConverter.handledNonSpecificException(SQLStateConverter.java:103)
      at org.hibernate.exception.SQLStateConverter.convert(SQLStateConverter.java:91)
      at org.hibernate.exception.JDBCExceptionHelper.convert(JDBCExceptionHelper.java:43)
      at org.hibernate.id.insert.AbstractReturningDelegate.performInsert(AbstractReturningDelegate.java:40)
      at org.hibernate.persister.entity.AbstractEntityPersister.insert(AbstractEntityPersister.java:2044)
      at org.hibernate.persister.entity.AbstractEntityPersister.insert(AbstractEntityPersister.java:2481)
      at org.hibernate.action.EntityIdentityInsertAction.execute(EntityIdentityInsertAction.java:47)
      at org.hibernate.engine.ActionQueue.execute(ActionQueue.java:248)
      at org.hibernate.event.def.AbstractSaveEventListener.performSaveOrReplicate(AbstractSaveEventListener.java:290)
      at org.hibernate.event.def.AbstractSaveEventListener.performSave(AbstractSaveEventListener.java:180)
      at org.hibernate.event.def.AbstractSaveEventListener.saveWithGeneratedId(AbstractSaveEventListener.java:108)
      at org.hibernate.event.def.DefaultSaveOrUpdateEventListener.saveWithGeneratedOrRequestedId(DefaultSaveOrUpdateEv
      entListener.java:186)
      at org.hibernate.event.def.DefaultSaveEventListener.saveWithGeneratedOrRequestedId(DefaultSaveEventListener.java
      :33)
      at org.hibernate.event.def.DefaultSaveOrUpdateEventListener.entityIsTransient(DefaultSaveOrUpdateEventListener.j
      ava:175)
      at org.hibernate.event.def.DefaultSaveEventListener.performSaveOrUpdate(DefaultSaveEventListener.java:27)
      at org.hibernate.event.def.DefaultSaveOrUpdateEventListener.onSaveOrUpdate(DefaultSaveOrUpdateEventListener.java
      :70)
      at org.hibernate.impl.SessionImpl.fireSave(SessionImpl.java:537)
      at org.hibernate.impl.SessionImpl.save(SessionImpl.java:525)
      at org.hibernate.impl.SessionImpl.save(SessionImpl.java:521)
      at org.jboss.portal.cms.hibernate.HibernateStore$1.close(HibernateStore.java:1049)
      at org.apache.jackrabbit.core.RepositoryImpl.storeRepProps(RepositoryImpl.java:1002)
      at org.apache.jackrabbit.core.RepositoryImpl.loadRepProps(RepositoryImpl.java:977)
      at org.apache.jackrabbit.core.RepositoryImpl.(RepositoryImpl.java:217)
      at org.apache.jackrabbit.core.RepositoryImpl.create(RepositoryImpl.java:483)
      at org.jboss.portal.cms.impl.jcr.jackrabbit.JackrabbitJCRService.start(JackrabbitJCRService.java:102)
      at org.jboss.portal.cms.impl.jcr.JCRCMS.startJCR(JCRCMS.java:200)
      at org.jboss.portal.cms.impl.jcr.JCRCMS.startService(JCRCMS.java:167)
      at org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupport.java:289)
      at org.jboss.system.ServiceMBeanSupport.start(ServiceMBeanSupport.java:196)
      at org.jboss.portal.common.system.AbstractJBossService.start(AbstractJBossService.java:72)
      at sun.reflect.GeneratedMethodAccessor15.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.system.ServiceController$ServiceProxy.invoke(ServiceController.java:995)

      When I tried to access the portal, I got a NullPointerException.

      13:17:50,135 ERROR [CMSPortlet] The portlet threw an exception
      java.lang.RuntimeException: java.lang.NullPointerException
      at org.jboss.portal.cms.impl.jcr.JCRCMS.execute(JCRCMS.java:394)
      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.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 $Proxy124.execute(Unknown Source)
      at org.jboss.portal.core.portlet.cms.CMSPortlet.doView(CMSPortlet.java:167)
      at javax.portlet.GenericPortlet.doDispatch(GenericPortlet.java:167)
      at javax.portlet.GenericPortlet.render(GenericPortlet.java:407)
      at org.jboss.portal.portlet.container.PortletContainer.invokeRender(PortletContainer.java:519)
      at org.jboss.portal.portlet.container.PortletContainer.dispatch(PortletContainer.java:440)
      at org.jboss.portal.portlet.container.PortletContainerInvoker$1.dispatch(PortletContainerInvoker.java:143)
      at org.jboss.portal.portlet.invocation.PortletInvocation.dispatch(PortletInvocation.java:242)
      at org.jboss.portal.common.invocation.Invocation.invokeNext(Invocation.java:140)
      at org.jboss.portal.core.aspects.portlet.TransactionInterceptor.org$jboss$portal$core$aspects$portlet$Transactio
      nInterceptor$invokeNotSupported$aop(TransactionInterceptor.java:85)
      at org.jboss.portal.core.aspects.portlet.TransactionInterceptor$invokeNotSupported_4827075286966232824.invokeNex
      t(TransactionInterceptor$invokeNotSupported_4827075286966232824.java)
      at org.jboss.aspects.tx.TxPolicy.invokeInNoTx(TxPolicy.java:66)
      at org.jboss.aspects.tx.TxInterceptor$NotSupported.invoke(TxInterceptor.java:101)
      at org.jboss.portal.core.aspects.portlet.TransactionInterceptor$invokeNotSupported_4827075286966232824.invokeNex
      t(TransactionInterceptor$invokeNotSupported_4827075286966232824.java)

      I don't have this problem using CR2. Any ideas why?