java.rmi.connectionException:No server is reachable

Hello

I'm stuck with the issue for several days. I get this exception when you try to connect a remote client to my server. EAR is deployed on the local weblogic server. In both the server and the client hostname for the registryUrl of the rmi is the public IP address of the server. I also tried putting localhost in the server, but the error does not change.

The exception StackTrace is as below:

java.rmi.connectionException:No server is reachable

at weblogic.rmi.cluster.ClusterableremoteRef.invoke(ClusterableRemoteref.java:245)

at com.csfb.csar.cman.ejb.ConsolidationProcessorBean_irdst0_EOImpl_1032_WLStub.remove < unknown Source >

at org.springframework.ejb.access.AbstractRemoteSlsbInvokerInterceptor.removeSessionBeanInstance (AbstractRemoteSlsbInvokerInterceptor.java)

at org.springframework.ejb.access.SimpleRemoteSlsbInvokerInterceptor.releaseSessionBeanInstance

(SimpleRemoteSlsbInvokerInterceptor.java)

at org.springframework.ejb.access.SimpleRemoteSlsbInvokerInterceptor.doInvoke (SimpleRemoteSlsbInvokerInterceptor.java)

at org.springframework.ejb.access.AbstractremoteSlsbInvokerInterceptor.invoke(AbstractremoteSlsbInvokerInterceptor.java:114)

at org.springframework.aop.framework.ReflectiveMethodinvocation.proceed(ReflectiveMethodinvocation.java:144)

at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:174)

to $proxy0.getDistinctCustomers (Unknown Source)

at com.csfb.csar.util.batchclient.cman.MarkEodLBClient.getLoadBalancerKeys (MarkEodLBClient.java)

at com.csfb.csar.util.batchclient.lb.LoadBalancer.retrieveLoadBalanceKeys(LoadBalancer.java:14)

at com.csfb.csar.util.batchclient.cman.CmanEodClient.main(CmanEodClient.java:61)

Error retrieving the LoadBalancerKeys.

Appreciate your help on this.

Hello
Problem is solved.
In configuration of weblogic-ejb - jar.xml for EJB module, he was trying to get the server in clustered environment, while we have no configuration of the clustered environment
in the DEV environment. We have commented on the part of the cluster in this config file. Also we were faced with question class version so we used JDK 1.6 for the generation of client project and ear local jar that weblogic uses JDK 1.6.

Thank you...

Tags: Java

