[jboss-user] [JBoss Remoting] - JBoss 4 to JBoss 6 - remoting client invocation - Exception due to not being connected to server

Volker Biermann do-not-reply at jboss.com
Thu Oct 25 10:36:04 EDT 2012


Volker Biermann [https://community.jboss.org/people/katerchen0815] created the discussion

"JBoss 4 to JBoss 6 - remoting client invocation - Exception due to not being connected to server"

To view the discussion, visit: https://community.jboss.org/message/772371#772371

--------------------------------------------------------------
Hello,
we have an Web Start application using JBoss. The client application works fine with JBoss 4.2.3.GA but throws Exception using JBoss 6. We use a code sniplet to invoke a bean home interface:

try
        {
            writeLog("connectionStr:", connectionStr);
            writeLog("jndiName:", jndiName);
            
            EJBHome home = getHome(connectionStr, jndiName, homeClass);
            writeLog("Home", "ok");
            writeLog("Home", home.toString());
            Method createMethod = homeClass.getMethod("create", (Class[])null);
            writeLog("createMethod", "ok");
            writeLog("createdMethod ", createMethod.toString());
            
            Object bean = createMethod.invoke(home, (Object[])null);
            writeLog("bean", "ok");
            // sessionCache.put(jndiName, bean);
            return bean;
            // }
            // return sessionCache.get(jndiName);
        }
        catch (ILServiceLocatorException e)
        {
            writeLog("bean", e.getMessage());
            throw e;
        }
        catch (Exception ex)
        {
            writeLog("Exception type", ex.toString());
            PrintWriter pw = null;
            try 
            {
                pw = new PrintWriter(new FileWriter("c:\\test\\properties.txt", true));
                ex.printStackTrace(pw);
                pw.flush();
                pw.close();
            } 
            catch (IOException e) 
            {
                // TODO Auto-generated catch block
                e.printStackTrace();
            }
            throw new ILServiceLocatorException(
                    getMessageString("ErrorCreateBusinessDelegate.001"), ex);
        }



As a result we will get:
--- JBoss 4.2.3.GA ---

Okt 25,2012 15:26 - connectionStr:: jnp://192.168.16.220:10000 
Okt 25,2012 15:26 - jndiName:: ILUserAuthentication 
Okt 25,2012 15:26 - Home: ok 
Okt 25,2012 15:26 - Home: ILUserAuthenticationHome 
Okt 25,2012 15:26 - createMethod: ok 
Okt 25,2012 15:26 - createdMethod : public abstract com.identalink.bpauth.ILUserAuthentication com.identalink.bpauth.ILUserAuthenticationHome.create() throws java.rmi.RemoteException,javax.ejb.CreateException 
Okt 25,2012 15:26 - bean: ok 


--- JBoss 6.1.Final ---

Okt 25,2012 15:50 - connectionStr:: jnp://192.168.16.220:10000 
Okt 25,2012 15:50 - jndiName:: ILUserAuthentication 
Okt 25,2012 15:51 - Home: ok 
Okt 25,2012 15:51 - Home: ILUserAuthenticationHome 
Okt 25,2012 15:51 - createMethod: ok 
Okt 25,2012 15:51 - createdMethod : public abstract com.identalink.bpauth.ILUserAuthentication com.identalink.bpauth.ILUserAuthenticationHome.create() throws java.rmi.RemoteException,javax.ejb.CreateException 
Okt 25,2012 15:51 - Exception type: java.lang.reflect.InvocationTargetException 
java.lang.reflect.InvocationTargetException
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
    at java.lang.reflect.Method.invoke(Unknown Source)
    at com.identalink.utils.ILServiceLocator.getSessionBean(ILServiceLocator.java:283)
    ... 43 more

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:2075)
    at org.jboss.remoting.Client.invoke(Client.java:879)
    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.ejb.SecurityContextInterceptor.invoke(SecurityContextInterceptor.java:64)
    at org.jboss.proxy.SecurityInterceptor.invoke(SecurityInterceptor.java:68)
    at org.jboss.proxy.ejb.HomeInterceptor.invoke(HomeInterceptor.java:184)
    at org.jboss.proxy.ClientContainer.invoke(ClientContainer.java:101)
    ... 44 more

We think it has something to do of changes on jboss-remoting.jar. 

How can we solve the problem?

Thank you for your help
Volker
--------------------------------------------------------------

Reply to this message by going to Community
[https://community.jboss.org/message/772371#772371]

Start a new discussion in JBoss Remoting at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2050]

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/jboss-user/attachments/20121025/ce2520e2/attachment.html 


More information about the jboss-user mailing list