Runtime exception while I connect to SAP using JCO
I am getting this error when I am trying to write a Java DC Project using NWDS.
I have added all the JCO API DC to my project and all the classes are available in that.
I am getting runtime exception class not found - com.sap.mw.jco.JCO$Repository
I am deploying the java dc in the SAP J2EE Server by making Java Lib DC & deploy that.
Is it possible to connect to SAP R/3 from Java DC? or we need to have Portal Projects like PAR or Webdynpro only?
I want to use Background Callable object using GP API here.
Thank you Venkat. One more question - in one of my java library, I want to make a class a public part and I added as public part but it is not accessible from SAP Portal GP as Background callable object, getting message: cannot find this class name
Do you have any idea ?
see my post:Custom Email Template in GP
Thank you once again.
Similar Messages
-
Connecting to SAP using JCO: Difference between SAP AS 7.3 & Other Servers
Hi All,
I am connecting to SAP system using jar sapjco3. I am able to connect to SAP system successfully. But I observed some difference in connection to SAP system between different servers.
1. Using TOMCAT 6 and JBOSS 5.1
While connection, when I call API from my code -
JCoDestination dest = JCoDestinationManager.getDestination(ANY_RANDOM_STRING);
It works successfully and I am able to connect. ANY_RANDOM_STRING is any random RFC destination which is not present in netweaver administrator --> Configuration --> Destinations
2. Using SAP Netweaver AS 7.3
While connection, when I call API from my code -
JCoDestination dest = JCoDestinationManager.getDestination(ANY_RANDOM_STRING);
It fails giving exception as
com.sap.conn.jco.JCoException: (106) JCO_ERROR_RESOURCE: Destination SAP_SERVER does not exist.
But when I replace ANY_RANDOM_STRING with an RFC destination name present in netweaver administrator --> Configuration --> Destinations, it works successfully.
So, my questions is
When I give any random string as RFC destination in other servers, it is connecting to SAP and not in SAP AS?
Is RFC destination always necessary for connection? If it is necessary, then why ANY_RANDOM_STRING is working in other servers and not in SAP netweaver AS ?
Thanks & Regards,
AnupVivek,
We have the WebAs 640 Java system running on a AIX server. I placed the following folder under classpath
/usr/sap/<SAPSID>/JC**/j2ee/cluster/server/bin/ext/com.sap.mw.jco/sapjrfc.jar
The error thrown is
JCO.classInitialize(): Could not load middleware layer 'com.sap.mw.jco.rfc.MiddlewareRFC'
JCO.nativeInit(): Could not initialize dynamic link library sapjcorfc [Can't find library sapjcorfc (libsapjcorfc.a or .so) in sun.boot.library.path or java.library.path
sun.boot.library.path=/usr/java14_64/jre/bin
java.library.path=/usr/java14_64/jre/bin:/usr/java14_64/jre/bin/classic:/usr/java14_64/jre/bin:/usr/sap/RID/JC15/j2ee/os_libs:/usr/sap/RID/SYS/exe/run:/home/db2_mgr/sqllib/lib:/home/db2_mgr/sqllib/lib:/usr/lib:/usr/sap/RID/JC15/j2ee/os_libs:/usr/sap/RID/JC15/j2ee/os_libs:/usr/lib:/lib:/usr/sap/RID/SYS/exe/run:/home/db2_mgr/sqllib/lib:/home/db2_mgr/sqllib/lib]. java.library.path [/usr/java14_64/jre/bin:/usr/java14_64/jre/bin/classic:/usr/java14_64/jre/bin:/usr/sap/RID/JC15/j2ee/os_libs:/usr/sap/RID/SYS/exe/run:/home/db2_mgr/sqllib/lib:/home/db2_mgr/sqllib/lib:/usr/lib:/usr/sap/RID/JC15/j2ee/os_libs:/usr/sap/RID/JC15/j2ee/os_libs:/usr/lib:/lib:/usr/sap/RID/SYS/exe/run:/home/db2_mgr/sqllib/lib:/home/db2_mgr/sqllib/lib]
The problem is a search on libsapjcorfc.* only return dll files and no .so or .a files.
Wondering how ISA loads the native libraries on AIX!
Thx,
Bharat. -
Hi,
I am using ant tasks wlserver and wlconfig to configure my weblogic server. while creating a connection pool as shown below
<target name="jdbcinfo">
<wlconfig password="weblogic"
username="weblogic"
url="${url}"
<query domain="mydomain" type="Server"
name="myserver" property="serverbean"
/>
<create type="JDBCConnectionPool"
name="jdbcpoolA"
property="jdbcPoolProp">
<set value="false"
attribute="ShrinkingEnabled"
<set value
attribute="
<set value="${serverbean}"
attribute="Targets"/>
The JDBCConnectionPool is created as long as I don't specified the attribute "Targets"
Once I add the target I get the following error
<JDBC> <BEA-001129> <Received exception while creating connection for pool "poolname" invalid arguments in call>
Please any help will be greatly appreciated.
ThanksIn your applicaion module configurations check if you are using 'JDBC URL' or 'JDBC DataSource'. You should use JDBC DataSource. Then make sure that your deployment descriptor (menu 'Application->Application Properties->Deployment) has the 'Auto Generate ...' checkbox set.
Timo -
For reason to change server IP address,
EP: 192.168.2.21 to 192.168.2.41
BW:192.168.2.22 to 192.168.2.42
and fix system by steps:
1,logon bw system,using tcode sm59 to modify tcp/ip connection.
2,logon ep system using visual administrator,and modified jco parameters.
3,logon ep system using ie,and modified sld,datasupplier.
4,restart bw and ep system.
after changed,the BEx Web did not work,
enter Maintain Jco destination
select jco destination: mete_data
click test
raise the error:
com.sap.mw.jco.JCO$Exception: (102) RFC_ERROR_COMMUNICATION: Connect to SAP gateway failed Connect_PM TYPE=B MSHOST=bw GROUP=public R3NAME=BW1 MSSERV=sapmsBW1 PCS=1 LOCATION CPIC (TCP/IP) on local host with Unicode ERROR partner '192.168.2.22:sapgw00' not reached TIME Tue Dec 18 15:39:34 2007 RELEASE 700 COMPONENT NI (network interface) VERSION 38 RC -10 MODULE nibuf.cpp LINE 4601 DETAIL NiBufIConnect: connection pending after 60000ms SYSTEM CALL connect ERRNO 55 ERRNO TEXT A connect operation on a socket is not complete. COUNTER 1
would someone tell me how to resolve this problem.
regardsHi,
It seems that the SAP gateway host is deactivated or the TCP/IP port 33xx (where xx corresponds to the system number) is not open.
First try pinging <IP address>. If there is no reply, then Boot SAP Gateway host required.
Check whether the TCP/IP port 33xx is open (where xx corresponds to the system number) and start the SAP gateway
The TCP/IP port is also partially defined in the services file as an sapgw<SID> or sapgwxx entry (where xx corresponds to the system number). The services file is in the Windows directory or in WinNT/System32/drivers/etc.
Hope this helps.
Regards
Srinivasan T -
Runtime exception while updating data
Hi All,
I'm getting a runtime exception while trying to update data to cube. It if full load and the error is like
"A RAISE statement in the program "SAPLSDIFRUNTIME" raised the exception
condition "NOT_FOUND".
Since the exception was not intercepted by a superior
program, processing was terminated."
The runtime exception is "RAISE_EXCEPTION".
Can anyone pls help me understand it and how to overcome it.
Thanks in advance,
SanandaHi,
Are you trying to load from DSO->Cube? or PSA->Cube?
Whatever the case, take an ABAPer's help and analyze the dump. You will get a clue.......
Regards,
Suman -
Error when connect to SAP with JCo Connector on linux
Dear all,
Please, i need help. i was tray to connect to SAP with SAP JCo on linux ubuntu, but i have an error.
this is the error :
com.sap.mw.jco.JCO$Exception: (102) RFC_ERROR_COMMUNICATION: Connect to SAP gateway failed
Connect_PM GWHOST=myhost, GWSERV=sapgw00, ASHOST=myhost, SYSNR=00
LOCATION CPIC (TCP/IP) on local host
ERROR hostname 'avatar-bumi' unknown
TIME Thu Feb 14 15:25:48 2008
RELEASE 640
COMPONENT NI (network interface)
VERSION 37
RC -2
MODULE niuxi_mt.c
LINE 388
DETAIL NiPGetHostByName2: hostname 'avatar-bumi' not found
SYSTEM CALL gethostbyname_r
ERRNO 110
ERRNO TEXT Connection timed out
COUNT
at com.sap.mw.jco.rfc.MiddlewareRFC$Client.nativeConnect(Native Method)
at com.sap.mw.jco.rfc.MiddlewareRFC$Client.connect(MiddlewareRFC.java:1125)
at com.sap.mw.jco.JCO$Client.connect(JCO.java:3138)
at sapjco.Main.main(Main.java:34)
Exception in thread "main" com.sap.mw.jco.JCO$Exception: (121) JCO_ERROR_NULL_HANDLE: Invalid rfc_handle = NULL encountered
at com.sap.mw.jco.rfc.MiddlewareRFC.nativeGetAttributes(Native Method)
at com.sap.mw.jco.rfc.MiddlewareRFC$Client.getAttributes(MiddlewareRFC.java:1233)
at com.sap.mw.jco.JCO$Client.getAttributesInternal(JCO.java:2940)
at com.sap.mw.jco.JCO$Client.getAttributes(JCO.java:2994)
at sapjco.Main.main(Main.java:38)
How to resolve this error....
Regards,
Lisa
Edited by: Lisa Yanti on Feb 14, 2008 9:35 AMI was resolve this error by my self.
We can handle this error with registering our current IP and host name on /etc/hosts.
example:
content of /etc/hosts:
127.0.0.1 localhost
127.0.1.1 myhost.workgroup
The following lines are desirable for IPv6 capable hosts
::1 ip6-localhost ip6-loopback
fe00::0 ip6-localnet
ff00::0 ip6-mcastprefix
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters
ff02::3 ip6-allhosts
added the ip and host name to be like this configuration
127.0.0.1 localhost
127.0.1.1 myhost.workgroup
172.20.17.74 myhost
The following lines are desirable for IPv6 capable hosts
::1 ip6-localhost ip6-loopback
fe00::0 ip6-localnet
ff00::0 ip6-mcastprefix
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters
ff02::3 ip6-allhosts -
Creating Purchase Info Record in SAP using JCO
I am trying to create a Purchase Info Record (ME11) in SAP using the below JCo code:
It executes without fail and throws no error, but i am not able to get the newly created info record in SAP. In ME13 it says info record not found. Can i know what am i missing?
I am using these FMs :
1. ME_INITIALIZE_INFORECORD
2. ME_DIRECT_INPUT_INFORECORD
3. ME_POST_INFORECORD
IFunctionTemplate ft1 = mRepository.getFunctionTemplate("ME_INITIALIZE_INFORECORD");
JCO.Function function1 = ft1.getFunction();
mConnection.execute(function1);
IFunctionTemplate ft = mRepository.getFunctionTemplate("ME_DIRECT_INPUT_INFORECORD");
JCO.Function function = ft.getFunction();
JCO.ParameterList importparams =function.getImportParameterList();
// Setting HeadData Structure Information
JCO.Structure headStructure = importparams.getStructure("I_EINA");
//headStructure.setValue("105","MANDT");
//headStructure.setValue("5300259768", "INFNR");
headStructure.setValue("MYPART0006", "MATNR");
//headStructure.setValue("MYPART0006", "IDNLF");
headStructure.setValue("100002","LIFNR");
headStructure.setValue("10000","MATKL");
headStructure.setValue("KGS","MEINS");
headStructure.setValue("1","UMREZ");
headStructure.setValue("1","UMREN");
headStructure.setValue("SG","URZLA");
headStructure.setValue("KGS","LMEIN");
//headStructure.setValue("0000005300259768","URZZT");
JCO.Structure headStructure1 = importparams.getStructure("O_EINA");
//headStructure1.setValue("105","MANDT");
//headStructure1.setValue("5300259768", "INFNR");
headStructure1.setValue("MYPART0006", "MATNR");
//headStructure1.setValue("MYPART0006", "IDNLF");
headStructure1.setValue("100002","LIFNR");
headStructure1.setValue("10000","MATKL");
headStructure1.setValue("KGS","MEINS");
headStructure1.setValue("1","UMREZ");
headStructure1.setValue("1","UMREN");
headStructure1.setValue("SG","URZLA");
headStructure1.setValue("KGS","LMEIN");
//headStructure1.setValue("0000005300259768","URZZT");
System.out.println("General Data Set");
JCO.Structure purchaseDataStructure = importparams.getStructure("I_EINE");
//purchaseDataStructure.setValue("105","MANDT");
//purchaseDataStructure.setValue("5300259768", "INFNR");
purchaseDataStructure.setValue("1000","EKORG");
purchaseDataStructure.setValue("1000", "WERKS");
purchaseDataStructure.setValue("003","EKGRP");
purchaseDataStructure.setValue("USD","WAERS");
purchaseDataStructure.setValue("3","APLFZ");
purchaseDataStructure.setValue("1","PEINH");
purchaseDataStructure.setValue("1","BPUMZ");
purchaseDataStructure.setValue("1","BPUMN");
purchaseDataStructure.setValue("1000","EFFPR");
purchaseDataStructure.setValue("0001","BSTAE");
purchaseDataStructure.setValue("100000","NETPR");
purchaseDataStructure.setValue("X","KZABS");
JCO.Structure purchaseDataStructure1 = importparams.getStructure("O_EINE");
//purchaseDataStructure1.setValue("105","MANDT");
//purchaseDataStructure1.setValue("5300259768", "INFNR");
purchaseDataStructure1.setValue("1000","EKORG");
purchaseDataStructure1.setValue("1000", "WERKS");
purchaseDataStructure1.setValue("003","EKGRP");
purchaseDataStructure1.setValue("USD","WAERS");
purchaseDataStructure1.setValue("3","APLFZ");
purchaseDataStructure1.setValue("1","PEINH");
purchaseDataStructure1.setValue("1","BPUMZ");
purchaseDataStructure1.setValue("1","BPUMN");
purchaseDataStructure1.setValue("1000","EFFPR");
purchaseDataStructure1.setValue("0001","BSTAE");
purchaseDataStructure1.setValue("100000","NETPR");
purchaseDataStructure1.setValue("X","KZABS");
mConnection.execute(function);
IFunctionTemplate ft2 = mRepository.getFunctionTemplate("ME_POST_INFORECORD");
JCO.Function function2 = ft2.getFunction();
JCO.ParameterList importparams2 =function2.getImportParameterList();
importparams2.setValue("MYPART0006", "I_MATNR");
importparams2.setValue("MYPART0006", "O_MATNR");
mConnection.execute(function2);
Edited by: rs_d123 on Dec 17, 2011 10:46 AM
Edited by: rs_d123 on Dec 17, 2011 10:46 AMIf i give this much code then it throws an error
Exception in thread "main" com.sap.mw.jco.JCO$Exception: (104) RFC_ERROR_SYSTEM_FAILURE: Enter Purch. group :
I have already set the purchase group in the code: EKGRP as 003. Dont know why its still asking for purchase group.
JCO.Repository mRepository;
mRepository = new JCO.Repository("SAPConnection", mConnection);
System.out.println(" Repository Created ");
IFunctionTemplate ft1 = mRepository.getFunctionTemplate("ZME_INITIALIZE_INFORECORD");
JCO.Function function1 = ft1.getFunction();
mConnection.execute(function1);
IFunctionTemplate ft = mRepository.getFunctionTemplate("ZME_DIRECT_INPUT_INFORECORD");
JCO.Function function = ft.getFunction();
JCO.ParameterList importparams =function.getImportParameterList();
// Setting HeadData Structure Information
JCO.Structure headStructure = importparams.getStructure("I_EINA");
headStructure.setValue("MYPART0006", "MATNR");
headStructure.setValue("0000100002","LIFNR");
headStructure.setValue("000010000","MATKL");
headStructure.setValue("KGS","MEINS");
headStructure.setValue("1","UMREZ");
headStructure.setValue("1","UMREN");
headStructure.setValue("SG","URZLA");
headStructure.setValue("KGS","LMEIN");
System.out.println("General Data Set");
JCO.Structure purchaseDataStructure = importparams.getStructure("I_EINE");
purchaseDataStructure.setValue("1000","EKORG");
purchaseDataStructure.setValue("1000", "WERKS");
purchaseDataStructure.setValue("003","EKGRP");
purchaseDataStructure.setValue("USD","WAERS");
purchaseDataStructure.setValue("1","APLFZ");
purchaseDataStructure.setValue("1","PEINH");
purchaseDataStructure.setValue("1","BPUMZ");
purchaseDataStructure.setValue("1","BPUMN");
purchaseDataStructure.setValue("1000","EFFPR");
purchaseDataStructure.setValue("0001","BSTAE");
purchaseDataStructure.setValue("1000","NETPR");
purchaseDataStructure.setValue("X","KZABS");
mConnection.execute(function);
IFunctionTemplate ft2 = mRepository.getFunctionTemplate("ZME_POST_INFORECORD");
JCO.Function function2 = ft2.getFunction();
JCO.ParameterList importparams2 =function2.getImportParameterList();
importparams2.setValue("MYPART0006", "I_MATNR");
mConnection.execute(function2);
System.out.println("Execution Completed");
Edited by: rs_d123 on Dec 19, 2011 9:04 AM -
WD Runtime exception: while using webservices!
Hi all
I am facing a wd runtime exception. using a webservice call from wd on CE 7.1. any clues?
java.lang.ClassNotFoundException: Loader /L_local#wd_webserviceejb3 could not load class com.sap.tc.webdynpro.model.webservice.gci.WSTypedModelClass
thank you.
regards
LNV
Edited by: vln on Jan 2, 2008 5:55 PMHi,
"Service call exception; nested exception is: com.sap.engine.services.webservices.jaxrpc.exceptions.XmlUnmarshalException: XML Deserialization Error. XML is not valid. Node <b><DisplayName></b> child of <b><response></b> not described in Schema"
From my point of view the response does not fit to the WSDL of the web service.The only solution that i can think of is to adjust the WSDL to the real response and to reimport the model after that.
Best regards,
Abhishek. -
RunTime Exception while reading the file
Hi,
I am using aixs1.0 for my current project. I have uploading an image file. if the file is in c: drive then upload successfully. if the file is in desktop it gives socket connection exception. while the desktop name is with .v example.c:\documents and settings\srinivas.v\desktop\image2.gif when I amreding this file from the project it gives the following error. can u please help in this regard
10/10 18:33:12 error [axis] java.io.IOException:
java.net.SocketException: Software caused connection abort: socket write error
at java.net.SocketOutputStream.socketWrite0(Native Method)
at java.net.SocketOutputStream.socketWrite(SocketOutputStream.java:92)
at java.net.SocketOutputStream.write(SocketOutputStream.java:136)
at java.io.BufferedOutputStream.write(BufferedOutputStream.java:106)
at sun.nio.cs.StreamEncoder$CharsetSE.writeBytes(StreamEncoder.java:336)
at sun.nio.cs.StreamEncoder$CharsetSE.implWrite(StreamEncoder.java:395)
at sun.nio.cs.StreamEncoder.write(StreamEncoder.java:136)
at java.io.OutputStreamWriter.write(OutputStreamWriter.java:191)
at java.io.BufferedWriter.flushBuffer(BufferedWriter.java:111)
at java.io.BufferedWriter.write(BufferedWriter.java:206)
at java.io.Writer.write(Writer.java:126)
at org.apache.axis.SOAPPart.writeTo(SOAPPart.java:277)
at org.apache.axis.Message.writeTo(Message.java:440)
at org.apache.axis.transport.http.HTTPSender.writeToSocket(HTTPSender.ja
va:466)
at org.apache.axis.transport.http.HTTPSender.invoke(HTTPSender.java:122)
at org.apache.axis.strategies.InvocationStrategy.visit(InvocationStrateg
y.java:71)
at org.apache.axis.SimpleChain.doVisiting(SimpleChain.java:150)
at org.apache.axis.SimpleChain.invoke(SimpleChain.java:120)
at org.apache.axis.client.AxisClient.invoke(AxisClient.java:180)
at org.apache.axis.client.Call.invokeEngine(Call.java:2564)
at org.apache.axis.client.Call.invoke(Call.java:2553)
at org.apache.axis.client.Call.invoke(Call.java:2248)
at org.apache.axis.client.Call.invoke(Call.java:2171)
at org.apache.axis.client.Call.invoke(Call.java:1691)
at com.stellent.www.CheckIn.CheckInSoapStub.checkInUniversal(CheckInSoap
Stub.java:210)
at jrun__Product_Info__CompetitiveProductConfirmation2ejsp30._jspService
(jrun__Product_Info__CompetitiveProductConfirmation2ejsp30.java:266)
at jrun.jsp.runtime.HttpJSPServlet.service(HttpJSPServlet.java:43)
at jrun.jsp.JSPServlet.service(JSPServlet.java:119)
at jrun.servlet.FilterChain.doFilter(FilterChain.java:86)
at jrun.servlet.security.StandardSecurityFilter.doFilter(StandardSecurit
yFilter.java:103)
at jrun.servlet.FilterChain.doFilter(FilterChain.java:94)
at jrun.servlet.FilterChain.service(FilterChain.java:101)
at jrun.servlet.ServletInvoker.invoke(ServletInvoker.java:91)
at jrun.servlet.JRunInvokerChain.invokeNext(JRunInvokerChain.java:42)
at jrun.servlet.JRunRequestDispatcher.invoke(JRunRequestDispatcher.java:
249)
at jrun.servlet.ServletEngineService.dispatch(ServletEngineService.java:
527)
at jrun.servlet.http.WebService.invokeRunnable(WebService.java:168)
at jrunx.scheduler.ThreadPool$DownstreamMetrics.invokeRunnable(ThreadPoo
l.java:348)
at jrunx.scheduler.ThreadPool$ThreadThrottle.invokeRunnable(ThreadPool.j
ava:451)
at jrunx.scheduler.ThreadPool$UpstreamMetrics.invokeRunnable(ThreadPool.
java:294)
at jrunx.scheduler.WorkerThread.run(WorkerThread.java:66)
10/10 18:39:47 error
java.lang.NullPointerException
at jrun__Home__Home2ejspe._jspService(jrun__Home__Home2ejspe.java:182)
at jrun.jsp.runtime.HttpJSPServlet.service(HttpJSPServlet.java:43)
at jrun.jsp.JSPServlet.service(JSPServlet.java:119)
at jrun.servlet.FilterChain.doFilter(FilterChain.java:86)
at jrun.servlet.security.StandardSecurityFilter.doFilter(StandardSecurit
yFilter.java:103)
at jrun.servlet.FilterChain.doFilter(FilterChain.java:94)
at jrun.servlet.FilterChain.service(FilterChain.java:101)
at jrun.servlet.ServletInvoker.invoke(ServletInvoker.java:91)
at jrun.servlet.JRunInvokerChain.invokeNext(JRunInvokerChain.java:42)
at jrun.servlet.JRunRequestDispatcher.invokeNext(JRunRequestDispatcher.j
ava:447)
at jrun.servlet.JRunRequestDispatcher.forwardInvoke(JRunRequestDispatche
r.java:417)
at jrun.servlet.JRunRequestDispatcher.forward(JRunRequestDispatcher.java
:175)
at jrun.servlet.file.FileServlet.service(FileServlet.java:306)
at jrun.servlet.FilterChain.doFilter(FilterChain.java:86)
at jrun.servlet.security.StandardSecurityFilter.doFilter(StandardSecurit
yFilter.java:103)
at jrun.servlet.FilterChain.doFilter(FilterChain.java:94)
at jrun.servlet.FilterChain.service(FilterChain.java:101)
at jrun.servlet.ServletInvoker.invoke(ServletInvoker.java:91)
at jrun.servlet.JRunInvokerChain.invokeNext(JRunInvokerChain.java:42)
at jrun.servlet.JRunRequestDispatcher.invoke(JRunRequestDispatcher.java:
249)
at jrun.servlet.ServletEngineService.dispatch(ServletEngineService.java:
527)
at jrun.servlet.http.WebService.invokeRunnable(WebService.java:168)
at jrunx.scheduler.ThreadPool$DownstreamMetrics.invokeRunnable(ThreadPoo
l.java:348)
at jrunx.scheduler.ThreadPool$ThreadThrottle.invokeRunnable(ThreadPool.j
ava:451)
at jrunx.scheduler.ThreadPool$UpstreamMetrics.invokeRunnable(ThreadPool.
java:294)
at jrunx.scheduler.WorkerThread.run(WorkerThread.java:66)
ThankYou
Srinivas VakkalankaHi,
check the MOS Note: readDomain() on UnPacked WLS 12c Domain will Fail with com.oracle.cie.common.CommonException: fail to load domain from directory. (Doc ID 1681602.1)
https://support.oracle.com/epmos/faces/DocContentDisplay?id=1681602.1
Borys -
Getting a Runtime Exception while inserting value in MSAccess 2000
I am using below mentioned code to insert values in MSAccess 2000 which having table structure as mentioned below:-
Field Name
Data Type
TodaysDate
Date/Time
Cart ID
Number
Client Name
Text
Team & Segment
Text
Duration
Number
Tape ID
Text
Start Date
Date/Time
End Date
Date/Time
Code:-
private boolean enterDataIntoMSAccessDatabaseusingPreparedStatement()
try {
ps = connection.prepareStatement("INSERT INTO [Cart ID Details] VALUES (?,?,?,?,?,?,?,?)");
System.out.println("After Query");
catch (SQLException se) {
generateErrorMessage("Error in Prepared Statement \n " + se.getMessage() );
return false;
catch (Exception e)
generateErrorMessage("Unexpected Error Occured \n " + e.getMessage());
String todaysDate = cartIDApplicationAddCartIDDatejTextField.getText().trim();
String cartID = cartIDApplicationAddCartIDCartIDjTextField.getText().trim();
String clientName = cartIDApplicationAddCartIDClientNamejTextField.getText().trim();
String teamSegment = cartIDApplicationAddCartIDTeamAndSegmentjTextField.getText().trim();
String duration = cartIDApplicationAddCartIDDurationjTextField.getText().trim();
String tapeID = cartIDApplicationAddCartIDTapeIDjTextField.getText().trim();
String startDate = cartIDApplicationAddCartIDStartDatejTextField.getText().trim();
String endDate = cartIDApplicationAddCartIDEndDatejTextField.getText().trim();
try {
//System.out.println("Before ps.setString()");
ps.setString(1, todaysDate);
ps.setString(2, cartID );
ps.setString(3, clientName);
ps.setString(4, teamSegment);
ps.setString(5, duration);
ps.setString(6, tapeID);
ps.setString(7, startDate);
ps.setString(8, endDate);
//System.out.println("After ps.setString()");
ps.executeUpdate();
catch (SQLException se) {
generateErrorMessage("Error while inserting data in database \n " + se.getMessage());
return false;
catch (Exception e)
generateErrorMessage("Unexpected Error Occured \n" + e.getMessage() );
return true;
The above boolean function is called in "Save Button" action event, but when I click Save I am getting as Runtime Exception.
Kindly help me to sort out this issue.Print stack traces not just messages. And it will tell you what is wrong. And if you posted the stack trace someone else might be able to tell you.
If you get an exception DO NOT CONTINUE. You can't do an update if the prepared statement failed so there is no point in trying. (Of course that depends on what 'generateErrorMessage' does)
Other than that note that you are using strings for everything even though the data types are not all text fields. -
Hi to you all,
I work with iAS 6.0 sp2 on Solaris.
For 1 day, I get that exception when trying to deploy or remove my modules (servlets + JSP) with the iasdeploy tool :
Exception while createXmlDocument()
java.net.ConnectException: Connection refused
at java.net.PlainSocketImpl.socketConnect(Native method)
at com.netscape.server.deployment.WebbAppReg.run(compiled code)
at com.netscape.server.deployment.WebbAppReg.main(Unknown source)
The war archive is put in the JAR directory, unpacked in the APPS/modules directory, but the servlets of the module have the null GUID in the registry ({000000 000000 000000}. And so, I have the GX error when trying to invoke them.
What appends ? Is it a iAS process which is unable ?
Please help !
Paul-EmileI think you have not put the xml files in the war file.
You need to put them under WEB-INF/ directory. Manually generate the guids using kguidgen script and try to deploy the war module. It should work fine. If it doesnot work please send me the file. So that I can further investigate and find out where exactly the problem is.Other wise you can use the deploytool.
Please let me know if this works fine.
Thanks for visiting our web forum. -
How to Reset Password of User while not connected to Domain using Local Admin Account
How to Reset Password of User while not connected to the Domain using Local Admin Account
(I have the use of a local admin account), and I want to help a user reset their password who has logged in the PC and had their credentials cached, but forgot this password.
In Local Admin Account :
When I go to Control Panel, users, users, manager user ; I cannot see any users in this window except the local admin account, and, so I cannot reset a user password this way.
When I go to lusrmgr.msc, then users ; the local admin account will display only.
If I go to command prompt and type "net user", this will not display any users who have logged in to the computer, and so I cannot use "net user" to reset a password.
I don't want to use any disks, 3rd party programs, or create a VPN connection to the domain. I just want to help a user who calls in and forgets their password.Hello Keith,
I know this is an old thread but I'm trying to better understand how I could change the domain password while not on the network. What I'm getting from your post is that you:
1. Create a local user account (not a domain user)
2. Login with that local user account
3. Connect to the VPN while logged in as a local user
4. Log out of the local account and login with the domain credentials
Now, my question is based on the assumption that the password created on the local account is the same password that one will use to login to the domain account? Also, is the local user account the same as the domain account?
Thanking you in advance! -
Java Runtime exception while importing WSDL to PI 7.1
Hi Experts,
I am getting a weird java runtime error while importing the wsdl file to PI 7.1 ESR. I have checked the well formness of wsdl and its looks Ok, but some how while importing in PI ESR its giving following error log.
Thrown:
com.sap.aii.utilxi.misc.api.BaseRuntimeException: javax.ejb.EJBException: nested exception is: java.lang.RuntimeException: java.lang.NoSuchMethodError: com.sap.aii.utilxi.wsdl.api.WsdlHandler.parseWsdlWithOrderRearrange(Lcom/sap/aii/utilxi/xml/xdom/XElement;Z)Lcom/sap/aii/utilxi/wsdl/api/Wsdl;
java.lang.RuntimeException: java.lang.NoSuchMethodError: com.sap.aii.utilxi.wsdl.api.WsdlHandler.parseWsdlWithOrderRearrange(Lcom/sap/aii/utilxi/xml/xdom/XElement;Z)Lcom/sap/aii/utilxi/wsdl/api/Wsdl;
at com.sap.engine.services.ejb3.runtime.impl.RequestInvocationContext.proceedFinal(RequestInvocationContext.java:80)
at com.sap.engine.services.ejb3.runtime.impl.AbstractInvocationContext.proceed(AbstractInvocationContext.java:166)
at com.sap.engine.services.ejb3.runtime.impl.Interceptors_StatesTransition.invoke(Interceptors_StatesTransition.java:19)
at com.sap.engine.services.ejb3.runtime.impl.AbstractInvocationContext.proceed(AbstractInvocationContext.java:177)
at com.sap.engine.services.ejb3.runtime.impl.Interceptors_Resource.invoke(Interceptors_Resource.java:71)
at com.sap.engine.services.ejb3.runtime.impl.AbstractInvocationContext.proceed(AbstractInvocationContext.java:177)
at com.sap.engine.services.ejb3.runtime.impl.Interceptors_Transaction.doWorkWithAttribute(Interceptors_Transaction.java:38)
at
I am realy stuck now and replies are higjhly appreciated.
Cheers,
Rakscheck the wsdl file in xml spy software.
chirag. -
VB code for connecting to SAP,using some standard bapi to get data to VB
Do not use capital letters in the subject line, please see rules of engagement before you post any thread in the forum
Hi ,
Can anyone plz give code of VB to connect with SAP and Getting data from SAP table using RFC .
Thks in Advance.
Subject line edited by: Moderator Mohan Kumar K on Sep 9, 2009 12:23 PMThis should be of enough help.
http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/608058b4-81b7-2910-4598-8a66dcdba0a8;jsessionid=(J2EE3417200)ID1155449350DB01489027927965648987End -
Runtime Exception while creating dynamic ui
Hi ,
when i creating textview ui element dynamically
iam getting runtime exception following is the same.
*Note:_*_
*textForD=(IWDTextView)view.createElementIWDTextView.class,"test"+i);_*_
*_the above statement is the cause for this exception.
_*com.sap.tc.webdynpro.services.exceptions.CreationFailedException: Cannot create view element implementation com.sap.tc.webdynpro.clientserver.uielib.standard.impl.TextView
at com.sap.tc.webdynpro.progmodel.view.ViewElementFactory.createElement(ViewElementFactory.java:161)
at com.sap.tc.webdynpro.progmodel.view.View.createElement(View.java:177)
at com.cgsl.examples.dialogms.DispalyView.wdDoModifyView(DispalyView.java:153)
at com.cgsl.examples.dialogms.wdp.InternalDispalyView.wdDoModifyView(InternalDispalyView.java:294)
at com.sap.tc.webdynpro.progmodel.generation.DelegatingView.doModifyView(DelegatingView.java:78)
at com.sap.tc.webdynpro.progmodel.view.View.modifyView(View.java:337)
at com.sap.tc.webdynpro.clientserver.cal.ClientComponent.doModifyView(ClientComponent.java:480)
at com.sap.tc.webdynpro.clientserver.window.WindowPhaseModel.doModifyView(WindowPhaseModel.java:551)
at com.sap.tc.webdynpro.clientserver.window.WindowPhaseModel.processRequest(WindowPhaseModel.java:148)
at com.sap.tc.webdynpro.clientserver.window.WebDynproWindow.processRequest(WebDynproWindow.java:335)
at com.sap.tc.webdynpro.clientserver.window.WebDynproWindow.processPhaseLoop(WebDynproWindow.java:345)
at com.sap.tc.webdynpro.clientserver.cal.AbstractClient.executeTasks(AbstractClient.java:152)
at com.sap.tc.webdynpro.clientserver.session.ApplicationSession.doProcessing(ApplicationSession.java:299)
at com.sap.tc.webdynpro.clientserver.session.ClientSession.doApplicationProcessingStandalone(ClientSession.java:711)
at com.sap.tc.webdynpro.clientserver.session.ClientSession.doApplicationProcessing(ClientSession.java:665)
at com.sap.tc.webdynpro.clientserver.session.ClientSession.doProcessing(ClientSession.java:232)
at com.sap.tc.webdynpro.clientserver.session.RequestManager.doProcessing(RequestManager.java:152)
at com.sap.tc.webdynpro.serverimpl.defaultimpl.DispatcherServlet.doContent(DispatcherServlet.java:62)
at com.sap.tc.webdynpro.serverimpl.defaultimpl.DispatcherServlet.doPost(DispatcherServlet.java:53)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.runServlet(HttpHandlerImpl.java:390)
at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.handleRequest(HttpHandlerImpl.java:264)
at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:347)
at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:325)
at com.sap.engine.services.httpserver.server.RequestAnalizer.invokeWebContainer(RequestAnalizer.java:887)
at com.sap.engine.services.httpserver.server.RequestAnalizer.handle(RequestAnalizer.java:241)
at com.sap.engine.services.httpserver.server.Client.handle(Client.java:92)
at com.sap.engine.services.httpserver.server.Processor.request(Processor.java:148)
at com.sap.engine.core.service630.context.cluster.session.ApplicationSessionMessageListener.process(ApplicationSessionMessageListener.java:33)
at com.sap.engine.core.cluster.impl6.session.MessageRunner.run(MessageRunner.java:41)
at com.sap.engine.core.thread.impl3.ActionObject.run(ActionObject.java:37)
at java.security.AccessController.doPrivileged(AccessController.java:215)
at com.sap.engine.core.thread.impl3.SingleThread.execute(SingleThread.java:100)
at com.sap.engine.core.thread.impl3.SingleThread.run(SingleThread.java:170)
Caused by: java.lang.reflect.InvocationTargetException
at sun.reflect.GeneratedConstructorAccessor54.newInstance(Unknown Source)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:44)
at java.lang.reflect.Constructor.newInstance(Constructor.java:315)
at com.sap.tc.webdynpro.progmodel.view.ViewElementFactory.createElement(ViewElementFactory.java:151)
... 34 more
Caused by: com.sap.tc.webdynpro.services.exceptions.WDRuntimeException: View: Cannot add element with duplicate ID "Deasis0" of type com.sap.tc.webdynpro.clientserver.uielib.standard.impl.TextView
at com.sap.tc.webdynpro.progmodel.view.View.addElement(View.java:735)
at com.sap.tc.webdynpro.progmodel.view.ViewElement.<init>(ViewElement.java:40)
at com.sap.tc.webdynpro.progmodel.view.UIElement.<init>(UIElement.java:168)
at com.sap.tc.webdynpro.clientserver.uielib.standard.impl.TextView.<init>(TextView.java:82)
... 38 moreHi,
I think your code is not complete, I don't see any close bracket there.
anyway, inside of the loop you try to create InputField with the same name "test",
Please see "bold" for my correction.
if (firstTime){
IPrivateDispalyView.ISelectTableDataElement element;
IWDTextView textForD;
IWDInputField input;
for(int i=0;i<wdContext.nodeSelectTableData().size();i++){
element=wdContext.nodeSelectTableData().getSelectTableDataElementAt(i);
if(element.getCheck()){
textForD=(IWDTextView)view.createElement(IWDTextView.class,"name"+i);
input=(IWDInputField)view.createElement(IWDInputField.class,"test" + i );
textForD.setText(element.getDeasis());
IWDTransparentContainer container=(IWDTransparentContainer)view.getElement("RootUIElementContainer");
container.addChild(textForD);
container.addChild(input);
Maybe you are looking for
-
so I bought an HD big enough to prevent this happening but I get the on error that makes me quit all app on a daily basis. I check on info and says that HD sometimes has nearly 900GB used and other times 500 and bit, in both ocasions have checked af
-
<p><br>i am using shared services system 9.2<br>i have 200 users in a group. i am wondering whether there is a wayto search for a particular user<br>in a group, as we do search in native user directory/NT userdirectory.<br><br>thanks and regards<br><
-
recently installed Apple TV, worked fine last evening to buy and watch a movie, tonight can watch a preview but when I go to buy I'm rejected with teh message "your purchase could not be completed" solution?
-
VNC icon appears on client in list
I have just installed Remote Desktop and updated the ARD client software on all of the eMacs in my media center. Today when I looked at the list of computers, one of them had 'VNC' and 'VNC ON' listed. What does this mean? Looking at the permissions
-
I having problem with the answer question for the App Store. And I forgot the answer
I having problem with the answer question for the App Store. And I forgot the answer