6 Replies Latest reply on Jan 22, 2009 7:15 AM by code_trunk

    java.lang.IllegalStateException during the launch of queue s

      Hi. Here is a tricky situation:

      Platform:
      RHEL 3.4.3-22
      jboss AS 4.2.1 GA
      jbm 1.4.0 SP3
      Oracle 10g (10.2.0.1)

      2009-01-20 12:00:36,411 DEBUG [org.jboss.system.ServiceController] starting service jboss.messaging.destination:service=Queue,name=Inbox
      2009-01-20 12:00:36,411 DEBUG [org.jboss.jms.server.destination.QueueService] Starting jboss.messaging.destination:service=Queue,name=Inbox
      2009-01-20 12:00:36,412 TRACE [org.jboss.messaging.core.impl.ChannelSupport] Getting message count mr: 0 dc 0 sc 0
      2009-01-20 12:00:36,412 TRACE [org.jboss.jms.server.security.SecurityMetadataStore] adding security configuration for queue Inbox
      2009-01-20 12:00:36,412 TRACE [org.jboss.jms.server.security.SecurityMetadata] Adding role: Role {name=jmsuser;read=true;write=true;create=false}
      2009-01-20 12:00:36,412 TRACE [org.jboss.messaging.core.impl.PagingChannelSupport] Queue[249550264/0/13-Inbox] loading channel state
      2009-01-20 12:00:36,412 TRACE [org.jboss.messaging.core.impl.JDBCPersistenceManager] loading initial reference infos for channel 13
      2009-01-20 12:00:38,929 TRACE [org.jboss.messaging.core.impl.JDBCSupport] Committing tx
      2009-01-20 12:00:38,930 TRACE [org.jboss.messaging.core.impl.JDBCPersistenceManager] Getting batch of messages for [8127217, 8127218, 8127219, 8651009, 8651137, 8688780, 8688825, 8689022, 8689072, 8689152, 9222055, 10093182, 10093183, 10093184, 10093185, 10093215, 10093216, 10093234, 10093235, 10093236, 10093237, 10093238, 10093239, 10093240, 10093241, 10093242, 10093243, 10093244, 10093245, 10093309, 10093310, 10093311, 10093312, 10093313, 10093314, 10093315, 10093316, 10093317, 10093318, 10093319, 10093321, 21106900, 21098814, 21106901, 21095230, 21110082, 21099139, 21106902, 21107383, 21109348, 21095231, 21092504, 21099140, 21106903, 21107384, 21106904, 21102177, 21109349, 21095232, 21107385, 21095233, 21098815, 21109350, 21107386, 21099141, 21095234, 21092505, 21106905, 21110784, 21099142, 21099143, 21099144, 21106906, 21092506, 21109351, 21102178, 21098816]
      2009-01-20 12:00:38,932 TRACE [org.jboss.messaging.core.impl.JDBCPersistenceManager] SELECT MESSAGE_ID, RELIABLE, EXPIRATION, TIMESTAMP, PRIORITY, HEADERS, PAYLOAD, TYPE FROM JBM_MSG WHERE MESSAGE_ID IN (?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?)
      2009-01-20 12:00:40,436 TRACE [org.jboss.messaging.core.impl.JDBCPersistenceManager] Loaded 77 messages in total
      2009-01-20 12:00:40,438 TRACE [org.jboss.messaging.core.impl.PagingChannelSupport] Queue[249550264/0/13-Inbox] Loading 100 paged references from storage
      2009-01-20 12:00:40,438 TRACE [org.jboss.messaging.core.impl.PagingChannelSupport] Queue[249550264/0/13-Inbox] flushing 0 refs from downcache
      2009-01-20 12:00:40,438 TRACE [org.jboss.messaging.core.impl.PagingChannelSupport] Queue[249550264/0/13-Inbox] cleared downcache
      2009-01-20 12:00:40,438 TRACE [org.jboss.messaging.core.impl.JDBCPersistenceManager] loading message reference info for channel 13 from 5241540 number 100
      2009-01-20 12:00:40,473 TRACE [org.jboss.messaging.core.impl.JDBCSupport] Rolling back tx
      2009-01-20 12:00:40,476 ERROR [org.jboss.messaging.util.ExceptionUtil] Queue[null, name=Inbox] startService
      java.lang.IllegalStateException: Didn't load expected number of references, loaded: 32 expected: 100
       at org.jboss.messaging.core.impl.JDBCPersistenceManager.getPagedReferenceInfos(JDBCPersistenceManager.java:879)
       at org.jboss.messaging.core.impl.PagingChannelSupport.loadPagedReferences(PagingChannelSupport.java:251)
       at org.jboss.messaging.core.impl.PagingChannelSupport.checkLoad(PagingChannelSupport.java:359)
       at org.jboss.messaging.core.impl.PagingChannelSupport.load(PagingChannelSupport.java:216)
       at org.jboss.jms.server.destination.QueueService.startService(QueueService.java:89)
       at org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupport.java:289)
       at org.jboss.system.ServiceMBeanSupport.start(ServiceMBeanSupport.java:196)
       at sun.reflect.GeneratedMethodAccessor77.invoke(Unknown Source)
       at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
       at java.lang.reflect.Method.invoke(Method.java:597)
       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)
       at $Proxy0.start(Unknown Source)
       at org.jboss.system.ServiceController.start(ServiceController.java:417)
       at org.jboss.system.ServiceController.start(ServiceController.java:435)
       at org.jboss.system.ServiceController.start(ServiceController.java:435)
       at org.jboss.system.ServiceController.start(ServiceController.java:435)
       at org.jboss.system.ServiceController.start(ServiceController.java:435)
       at org.jboss.system.ServiceContr
      
      


      sqlplus:
      select count(1)
       from jbm_msg;
      
       COUNT(1)
      ----------
       6453127
      
      
      select count(1)
       from jbm_msg_ref;
      
       COUNT(1)
      ----------
       6453127


      Can anybody help me?!