dev@glassfish.java.net

Re: Odd behavior while creating jdbc-connection-pool in admin GUI

From: Lloyd L Chambers <Lloyd.Chambers_at_Sun.COM>
Date: Mon, 28 Apr 2008 11:22:01 -0700

Makes sense.

AMX only does one transaction at a time.

So could it be a leak?

Lloyd

On Apr 28, 2008, at 10:22 AM, Jerome Dochez wrote:

> five might be indeed a little small but I wanted it small so we
> would rapidly catch code that would start transactions but never
> finish them either due to a bug in the transactional system or a bug
> in their code.
>
> so do I understand correctly that we have more than 5 concurrent
> transactions when creating a jdbc connection pool via AMX ?
> if yes, are they all legitimate or we are just not closing some of
> them ?
>
> jerome
>
> Lloyd L Chambers wrote:
>> I've updated the bug.
>>
>> I don't know why Jerome hard-coded the queue size to 5, so he needs
>> to look at this. It's unclear if there is a non-random reason why
>> it's "5", as there is no command explaining that magic number.
>>
>> Lloyd
>>
>> On Apr 28, 2008, at 8:29 AM, Anissa Lam wrote:
>>
>>>
>>> Hi Shalini,
>>> What you are seeing is https://glassfish.dev.java.net/issues/show_bug.cgi?id=4889
>>> As for creating jdbc resource, we have not seen this error
>>> before. cc'ing Yifeng here also.
>>>
>>> thanks
>>> Anissa
>>>
>>> Shalini Muthukrishnan wrote:
>>>> Hi All,
>>>>
>>>> With the tp2 branch, I start the domain using "java -jar modules/
>>>> glassfish-10.0-tp-2-SNAPSHOT.jar, logged into the admin GUI
>>>> and tried to create a new connection pool with JavaDB.
>>>> When i click on finish after entering all the reqd properties, i
>>>> get a message on the console in the same page as
>>>> "An error has occurred Queue full"
>>>>
>>>> In the logs :
>>>> SEVERE: Caused by: java.lang.Exception: Queue full
>>>> 28 Apr, 2008 12:17:26 PM SEVERE: ... 86 more
>>>> 28 Apr, 2008 12:17:26 PM SEVERE: Caused by:
>>>> java.lang.IllegalStateException: Queue full
>>>> 28 Apr, 2008 12:17:26 PM SEVERE: at
>>>> java.util.AbstractQueue.add(AbstractQueue.java:64)
>>>> 28 Apr, 2008 12:17:26 PM SEVERE: at
>>>> org
>>>> .jvnet.hk2.config.Transactions.addTransaction(Transactions.java:
>>>> 107)
>>>> 28 Apr, 2008 12:17:26 PM SEVERE: at
>>>> org.jvnet.hk2.config.Transaction.commit(Transaction.java:102)
>>>> 28 Apr, 2008 12:17:26 PM SEVERE: at
>>>> org.jvnet.hk2.config.ConfigSupport.apply(ConfigSupport.java:171)
>>>> 28 Apr, 2008 12:17:26 PM SEVERE: ... 85 more
>>>>
>>>> After this, when i click on Finish again, it complains saying "An
>>>> error has occurred Object name cannot be null".
>>>>
>>>> In the logs:
>>>> javax.management.InstanceAlreadyExistsException: "amx:j2eeType=X-
>>>> JDBCConnectionPoolConfig,name=oneMoreTest"
>>>> com
>>>> .sun
>>>> .jmx
>>>> .mbeanserver.RepositorySupport.addMBean(RepositorySupport.java:452)
>>>> com
>>>> .sun
>>>> .jmx
>>>> .interceptor
>>>> .DefaultMBeanServerInterceptor
>>>> .internal_addObject(DefaultMBeanServerInterceptor.java:1410)
>>>> com
>>>> .sun
>>>> .jmx
>>>> .interceptor
>>>> .DefaultMBeanServerInterceptor
>>>> .registerObject(DefaultMBeanServerInterceptor.java:936)
>>>> com
>>>> .sun
>>>> .jmx
>>>> .interceptor
>>>> .DefaultMBeanServerInterceptor
>>>> .registerMBean(DefaultMBeanServerInterceptor.java:337)
>>>> com
>>>> .sun
>>>> .jmx.mbeanserver.JmxMBeanServer.registerMBean(JmxMBeanServer.java:
>>>> 497)
>>>> org
>>>> .glassfish
>>>> .admin
>>>> .mbeanserver
>>>> .AppserverMBeanServer.registerMBean(AppserverMBeanServer.java:238)
>>>> org
>>>> .glassfish
>>>> .admin
>>>> .amx
>>>> .config.AMXConfigLoader.createAndRegister(AMXConfigLoader.java:692)
>>>> org
>>>> .glassfish
>>>> .admin
>>>> .amx
>>>> .config
>>>> .AMXConfigLoader._registerConfigBeanAsMBean(AMXConfigLoader.java:
>>>> 624)
>>>> org
>>>> .glassfish
>>>> .admin
>>>> .amx
>>>> .config
>>>> .AMXConfigLoader.registerConfigBeanAsMBean(AMXConfigLoader.java:
>>>> 558)
>>>> org.glassfish.admin.amx.config.AMXConfigLoader.access
>>>> $000(AMXConfigLoader.java:73)
>>>> org.glassfish.admin.amx.config.AMXConfigLoader
>>>> $AMXConfigLoaderThread.registerOne(AMXConfigLoader.java:482)
>>>> org.glassfish.admin.amx.config.AMXConfigLoader
>>>> $AMXConfigLoaderThread.doRun(AMXConfigLoader.java:535)
>>>> org.glassfish.admin.amx.config.AMXConfigLoader
>>>> $AMXConfigLoaderThread.run(AMXConfigLoader.java:501)
>>>> |#]
>>>>
>>>> When i check the list of connection pools in the connections
>>>> pools page, the pool that i just tried to create is there already.
>>>>
>>>> I try creating a JDBC resource and all i observe is 100% CPU with
>>>> nothing happening. The process just hangs.
>>>>
>>>> Any ideas? Or am i missing something here?
>>>>
>>>> Thanks,
>>>> Shalini.
>>>>
>>>> ---------------------------------------------------------------------
>>>> To unsubscribe, e-mail: dev-unsubscribe_at_glassfish.dev.java.net
>>>> For additional commands, e-mail: dev-help_at_glassfish.dev.java.net
>>>>
>>>
>>>
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: dev-unsubscribe_at_glassfish.dev.java.net
>>> For additional commands, e-mail: dev-help_at_glassfish.dev.java.net
>>>
>>
>> ---
>> Lloyd L Chambers
>> lloyd.chambers_at_sun.com
>> Sun Microsystems, Inc
>>
>>
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: dev-unsubscribe_at_glassfish.dev.java.net
>> For additional commands, e-mail: dev-help_at_glassfish.dev.java.net
>>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe_at_glassfish.dev.java.net
> For additional commands, e-mail: dev-help_at_glassfish.dev.java.net
>

---
Lloyd L Chambers
lloyd.chambers_at_sun.com
Sun Microsystems, Inc