IDOC to JDBC :Error using JDBC

Hi Frnds,
My scenario is Idoc to JDBC scenario, I am getting the follwoing error while trying to process an idoc. Please help me in hadling this error.
Error Message:
JDBC message processing failed; reason Error when attempting to get processing resources: com.sap.aii.af.service.util.concurrent.ResourcePoolException: Unable to create new pooled resource: DriverManagerException: Cannot establish connection to URL 'jdbc:microsoft:sqlserver://180.1.32.194:1433;DatabaseName=CZZ03;': SQLException: [Microsoft][SQLServer 2000 Driver for JDBC]Error establishing socket.
Regards,
Shiv

Hello Shiva,
Are you installed  JDBC Drivers?
Go through this links,
/people/varadharajan.krishnasamy/blog/2007/02/27/configuring-jdbc-connector-service-to-perform-database-lookups
http://searchsap.techtarget.com/tip/0,289483,sid21_gci1246926,00.html
To install JDBC driver follow the how to guide.
https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/xi/xi-how-to-guides/how%20to%20install%20and%20configure%20external%20drivers%20for%20jdbc%20and%20jms%20adapters.pdf
Configuration of JDBC Adapter for SQL Server
JDBC Driver = com.microsoft.jdbc.sqlserver.SQLServerDriver
Connection = jdbc:microsoft:sqlserver://hostname:<port>;DatabaseName=<DBName>
UserID and Password.
If the connection is not working find the correct port number.
https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/40b92770-db81-2a10-8e91-f747188d8033
JDBC- X I -  R/3 Scenario
/people/bhavesh.kantilal/blog/2006/07/03/jdbc-receiver-adapter--synchronous-select-150-step-by-step
/people/sap.user72/blog/2005/06/01/file-to-jdbc-adapter-using-sap-xi-30
Please check the driver path as mentioned below.
JDBC Driver : sun.jdbc.odbc.JdbcOdbcDriver
Connection:jdbc:odbc:Driver={Microsoft Access Driver (*.mdb)};DBQ=//location of DB table.mdb;
No JDBC driver required.
Receiver JDBC scenario MS access - /people/sameer.shadab/blog/2005/10/24/connecting-to-ms-access-using-receiver-jdbc-adapter-without-dsn
follow this thread
Re: Problem when connecting to MS Access through JDBC Adapter.
SAP Note 850116 has details
Thanks,
Satya Kumar
Reward if it is usefulll

