JCO Connect Exception for connecting to ABAP system
Hey Guys,
When running the program
[code]import com.sap.mw.jco.*;
public class TutorialConnect1 extends Object {
JCO.Client mConnection;
public Connect1() {
try {
// Change the logon information to your own system/user
mConnection =
JCO.createClient("100", // SAP client
"RFCUSER2"// userid
"RFCUSER2", // password
null, // language
"LABR3", // application server host name
"00"); // system number
mConnection.connect();
System.out.println(mConnection.getAttributes());
mConnection.disconnect();
catch (Exception ex) {
ex.printStackTrace();
System.exit(1);
public static void main (String args[]) {
Connect1 app = new Connect1();
[/code]
I get the exception
[code]java.lang.NoClassDefFoundError
at com.sap.mw.jco.MiddlewareJRfc$Client.connect(MiddlewareJRfc.java:836)
at com.sap.mw.jco.JCO$Client.connect(JCO.java:3159)
at com.ids.jco.JCOUtil.getClient(JCOUtil.java:37)
at com.ids.jco.JCOUtil.main(JCOUtil.java:23)[/code]
My program in the developer studio compiles just fine, I have added all the libraries in the developer studio. In the "set additional libraries" context menu of the project I have included all the libraries.
In the Debug/Run settings I see all the libraries included when I test the program.
I am running the program on Netweaver Developer Studio SP15
Any help is appreciated.
Regards
Sumit.
Hi Sumit,
the exact problem is discussed in this forum..just check this....
Re: Some problems about JCo >.<
let me know...
Regards
Kishor Gopinathan
Similar Messages
-
I have windows vista. I have run the latest update from Microsoft. iTunes works except for connecting to the store. I have tried everything on line for suggestions, going back on the update, allowing through in firewall settings, adding to trusted sites, disabling bonjour...Nothing works.....please HELP!
I have also uninstalled and reinstalled iTunes
-
No app can connect except for safari
Whether Its using data or connected to wifi none of the apps that use data or wifi will not connect except for safari. I cant even connect to the app store. It just started happening. There are no restriction settings on, I tried restarting my iphone 5c multiple times and nothing seems to work. Any help would be great.
Have you tried resetting your iPhone?
Reset: Press the Home and On/Off buttons at the same time and hold them until the Apple logo appears (about 10-15 seconds).
No data will be lost. -
Error while Installing the Java Add-In for an Existing ABAP System
Hi all,
I need help, i am Installing the Java Add-In for an Existing ABAP System
SAPInst stops on the first installation step: "Central Services Instance (SCS) Java Add-In", the step is "Install common system files" on the following sub-steps:
These are the last few lines on the sapinst.log.
INFO 2009-05-21 12:35:12
Execute step createAccounts of component |NW_Addin_SCS|ind|ind|ind|ind|0|0|NW_Users_Create_Do|ind|ind|ind|ind|3|0.
INFO 2009-05-21 12:35:18
Execute step setUserEnvironment of component |NW_Addin_SCS|ind|ind|ind|ind|0|0|NW_Users_Create_Do|ind|ind|ind|ind|3|0.
INFO 2009-05-21 12:35:19
Execute step InstallJDBCDriver of component |NW_Addin_SCS|ind|ind|ind|ind|0|0|NW_JDBCDriver_DB4|ind|ind|ind|ind|4|0.
INFO 2009-05-21 12:35:19
Creating directory V:\sapmnt\BIQ\jdbc.
INFO 2009-05-21 12:35:19
Creating directory V:\sapmnt\BIQ\jdbc\tbx.
INFO 2009-05-21 12:35:21
Copied file 'V:/QIBM/ProdData/HTTP/Public/jt400/lib/jt400.jar' to 'V:/sapmnt/BIQ/jdbc/tbx/jt400.jar'.
INFO 2009-05-21 12:35:22
Execute step updateNtPatchDlls of component |NW_Addin_SCS|ind|ind|ind|ind|0|0|NW_System|ind|ind|ind|ind|5|0.
INFO 2009-05-21 12:35:23
Execute step sCreateSystemOS4 of component |NW_Addin_SCS|ind|ind|ind|ind|0|0|NW_System|ind|ind|ind|ind|5|0.
ERROR 2009-05-21 12:35:42
MOS-02001 Call of command "CRTR3SYS SID(BIQ) GLOBALHOST(*LOCAL)" failed. Exception is "CPF0006".
ERROR 2009-05-21 12:35:42
MOS-02001 Call of command "CRTR3SYS SID(BIQ) GLOBALHOST(*LOCAL)" failed. Exception is "CPF0006".
ERROR 2009-05-21 12:35:42
FCO-00011 The step sCreateSystemOS4 with step key |NW_Addin_SCS|ind|ind|ind|ind|0|0|NW_System|ind|ind|ind|ind|5|0|sCreateSystemOS4 was executed with status ERROR .
Thanks in advance for any help.
Kiran ChebroluHi,
Hope this note would solve your issue, please read carefully and validate with your issue
Note 1032019 - Java Add-In: Error when you create the SCS instance
below notes give your suffice information.
Note 883948 - NW 7.00(2004s): Inst.Add.Java Usage Types/Software Units
Note 1268493 - NW 7.01/BS 7: Inst.Add.Java Usage Types/Software Units
Note 1025789 - RUNR3CMD generates CPF0006
regards
nag -
Installing Java Add-In for an existing ABAP System -Error SQL compatibility
Hello gurus,
We have a system and it has only the ABAP instance! So my goal is install the JAVA iinstance. In this momment I´m reading the section "4.4.2 Installing the Java Add-In for an Existing ABAP System (Optional)" in installation guide "SAP ERP 6.0 SR3" (ABAP+JAVA). So, I want to install the JAVA instance which is the Java Add-In for an existing ABAP system!
So what I did was followed that instructions on that section in guide!
As you certainly know this process has three sequential phases:
1) Central Services Instance (SCS) Java Add-In
2) Database Instance Java Add-In
3) Central Instance Java Add-In
The first phase - Central Services Instance (SCS) Java Add-In - it already finished with success, but I´m faccing with a weird error in second phase Database Instance Java Add-In when I entered all required input parameters, SAPinst shows an error that says:
The database PRD has the wrong compatibility level. The database used for the installation of an SAP system must have compatibility level: 80 for MS SQL Server 2000 90 for MS SQL Server 2005 SOLUTION: See the MS SQL Server documentation on how to set the compatibility level for a database.
I don´t know what´s happen, in fact my database is an SQL Server 2008 (100), but I already change it at management studio, the compatibility level to MS SQL Server 2005, but still the error remains!!! I also tried to ran again the sapinst process, I restarted it but it still show me this error!!
Can you tell me why and how can I solve this problem?
Best regards,
João Dimas - PortugalHello Sunny,
I still have this error... I don´t know what do to more for this situation!
I found one not which report this error of compatibility - Note 1152240 - Setting Up Microsoft SQL Server 2008 (R2) - in chapter "VII TROUBLESHOOTING" which said to follow the instructions in chapter III - "Installing SAP systems based on SAP NetWeaver 7.0 SR3".
When I read this last chapter (III) it tell us to do:
If you want to install an SAP system based on SAP NetWeaver 7.0 SR3 on SQL Server 2008, you cannot use the Installation Master and Kernel DVD that you received from SAP or downloaded from SAP Service Marketplace. Instead, you have to do the following:
Patch your runtime libraries by applying the procedure that is described in note 684106 for your release and machine architecture.
Use a modified Installation Master DVD
For more information, see section "VI PROCEDURES" -> "Creating a modified Installation Master DVD".
Use a modified Kernel DVD
For more information, see section "VI PROCEDURES" -> "Creating a modified Kernel DVD".
I did everything that is said in the note (except the "Creating a modified Kernel DVD") because I can not access to the note 1480785 (it say: "The requested SAP Note is either in reworking or is released internally only")
Can you help me... can you guide me... please!?
Best regards,
João Dimas - Portugal -
Installing the Java Add-In for an existing abap system
Hi, Currently we are Installing the Java Add-In for an existing abap system.
Following the steps (Installation guide):
1) We sucessfully installed the Central Services Instance (SCS)
2) We sucessfully Installed the Database Instamce Java Add-In
Our problem comes in the third step
3) Central Instance Java Add-In
When the system prompts me the SAP System Identification (Select the central instance of your local host).
I have a combo with two values: DVEBMGS00 of SAP System DEV and DVEBMGS00 of SAP System DEV
(The same value)
I chose anyone, and click next.
The system send me an Input error and says "Caught EKdException in Module call: single select return more than on row"
Any help is appreciated, and I will reward points if helpful.
RegardsI followed an advice made for a sap consultant, and delete some profile files.
I had the following files
DEFAULT.1.PFL
DEFAULT.2.PFL
DEFAULT.BAK
DEFAULT.PFL
DEV_DVEMGS00_bsomtymx005
DEV_DVEMGS00_bsomtymx005.BAK
DEV_SCS01_bsomtymx005
START_DVEBMGS00_BSOMTYMX0
START_DVEBMGS00_bsomtymx005
START_SCS01_bsomtymx005
after to delete the files, I have the following files
DEFAULT.BAK
DEFAULT.PFL
DEV_DVEMGS00_bsomtymx005
DEV_SCS01_bsomtymx005
START_DVEBMGS00_bsomtymx005
START_SCS01_bsomtymx005
Then, I restarted the installation, and the sapinst allow me to continue with the installation.
I really do not know if the installation will be sucessful, but this issue is solved.
Thanks shanji, I was working in another tasks, but with your help, I will try to resolve again this problem, and found the solution. -
Connection test for connectors(SAP R3 system) fail
Hi,
I got an EP system and connected to one existing R/3 system.For the same i have defined it in system landscape of EP.System administration ---> system configuration ---> system landscape.In property editor i have deined all the min required properties.
Application Host 172.16.3.68
Gateway Host 172.16.3.68
Gateway Service sapgw00
Logical System Name ISCCLNT100
Remote Host Type 3
SAP Client 100
SAP System ID (SID) ISC
SAP System Number 00
Server Port 3200
System Type SAP_R3
Trace Mode 1
The system intially works fine.But when
1)There are more users it gives connection error.
2)If there are not much users then also After some time it automatically shows connection error.
Then when I do Connection Test for Connectors,it shows "X" failed.
What I usally try to do,I restart the SQL server.
But this method does not work.I have to restart the EP.Then again the system works fine.
I think there are something wrong input in the property value of SAP R3 object setting.
Hey folks can u please help me in sorting out this problem?Why such connection error happens again and again?Hi Rajeev,
Thanks for your answer.Actaully I have miss interpreted the problem.Sorry Problem is not with in the SAP R3.
Connection problem is like this::
I have defined a system EPSQL(system alias for MS SQL sever DB) for my EP instance
To connect to database.
The connection tests to the alias is ok.
But as more and more users try connecting to the db the connection test fails.
Restarting the SQL server doesnt help.
I have to restart the EP instance to get over the problem
I think there are something wrong input in the property value of object setting.or,EP maintains some timeout or max user info...
Do u have any solution? -
New Install of MSCS for an Upgraded Abap System
We are currently on NW04S ECC 6.0 on WAS 700 in a MSCS, Oracle 10g. Our problem is that we are moving to new hardware and our current system uses the old MSCS (which is an upgraded system originally installed at 4.7 640 (perhaps earlier (4.6c)), which to me means that the Central Instance resides in the MSCS in the SAP Group. Our plan is to install a clustered system and do a DB restore or copy over to the new hardware. I have done the install and realize now that the ABAP MSCS install for NW04s ABAP creates the cluster a little differently in that it looks like the Java (Portal) cluster. Only the SCS and enqueue are in the MSCS and the CI and all Dis are outside of the MSCS. This creates a problem for me in that the SCS is using the 00 system number, that on our old system the CI had, so our gui is now pointing to what would be the wrong system number, as it looks like the gui must point to to the CI system number for connection to the message server. So, I guess this means a reinstall for me and switching the system numbers. I also dont know exactly how high availability would be created in this new setup unless you put an application switch in front of your CI and Dis, like you would with the Portal, to direct gui requests. With the old MSCS the cluster would know if the CI failed and move it to the other node, but since it resides outside of the cluster, you have to have some type of external director right?
Hello Jack,
even you have upgraded from 6.40 to 7.00 you will need to convert to new HA structure according the note 1011190 to avoid the problems with next upgrade. In 700 the CI and DI are not the SPOF (see also
<a href="https://www.sdn.sap.comhttp://www.sdn.sap.comhttp://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/e0b8cd93-f1e9-2910-c186-86bfff3dac63">here</a>) and you can configure logon groups via the message server.
In case of hardware change better to take the system copy guide and install new HA architecture - it will save you manual conversion (SAP note 1011190).
best regards -
SAP installation guiengine:No GUI server connected;waiting for connection
Hi All,
I need one help
I am trying to install SAP ECC 6 in Redhat Linux 5 and database oracle
I have installed java 1.4.2_16, I have set the environmental variables also.
But if I start the SAP installation by executing SAPINST , I am facing the below error
guiengine: No GUI server connected; waiting for a connection on host welcome, port 21200 to continue with the installation
I have tried to execute xclock to check it, but its gives the below error
ERROR: canu2019t open display: welcome:0.0
I found that before setting the below display environmental variable, xclock worked good, but after setting the below display environmental variable, I am facing this error
export DISPLAY=hostname:0.0
I searched for this error, some people posted that we have to change the display environmental variable like export DISPLAY=:0, set DISPLAY=:0.0,
I tried it but still facing the same No GUI server connected error.
I hope it will be a problem with display environmental variable and I have no other clues, please help me, Thanks.
Thanks,
Senthil.Hi,
We are trying in my personal laptop, so I have not set any ip addess. Is there any other way like our loop back adapter settings in windows, to configure ip address in Redhat linux 5 in individual machines.
Also I searched in forums few other people who has already faced the same error. They have set the display environment variable export DISPLAY=ipaddress:0.0 with ip address but they also has faced the same error and itu2019s not resolved.
Please help me if there will be any other reason for this error, Thanks.
Thanks,
Senthil. -
Occuring Connection exception for OracleDriver
Hi,
I have my j2sdk1.4.2_04 installed on solaris.
Now I am trying to connect to the database but I am getting an exception as follows
Connecting to Database: Url: jdbc:oracle:thin:@damodar:1521:adidas, driver: oracle.jdbc.driver.OracleDriver, User: NAVINDEX,
Password: navindex, DataSource: oracle.jdbc.driver.OracleDriver jdbc:oracle:thin:@damodar:1521:adidas NAVINDEX navindex, connection
tag: dbConnectionString
INFO: fatal exception caught
[VsamToRdb] [tstamp: 28 time: 27.7 split: 27.7] [Memory: 155.5M total: 1.315G free: 1.159G]
SEVERE: Exception caught by main.
java.lang.RuntimeException: java.lang.ClassNotFoundException: oracle.jdbc.driver.OracleDriver
at com.navtech.dataserver.jdbcserver.JdbcConnection.loginToDatabase(JdbcConnection.java:236)
at com.navtech.dataserver.jdbcserver.JdbcConnection.open(JdbcConnection.java:189)
at com.navtech.dataserver.jdbcserver.JdbcDatasetReader.connect(JdbcDatasetReader.java:164)
at com.navtech.loader.common.LoaderAbstr.performQuery(LoaderAbstr.java:856)
at com.navtech.loader.common.LoaderAbstr.load(LoaderAbstr.java:823)
at com.navtech.app.vsamtordb.ContextBuilder.loadMapContext(ContextBuilder.java:357)
at com.navtech.app.vsamtordb.AppFramework$AfwMapContext.<init>(AppFramework.java:288)
at com.navtech.app.vsamtordb.AppFramework.run(AppFramework.java:425)
at com.navtech.app.vsamtordb.VsamToRdb.main(VsamToRdb.java:658)
I have added the jre/lib and java/lib in the path variable . is there anything else I need to do.
Thanks and Regards,
AnandHere is the code. I have not mentioned the application specific imports since it is a huge repository of code.
import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.PreparedStatement;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.sql.Statement;
public class JdbcConnection
extends DatasetConnectionAbstr
implements DatasetConnection, JdbcServerOptionConstants
private static final Logger s_logger =
NTLogger.getLogger(JdbcConnection.class);
private JdbcDatasetDescriptor d_datasetDescriptor;
private Statement d_queryStatement = null;
private Connection d_session = null;
private int d_originalIsolationLevel;
private boolean d_originalAutoCommit;
private int d_fetchSize;
private int d_defaultFetchSize;
* Indicates if the connection is in the middle of a transaction. This attribute
* is used to enforce the contract that a transaction can not be started if the
* connection is already in the middle of a transaction. In addition, the caller
* can not call endTransaction() if a transaction has not been started.
private boolean d_transactionStarted;
* Constructs a JdbcConnection.<p>This method does not establish the connection.
* Call open() to establish the connection.
* @pre descriptor != null
* @pre descriptor instanceof JdbcDatasetDescriptor
public JdbcConnection(DatasetDescriptor descriptor)
super();
Contract.precondition("Verify valid descriptor", descriptor != null);
Contract.precondition("Verify valid instance "
+ descriptor.getClass().getName(),
descriptor
instanceof JdbcDatasetDescriptor);
d_datasetDescriptor = (JdbcDatasetDescriptor) descriptor;
d_transactionStarted = false;
d_fetchSize = 0;
d_defaultFetchSize = 0;
* Create a new connection based off of this connection
* @return the new DatasetConnection
public DatasetConnection newConnection()
return new JdbcConnection(d_datasetDescriptor);
* Check for the existence of a database connection.<p>
* @return true if a connection exists and is valid
public boolean isConnected()
boolean result;
if (d_session == null)
result = false;
else
try
result = !d_session.isClosed();
catch (SQLException sqe)
result = false;
return result;
* Opens a connection to the database.<p>This method reports to standard error
* a SQL exception, if a connection could not be established. In addition, the method
* will return false.
* @return true if a connection was successfully opened to the database, otherwise
* the method throws a DatasetException
* @throws DatasetException if there was a problem connecting to the database
public boolean open()
throws DatasetException
boolean result = true;
try
loginToDatabase();
catch (SQLException sqe)
throw new DatasetException(sqe);
return result;
* Close the connection.
* @throws DatasetException if there was a problem accessing the database.
public void close()
throws DatasetException
try
logoutOfDatabase();
catch (SQLException sqle)
throw new DatasetException(sqle,
"Error closing database connection.");
* Login to the database, if not already connected.<p>
public void loginToDatabase()
throws SQLException
if (isConnected())
return;
String driverName = d_datasetDescriptor.driverName();
try
Class.forName(driverName);
catch (ClassNotFoundException e)
throw new RuntimeException(e);
logDiagnostic("opening connection to" + " user:"
+ d_datasetDescriptor.userName() + " url:"
+ d_datasetDescriptor.url());
d_session =
DriverManager.getConnection(d_datasetDescriptor.url(),
d_datasetDescriptor.userName(),
d_datasetDescriptor.password());
// Check for, and display and warnings generated
// by the connect.
checkForWarning(d_session.getWarnings());
* Logout of the database.<p>
* @throws SQLException if there was a problem accessing the database
* @post session() == null
* @post d_queryStatement == null
public void logoutOfDatabase()
throws SQLException
logDiagnostic("closing connection to" + " user:"
+ d_datasetDescriptor.userName() + " url:"
+ d_datasetDescriptor.url());
if (d_queryStatement != null)
d_queryStatement.close();
d_queryStatement = null;
if (d_session != null)
try
d_session.close();
catch (SQLException e)
s_logger.warning("SQLException closing JdbcConnection to" //
+ " user:" + d_datasetDescriptor.userName() //
+ " url:" + d_datasetDescriptor.url() + ": "
+ e.toString());
d_session = null;
* Accessor to the database session <p>
* @return Connection the connection to the database
public Connection session()
logDiagnostic("session accessed");
return d_session;
* Provides the connection with a hint as to the number of rows that should be
* fetched from the database.<p> The number of rows specified only affect the
* result set created when a query is executed.
* @param int rows the number of rows to prefetch.
* @throws SQLException if there was a problem accessing the database.
* @pre rows >= 0
* @pre transactionStarted == false.
public void setFetchSize(int rows)
throws SQLException
Contract.precondition("valid number of rows", rows >= 0);
logDiagnostic("fetch size set to " + rows);
d_fetchSize = rows;
* Provides a default value to for the fetch size.<p> Method setFetchSize(int)
* sets the size of a result set for a single query. This method sets the fetch size
* for the life of the Connection object. The default fetch size is 0 when the object
* is first created.<p>
* @param int rows the number of rows to prefetch.
* @throws SQLException if there was a problem accessing the database.
* @pre rows >= 0
* @pre transactionStarted == false.
public void setDefaultFetchSize(int rows)
throws SQLException
Contract.precondition("valid number of rows", rows >= 0);
d_defaultFetchSize = rows;
setFetchSize(rows);
* @see DatasetConnection#beginTransaction
public void beginTransaction()
throws SQLException
Contract.precondition("Verify trans. not already started",
!transactionStarted());
d_transactionStarted = true;
d_originalIsolationLevel = d_session.getTransactionIsolation();
d_originalAutoCommit = d_session.getAutoCommit();
logDiagnostic("AUTOCOMMIT OFF");
d_session.setAutoCommit(false);
* @see DatasetConnection#beginSerializableTransaction
public void beginSerializableTransaction()
throws SQLException
Contract.precondition("Verify trans. not already started",
!transactionStarted());
d_transactionStarted = true;
d_originalAutoCommit = d_session.getAutoCommit();
d_originalIsolationLevel = d_session.getTransactionIsolation();
d_session.setAutoCommit(false);
logDiagnostic("setting AUTOCOMMIT OFF");
d_session.setTransactionIsolation(
Connection.TRANSACTION_SERIALIZABLE);
logDiagnostic("setting ISOLATION_LEVEL SERIALIZABLE");
* @see DatasetConnection#beginTransaction
public void endTransaction()
throws SQLException
Contract.precondition("Verify transaction was started",
transactionStarted());
// Reset auto commit to its former value
d_transactionStarted = false;
d_session.setAutoCommit(d_originalAutoCommit);
logDiagnostic("restoring default AUTOCOMMIT " + d_originalAutoCommit);
d_session.setTransactionIsolation(d_originalIsolationLevel);
logDiagnostic("restoring default ISOLATION_LEVEL "
+ d_originalIsolationLevel);
* @see DatasetConnection#transactionStarted
public boolean transactionStarted()
return d_transactionStarted;
* @see DatasetConnection#beginTransaction
public void commit()
throws SQLException
reportSql("COMMIT");
d_session.commit();
* @see DatasetConnection#beginTransaction
public void rollback()
throws SQLException
reportSql("ROLLBACK");
d_session.rollback();
* Execute the SQL "COUNT(*)" command for the given table <p>
* @param table the table name
* @return the number of records in the table (SQL: COUNT(*))
public int countObjects(Class c, String whereClause)
JdbcCursor cursor = new JdbcCursor(this);
return cursor.countObjects(c, whereClause);
* FIXME <p>
* @param c
* @return FIXME
public int countObjects(Class c)
return countObjects(c, "");
* Executes an update, insert, delete query in the database.<BR>
* @param command an update, insert, or delete sql statement.
* @return either the row count for insert, update, or delete statements
* or 0 for SQL statements the return nothing.
* @throws SQLException if a database access error occurs.
* @pre isConnected() == true
public synchronized int executeSQL(String command)
throws SQLException
Contract.precondition("verify database connection", isConnected());
int updateCount;
Statement dbStatement = d_session.createStatement();
dbStatement.setQueryTimeout(QUERYTIMEOUT);
reportSql(command);
updateCount = dbStatement.executeUpdate(command);
dbStatement.close();
return updateCount;
* Prepares the connection for a batch of SQL Commands.<p> The order of
* operations is:<p>
* <ul>
* <li>prepareBatch()
* <li>addBatch()
* <li><em>repeat addBatch() as required
* <li>executeBatch()
* </ul>
* @throws SQLException
public void prepareBatch()
throws SQLException
Contract.precondition("verify database connection", isConnected());
d_queryStatement = d_session.createStatement();
* Adds <em>command</em> to the current batch of commands.<p> Method prepareBatch()
* should be called before the first call to addBatch(). Call executeBatch()
* to send the commands to the database.<p>
* @param command SQL statement typically an insert or update statement
* @pre isConnected()
* @throws SQLException if a database error occurs
* @see java.sql.Statement
* @throws SQLException
public void addBatch(String command)
throws SQLException
Contract.precondition("verify database connection", isConnected());
d_queryStatement.addBatch(command);
* Executes a the set of batch commands that were added through calls to
* addBatch(command).
* @return int[] where an element in the array is the result of the
* corresponding sql command. For example, the results for the first command
* passed to addBatch() will be in the first element of the int array.
* @throws SQLException
* @see java.sql.Statement
public int[] executeBatch()
throws SQLException
return d_queryStatement.executeBatch();
* @param c
* @param whereClause
* @return
public DatasetCursor readObjects(Class c, String whereClause)
JdbcCursor cursor = new JdbcCursor(this);
cursor.readObjects(c, whereClause);
return cursor;
* @param c
* @return FIXME
public DatasetCursor readObjects(Class c)
return readObjects(c, "");
* @param c
* @param whereClause
* @return FIXME
public DatasetCursor readObjects(List classesToRead, String query)
JdbcCursor cursor = new JdbcCursor(this);
cursor.readObjects(classesToRead, query);
return cursor;
* Executes a query in the database which returns a Resultset.<p>
* Note we <B>must</B> be connect to the database before making this call.
* <p>
* This call is synchronised to limit the number of executing statements
* to one per DatabaseAccess instantiation.
* @param query a SQL statement that returns a result set.
* @returns ResultSet the results of the query.
* @pre isConnected() == true
* @throws SQLException if there was a problem accessing the database.
public synchronized ResultSet querySQL(String query)
throws SQLException
Contract.precondition("Verify connection to database", isConnected());
d_queryStatement = d_session.createStatement();
d_queryStatement.setQueryTimeout(QUERYTIMEOUT);
d_queryStatement.setFetchSize(d_fetchSize);
d_fetchSize = d_defaultFetchSize;
reportSql(query);
return d_queryStatement.executeQuery(query);
* Executes a query in the database which returns a Resultset.<p>
* Note we <B>must</B> be connect to the database before making this call.
* <p>
* This call is synchronised to limit the number of executing statements
* to one per DatabaseAccess instantiation.
* @param query a SQL statement that returns a result set.
* @param resultSetType a result set type
* @param resultSetConcurrency result set concurrency type
* @returns ResultSet the results of the query.
* @pre isConnected() == true
* @throws SQLException if there was a problem accessing the database.
public synchronized ResultSet querySQL(String query, int resultSetType,
int resultSetConcurrency)
throws SQLException
Contract.precondition("Verify connection to database", isConnected());
d_queryStatement = d_session.createStatement(resultSetType,
resultSetConcurrency);
d_queryStatement.setQueryTimeout(QUERYTIMEOUT);
d_queryStatement.setFetchSize(d_fetchSize);
d_fetchSize = d_defaultFetchSize;
reportSql(query);
return d_queryStatement.executeQuery(query);
* Prepare for an ORACLE insert <p>
* @param data represents the OracleData object used for this insert
* @return the ORACLE prepared statement ready for insert
* @throws SQLException if there was a problem accessing the database
public PreparedStatement prepareOracle(OracleData data)
throws SQLException
PreparedStatement ps = null;
ps = d_session.prepareStatement(data.getInsertCommand(0));
data.setPreparedStatement(ps);
return ps;
* Report sql query to logger if "JdbcConnect.diagnostic" property is set to "true".
* @param q SQL query text
public static void reportSql(String q)
String prop = AppProperties.instance().getProperty(
AppPropertyConstants.JBDC_CONNECTION_DIAGNOSTIC, "false");
if (prop.equals("true"))
s_logger.fine("SQL: " + q + ";");
* Log a message to logger if "JdbcConnect.diagnostic" property is set to "true".
* @param q an arbitrary message
public static void logDiagnostic(String msg)
String prop = AppProperties.instance().getProperty(
AppPropertyConstants.JBDC_CONNECTION_DIAGNOSTIC, "false");
if (prop.equals("true"))
s_logger.fine(msg);
* @frominterface
public DatasetDescriptor descriptor()
return d_datasetDescriptor;
Thanks for the help,
Anand -
Difference in Fault message types & exceptions for Webservice in ABAP
Hello all,
I am relatively new to the web service framework in SAP. My problem scenario is as follows.
I have a WSDL file of a webservice from 3rd party non-SAP s/w and I want to replicate the same webservice into SAP by creating FM in SE37 with same imp/exp parameters and functionality.
So I first created a consumer proxy using the external WSDL file of non-SAP webservice. This generated imp/exp DDIC structures in SAP. Now I created a RFC FM in SE37 with similar Imp/exp parameters and relesed this FM as a webservice. I then created another consumer proxy using WSDL of this newly created webservice in SAP.
In the old consumer proxy I see a structure as SOAPFault as a Fault message type which has 3 fields ERRORCODE, TEXT, DETAILS but in the newly created consumer proxy I don't see Fault message types but i see exceptions which i mentioned in exception tabs while creating the FM. The imp/exp parameters are identical.
So my question is while creating a web service in SAP using a FM in SE37, what needs to be done in order to get the Fault message types getting created automatically when we create a consumer proxy for this webserivice?
Also based on the WSDL of 3rd party system , can i replicate the same web service in SAP ?
Appreciate your expert advice on this.
BR
Nilesh PuranikHi Krishna,
I've read the SAP description about Fault Message Types but I'm still struggling on how to use them correctly.
Why do we need them if I can't do nothing with it on the BPM side? After the mapping of the FMT, I'd like to acess it so that I can send a description back to the original system...The thing is, in BPM you can't acess the FMT, you can only create a new BRANCH (on a block step) for it...
I've tried to acess the description text on trace which comes with the message, but it seems that the trace only serves for posting info, and not for getting any...
The Mapping Runtime Constants have some information where you can read some descriptions, but nothing related to the errors....You can read the Receiver service, sender, interface_namespace, but nothing from the ERROR tag...
Is there a way to get the description? Or anything related to the error tag?
Thanks in advance -
Which edition of DB2 Connect neccessary for connection with WebLogic 6.1
Hi!
Who can tell me, which editions of DB2 Connect work together with WebLogic
6.1?
- the hardware-related Personal Edition
- the Enterprise Edition run on an extra server, which works as a gateway
between DB2 and its clients.
- the CAE-Client (Client Application Enabler)
We would prefer the Personal Edition - if possible - does anyone has
experiences? IBM can not give us this neccessary information.
Thanks
MaritaHi Marita,
WebLogic will work with any JDBC 2.0 compatible driver.
Generally, a gateway would add some overhead. You could
setup a WebLogic connection pool using the simplest way
and see if it satisfy your needs.
Regards,
Slava Imeshev
"Marita León Ohl" <[email protected]> wrote in message
news:[email protected]..
Hi!
Who can tell me, which editions of DB2 Connect work together with WebLogic
6.1?
- the hardware-related Personal Edition
- the Enterprise Edition run on an extra server, which works as a gateway
between DB2 and its clients.
- the CAE-Client (Client Application Enabler)
We would prefer the Personal Edition - if possible - does anyone has
experiences? IBM can not give us this neccessary information.
Thanks
Marita -
Problem while connecting to external ABAP system (on 4.6C rel)
Hi All,
I've created WebDynpro application that is supposed to fetch info about users from several ABAP systems. J2EE engine that runs this WebDynpro is directly connected to one of the ABAP systems. I've successfully created identical Adaptive RFC models, maintained SLD entries for my ABAP systems and configured JCO connections for my WebDynpro through WebDynpro Content Manager (http://<host>:port/webdynpro/welcome). I was able to reach all ABAP systems testing my JCO connections from WebDynpro Content Manager.
The problem I am experiencing is the following:
the application is working fine for the ABAP system that J2EE (where it's executed) is connected to, but failed to reach the remote ABAP system issuing the following message:
"Accessing System <Remote ABAP system> is not possible because RFC Metadata was retrieved using System <ABAP system that J2EE is connected>. Please assure you have configured the RFC Connections properly. A Server restart may be necessary!"
Where else should I have define JCO settings ?
This remote ABAP system is running on 4.6C so I have no options to install J2EE on it or fully configure SLD for that system.
It may seem like a dummy question since I am new to WebDynpro programming.
Thanks in advance,
MikeHi Rich,
Thank you for a quick reply,
Here is what I've done to connect to the remote ABAP system:
1. Configured this remote system in the SLD as a Technical System (SLD=> Technical Landscape).
2. Opened WebDynpro Content Administrator and created two JCO's for my application pointed to that remote ABAP system (defined in SLD). I was able to test them successfully reaching that remote system.
But when I run my application the same error occured.
What did I miss ?
Thanks & Regards,
Mike
Message was edited by: Mykhaylo Puzankev -
Connecting EHP4 Portal to BI-Java System
I have a new sandbox ERP 6 EHP4 java system. I installed portal and portal core software units and ehp4 portal content, but did not instal bi-java as we have a seperate system with bi-java installed Now I am trying to connect the ERP java system to the BI-Java system and the ERP6 ehp4 Abap system. For instance the quality inspector business package requires that an ITS connection be defined to the abap erp 6 system and also a connection be created to the bi system. I am supposed to define the sap_bw system in the portal of the erp6 java/portal system.
I have the ITS connection defined to the erp6 abap system with no issues but am trying to figure out how to configure the connecton to my seperate bi-java system. What system template is used to create thet connection SAP_BW?
Or did I miss something and should have install bi-java on my erp6 ehp4 java system?
Thanks for your help.Dear
Check the templates available in both BI and Portal and run what you find neccesary.
In your BI backend, the RSPOR_T_PORTAL table should contain entry pointing to your portal SAP system.
There is also a report available in BI (rspor_setup). It might not be valid anymore for the latest SAP versions but I believe the report is still available so you can run it to check the settings.
You can find information on SAP_BW on
[http://help.sap.com/saphelp_nwce71/helpdata/en/45/c21540edc547f5e10000000a114a6b/content.htm]
KInd regards
Tom -
Getting predefined XI content in CRM for connection to CM
Hello,
we are trying to connect our credit management system with several other systems. According to SAP-Help predefined XI content exists for certain interfaces (e.g. CreditCommitmentNotification). We need to use this interface for two connections. For the FI-CA system everything is there. You can import the SWC FI-CA_XI and you have the necessary message interface in XI-repository and also the ABAP Proxy Classes are already implemented in the FI-CA System. So there you can configure the scenario to send the CreditCommitmentNotification to XI.
For CRM ABAP-Help says that there is the same message interface provided. It is needed to install Add On CRMIS 400. So we did that. But in CRM there are no proxy classes like in FI-CA and if you import SWC CRMIS 400 to the integration repository it is an empty SWC.
Did we miss anything?
Do we have to download and import content into XI repository server? Where do I find this? Is in XI CONTENT BBPCRM 4.0 the required data to import? Is there any overview for which Components predefined XI content exists and which SLD-SWCs containing predefined XI content fit for certain versions of Add-Ons, Plug-Ins, Modules.
Any helpful hints,
(I already searched SAP-Help, service.sap.com/ibc, service.sap.com/swdc)
regards
MartinHi,
Can you guide me to where you found XI Configuration Scenarios for SAP CRM?
Thank you in advance,
Dmitriy Mindich
Maybe you are looking for
-
How do I download multiple songs from iCloud to iPad?
I'D like to download my entire library from iCloud to my iPad.
-
"...does not support this type of alias."
I just reinstalled the OS 10.4 onto my G5 using the erase and install function. The drive is formatted as a Mac OS Extended (Journaled), which is an HFS+ format. I'm trying to copy some files onto the main hard drive from a DVD. I keep getting an err
-
After singning in to Homesharing I get a window that says something like "Congratulations now your homesharing is working", however I can not see it anymore in the side bar. I have this problem only on my iMac. When I tried to create a homesharing on
-
Re: Whats the correct way to layout a JFrame
Hi, I am fairly new to Java and have just started to put together my first big application. Its a simple application written in Swing where the user is first shown a login screen, when he presses the login button and is taken to another screen where
-
Photo app that displays names of files?
Hello, I have iOS 4 on my iPhone and now, I came across a question: Is there any app that displays photos with their filenames on my iPhone? For example, I want to use the albums I already have on my iPhone not only showing the picture itself, but al