Skip to Main Content

Cloud Platform

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Programmatically accessing DBCS using java- javax.naming.CommunicationException

3032683Jun 22 2017 — edited Jun 27 2017

I have a java program which will be deployed to JCS. We have created one table which will be used by our java program.

To interact with DBCS, i have created data source in my jcs weblogic console and trying to access as shown below

OracleConnection conn=null;

    javax.sql.DataSource ds=null;

    Hashtable env = new Hashtable();

    env.put( Context.INITIAL_CONTEXT_FACTORY, "weblogic.jndi.WLInitialContextFactory" );

    env.put(Context.PROVIDER_URL, "https://<host>:7002");

    try{

      Context context=new InitialContext( env );

      //you will need to have create a Data Source with JNDI name testDS

      ds=(javax.sql.DataSource) context.lookup ("jdbc/testDS");

      conn=(OracleConnection) ds.getConnection();

      java.util.Properties prop = new java.util.Properties();

      System.out.println("Connection object details : "+conn);

      conn.close();

    }catch(Exception ex){

      //handle the exception

        System.out.println("Exception "+ ex);

    }

. But I am getting below mentioned error

Exception javax.naming.CommunicationException: https://<host>:7002: [RJVM:000575]Destination <host>, 7002 unreachable.; nested exception is:

  javax.net.ssl.SSLHandshakeException: General SSLEngine problem; [RJVM:000576]No available router to destination.; nested exception is:

  java.rmi.ConnectException: [RJVM:000576]No available router to destination. [Root exception is java.net.ConnectException: https://<host>:7002: [RJVM:000575]Destination <host>, 7002 unreachable.; nested exception is:

  javax.net.ssl.SSLHandshakeException: General SSLEngine problem; [RJVM:000576]No available router to destination.; nested exception is:

  java.rmi.ConnectException: [RJVM:000576]No available router to destination.]

Could any one please suggest me the reason for above issue?

Thanks in advance.

Kotresh

This post has been answered by SanjeevChauhan on Jun 27 2017
Jump to Answer

Comments

Processing
Locked Post
New comments cannot be posted to this locked post.

Post Details

Locked on Jul 25 2017
Added on Jun 22 2017
5 comments
400 views