Deploying RMI  problem...

Hi, i`m new at RMI stuff, I`ve been through may problems at this, but I reached the point I can`t to any more.
Using the example of the "JAVA CONTINUED TUTORIAL", I reached to the point of starting the server.
I do set the CLASSPATH, and build the "java.policy" files for security.
I`m able to compile stub classes too, and put the in the JAR file.
But when I reach to this point:
java -Djava.rmi.server.codebase=file:c:\jdk1.3\bin/ /*THAT�S MY PATH*/
-Djava.security.policy=java.policy
engine.ComputeEngine
The app throws this Exception:
ComputeEngine exception: access denied (java.net.SocketPermition host resolve)
java.security.AccesControlContext.checkPermission .....
at engine.ComputeEngine main( COmputeEngine java:25).
So I`ll show my 25 line:
***** class ComputeEngine ****
public static void main(String[] args) {
if (System.getSecurityManager() == null) {
System.setSecurityManager(new RMISecurityManager());
String name = "\\jdk1.3\\bin\\";
try {
Compute engine = new ComputeEngine();
Naming.rebind(name, engine); /* LINE 25*/
System.out.println("ComputeEngine bound");
} catch (Exception e) {
System.err.println("ComputeEngine exception: " + e.getMessage());
e.printStackTrace();
I�m not that stupid for not realise that the "name" variable, is not receibing a good path, but what would the sintacticaly and semantically good to put there???? I mean, should that path exist?? (it does actually), is it badly written???
Thanks
Thanks.

You're trying to start the server, right? After launching your rmiregistry?
You do in fact have a java.policy file, right??
(specified at the top of:
http://java.sun.com/docs/books/tutorial/rmi/running.html
I recall having a permission problem at first and I resolved it I belive by defining this file and having it in the directory I was running 'java ... engine.ComputeEngine' from.
Hope that helped. I'm encountering a similiar problem when trying to run my client, but I have my server up and running (it binded succesfully).

Similar Messages

  • Develop & deploy RMI in Netbeans 5.0

    Hello,
    I am a newbie to Java as well as RMI.
    Does you develop RMI in Netbeans 5.0?
    I would like to know if there are any existing built-in modules could help me in developing and deploying a RMI application in Netbeans 5.0. ( Or module update is appreciated )
    The most important is [1] for generating the stub and skeleton file (i.e. executing rmic). Other features likes [2] providing sample interface files (extends java.rmi.Remote), interface implementaion files (extends java.rmi.server.RemoteServer or java.rmi.server.UnicastRemoteObject, or .... ), [3] I always develop server and client inside one project/package, in order to share the commonly-used server/client interface file. So within the same project, separately execute the application as Server-code or Client-code.
    Or... you are welcome to share how you develop and deploy RMI inside Netbeans 5.0 is appreciated and also helpful to me ...
    Thanks in advance !

    I don't use netbeans, but it is a good idea to separate the projects. That way you can guarantee if the client works and if the server works, you can send the client to someone that it will work too. If you use them in the same project you can end up creating some dependencies between them.
    I developed a RMI project on my college, we separated the whole thing in 3 differente self contained projects: a common, where the intefaces were declared, and were all the common libraries were stored, a server and a client, both using the library project as a jar.
    As for netbeans, sorry if I can't help

  • Deploy Java problem

    Dear All
    Please help me,I deployed Java but It is problem,I executed with "SAP Note Number: 1006640 Not active container webdynpro during deployment" but still problem
    Start updating EAR file...
    08/07/19 11:21:00 -  start-up mode is lazy
    08/07/19 11:21:00 -  EAR file updated successfully for 125ms.
    08/07/19 11:21:00 -  Start deploying ...
    08/07/19 11:21:00 -  EAR file uploaded to server for 94ms.
    08/07/19 11:21:01 -  ERROR: Not deployed. Deploy Service returned ERROR:
                         java.rmi.RemoteException: Error occurred while deploying ear file ./temp/deploy/work/deploying/bi_alv_common.ear.
                         Reason: None of the available containers recognized the components of application sap.com/bialvcommon; it is not possible to make deploy.
                              at com.sap.engine.services.deploy.server.DeployServiceImpl.deploy(DeployServiceImpl.java:572)
                              at com.sap.engine.services.deploy.server.DeployServiceImplp4_Skel.dispatch(DeployServiceImplp4_Skel.java:1555)
                              at com.sap.engine.services.rmi_p4.DispatchImpl._runInternal(DispatchImpl.java:319)
                              at com.sap.engine.services.rmi_p4.DispatchImpl._run(DispatchImpl.java:200)
                              at com.sap.engine.services.rmi_p4.server.P4SessionProcessor.request(P4SessionProcessor.java:136)
                              at com.sap.engine.core.service630.context.cluster.session.ApplicationSessionMessageListener.process(ApplicationSessionMessageListener.java:33)
                              at com.sap.engine.core.cluster.impl6.session.MessageRunner.run(MessageRunner.java:41)
                              at com.sap.engine.core.thread.impl3.ActionObject.run(ActionObject.java:37)
                              at java.security.AccessController.doPrivileged(Native Method)
                              at com.sap.engine.core.thread.impl3.SingleThread.execute(SingleThread.java:102)
                              at com.sap.engine.core.thread.impl3.SingleThread.run(SingleThread.java:172)
                         For detailed information see the log file of the Deploy Service.
    08/07/19 11:21:01 -  ***********************************************************
    Jul 19, 2008 11:21:01... Info: End of log messages of the target system.
    Jul 19, 2008 11:21:01... Info: ***** End of SAP J2EE Engine Deployment (J2EE Application) *****
    Jul 19, 2008 11:21:01... Error: Aborted: development component 'bi/alv/common'/'sap.com'/'MAIN_APL70VAL_C'/'1077259'/'0', grouped by software component 'BI-WDALV'/'sap.com'/'MAIN_APL70VAL_C'/'1000.7.00.15.0.20080218054927''/'0':
    Caught exception during application deployment from SAP J2EE Engine's deploy service:
    java.rmi.RemoteException: Error occurred while deploying ear file ./temp/deploy/work/deploying/bi_alv_common.ear.
    Reason: None of the available containers recognized the components of application sap.com/bialvcommon; it is not possible to make deploy.
    (message ID: com.sap.sdm.serverext.servertype.inqmy.extern.EngineApplOnlineDeployerImpl.performAction(DeploymentActionTypes).REMEXC)
    Jul 19, 2008 11:21:01... Info: Starting to save the repository
    Jul 19, 2008 11:21:02... Info: Finished saving the repository
    Jul 19, 2008 11:21:02... Info: Starting: Initial deployment: Selected software component 'BI-WDALV'/'sap.com'/'MAIN_APL70VAL_C'/'1000.7.00.15.0.20080218054927''/'0' will be deployed.
    Jul 19, 2008 11:21:02... Error: Aborted: software component 'BI-WDALV'/'sap.com'/'MAIN_APL70VAL_C'/'1000.7.00.15.0.20080218054927''/'0':
    Failed deployment of SDAs:
    development component 'bi/alv/common'/'sap.com'/'MAIN_APL70VAL_C'/'1077259'/'0' : aborted
    Please, look at error logs above for more information!
    Jul 19, 2008 11:21:02... Info: Starting to save the repository
    Jul 19, 2008 11:21:03... Info: Finished saving the repository
    Jul 19, 2008 11:21:03... Info: J2EE Engine is in same state (online/offline) as it has been before this deployment process.
    Jul 19, 2008 11:21:03... Error: -
    At least one of the Deployments failed -
    Thanks

    what is your current support pack level?
    target level?
    if your curredt level is 6, 7 or 8 and target level is 11, 12, or 13
    read this note "978042"
    regards,

  • Unable to create application module.  JNID/RMI problem?

    Hi forum,
    I've got an ADF/OC4J application deployed and running successfully but sometimes the following error comes up:
    JBO-30003: The application pool (com.miempresa.AppModuleLocal) failed to checkout an application module due to the following exception:
    oracle.jbo.JboException: JBO-29000: Unexpected exception caught:
    oracle.jbo.JboException, msg=JBO-29000: Unexpected exception caught: oracle.jbo.JboException, msg=JBO-25222: Unable to create application module.     at
    oracle.jbo.common.ampool.ApplicationPoolImpl.doCheckout(ApplicationPoolImpl.java:2002)     
    In stack trace details we can found:
    java.lang.Thread.run(Thread.java:595)## Detail 0 ##javax.naming.NameNotFoundException: com.miempresa.AppModule not found          
    at com.evermind.server.rmi.RMIServerContext.lookup(RMIServerContext.java:207)          at
    com.evermind.server.ApplicationContext.unprivileged_lookup(ApplicationContext.java:255)          at
    com.evermind.server.ApplicationContext.lookup(ApplicationContext.java:195)          at
    javax.naming.InitialContext.lookup(InitialContext.java:351)          at
    oracle.jbo.common.ampool.DefaultConnectionStrategy.createApplicationModule(DefaultConnectionStrategy.java:136)
    Due to "NameNotFoundException", it seems to be reasonable to say that it's a JNDI problem. When application module is looked up through JNDI it's not found, so exeception is thrown. However, this doesn't happen frequently but occasionally. Why? What am I doing wrong?
    Thanks in advance for your help.
    Luis Serrano.

    Any ideas?

  • Never successful in deploying RMI

    I have been trying to deploy my RMI programs. They work very well on my local computer. Then I moved the server to a remote host, and tried to have the client invoke the remote object. I always get the following exception.
    C:\JAVA>java -Djava.security.policy=rmitest.policy RMITestClient
    Exception in RMITestClient: java.rmi.NotBoundException: rmitest
    So what's the problem?

    make sure you have the stubs in the classpath for the rmiregistry as well as the client program.

  • Weblogic Portal: Error While Deploying: VALIDATION PROBLEMS WERE FOUND

    Hello friends
    I am getting following error while deploying EAR on server.
    “Module named 'MyEAR' failed to deploy. See Error Log view for more detail.”
    Steps I followed:
    1: Created one portal domain successfully and was able to start the serve after thatr.
    2: Created one Portal EAR Project and added it on server.
    Now when I am restarting the server, getting following error/log
    **“weblogic.management.DeploymentException: VALIDATION PROBLEMS WERE FOUND**
    **problem: cvc-complex-type.2.4c: Expected element 'module@http://java.sun.com/xml/ns/javaee' before the end of the content in element application@http://java.sun.com/xml/ns/javaee:<null>”**
    Exception stack Trace:
    java.lang.Exception: Exception received from deployment driver. See Error Log view for more detail.
    at oracle.eclipse.tools.weblogic.server.internal.WlsJ2EEDeploymentHelper$DeploymentProgressListener.watch(WlsJ2EEDeploymentHelper.java:1566)
    at oracle.eclipse.tools.weblogic.server.internal.WlsJ2EEDeploymentHelper.deploy(WlsJ2EEDeploymentHelper.java:470)
    at oracle.eclipse.tools.weblogic.server.internal.WeblogicServerBehaviour.publishWeblogicModules(WeblogicServerBehaviour.java:1346)
    at oracle.eclipse.tools.weblogic.server.internal.WeblogicServerBehaviour.publishToServer(WeblogicServerBehaviour.java:803)
    at oracle.eclipse.tools.weblogic.server.internal.WeblogicServerBehaviour.publishOnce(WeblogicServerBehaviour.java:623)
    at oracle.eclipse.tools.weblogic.server.internal.WeblogicServerBehaviour.publish(WeblogicServerBehaviour.java:516)
    at org.eclipse.wst.server.core.model.ServerBehaviourDelegate.publish(ServerBehaviourDelegate.java:708)
    at org.eclipse.wst.server.core.internal.Server.publishImpl(Server.java:2690)
    at org.eclipse.wst.server.core.internal.Server$PublishJob.run(Server.java:272)
    at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)
    Caused by: weblogic.management.DeploymentException: VALIDATION PROBLEMS WERE FOUND
    problem: cvc-complex-type.2.4c: Expected element 'module@http://java.sun.com/xml/ns/javaee' before the end of the content in element application@http://java.sun.com/xml/ns/javaee:<null>
    at weblogic.application.internal.EarDeploymentFactory.findOrCreateComponentMBeans(EarDeploymentFactory.java:193)
    at weblogic.application.internal.MBeanFactoryImpl.findOrCreateComponentMBeans(MBeanFactoryImpl.java:48)
    at weblogic.application.internal.MBeanFactoryImpl.createComponentMBeans(MBeanFactoryImpl.java:110)
    at weblogic.application.internal.MBeanFactoryImpl.initializeMBeans(MBeanFactoryImpl.java:76)
    at weblogic.management.deploy.internal.MBeanConverter.createApplicationMBean(MBeanConverter.java:88)
    at weblogic.management.deploy.internal.MBeanConverter.createApplicationForAppDeployment(MBeanConverter.java:66)
    at weblogic.management.deploy.internal.MBeanConverter.setupNew81MBean(MBeanConverter.java:314)
    at weblogic.deploy.internal.targetserver.operations.ActivateOperation.compatibilityProcessor(ActivateOperation.java:81)
    at weblogic.deploy.internal.targetserver.operations.AbstractOperation.setupPrepare(AbstractOperation.java:295)
    at weblogic.deploy.internal.targetserver.operations.ActivateOperation.doPrepare(ActivateOperation.java:97)
    at weblogic.deploy.internal.targetserver.operations.AbstractOperation.prepare(AbstractOperation.java:217)
    at weblogic.deploy.internal.targetserver.DeploymentManager.handleDeploymentPrepare(DeploymentManager.java:747)
    at weblogic.deploy.internal.targetserver.DeploymentManager.prepareDeploymentList(DeploymentManager.java:1216)
    at weblogic.deploy.internal.targetserver.DeploymentManager.handlePrepare(DeploymentManager.java:250)
    at weblogic.deploy.internal.targetserver.DeploymentServiceDispatcher.prepare(DeploymentServiceDispatcher.java:159)
    at weblogic.deploy.service.internal.targetserver.DeploymentReceiverCallbackDeliverer.doPrepareCallback(DeploymentReceiverCallbackDeliverer.java:157)
    at weblogic.deploy.service.internal.targetserver.DeploymentReceiverCallbackDeliverer.access$000(DeploymentReceiverCallbackDeliverer.java:12)
    at weblogic.deploy.service.internal.targetserver.DeploymentReceiverCallbackDeliverer$1.run(DeploymentReceiverCallbackDeliverer.java:45)
    at weblogic.work.SelfTuningWorkManagerImpl$WorkAdapterImpl.run(SelfTuningWorkManagerImpl.java:516)
    at weblogic.work.ExecuteThread.execute(ExecuteThread.java:201)
    at weblogic.work.ExecuteThread.run(ExecuteThread.java:173)
    Caused by: weblogic.descriptor.DescriptorException: VALIDATION PROBLEMS WERE FOUND
    problem: cvc-complex-type.2.4c: Expected element 'module@http://java.sun.com/xml/ns/javaee' before the end of the content in element application@http://java.sun.com/xml/ns/javaee:<null>
    at weblogic.descriptor.internal.MarshallerFactory$1.evaluateResults(MarshallerFactory.java:245)
    at weblogic.descriptor.internal.MarshallerFactory$1.evaluateResults(MarshallerFactory.java:231)
    at weblogic.descriptor.internal.MarshallerFactory$1.createDescriptor(MarshallerFactory.java:155)
    at weblogic.descriptor.BasicDescriptorManager.createDescriptor(BasicDescriptorManager.java:323)
    at weblogic.application.descriptor.AbstractDescriptorLoader2.getDescriptorBeanFromReader(AbstractDescriptorLoader2.java:788)
    at weblogic.application.descriptor.AbstractDescriptorLoader2.createDescriptorBean(AbstractDescriptorLoader2.java:409)
    at weblogic.application.descriptor.AbstractDescriptorLoader2.loadDescriptorBeanWithoutPlan(AbstractDescriptorLoader2.java:759)
    at weblogic.application.descriptor.AbstractDescriptorLoader2.loadDescriptorBean(AbstractDescriptorLoader2.java:768)
    at weblogic.application.ApplicationDescriptor.getApplicationDescriptor(ApplicationDescriptor.java:301)
    at weblogic.application.internal.EarDeploymentFactory.findOrCreateComponentMBeans(EarDeploymentFactory.java:178)
    as it is ‘brand new ‘ – IDE generated application, weblogic-application.xml is untouched.
    Thanks & Regards

    I have seen this problem also. To be clear, this occurs straight out of the box. In other words - launch eclipse, create a new workspace, create a new portal EAR project with the wizard, and then try to deploy it without touching anything. In fact, try changing the portal's facets to anything, plain EAR, 11g default, Portal EAR - it doesn't matter. It will not deploy. Either you get this error or you get deployment errors complaining about missing library references in the weblogic-application.xml. Then - you have to do surgery just to get an 'out of the box' portal to run. Very frustrating.

  • SCVMM 2012 R2 deploy network problem

    Hi,
    I'm trying to set up the network on SCVMM 2012 R2 according to the several documentation and I'm finding a problema trying to deploy my simple design.
    Basically I need to create two network environments completelly isolated from each other. The servers have one NIC connected to these networks, and what I have configured is two logical networks with some networks sites, the uplinks and logical switch, there
    is a Virtual network per logical network to connect the VMs... all seems to be ok, I add this two logical networks to the hosts but when I want to configure the networking in the virtual machine, I only see one logical network, I can't choose the environment
    I want... I don't know what I'm doing wrong...
    Thanks in advanced...

    "How should I configure networking in SCVMM to allow one virtual machine to connect to the same subnet using two network interfaces?"
    You can achieve this by simply adding multiple vNICs to a VM - connected to the same VM Network. 
    -kn
    Kristian (Virtualization and some coffee: http://kristiannese.blogspot.com )

  • Please help with an RMI problem

    Hi,
    This is probably a really simple problem which i can't spot, but i have the folloing 'HelloWorld' RMI program:
    The Client Program:
    import java.rmi.*;
    public class HelloClient {
         public static void main(String args[]) {
              if(System.getSecurityManager() == null) {
                   System.setSecurityManager(new RMISecurityManager());
              try {
                   HelloInterface obj = (HelloInterface)Naming.lookup("/HelloServer");
                   String message = obj.sayHello();
                   System.out.println(message);
                   Thread.sleep(10000);
              } catch (Exception e) {
                   System.out.println("HelloClient exception: " + e);
    }The Remote Interface:
    public interface HelloInterface extends java.rmi.Remote {
         public String sayHello() throws java.rmi.RemoteException;
    }The Server Program:
    import java.io.*;
    import java.rmi.*;
    import java.rmi.server.*;
    import java.util.Date;
    public class HelloServer extends UnicastRemoteObject implements HelloInterface {
         public HelloServer() throws RemoteException {
              super();
         public String sayHello() throws RemoteException {
              return "Hello World, the current system time is " + new Date();
    }And finally the class which binds the object to the registery:
    import java.rmi.*;
    public class RegisterIt {
         public static void main(String args[]) {
              try {
                   HelloServer obj = new HelloServer();
                   System.out.println("Object instantiated: " + obj);
                   Naming.rebind("/HelloServer", obj);
                   System.out.println("HelloServer bound to registery");
              } catch (Exception e) {
                   System.out.println(e);
    }Now, this program works fine on my computer at home(XP!!!!!) but when i try to run it on the computers in college which run NT, it comes up with the following exceptions when i try to run RegisterIt:
    Java.rmi.UnmarshalException: error unmarshalling arguments; nested exception is:
    Java.lang.ClassNotFoundException: HelloServer_StubThis is saying that it cannot find the stub which is generated, but i use the folloing .bat file to load up the program:
    echo Creating remote object skelton classes....
    rmic -d . HelloServer
    start rmiregistry -J-Djava.security.policy=test.policy
    start java RegisterIt
    start java -Djava.security.policy=test.policy HelloClientThe stub is definitely created(it worked at home and i have checked in the directory and there are clearly the files HelloServer_Stub.class and HelloServer_Skel.class). The PATH is set correctly otherwise the registery would not be able to run correctly etc and therefore i am completely stuck as to why it doesn't work.
    Please help as it is very important for me.
    Many Thanks
    Cath

    I did not have any problem with Windows 2000 at all but only with Windows XP (and to think XP is a 2000 hybrid!).
    I have the same error: a ClassNotFoundException on the stub file.
    Any help will be appreciated. Thanks.

  • Java stored procedure deployment : resolution problem

    Hi,
    I am trying to upload a Java class (to be able to send mail with attached files).
    At deployment, I have many errors of this type :
    errors : class javax/xml/transform/sax/SAXTransformerFactory
    ORA-29521: referenced name org/xml/sax/XMLFilter could not be found
    This is due to the "upload" of J2EE in the database but I do not find the options to bypass this in the "Deployment Profile Settings".
    I tried to uncheck "-resolve", to check "-noverify", to check "-force" options.
    I tried many combinations of those options but there is nothing to do !
    I even tried to "exclude package tree" in the "Dependency Analyzer Filters" but nothing is working.
    Does anyone has any idea ??
    Thanks,
    Ju.

    Hi everybody.
    I found the solution myself.
    I am posting it because I am sure I am not the onlyone that got that problem...
    The trick is to upload jar files manually by successive calls like
    "loadjava -user [user]/[passwd]@[tnsentry] mail.jar -resolve".
    The result of the commmand could list some errors but we do not care, the upload is done anyway...
    Then, you can upload your classes through JDeveloper.
    I did not managed to upload source files (it produces errors), I only uploaded class files (choose deploy "As Compiled Output Only").
    Also take care to uncheck everything in the "Dependency Analyzer" (you have already uploaded dependencies manually).
    In the "loadjava options", do NOT use "-force" param but use "-resolve" param.
    The only thing you still need to do is to click on "Deploy"...
    That's all folks !

  • RMI Problem with rebind()

    created files as below. All compiled successfully.
    ran <rmic -v1.1 -d %cp% -classpath %cp% server.TempServerImpl> from command window.
    this generated a stub file called TempServerImpl_Stub.class
    I launched the rmiRegistry
    To make the remote object available to recieve mathod calls from clients I run TempServerImpl.class
    But ..... when I run TempServerImpl I get the exception "java.rmi.ServerException: RemoteException occurred in server thread; nested exception is: "
    AND..... my stub class is deleted without any warning!!!
    if I comment out the line "Naming.rebind( serverObjectName, tempServer );" after I generate the stub class then TempServerImpl runs without throwing any exception but this must be included to bind my remote server object to the RMI registry.
    Any ideas what Im missing?
    import java.rmi.RemoteException;
    import java.rmi.server.UnicastRemoteObject;
    import java.net.URL;
    import java.rmi.Remote;
    import java.rmi.Naming;
    public class TempServerImpl extends UnicastRemoteObject implements TempServer{
       public TempServerImpl() throws RemoteException {
          super();
       public Info getInfo() throws RemoteException{
          return new Info("some temperature data returned");
       public static void main( String args [] ) throws Exception{
          TempServerImpl tempServer = new TempServerImpl();
          String serverObjectName = "//localhost/TempServer";
          Naming.rebind( serverObjectName, tempServer );
    //************ Remote Interface
    import java.rmi.*;
    import java.rmi.RemoteException;
    public interface TempServer extends Remote {
      public Info getInfo() throws RemoteException;
    import java.io.Serializable;
    public class Info implements Serializable{
       private String data;
       public Info(String data){
          this.data = data;
       public String toString(){
          return this.data;
    [\code]                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

    Are you sure that the stub is being deleted, or is it just that the exception message says it can't be found. If it's the latter it might be that the stub is not in the class path of either the commandline running the rmi registry or the commandline running the TempServerImpl. However as you are running this i assume it ok.
    The code looks fine, The problem is something to do with classpaths ect.

  • Unexpected RMI problem

    Hi,
    I have unexpected problem with RMI.
    I wrote an application with several server modules and client modules.
    Two server modules use RMI to expose their methods for client and reciprocal exchange. These servers are in the same directory and use the same RMI service. One server starts before other and lunch RMI service. After that it binds its methods. The second server get RMI service , search methods of first server and bind its methods.
    The first time that servers started, they ran correctly for months.
    When I stopped servers for maintenance of other module, without change servers, I had the problem.
    First server started correctly and RMI started correctly too. When second server started, it ran correctly but first server hangs without errors from RMI. I tried to start servers for an hours but nothing changed.
    After 12 hours I tried to start servers and they ran correctly at first trial.
    My questions are: why the same code has this different behaviour? What was it changed in those 12 hours?
    Code:
    Server1: main
    Registry registry = null;
    try {
    registry = LocateRegistry.createRegistry(Integer.valueOf(Port));
    } catch (RemoteException e) {
              e.printStackTrace();
    Server1MethodInterface server1RMIinterface = (server1MethodInterface) UnicastRemoteObject.exportObject(server1RMI,Integer.parseInt(portRMI));
    registry.rebind("server1RMI", server1RMIinterface);
    end main
    Server2: constructor
    try {
         registry = LocateRegistry.getRegistry(ipServer1,Integer.parseInt(Server1RegistryPort.trim()));
    server1MethodInterface = (server1MethodInterface)registry.lookup("server1RMI ");
    } catch (RemoteException e) {
         e.printStackTrace();
    Main
    Server2 server2 = new Server2 (filePath);
    CheckLogin serverLogin = new CheckLogin(filePath, server2);
    LoginInterface loginInterface = (LoginInterface) UnicastRemoteObject.exportObject(serverLogin, server2.getPortRMI());
    server2.registry.rebind("Login", loginInterface);
    Communication communications = new Communication(server2);
    CommunicationsInterface communicationInterface = (CommunicationsInterface) UnicastRemoteObject.exportObject(communications, server2.getPortaRMI());
    server2.registry.rebind("Communications", communicationInterface);
    ……….

    Hi,
    I have unexpected problem with RMI.
    I wrote an application with several server modules and client modules.
    Two server modules use RMI to expose their methods for client and reciprocal exchange. These servers are in the same directory and use the same RMI service. One server starts before other and lunch RMI service. After that it binds its methods. The second server get RMI service , search methods of first server and bind its methods.
    The first time that servers started, they ran correctly for months.
    When I stopped servers for maintenance of other module, without change servers, I had the problem.
    First server started correctly and RMI started correctly too. When second server started, it ran correctly but first server hangs without errors from RMI. I tried to start servers for an hours but nothing changed.
    After 12 hours I tried to start servers and they ran correctly at first trial.
    My questions are: why the same code has this different behaviour? What was it changed in those 12 hours?
    Code:
    Server1: main
    Registry registry = null;
    try {
    registry = LocateRegistry.createRegistry(Integer.valueOf(Port));
    } catch (RemoteException e) {
              e.printStackTrace();
    Server1MethodInterface server1RMIinterface = (server1MethodInterface) UnicastRemoteObject.exportObject(server1RMI,Integer.parseInt(portRMI));
    registry.rebind("server1RMI", server1RMIinterface);
    end main
    Server2: constructor
    try {
         registry = LocateRegistry.getRegistry(ipServer1,Integer.parseInt(Server1RegistryPort.trim()));
    server1MethodInterface = (server1MethodInterface)registry.lookup("server1RMI ");
    } catch (RemoteException e) {
         e.printStackTrace();
    Main
    Server2 server2 = new Server2 (filePath);
    CheckLogin serverLogin = new CheckLogin(filePath, server2);
    LoginInterface loginInterface = (LoginInterface) UnicastRemoteObject.exportObject(serverLogin, server2.getPortRMI());
    server2.registry.rebind("Login", loginInterface);
    Communication communications = new Communication(server2);
    CommunicationsInterface communicationInterface = (CommunicationsInterface) UnicastRemoteObject.exportObject(communications, server2.getPortaRMI());
    server2.registry.rebind("Communications", communicationInterface);
    ……….

  • Deployment Package problems DMS 5.2.1

    All just an FYI for anyone else having issues with a deployment package.
    This is on DMS 5.2.1
    If your presentation references a video file from the Media library that has a space in the Title the deployment does not complete.
    No error - just does not complete.
    It does create the LOCAL --  presentation name  GOTO URL.
    But if you check the deployment/content directory you will see that you are missing assets.
    To fix the problem you need to remove the asset from the presentation.
    Delete from the Media Asset library
    Re-add it withOUT a space.
    Add back to the presentation.
    Re-do the deployment package.
    Then all is good.
    Will try to test later on 5.2.3 but thought I would share this with others!

    [somewhat delayed response]
    The ACNS software will not be corrupted by a power outage, except in the usual situation where you were doing a software upgrade and the power outage occurred right in the middle of the flash write. If this happens, the software will tell you about it, and you can fix it by using the flash-based rescue image or recovery CD. Almost certainly this is not what happened in this case, however.
    What may have happened is that the data in the CFS volume(s) got corrupted due to some bug. ACNS 5.2.1 is pretty old. I would suggest upgrading to the latest 5.3.x build.
    gid

  • RMI Problem --   java.rmi.UnmarshalException:

    I am having a client and a server.... when i am trying to bring the client into server. but when i am doing it... i am getting an exception as below as...
    java.rmi.UnmarshalException: Error unmarshaling return header; nested exception is:
         java.io.EOFException
         at sun.rmi.transport.StreamRemoteCall.executeCall(Unknown Source)
         at sun.rmi.server.UnicastRef.invoke(Unknown Source)
         at sun.rmi.registry.RegistryImpl_Stub.lookup(Unknown Source)
         at java.rmi.Naming.lookup(Unknown Source)
         at hsmsgui.rmtmgmt.RmtMgmtHandler.contactClient(RmtMgmtHandler.java:176)
         at hsmsgui.display.AddClientWzd.onFinishBtnClicked(AddClientWzd.java:488)
         at hsmsgui.display.AddClientWzd.actionPerformed(AddClientWzd.java:346)
         at javax.swing.AbstractButton.fireActionPerformed(Unknown Source)
         at javax.swing.AbstractButton$Handler.actionPerformed(Unknown Source)
         at javax.swing.DefaultButtonModel.fireActionPerformed(Unknown Source)
         at javax.swing.DefaultButtonModel.setPressed(Unknown Source)
         at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(Unknown Source)
         at java.awt.Component.processMouseEvent(Unknown Source)
         at javax.swing.JComponent.processMouseEvent(Unknown Source)
         at java.awt.Component.processEvent(Unknown Source)
         at java.awt.Container.processEvent(Unknown Source)
         at java.awt.Component.dispatchEventImpl(Unknown Source)
         at java.awt.Container.dispatchEventImpl(Unknown Source)
         at java.awt.Component.dispatchEvent(Unknown Source)
         at java.awt.LightweightDispatcher.retargetMouseEvent(Unknown Source)
         at java.awt.LightweightDispatcher.processMouseEvent(Unknown Source)
         at java.awt.LightweightDispatcher.dispatchEvent(Unknown Source)
         at java.awt.Container.dispatchEventImpl(Unknown Source)
         at java.awt.Window.dispatchEventImpl(Unknown Source)
         at java.awt.Component.dispatchEvent(Unknown Source)
         at java.awt.EventQueue.dispatchEvent(Unknown Source)
         at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
         at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
         at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
         at java.awt.Dialog$1.run(Unknown Source)
         at java.awt.Dialog$3.run(Unknown Source)
         at java.security.AccessController.doPrivileged(Native Method)
         at java.awt.Dialog.show(Unknown Source)
         at hsmsgui.display.AddClientAction.actionPerformed(AddClientAction.java:38)
         at javax.swing.AbstractButton.fireActionPerformed(Unknown Source)
         at javax.swing.AbstractButton$Handler.actionPerformed(Unknown Source)
         at javax.swing.DefaultButtonModel.fireActionPerformed(Unknown Source)
         at javax.swing.DefaultButtonModel.setPressed(Unknown Source)
         at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(Unknown Source)
         at java.awt.AWTEventMulticaster.mouseReleased(Unknown Source)
         at java.awt.Component.processMouseEvent(Unknown Source)
         at javax.swing.JComponent.processMouseEvent(Unknown Source)
         at java.awt.Component.processEvent(Unknown Source)
         at java.awt.Container.processEvent(Unknown Source)
         at java.awt.Component.dispatchEventImpl(Unknown Source)
         at java.awt.Container.dispatchEventImpl(Unknown Source)
         at java.awt.Component.dispatchEvent(Unknown Source)
         at java.awt.LightweightDispatcher.retargetMouseEvent(Unknown Source)
         at java.awt.LightweightDispatcher.processMouseEvent(Unknown Source)
         at java.awt.LightweightDispatcher.dispatchEvent(Unknown Source)
         at java.awt.Container.dispatchEventImpl(Unknown Source)
         at java.awt.Window.dispatchEventImpl(Unknown Source)
         at java.awt.Component.dispatchEvent(Unknown Source)
         at java.awt.EventQueue.dispatchEvent(Unknown Source)
         at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
         at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
         at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
         at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
         at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
         at java.awt.EventDispatchThread.run(Unknown Source)
    Caused by: java.io.EOFException
         at java.io.DataInputStream.readByte(Unknown Source)
         ... 60 more
    can any one help me out to solve this problem.......

    Thanks for ur reply...Now i' m getting the access denied problem..
    I am able to create the rmi registry successfully on the server, Then Binding is also done successfully. but when i try to connect the client to the server the exception is thrown Please help me..
    TEST - client PC name.
    java.security.AccessControlException: access denied (java.net.SocketPermission TEST resolve)
         at java.security.AccessControlContext.checkPermission(Unknown Source)
         at java.security.AccessController.checkPermission(Unknown Source)
         at java.lang.SecurityManager.checkPermission(Unknown Source)
         at java.lang.SecurityManager.checkConnect(Unknown Source)
         at java.net.InetAddress.getAllByName0(Unknown Source)
         at java.net.InetAddress.getAllByName0(Unknown Source)
         at java.net.InetAddress.getAllByName(Unknown Source)
         at java.net.InetAddress.getByName(Unknown Source)
         at java.net.InetSocketAddress.<init>(Unknown Source)
         at java.net.Socket.<init>(Unknown Source)
         at sun.rmi.transport.proxy.RMIDirectSocketFactory.createSocket(Unknown Source)
         at sun.rmi.transport.proxy.RMIMasterSocketFactory.createSocket(Unknown Source)
         at sun.rmi.transport.tcp.TCPEndpoint.newSocket(Unknown Source)
         at sun.rmi.transport.tcp.TCPChannel.createConnection(Unknown Source)
         at sun.rmi.transport.tcp.TCPChannel.newConnection(Unknown Source)
         at sun.rmi.server.UnicastRef.newCall(Unknown Source)
         at sun.rmi.registry.RegistryImpl_Stub.lookup(Unknown Source)
         at java.rmi.Naming.lookup(Unknown Source)
         at hsmsgui.rmtmgmt.RmtMgmtHandler.contactClient(RmtMgmtHandler.java:176)
         at hsmsgui.display.AddClientWzd.onFinishBtnClicked(AddClientWzd.java:488)
         at hsmsgui.display.AddClientWzd.actionPerformed(AddClientWzd.java:346)
         at javax.swing.AbstractButton.fireActionPerformed(Unknown Source)
         at javax.swing.AbstractButton$Handler.actionPerformed(Unknown Source)
         at javax.swing.DefaultButtonModel.fireActionPerformed(Unknown Source)
         at javax.swing.DefaultButtonModel.setPressed(Unknown Source)
         at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(Unknown Source)
         at java.awt.Component.processMouseEvent(Unknown Source)
         at javax.swing.JComponent.processMouseEvent(Unknown Source)
         at java.awt.Component.processEvent(Unknown Source)
         at java.awt.Container.processEvent(Unknown Source)
         at java.awt.Component.dispatchEventImpl(Unknown Source)
         at java.awt.Container.dispatchEventImpl(Unknown Source)
         at java.awt.Component.dispatchEvent(Unknown Source)
         at java.awt.LightweightDispatcher.retargetMouseEvent(Unknown Source)
         at java.awt.LightweightDispatcher.processMouseEvent(Unknown Source)
         at java.awt.LightweightDispatcher.dispatchEvent(Unknown Source)
         at java.awt.Container.dispatchEventImpl(Unknown Source)
         at java.awt.Window.dispatchEventImpl(Unknown Source)
         at java.awt.Component.dispatchEvent(Unknown Source)
         at java.awt.EventQueue.dispatchEvent(Unknown Source)
         at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
         at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
         at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
         at java.awt.Dialog$1.run(Unknown Source)
         at java.awt.Dialog$3.run(Unknown Source)
         at java.security.AccessController.doPrivileged(Native Method)
         at java.awt.Dialog.show(Unknown Source)
         at hsmsgui.display.AddClientAction.actionPerformed(AddClientAction.java:38)
         at javax.swing.AbstractButton.fireActionPerformed(Unknown Source)
         at javax.swing.AbstractButton$Handler.actionPerformed(Unknown Source)
         at javax.swing.DefaultButtonModel.fireActionPerformed(Unknown Source)
         at javax.swing.DefaultButtonModel.setPressed(Unknown Source)
         at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(Unknown Source)
         at java.awt.AWTEventMulticaster.mouseReleased(Unknown Source)
         at java.awt.Component.processMouseEvent(Unknown Source)
         at javax.swing.JComponent.processMouseEvent(Unknown Source)
         at java.awt.Component.processEvent(Unknown Source)
         at java.awt.Container.processEvent(Unknown Source)
         at java.awt.Component.dispatchEventImpl(Unknown Source)
         at java.awt.Container.dispatchEventImpl(Unknown Source)
         at java.awt.Component.dispatchEvent(Unknown Source)
         at java.awt.LightweightDispatcher.retargetMouseEvent(Unknown Source)
         at java.awt.LightweightDispatcher.processMouseEvent(Unknown Source)
         at java.awt.LightweightDispatcher.dispatchEvent(Unknown Source)
         at java.awt.Container.dispatchEventImpl(Unknown Source)
         at java.awt.Window.dispatchEventImpl(Unknown Source)
         at java.awt.Component.dispatchEvent(Unknown Source)
         at java.awt.EventQueue.dispatchEvent(Unknown Source)
         at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
         at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
         at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
         at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
         at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
         at java.awt.EventDispatchThread.run(Unknown Source)

  • Rmi problem

    Hello,
    I am working with melilta and amilcare both written in java.
    My problem is when I try to run the melitaserver it shows the error message:
    "Melita startup script
    Using AMILCARE_HOME: "."
    "D:\j2sdk\bin\java" -Xmx200M -Djava.library.path=./runtime -cp "./lib/melita.jar
    ;./lib/jRegistryKey.jar;D:\j2sdk/lib/tools.jar;./lib/jena.jar;./lib/icu4j.jar;./
    lib/gate.jar;./lib/guk.jar;./lib/amilcare.jar" melitaserver.MelitaServer
    Rmiregistry located at D:\Program Files\Java\jre1.5.0_05\bin\rmiregistry.exe and
    launched !
    Information found in path: file:/D:/Documents%20and%20Settings/Dena/Desktop/meli
    ta/melita2.0/lib/melita.jar
    Amilcare being initialised ...
    Amilcare Server exception: error during JRMP connection establishment; nested ex
    ception is:
    java.net.SocketTimeoutException: Read timed out
    java.rmi.ConnectIOException: error during JRMP connection establishment; nested
    exception is:
    java.net.SocketTimeoutException: Read timed out
    at sun.rmi.transport.tcp.TCPChannel.createConnection(TCPChannel.java:274
    at sun.rmi.transport.tcp.TCPChannel.newConnection(TCPChannel.java:171)
    at sun.rmi.server.UnicastRef.newCall(UnicastRef.java:313)
    at sun.rmi.registry.RegistryImpl_Stub.rebind(Unknown Source)
    at java.rmi.Naming.rebind(Naming.java:160)
    at melitaserver.MelitaServer.main(MelitaServer.java:149)
    Caused by: java.net.SocketTimeoutException: Read timed out
    at java.net.SocketInputStream.socketRead0(Native Method)
    at java.net.SocketInputStream.read(SocketInputStream.java:129)
    at java.io.BufferedInputStream.fill(BufferedInputStream.java:183)
    at java.io.BufferedInputStream.read(BufferedInputStream.java:201)
    at java.io.DataInputStream.readByte(DataInputStream.java:331)
    at sun.rmi.transport.tcp.TCPChannel.createConnection(TCPChannel.java:215
    ... 5 more
    Can anyone help me?
    Best regards

    Hello!
    Have you figured out the cause of problem for that exception? I also encountered that, the difference only is I use IBM Websphere.
    What did you do to solve it? Hope you can reply.
    Thanks!

  • Deployment profiles problems in 9.0.3.3

    create a deployment profile as "Business Components EJB Session Bean" and click OK. a xxx.bcdeploy file was created successfully. Later on go back to this file, right click and choose "Settings" to edit the deployment profile but found ALL the application module are "Grayed out" (disabled and cannot be changed).
    This happens after I installed Jdeveloper 9.0.3.3 (clean installation). I had no problems in 9.0.3.2.
    Please help! Thanks a lot!

    Note: Haven't observed this problem with non-jsp projects.

Maybe you are looking for