Getting error in JDBC lookup

Hi ,
I am developing a scenario file to file with the help of JDBC lookup. Message successfully process in MONI but when I check message payload in Technical Routing desired result not appears it will show some text like
"The returned object is not of type LinkedList: com.sap.aii.adapter.xi.ms.XIMessage" please suggest why this error occurred
Regards,
Amit Shivhare

Hi Satish,
in JAVA UDF i have put wrong CC. now i have put rec. JDBC channel in UDF  but not getting error during mapping testing
Cannot produce target element /ns0:MT_JDBCLOOKUP_REC/row/UPDATE_USER. Check xml instance is valid for source xsd and target-field mapping fulfills requirements of target xsd
my database table structure is
DUMMY_KEY                      NOT NULL VARCHAR2(200)                                                                               
INTEGRATIONNAME                NOT NULL VARCHAR2(60)                                                                               
DEPLOYMENTNAME                 NOT NULL VARCHAR2(49)                                                                               
COMPONENTINSTANCE1             NOT NULL VARCHAR2(40)                                                                               
COMPONENTINSTANCE2             NOT NULL VARCHAR2(40)                                                                               
MAXMEMORY                      NOT NULL NUMBER(4)                                                                               
MAXCPU                         NOT NULL NUMBER(3)                                                                               
FT_LB                          NOT NULL VARCHAR2(2)                                                                               
HMA1                           NOT NULL VARCHAR2(200)                                                                               
HMA2                           NOT NULL VARCHAR2(200)                                                                               
ACTIVEFLAG                     NOT NULL VARCHAR2(5)                                                                               
UPDATE_USER                             VARCHAR2(50)                                                                               
UPDATE_DATE                    NOT NULL TIMESTAMP(6)
and UDF
   //write your code here