Similar Questions

  • Could not resolve java.rmi.server

    When I import java.rmi.server on a project of BlackBerry it says "the java.rmi.server of importation cannot be solved" (so that it works in a normal Java project). Java.rmi.Server is not supported on BlackBerry?

    Not supported, sorry.

    Look at the API, here is the latest version (7.1):

    http://www.BlackBerry.com/developers/docs/7.1.0api/

  • EN the error using the grid java.rmi.UnmarshalException

    Hello


    I started using Hyperion Financial Reporting on the remote machine and now I installed it on my machine.

    Everything was ok during the installation process. Then I tried to create a new report with a new grid. When I click on the button, EN gives me the following error:


    ********


    ; nested exception is:

    java.rmi.UnmarshalException: error demarshalling return; nested exception is:

    java.io.InvalidClassException: com.hyperion.reporting.graphics.GridObject; incompatible local class: stream classdesc serialVersionUID =-1288366423950156093, local class serialVersionUID =-5245705824007679661

    ********

    Can someone explain to me what I can do to fix this error?

    In my experiences, it gives me this error when a report have a grid or when I try to create a.

    It is perhaps at a level different patch, EN can be sometimes not work so well when the client and server versions do not match.

    See you soon

    John

    http://John-Goodwin.blogspot.com/

  • java.rmi.ConnectException: connection refused to host: Connection timed out

    OK, I get the dreaded java.rmi.ConnectException: connection refused to host: Connection timed out

    I've been Googling for solutions for a while and no success, although many people have been in this boat before.

    java.rmi.ConnectException: connection refused to host: 169.254.105.9; nested exception is:
    java.net.ConnectException: Connection timed out: connect

    I ping the server from the client. I can telnet to the 169.254.105.9 1099 very well. I have disabled all firewall, I think - although company policy is we have to run McAfee and seems to have no control over that. When I run the client and server on the same system using localhost everything works fine.

    Can anyone think of other things I could try to understand why my RMI does not connect? Are there diagnoses more I can try?

    Cheers, Eric

    System.setProperty call ("java.rmi.server.hostname", "150.247.94.130");

    has no effect. I call it on the side of the client and the server before making any calls to the RMI API. I always get

    Set it on the server only. That's what it's for. It touches what IP address is placed in the heel when exporting. If you need to call it before you build/export all remote objects, and that probably includes the registry.

  • [java rmi] PortableRemoteObject method not referenced

    Hello everyone.

    I use a portable proxy between an IIOP client and server of connection JRMI (activated). While the proxy has an active reference on the login server, it cannot execute his method not referenced. So I try to use the source not cited in the proxy too, but once he gets a reference to the login server (the first time a user IIOP calls the PortableProxy.login () method, the replacement no quoted source method is never called.

    It's my proxy code:
    public class PortableProxy extends ClientAuthentication, Unreferenced{
         private String path = System.getenv("WORKDIR");
         private ClientAuthentication authLogin = null;
         private static final String authServer = "authServer";
         private static final int authServerPort = 1098;
         private static final String authServerIP = "localhost";
         private static final int portableProxyRMI = 3500;
         private static final String portableProxy = "PortableProxy";
         /**
            * PortableProxy()
            */
         public PortableProxy(){
              Properties prop = new Properties();
              Object obj = null;
              System.setProperty("javax.net.ssl.trustStore",""+path+"client/mySrvKeystore");
              System.setProperty("javax.net.ssl.trustStorePassword", "123456");
              try{
                   PortableRemoteObject.exportObject(this);
                      System.setProperty("java.rmi.dgc.leaseValue", "12000");
                      System.setProperty("java.rmi.dgc.checkInterval", "6000");
              }catch(RemoteException re){
                   System.out.println("PortableProxy.PortableProxy() RemoteException: "+re.getMessage());
                   re.printStackTrace();
              }
              System.out.println("PortableProxy exported");
         }
         
         /**
            * lookRef()
            */
         public void lookRef(){
              Properties prop = new Properties();
              Object obj = null;
              prop.put(Context.INITIAL_CONTEXT_FACTORY, "com.sun.jndi.rmi.registry.RegistryContextFactory");
              prop.put(Context.PROVIDER_URL, "rmi://"+authServerIP+":"+authServerPort);
              InitialContext ic = null;
              try{
                 ic = new InitialContext(prop);
                 obj = ic.lookup(authServer);
              }catch(NamingException ne){
                 System.out.println("PortableProxy.lookRef() NamingException: "+ne.getMessage());
                 ne.printStackTrace();
              }
              authLogin = (ClientAuthentication) PortableRemoteObject.narrow(obj, ClientAuthentication.class);
       }
         
         /**
            * login()
            */
         public Runnable login(String user, String password){
              System.out.println("Sono in PortableProxy.login()");
              Runnable ret = null;
              if(authLogin == null){
                   lookRef();
              }
              try{
                   ret = authLogin.login(user, password);
              }catch(RemoteException re){
                   System.out.println("PortableProxy.login() RemoteException: "+re.getMessage());
                   re.printStackTrace();
              }
              return ret;
         }
         
         /**
            * unreferenced()
            */
         public void unreferenced(){
              authLogin = null;
              if(authLogin == null){
                   System.out.println("authLogin = null");
              }else{
                   System.out.println("Something went wrong: authLogin != null.");
              }
              System.gc();
         }
    
         /**
         * MAIN
         */
         public static void main(String[] args){
              Properties prop = new Properties();
              PortableProxy proxy = new PortableProxy();
              prop.put("java.naming.factory.initial",  "com.sun.jndi.cosnaming.CNCtxFactory");
              prop.put("java.naming.provider.url", "iiop://localhost:"+portableProxyRMI);
              try{
                   InitialContext icProxy = new InitialContext(prop);
                   icProxy.rebind(portableProxy, proxy);
              }catch(NamingException ne){
                   System.out.println("PortableProxy.main() NamingException: "+ne.getMessage());
                   ne.printStackTrace();
              }
         }
    }
    I closed all the user jvm, but nothing happened. I don't have a reference to the proxy each time, I put it to null.
    Where I am doing wrong?
    PS: I also want to set the leaseValue and the checkInterval for a shorter time. In this way (under the PortableRemoteObject.exportObject (()) the right way?
    Tell me thanks in advance, if you need additional information. Thank you

    In my view, that the unreferenced support is available only when the use standard rmi. the iiop based RPC does not support distributed gc.

  • Newbie: Call a webservice poster java.rmi.MarshalException

    Hi all

    does anyone know a solution for this:

    I developed a java application with eclipse java BlackBerry plugin 1.1.2. This application calls a Web service and get the response. And then, I get an exception

    java.rmi.MarshalException: there are elements of the SOAP body.

    I searched the Knowledge Base but did not find a tip. And I really didn't know where this error message wants to guide me. Help, please.

    Thanks for any help in advance.

    Concerning

    Andreas

    Hi Andreas,

    I saw that in your SOAP load is a field named body. Rename this field, and then try again.

    Andreas

  • Steps to encrypt the attribute in Sun Java (TM) System Directory Server/5.2?

    Hi all

    I installed Sun Java (TM) System Directory Server/5.2, which uses LDAP to the 6.0 (TAM) of Tivoli Access Manager.

    LDAP has been installed on a separate server as well as the TAM (NPS server, server authorization) components.

    I would like to encrypt an attribute (lets say UID) in LDAP as the attribute of password that is encrypted during installation of the software. So, what are all the steps I must follow to the encryption of the attribute. Help, please.

    Hello

    In addition to you that DS5.2 is an OLD memory, OBSOLETE, not supported, version... and I strongly suggest you move on to a current version (ODSEE 11.1.1.7.2)...

    However, the steps are explained in the official documentation available:

    Sun Java System Directory Server 5.2 Product Documentation for the library

    and specifically to guide Administration:

    http://docs.Oracle.com/CD/E19850-01/816-6698-10/entries.html#18538

    HTH,

    Marco.

    PS: when closing a thread as answered please check the answers to fix/useful to help others find.

  • Java for the secondary server of Iaas

    By using the Installation Wizard, why doesn't the spell prereq check java for the secondary server to Iaas? What is the purpose of the java is used?

    • Secondary server of Iaas (inf-1)

    • Iaas (inf-2) backend

    • Server roles

    Kind regards

    Hello

    Yes you are right, and referring to the document correct when it come to the installation of JRE to vRA is a sine qua non for IaaS, so as it can support the deployment of MS SQL, so we need to install java on the machine hosting the web component rather than the external machine working with MS SQL.

    Rgds

    Frédéric

  • java.lang.NoClassDefFoundError: weblogic Server

    Hi all
    I have uninstall my 11.1.2.3.0 Jdeveloper and reinstall it again, and this is not the first time I do it, and the installation is completed successfully. but every time I have to create a simple application of the ADF and run the page I get this error message in the log.
    The system cannot find the path specified.
    .
    .
    JAVA Memory arguments: -Xms256m -Xmx512m -XX:CompileThreshold=8000 -XX:PermSize=128m  -XX:MaxPermSize=512m
    .
    WLS Start Mode=Development
    .
    CLASSPATH=C:\Oracle\Middleware11.1.2.3-new\oracle_common\modules\oracle.jdbc_11.1.1\ojdbc6dms.jar;C:\Oracle\Middleware11.1.2.3-new\oracle_common\modules\oracle.jrf_11.1.1\jrf.jar;C:\Oracle\Middleware11.1.2.3-new\wlserver_10.3\server\lib\xqrl.jar
    .
    PATH=C:\oraclexe\app\oracle\product\10.2.0\server\bin;C:\Program Files (x86)\MiKTeX 2.6\miktex\bin;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Program Files\TortoiseSVN\bin;C:\Oracle\Middleware11.1.2.1.0\jdk160_24\bin
    .
    ***************************************************
    *  To start WebLogic Server, use a username and   *
    *  password assigned to an admin-level user.  For *
    *  server administration, use the WebLogic Server *
    *  console at http:\\hostname:port\console        *
    ***************************************************
    starting weblogic with Java version:
    java version "1.6.0_35"
    Java(TM) SE Runtime Environment (build 1.6.0_35-b10)
    Java HotSpot(TM) 64-Bit Server VM (build 20.10-b01, mixed mode)
    Starting WLS with line:
    C:\PROGRA~1\Java\JDK16~1.0_3\bin\java    -Xms256m -Xmx512m -XX:CompileThreshold=8000 -XX:PermSize=128m  -XX:MaxPermSize=512m -Dweblogic.Name=DefaultServer -Djava.security.policy=C:\Oracle\Middleware11.1.2.3-new\wlserver_10.3\server\lib\weblogic.policy -Doracle.jdeveloper.adrs=true -Dweblogic.nodemanager.ServiceEnabled=true   -da -Dplatform.home=C:\Oracle\Middleware11.1.2.3-new\wlserver_10.3 -Dwls.home=C:\Oracle\Middleware11.1.2.3-new\wlserver_10.3\server -Dweblogic.home=C:\Oracle\Middleware11.1.2.3-new\wlserver_10.3\server  -Djps.app.credential.overwrite.allowed=true -Dcommon.components.home=C:\Oracle\Middleware11.1.2.3-new\oracle_common -Djrf.version=11.1.1 -Dorg.apache.commons.logging.Log=org.apache.commons.logging.impl.Jdk14Logger -Ddomain.home=C:\Users\MOHSA~2.ATS\AppData\Roaming\JDEVEL~1\SYSTEM~1.1\DEFAUL~1 -Djrockit.optfile=C:\Oracle\Middleware11.1.2.3-new\oracle_common\modules\oracle.jrf_11.1.1\jrocket_optfile.txt -Doracle.server.config.dir=C:\Users\MOHSA~2.ATS\AppData\Roaming\JDEVEL~1\SYSTEM~1.1\DEFAUL~1\config\FMWCON~1\servers\DefaultServer -Doracle.domain.config.dir=C:\Users\MOHSA~2.ATS\AppData\Roaming\JDEVEL~1\SYSTEM~1.1\DEFAUL~1\config\FMWCON~1  -Digf.arisidbeans.carmlloc=C:\Users\MOHSA~2.ATS\AppData\Roaming\JDEVEL~1\SYSTEM~1.1\DEFAUL~1\config\FMWCON~1\carml  -Digf.arisidstack.home=C:\Users\MOHSA~2.ATS\AppData\Roaming\JDEVEL~1\SYSTEM~1.1\DEFAUL~1\config\FMWCON~1\arisidprovider -Doracle.security.jps.config=C:\Users\MOHSA~2.ATS\AppData\Roaming\JDEVEL~1\SYSTEM~1.1\DEFAUL~1\config\fmwconfig\jps-config.xml -Doracle.deployed.app.dir=C:\Users\MOHSA~2.ATS\AppData\Roaming\JDEVEL~1\SYSTEM~1.1\DEFAUL~1\servers\DefaultServer\tmp\_WL_user -Doracle.deployed.app.ext=\- -Dweblogic.alternateTypesDirectory=C:\Oracle\Middleware11.1.2.3-new\oracle_common\modules\oracle.ossoiap_11.1.1,C:\Oracle\Middleware11.1.2.3-new\oracle_common\modules\oracle.oamprovider_11.1.1 -Djava.protocol.handler.pkgs=oracle.mds.net.protocol  -Dweblogic.jdbc.remoteEnabled=false -Dwsm.repository.path=C:\Users\MOHSA~2.ATS\AppData\Roaming\JDEVEL~1\SYSTEM~1.1\DEFAUL~1\oracle\store\gmds   -Dweblogic.management.discover=true  -Dwlw.iterativeDev= -Dwlw.testConsole= -Dwlw.logErrorsToConsole=  weblogic.Server
    java.lang.NoClassDefFoundError: weblogic/Server
    Caused by: java.lang.ClassNotFoundException: weblogic.Server
         at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
         at java.security.AccessController.doPrivileged(Native Method)
         at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
         at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
         at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
         at java.lang.ClassLoader.loadClass(ClassLoader.java:247)
    Could not find the main class: weblogic.Server.  Program will exit.
    Exception in thread "main" Process exited.
    Any help please?

    One step back, please!

    There are some mixture upwards with your installation of jdev and some other installation (may be an older jdev). I installed jdev on mashines much and never had this problem (regardless of version). In your case, it seems that you had a previous version installed and installed 11.1.2.3.0 in the former home of middleware project. Your classpath contains a reference to an old jdk (1.6.0_24) that doesn't exist on your current installation (it uses 1.6.0_35).
    Yet once, I've never had to add the welblogic.jar to the viewcontroller project. This is done automatically if you choose to start a new "Fusion Web Application".

    My advice is to uninstall all versions of jdev you have on your system, then delete all the folders of middleware which are always present, check your home folder of the user (if you use windows) for any substance remaining jdev and delete then too. Then, install the jdev studio 11.1.2.3.0 version again.

    Timo

  • Windows - XP Service Pack 1 has server not reachable

    Try to rebuild the PC of a disk of XP with Service Pack 1 only systems

    Instructions involve Service Pack 1a is required

    I have download the stub successfully, but when I try to run it, he tries to contact a USA based microsoft Server and fails.

    As a result, I can't add any other service packs until 1a is applied.

    The server is down or is there a problem with the heel?

    If your installation to service pack 1, you don't need service pack 1a.  The difference between sp1 and sp1a was the removal of the last of the "Microsoft Java Virtual Machine", Microsoft had to do as part of a legal settlement with Sun.  It makes no difference what the installation of sp2/sp3.

    Turn on the Windows Firewall and make sure you have an active up-to-date anti-virus application.

    If you have XP sp1, you can go directly to sp3 (you need not sp1a or sp2).  However, see the tips of long date MS MVP PA Bear (which assumes that your "XP systems disk" does NOT test any software particularly any trial Norton or McAfee software):

    HOW to get WinXP SP1 or SP2 fully patched after a "clean install":

    http://groups.Google.com/group/Microsoft.public.WindowsXP.General/MSG/a066ae41add7dd2b

    1. download & save the installer for WinXP SP3 on your desktop:
    http://www.Microsoft.com/downloads/details.aspx?FamilyId=5b33b5a8-5E7...

    [Yes, you can jump SP2 if you run WinXP SP1.]

    2. read & take into account:
    http://msmvps.com/blogs/harrywaldron/archive/2008/05/08/Windows-XP-SP...

    3 connected as long as administrator, if necessary, double-click the saved file to install WinXP SP3.  Follow the prompts. Be patient and restart twice when the installation ends.

    4. make the resolution method 2 here (believe me):
    http://support.Microsoft.com/kb/943144

    5. go to http://windowsupdate.microsoft.com . Install all required software, and then click CONTINUE. Select CUSTOM and scan | Install the critical updates of security offered. Still, follow all the instructions.

    [I do NOT recommend install IE7 through Windows Update.]

    6. make sure that automatic updates is enabled; FC.
    http://support.Microsoft.com/kb/306525

  • Download Java from Sun Directory Server 5.2 x 86

    I'll try to find a copy of the x 86 Server version Sun Java Directory compressed archive for Solaris.  I am trying to build a test system for some old software, and I have only a copy of the Sparc ldap version.  I tried to use the current version of Department available on Oracle e-delivery cloud, but the software is too old to work with it... it's needs version 5.2, specifically.  Is anyone know where I can find a copy?

    Thanks for any help.

    Nope

    This is part of the policy of life Support Oracle:

    http://www.Oracle.com/us/support/lifetime-support/index.html

    'OLD' products can / can still be supported under * SPECIAL * assistance contracts. So if you are entitled to support, you can access it. Otherwise, I fear that the answer is no.

    HTH,

    Marco

  • java file on the server call

    Hello. I created the file directory on my server and the java file loaded through Resource Directory Oracle to the developer. How can I call and run this file through SQL developer and use someday in the Apex. Thank you.

    Sorry, I forgot to mention the PL/SQL Wrapper. Here's the complete code:

    SQL> create or replace and compile
      2  java source named "HelloWorld"
      3  as
      4  public class HelloWorld {
      5     public static String changeCase(String inputValue){
      6             return inputValue.toUpperCase();
      7     }
      8  }
      9  /
    
    Java created.
    
    SQL> create or replace function changecase(p_inp varchar2) return varchar2
      2  as language java
      3  name 'HelloWorld.changeCase(java.lang.String) return java.lang.String';
      4  /
    
    Function created.
    
    SQL> select changecase('abc') chcase from dual;
    
    CHCASE
    --------------------------------------------------------------------------------
    ABC
    
  • Research with application question Java and determinations stateless server

    We want to use a server of determinations OPA stateless (because of high availability reqruirements) with a java-based application where we want to put our decisions of complex business logic in the OPA. How can we mimic the functionality web-derterminations in search of the question? During the evaluation of a modules, it is possible that there is not all the attributes that are necessary to reach a conclusion. If this situation arises, we want to provide these attributes to the appliation of java, which can search its database or to ask additional questions. The record of decision seems to contain this information, but if so, how should we interpret it? Is it possible to recover one or more or the following questions there are at - it a code (sample) available to do this?


    Philip.

    Hi Philippe,.
    You can imitate web-determinations almost exactly using ODS maintenance service. You create a session and then run surveys in the same way you do on screens, and maintenance service will return the necessary questions until the goal is complete. This may interact with real modules screens (even if you use not OWD), so that you can customize the order of input data (and groups of data that must be entered) in the same way that you can with OWD.

    This is the useful references:

    http://docs.Oracle.com/HTML/E36316_01/content/tutorials%20and%20Samples/Eg_DS_Int_Service_Investigation.htm
    http://docs.Oracle.com/HTML/E36316_01/content/technical%20Reference/DS_Interview_Service.htm

    It is normally appropriate for an interview with custom instead of the OWD user interface layer.

    It can be much easier in your case to stick to the ODS assess the service and request a decision report but use the result of style as 'basic attributes' on the first pass. Lists all the basic attributes needed to make this decision. Any attribute base he needs, but which are missing, is listed as unknown-val. You could use this answer to then search the database for missing fields and pull request with additional fields.

    These are two options to explore!

    See you soon,.
    Ben

  • Error when compiling AMImpl.java to the side Server

    Hello

    When I am trying to compile the .java alongside files server I get the following errors, can someone help me what is it?


    Note: Some input files use operations dangerous or not.
    Note: Recompile with - Xlint: unchecked for more details.
    Note: /econv2/app/oracle/econv2comn/java/xxafp/oracle/apps/qp/pricelistrebate/webui/XxafpEepRebateCreateCO.java uses or overrides a deprecated API.
    Note: Recompile with - Xlint: deprecation for more details.
    Note: /econv2/app/oracle/econv2comn/java/xxafp/oracle/apps/qp/pricelistrebate/server/PricelistrebateAMImpl.java uses operations dangerous or not.
    Note: Recompile with - Xlint: unchecked for more details.
    javac: invalid indicator: /econv2/app/oracle/econv2comn/java/xxafp/oracle/apps/qp/pricelistrebate/picklist/server/DivisionPicklistVOImpl.JAVA



    Thank you
    Mahesh

    Hi Manu

    check if it helps out...

    http://www.rgagnon.com/javadetails/Java-0521.html

    AJ

  • Mix of Java and C on the same server of 12.5 Tuxedo?

    I run an application big Tuxedo who perform a mix of Cobol and C calling each other in the same service.

    Is it possible that I have will convert the Cobol in Java code, so I'll have a mix of C and Java on the same single server?

    Or does the Java Tuxedo should only include Java in a single server

    Hello

    Within the server Java Tuxedo (TMJAVASVR) that the Java code is supported.  If a single server can support native languages as C and COBOL or Java, but not the two together in a single server.

    Kind regards

    Todd little

    Chief Architect of Oracle Tuxedo

    PS there is no 12.5 Tuxedo don't release 12.1.1, alone and 12.1.3.

Maybe you are looking for