Bugs item #1023511, was opened at 2004-09-07 08:25
Message generated for change (Comment added) made by ejort
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=376685&aid=1023511&group_id=22866

Category: JBossMQ
Group: v4.0
>Status: Closed
Resolution: Invalid
Priority: 5
Submitted By: john cage (ahanys)
Assigned to: Adrian Brock (ejort)
Summary: When starting jboss one of the queues throws exception

Initial Comment:
After I restarted JBoss several times the exception 
occurs in starting jboss 4.0RC2. Possibly it is in mysql 
drive - connector j/3.0.15GA.

I use windows XP.
jdk 5.0 beta2


-------------------------------------------------
** BEGIN NESTED EXCEPTION ** 

java.lang.ArrayIndexOutOfBoundsException
MESSAGE: 1907

STACKTRACE:

java.lang.ArrayIndexOutOfBoundsException: 1907
        at com.mysql.jdbc.Buffer.readnBytes
(Buffer.java:440)
        at com.mysql.jdbc.MysqlIO.unpackField
(MysqlIO.java:419)
        at com.mysql.jdbc.MysqlIO.getResultSet
(MysqlIO.java:243)
        at com.mysql.jdbc.MysqlIO.sqlQueryDirect
(MysqlIO.java:1156)
        at com.mysql.jdbc.MysqlIO.sqlQuery
(MysqlIO.java:1070)
        at com.mysql.jdbc.Connection.execSQL
(Connection.java:2027)
        at com.mysql.jdbc.Connection.execSQL
(Connection.java:1996)
        at com.mysql.jdbc.Connection.execSQL
(Connection.java:1977)
        at com.mysql.jdbc.Connection.commit
(Connection.java:1177)
        at 
org.jboss.resource.adapter.jdbc.local.LocalManagedConn
ection.commit(LocalManagedConnection.java:96)
        at 
org.jboss.resource.connectionmanager.TxConnectionMan
ager$LocalXAResource.commit
(TxConnectionManager.java:720)
        at 
org.jboss.tm.TransactionImpl$Resource.commit
(TransactionImpl.java:2141)
        at 
org.jboss.tm.TransactionImpl.commitResources
(TransactionImpl.java:1674)
        at org.jboss.tm.TransactionImpl.commit
(TransactionImpl.java:312)
        at org.jboss.tm.TxManager.commit
(TxManager.java:200)
        at 
org.jboss.mq.pm.jdbc2.PersistenceManager$TransactionM
anagerStrategy.endTX(PersistenceManager.java:179)
        at 
org.jboss.mq.pm.jdbc2.PersistenceManager.restoreQueue
(PersistenceManager.java:478)
        at org.jboss.mq.server.JMSQueue.<init>
(JMSQueue.java:44)
        at org.jboss.mq.server.jmx.Queue.startService
(Queue.java:79)
        at 
org.jboss.system.ServiceMBeanSupport.jbossInternalStar
t(ServiceMBeanSupport.java:271)
        at 
org.jboss.system.ServiceMBeanSupport.jbossInternalLifec
ycle(ServiceMBeanSupport.java:221)
        at 
sun.reflect.GeneratedMethodAccessor28.invoke
(Unknown Source)
        at 
