[jboss-remoting-issues] [JBoss JIRA] (JBREM-1315) Exception during EJBHome.create()

Darran Lofthouse (JIRA) jira-events at lists.jboss.org
Mon Sep 17 04:49:35 EDT 2012


     [ https://issues.jboss.org/browse/JBREM-1315?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Darran Lofthouse resolved JBREM-1315.
-------------------------------------

    Resolution: Rejected


Reading your description it sound like you are asking to discuss your issue - in that case you should be using the discussion forums: -

https://community.jboss.org/index.jspa?view=discussions

Jira is for the reporting of bugs, ideally after a discussion in the forums to confirm it needs to be reported as a bug.

                
> Exception during EJBHome.create()
> ---------------------------------
>
>                 Key: JBREM-1315
>                 URL: https://issues.jboss.org/browse/JBREM-1315
>             Project: JBoss Remoting
>          Issue Type: Bug
>      Security Level: Public(Everyone can see) 
>            Reporter: Arun Varadharajan
>
> I'm using RMI over HTTPs on JBOSS version 4.2.3. When I trying to make a EJBHome object.create() method, i'm getting the exception as below:
> Exception in thread "main" home: gem/SystemManagerHome
> java.lang.reflect.UndeclaredThrowableException
> 	at $Proxy1.create(Unknown Source)
> 	at EJBClient.main(EJBClient.java:76)
> Caused by: java.lang.Exception: Can not make remoting client invocation due to not being connected to server.
> 	at org.jboss.remoting.Client.invoke(Client.java:1639)
> 	at org.jboss.remoting.Client.invoke(Client.java:548)
> 	at org.jboss.invocation.unified.interfaces.UnifiedInvokerProxy.invoke(UnifiedInvokerProxy.java:184)
> 	at org.jboss.invocation.InvokerInterceptor.invokeInvoker(InvokerInterceptor.java:365)
> 	at org.jboss.invocation.InvokerInterceptor.invoke(InvokerInterceptor.java:197)
> 	at org.jboss.proxy.TransactionInterceptor.invoke(TransactionInterceptor.java:61)
> 	at org.jboss.proxy.SecurityInterceptor.invoke(SecurityInterceptor.java:70)
> 	at org.jboss.proxy.ejb.HomeInterceptor.invoke(HomeInterceptor.java:184)
> 	at org.jboss.proxy.ClientContainer.invoke(ClientContainer.java:100)
> 	... 2 more
> Could any one help, when this exception will raise and how to resolve it?
> My sample client is as below:
> import java.io.IOException;
> import java.util.Properties;
> import javax.ejb.CreateException;
> import javax.naming.Context;
> import javax.naming.InitialContext;
> import javax.naming.NamingException;
> import javax.rmi.PortableRemoteObject;
> import com.test.interfaces.SystemManagerHome;
> public class EJBClient {
> 	
> 	public static void main(String args[]) throws IOException,NamingException, CreateException{
> 		Properties props = new Properties();
> 		 
>         String testKey = "gem/SystemManager";
>         
>         props.setProperty("java.naming.factory.initial", "org.jboss.naming.HttpNamingContextFactory");	
>         props.setProperty(Context.URL_PKG_PREFIXES,"org.jboss.naming:org.jnp.interfaces");
> 		props.setProperty("java.naming.provider.url","jnps://x.x.x.x:8443/invoker/JNDIFactory");
> 		System.setProperty("javax.net.ssl.trustStore", "18xytruststore");
> 		System.setProperty("javax.net.ssl.trustStorePassword","zicstorepass");
> 		System.setProperty("org.jboss.security.ignoreHttpsHost","true");
> 		
> 		System.out.println("Creating Context");
> 		Context ctx = new InitialContext(props);
> 		Object obj = ctx.lookup(testKey);
> 		System.out.println("naming Ctx :" + ctx + " Obj:" + obj);
> 		SystemManagerHome home = (SystemManagerHome)PortableRemoteObject.narrow(obj, SystemManagerHome.class);		
>         System.out.println("home: " + home);
>         DomainManager mgr = home.create();
> 		System.out.println("Created Context");
> 		System.out.println(ctx.getEnvironment()+"\n"/*+ctx.getEnvironment()*/);
> 	}
> }

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira


More information about the jboss-remoting-issues mailing list