Bug 304862 - Intermittently hangup during "stop-jboss-server" using ant scripts
Summary: Intermittently hangup during "stop-jboss-server" using ant scripts
Status: CLOSED FIXED
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: Eclipselink (show other bugs)
Version: unspecified   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Nobody - feel free to take it CLA
QA Contact:
URL:
Whiteboard:
Keywords: test
Depends on:
Blocks:
 
Reported: 2010-03-05 13:55 EST by Kevin Yuan CLA
Modified: 2022-06-09 10:25 EDT (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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