Hello everyone,
I am trying to access jbase using java OBjEX. Below is my code and
path I have setup, I have started the
javaOBjEXServer start
paths
D:\Documents and Settings\Divesh>@ECHO %JEDIFILENAME_MD%
E:\MicroCred2\bnk\bnk****n\VOC
D:\Documents and Settings\Divesh>@ECHO %JEDIFILENAME_SYSTEM%
D:\jbase4\4.1\src\SYSTEM
D:\Documents and Settings\Divesh>@ECHO %JEDIFILEPATH%
E:\MicroCred2\bnk\bnk.data
D:\Documents and Settings\Divesh>javaOBjEXServer start
.
"JBCRELEASEDIR = D:\jbase4\4.1"
"JBCGLOBALDIR = D:\jbase4\4.1"
"JREDIR = D:\jbase4\4.1\jdk\jre"
************************************************** *************************
************************************************** *************************
*********************
Program
System.out.println("debug 0");
jB = new Jbase();
System.out.println(jB);
getConnection();
System.out.println("debug 1");
//jC = jB.connect("Divesh","train","shevid");
jC = jB.connect();
System.out.println(jC);
System.out.println("debug 2");
// Open a file
System.out.println("debug 3");
jd = jB.newJdynArray("SELECT FBNK.CUSTOMER
WITH @ID NE 100020");
jr = jC.execute(jd);
js = jr.getReturnList();
System.out.println("returned value" + jr +
"*****" + js);
System.out.println("jsjsjs" + js.readnext());
************************************************** *************************
************************************************** *************************
*************************************************
if I use jB.connect("Divesh","train","shevid");
where train and shevid is the windows username and password and
Divesh
is the SIGNON name for T24, I get this error
D:\Documents and Settings\Divesh\Desktop\jbase java>java JOtest
debug 0
com.jbase.javaobjex.Jbase@1cdeff
debug 1
jBASE Error! Unable to logTo account 'train'.
************************************************** *************************
************************************************** *************************
************************************************** **
jB = new Jbase("localhost");
get this error
D:\Documents and Settings\Divesh\Desktop\jbase java>java JOtest
debug 0
jBASE Error! Unable to obtain a remote jBASE reference.; nested
exception is:
java.rmi.ConnectException: Connection refused to host:
localhost; nested
exception is:
java.net.ConnectException: Connection refused: connect
************************************************** *************************
************************************************** *************************
************************************************** **
when I use jc.execute(jd), I get this result
returned
valuecom.jbase.javaobjex.JexecuteRes...com.jbase.java
objex.JselectListImpl@1db7df8
jBASE Error! Expected exception - Select list ended gracefully
************************************************** *************************
************************************************** *************************
************************************************** **
Thanks
Divesh