One Star

Newbie NoClassDefFoundError com/siebel/data/SiebelException tJavaRow

I try to expand a tJavaRow Component
I copy the siebel.jar into \lib\java Folder
I added this Code (Advanced Settings)
------------------------------------------------------------------
import com.siebel.data.SiebelBusComp;
import com.siebel.data.SiebelBusObject;
import com.siebel.data.SiebelDataBean;
import com.siebel.data.SiebelException;
-------------------------------------------------------------
I added this Code (Basic Settings)
------------------------------------
String connStr = "siebel.tcpip.none.none://xx.xx.xx.xx:2321/siebeagm01/CustomAppObjMgr_deu";
String loginId = "sadmin";
String loginPwd = "xxxxxx";
String langId = "deu";
SiebelDataBean sdb = new SiebelDataBean();
SiebelBusObject bo;
SiebelBusComp bcOrder;
SiebelBusComp bcOrdBu;

try {
sdb.login(connStr, loginId, loginPwd, langId);
System.out.println("successfull connection.");

bo = sdb.getBusObject("CRMT DC Order");
bcOrder = bo.getBusComp("CRMT DC Order Entry ? Orders DC521");
bcOrder.activateField("Primary Organization Id");

bcOrdBu = bo.getBusComp("CRMT DC Order Business Unit");
bcOrder.activateField("Organization Id");

bcOrder.clearToQuery();
bcOrder.setSearchSpec("Id", "1-23DR-1850");
bcOrder.executeQuery(false);

if (bcOrder.firstRecord()) {
System.out.println("Found record.");

bcOrdBu.newRecord(false);

bcOrdBu.setFieldValue("Organization Id", "0-R9NH");

bcOrdBu.writeRecord();

System.out.println("S_ORDER_BU record created.");

bcOrder.setFieldValue("Primary Organization Id", "0-R9NH");

bcOrder.writeRecord();

System.out.println("S_ORDER update successfull.");
}

} catch (SiebelException e) {
System.out.println("Connection not successfull.");
// TODO Auto-generated catch block
e.printStackTrace();
} finally {
bcOrdBu = null;
bcOrder = null;
bo = null;

try {
sdb.logoff();
} catch (SiebelException e) {
System.out.println("Logoff not successfull.");
// TODO Auto-generated catch block
e.printStackTrace();
}
}
sdb = null;
-------------------------------------------------------------------------------------------

I got this error Message:
-----------------------------------------------------------------------------------
Starte Job customer_upload_0_2 am 16:57 22/06/2010.
java.lang.NoClassDefFoundError: com/siebel/data/SiebelException
Caused by: java.lang.ClassNotFoundException: com.siebel.data.SiebelException
at java.net.URLClassLoader$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
Could not find the main class: richard.customer_upload_0_2_0_1.customer_upload_0_2. Program will exit.
Exception in thread "main"
Job customer_upload_0_2 endet am 16:57 22/06/2010.
------------------------------------------------------------------------------------------------
any suggestions ?
Richard
2 REPLIES
One Star

Re: Newbie NoClassDefFoundError com/siebel/data/SiebelException tJavaRow

One Step further.
tlibraryload with siebel.jar let disappear the message,

now i get this message

Exception>
<Major No.>4096</Major No.><Minor No.>-1</Minor No.><Message>Error loading translatable messages:
com.siebel.locale.enu.messages.JCAMessages_enu</Message><DetailedMessage>Unknown<DetailedMessage>
</Exception>
at com.siebel.data.SiebelDataBean.login(SiebelDataBean.java:224)
at richard.customer_upload_0_2_0_1.customer_upload_0_2.tMysqlInput_1Process(customer_upload_0_2.java:1434)
at richard.customer_upload_0_2_0_1.customer_upload_0_2.runJobInTOS(customer_upload_0_2.java:1722)
at richard.customer_upload_0_2_0_1.customer_upload_0_2.main(customer_upload_0_2.java:1585)
<Exception>
<Major No.>4096</Major No.><Minor No.>-1</Minor No.><Message>Error loading translatable messages:
com.siebel.locale.enu.messages.JCAMessages_enu</Message><DetailedMessage>Unknown<DetailedMessage>
</Exception>
Exception in component tJavaRow_1
java.lang.NullPointerException
at com.siebel.data.SiebelDataBean.logoff(SiebelDataBean.java:259)
at richard.customer_upload_0_2_0_1.customer_upload_0_2.tMysqlInput_1Process(customer_upload_0_2.java:1481)
at richard.customer_upload_0_2_0_1.customer_upload_0_2.runJobInTOS(customer_upload_0_2.java:1722)
at richard.customer_upload_0_2_0_1.customer_upload_0_2.main(customer_upload_0_2.java:1585)
disconnected
Job customer_upload_0_2 endet am 11:33 30/06/2010.
One Star

Re: Newbie NoClassDefFoundError com/siebel/data/SiebelException tJavaRow

Maybe depends that is not present in the connect string the language parameter in example :
------------------------------------
String connStr = "siebel.tcpip.none.none://xx.xx.xx.xx:2321/siebeagm01/CustomAppObjMgr_deu";
i.e :
dataBean.login=("siebel://GatewayServer/EnterpriseName/AppObjMgr,SiebelServer”,strJdbLoginUser,strJdbLoginPwd, “enu”);
One doubt : with which version of Siebel you work ?