Bug 304862

Summary: Intermittently hangup during "stop-jboss-server" using ant scripts
Product: z_Archived Reporter: Kevin Yuan <kevin.yuan>
Component: EclipselinkAssignee: Nobody - feel free to take it <nobody>
Status: CLOSED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: edwin.tang
Version: unspecifiedKeywords: test
Target Milestone: ---   
Hardware: PC   
OS: Windows XP   
Whiteboard:

Description Kevin Yuan CLA 2010-03-05 13:55:13 EST
The following are error message:

 jboss-stop:
     [java] Exception in thread "main" javax.naming.CommunicationException: Could not obtain connection to any of these urls: localhost:1099 [Root exception is javax.naming.CommunicationException: Failed to retrieve stub from server localhost/127.0.0.1:1099 [Root exception is java.io.EOFException]]
     [java]     at org.jnp.interfaces.NamingContext.checkRef(NamingContext.java:1763)
     [java]     at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:693)
     [java]     at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:686)
     [java]     at javax.naming.InitialContext.lookup(InitialContext.java:392)
     [java]     at org.jboss.Shutdown.main(Shutdown.java:219)
     [java] Caused by: javax.naming.CommunicationException: Failed to retrieve stub from server localhost/127.0.0.1:1099 [Root exception is java.io.EOFException]
     [java]     at org.jnp.interfaces.NamingContext.getServer(NamingContext.java:327)
     [java]     at org.jnp.interfaces.NamingContext.checkRef(NamingContext.java:1734)
     [java]     ... 4 more
     [java] Caused by: java.io.EOFException
     [java]     at java.io.ObjectInputStream$BlockDataInputStream.peekByte(ObjectInputStream.java:2554)
     [java]     at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1297)
     [java]     at java.io.ObjectInputStream.readObject(ObjectInputStream.java:351)
Comment 1 Kevin Yuan CLA 2010-03-05 15:01:04 EST
Try to fix this issue by provide server-url during stop server, just like the following:
            
            <arg line="-s ${server.url}"/>

instead of: <arg value="-S"/>

Code reviewed by Edwin Tang.

Checked in trunk, revision: 6737
           2.0.2, revision: 6739
           1.2.0, revision: 6741
           1.1.4, revision: 6740
Comment 2 Eclipse Webmaster CLA 2022-06-09 10:25:30 EDT
The Eclipselink project has moved to Github: https://github.com/eclipse-ee4j/eclipselink