If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Data Access, Manipulation & Batch Languages > JAVA > java + OBjEX (need urgent assistance)

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 08-06-09, 16:45
divesh divesh is offline
Registered User
 
Join Date: Aug 2009
Posts: 1
java + OBjEX (need urgent assistance)

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
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On