Java open client connect issue when migrating from AppServer

Posted by dziugasj on 28-Apr-2015 03:52

If I correctly understand, the only thing that must be changed is connection string, for example like this:

"AppServerDC://localhost:18033" -> "-URL http://localhost:8810/apsv"

Checked output of Proxygen: the generated source code does not differ between 11.5 and older version.

Also I have used progress library o4glrt.jar from 11.5.

But when trying to connect from Java (why nameserver? this thing must be absent in Pacific):

Exception in thread "main" com.progress.open4gl.NameServerInterruptException: Connect Failure: Timeout or Interrupt occurred while attempting to communicate with NameServer. (8231)
        at com.progress.nameserver.client.NameServerClient.receiveResponse(NameServerClient.java:836)
        at com.progress.nameserver.client.NameServerClient.getResponse(NameServerClient.java:671)
        at com.progress.nameserver.client.NameServerClient.getList(NameServerClient.java:540)
        at com.progress.nameserver.client.NameServerClient.getBrokerList(NameServerClient.java:431)
        at com.progress.nameserver.client.NameServerClient.getBrokerList(NameServerClient.java:276)
        at com.progress.open4gl.dynamicapi.SessionPool$PickList.nsLookupService(SessionPool.java:357)
        at com.progress.open4gl.dynamicapi.SessionPool$PickList.nextBroker(SessionPool.java:246)
        at com.progress.open4gl.dynamicapi.SessionPool.<init>(SessionPool.java:2037)
        at com.progress.open4gl.dynamicapi.SessionPool.createPool(SessionPool.java:1869)
        at com.progress.open4gl.javaproxy.ProObject.<init>(ProObject.java:203)
        at com.progress.open4gl.javaproxy.AppObject.<init>(AppObject.java:93)
        at lt.ba.awreqImpl.<init>(awreqImpl.java:31)
        at lt.ba.awreq.<init>(awreq.java:54)
        at lt.ba.Pas.connect(Pas.java:35)
        at lt.ba.Pas.main(Pas.java:22)

Posted by dziugasj on 28-Apr-2015 06:06

It seems that connection must be specified without "-URL":

       backend = new Connection(

               "http://localhost:8810/apsv",

               "", /* user */

               "", /* pass */

               ""); /* info */

       backend.setSessionModel(Connection.SM_SESSION_FREE);

All Replies

Posted by dziugasj on 28-Apr-2015 06:06

It seems that connection must be specified without "-URL":

       backend = new Connection(

               "http://localhost:8810/apsv",

               "", /* user */

               "", /* pass */

               ""); /* info */

       backend.setSessionModel(Connection.SM_SESSION_FREE);

Posted by Irfan on 28-Apr-2015 06:46

Correct, for JavaOpenClient you do not need to provide "-URL". It is only required for ABL Client

This thread is closed