sun.reflect.DelegatingMethodAccessorImpl.invoke
(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke
(Method.java:582)
        at 
org.jboss.mx.interceptor.ReflectedDispatcher.invoke
(ReflectedDispatcher.java:141)
        at org.jboss.mx.server.Invocation.dispatch
(Invocation.java:80)
        at org.jboss.mx.server.Invocation.invoke
(Invocation.java:72)
        at 
org.jboss.mx.server.AbstractMBeanInvoker.invoke
(AbstractMBeanInvoker.java:230)
        at org.jboss.mx.server.MBeanServerImpl.invoke
(MBeanServerImpl.java:642)
        at 
org.jboss.system.ServiceController$ServiceProxy.invoke
(ServiceController.java:844)
        at $Proxy29.start(Unknown Source)
        at org.jboss.system.ServiceController.start
(ServiceController.java:369)
        at org.jboss.system.ServiceController.start
(ServiceController.java:391)
        at org.jboss.system.ServiceController.start
(ServiceController.java:391)
        at org.jboss.system.ServiceController.start
(ServiceController.java:391)
        at org.jboss.system.ServiceController.start
(ServiceController.java:391)
        at org.jboss.system.ServiceController.start
(ServiceController.java:391)
        at 
sun.reflect.GeneratedMethodAccessor5.invoke(Unknown 
Source)
        at 
sun.reflect.DelegatingMethodAccessorImpl.invoke
(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke
(Method.java:582)
        at 
org.jboss.mx.interceptor.ReflectedDispatcher.invoke
(ReflectedDispatcher.java:141)
        at org.jboss.mx.server.Invocation.dispatch
(Invocation.java:80)
        at org.jboss.mx.server.Invocation.invoke
(Invocation.java:72)
        at 
org.jboss.mx.server.AbstractMBeanInvoker.invoke
(AbstractMBeanInvoker.java:230)
        at org.jboss.mx.server.MBeanServerImpl.invoke
(MBeanServerImpl.java:642)
        at org.jboss.mx.util.MBeanProxyExt.invoke
(MBeanProxyExt.java:176)
        at $Proxy4.start(Unknown Source)
        at org.jboss.deployment.SARDeployer.start
(SARDeployer.java:260)
        at org.jboss.deployment.MainDeployer.start
(MainDeployer.java:863)
        at org.jboss.deployment.MainDeployer.deploy
(MainDeployer.java:674)
        at org.jboss.deployment.MainDeployer.deploy
(MainDeployer.java:637)
        at 
sun.reflect.GeneratedMethodAccessor10.invoke
(Unknown Source)
        at 
sun.reflect.DelegatingMethodAccessorImpl.invoke
(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke
(Method.java:582)
        at 
org.jboss.mx.interceptor.ReflectedDispatcher.invoke
(ReflectedDispatcher.java:141)
        at org.jboss.mx.server.Invocation.dispatch
(Invocation.java:80)
        at org.jboss.mx.server.Invocation.invoke
(Invocation.java:72)
        at 
org.jboss.mx.server.AbstractMBeanInvoker.invoke
(AbstractMBeanInvoker.java:230)
        at org.jboss.mx.server.MBeanServerImpl.invoke
(MBeanServerImpl.java:642)
        at org.jboss.mx.util.MBeanProxyExt.invoke
(MBeanProxyExt.java:176)
        at $Proxy7.deploy(Unknown Source)
        at 
org.jboss.deployment.scanner.URLDeploymentScanner.de
ploy(URLDeploymentScanner.java:304)
        at 
org.jboss.deployment.scanner.URLDeploymentScanner.sc
an(URLDeploymentScanner.java:478)
        at 
org.jboss.deployment.scanner.AbstractDeploymentScann
er$ScannerThread.doScan
(AbstractDeploymentScanner.java:201)
        at 
org.jboss.deployment.scanner.AbstractDeploymentScann
er.startService(AbstractDeploymentScanner.java:274)
        at 
org.jboss.system.ServiceMBeanSupport.jbossInternalStar
t(ServiceMBeanSupport.java:271)
        at 
org.jboss.system.ServiceMBeanSupport.jbossInternalLifec
ycle(ServiceMBeanSupport.java:221)
        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:582)
        at 
org.jboss.mx.interceptor.ReflectedDispatcher.invoke
(ReflectedDispatcher.java:141)
        at org.jboss.mx.server.Invocation.dispatch
(Invocation.java:80)
        at org.jboss.mx.server.Invocation.invoke
(Invocation.java:72)
        at 
org.jboss.mx.server.AbstractMBeanInvoker.invoke
(AbstractMBeanInvoker.java:230)
        at org.jboss.mx.server.MBeanServerImpl.invoke
(MBeanServerImpl.java:642)
        at 
org.jboss.system.ServiceController$ServiceProxy.invoke
(ServiceController.java:844)
        at $Proxy0.start(Unknown Source)
        at org.jboss.system.ServiceController.start
(ServiceController.java:369)
        at 
sun.reflect.GeneratedMethodAccessor5.invoke(Unknown 
Source)
        at 
sun.reflect.DelegatingMethodAccessorImpl.invoke
(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke
(Method.java:582)
        at 
org.jboss.mx.interceptor.ReflectedDispatcher.invoke
(ReflectedDispatcher.java:141)
        at org.jboss.mx.server.Invocation.dispatch
(Invocation.java:80)
        at org.jboss.mx.server.Invocation.invoke
(Invocation.java:72)
        at 
org.jboss.mx.server.AbstractMBeanInvoker.invoke
(AbstractMBeanInvoker.java:230)
        at org.jboss.mx.server.MBeanServerImpl.invoke
(MBeanServerImpl.java:642)
        at org.jboss.mx.util.MBeanProxyExt.invoke
(MBeanProxyExt.java:176)
        at $Proxy4.start(Unknown Source)
        at org.jboss.deployment.SARDeployer.start
(SARDeployer.java:260)
        at org.jboss.deployment.MainDeployer.start
(MainDeployer.java:863)
        at org.jboss.deployment.MainDeployer.deploy
(MainDeployer.java:674)
        at org.jboss.deployment.MainDeployer.deploy
(MainDeployer.java:637)
        at org.jboss.deployment.MainDeployer.deploy
(MainDeployer.java:621)
        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:582)
        at 
org.jboss.mx.interceptor.ReflectedDispatcher.invoke
(ReflectedDispatcher.java:141)
        at org.jboss.mx.server.Invocation.dispatch
(Invocation.java:80)
        at org.jboss.mx.server.Invocation.invoke
(Invocation.java:72)
        at 
org.jboss.mx.server.AbstractMBeanInvoker.invoke
(AbstractMBeanInvoker.java:230)
        at org.jboss.mx.server.MBeanServerImpl.invoke
(MBeanServerImpl.java:642)
        at org.jboss.mx.util.MBeanProxyExt.invoke
(MBeanProxyExt.java:176)
        at $Proxy5.deploy(Unknown Source)
        at org.jboss.system.server.ServerImpl.doStart
(ServerImpl.java:387)
        at org.jboss.system.server.ServerImpl.start
(ServerImpl.java:291)
        at org.jboss.Main.boot(Main.java:151)
        at org.jboss.Main$1.run(Main.java:405)
        at java.lang.Thread.run(Thread.java:595)


** END NESTED EXCEPTION **

))))
        at 
