aspose file tools*
The moose likes BEA/Weblogic and the fly likes t3s://localhost:7411: Destination unreachable Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Products » BEA/Weblogic
Bookmark "t3s://localhost:7411: Destination unreachable" Watch "t3s://localhost:7411: Destination unreachable" New topic
Author

t3s://localhost:7411: Destination unreachable

Nilesh Raje
Ranch Hand

Joined: Aug 02, 2005
Posts: 153
Hi ,

I have a standalone java program in eclipse 3.2. and invoking the EJBS in weblogic9.2.
This is urgent and frustrating me. Please help asap.

Here is my Java Program.


import java.rmi.RemoteException;
import java.util.Collection;
import java.util.Iterator;
import java.util.Properties;
import javax.ejb.CreateException;
import javax.naming.Context;
import javax.naming.InitialContext;
import javax.naming.NamingException;


public class ApplicationsExportXMLBatch {
public static void main(String[] args)
throws RemoteException, NamingException, CreateException {
String providerURL = "t3://169.177.69.72:7411";
App appComponent=getAppHome(providerURL);

Collection list = appComponent.getList();
System.out.println("Size of Applications List :" + list.size());

Iterator iter = list.iterator();

while (iter.hasNext()) {
CaiApp appInfo = (CaiApp) iter.next();
System.out.println("AppInfo: " + appInfo.toString());
}
System.out.println("Done");
}

private static App getAppHome(String providerURL)
throws NamingException, RemoteException, CreateException {
final String JNDI_NAME = "AppHome";
Context ctx = getContext(providerURL);
return ((AppHome) ctx.lookup(JNDI_NAME)).create();
}

private static Context getContext(String providerURL)
throws NamingException {
Properties h = new Properties();
h.put(Context.INITIAL_CONTEXT_FACTORY,
"weblogic.jndi.WLInitialContextFactory");
h.put(Context.PROVIDER_URL, providerURL);
Context ctx = new InitialContext(h);
return ctx;
}
}


Here is my environment.
Weblogic 9.2
JDK1.4.15
Eclipse3.2


Runtime Classpath : weblogic.jar(9.2), jmxri.jar(JMX1.2.1 RI),jmxremote.jar,rmissl.jar.JRE1.4.15,Bea license File,webserviceclient+ssl.jar


This is the exception Message I am getting .!

javax.naming.CommunicationException [Root exception is java.net.ConnectException: t3://169.177.69.72:7411: Bootstrap to CAINYCW0460.nam.nsroot.net/169.177.69.72:7411 failed. It is likely that the remote side declared peer gone on this JVM]
at weblogic.jndi.internal.ExceptionTranslator.toNamingException(ExceptionTranslator.java:49)
at weblogic.jndi.WLInitialContextFactoryDelegate.toNamingException(WLInitialContextFactoryDelegate.java:765)
at weblogic.jndi.WLInitialContextFactoryDelegate.getInitialContext(WLInitialContextFactoryDelegate.java:364)
at weblogic.jndi.Environment.getContext(Environment.java:307)
at weblogic.jndi.Environment.getContext(Environment.java:277)
at weblogic.jndi.WLInitialContextFactory.getInitialContext(WLInitialContextFactory.java:117)
at javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:662)
at javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:243)
at javax.naming.InitialContext.init(InitialContext.java:219)
at javax.naming.InitialContext.<init>(InitialContext.java:195)
at ApplicationsExportXMLBatch.getContext(ApplicationsExportXMLBatch.java:92)
at ApplicationsExportXMLBatch.getAppHome(ApplicationsExportXMLBatch.java:79)
at ApplicationsExportXMLBatch.main(ApplicationsExportXMLBatch.java:40)
Caused by: java.net.ConnectException: t3://169.177.69.72:7411: Bootstrap to CAINYCW0460.nam.nsroot.net/169.177.69.72:7411 failed. It is likely that the remote side declared peer gone on this JVM
at weblogic.rjvm.RJVMFinder.findOrCreate(RJVMFinder.java:204)
at weblogic.rjvm.ServerURL.findOrCreateRJVM(ServerURL.java:154)
at weblogic.jndi.WLInitialContextFactoryDelegate.getInitialContext(WLInitialContextFactoryDelegate.java:349)
... 10 more
Caused by: java.rmi.ConnectException: Bootstrap to CAINYCW0460.nam.nsroot.net/169.177.69.72:7411 failed. It is likely that the remote side declared peer gone on this JVM
at weblogic.rjvm.ConnectionManager.bootstrap(ConnectionManager.java:339)
at weblogic.rjvm.RJVMManager.findOrCreateRemoteInternal(RJVMManager.java:259)
at weblogic.rjvm.RJVMManager.findOrCreate(RJVMManager.java:202)
at weblogic.rjvm.RJVMFinder.findOrCreateRemoteServer(RJVMFinder.java:226)
at weblogic.rjvm.RJVMFinder.findOrCreate(RJVMFinder.java:189)
... 12 more
Exception in thread "main"

Please help.
[ March 13, 2008: Message edited by: Nilesh Raje ]

Thanks and Regards,<br />Nilesh<br />SCJP 1.4, SCWCD 1.4
Hemanth H Bhat
Greenhorn

Joined: Apr 14, 2008
Posts: 15
Well i also encountered the same problem when posting a message on to the JMS queue This queue is deployed on a managed server on weblogic 8.1

the actual problem here is if you give the Listen Address (The IP address or DNS name this server uses to listen for incoming connections) under myserver----> Configuration---->general---->Listen Address: TAB if there is a DNS Name entered here then you will encounter this problem

please clear this text box and your problem would be resolved ......

Regards
Hemanth
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: t3s://localhost:7411: Destination unreachable
 
Similar Threads
Getting CommunicationException
java.rmi.ConnectException when updating the application
EJB 3.0 - NoInitialContextException
Bootstrap to localhost/127.0.0.1:80 failed. It is likely that the remote side declar
Any help on weblogic.socket.UnrecoverableConnectException?