Issue Details (XML | Word | Printable)

Key: GLASSFISH-20463
Type: Bug Bug
Status: Open Open
Priority: Major Major
Assignee: Sanjeeb Sahoo
Reporter: Tom Mueller
Votes: 0
Watchers: 2
Operations

If you were logged in you would be able to see more operations.
glassfish

DAS fails to stop with stop-domain --force=false due to a non-daemon thread

Created: 03/May/13 03:26 PM   Updated: 06/May/13 03:32 AM
Component/s: OSGi-JavaEE
Affects Version/s: 4.0_b87_RC3
Fix Version/s: 4.0.1

Time Tracking:
Not Specified

Tags:
Participants: Sanjeeb Sahoo, TangYong and Tom Mueller


 Description  « Hide

If you do:

asadmin start-domain
asadmin stop-domain --force=false

You get a timeout:

$ asadmin stop-domain --force=false
Waiting for the domain to stop ........................................................
Timed out (60 seconds) waiting for the domain to stop.
Command stop-domain failed.

This is due to a non-daemon thread in a thread pool. From the jstack output:

"pool-8-thread-1" prio=5 tid=0x00007fa321b71000 nid=0xa103 waiting on condition [0x00000001368d5000]
java.lang.Thread.State: WAITING (parking)
at sun.misc.Unsafe.park(Native Method)

  • parking to wait for <0x00000001292d9910> (a java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject)
    at java.util.concurrent.locks.LockSupport.park(LockSupport.java:186)
    at java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject.await(AbstractQueuedSynchronizer.java:2043)
    at java.util.concurrent.LinkedBlockingQueue.take(LinkedBlockingQueue.java:442)
    at java.util.concurrent.ThreadPoolExecutor.getTask(ThreadPoolExecutor.java:1068)
    at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1130)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
    at java.lang.Thread.run(Thread.java:722)


Sort Order: Ascending order - Click to sort in descending order
Tom Mueller made changes - 03/May/13 03:26 PM
Field Original Value New Value
Assignee michael.y.chen [ michael.y.chen ] Tom Mueller [ tmueller ]
Component/s admin [ 10589 ]
Jeremy_Lv made changes - 03/May/13 04:26 PM
Comment [ Hi, Tom

Hers's the detailed informations about my ejb application
{code:title=HelloWorld.java|borderStyle=solid}
package clchun.ejb3.Impl;

import javax.ejb.Stateless;
import clchun.ejb3.HelloWorld;

@Stateless
public class HelloWorldBean implements HelloWorld {
    public String Say(String name){
        return name + "Say: Hello World";
    }
}
{code}

{code:title=HelloWorld.java|borderStyle=solid}
package clchun.ejb3;

import javax.ejb.Remote;

@Remote
public abstract interface HelloWorld
{
  public abstract String Say(String paramString);
}
{code}

There's no other file except the above two class file ]
Tom Mueller made changes - 03/May/13 04:28 PM
Assignee Tom Mueller [ tmueller ] Sanjeeb Sahoo [ ss141213 ]
Component/s OSGi-JavaEE [ 10642 ]
Component/s admin [ 10589 ]
Sanjeeb Sahoo made changes - 06/May/13 03:05 AM
Fix Version/s 4.0.1 [ 16061 ]