could be that u shuld synchronize the vector before iterating over it..just
check the java.util.Collections class for more.

jani

-----Ursprüngliche Nachricht-----
Von: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] Auftrag von Ionel
GARDAIS
Gesendet: Mittwoch, 21. Januar 2004 18:03
An: [EMAIL PROTECTED]
Betreff: [JBoss-user] (more clues) MessageListener threw a
RuntimeException


Hi again,

After tracing the calls, I found that the problem is
on a vector iterator.

The JMS message I received is an ObjectMessage.
The object within the message is a Vector.

Inside the onMessage, I call an outside method,
passing the Vector received: outsideMethod(theVector)

In the outsideMethod, I use an iterator on the Vector
received in parameter and do a classic
while(iterator.hasNext()) loop.

The RuntimeException is thrown when I call the
hasNext() or the next() method.


I absolutly don't know what is going on.
The Vector is not modified : I spend 10ms for the
first iteration and the next message is about 10
seconds later.

Any ideas ?

thanks,
ionel

_________________________________________________________________
Do You Yahoo!? -- Une adresse @yahoo.fr gratuite et en français !
Yahoo! Mail : http://fr.mail.yahoo.com


-------------------------------------------------------
The SF.Net email is sponsored by EclipseCon 2004
Premiere Conference on Open Tools Development and Integration
See the breadth of Eclipse activity. February 3-5 in Anaheim, CA.
http://www.eclipsecon.org/osdn
_______________________________________________
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user



-------------------------------------------------------
The SF.Net email is sponsored by EclipseCon 2004
Premiere Conference on Open Tools Development and Integration
See the breadth of Eclipse activity. February 3-5 in Anaheim, CA.
http://www.eclipsecon.org/osdn
_______________________________________________
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to