Similar Messages

  • Error using jdbc XA

    I need to use jdbc XA between WebSphere App Server 5.1 on Windows 2000 and Oracle 9.2.0.1 on UNIX AIX
    I run the script : initxa.sql on my database
    but I have this error message :
    java.sql.SQLException: ORA-29540: classe oracle/jdbc/xa/server/OracleWrapXAResource inexistante
    On the client side, I have the class
    oracle/jdbc/xa/client/OracleWrapXAResource in the classes12.zip (accessible in the WAS Classpath)
    Where is the server side classe , and how do I set classpath in the database.
    thanx

    Hi,
    Can you post the details of your application - like when is this exception thrown during a transaction?
    This is a generic error which appears usually during xa resource enlistment or delistment - and of course Oracle neglects to give any proper message. And also, which appserver are you using?
    Regards
    Hrishikesh

  • BPM Mapping Error using JDBC adapter JDBC - SAP -  JDBC

    Hi
    I am facing an issue in XI BPM in my QA system .
    My scenario involves a JDBC sender adapter which calls an SQL in the legacy database , a BPM which process the SQL resultset and IDoc send from BPM to R/3.Once IDoc is send successfully to R/3 XI BPM sends a response back to legacy database.
    There are 4 mapping transforations inside BPM.
    First XI executes an SQL in the database and then transforms it using BPM steps.
    I  have not made any changes in the mapping or within BPM.
    However since last week the BPM is failing . When I checked the error log I found out the error due to mapping transformation in one of the steps.
    In fact XI fails to successfully map in that step.
    The same BPM and mapping works fine in the Production system.
    However when I manually tried to test the BPM and the mappings with Production payload in XI QA system it again failed.
    I believe the message is failing not due to data problem.
    I also tried by deactivating and reactivating the XI sender channel which calls the SQL in the database.
    Then I tried by restarting all backgrounds jobs related to BPM.
    Both apprpoaches failed.
    I am getting the following error in transformation step.
    <b>com.sap.aii.utilxi.misc.api.BaseRuntimeExceptionRuntimeException in Message-Mapping transformatio~</b>.
    Any inputs will be very helpful and rewarded.
    Thanks in advance.

    Please provide more detailed exception trace.
    Also, I have seen some cases where the imported/deployed classes simply disapeared!!!
    I had to make dummy changes in all my message mappings and activate them in order to get them working.
    Regards,
    Henrique

  • ORA-00601 Error using JDBC, Oracle 8i on Linux

    Hello,
    Spatial is considering using Oracle as its database platform. I was assigned
    the task of benchmarking the two platforms. So, I downloaded the latest copy
    of Oracle for Linux, version 8.1.6.1.0 ( 8i Enterprise Edition Release 2 ).
    I'm using RedHat 6.2, with a 2.2.14-5.0smp kernel. I ran the installer, set
    up the databases, and everything seemed to be running quite nicely. I copied
    a table and its data from mysql to Oracle, and wrote a java program to
    benchmark the two. This java program takes command line arguments, the first
    one being the connection URL, the second being the number of threads to
    start, the third being the number of operations to complete for each thread.
    So, if you pass it connection 35 35, it will open 35 threads, and each
    thread will then execute 35 selects, inserts, and updates. These are
    hard-coded queries, but they mimic the functionality currently in
    production.
    Oracle bombs on the update. I turned tracing on, and tried it again, with
    the same result. Here's an excerpt from one of the trace files:
    *** SESSION ID:(4.1) 2000-06-21 16:36:48.937
    kvotenlg: epc_collect failed. EPC error: -1073751468.
    CDF: /u01/app/oracle/product/8.1.6/otrace/admin/cdf/styorap0
    FDF: /u01/app/oracle/product/8.1.6/otrace/admin/fdf/oracled.fdf
    kvotenlg: epc_collect failed. ctx:368.
    I was not able to find any information regarding this error. However, this
    message ( or one very similar ) appeared in every trace file. I get the
    following at the end of the pmon_xxxx.trc file:
    Load Indicator not supported by OS !
    *** 2000-06-21 17:42:19.122
    error 601 detected in background process
    And, the following in the alert_sid.log file:
    Wed Jun 21 17:42:19 2000
    PMON: terminating instance due to error 601
    Instance terminated by PMON, pid = 3797
    I made the assumption that this error was actually ORA-00601, and took a
    peek on the internet for relavent information. The canned error message is
    "PMON process runs into lock conflict trying to recovery processes". I found
    someone who had a similar problem, who suggested setting mts_max_dispatchers
    in the initsid.ora file to 1. However, this did not work.
    Basically, when Oracle crashes, the java program is trying to update one
    column in 1225 rows, 35 times, for 35 threads. The java exception is below.
    java.sql.SQLException: No more data to read from socket
    at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java)
    at oracle.jdbc.dbaccess.DBError.check_error(DBError.java)
    at oracle.jdbc.ttc7.MAREngine.unmarshalUB1(MAREngine.java)
    at oracle.jdbc.ttc7.MAREngine.unmarshalSB1(MAREngine.java)
    at oracle.jdbc.ttc7.Oall7.receive(Oall7.java)
    at oracle.jdbc.ttc7.TTC7Protocol.doOall7(TTC7Protocol.java)
    at
    oracle.jdbc.ttc7.TTC7Protocol.parseExecuteFetch(TTC7Protocol.java)
    at
    oracle.jdbc.driver.OracleStatement.executeNonQuery(OracleStatement.java)
    at
    oracle.jdbc.driver.OracleStatement.doExecuteOther(OracleStatement.java)
    at
    oracle.jdbc.driver.OracleStatement.doExecuteWithBatch(OracleStatement.java)
    at
    oracle.jdbc.driver.OracleStatement.doExecute(OracleStatement.java)
    at
    oracle.jdbc.driver.OracleStatement.doExecuteWithTimeout(OracleStatement.java
    at
    oracle.jdbc.driver.OracleStatement.executeUpdate(OracleStatement.java)
    at ned.util.database.DBHammerThread.run(DBHammerThread.java:78)
    Has anyone seen this kind of behavior before? Is this merely a
    misconfiguration on my part? Help! :)
    -ned

    Sorry for the long delay in reply. I was using the thin client driver. However, when I switched to the oci8 driver, not only did I observe a 300% increase in speed, but this bizarre occurrence disappeared. I did find one issue with the oci8 driver, as follows.
    In this thread program, if I created a connection in the main program before any of the threads were instantiated, and when the first thread attempted to create a connection, it would produce a segmentation fault. This behavior was very easy to replicate, and it did not matter whether or not I close the original connection. This problem was circumvented by moving the code in the "main" program to create its connection after the child threads had created theirs.

  • ORA-01461 error using jdbc 10.2.0.1.0

    I am using the oracle jdbc 10.2.0.1.0 ( the latest version) and oracle 10g (10.1.0.4.0) database. Sometimes, the error "ORA-01461: can bind a LONG value only for insert into a LONG column' if I use a java program to insert record to a table containing a 'long raw' field. Previously, the same java program work well with oracle 9i.
    Interestingly, the 'ORA-01461' only SOMETIMES happen. If the problem appears, I need to rename the table and create a new one and then the data can be inserted.

    After 3 days of deep analysis on my project, now I have a clear idea of the problem.
    As you can find on web, newer versions of Oracle drivers for Java have the possibility to set property :
    oracle.jdbc.RetainV9LongBindBehavior=true
    it's considered the fix for this bug, and effectively it seems to work.
    But also with this setting, drivers have one more bug!+
    The problem appears in these conditions:
    - Application tries to save a string into a LONG column database
    - String length is more than 4000 bytes
    - String has less than 4000 characters (it's possible in case of international characters, which takes more than 1 byte)
    With these conditions, we have again error ORA-01461: can bind a LONG value only for insert into a LONG column.
    It seems that drivers evaluate string length before saving it, and consider it as LONG only for 4000+ characters. The bug is just on this check, that must consider length in bytes, according to database character encoding, and not simply for character length.
    As workaround, on my application we added a logic that appends spaces (" ") until total characters are at least 4001. In this way, string is considered correctly as LONG and storage works correctly.
    The check is something similar to this:
    if(value.getBytes("UTF-8").length > 4000 && value.length() < 4000)
    for(int x = value.length(); x<=4000; x++)
    value += " "; // always use StringBuffer for appending
    This workaround works, but it's clear that it can be not acceptable in many cases, for application funcionalities. In my specific bug, it has been very useful.
    My customer opened a ticket to Oracle, asking for solution of this bug. I will wait for Oracle answer.
    Finally, we have to say that Oracle warned to not use anymore LONG datatype: it's deprecated since v8.0.
    Bye guys ;-)
    Edited by: user12274810 on 25-nov-2009 12.04

  • Runtime Error using JDBC Driver in NetBeans IDE 6.9.1

    Hello,
    I receive a compiler error which reads as follows;
    java.lang.ClassNotFoundException: org.apache.derby.jdbc.EmbeddedDriver
    java.sql.SQLSyntaxErrorException: Schema 'DEMO' does not exist
    Heres the main body of code i am trying to execute.
    public class Main {
    @param args the command line arguments
    public static void main(String[] args) {
    // TODO code application logic here
    try{
    Class.forName("org.apache.derby.jdbc.EmbeddedDriver");
    }catch(ClassNotFoundException e){
    System.out.println(e);
    try{
    Connection con = DriverManager.getConnection("jdbc:derby://localhost:1527/SimpleDBDemo", "demo", "demo");
    Statement stmt = con.createStatement();
    ResultSet rs = stmt.executeQuery("SELECT * FROM DEMO.Table1");
    while (rs.next()) {
    String s = rs.getString("Name");
    float n = rs.getFloat("Age");
    System.out.println(s " " n);
    }catch(SQLException e){
    System.err.println(e);
    I am using NetBeans IDE and have created a database under: Services->Databases-> Java DB->SimpleDBDemo.
    I have a database connection in which theres a simple table (called "TABLE1") created which contains the names and ages of two people. I am trying to access the data of these two people.
    From what i can figure out i am getting a runtime error. I have downloaded a folder called "Microsoft SQL Driver 2005 JDBC Driver" which contains the "sqljdbc.jar" executable file. I copied the jar file to the library in "Program files->Sun->javadb" and then added the file to the project libraries section i.e. "Project->properties->add JAR/Folder->sqljdbc.jar" in netbeans.
    I am still getting the same runtime error. Have i the sqljdbc.jar file added in the wrong place?
    Any help would be greatly appreciated.

    Microsoft SQL Driver 2005 JDBC Driver is not the Derby driver.
    You need the correct JDBC driver for the database you are using, you can't simply grab the first one you find.

  • Error using JDBC and DB2 - Please help

    Hi, I need some help solving this problem. I ran the same program at my university and it worked. At home I am using TomCat4 and j2sdk1.4.1. I want to connect to the IBM DB2 Universal database personal edition v7. The program compiles, but when I run it, it says it can't find
    com.ibm.db2.jdbc.app.DB2Driver. The class path was automatically updated when I installed DB2. What could the problem be? Please help because I really need to use this. Thank you.
    Marianne.
    This is my program:
    import java.io.*;
    import java.sql.*;
    class testDB {
    public static void main(String argv[]) {
    try {
    // load driver and connect to database
    Class.forName("com.ibm.db2.jdbc.app.DB2Driver");
    String url = "jdbc:db2:test";
              String userid = "the database name"; // blanked out
              String password = "my password";
    Connection con = DriverManager.getConnection(url, userid, password);
    // an SQL retrieval getting all rows in table
    Statement stmt = con.createStatement();
    String SQLStatement = "SELECT issueID, stock FROM test.issue ORDER BY issueID";
    String theIssueId;
    int theStock;
    ResultSet rs = stmt.executeQuery(SQLStatement);
         // loop to step through each row of result set
         while (rs.next()) {
    theIssueId= rs.getString("issueID");
    theStock = rs.getInt("stock");
    System.out.println(theIssueId + " : " + theStock);
    // tidy up
    rs.close();
    stmt.close();
    con.close();
    } catch( Exception e ) {
    e.printStackTrace();
    }

    Try add path C:\Program Files\SQLLIB\java\db2java.zip to classpath.

  • Show errors using JDBC?

    Anyone know how to do the equivalent on "show errors" from SQLPlus in JDBC?
    If I get the warnings from the statement, I can see that there are compile warnings, but how to get them?
    Thanks.

    desc all_errors
    select * from all_errors where owner='<YOU>' and name='<YOUR_INVALID_OBJECT>'

  • JDBC Error: oracle.jdbc.driver.OracleDriver not found

    I am trying to compile and run sample jdbc file( Employee.java).
    The file compiled successfully. But when i run it i get the
    following error.
    java.lang.ClassNotFoundException: oracle.jdbc.driver.OracleDriver
    at Employee.main(Employee.java:17)
    I have set CLASS_PATH=$ORACLE_HOME/jdbc/lib/classes111.zip
    Any one faced this problem?. I am trying to solve this from last
    2 days. Any help is apprecidated.
    I am using RH 5.2, jdk-1.1.7_v1a(blackdown) and Oracle 8,0,5
    thx
    srini.
    null

    srini (guest) wrote:
    : I am trying to compile and run sample jdbc file(
    Employee.java).
    : The file compiled successfully. But when i run it i get the
    : following error.
    : java.lang.ClassNotFoundException:
    oracle.jdbc.driver.OracleDriver
    : at Employee.main(Employee.java:17)
    : I have set CLASS_PATH=$ORACLE_HOME/jdbc/lib/classes111.zip
    : Any one faced this problem?. I am trying to solve this from
    last
    : 2 days. Any help is apprecidated.
    : I am using RH 5.2, jdk-1.1.7_v1a(blackdown) and Oracle 8,0,5
    : thx
    : srini.
    trusth me..it is the classpath.
    i have the very same problem asyou when i started to have a look
    into oracle running on linux.
    check the classpath and path
    using the $ECHO
    LIKE
    TYPING THIS:
    echo $PATH
    or
    echo $CLASSPATH
    USING CAPITAL for path and classpath.
    good luck
    Victor Alamo
    EXA
    null

  • Loading big XML files using JDBC gives errors

    Hi,
    I've created a XMLType table using binary storage, with the restriction that any document stored has a (any) schema:
    CREATE TABLE XMLBIN OF XMLTYPE
    XMLTYPE STORE AS BINARY XML
    ALLOW ANYSCHEMA;Then I use JDBC to store a relatively large document using the following code:
    Class.forName("oracle.jdbc.driver.OracleDriver").newInstance();
    String connectionString = "jdbc:oracle:thin:@host:1521:sid";
    File f = new File("c:\\temp\\big.xml");
    Connection conn = DriverManager.getConnection(connectionString, "username", "password");
    XMLType xml = XMLType.createXML(conn,new FileInputStream(f));
    String statementText = "INSERT INTO xmlbin VALUES (?)";
    OracleResultSet resultSet = null;
    OracleCallableStatement statement = (OracleCallableStatement)conn.prepareCall(statementText);
    statement.setObject(1,xml);
    statement.execute();
    statement.close();
    conn.commit();
    conn.close();Loading a file of 61Mb (real Mb, in non-IT Mb (where 1Mb seems to be 10^6) it is 63.9Mb) or less doesn't give any errors, loading a file bigger then that gives the following error:
    java.sql.SQLRecoverableException: Io exception: Software caused connection abort: socket write error
            at oracle.jdbc.driver.SQLStateMapping.newSQLException(SQLStateMapping.java:101)
            at oracle.jdbc.driver.DatabaseError.newSQLException(DatabaseError.java:112)
            at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:173)
            at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:229)
            at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:458)
            at oracle.jdbc.driver.T4CCallableStatement.executeForRows(T4CCallableStatement.java:960)
            at oracle.jdbc.driver.OracleStatement.doExecuteWithTimeout(OracleStatement.java:1222)
            at oracle.jdbc.driver.OraclePreparedStatement.executeInternal(OraclePreparedStatement.java:3381)
            at oracle.jdbc.driver.OraclePreparedStatement.execute(OraclePreparedStatement.java:3482)
            at oracle.jdbc.driver.OracleCallableStatement.execute(OracleCallableStatement.java:3856)
            at oracle.jdbc.driver.OraclePreparedStatementWrapper.execute(OraclePreparedStatementWrapper.java:1373)
            at jdbctest.Tester.main(Tester.java:60)A succesful insert of a 63Mb file takes about 23 seconds to execute. The 70Mb file fails already after a few seconds, so I'm ruling out any time outs.
    I'm guessing there are some buffers that need to be enlarged, but don't have a clue which ones.
    Anyone any idea what might cause the problem and how to resolve?
    My server runs Oracle 11g Win32. The client is Windows running Sun Java 1.6, using ojdbc6.jar and Oracle 11g Client installed.
    Cheers,
    Harald

    Hi Mark,
    The trace log in the OEM shows me:
    Errors in file d:\oracle11g\app\helium\diag\rdbms\helium\helium\trace\helium_ora_6948.trc  (incident=7510): ORA-07445: exception encountered: core dump [__intel_new_memcpy()+613] [ACCESS_VIOLATION] [ADDR:0x0] [PC:0x6104B045] [UNABLE_TO_WRITE] []  If needed I can post the full contents (if I find out how, am still a novice :-))
    Cheers,
    Harald

  • Error while loading xml files using JDBC

    Hi,
    I am trying to load xml files into an xmltype table using JDBC calls and am getting this error for some files
    LPX-00200: could not convert from encoding UTF-8 to UCS2
    The xml files and our database are both UTF-8 encoded. The version of oracle that we have here is 9.2.0.6
    Any suggestions in this matter will be greatly appreciated.
    Thanks,
    Uma

    I also experienced this problem and unfortunately this solution didn't work for me given that the tag you suggested was already on the XML file.

  • Error while updating database using jdbc receiver adapter

    Hi All,
    I am trying to update a single record using jdbc receiver adapter.
    This is my the message that is getting created..
    <?xml version="1.0" encoding="UTF-8" ?>
    - <ns0:Data xmlns:ns0="urn:Test">
    - <STATEMENT>
    - <TABLENAME ACTION="UPDATE_INSERT">
      <TABLE>ORDERS</TABLE>
    - <ACCESS>
      <OrderID>99999</OrderID>
      <CustomerID>VICTE</CustomerID>
      <EmployeeID>3</EmployeeID>
      <ShipAddress>VICTE</ShipAddress>
      </ACCESS>
    - <KEY>
      <OrderID compareOperation="EQ">99999</OrderID>
      <ShipAddress compareOperation="EQ">VICTE</ShipAddress>
      </KEY>
      </TABLENAME>
      </STATEMENT>
      </ns0:Data>
    But in Adapter Monitoring i am getting the following error..
    <i>Error while parsing or executing XML-SQL document: Error processing request in sax parser: Error when executing statement for table/stored proc. 'ORDERS' (structure 'STATEMENT'): java.sql.SQLException: [Microsoft][ODBC SQL Server Driver][SQL Server]Line 1: Incorrect syntax near 'VICTE'.</i>
    Regards,
    Rahul

    Rahul,
    > In this case i believe the interface has to be synch.
    > So what will the response message type be like..
    Not necessary. UPDATE can be asynch as well.
    Can you turn the trace on like pointed by Michal and then you can see the Query in the Audit Log of the adapter montioring. Try to execute the same query from your DB Client like TOAD and see what is the Syntax error you are getiing.!
    The problem looks like some field has some dataype / column name mismatch.
    Regards
    Bhavesh

  • Error when using jdbc:oracle:kprb:

    Hi folks!
    I'm having a hard time trying to solve this one, here's the situation:
    I've developed a java stored procedure and ulpoaded to the database using loadjava, which gave me no problems.
    Then i've set permissions for the procedure:
    BEGIN
    dbms_java.grant_permission(
              grantee => 'XMLADMIN',
              permission_type => 'SYS:java.io.FilePermission',
              permission_name => '/home/xmlgate/inbound/*',
              permission_action => 'read');
    dbms_java.grant_permission(
              grantee => 'XMLADMIN',
              permission_type => 'SYS:java.io.FilePermission',
              permission_name => '/home/xmlgate/outbound',
              permission_action => 'write');
    dbms_java.grant_permission(
              grantee => 'XMLADMIN',
              permission_type => 'SYS:java.lang.RuntimePermission',
              permission_name => 'setFactory',
              permission_action => '');
    dbms_java.grant_permission(
              grantee => 'XMLADMIN',
              permission_type => 'SYS:oracle.aurora.security.JServerPermission',
              permission_name => 'Debug',
              permission_action => '');
    dbms_java.grant_permission(
              grantee => 'XMLADMIN',
              permission_type => 'SYS:oracle.aurora.security.JServerPermission',
              permission_name => 'LoadClassInPackage.oracle.sql.*',
              permission_action => '');
    dbms_java.grant_permission(
              grantee => 'XMLADMIN',
              permission_type => 'SYS:oracle.aurora.security.JServerPermission',
              permission_name => 'LoadClassInPackage.oracle.jdbc.*',
              permission_action => '');
    COMMIT;
    END;
    But when i run the code inside the databse it always gives java.lang.NullPointerException.
    Here's the main class:
    package packupload;
    import java.sql.*;
    import java.util.*;
    import oracle.jdbc.driver.*;
    public class connection {
    // Return a JDBC Connection appropriately either outside or inside Oracle8i
    public static Connection getConnection() throws SQLException {
    String username = "xmladmin";
    String password = "xxxxxxxx";
    String thinConn = "jdbc:oracle:thin:@192.168.xxx.xxx:1521:www";
    String default8iConn = "jdbc:oracle:kprb:";
    Connection cn = null;
    try {
    // Register the JDBC Driver
    Driver d = new oracle.jdbc.driver.OracleDriver();
    //Connect with Native (kprb) Driver if inside Oracle8i
    if (insideOracle8i())
    cn = DriverManager.getConnection(default8iConn);
    else
    cn = DriverManager.getConnection(thinConn,username,password);
    cn.setAutoCommit(false);
    return cn;
    } catch (Exception e) { throw new SQLException("Error Loading JDBC Driver" + insideOracle8i());
    public static boolean insideOracle8i() {
    // If oracle.server.version is non-null, we're running in the database
    String ver = System.getProperty("oracle.server.version");
    return (ver != null && !ver.equals(""));
    Any help would be greatly aprecciated.
    Pedro Silva

    Hi..
    I did it but here i am wondering becoz my RFC connection SAPSLDAPI works fine
    But at transaction SLDCHECK..it throws an error like
    Calling function LCR_LIST_BUSINESS_SYSTEMS
    Retrieving data from the SLD server...
    Function call returned exception code     4
    => Check whether the SLD is running!
    Summary: Connection to SLD does not work
    => Check SLD function and configurations
    But the SLD URL pops up and opens wih put any error.in a same fashion,it happens in SXMB_ADM--> integration engine config.it says connections to SLD doesnot work
    any idea to verify
    Thanks
    Gopal

  • Message error ORA-00936 when using JDBC adapter

    Hi all,
    I'm using the folow scenario:
    RFC --> XI --> JDBC
    RFC <-- XI <-- JDBC (response)
    It's a SYNCHRONOUS interface.
    RFC call without COMMIT WORK:
    CALL FUNCTION 'Y_TESTE_NEI'
        DESTINATION 'RFC_XI'
    EXPORTING
       DATE_FROM       =  v_data_from
       DATE_TO         =  v_data_to
      TABLES
        t_return        = t_dados.
    I'm not using KEY in JDBC message, because for test I want to get entiry table, and I set the communication channel JDBC to KEY not mandatory.
    I'm not having mapping error, in SXMB_MONI I can see the two messages of interface, but both with SYSTEM ERROR.
    In JDBC adapter in Runtime Workbench apears the follow message error:
    com.sap.aii.af.ra.ms.api.DeliveryException: Error processing request in sax parser: Error when executing statement for table/stored proc. 't7_productionorder' (structure 't7_productionorder'): java.sql.SQLException: ORA-00936: missing expression
    And DUMP in function call in R/3: CALL_FUNCTION_REMOTE_ERROR
    Could anyone help me about this problem ?
    Thanks in advance.
    Regis Ferrato

    Hi Regis,
    I did the same scenario just now. The error you get is, you need to check whether the fields you are entering into the database have correct datatypes.
    Check out your database structure with your structure in XI, and also test in Message Mapping, to make sure you are sending correct values.
    In my case I was sending date like this '10-12-06', but my DB accepts only '101206'. So I removed the '-'. It was fine .
    The Dumping error is not due to your ABAP, due to the DB operation.
    Let me know Whether I am correct.
    Raj.

  • Jdbc-odbc java error using SQL adapter in o9iASWireless

    I've used the SQL adapter in the previous releases of wireless without any problem. Most of the time I would use it for all the wireless PLSQL applications in the Oracle database and it works very OK.
    I have also used it to connect with a SQLserver database to try out some queries. In this case I would use the standard JDBC/ODBC bridge driver from SUN.
    In release 2.0 I can't connect with this SQL Server database anymore.
    I've added a system DSN to the ODBC configuration of the Windows 2000 server. This will give access to a internal SQL server database via TCP. A password username is required.
    When I try to add a SQLservice in the service designer using the SQL adapter I will use the following parameters:
    JDBC connect string: JDBC:ODBC:<DSNNAME>
    JDBC driver: sun.jdbc.odbc.JdbcOdbcDriver
    un: <username>
    pw: password>
    Query (without ';'): select count(*) from <tablename>
    Minimum number of Database connections in the pool 5
    Maximum number of Database connections in the pool 100
    Increment size for the connection pool 1
    Idle Timeout (in minutes) 30
    Now I get the following error:
    2/8/03 2:27:59 PM ERROR : [ApplicationServerThread] webtool.common.PtgErrorLog.outputError(PtgErrorLog.java:28)
    oracle.cabo.servlet.event.PageEventException: java.lang.ClassCastException: sun.jdbc.odbc.JdbcOdbcConnection,page=Page[name=designer/MasterServiceInitCreate],event=PageEvent[name=goto,source=wizardNav,fromPage=designer/MasterServiceInitCreate,JDBC_DRIVER=sun.jdbc.odbc.JdbcOdbcDriver,JDBC_CONNECT_STRING=jdbc:odbc:<DSNNAME>,CONNPOOL_INC=1,CONNPOOL_MIN=5,CONNPOOL_IDLETIMEOUT=30,USERNAME=<USERNAME>,value=4,SQLTYPE=QUERY,CONNPOOL_MAX=100,STATEMENT=select count(*) from bedrijven,PASSWORD=<PASSWORD>],rootCause=oracle.panama.adapter.AdapterException: java.lang.ClassCastException: sun.jdbc.odbc.JdbcOdbcConnection
    at oracle.cabo.servlet.event.BasePageFlowEngine.handleRequest(Unknown Source)
    at oracle.cabo.servlet.AbstractPageBroker.handleRequest(Unknown Source)
    at oracle.panama.webtool.common.PtgPageBroker.handleRequest(PtgPageBroker.java:152)
    at oracle.cabo.servlet.PageBrokerHandler.handleRequest(Unknown Source)
    at oracle.cabo.servlet.BajaServlet.doGet(Unknown Source)
    at oracle.cabo.servlet.BajaServlet.doPost(Unknown Source)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:211)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:309)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:336)
    at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:633)
    at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:235)
    at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:695)
    at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:248)
    at com.evermind.util.ThreadPoolThread.run(ThreadPoolThread.java:62)
    I got the error 'java.lang.ClassCastException: sun.jdbc.odbc.JdbcOdbcConnection' in my log and tried to find out the meaning of this error at java.sun.com. It's stil not clear what exactly causes the error but it looks like a data formatting error.
    java.lang.ClassCastException
    (Thrown to indicate that the code has attempted to cast an object to a subclass of which it is not an instance. For example, the following code generates a ClassCastException:
    Object x = new Integer(0);
    System.out.println((String)x); )
    Is it just a data formatting problem or has it something to do with the JDBC/ODBC driver version of the JDK from the appliction server release 2.0.
    I remember that I was always able to connect to the SQL server database with previous releases also with a count query. I've also used JDK 1.3.1 with o9iAS release 1.0.2.1.
    Any suggestions for a solution?
    Thanks in advance for your help.

    try this link:
    http://community.eapps.com/showthread.php?p=8

Maybe you are looking for

  • How to connect external speakers to new macbook

    Have a new 15" macbook pro with retina display and when I plug my bose computer speakers into the headphone jack the do not work; no sound. the only connection the bose speakers have is a male jack that fitss the headphone jack on the retina MBP perf

  • Adapter specific message attribute in pi 7.1

    Hi experts,                 Can you give me information for Adapter specific message attribute in pi 7.1 and i have searched in forums but i didnt get right information. Thanks

  • Why does my camera take foggy pics in nighttime/dark environments?

    during the day, my camera works fine.  at night, the pics come out foggy.  is it defected?

  • CASE in the FROM clause ?

    Hello, I need to query a table which (unfortunately) its name is depended on the date. (Year, Month, and every 15 days (Fortnight FN) My tables is STAT_VEHICLES_YY_MM and if it refers to the fortnight report it becomes STAT_VEHICLES_YY_MM15 For examp

  • File Permissions in Solaris 10

    Hi, I have a problem with permissions on a shell script file. Although the file permissions are "-rwxrwxr-x" anyone else in the group, apart from file owner can't execute this file. Regards,