//write your code here
String Query = " ";
Channel channel = null;
DataBaseAccessor accessor = null;
DataBaseResult resultSet = null;
// Build the Query String
Query = "Select UPDATE_USER  from  CMS_PAR_MONITOR where INTEGRATIONNAME = '" + UName[0] + " ' ";
try{
//Determine a channel, as created in the Configuration
channel = LookupService.getChannel("Ser_Test","CC_JDBC_REC_JDBCLookUP");
//Get a system accessor for the channel. As the call is being made to an DB, an DatabaseAccessor is obtained.
accessor = LookupService.getDataBaseAccessor(channel);
//Execute Query and get the values in resultset
resultSet = accessor.execute(Query);
for(Iterator rows = resultSet.getRows();rows.hasNext();){
Map rowMap = (Map)rows.next();
result.addValue((String)rowMap.get("URole"));
catch(Exception ex){
result.addValue(ex.getMessage());
finally{
try{
if (accessor!=null) accessor.close();
catch(Exception e){
result.addValue(e.getMessage());
regards, amit

Similar Messages

  • Reg:Error in JDBC Lookup Table

    Hi All,
    My actual requirement is,A project ID is being triggered to PI which will pull the data from the database(SQL Server 2000) ,from different tables and it has to post to file.Receiver side I will be using the File Adapter.
    For this I am using JDBC Lookup table through an User Defined function.
    // code
    String Query = " ";
    Channel channel = null;
    DataBaseAccessor accessor = null;
    DataBaseResult resultSet =  null;
    //Build the Query String
      Query =  "Select proj_id, proj_short_name from PROJECT where proj_id = '"proj_id[0]"'";
    try{
    channel = LookupService.getChannel("bs_test" ,"cc_test");
    //Get a system accessor for the channel. As the call is being made //to an DB, an DatabaseAccessor is obtained.
    accessor = LookupService.getDataBaseAccessor(channel);
    //Execute Query and get the values in output
    resultSet = accessor.execute(Query);
    Iterator rows = null;
    rows = resultSet.getRows();
    while(rows.hasNext())
       Map rowMap = (Map)rows.next();
    //  String  proj_id = rowMap.get("proj_id");
    //  String project_name = rowMap.get("proj_short_name");
    result.addValue((String)rowMap.get("proj_id "));
    result.addValue((String)rowMap.get("project_short_name "));
    //result.addValue(proj_id);
    //result.addValue(project_short_name);
    catch(Exception ex)
    result.addValue(ex.getMessage());
    finally{
    try{
    if (accessor!=null) accessor.close();
    catch(Exception e)
    result.addValue(e.getMessage());
       //@@end
    While testing in test tab of Message Mapping,I am getting the value as 'NULL' for the project id  and am not able to see the other field.
    Please suggest me in this.
    Thanks in Advance,
    Lavanya.B

    Hi All,
    My actual requirement is,A project ID is being triggered to PI which will pull the data from the database(SQL Server 2000) ,from different tables and it has to post to file.Receiver side I will be using the File Adapter.
    For this I am using JDBC Lookup table through an User Defined function.
    // code
    String Query = " ";
    Channel channel = null;
    DataBaseAccessor accessor = null;
    DataBaseResult resultSet = null;
    //Build the Query String
    Query = "Select proj_id, proj_short_name from PROJECT where proj_id = '"proj_id[0]"'";
    try{
    channel = LookupService.getChannel("bs_test" ,"cc_test");
    //Get a system accessor for the channel. As the call is being made //to an DB, an DatabaseAccessor is obtained.
    accessor = LookupService.getDataBaseAccessor(channel);
    //Execute Query and get the values in output
    resultSet = accessor.execute(Query);
    Iterator rows = null;
    rows = resultSet.getRows();
    while(rows.hasNext())
    Map rowMap = (Map)rows.next();
    result.addValue((String)rowMap.get("proj_id "));
    result.addValue((String)rowMap.get("project_short_name "));
    catch(Exception ex)
    result.addValue(ex.getMessage());
    finally{
    try{
    if (accessor!=null) accessor.close();
    catch(Exception e)
    result.addValue(e.getMessage());
    //@@end
    While testing in test tab of Message Mapping,I am getting the value as 'NULL' for the project id and am not able to see the other field value.
    Output:
    <?xml version="1.0" encoding="UTF-8" ?>
    <ns0:mt_test_recv xmlns:ns0="http://xxxx">
    <proj_id>null</proj_id>
    <proj_short_name />
    </ns0:mt_test_recv>
    Please suggest me in this.
    Thanks in Advance,
    Lavanya.B
    Edited by: Lavanya Balanandham on Dec 5, 2008 6:51 AM

  • Getting Error in JDBC

    Hello,
    got same error befor (look Web Service and JDBC), but can not understand this time.
    Sending this JDBC request :
      <?xml version="1.0" encoding="UTF-8" ?>
    - <ns0:MT_User_CMDB_request xmlns:ns0="http://com.test">
    - <STATEMENT>
    - <TABLENAME action="SELECT">
      <TABLE>tablename</TABLE>
      <access>
      <lastname />
      <firstname />
      <ccresp />
      </access>
      <key>
       <ccresp compareOperation="LIKE">%9313%</ccresp>
      </key>
      </TABLENAME>
      </STATEMENT>
      </ns0:MT_User_CMDB_request>
    With following error:
    <SAP:AdditionalText>com.sap.aii.af.ra.ms.api.DeliveryException: Error processing request in sax parser: Error when executing statement for table/stored proc. 'dbo.exp_isos_Usr' (structure 'STATEMENT'): com.microsoft.sqlserver.jdbc.SQLServerException: Incorrect syntax near '9313'.</SAP:AdditionalText>
    Normally this happens, if the field ccresp would be of type integer and I try to use a like-statement. But this field has the type varchar and with a database tool I'm able to perform a statement like this:
    select * from tablename
    where ccresp like '9313'
    But this takes about 2 Minutes. Too long for XI? But then the error message is confusing me.
    thanks
    chris

    Hey,
    the problem is the wildcard %. This seems to work only without brackets.
    Once again. This is created by XI:
    WHERE (ccresp LIKE %9314%)  -> does not work
    This works in my SQL-Tool, but just without %
    WHERE (ccresp LIKE 9314)
    The only way the wildcard is useable in the SQL-Tool is following:
    WHERE ccresp LIKE %9314%
    But I don't know if this is the problem within XI.
    The query has to lookup 18.000 entries with a wildcard. Don't know if it is to slow for this huge data. Can I change the time to wait for a JDBC action?
    greets
    chris

  • "Error establishing socket" error on JDBC Receiver Channel.

    Dear All,
    Scenario: Soap to JDBC.
    I m getting error on JDBC Receiver Channel. messages are processed succesfully on ABAP Stack and receiver channel is on below error:
    ERROR : Message processing failed. Cause: com.sap.aii.af.ra.ms.api.RecoverableException: 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://156.5.202.194:3312;DatabaseName=ODW': SQLException: [Microsoft][SQLServer 2000 Driver for JDBC]Error establishing socket.
    Note: i already tested another interface with this same IP and it was fine with different port.
    jdbc:microsoft:sqlserver://IP:PORT;DatabaseName=Name
    Regards,
    Manikandan

    and it was fine with different port
    socket exception is (always) related to port....did you check with the network team about this new Port?

  • Error with Mapping Lookup API using JDBC

    All,
    I have an interface that uses a JDBC lookup user defined function.  Occassionally we get the following message:
    <i>Problem when calling an adapter by using communication channel myJDBCLookup (Party: , Service: myJDBCdbase, Object ID: 0cdb888150ee36638cbfb100ff2e7161) XI AF API call failed. Module exception: 'Error ACK handling failed: java.lang.NullPointerException'. Cause Exception: (No information available)</i>
    The only way I can duplicate this error is if I deactivate the myJDBCLookup communication channel and re-run the interface.  In this case I get the same exact error.  I know the commchannels were active when I ran and got the errors.  Typically what I do is just restart the erred message and it runs fine.
    I'm thinking I may be running into a timeout problem on the Oracle end of my call and XI is "timing out" or something like that.
    My questions are:
    1)  whether or not XI has some timeout setting that I could increase that would hopefully mitigate this issue (I'm not an XI admin)?
    2) would using a different Conflict Resolution (JDBC adapter config) or Number of Retries of Database Transaction on SQL error (JDBC Advanced adapter config) setting help?
    3) Is there something altogether different I should be looking at?

    Hi,
    This blog may help u on to optimize the lookup-
    /people/sap.user72/blog/2005/12/06/optimizing-lookups-in-xi
    /people/sap.user72/blog/2005/10/15/jdbc-adapter-execution-mode-chained-or-unchained
    ALso check the Adapter Engine about time out parameters-
    hope this helps,
    Regards,
    moorthy

  • Getting error when i am giving the server name in JDBC

    Hi All,
    When i am trying to connect to JDBC then i am getting the error in Servername
    {color:#3366ff}********************INPUT OF Testing.java************************
    package com.fidelity.ereview.utils;{color}
    {color:#3366ff}import java.io.*;
    import java.sql.*;{color}
    {color:#3366ff}public class Testing {
    public static void main(String[] args) throws SQLException {{color}
    {color:#3366ff} Connection con;
    SQLServerDataSource ds = new SQLServerDataSource();
    ds.setServerName("01HW059726\SQL2K5"); {color:#ff0000}//here getting error{color}
    ds.setPortNumber(1433);
    ds.setUser("eReview");
    ds.setPassword("Password123");
    ds.setDatabaseName("migration");
    con = ds.getConnection();
    if (con != null) {
    System.out.println("Successfully connected");
    else
    System.out.println("Not Successfully connected");
    Kindly anybody tell me that how shell i give the server name (My server name is :01HW059726\SQL2K5) in the
    ds.setServerName???{color}

    Replace \ in server name with \\ like
    01HW059726*{color:#ff0000}\\{color}*SQL2K5

  • Hello friends while doing file to jdbc senario I am getting error

    Hello All,
    while doing file to jdbc senario in sap xi getting error in the receiver communication channel..error is
    2007-07-17 04:11:00 Error SAPEngine_Application_Thread[impl:3]_35 1184625660906 Attempt to establish database connection failed with SQL error java.sql.SQLException: [Microsoft][SQLServer 2000 Driver for JDBC]Error establishing socket.
    2007-07-17 04:11:00 Error SAPEngine_Application_Thread[impl:3]_35 1184625660921 Exception caught by adapter framework: JDBC Adapter Receiver Channel RA: Database connection could not be established
    2007-07-17 04:11:00 Error SAPEngine_Application_Thread[impl:3]_35 1184625660921 Delivery of the message to the application using connection AFW failed, due to: JDBC Adapter Receiver Channel RA: Database connection could not be established.
    I am weighting for ur replay...
    Yours,
    Sateesh.j

    Hi,
    This might help you...go through the document..
    http://help.sap.com/saphelp_nw70/helpdata/en/1d/756b3c0d592c7fe10000000a11405a/frameset.htm
    vasanth

  • JDBC Lookup in PI 7.1 - SELECT ? FROM DUAL and Connection timed out

    Hi,
    We have a scenarios (Idoc to JMS) with JDBC lookup. We have used graphical JDBC lookup functionality.
    We are reading country names for a given country code from SAP in an external database table. The query is so simple. That  should not take much time
    Now the actual issues is,
    When we are executing the scenario, its taking quite a long time. Almost 6 minutes to excute a mapping. Which causing high performance issue in the Porduction.
    We started the inviestigation about found some interesting stuff. Here we have used Willy Introscope for the investigation.
    1. First few messages are taking quite a long time. LIke 6 minutes per messages. As i can see in the log i am getting below error in Willy,
    I dont know why PI is executing below queury apart from real secelt query to fetch the country name. I am getting below error: Error Message: Backends|ABCD2 mydatabase01-1526 (Oracle DB)|SQL|Dynamic|Query|SELECT ? FROM DUAL: java.sql.SQLException: Io exception: Connection timed out
    2. After couple of messages, interface works very normal. I mean rest of the messages works pretty fine.
    Please let me know if you have any idea about this error. What could be the problem for the issue.
    Thank you in advnace.
    Best Regards,
    Prasad.

    Did you check how many SQL requests were executed per one message ? Do you have a log of these SQL requests ?
    I assume that the country table is quite small, so that lookup should not be an issue.
    About this:
    >Message: Backends|ABCD2 mydatabase01-1526 (Oracle DB)|SQL|Dynamic|Query|SELECT ? FROM DUAL: >java.sql.SQLException: Io exception: Connection timed out
    1. I only know SELECT * FROM DUAL, not SELECT ? FROM DUAL. Better use the former
    2. the exception means that the database server can not be reached => check your network configuration
    So I assume that there is a network (performance) problem between PI and this Oracle server. Or the Oracle Server is so overloaded that it has (sometimes) problems in processing new requests.
    CSY
    Edited by: Christian Sy on Mar 9, 2010 10:17 AM

  • JDBC Lookup in message mapping

    Hi Folks,
    in a message-mapping i use a jdbc lookup.
    i get this error, can anybody help me ?
    Put value [Plain exception:Problem when calling an adapter by using communication channel JDBC_MKA_Receiver_Lookup (Party: , Service: R3EREDATA, Object ID: 3ab59ba811163c5697dbcd40fb0c4957) Check whether the communication channel exists in the Integration Directory; also check the cache notifications for the instance Integration Server (central Adapter-Engine) Channel object with Id Channel:3ab59ba811163c5697dbcd40fb0c4957 not available in CPA Cache.
    thanks for your help

    Hi Folks,
    now i get a new error.
    it will be nice when you could answered me, thanks
    Put value [Exception during processing the payload.Problem when calling an adapter by using communication channel JDBC_MKA_Receiver_Lookup (Party: , Service: BS_EPS, Object ID: 866ef440ca5b3cefb1381267f5693591) XI AF API call failed. Module exception: (No information available). Cause Exception: 'JDBC Adapter configuration not initialized: null'. com.sap.aii.mapping.lookup.LookupException: Problem when calling an adapter by using communication channel JDBC_MKA_Receiver_Lookup (Party: , Service: BS_EPS, Object ID: 866ef440ca5b3cefb1381267f5693591) XI AF API call failed. Module exception: (No information available). Cause Exception: 'JDBC Adapter configuration not initialized: null'. at java.lang.Throwable.<init>(Throwable.java:194) at java.lang.Exception.<init>(Exception.java:41) at com.sap.aii.mapping.api.StreamTransformationException.<init>(StreamTransformationException.java:29) at com.sap.aii.mapping.lookup.LookupException.<init>(LookupException.java:72) at com.sap.aii.ibrun.server.lookup.AdapterProxyLocal.execute(AdapterProxyLocal.java:131) at com.sap.aii.ibrun.server.lookup.SystemAccessorInternal.execute(SystemAccessorInternal.java:68) at com.sap.aii.ibrun.server.lookup.SystemAccessorHmiServer.process(SystemAccessorHmiServer.java:149) at com.sap.aii.ibrun.server.lookup.SystemAccessorHmiServer.process(SystemAccessorHmiServer.java:77) at com.sap.aii.utilxi.hmis.server.HmisServiceImpl.invokeMethod(HmisServiceImpl.java:169) at com.sap.aii.utilxi.hmis.server.HmisServer.process(HmisServer.java:178) at com.sap.aii.utilxi.hmis.web.HmisServletImpl.processRequestByHmiServer(HmisServletImpl.java:296) at com.sap.aii.utilxi.hmis.web.HmisServletImpl.processRequestByHmiServer(HmisServletImpl.java:211) at com.sap.aii.utilxi.hmis.web.workers.HmisInternalClient.doWork(HmisInternalClient.java:70) at com.sap.aii.utilxi.hmis.web.HmisServletImpl.doWork(HmisServletImpl.java:496) at com.sap.aii.utilxi.hmis.web.HmisServletImpl.doPost(HmisServletImpl.java:634) at javax.servlet.http.HttpServlet.service(HttpServlet.java:733) at javax.servlet.http.HttpServlet.service(HttpServlet.java:848) at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.runServlet(HttpHandlerImpl.java:332) at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.handleRequest(HttpHandlerImpl.java:0) at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:387) at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:336) at com.sap.engine.services.httpserver.server.RequestAnalizer.invokeWebContainer(RequestAnalizer.java:868) at com.sap.engine.services.httpserver.server.RequestAnalizer.handle(RequestAnalizer.java:250) at com.sap.engine.services.httpserver.server.Client.handle(Client.java:0) at com.sap.engine.services.httpserver.server.Processor.request(Processor.java:92) at com.sap.engine.core.service630.context.cluster.session.ApplicationSessionMessageListener.process(ApplicationSessionMessageListener.java:30) at com.sap.engine.core.cluster.impl6.session.MessageRunner.run(MessageRunner.java:35) at com.sap.engine.core.thread.impl3.ActionObject.run(ActionObject.java:37) at com.sap.engine.core.thread.impl3.SingleThread.execute(SingleThread.java:99) at com.sap.engine.core.thread.impl3.SingleThread.run(SingleThread.java:170) Root Cause: com.sap.aii.af.service.api.AFException: XI AF API call failed. Module exception: (No information available). Cause Exception: 'JDBC Adapter configuration not initialized: null'. at java.lang.Throwable.<init>(Throwable.java:194) at java.lang.Exception.<init>(Exception.java:41) at com.sap.aii.af.service.api.AFException.<init>(AFException.java:88) at com.sap.aii.af.service.api.AdapterAccess.sendMsg(AdapterAccess.java:214) at com.sap.aii.af.service.api.AdapterAccess.execute(AdapterAccess.java:283) at com.sap.aii.ibrun.server.lookup.AdapterProxyLocal.execute(AdapterProxyLocal.java:123) at com.sap.aii.ibrun.server.lookup.SystemAccessorInternal.execute(SystemAccessorInternal.java:68) at com.sap.aii.ibrun.server.lookup.SystemAccessorHmiServer.process(SystemAccessorHmiServer.java:149) at com.sap.aii.ibrun.server.lookup.SystemAccessorHmiServer.process(SystemAccessorHmiServer.java:77) at com.sap.aii.utilxi.hmis.server.HmisServiceImpl.invokeMethod(HmisServiceImpl.java:169) at com.sap.aii.utilxi.hmis.server.HmisServer.process(HmisServer.java:178) at com.sap.aii.utilxi.hmis.web.HmisServletImpl.processRequestByHmiServer(HmisServletImpl.java:296) at com.sap.aii.utilxi.hmis.web.HmisServletImpl.processRequestByHmiServer(HmisServletImpl.java:211) at com.sap.aii.utilxi.hmis.web.workers.HmisInternalClient.doWork(HmisInternalClient.java:70) at com.sap.aii.utilxi.hmis.web.HmisServletImpl.doWork(HmisServletImpl.java:496) at com.sap.aii.utilxi.hmis.web.HmisServletImpl.doPost(HmisServletImpl.java:634) at javax.servlet.http.HttpServlet.service(HttpServlet.java:733) at javax.servlet.http.HttpServlet.service(HttpServlet.java:848) at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.runServlet(HttpHandlerImpl.java:332) at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.handleRequest(HttpHandlerImpl.java:0) at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:387) at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:336) at com.sap.engine.services.httpserver.server.RequestAnalizer.invokeWebContainer(RequestAnalizer.java:868) at com.sap.engine.services.httpserver.server.RequestAnalizer.handle(RequestAnalizer.java:250) at com.sap.engine.services.httpserver.server.Client.handle(Client.java:0) at com.sap.engine.services.httpserver.server.Processor.request(Processor.java:92) at com.sap.engine.core.service630.context.cluster.session.ApplicationSessionMessageListener.process(ApplicationSessionMessageListener.java:30) at com.sap.engine.core.cluster.impl6.session.MessageRunner.run(MessageRunner.java:35) at com.sap.engine.core.thread.impl3.ActionObject.run(ActionObject.java:37) at com.sap.engine.core.thread.impl3.SingleThread.execute(SingleThread.java:99) at com.sap.engine.core.thread.impl3.SingleThread.run(SingleThread.java:170) ]

  • Can not save JDBC lookup in mapping (PI 7.1 SP07)

    Hi All,
    When I try to save my JDBC lookup, I get error while executing save - 'Binding rec0 is not found in the brick. Check update method'
    I made Re-initialization in Java Web Start Administration, but problem did not resolve.
    Regards,
    Andrey.

    Hi
    We have the same error. Did you find a solution?
    Cheers
    Philippe

  • JDBC Scenario with JDBC Lookup and Updates

    Dear Experts,
    I am working on a JDBC receiver scenario.
    In this scenario, we are also using JDBC lookup to check the maximum EntyNumber which is a primary key. We are manually incrementing this primary key by one and inserting the record into the database.
    Both JDBC lookup and JDBC Insert are two differnt tasks. Thus when we send multiple IDOC's concurrently JDBC lookup fetches old values and when we try to insert the record if gives error of PRIMARY KEY VIOLATION.
    For example, consider the below scenario,
    Assume that there are already 10 records in the database.
    1. Two IDOCs No 1 and 2 sent from SAP system at the same time.
    2. Now, during the mapping of 1st IDOC we did a lookup and found that latest entry number in the database table is 10 and we mapped the entry number to 11 ( 10+1, i.e. next record )
    3. Before updating this record in the database, second IDOC triggered. During JDBC lookup of the sceond IDOC, we got the same entry as the earlier record has yet to be updated.
    4. During JDBC call we get the SQL error that "Primary Key Violation" because both the records have same primary key as "11".
    Kindly share your ideas.
    (SAP system is not sending the IDOC's in any certain order and we need a solution in PI itself. )
    - Shri

    >>> I am actually sending the primary key value to more than one table as a foreign key. I am looking for some solution
    If you are passing primary key value to many tables then jdbc lookup would not be solution. Use stored procedure.
    Refer this link for data type creation for stored procedure
    http://help.sap.com/saphelp_nw04/helpdata/en/2e/96fd3f2d14e869e10000000a155106/content.htm

  • 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

  • Error While RFC Lookups

    Hi
    I am performing RFC Lookups in my java code and when ever I am testing this java mapping code from Operation Mapping Test Tab, I am getting following error.
    Error while lookup Connection to system RUNTIME using application RUNTIME lost. Detailed information: Error accessing "http://pmichsappid16.app.pmi:8016/run/system/int?container=web" with user "PIREP_PID". Response code is 500, response message is "Internal Server Error"
    Error while closing accessor Technical error when calling an adapter remotely. The HMI method with the ID close was called with an incorrect session status. The system accessor object is missing.
    Could you please tell why I am getting this error.
    Note:1) When I am testing it end to end my code is working fine with out any errors.This happens only when I am testing it from operational mapping test tab.Previously I am able to execute my code from operational mapping test tab also.
    2) I am also closing accessor object in proper manner.
    !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!PI 7.1 Strange behaviour!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

    Hi Prasanna,
                          I was facing the same error while testing JDBC lookup in the operational mapping. The problem was that while testing in the operation mapping or message mapping tab you need to provide the RFC channel created manually in the parameter. While end to end testing this is binded in the integration directory object,
    I provided the JDBC channel created for lookup manually in the operation mapping and i got the result.
    Hope this will help.
    Thanks
    Ajay Garg

  • How to use JDBC Lookup in PI 7.1 ?

    Hi,
    Please advise how to use JDBC lookup in message mapping PI 7.1 ? any reference link / document  ?
    I have followed this step below :
    1. Create the external definition for the database table.
    2. Use the external definition (table) in message mapping JDBC Lookup.
    But the target still "Yellow colour" meanint the mapping hasnot completed yet ? why ? and when i double click the JDBC lookup
    there some error message
    "No suitable parameter found; define new parameter of type 'Channel' first"
    Please advise.
    Thank You and Best Regards
    Fernand

    Hi Fernand,
    JDBC Lookup can be done in PI 7.1 using below mentioned steps :
    1) Create a communication channel between PI and the database to connect to database.
    2) Import the table data as External Definition.
    3) In message mapping where this lookup is to be used select JDBC Lookup under Conversions and map
    4) Double Click on JDBC Lookup
    5) Select parameter and a database table (imported as the external definition). All the elements of the table will appear in the middle column. Select and move the input parameters to the left side column and the output parameters to the right side column. Click OK. 
    6) Under message mapping go to signature tab and define the parameter as channel and category as JDBC Adapter Type. 
    7) Under Operation mapping define the parameter & associate it with parameter defined in Message Mapping.
    Thanks
    Amit

  • Getting Error while running Sample Tutorial...

    Hi,
    I am working on samples---tutorials---Select All.
    I created "Movies" tables in our test database.I modified oc4j-ra.xml. When i modified partner link to point to my own database i can see "SelectAllServices.wsdl" got changed. I mean it added "1" to all "movies" string. I manually modified wsddl and deployed.
    But when i run the process i am getting error like
    <2006-02-13 11:28:30,888> <ERROR> <default.collaxa.cube.ws> <Database Adapter::O
    utbound> <oracle.tip.adapter.db.DBInteraction executeOutboundRead> unable to exe
    cute the NamedQuery: SelectAll.Movies.SelectAllServiceSelect
    06/02/13 11:28:30 java.lang.NullPointerException
    06/02/13 11:28:30 at oracle.tip.adapter.db.exceptions.DBResourceException.
    isRetriable(DBResourceException.java:114)
    06/02/13 11:28:30 at oracle.tip.adapter.db.exceptions.DBResourceException.
    outboundReadException(DBResourceException.java:337)
    06/02/13 11:28:30 at oracle.tip.adapter.db.DBInteraction.executeOutboundRe
    ad(DBInteraction.java:274)
    06/02/13 11:28:30 at oracle.tip.adapter.db.DBInteraction.execute(DBInterac
    tion.java:141)
    06/02/13 11:28:30 at oracle.tip.adapter.fw.wsif.jca.WSIFOperation_JCA.exec
    uteRequestResponseOperation(WSIFOperation_JCA.java:469)
    06/02/13 11:28:30 at com.collaxa.cube.ws.WSIFInvocationHandler.invoke(WSIF
    InvocationHandler.java:445)
    06/02/13 11:28:30 at com.collaxa.cube.ws.WSInvocationManager.invoke2(WSInv
    ocationManager.java:310)
    06/02/13 11:28:30 at com.collaxa.cube.ws.WSInvocationManager.invoke(WSInvo
    cationManager.java:184)
    06/02/13 11:28:30 at com.collaxa.cube.engine.ext.wmp.BPELInvokeWMP.__invok
    e(BPELInvokeWMP.java:601)
    06/02/13 11:28:30 at com.collaxa.cube.engine.ext.wmp.BPELInvokeWMP.__execu
    teStatements(BPELInvokeWMP.java:316)
    06/02/13 11:28:30 at com.collaxa.cube.engine.ext.wmp.BPELActivityWMP.perfo
    rm(BPELActivityWMP.java:185)
    06/02/13 11:28:30 at com.collaxa.cube.engine.CubeEngine.performActivity(Cu
    beEngine.java:3398)
    06/02/13 11:28:30 at com.collaxa.cube.engine.CubeEngine.handleWorkItem(Cub
    eEngine.java:1905)
    06/02/13 11:28:30 at com.collaxa.cube.engine.dispatch.message.instance.Per
    formMessageHandler.handleLocal(PerformMessageHandler.java:75)
    06/02/13 11:28:30 at com.collaxa.cube.engine.dispatch.DispatchHelper.handl
    eLocalMessage(DispatchHelper.java:100)
    06/02/13 11:28:30 at com.collaxa.cube.engine.dispatch.DispatchHelper.sendM
    emory(DispatchHelper.java:185)
    06/02/13 11:28:30 at com.collaxa.cube.engine.CubeEngine.endRequest(CubeEng
    ine.java:5410)
    06/02/13 11:28:30 at com.collaxa.cube.engine.CubeEngine.createAndInvoke(Cu
    beEngine.java:1300)
    06/02/13 11:28:30 at com.collaxa.cube.engine.ejb.impl.CubeEngineBean.creat
    eAndInvoke(CubeEngineBean.java:117)
    06/02/13 11:28:30 at com.collaxa.cube.engine.ejb.impl.CubeEngineBean.syncC
    reateAndInvoke(CubeEngineBean.java:146)
    06/02/13 11:28:30 at ICubeEngineLocalBean_StatelessSessionBeanWrapper0.syn
    cCreateAndInvoke(ICubeEngineLocalBean_StatelessSessionBeanWrapper0.java:486)
    06/02/13 11:28:30 at com.collaxa.cube.engine.delivery.DeliveryHandler.init
    ialRequestAnyType(DeliveryHandler.java:493)
    06/02/13 11:28:30 at com.collaxa.cube.engine.delivery.DeliveryHandler.init
    ialRequest(DeliveryHandler.java:426)
    06/02/13 11:28:30 at com.collaxa.cube.engine.delivery.DeliveryHandler.requ
    est(DeliveryHandler.java:133)
    06/02/13 11:28:30 at com.collaxa.cube.ejb.impl.DeliveryBean.request(Delive
    ryBean.java:97)
    06/02/13 11:28:30 at IDeliveryBean_StatelessSessionBeanWrapper22.request(I
    DeliveryBean_StatelessSessionBeanWrapper22.java:288)
    06/02/13 11:28:30 at com.oracle.bpel.client.delivery.DeliveryService.reque
    st(DeliveryService.java:101)
    06/02/13 11:28:30 at com.oracle.bpel.client.delivery.DeliveryService.reque
    st(DeliveryService.java:65)
    06/02/13 11:28:30 at ngDoInitiate.jspService(_ngDoInitiate.java:253)
    06/02/13 11:28:30 at com.orionserver.http.OrionHttpJspPage.service(OrionHt
    tpJspPage.java:56)
    06/02/13 11:28:30 at oracle.jsp.runtimev2.JspPageTable.service(JspPageTabl
    e.java:347)
    06/02/13 11:28:30 at oracle.jsp.runtimev2.JspServlet.internalService(JspSe
    rvlet.java:509)
    06/02/13 11:28:30 at oracle.jsp.runtimev2.JspServlet.service(JspServlet.ja
    va:413)
    06/02/13 11:28:30 at javax.servlet.http.HttpServlet.service(HttpServlet.ja
    va:853)
    06/02/13 11:28:30 at com.evermind.server.http.ServletRequestDispatcher.inv
    oke(ServletRequestDispatcher.java:810)
    06/02/13 11:28:30 at com.evermind.server.http.ServletRequestDispatcher.inc
    lude(ServletRequestDispatcher.java:121)
    06/02/13 11:28:30 at com.evermind.server.http.EvermindPageContext.include(
    EvermindPageContext.java:267)
    06/02/13 11:28:30 at displayProcess.jspService(_displayProcess.java:700)
    06/02/13 11:28:30 at com.orionserver.http.OrionHttpJspPage.service(OrionHt
    tpJspPage.java:56)
    06/02/13 11:28:30 at oracle.jsp.runtimev2.JspPageTable.service(JspPageTabl
    e.java:347)
    06/02/13 11:28:30 at oracle.jsp.runtimev2.JspServlet.internalService(JspSe
    rvlet.java:509)
    06/02/13 11:28:30 at oracle.jsp.runtimev2.JspServlet.service(JspServlet.ja
    va:413)
    06/02/13 11:28:30 at javax.servlet.http.HttpServlet.service(HttpServlet.ja
    va:853)
    06/02/13 11:28:30 at com.evermind.server.http.ServletRequestDispatcher.inv
    oke(ServletRequestDispatcher.java:810)
    06/02/13 11:28:30 at com.evermind.server.http.ServletRequestDispatcher.for
    wardInternal(ServletRequestDispatcher.java:322)
    06/02/13 11:28:30 at com.evermind.server.http.ServletRequestDispatcher.for
    ward(ServletRequestDispatcher.java:220)
    06/02/13 11:28:30 at com.collaxa.cube.fe.DomainFilter.doFilter(DomainFilte
    r.java:152)
    06/02/13 11:28:30 at com.evermind.server.http.ServletRequestDispatcher.inv
    oke(ServletRequestDispatcher.java:649)
    06/02/13 11:28:30 at com.evermind.server.http.ServletRequestDispatcher.for
    wardInternal(ServletRequestDispatcher.java:322)
    06/02/13 11:28:30 at com.evermind.server.http.HttpRequestHandler.processRe
    quest(HttpRequestHandler.java:798)
    06/02/13 11:28:30 at com.evermind.server.http.HttpRequestHandler.run(HttpR
    equestHandler.java:278)
    06/02/13 11:28:30 at com.evermind.server.http.HttpRequestHandler.run(HttpR
    equestHandler.java:120)
    06/02/13 11:28:30 at com.evermind.util.ReleasableResourcePooledExecutor$My
    Worker.run(ReleasableResourcePooledExecutor.java:192)
    06/02/13 11:28:30 at java.lang.Thread.run(Thread.java:534)
    <2006-02-13 11:28:30,920> <ERROR> <default.collaxa.cube.ws> <AdapterFramework::O
    utbound> file:/C:/OraBPELPM_1/integration/orabpel/domains/default/tmp/.bpel_Sele
    ctAll_1.2.jar/SelectAllService.wsdl [ SelectAllService_ptt::SelectAllServiceSele
    ct(SelectAllServiceSelect_inparameters,MoviesCollection) ] - Could not invoke op
    eration 'SelectAllServiceSelect' against the 'Database Adapter' due to:
    ORABPEL-11614
    DBReadInteractionSpec Execute Failed Exception.
    Query name: [SelectAllServiceSelect], Descriptor name: [SelectAll.Movies].
    See root exception for the specific exception. Caused by Exception [TOPLINK-4002
    ] (OracleAS TopLink - 10g (9.0.4.5) (Build 040930)): oracle.toplink.exceptions.D
    atabaseException
    Exception Description: java.sql.SQLException: ORA-00942: table or view does not
    exist
    Internal Exception: java.sql.SQLException: ORA-00942: table or view does not exi
    st
    Error Code: 942.
    <2006-02-13 11:28:30,920> <INFO> <default.collaxa.cube.ws> <AdapterFramework::Ou
    tbound> Change logging level for Logger 'default.collaxa.cube.ws' to DEBUG to se
    e full error stack.
    Please help me.
    Thanks

    Thanks for instant reply.
    <?xml version="1.0" encoding="UTF-8"?>
    <definitions
    name="SelectAllService"
    targetNamespace="http://xmlns.oracle.com/pcbpel/adapter/db/SelectAllService"
    xmlns:tns="http://xmlns.oracle.com/pcbpel/adapter/db/SelectAllService"
    xmlns:plt="http://schemas.xmlsoap.org/ws/2003/05/partner-link/"
    xmlns:jca="http://xmlns.oracle.com/pcbpel/wsdl/jca/"
    xmlns:pc="http://xmlns.oracle.com/pcbpel/"
    xmlns:top="http://xmlns.oracle.com/pcbpel/adapter/db/top/SelectAll"
    xmlns="http://schemas.xmlsoap.org/wsdl/">
    <types>
    <schema xmlns="http://www.w3.org/2001/XMLSchema">
    <import namespace="http://xmlns.oracle.com/pcbpel/adapter/db/top/SelectAll"
    schemaLocation="Movies_table.xsd"/>
    </schema>
    </types>
    <message name="MoviesCollection_msg">
    <part name="MoviesCollection" element="top:MoviesCollection"/>
    </message>
    <message name="SelectAllServiceSelect_inparameters">
    <part name="SelectAllServiceSelect_inparameters" element="top:SelectAllServiceSelectInputParameters"/>
    </message>
    <message name="Movies_msg">
    <part name="Movies" element="top:Movies"/>
    </message>
    <portType name="SelectAllService_ptt">
    <operation name="SelectAllServiceSelect">
    <input message="tns:SelectAllServiceSelect_inparameters"/>
    <output message="tns:MoviesCollection_msg"/>
    </operation>
    <operation name="queryByExample">
    <input message="tns:Movies_msg"/>
    <output message="tns:MoviesCollection_msg"/>
    </operation>
    </portType>
    <binding name="SelectAllService_binding" type="tns:SelectAllService_ptt">
    <jca:binding />
    <operation name="SelectAllServiceSelect">
    <jca:operation
    InteractionSpec="oracle.tip.adapter.db.DBReadInteractionSpec"
    DescriptorName="SelectAll.Movies"
    QueryName="SelectAllServiceSelect"
    MappingsMetaDataURL="toplink_mappings.xml" />
    </operation>
    <operation name="queryByExample">
    <jca:operation
    InteractionSpec="oracle.tip.adapter.db.DBReadInteractionSpec"
    DescriptorName="SelectAll.Movies"
    IsQueryByExample="true"
    MappingsMetaDataURL="toplink_mappings.xml" />
    <input/>
    </operation>
    </binding>
    <!-- Your runtime connection is declared in
    J2EE_HOME/application-deployments/default/DbAdapter/oc4j-ra.xml
    These 'mcf' properties here are from your design time connection and
    save you from having to edit that file and restart the application server
    if eis/DB/BPELSamples is missing.
    These 'mcf' properties are safe to remove.
    -->
    <service name="SelectAllService">
    <port name="SelectAllService_pt" binding="tns:SelectAllService_binding">
    <jca:address location="eis/DB/BPELSamples"
    UIConnectionName="TestDB"
    ManagedConnectionFactory="oracle.tip.adapter.db.DBManagedConnectionFactory"
    mcf.DriverClassName="oracle.jdbc.driver.OracleDriver"
    mcf.PlatformClassName="oracle.toplink.oraclespecific.Oracle9Platform"
    mcf.ConnectionString="jdbc:oracle:thin:@xxx.xx.xxx.com:1521:develop"
    mcf.UserName="scott"
    mcf.Password="22F7AFE6F6B9672475468EABDDFF8ABDD62D1A19DF561D1E"
    />
    </port>
    </service>
    <plt:partnerLinkType name="SelectAllService_plt" >
    <plt:role name="SelectAllService_role" >
    <plt:portType name="tns:SelectAllService_ptt" />
    </plt:role>
    </plt:partnerLinkType>
    </definitions>
    Thanks
    CMB
    CA USA

Maybe you are looking for