Java RMI under UNIX

I have execute an example of RMI on 2 stations client/server
under the same one systeme(Windows)mais when I have to try to test it
under Unix, I do not have arrive
what is it necessary for me like configuration?

well: how far have you gone or tested the app? where are you getting stuck? i'm running rmi on linux and i may be able to help out, but you need to give me more details.

Similar Messages

  • Auditting Java Process under Unix

    Is there a way to see which java processes are running
    in Unix?
    ps -f does not work because the arguments passed
    to java are too long and get truncated

    Hi,
    Try this command:
    # top | grep java
    "top" utility you can download it from http://www.sunfreeware.com for appropriate solaris versions.
    Revert back.
    Thanks,
    Senthilkumar

  • Bug with RMI server under Unix

    I have a server/client apps, and it work under Windows but not under Unix.
    With Unix i have an exception :
    java.rmi.ConnectException: Connection refused to host: 127.0.0.1; nested exception is:
    java.net.ConnectException: Connection refused
    java.net.ConnectException: Connection refused
    at java.net.PlainSocketImpl.socketConnect(Native Method)
    at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:350)
    at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:137)
    at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:124)
    at java.net.Socket.<init>(Socket.java:268)
    at java.net.Socket.<init>(Socket.java:95)
    at sun.rmi.transport.proxy.RMIDirectSocketFactory.createSocket(RMIDirectSocketFactory.java:20)
    at sun.rmi.transport.proxy.RMIMasterSocketFactory.createSocket(RMIMasterSocketFactory.java:115)
    at sun.rmi.transport.tcp.TCPEndpoint.newSocket(TCPEndpoint.java:494)
    at sun.rmi.transport.tcp.TCPChannel.createConnection(TCPChannel.java:185)
    at sun.rmi.transport.tcp.TCPChannel.newConnection(TCPChannel.java:169)
    at sun.rmi.server.UnicastRef.invoke(UnicastRef.java:78)
    at ServeurChatImpl_Stub.connect(Unknown Source)
    at ClientDistantImpl.main(ClientDistantImpl.java:85)
    Why?

    Your question is very vague. Are you running the client and the server on the same machine or not at least it seems so. Are you using UnicastRemoteObject, RemoteObject or Activatable for extension. Also post some of your code and settings only then would somebody be able to help u.

  • Java.rmi.RemoteException: SOAP Fault:javax.xml.rpc.soap.SOAPFaultException

    Hi, I created a webservice using weblogic8.1 sp3 workshop. On my desktop, I tested the webservice with a java client and it worked fine. When I deployed webservice application on UNIX production server, it deployed successfully and it displayed WSDL file too. But, when I run java client from desktop to access this webservice on UNIX server, it is throwing the following exception.
    java.rmi.RemoteException: SOAP Fault:javax.xml.rpc.soap.SOAPFaultException: EXCEPTION: java.lang.NoClassDefFoundError [ServiceException]
    Detail:
    <detail>
    null </detail>; nested exception is:
    javax.xml.rpc.soap.SOAPFaultException: EXCEPTION: java.lang.NoClassDefFoundError [ServiceException]
    at weblogic.jws.proxies.MyServiceSoap_Stub.getInfo(MyServiceSoap_Stub.java:31)
    at SoapClient.main(SoapClient.java:17)
    Caused by: javax.xml.rpc.soap.SOAPFaultException: EXCEPTION: java.lang.NoClassDefFoundError [ServiceException]
    at weblogic.webservice.core.ClientDispather.receive(ClientDispatcher.java:313)
    at weblogic.webservice.core.ClientDispatcher.dispatch(ClientDispatcher.java:144)
    at weblogic.webservice.core.DefaultOperation.invoke(DefaultOperation.java:457)
    at weblogic.webservice.core.DefaultOperation.invoke(DefaultOperation.java:443)
    at weblogic.webservice.core.rpc.StubImpl._invoke(StubImpl.java:290)
    at weblogic.jws.proxies.MyServiceSoap_Stub.getInfo(MyServiceSoap_Stub.java:26)
    can somebody please help me. This is very critical for me.
    Thanks in advance.

    Hi, I created a webservice using weblogic8.1 sp3 workshop. On my desktop, I tested the webservice with a java client and it worked fine. When I deployed webservice application on UNIX production server, it deployed successfully and it displayed WSDL file too. But, when I run java client from desktop to access this webservice on UNIX server, it is throwing the following exception.
    java.rmi.RemoteException: SOAP Fault:javax.xml.rpc.soap.SOAPFaultException: EXCEPTION: java.lang.NoClassDefFoundError [ServiceException]
    Detail:
    <detail>
    null </detail>; nested exception is:
    javax.xml.rpc.soap.SOAPFaultException: EXCEPTION: java.lang.NoClassDefFoundError [ServiceException]
    at weblogic.jws.proxies.MyServiceSoap_Stub.getInfo(MyServiceSoap_Stub.java:31)
    at SoapClient.main(SoapClient.java:17)
    Caused by: javax.xml.rpc.soap.SOAPFaultException: EXCEPTION: java.lang.NoClassDefFoundError [ServiceException]
    at weblogic.webservice.core.ClientDispather.receive(ClientDispatcher.java:313)
    at weblogic.webservice.core.ClientDispatcher.dispatch(ClientDispatcher.java:144)
    at weblogic.webservice.core.DefaultOperation.invoke(DefaultOperation.java:457)
    at weblogic.webservice.core.DefaultOperation.invoke(DefaultOperation.java:443)
    at weblogic.webservice.core.rpc.StubImpl._invoke(StubImpl.java:290)
    at weblogic.jws.proxies.MyServiceSoap_Stub.getInfo(MyServiceSoap_Stub.java:26)
    can somebody please help me. This is very critical for me.
    Thanks in advance.

  • UnmarshalException while using prop  java.rmi.server.ignoreStubClasses=true

    I have created a test program to check the behaviour of setting the java.rmi.server.ignoreStubClasses property to true on the server side and not setting this flag on the client side.
    This requirement is due to updation of an already running system, with stubs to a new version without stubs, without shutting down the system.
    The files used by me are given below.
    File Hello.java
    package example.hello;
    import java.rmi.Remote;
    import java.rmi.RemoteException;
    public interface Hello extends Remote {
    String sayHello() throws RemoteException;
    File Server.java
    package example.hello;
    import java.rmi.registry.LocateRegistry;
    import java.rmi.registry.Registry;
    import java.rmi.server.UnicastRemoteObject;
    public class Server implements Hello {
    public Server() {}
    public String sayHello() {
    return "Hello, world!";
    public static void main(String args[]) {
    try {
    LocateRegistry.createRegistry(1099);
    Server obj = new Server();
    Hello stub = (Hello) UnicastRemoteObject.exportObject(obj, 0);
    // Bind the remote object's stub in the registry
    Registry registry = LocateRegistry.getRegistry();
    registry.bind("Hello", stub);
    System.err.println("Server ready");
    catch (Exception e)
    System.err.println("Server exception: " + e.toString());
    e.printStackTrace();
    File Client.java
    package example.hello;
    import java.rmi.registry.LocateRegistry;
    import java.rmi.registry.Registry;
    public class Client {
    private Client() {}
    public static void main(String[] args) {
    String host = (args.length < 1) ? null : args[0];
    try {
    Registry registry = LocateRegistry.getRegistry(host);
    Hello stub = (Hello) registry.lookup("Hello");
    String response = stub.sayHello();
    System.out.println("response: " + response);
    } catch (Exception e) {
    System.err.println("Client exception: " + e.toString());
    e.printStackTrace();
    First I run file Server.java using the following script (server.bat)
    java -Djava.rmi.server.ignoreStubClasses=true -classpath .; example.hello.Server
    pause
    Then the client is run using the following script (client.bat)
    java -classpath .; example.hello.Client 132.186.96.210
    pause
    While running the client, the following exception is obtained.
    Client exception: java.rmi.ServerException: RemoteException occurred in server thread; nested except
    java.rmi.UnmarshalException: error unmarshalling call header; nested exception is:
    java.rmi.UnmarshalException: skeleton class not found but required for client version
    java.rmi.ServerException: RemoteException occurred in server thread; nested exception is:
    java.rmi.UnmarshalException: error unmarshalling call header; nested exception is:
    java.rmi.UnmarshalException: skeleton class not found but required for client version
    at sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:325)
    at sun.rmi.transport.Transport$1.run(Transport.java:153)
    at java.security.AccessController.doPrivileged(Native Method)
    at sun.rmi.transport.Transport.serviceCall(Transport.java:149)
    at sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:460)
    at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:701)
    at java.lang.Thread.run(Thread.java:595)
    at sun.rmi.transport.StreamRemoteCall.exceptionReceivedFromServer(StreamRemoteCall.java:247)
    at sun.rmi.transport.StreamRemoteCall.executeCall(StreamRemoteCall.java:223)
    at sun.rmi.server.UnicastRef.invoke(UnicastRef.java:343)
    at sun.rmi.registry.RegistryImpl_Stub.lookup(Unknown Source)
    at example.hello.Client.main(Client.java:52)
    Caused by: java.rmi.UnmarshalException: error unmarshalling call header; nested exception is:
    java.rmi.UnmarshalException: skeleton class not found but required for client version
    at sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:250)
    at sun.rmi.transport.Transport$1.run(Transport.java:153)
    at java.security.AccessController.doPrivileged(Native Method)
    at sun.rmi.transport.Transport.serviceCall(Transport.java:149)
    at sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:460)
    at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:701)
    at java.lang.Thread.run(Thread.java:595)
    Caused by: java.rmi.UnmarshalException: skeleton class not found but required for client version
    at sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:243)
    ... 6 more
    I am not able to figure out why this thing is happening, If i also set the property java.rmi.server.ignoreStubClasses=true on the client side everything goes fine. But this I can't do. I can't set the property on the client side as the system is up and already running.
    I am using JDK version 1.5.0_06. Same exception comes under JDK 6.0
    Any help will be highly appreciated.

    I think this is a bug. When you exported the Registry from your server JVM it was also exported with java.rmi.server.ignoreStubClasses=true, but the Registry bootstrap at the client requires the 1.1 stub protocol for compatiblity reasons so you got this error. I would report this on the Bug Parade.
    You could get around it by setting java.rmi.server.ignoreStubClasses after exporting the Registry.
    BTW java.rmi.server.ignoreStubClasses isn't supposed to do anything at the client whether true or false so you can cut your testing space in half.

  • Java.rmi.RemoteException when deploying DC (NWDI)

    Hi Experts,
            I have created a Local Development Component (say: for common functionalities) and used the same in another Local Development Components. I am able to build as well deploy it on to the server.
    Now, what I am trying to do is transport the same to NWDI. I have created the Development Component under the SC(which holds the Components; sap.com_SAP-JEE_1, sap.com_SAP_BUILDT_1 and sap.com_SAP_JTECHS_1).
    When deploying the Development Component, I end in the following error:
    Jul 16, 2008 8:15:02 AM /userOut/deploy (com.sap.ide.eclipse.sdm.threading.DeployThreadManager) [Thread[Deploy Thread,5,main]] ERROR:
    [013]Deployment aborted
    Settings
    SDM host : myserver
    SDM port : 50000
    URL to deploy : file:/C:/DOCUME1/e10055/LOCALS1/Temp/temp65483com.sapartectest~utils.ear
    Result
    => deployment aborted : file:/C:/DOCUME1/e10055/LOCALS1/Temp/temp65483com.sapartectest~utils.ear
    Aborted: development component 'artec/test/utils'/'com.sap'/'W01_SANDBOX_D'/'20080716021537'/'0':
    Caught exception during application deployment from SAP J2EE Engine's deploy service:
    java.rmi.RemoteException: Cannot deploy application com.sap/artectestutils.. Reason: Clusterwide exception: Failed to deploy application com.sap/artectestutils. Check causing exception for details (trace file). Hint: Are all referenced components deployed and available on the engine?; nested exception is:      com.sap.engine.services.deploy.container.DeploymentException: Clusterwide exception: Failed to deploy application com.sap/artectestutils. Check causing exception for details (trace file). Hint: Are all referenced components deployed and available on the engine?
    (message ID: com.sap.sdm.serverext.servertype.inqmy.extern.EngineApplOnlineDeployerImpl.performAction(DeploymentActionTypes).REMEXC)
    Deployment exception : The deployment of at least one item aborted
    But, when I deploy the same in another server it works fine. Give me a solution of where I am wrong
    Regards,
    Mathan

    Mathan,
    Try this,
    Go to visual admin->Server->services->deploy
    Select the Application radio button and select your application and click remove. Do the same to the referred dc also.
    Once all the application and all the referred dcs are removed, try to redeploy the dc and referred dc from the studio.
    Hope this works.
    --MLS

  • Java.rmi.RemoteException - on deploying a webservice through NWDS.

    Hi All,
    We have created and successfully build a webservice application in NWDS.
    Now when the activity is activated in Activation view, the build goes fine but deployment gets aborted with the following error:
    Caught exception during application deployment from SAP J2EE Engine's deploy service:
    java.rmi.RemoteException: Cannot deploy application syngenta.com/crmws~usprvwebservice..
    Reason: Webservices common deployment exception! The reason is: Error occurred, trying to update web services for application
    The Runtime system is on SAP J2EE ENGINE CORE 7.00 - SPS 19.
    For the same issue i checked in SDN and found out a SAP NOTE - 956443, according to which 2 sda files 'webservices' and 'webservices_lib'  were to be deployed on the server.
    We have done the same and restarted the engine also. But still on deployment we got the same error again.
    Just wanted to know the workaround for this issue and whether some updated version of this SAP Note does exist?
    Regards,
    Shailesh

    Hi All,
    Now the above issue has been resolved and the webservice is getting deployed successfully, and is visible under Web service Navaigator of the desired server.
    But when i am clicking on the webservice name i am getting an error:
    Cannot download WSDL from http://<name>:<port>/webservicename/Config1?wsdl: java.lang.NullPointerException.
    Could you please help out with this issue.
    Regards,
    Shailesh

  • RemoteException: java.rmi.UnmarshalException in jdk 1.4.2

    i'm implementing an RMI over the jdk 1.4.2 (can't do it in the 1.5 or 1.6) i've seen this topic [http://forum.java.sun.com/thread.jspa?threadID=370196&messageID=1808449] but it didn't help me, or i'm doing something wrong...
    i know the RMI code is ok because it runs on java 1.6 (with the automatic generation of stubs and skeletons) but when i change the platform to 1.4 it throws the exception:
    RemoteException: java.rmi.UnmarshalException: error unmarshalling return; nested exception is:
    java.lang.ClassNotFoundException: servidor.MensageiroImpl_Stub
    the VM is configured to use the -Djava.security.policy=C:\Projecto\Policy\permissions.policy both in the client and server
    please help me :S i've been burning my head with this for 3 days
    i leave my code here:
    The interface:
    package rmiinterface;
    import java.rmi.Remote;
    import java.rmi.RemoteException;
    public interface Mensageiro extends Remote {
        public void sendMsg(String msg) throws RemoteException;
        public String readMsg() throws RemoteException;
    }the implementation:
    package servidor;
    import rmiinterface.Mensageiro;
    import java.rmi.RemoteException;
    import java.rmi.server.UnicastRemoteObject;
    public class MensageiroImpl extends UnicastRemoteObject implements Mensageiro {
        public MensageiroImpl() throws RemoteException {
            super();
        public void sendMsg(String msg) throws RemoteException {
            System.out.println(msg);
        public String readMsg() throws RemoteException {
            return "This is not a Hello World! message";
    }the server:
    package servidor;
    import rmiinterface.Mensageiro;
    import java.rmi.Naming;
    import java.rmi.RMISecurityManager;
    public class MensageiroServer {
        public MensageiroServer() {
            System.setSecurityManager(new RMISecurityManager());
            try {
                Mensageiro m = new MensageiroImpl();
                java.rmi.registry.LocateRegistry.createRegistry(1099);
                System.out.println("RMI registry successfully initiated");
                Naming.rebind("MensageiroService", m);
                System.out.println("Servidor Online");
            } catch (Exception e) {
                System.out.println("Trouble: " + e.getMessage());
        public static void main(String[] args) {
            new MensageiroServer();
    }and the client:
    package cliente;
    import rmiinterface.Mensageiro;
    import java.rmi.RMISecurityManager;
    import java.rmi.Naming;
    import java.rmi.RemoteException;
    import java.rmi.NotBoundException;
    import java.net.MalformedURLException;
    public class MensageiroClient {
        public MensageiroClient() {
        public static void main(String args[]) {
            System.setSecurityManager(new RMISecurityManager());
            try {
                Mensageiro m = (Mensageiro) Naming.lookup("//localhost/MensageiroService");
                System.out.println(m.readMsg());
                m.sendMsg("Hello World!");
            } catch (MalformedURLException e) {
                System.out.println();
                System.out.println("MalformedURLException: " + e.toString());
            } catch (RemoteException e) {
                System.out.println();
                System.out.println("RemoteException: " + e.toString());
            } catch (NotBoundException e) {
                System.out.println();
                System.out.println("NotBoundException: " + e.toString());
            } catch (Exception e) {
                System.out.println();
                System.out.println("Exception: " + e.toString());
    }NOTE: my IDE is Netbeans 6.1. and the client and server are in diffrent projects
    thanks in advance
    Best Regards,
    Carlos Daniel Ribeiro

    the stub and the skeleton are being generated, and they are there, in the server project! i don't know why the class defs for the stub filearen't downloded by the client project...I don't know why you think they will be downloaded. They won't be, unless you're using the codebase feature. The client needs the remote interface and the stub on its classpath, and all classes that the remote interface depends on, and so on recursively until closure. You have to do something about that.
    It works under 1.6 because it doesn't need the stub at all.

  • Java.rmi.NoSuchObjectException problems

    Hello,
    After calling home.create() in my code, passing in primary key and
    additional column data, when I call home.findByPrimaryKey (primkey)
    followed by a call to one of the methods in the bean, I immediately get
    a a java.rmi.NoSuchObjectException.
    An exception is not thrown when calling home.findByPrimaryKey (primkey)
    so it is safe to assume that a reference has been obtained to the bean
    with the data I am looking for, correct? If so, why am I getting this
    exception:
    java.rmi.NoSuchObjectException: Bean with primary key: 'Pat Hardy' not
    found in
    home: 'Student'
    at
    weblogic.ejb.internal.EntityEJBContext.load(EntityEJBContext.java:153
    at
    weblogic.ejb.internal.EntityEJBContext.afterBegin(EntityEJBContext.ja
    va:212)
    at
    weblogic.ejb.internal.StatefulEJBObject.getContextForInvoke(StatefulE
    JBObject.java:162)
    etc.
    etc.
    etc.
    Any ideas of what I might be doing wrong?
    Thanks for your help in advance.

    We had a similar problem, although I don't know if it was the same
    thing. We are using WL 5.1, sp5, with Oracle 8.1.6.
    I have a stateless session bean, which had a transactional attribute
    of 'Supports'. It would call an entity bean with transactional attribute
    of 'RequiresNew' for all methods. The session bean would do a finder
    on the entity bean, and if it got an ObjectNotFoundException, it would
    then create the entity bean with a call to home.create(id). Then, it would
    call a business method on the entity bean.
    For some reason, in the case where the session bean is called from within
    a thread that already had a transaction started, the call to the entity
    bean business method would hang, if an only if it had to create a new
    bean first. If the finder of the bean succeeded, there would be no hang.
    Sometimes, instead of hanging, it would return a NoSuchObjectException.
    If the stateless bean were called outside of a transaction, would always
    succeed, regardless.
    So, my fix, was to set the transactional attribute for the stateless bean to
    'NotSupported' for all methods. It now seems to work in all cases,
    no more hangs or NoSuchObjectExceptions....
    Is this expected behavior? Is this related to the same problem?
    The BEA recomendations to use READ-COMMITTED are useless for
    the case where you are running a clustered environment, and where you
    need to have the bean deployed on all servers in the cluster for
    fail-over reliability.....
    Jason
    "Korey Shronts" <[email protected]> wrote in message
    news:[email protected]...
    I dont' know about the mapping to CHAR but we've managed to fix our nosuch
    object problem.
    BEA sent me this snippet:
    The bug is as follows
    In Oracle (8.0.5), if there is a primary key constraint AND you use an
    isolation
    level of SERIALIZABLE, an insert followed by an update in the same
    transaction
    fails. Specifically, the insert succeeds (to all outward indications),
    but the update fails (the returned count is 0) after some number of
    iterations.
    What's the workaround? If the customer is not sharing the database with
    any
    other app or running it under a cluster, tell them to set the isolation
    level to
    read_committed. Serializable only slows them down without any added
    benefit.
    If clustering is on, and serializable behavior is deemed essential for
    this
    particular bean, maybe they can deploy the bean on only one of the
    servers
    to reduce it to the case above.
    I set the isolation level on our beans to read_commited. Fixed theproblem
    although we're using Oracle 8i not 8.0.5.
    <[email protected]> wrote in message
    news:[email protected]...
    Well, it appears, that you cannot map a java.lang.String to a CHAR inOracle.
    A java.lang.String can be mapped to a VARCHAR2.
    Is this a bug?
    [email protected] wrote:
    I just install WebLogic server 5.1.0 and SP5 on a new machine.
    Still have the same problems.
    Will keep you posted.
    Korey Shronts wrote:
    We're having the same problem. I've opened a case with BEA but
    haven't
    heard anything yet. If you find the solution let me know!
    [email protected]
    <[email protected]> wrote in message
    news:[email protected]...
    I accidently omitted the first line in the exception. Sorry aboutthat.
    Here it is again from the beginning:
    Thu Sep 21 08:52:12 EDT 2000:<I> <EJB JAR deploymentC:/wlogic/lib/S.jar>
    Transa
    ction: '969540638993_1' rolled back due to EJB exception:
    java.rmi.NoSuchObjectException: Bean with primary key: 'Pat Hardy'not
    found in
    home: 'Student'
    at
    weblogic.ejb.internal.EntityEJBContext.load(EntityEJBContext.java:153
    at
    weblogic.ejb.internal.EntityEJBContext.afterBegin(EntityEJBContext.ja
    va:212)
    at
    weblogic.ejb.internal.StatefulEJBObject.getContextForInvoke(StatefulE
    JBObject.java:162)
    etc.
    etc.
    etc.
    Any ideas of what I might be doing wrong?
    Thanks for your help in advance.
    [email protected] wrote:
    Hello,
    After calling home.create() in my code, passing in primary key
    and
    additional column data, when I call home.findByPrimaryKey(primkey)
    followed by a call to one of the methods in the bean, Iimmediately get
    a a java.rmi.NoSuchObjectException.
    An exception is not thrown when calling home.findByPrimaryKey(primkey)
    so it is safe to assume that a reference has been obtained to
    the
    bean
    with the data I am looking for, correct? If so, why am I gettingthis
    exception:
    java.rmi.NoSuchObjectException: Bean with primary key: 'Pat
    Hardy'
    not
    found in
    home: 'Student'
    at
    weblogic.ejb.internal.EntityEJBContext.load(EntityEJBContext.java:153
    at
    weblogic.ejb.internal.EntityEJBContext.afterBegin(EntityEJBContext.ja
    va:212)
    at
    weblogic.ejb.internal.StatefulEJBObject.getContextForInvoke(StatefulE
    JBObject.java:162)
    etc.
    etc.
    etc.
    Any ideas of what I might be doing wrong?
    Thanks for your help in advance.

  • Java develoment in unix or windows

    Sometimes people ask u 'have u done java development in unix or wondows'. Whats the difference between developing java apps in unix or windows

    also if you have developed under windows, and a few different unix platforms (Mac OS X, linux, solaris, HP/UX etc..) then you learn where the "Write Once, Run Anywhere" slogan doesn't quite hold (don't get me wrong this is usually in trivial ways)
    eg. GUI layout needs a once-over on each platform usually just to make sure everything looks sensible, you may have relied on a behaviour of an API that was coincidental rather than in the spec, and another platform has implemented differently
    there are also real-world deployment problems like users running your program on a machine that hasn't been patched properly, or hitting bugs in the API that only exist on one platform

  • Exception occurred: java.rmi.ServerException

    Hello,
    I am trying to run small rmi program on sun solaris unix server. but after running the rmiregistry when I have execute the server program, it's throwing me following error. The same program is running fine in my local windows machine.
    java.rmi.ServerException: RemoteException occurred in server thread; nested exception is:
    java.rmi.UnmarshalException: error unmarshalling arguments; nested exception is:
    java.lang.ClassNotFoundException: RMITest.myRMIInterface
    at sun.rmi.server.UnicastServerRef.oldDispatch(UnicastServerRef.java:400)
    at sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:255)
    at sun.rmi.transport.Transport$1.run(Transport.java:168)
    at java.security.AccessController.doPrivileged(AccessController.java:274)
    at sun.rmi.transport.Transport.serviceCall(Transport.java:164)
    at sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:506)
    at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.handleRequest(TCPTransport.java:838)
    at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:912)
    at java.lang.Thread.run(Thread.java:797)
    at sun.rmi.transport.StreamRemoteCall.exceptionReceivedFromServer(StreamRemoteCall.java:263)
    at sun.rmi.transport.StreamRemoteCall.executeCall(StreamRemoteCall.java:239)
    at sun.rmi.server.UnicastRef.invoke(UnicastRef.java:358)
    at sun.rmi.registry.RegistryImpl_Stub.rebind(RegistryImpl_Stub.java:133)
    at java.rmi.Naming.rebind(Naming.java:174)
    at RMITest.myRMIImpl.<init>(myRMIImpl.java:14)
    at RMITest.myRMIServer.main(myRMIServer.java:12)
    I have check that this exception occured when IMPL class's naming.rebind method called.
    import java.rmi.*;
    import java.rmi.server.UnicastRemoteObject;
    public class myRMIImpl extends UnicastRemoteObject implements myRMIInterface
    public myRMIImpl(String name) throws RemoteException
    super();
    try
    Naming.rebind(name, this);
    catch(Exception e)
    System.out.println("Exception occurred: " + e);
    public java.util.Date getDate()
    return new java.util.Date();
    Can you help me how to solve this problem.
    Note : my rmiregistry is running on 4999 port.
    - Hiren Modi

    java.lang.ClassNotFoundException: RMITest.myRMIInterfaceThe Registry can't find that class on its CLASSPATH.
    Solution: do something about that. Either run the registry as a separate task with a suitable CLASSPATH setting, or run it in the server JVM via LocateRegistry.createRegistry().

  • Standard Java RMI and WLS5.1?

     

    I would surmise that the problem you are seeing is the result of the fact
    that we do not except standard Java RMI calls using the functionality in the
    JDK. You must use the WebLogic implementation of RMI. It is exactly the
    same in terms of APIs, but we have gone through and optimize the underlying
    protocol.
    Please see the documentation for more details.
    We offer both RMI over IIOP and RMI over T3.
    Thanks,
    Michael
    Michael Girdley
    Product Manager, WebLogic Server & Express
    BEA Systems Inc
    Mario Felarca <[email protected]> wrote in message
    news:[email protected]..
    Hello,
    I was trying to get a simple callback demo working using standard java
    RMI and the WLS5.1. Unfortunately, although things seemed to compile
    and launch smoothly, when the client started up and tried to talk to the
    WLS I would get the following error:
    weblogic.rmi.server.ExportException: A description for CallbackImpl was
    found but it could not be read due to: [Failed to find a stub for [class
    CallbackImpl] implements at least one interface [interface Callback]
    which extends Remote.]
    weblogic.rmi.StubNotFoundException: Failed to find a stub for [class
    CallbackImpl] implements at least one interface [interface Callback]
    which extends Remote.
    I tried determining if this was a classpath problem, but all my efforts
    kept producing this result.
    On the flip side, if I retool my objects slightly in order to make them
    use weblogic.rmi.*, then everything works perfectly.
    Is there a tradeoff to using weblogic.rmi over java.rmi?
    Also, does anyone have any ideas as to what might be causing my error
    when using standard rmi?
    Thanks so much in advance,
    Mario-

  • What does java.rmi.ConnectException: Connection refused to host mean? ¶

    Several users have run into a java.rmi.ConnectException message during deployment, and need some information on how to troubleshoot this. We'll be adding this to our documentation, but thought it might be useful now.
    In NoSQL DB R2.0, the show plan -id <id> command displays plan status and any errors that may have occurred. If you see this exception listed in the error section, it means that the Admin service was unable to reach one of the NoSQL DB components while the system was trying to execute an administrative command.
    The first step is check on the overall status of the store. One way to do that is to use the show topology command, followed by the verify command. The show topology command will display the layout of the store, while verify will check the status of each component. A component that can't be reached will display a status of UNREACHABLE.
    In general, NoSQL DB attempts to make any troubleshooting information you need available through the Admin CLI, through commands like show plan, show events, show faults. A ConnectException message means that a communication channel either was not established, or failed, and in those cases, troubleshooting information may not have been conveyed to the Admin service. This is particularly true if there was a communication failure during initial deployment of a component.
    The next step would be to look in the NoSQL log files for more detailed error information. Look first in the aggregated storewide log, which can be found in the node that is hosting the master admin service, under the KVROOT/<storename>/logs/<storename>*.log. You can locate the master Admin through the "verify" command. This log file contains information from all the different components in the store.
    Suppose Replication Node rg1-rn3, on Storage Node sn3, is not responsive. Look through the <storename>.log for entries made by those components. Each log entry is prefixed with the name of the component that issued the log message. Sometimes the aggregated storewide log has too much information, or sometimes information from a component was not transmitted to the Admin, and therefore isn't included in the aggregated log. In that case, it can be more helpful to look at the Replication Node or Storage Node logs directly, which can be found on their host, in the <KVROOT>/<storename>/logs directory.
    If the problem occurs during an initial deployment, it can be particularly helpful to review the Storage Node logs to make sure that the Storage Node Agent on that node was created correctly, and that the process came up as expected, according to the installation directions, and the Replication Node logs. Some of the common reasons why a Replication Node might not come up are that here is inadequate heap and memory on the node, or that a initial configuration parameter is misspelled or has an invalid value, or that the time skew between components is greater than NoSQL's acceptable limit.

    Several users have run into a java.rmi.ConnectException message during deployment, and need some information on how to troubleshoot this. We'll be adding this to our documentation, but thought it might be useful now.
    In NoSQL DB R2.0, the show plan -id <id> command displays plan status and any errors that may have occurred. If you see this exception listed in the error section, it means that the Admin service was unable to reach one of the NoSQL DB components while the system was trying to execute an administrative command.
    The first step is check on the overall status of the store. One way to do that is to use the show topology command, followed by the verify command. The show topology command will display the layout of the store, while verify will check the status of each component. A component that can't be reached will display a status of UNREACHABLE.
    In general, NoSQL DB attempts to make any troubleshooting information you need available through the Admin CLI, through commands like show plan, show events, show faults. A ConnectException message means that a communication channel either was not established, or failed, and in those cases, troubleshooting information may not have been conveyed to the Admin service. This is particularly true if there was a communication failure during initial deployment of a component.
    The next step would be to look in the NoSQL log files for more detailed error information. Look first in the aggregated storewide log, which can be found in the node that is hosting the master admin service, under the KVROOT/<storename>/logs/<storename>*.log. You can locate the master Admin through the "verify" command. This log file contains information from all the different components in the store.
    Suppose Replication Node rg1-rn3, on Storage Node sn3, is not responsive. Look through the <storename>.log for entries made by those components. Each log entry is prefixed with the name of the component that issued the log message. Sometimes the aggregated storewide log has too much information, or sometimes information from a component was not transmitted to the Admin, and therefore isn't included in the aggregated log. In that case, it can be more helpful to look at the Replication Node or Storage Node logs directly, which can be found on their host, in the <KVROOT>/<storename>/logs directory.
    If the problem occurs during an initial deployment, it can be particularly helpful to review the Storage Node logs to make sure that the Storage Node Agent on that node was created correctly, and that the process came up as expected, according to the installation directions, and the Replication Node logs. Some of the common reasons why a Replication Node might not come up are that here is inadequate heap and memory on the node, or that a initial configuration parameter is misspelled or has an invalid value, or that the time skew between components is greater than NoSQL's acceptable limit.

  • Java RMI or Servers

    I want to have a server process running on a Windows computer as long as the computer is on, but a user is not necessarily logged in. I don't want to have someone have to go physically to the computer, but I want this to run automatically. How can this be done? Is there something like a "cron" job (Unix) for Windows?
    Also, I want a Java process on Unix to connect to this Windows computer and run commands. How can the Windows process be sure that the authorized user is connecting to the environment? The thing is we are already inside a company within a firewall , protected from the outside world. However, within this project only 4-5 people should be able to run commands on the Windows computer, so how can I secure it in that manner?

    On the Page: Making a UnicastRemoteObject Activatable
    "This page is just for developers who wish to change an existing class from being a sub-class of UnicastRemoteObject to being a sub-class of java.rmi.activation.Activatable."
    But then the second paragraph:
    "Now with the introduction of the class java.rmi.activation.Activatable and the RMI daemon, rmid, programs can be written to register information about remote object implementations that should be created and execute "on demand," rather than running all the time. "
    The second paragraph states that Activatable is for running on demand and this page says this page is for changing the class to a sub-class of Activatable.
    I don't want something that can run on demand, I want it to run all the time.
    Also, I have never written an RMI program before. I know basic Socket's to do a server/client program that way but never done RMI so maybe I'm lost with this Activatable stuff.

  • Identify the SAP Product Under Unix Env

    Hello All
    There are few hosts in our server enviroment which have SAP running on them.
    We have a fingerprinting engine which runs through these hosts and collects useful data such as version string ,patch level etc.All these hosts are under unix env.
    Our problem is we are not able to identify what product it is by just looking at version string.
    We do not know if there is any way we can find out about that Product ,under unix env.
    We want to know if there is any command or script that can be run and find out what product it is.
    Regards
    Abhi

    > Is anyone aware of 'saplicense -show' command ?
    > Would this command help me?
    No.
    > and yes,anyone who uses any product should know it byhand but in my case i am not the end user .I am a third party survilling all the products existing in my enviroment.Thats what my engine does.
    I can just repeat myself.
    Even if you had all component information (ABAP and/or Java) it's not possible to distinguish from that for what purpose the system is used.
    It's the same as having 100 PCs, all equipped with Word, Excel and SAPGUI. No matter what you do you can't tell whether the system is a secretary working place, a PC in the factory or a PC in the financial department.
    Markus

Maybe you are looking for

  • Asset balance report Vendor/supplier wise

    Dear All, I want to take asset balances report vendor/ supplier wise. Is any report avaliable like this? Thanks & Regards, Pritam

  • 'Adobe Reader has stopped working' error message

    I've recently updated from Adobe Reader X to Adobe Reader XI using Adobe Cleaner and installer from the website. Whenever I open a pdf file or start the Reader the following error occurs and closes the program: 'Adobe Reader has stopped working'. Thi

  • Color in ALV

    Hi ! I have made a ALV report. On the output screen, whenever the user clicks on the material name then, ME1P alike my custom report comes up with material purchase history report. Now, in this report the requirement iis :- 1). The respective P.O. No

  • How to Erase HD of iBook G3?

    How exactly do I erase the Hard Drive? I don't have any of the Disks involved with my iBook as it is very old and a friend gave it to me quite a few years ago.

  • Mavericks and Appleworks app

    Updated to Mavericks and now cannot access documents created in Appleworks 6.  HELP!