Mantis Bugtracker

Viewing Issue Simple Details Jump to Notes ] View Advanced ] Issue History ] Print ]
ID Category Severity Reproducibility Date Submitted Last Update
0002337 [Resin] minor always 01-16-08 08:22 02-07-08 12:44
Reporter ferg View Status public  
Assigned To ferg
Priority normal Resolution fixed  
Status closed   Product Version 3.1.4
Summary 0002337: jms/db ArrayIndexException
Description (rep by Erlende Akre)

 I am trying out Resin and the JMS part.
I've successfully set up a queue that uses the default disk database.
I'm doing the sending and receiving from php using the very simple examples:
$queue = new JMSQueue("jms/myqueue");
Everything works fine. But when doing some stress testing I start running into problems.
Using send() in a for loop works fine with 500,800,1000,2000 repetitions..
If I set this higher (5000 repetitions) the page is never returned (which means the loops stops executing?)
I removed the database and started off clean.. I slowly added 500 messages each time with around 30 sec apart.
There where no problems with sending, and the filesize of the database increased every time.
When I run the .php file with the receive() in it, I get an ArrayIndexOutOfBoundsException. This is not fixed by stopping and starting server, I actually have to delete the database on disk to get it to work again.
Anyone else had this kind of problem, that heavy use corrupts the database?
Error message from receive():
500 Servlet Exception

java.lang.ArrayIndexOutOfBoundsException: 128
        at com.caucho.db.sql.SelectResult.write(
        at com.caucho.db.sql.SelectResult.writeBlob(
        at com.caucho.db.table.BlobColumn.evalToResult(
        at com.caucho.db.table.TableIterator.evalToResult(
        at com.caucho.db.sql.IdExpr.evalToResult(
        at com.caucho.db.sql.SelectQuery.execute(
        at com.caucho.db.sql.SelectQuery.execute(
        at com.caucho.db.jdbc.PreparedStatementImpl.execute(
        at com.caucho.db.jdbc.PreparedStatementImpl.executeQuery(
        at com.caucho.sql.UserPreparedStatement.executeQuery(
        at com.caucho.jms.jdbc.JdbcQueueConsumer.receiveImpl(
        at com.caucho.jms.session.MessageConsumerImpl.receiveNoWait(
        at com.caucho.jms.session.MessageConsumerImpl.receive(
        at com.caucho.quercus.lib.jms.JMSQueue.receive(
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(
        at java.lang.reflect.Method.invoke(
        at com.caucho.quercus.env.JavaMethod.invoke(
        at com.caucho.quercus.program.JavaClassDef.callMethod(
        at com.caucho.quercus.env.JavaValue.callMethod(
        at com.caucho.quercus.env.Var.callMethod(
        at _quercus._get__php.execute(usr/local/resin-pro-3.1.3/webapps/ROOT/get.php:10)
        at com.caucho.quercus.servlet.ResinQuercusServlet.service(
        at com.caucho.quercus.servlet.QuercusServlet.service(
        at javax.servlet.http.HttpServlet.service(
        at com.caucho.server.dispatch.ServletFilterChain.doFilter(
        at com.caucho.server.webapp.WebAppFilterChain.doFilter(
        at com.caucho.server.dispatch.ServletInvocation.service(
        at com.caucho.server.http.HttpRequest.handleRequest(
        at com.caucho.util.ThreadPool$Item.runTasks(
        at com.caucho.util.ThreadPool$
Additional Information
Attached Files

- Relationships

- Notes
02-07-08 12:44


- Issue History
Date Modified Username Field Change
01-16-08 08:22 ferg New Issue
02-07-08 12:44 ferg Note Added: 0002732
02-07-08 12:44 ferg Assigned To  => ferg
02-07-08 12:44 ferg Status new => closed
02-07-08 12:44 ferg Resolution open => fixed
02-07-08 12:44 ferg Fixed in Version  => 3.1.5
02-07-08 12:44 ferg Description Updated

Mantis 1.0.0rc3[^]
Copyright © 2000 - 2005 Mantis Group
29 total queries executed.
25 unique queries executed.
Powered by Mantis Bugtracker