org.jboss.mq.pm.jdbc2.PersistenceManager$TransactionM
anagerStrategy.endTX(PersistenceManager.java:184)
        at 
org.jboss.mq.pm.jdbc2.PersistenceManager.restoreQueue
(PersistenceManager.java:478)
        at org.jboss.mq.server.JMSQueue.<init>
(JMSQueue.java:44)
        at org.jboss.mq.server.jmx.Queue.startService
(Queue.java:79)
        at 
org.jboss.system.ServiceMBeanSupport.jbossInternalStar
t(ServiceMBeanSupport.java:271)
        at 
org.jboss.system.ServiceMBeanSupport.jbossInternalLifec
ycle(ServiceMBeanSupport.java:221)
        at 
sun.reflect.GeneratedMethodAccessor28.invoke
(Unknown Source)
        at 
sun.reflect.DelegatingMethodAccessorImpl.invoke
(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke
(Method.java:582)
        at 
org.jboss.mx.interceptor.ReflectedDispatcher.invoke
(ReflectedDispatcher.java:141)
        at org.jboss.mx.server.Invocation.dispatch
(Invocation.java:80)
        at org.jboss.mx.server.Invocation.invoke
(Invocation.java:72)
        at 
org.jboss.mx.server.AbstractMBeanInvoker.invoke
(AbstractMBeanInvoker.java:230)
        at org.jboss.mx.server.MBeanServerImpl.invoke
(MBeanServerImpl.java:642)
        at 
org.jboss.system.ServiceController$ServiceProxy.invoke
(ServiceController.java:844)
        at $Proxy29.start(Unknown Source)
        at org.jboss.system.ServiceController.start
(ServiceController.java:369)
        at org.jboss.system.ServiceController.start
(ServiceController.java:391)
        at org.jboss.system.ServiceController.start
(ServiceController.java:391)
        at org.jboss.system.ServiceController.start
(ServiceController.java:391)
        at org.jboss.system.ServiceController.start
(ServiceController.java:391)
        at org.jboss.system.ServiceController.start
(ServiceController.java:391)
        at 
sun.reflect.GeneratedMethodAccessor5.invoke(Unknown 
Source)
        at 
sun.reflect.DelegatingMethodAccessorImpl.invoke
(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke
(Method.java:582)
        at 
org.jboss.mx.interceptor.ReflectedDispatcher.invoke
(ReflectedDispatcher.java:141)
        at org.jboss.mx.server.Invocation.dispatch
(Invocation.java:80)
        at org.jboss.mx.server.Invocation.invoke
(Invocation.java:72)
        at 
org.jboss.mx.server.AbstractMBeanInvoker.invoke
(AbstractMBeanInvoker.java:230)
        at org.jboss.mx.server.MBeanServerImpl.invoke
(MBeanServerImpl.java:642)
        at org.jboss.mx.util.MBeanProxyExt.invoke
(MBeanProxyExt.java:176)
        at $Proxy4.start(Unknown Source)
        at org.jboss.deployment.SARDeployer.start
(SARDeployer.java:260)
        at org.jboss.deployment.MainDeployer.start
(MainDeployer.java:863)
        at org.jboss.deployment.MainDeployer.deploy
(MainDeployer.java:674)
        at org.jboss.deployment.MainDeployer.deploy
(MainDeployer.java:637)
        at 
sun.reflect.GeneratedMethodAccessor10.invoke
(Unknown Source)
        at 
sun.reflect.DelegatingMethodAccessorImpl.invoke
(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke
(Method.java:582)
        at 
org.jboss.mx.interceptor.ReflectedDispatcher.invoke
(ReflectedDispatcher.java:141)
        at org.jboss.mx.server.Invocation.dispatch
(Invocation.java:80)
        at org.jboss.mx.server.Invocation.invoke
(Invocation.java:72)
        at 
org.jboss.mx.server.AbstractMBeanInvoker.invoke
(AbstractMBeanInvoker.java:230)
        at org.jboss.mx.server.MBeanServerImpl.invoke
(MBeanServerImpl.java:642)
        at org.jboss.mx.util.MBeanProxyExt.invoke
(MBeanProxyExt.java:176)
        at $Proxy7.deploy(Unknown Source)
        at 
org.jboss.deployment.scanner.URLDeploymentScanner.de
ploy(URLDeploymentScanner.java:304)
        at 
org.jboss.deployment.scanner.URLDeploymentScanner.sc
an(URLDeploymentScanner.java:478)
        at 
org.jboss.deployment.scanner.AbstractDeploymentScann
er$ScannerThread.doScan
(AbstractDeploymentScanner.java:201)
        at 
org.jboss.deployment.scanner.AbstractDeploymentScann
er.startService(AbstractDeploymentScanner.java:274)
        at 
org.jboss.system.ServiceMBeanSupport.jbossInternalStar
t(ServiceMBeanSupport.java:271)
        at 
org.jboss.system.ServiceMBeanSupport.jbossInternalLifec
ycle(ServiceMBeanSupport.java:221)
        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:582)
        at 
org.jboss.mx.interceptor.ReflectedDispatcher.invoke
(ReflectedDispatcher.java:141)
        at org.jboss.mx.server.Invocation.dispatch
(Invocation.java:80)
        at org.jboss.mx.server.Invocation.invoke
(Invocation.java:72)
        at 
org.jboss.mx.server.AbstractMBeanInvoker.invoke
(AbstractMBeanInvoker.java:230)
        at org.jboss.mx.server.MBeanServerImpl.invoke
(MBeanServerImpl.java:642)
        at 
org.jboss.system.ServiceController$ServiceProxy.invoke
(ServiceController.java:844)
        at $Proxy0.start(Unknown Source)
        at org.jboss.system.ServiceController.start
(ServiceController.java:369)
        at 
sun.reflect.GeneratedMethodAccessor5.invoke(Unknown 
Source)
        at 
sun.reflect.DelegatingMethodAccessorImpl.invoke
(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke
(Method.java:582)
        at 
org.jboss.mx.interceptor.ReflectedDispatcher.invoke
(ReflectedDispatcher.java:141)
        at org.jboss.mx.server.Invocation.dispatch
(Invocation.java:80)
        at org.jboss.mx.server.Invocation.invoke
(Invocation.java:72)
        at 
org.jboss.mx.server.AbstractMBeanInvoker.invoke
(AbstractMBeanInvoker.java:230)
        at org.jboss.mx.server.MBeanServerImpl.invoke
(MBeanServerImpl.java:642)
        at org.jboss.mx.util.MBeanProxyExt.invoke
(MBeanProxyExt.java:176)
        at $Proxy4.start(Unknown Source)
        at org.jboss.deployment.SARDeployer.start
(SARDeployer.java:260)
        at org.jboss.deployment.MainDeployer.start
(MainDeployer.java:863)
        at org.jboss.deployment.MainDeployer.deploy
(MainDeployer.java:674)
        at org.jboss.deployment.MainDeployer.deploy
(MainDeployer.java:637)
        at org.jboss.deployment.MainDeployer.deploy
(MainDeployer.java:621)
        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:582)
        at 
org.jboss.mx.interceptor.ReflectedDispatcher.invoke
(ReflectedDispatcher.java:141)
        at org.jboss.mx.server.Invocation.dispatch
(Invocation.java:80)
        at org.jboss.mx.server.Invocation.invoke
(Invocation.java:72)
        at 
org.jboss.mx.server.AbstractMBeanInvoker.invoke
(AbstractMBeanInvoker.java:230)
        at org.jboss.mx.server.MBeanServerImpl.invoke
(MBeanServerImpl.java:642)
        at org.jboss.mx.util.MBeanProxyExt.invoke
(MBeanProxyExt.java:176)
        at $Proxy5.deploy(Unknown Source)
        at org.jboss.system.server.ServerImpl.doStart
(ServerImpl.java:387)
        at org.jboss.system.server.ServerImpl.start
(ServerImpl.java:291)
        at org.jboss.Main.boot(Main.java:151)
        at org.jboss.Main$1.run(Main.java:405)
        at java.lang.Thread.run(Thread.java:595)
Caused by: org.jboss.tm.JBossRollbackException: Unable 
to commit, tx=TransactionImpl:XidImpl[FormatId=257, 
GlobalId=hanys/9, BranchQual=, localId=9] 
status=STATUS_NO_TRANSACTION; - nested 
throwable: 
(org.jboss.resource.connectionmanager.JBossLocalXAExc
eption: could not commit local tx; - nested throwable: 
(org.jboss.resource.JBossResourceException: 
SQLException; - nested throwable: 
(java.sql.SQLException: Error during query: Unexpected 
Exception: java.lang.ArrayIndexOutOfBoundsException 
message given: 1907




----------------------------------------------------------------------

>Comment By: Adrian Brock (ejort)
Date: 2004-09-08 14:17

Message:
Logged In: YES 
user_id=9459

Most likely, you'll find MySQL it is trying to load ALL data
into
memory when it executes the query.
i.e. it is creating a ResultSet backed by a very large array.

There is already a TODO for your other comment:
http://jboss.org/index.html?module=bb&op=viewtopic&t=46186

Also, please stop filing bug reports just because you don't
get an instant
response in the forums.

----------------------------------------------------------------------

Comment By: john cage (ahanys)
Date: 2004-09-08 13:57

Message:
Logged In: YES 
user_id=1117326

When I use MySQL as nontransaction datasource JBoss 
seems to work OK. After it I try to send to one queue 
200,000 Object messages per 2.5KByte. After it I stoped the 
JBoss and restarted. And to exception mentioned above JBoss 
shows the message below. It seems that JBoss after restart 
reads ALL messages from destination to the momory, and it 
throws OutOfMemoryError. Somewhere in the wiki site it 
implies that it may only cache messages in memory, but NOT 
TO LOAD THEM ALL TO MEMORE ANYTIME! Does't it ERROR or 
(may it be the improvement not to load all messages to the 
memory if the memory is relatively slow or messages is too 
much)?

ObjectName: 
jboss.mq.destination:service=Queue,name=fronta_www
 state: FAILED
 I Depend On:  jboss.mq:service=DestinationManager

 Depends On Me: java.lang.OutOfMemoryError: Java heap 
space

MBEANS THAT ARE THE ROOT CAUSE OF THE PROBLEM:
ObjectName: 
jboss.mq.destination:service=Queue,name=fronta_www
 state: FAILED
 I Depend On:  jboss.mq:service=DestinationManager

 Depends On Me: java.lang.OutOfMemoryError: Java heap 
space
ObjectName: 
jboss.mq.destination:service=Queue,name=testQueue
 state: FAILED
 I Depend On:  jboss.mq:service=DestinationManager
 jboss.mq:service=SecurityManager

 Depends On Me: org.jboss.mq.SpyJMSException: Could not 
restore messages to destination : QUEUE.testQueue; - 
nested throwable: (java.sql.SQLException: Error during query: 
Unexpected Exception: 
java.lang.ArrayIndexOutOfBoundsException message given: 
1879


----------------------------------------------------------------------

Comment By: john cage (ahanys)
Date: 2004-09-07 12:31

Message:
Logged In: YES 
user_id=1117326

Yes you are right. I use MyISAM tables which doesn't supprot 
transactions. 

THANK YOU FOR YOUR HELP

----------------------------------------------------------------------

Comment By: Adrian Brock (ejort)
Date: 2004-09-07 11:56

Message:
Logged In: YES 
user_id=9459

All JBoss is doing is doing at this point is committing the
transaction.
It is either a bug in the driver or you are not using a
MySQL table type that
supports transactions.


----------------------------------------------------------------------

Comment By: john cage (ahanys)
Date: 2004-09-07 09:58

Message:
Logged In: YES 
user_id=1117326

The error is in messages stored in DB - they are probably 
inconsistent.

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=376685&aid=1023511&group_id=22866


-------------------------------------------------------
This SF.Net email is sponsored by BEA Weblogic Workshop
FREE Java Enterprise J2EE developer tools!
Get your free copy of BEA WebLogic Workshop 8.1 today.
http://ads.osdn.com/?ad_id=5047&alloc_id=10808&op=click
_______________________________________________
JBoss-Development mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-development

Reply via email to