ConnectIOException: JRMP

Hi,
I've got a problem with my program. I'm using Tomcat and Java 1.4.2_01 on Redhat. The program works fine, but sometimes I get the following exception and I must restart my program:
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.invoke(UnicastRef.java:101)
     at acme.core.Session_Stub.getSprache(Unknown Source)
     at acme.servlet.SessionTestServlet.service(SessionTestServlet.java:332)
     at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
     at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247)
     at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193)
     at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:256)
     at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
     at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
     at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
     at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
     at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
     at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
     at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
     at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2417)
     at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180)
     at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
     at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:171)
     at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
     at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:172)
     at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
     at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
     at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
     at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:174)
     at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
     at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
     at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
     at org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:193)
     at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:781)
     at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:549)
     at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:589)
     at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:666)
     at java.lang.Thread.run(Thread.java:534)
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)
     ... 34 more
Does anybody know a solution?
Perhaps interesting: there are many visitiors a day.
Is there any bug in Java 1.4.xx? With Java 1.3.x it worked better.
Thanks for your help, Christoph

Hi
I think u r hitting a bug.... it only surfaces under load...
The 1.3.1_x version u r using? Is it _11 or newer? Now its _13
Try the 1.4.2_05

Similar Messages

  • RemoteException: java.rmi.ConnectIOException: error during JRMP connection

    We have a Java application implementing a RMI server.
    The server uses with the jacob api in order to generate Word files in a windows system.
    My clients work in linux.
    The RMI method is synchronized in order not to have problems executing Word from multiple threads.
    The application and the RMI server work all right for some time, but after some hours (sometimes days) the client throws the following error:
    RemoteException: java.rmi.ConnectIOException: error during JRMP connection establishment; nested exception is:
    java.net.SocketException: Connection reset

    Hi Varun,
    This is definitely required even if you are on WAS6.40.
    After copying this , you have to also follow the register dll using this command
    rgsvr32 "c:\Winnt\system32\librfc32.dll"
    check the OS your using wether it is windowsXP/2003 or 2000.
    there are seperate commands for them to register the dll.
    This is available in the installation guide.
    we also had the same problem and then we did this and it worked for us.
    f you have done this, then there are other possibilities also
    1. Install SOAP toolkit on the CRM server as this is required to establish the connectivity
    2. See whether the MAPBOX services are deployed on the SAP J2EE engine
    3. Create RFC through SM59 only for mapbox and register them.
    4. See if there are any old versions of Java on your machine then uninstall them and install the required java components.
    Let us know if it resolved the problem
    Thanks
    Yash
    reward points if it helps.

  • Error during JRMP connection

    I am havin some problem with RMI. Let me explain the application a bit first.
    I've an application form which invokes some remote method from the database (oracle). Since oracle cannot call remote methods directly from database, we use a bridge which is developed in java.
    In order to run that i do the following in a batch file:
    start rmiregistry 2607
    rem Attempt to run the bridge
    echo Runing the bridge ...
    java com.cramer.syncengine.RegisterBridge
    the service starts up successfully without any prob.
    Now, when im using the application (which requires this RMI bridge and RMI registry) i'm getting the following error.
    Starting the RMI Registry...
    Runing the bridge ...
    Object instantiated: com.cramer.syncengine.SyncEngineBridgeServer[RemoteStub [ref: [endpoint:[172.24.5.99:1519](local),objID:[0]]]]
    java.rmi.ConnectIOException: error during JRMP connection establishment; nested exception is:
    java.net.SocketTimeoutException: Read timed out
    If anyone can help me out to understand where the problem is?

    It looks like your server is timing out trying to bind itself to the Registry. You might need to allow a little time for the Registry to get itself started before starting your server, or at least between the export and the bind inside your server code, or just retry the bind a couple of times after increasing intervals before bailing out.

  • JBoss as RMI/JRMP server

    Is there any way to use JBoss as RMI/JRMP server, that is, could I use JBoss instead of rmiregistry?
    What runs on JBoss 1099?

    Can you bind a RemoteObject created by an EJB to the JNDI registry so remote clients can access it? I'm having problems when I try to bind it:
    javax.naming.CommunicationException [Root exception is java.rmi.MarshalException: Invalid remote object]
    13:45:57,456 INFO  [STDOUT]     at org.jnp.interfaces.NamingContext.bind(NamingContext.java:511)
    13:45:57,456 INFO  [STDOUT]     at org.jnp.interfaces.NamingContext.bind(NamingContext.java:469)
    13:45:57,456 INFO  [STDOUT]     at javax.naming.InitialContext.bind(InitialContext.java:355).
    13:45:57,535 INFO  [STDOUT] Caused by: java.rmi.MarshalException: Invalid remote object
    13:45:57,536 INFO  [STDOUT]     at java.rmi.server.RemoteObject.writeObject(RemoteObject.java:342)
    13:45:57,536 INFO  [STDOUT]     at sun.reflect.GeneratedMethodAccessor62.invoke(Unknown Source)
    13:45:57,537 INFO  [STDOUT]     at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    13:45:57,537 INFO  [STDOUT]     at java.lang.reflect.Method.invoke(Method.java:324)
    13:45:57,537 INFO  [STDOUT]     at java.io.ObjectStreamClass.invokeWriteObject(ObjectStreamClass.java:809)
    13:45:57,538 INFO  [STDOUT]     at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1296)
    13:45:57,538 INFO  [STDOUT]     at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1247)
    13:45:57,539 INFO  [STDOUT]     at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1052)
    13:45:57,539 INFO  [STDOUT]     at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:278)
    13:45:57,540 INFO  [STDOUT]     at java.rmi.MarshalledObject.<init>(MarshalledObject.java:92)
    13:45:57,540 INFO  [STDOUT]     at org.jnp.interfaces.MarshalledValuePair.<init>(MarshalledValuePair.java:44)
    13:45:57,541 INFO  [STDOUT]     at org.jnp.interfaces.NamingContext.bind(NamingContext.java:494)
    13:45:57,541 INFO  [STDOUT]     ... 46 moreThat's when I try to bind to a string like "/blah/blah".
    If I try with "rmi:/blah/blah" it says:
    java.rmi.ConnectIOException: non-JRMP server at remote endpoint
    Plus another 500 exception lines. ;)
    Any ideas?

  • NAPT Firewall, RMI Callbacks and JRMP MultiplexProtocol

    Hi All,
    I am looking at having an RMI client behind a Network Address Port Translation firewall receive RMI calls back from an RMI server. NAPT makes it impossible for the client to listen for connection coming from the server through the NAPT firewall.
    This is discussed at http://www.rmiproxy.com and http://cssassociates.com/rmifirewall.html but the proposed solutions do not appear to use the MultiplexProtocol protocol defined by JRMP (http://java.sun.com/j2se/1.4.2/docs/guide/rmi/spec/rmi-protocol3.html).
    The RMI FAQ
    "How can I receive incoming RMI calls through a local firewall"?
    (http://java.sun.com/j2se/1.3/docs/guide/rmi/faq.html#firewallIn) had a section for JSSE 1.3 that explained how to use the multiplex protocol (option 4). It sounds like this option referred to the JRMP MultiplexProtocol protocol.
    The multiplex protocol option has been removed from the 1.4 FAQ
    (http://java.sun.com/j2se/1.4.2/docs/guide/rmi/faq.html#firewallIn).
    Tried the "checkListen" and "socket factory" techniques mentioned in the 1.3 FAQ without success with 1.4.2. The RMI client behind the NAPT firewall runs in a signed Applet.
    Is the ability of using the JRMP MultiplexProtocol protocol available in the JRE in order to receive incoming RMI calls through a local firewall? If yes, what do you do in order to use it?
    What is the best way to have RMI callbacks work behind NAPT?
    Thanks a lot in advance!
    Cheers
    Bertrand

    As of about JDK 1.2.2, the ability of RMI clients to negotiate the multiplex protocol was
    removed, but the server-side support remains.
    Your best answer for negotiating NAT filrewalls may be the RMI Proxy http://www.rmiproxy.com, although I could be biased as I wrote it.
    EJP

  • RMI protocol over JRMP transport error when accessing Discoverer Plus

    Hi,
    I just upgraded my Discoverer to 9.0.2.54.01. I can successfully access my Discoverer Viewer Workbooks but not my Discoverer Plus. When I try to access Plus, Applet will be started, and then it will prompt the RMI protocol error:
    Attempt 1.  RMI protocol over JRMP transport: Connection refused to host: 127.0.0.1; nested exception is:*
    java.net.ConnectException: Connection refused: connect*
    Attempt 2.  RMI protocol over http transport : Unable to attach to existing session.*
    I used browsers Mozilla3.0.5 and IE7.
    Thanks!

    Hi Andy
    It could be a Java incompatibility issue. On one of your client machines try removing Java altogether and then reconnecting to Discoverer Plus. The server should send down a new, clean version of the Java.
    Try this and let me know how you get on
    Best wishes
    Michael

  • RMI Protocol over JRMP transport: connection refused

    I changed the look and feel for disco plus to Jinitiator. I then started getting error RMI Protocol over JRMP transport: connection refused to host: 192.168.1.1
    I changed the settings back to java plugin 1.4 but I'm still getting the same error on all client machines.
    I'm running windows 2003 and application server 10.1.2.0.2
    Thanks for any help,
    Brian

    Hi Brian
    When you changed to JInitiator what did you set the style to be? Also, why would you not want to use the Sun Java?
    Anyhow, try getting the users to clear their local Sun Java cache, this will release the applet causing it to reload upon next connection, and try again.
    If you want to retry JInitiator, try this:
    1. Go to Control Panel | JInitiator 1.3.1.x or whatever version you are using
    2. Navigate to the Proxies tab
    3. Uncheck Use Browser Settings
    4. Click the Apply button
    5. Close all browser windows
    6. Reconnect to Discoverer Plus
    If the above steps do not help, try editing the security details of the Options menu in the Internet Explorer using this workflow:
    1. On the client machine, launch IE
    2. From the toolbar, select Tools | Internet Options
    3. Navigate to the Security tab
    4. Click on the Trusted Sites icon
    5. Click on the Sites button
    6. Add a fully, qualified HTTP link to your server
    7. Close all browser windows
    8. Reconnect to Discoverer Plus
    Of the two solutions above, the first is most likely to fix your issue. However, I advise all my customers to set up the application server connections as being trusted sites.
    One additional thing would be to delete your cookies. Discoverer Plus loves cookies.
    Best wishes
    Michael

  • RMI Protocol over JRMP transport: connection refused to host: 10.10.10.10

    Hi,
    We migrated our Discoverer 9.0.2 to 10.1.2. However, when we connected to Discoverer Plus, the message saying "RMI Protocol over JRMP transport: connection refused to host: 10.10.10.10" appeared. We use the "Default" communication protocol and Sun JVM 1.4+ is installed in the client. Do you know what's happening?
    Thanks.
    Andy

    Hi Andy
    It could be a Java incompatibility issue. On one of your client machines try removing Java altogether and then reconnecting to Discoverer Plus. The server should send down a new, clean version of the Java.
    Try this and let me know how you get on
    Best wishes
    Michael

  • How to create a RMI/JRMP service

    I created a construct of my RMI/JRMP following the example: ClientReceiver, Customer, QueryServer, ClientReceiverImplementation, CustomerImplementation, QueryServerImplementation, and so on. then i made the stub and skeleton(rmic -d ...). compilation is right too, but i got the error at " Naming.rebind("localhost:8088/hello", queryserverImpl)", failure as follow:
    java.security.AccessControlException: access denied (java.net.SocketPermission 127.0.0.1:1099 connect,resolve)
         at java.security.AccessControlContext.checkPermission(AccessControlContext.java:272)
         at java.security.AccessController.checkPermission(AccessController.java:399)
         at java.lang.SecurityManager.checkPermission(SecurityManager.java:545)
         at java.lang.SecurityManager.checkConnect(SecurityManager.java:1044)
         at java.net.Socket.<init>(Socket.java:262)
         at java.net.Socket.<init>(Socket.java:100)
         at sun.rmi.transport.proxy.RMIDirectSocketFactory.createSocket(RMIDirectSocketFactory.java:25)
         at sun.rmi.transport.proxy.RMIMasterSocketFactory.createSocket(RMIMasterSocketFactory.java:120)
         at sun.rmi.transport.tcp.TCPEndpoint.newSocket(TCPEndpoint.java:499)
         at sun.rmi.transport.tcp.TCPChannel.createConnection(TCPChannel.java:190)
         at sun.rmi.transport.tcp.TCPChannel.newConnection(TCPChannel.java:174)
         at sun.rmi.server.UnicastRef.newCall(UnicastRef.java:318)
         at sun.rmi.registry.RegistryImpl_Stub.rebind(Unknown Source)
         at java.rmi.Naming.rebind(Naming.java:160)
         at zyz.rmi.queryservicejrmp.QueryServerImplementation.main(QueryServerImplementation.java:157)
    can help me ??

    Either grant AllPermissions in your policy file or the specific permissions you ought to mention over there.
    There are a no. of permissions that can be mentioned in your permission file. The general idea is that you supply your application in a signed JAR file as a code aource and supply a policy file which contains protection domain for that code source, listing the permissions granted to the application.
    Use java.security.debug=access to discover which permission your application needs

  • Does weblogic 9.2 wrap jrmp stubs?

    I have an application where I have a remote stub to a "generic" (ie. a sun JDK stub generated through rmic) RMI server which I bind to the weblogic JNDI tree. When I look up that JNDI entry from a different J2EE application on weblogic 9.2 it appears that my stub has been wrapped with a weblogic9.2 specific stub. Is there anyway to prevent this (this did not occur in 8.1.3 sp4)? It is causing an exception similar to the following:
    java.lang.AssertionError: FIXME andyp 1-Jan-04 -- unreplaced JVMID: 1384285380130240091S::SAS:SolutionsManagedServer
         at weblogic.rjvm.JVMID.writeExternal(JVMID.java:846)
         at java.io.ObjectOutputStream.writeExternalData(ObjectOutputStream.java:1307)
         at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1288)
         at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1079)
         at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:302)
         at weblogic.rmi.internal.BasicRemoteRef.writeExternal(BasicRemoteRef.java:342)
         at weblogic.rmi.internal.LeasedRemoteRef.writeExternal(LeasedRemoteRef.java:32)
         at java.io.ObjectOutputStream.writeExternalData(ObjectOutputStream.java:1307)
         at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1288)
         at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1079)
         at java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1375)
         at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1347)
         at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1290)
         at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1079)
         at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:302)
         at sun.rmi.server.UnicastRef.marshalValue(UnicastRef.java:258)
         at sun.rmi.server.UnicastRef.invoke(UnicastRef.java:117)

    Chi Nguyen <> writes:
    JRMP stubs are not supposed to get replaced, although we do have a
    beta-quality JRMP implementation. You should probably contact support.
    andy
    I have an application where I have a remote stub to a "generic" (ie. a sun JDK stub generated through rmic) RMI server which I bind to the weblogic JNDI tree. When I look up that JNDI entry from a different J2EE application on weblogic 9.2 it appears that my stub has been wrapped with a weblogic9.2 specific stub. Is there anyway to prevent this (this did not occur in 8.1.3 sp4)? It is causing an exception similar to the following:
    java.lang.AssertionError: FIXME andyp 1-Jan-04 -- unreplaced JVMID: 1384285380130240091S::SAS:SolutionsManagedServer
         at weblogic.rjvm.JVMID.writeExternal(JVMID.java:846)
         at java.io.ObjectOutputStream.writeExternalData(ObjectOutputStream.java:1307)
         at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1288)
         at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1079)
         at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:302)
         at weblogic.rmi.internal.BasicRemoteRef.writeExternal(BasicRemoteRef.java:342)
         at weblogic.rmi.internal.LeasedRemoteRef.writeExternal(LeasedRemoteRef.java:32)
         at java.io.ObjectOutputStream.writeExternalData(ObjectOutputStream.java:1307)
         at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1288)
         at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1079)
         at java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1375)
         at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1347)
         at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1290)
         at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1079)
         at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:302)
         at sun.rmi.server.UnicastRef.marshalValue(UnicastRef.java:258)
         at sun.rmi.server.UnicastRef.invoke(UnicastRef.java:117)

  • Urgent   Chatting RMI ( java.rmi.ConnectIOException)

    hello;
    I have a project cat in RMI in the network internet,le problem what the server doesn't communicate with the customer (the customer has a private address (local network) and the server has a public address (network internet)) message error:
    java.rmi.ConnectIOException: Exception creating connection to: 192.168.0.27; nested exception is:
    java.net.NoRouteToHostException: No routes to host
    how I can solve this problem (urgent)
    thank you

    There are only two ways that I am aware of to do this:
    1. The customer must deploy a port-forwarding device such as a NAT device, and the client must do -Djava.rmi.server.hostname= the public IP address of the NAT device prior to exporting its callback. The client must also export on a fixed port number, and the NAT device must be configured to forward this port number as appropriate.
    2. Buy and deploy my RMI Proxy product at the client: http://www.rmiproxy.com
    EJP

  • How to intercept RMI calls over JRMP?

    Hi,
    I would like intercept calls over RMI/JRMP to pass contextual data between client and server. I was able to do it for IIOP using Portable Interceptor but could not find any solution for JRMP.
    Is there any other way to implicitly pass data between client and server?
    Thanks,
    Kapil

    Not in JRMP. See JERI in the Jini project for an extensible protocol.
    If you want full-strength RMI proxying see http://www.rmiproxy.com and contact me via the links there for more information on recently-developed products that address this need.
    Esmond Pitt

  • Java 5 RMI protocol (JRMP) Implementation

    I've got the source code of Java 5, but I couldn't find the implementation of the RMI protocol (JRMP). Anyone can help me?
    Besides, where can I find more details related to the lower levels of RMI?
    Tks.

    Hi ejp.
    I guess this packet sun.rmi.transport is not distributed with the Sun's standard java source code, at least I couldn't find it.
    There is a place where I can get it?
    Thanks.

  • Error in writing an Ant task for creating a new connection pool.

    I have written the following ant task to create a new connection pool in weblogic 10.3.
    <target name="pool.dev">
         <wlconfig url="http://localhost:7001/" username="weblogic" password="weblogic">
         <query domain="C:/weblogic/rtg-L0" name="myserver"/>
         <create type="JDBCConnectionPool" name="OneSourceConnectionPool">
         <set attribute="DriverName"
         value="oracle.jdbc.OracleDriver"/>
         <set attribute="InitialCapacity" value="1"/>
         <set attribute="MaxCapacity" value="5"/>
         <set attribute="Password" value="rating"/>
         <set attribute="Properties" value="user=rating"/>
         <set attribute="RefreshMinutes" value="0"/>
         <set attribute="ShrinkPeriodMinutes" value="15"/>
         <set attribute="ShrinkingEnabled" value="true"/>
         <set attribute="TestConnectionsOnRelease" value="true"/>
         <set attribute="TestConnectionsOnReserve" value="true"/>
         <set attribute="TestConnectionsOnCreate" value="true"/>
         <set attribute="TestTableName" value="SQL SELECT 1 FROM DUAL"/>
         <set attribute="URL"
         value="jdbc:oracle:thin:@xyz.com:1522:oradvl"/>
         <set attribute="Targets" value="myserver"/>
         </create>
         </wlconfig>
    </target>
    When I run it, I see the following error:
    BUILD FAILED
    C:\ganymede\eclipse\workspace1\RtgSvr\build.xml:286: Failed to connect to the server: javax.naming.CommunicationException [Root exception is java.rmi.ConnectIOException: error during JRMP connection establishment; nested exception is:
         java.io.EOFException]
    Can anybody please help me regarding this...
    Thank you,
    Sowmya

    Hi everybody,
    Thank you very much for your replies....actually I added weblogic.jar to the classpath of the target. So, now I dont see that error. But, I have another problem which is as follows:
    <target name="initJDBC">
    <wlconfig url="t3://${host}:${port}" username="${username}" password="${password}">
         <query domain="domain.name" type="Server" name="${target.server}" property="${target.server}"/>
         <create type="JDBCConnectionPool" name="TestConnectionPool">
         <set attribute="DriverName" value="oracle.jdbc.OracleDriver"/>
         <set attribute="Password" value="welcome"/>
         <set attribute="Properties" value="user=welcome"/>
         <set attribute="URL" value="jdbc:oracle:thin:@test.com:1522:oradvl"/>
              <set attribute="Targets" value=""/>
         <set attribute="TestTableName" value="SQL SELECT 1 FROM DUAL"/>
         <set attribute="TestConnectionsOnRelease" value="false"/>
         <set attribute="TestConnectionsOnReserve" value="true"/>
         </create>
         <create type="JDBCDataSource" name="TestDataSource">
              <set attribute="JNDIName" value="TestDataSource"/>
              <set attribute="PoolName" value="TestConnectionPool"/>
              <set attribute="Targets" value=""/>
              </create>
         </wlconfig>
         </target>
    I am not knowing what to give in the value field of <set attribute="Targets" value=""/>. The following is my build.properties file:
    target.server=myserver
    host=127.0.0.1
    port=7001
    username=weblogic
    password=weblogic
    domain.name=testDomain
    If I give <set attribute="Targets" value="${myserver}"/>, I get the following error:
    BUILD FAILED
    C:\ganymede\eclipse\workspace1\TestSvr\build.xml:290: Property not set: ${myserver}
    When I set myserver=myserver in build.properties, I get the following error:
    BUILD FAILED
    C:\ganymede\eclipse\workspace1\TestSvr\build.xml:290: Error invoking MBean command: java.lang.IllegalArgumentException: Property Name and value not valid for the MBean. Value myserver for parameter[Targets].java.lang.IllegalArgumentException: Unable to convert the argument valuemyserver to class javax.management.ObjectName.java.lang.reflect.InvocationTargetException
    Can someone plzz help me in this regard.
    Thank you,
    Sowmya

  • Error while trying to connect to weblogic from remote client

    Hi
    I was trying to connect to JMX MBeanserver from a aremote client using some sample code that was posted. Ive tried even the samples that I found in the Admin Guide itself. Im not certain if any server configuration is needed. Ive tried the below with all three protocols t3, iiop, http with the same result. I had also enabled IIOP on the server through the console.
    I get an error when trying to conenct using the JMXConnection Factory i.e. at the last line of the following code:
    String protocol = "t3"; // can be t3, http, iiop
    String hostname = "santapoco.eng";
    int port = 7001;
    String uri = "/jndi/"+"weblogic.management.mbeanservers.runtime";
    JMXServiceURL serviceURL = new JMXServiceURL(protocol, hostname, port, uri);
    Hashtable h = new Hashtable();
    h.put(Context.SECURITY_PRINCIPAL, "weblogic");
    h.put(Context.SECURITY_CREDENTIALS, "weblogic");
         h.put(JMXConnectorFactory.PROTOCOL_PROVIDER_PACKAGES, "weblogic.management.remote");
    JMXConnector connector =JMXConnectorFactory.connect(serviceURL, h);
    The error is:
    "Root exception is java.rmi.ConnectIOException: error during JRMP connection establishment; nested exception is:
         java.io.EOFException]
         at weblogic.jrmp.Context.lookup(Context.java:189)"

    Pratima Gogineni <> writes:
    This is what worked for me:
    URI uri = new URI(args[0]);
    JMXServiceURL serviceURL =
    new JMXServiceURL(uri.getScheme(), uri.getHost(), uri.getPort(),
    "/jndi/weblogic/management/mbeanservers/runtime");
    Hashtable h = new Hashtable();
    h.put(Context.SECURITY_PRINCIPAL, "system");
    h.put(Context.SECURITY_CREDENTIALS, "ejb2come");
    // String[] jmxCredentials = new String[]{ "system", "ejb2come" };
    // h.put(JMXConnector.CREDENTIALS, jmxCredentials);
    h.put(JMXConnectorFactory.PROTOCOL_PROVIDER_PACKAGES,
    "weblogic.management.remote");
    h.put(Context.PROVIDER_URL, args[0]);
    // h.put(Context.INITIAL_CONTEXT_FACTORY, "com.sun.jndi.cosnaming.CNCtxFactory");
    h.put(Context.INITIAL_CONTEXT_FACTORY, "weblogic.jndi.WLInitialContextFactory");
    // InitialContext ic = new InitialContext(h);
    // ic.lookup("weblogic/management");
    JMXConnector connector = JMXConnectorFactory.connect(serviceURL, h);
    MBeanServerConnection connection = connector.getMBeanServerConnection();
    NOTE this was with weblogic 91--

Maybe you are looking for