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

>Category: JBossCX
Group: v3.2
>Status: Closed
>Resolution: Fixed
Priority: 5
Submitted By: Jon Barnett (jbarnett)
>Assigned to: Adrian Brock (ejort)
Summary: NullPointerException for removeTimedOut

Initial Comment:
This only gets picked up by the IBM SDK 1.4.1. Found 
the problem in Linux (RedHat 7 and 9) but haven't 
tested anywhere else.

It seems from the code that there is an assumption that 
there is a previous element in the linked list? The source 
is org.jboss.resource.connectionmanager.
InternalManagedConnectionPool.java in 3.2.0.

I haven't checked 3.2.1 source for any changes as the 
CVS connectivity is poor from my side of the world at the 
moment. I couldn't find an outstanding bug report 
related to this so I'm assuming it hasn't been found.

Not sure why the IBM SDK 1.4.1 has a problem. No 
other JDK or IBM SDK 1.4.0 has a problem with this. 
Perhaps it is not really a problem but something of which 
to be aware.

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

>Comment By: Adrian Brock (ejort)
Date: 2003-07-21 01:47

Message:
Logged In: YES 
user_id=9459

It is a bug in IBM's implementation of the linked list iterator
as this test code shows.

import java.util.*;
public class LLTest
{
   public static void main(String[] args)
      throws Exception
   {
      LinkedList ll = new LinkedList();
      ll.add(new Object());
      ll.add(new Object());
      for (ListIterator i = ll.listIterator(ll.size());
i.hasPrevious();)
      {
         i.previous();
         i.remove();
      }
   }
}

I've added some warnings so that this or other similar errors
don't kill the idle remover thread.
If you don't like the warning, you can disable it with log4j
The implications are that with this error, only one idle
connection
is removed on each pass.

Regards,
Adrian

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

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


-------------------------------------------------------
This SF.net email is sponsored by: VM Ware
With VMware you can run multiple operating systems on a single machine.
WITHOUT REBOOTING! Mix Linux / Windows / Novell virtual machines at the
same time. Free trial click here: http://www.vmware.com/wl/offer/345/0
_______________________________________________
JBoss-Development mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-development

Reply via email to