This discussion is archived
1 Reply Latest reply: Apr 20, 2012 6:14 AM by arturk RSS

Connecting To Siebel using the Java DataBean.

byrne_wayne Explorer
Currently Being Moderated
Hi Everyone,

I have just been looking into connecting to Siebel via a Java Program. The code is very simple:

import com.siebel.data.*;
import com.siebel.data.SiebelException;

public class testSiebel {
     
     public static void main (String args[])
     {
          System.out.println("This is a test");
          SiebelDataBean m_dataBean=null;
          SiebelBusComp m_busObject=null;
          
          try
          {
               m_dataBean=new SiebelDataBean();
               
               m_dataBean.login("siebel://apollo:2320/SBA_81/SCCObjMgr_enu", "SADMIN","SADMIN","enu");
               System.out.println("Successfully connected to Siebel CallCentre Object Manager");
          }
          catch (SiebelException e)
          {
               System.out.println("ERROR:"+e.getErrorMessage());
          }
     }
}

I add Siebel.jar and SiebelJI_enu.jar to my classpath, and viola the code compiles. Unfortunately when I come to run this I get

H:\newExperiment\SiebelJava>java -cp Siebel.jar;SiebelJI_enu.jar;.\ testSiebel
This is a test
[CMGR WARNING] Homeless packet: #0 SISNAPI Notification: connection:5a
<com.siebel.common.common.CSSException>
<Error><ErrorCode>8716601</ErrorCode> <ErrMsg>Socket had incorrect word size: 0.(SBL-JCA-00313)</ErrMsg></Error>
</com.siebel.common.common.CSSException>
     at com.siebel.om.conmgr.Connection.readPacket(Connection.java:550)
     at com.siebel.om.conmgr.Connection.run(Connection.java:286)
     at java.lang.Thread.run(Thread.java:619)
<com.siebel.om.sisnapi.RequestException>
<Error><ErrorCode>8716591</ErrorCode> <ErrMsg>SSMHello Request 2 was abandoned after 16 ms. Connection: 5a due to connection shutdown request null(SBL-JCA-00303)</ErrMsg></Error>
</com.siebel.om.sisnapi.RequestException>
     at com.siebel.om.conmgr.Connection.send(Connection.java:958)
     at com.siebel.om.conmgr.Connection.send(Connection.java:200)
     at com.siebel.om.conmgr.ConnectionManager.open(ConnectionManager.java:136)
     at com.siebel.om.om.CSSModel.login(CSSModel.java:1673)
     at com.siebel.data.SiebelDataBean.login(SiebelDataBean.java:217)
     at testSiebel.main(testSiebel.java:16)
[CMGR FATAL] Error: <com.siebel.common.common.CSSException>
<Error><ErrorCode>8716601</ErrorCode> <ErrMsg>Socket had incorrect word size: 0.(SBL-JCA-00313)</ErrMsg></Error>
</com.siebel.common.common.CSSException> connection:5a
<com.siebel.om.sisnapi.RequestException>
<Error><ErrorCode>8716603</ErrorCode> <ErrMsg>SSMHello Request 2 was abandoned after 0 ms. Connection: 5b(SBL-JCA-00315)</ErrMsg></Error>
</com.siebel.om.sisnapi.RequestException>
     at com.siebel.om.conmgr.Connection.send(Connection.java:966)
     at com.siebel.om.conmgr.Connection.send(Connection.java:200)
     at com.siebel.om.conmgr.ConnectionManager.open(ConnectionManager.java:136)
     at com.siebel.om.om.CSSModel.login(CSSModel.java:1673)
     at com.siebel.data.SiebelDataBean.login(SiebelDataBean.java:217)
     at testSiebel.main(testSiebel.java:16)
[CMGR WARNING] Homeless packet: #0 SISNAPI Notification: connection:5b
<com.siebel.om.sisnapi.RequestException>
<Error><ErrorCode>8716603</ErrorCode> <ErrMsg>SSMHello Request 2 was abandoned after 0 ms. Connection: 5c(SBL-JCA-00315)</ErrMsg></Error>
</com.siebel.om.sisnapi.RequestException>
     at com.siebel.om.conmgr.Connection.send(Connection.java:966)
     at com.siebel.om.conmgr.Connection.send(Connection.java:200)
     at com.siebel.om.conmgr.ConnectionManager.open(ConnectionManager.java:136)
     at com.siebel.om.om.CSSModel.login(CSSModel.java:1673)
     at com.siebel.data.SiebelDataBean.login(SiebelDataBean.java:217)
     at testSiebel.main(testSiebel.java:16)
[CMGR WARNING] Homeless packet: #0 SISNAPI Notification: connection:5c
ERROR:Could not open a session in 4 attempts. {1}(SBL-JCA-00200)

I have looked via google, but in vain. Any help would be grealty appreciated.

Regards

Wayne

Legend

  • Correct Answers - 10 points
  • Helpful Answers - 5 points