JDBC LookUp is not working

Hi All,
This is my scenario...
SAP - IDOC(WINVE03 - Inventory) to MS-SqlServer 2000.
I followed this blog:
/people/siva.maranani/blog/2005/08/23/lookup146s-in-xi-made-simpler
which help me a lot....
but.. when test the interfase it shows a null...
the resultSet.getRows() is empty... so the "for" is never executed.
the communication channel Monitoring says this.
Success     Receiver JDBC adapter: processing started; QoS required: BestEffort
Success     JDBC adapter receiver channel svr_Dgmo_pilog0205_jdbc_client2: processing started; party  ,     service SERVICE_OF_TEST
Success     Database request processed successfully
channel is ok... the database has data...
regards.

Are you sure that the "for" loop is never executed ? Maybe you could add some piece of debug code in order to see what happens exactly (using the XI debug message framework in mappings), like :
for(Iterator rows = resultSet.getRows();rows.hasNext();){
HERE, add a print debug message so you know where for gets executed
Map rowMap = (Map)rows.next();
HERE, add a print debug message to get the return value from (String)rowMap.get("URole")
result.addValue((String)rowMap.get("URole"));
According to lookup API specs, if rowMap.get("URole") contains a SQL NULL value, a null java object will be returned, so the (String) cast would return "null" in this case ...
Rgds
Chris

Similar Messages

  • Palm Desktop 6.2.2. and Lookup function not working in Windows 7

    Palm Desktop's lookup function not working in Windows 7 64bit. Please help.
    Post relates to: Centro (Verizon)
    This question was solved.
    View Solution.

    I was able to solve this by unchecking compatibility mode and setting the application to run as administrative.

  • HT4721 Trackpad triple-finger tap dictionary lookup is not working on macbookPro with OS X 10.8.5. It has never worked before.

    Trackpad triple-finger tap dictionary lookup is not working on maybookPro with OS X 10.8.5. I have never seen it working before. I have also checked un System Preferences and it is enabled. All other gestures seem to work fine too. Could you please help?

    Try running the combo update.
    10.8.5 Combo Update
    That solved it for one person.

  • Report with JDBC connection does not work when they includes CommandTable

    I am trying to render using the new version of Crystal report java component - CRJ a report contains Data base Fileds of type Command Table (Row Set) which seems to be not working.
    when i use the previes version of crystal SDK it works fine.
    after deugging the Sample CrystalHelper.java file which contains the method .changeDatasource()
    i found that the DataBaseController.setLocation() method changes the CommandTable class to Table when using it on CommandTable instance and as result all the fields defined into that CommandTable were disappear.

    That appears to be a known issue:  Eclipse JRC: To change the JDBC connection at run time
    Sincerely,
    Ted Ueda

  • JDBC stored procedure not working in Weblogic 12.1.3

    Hi,
    We are migrating from WLS 12.1.2 to 12.1.3.
    We have a JDBC stored procedure which used to work correctly under 12.1.2. I understand that 12.1.2 uses ojdbc5/ojdbc6 jars (11.2.0.x). After migrating to 12.1.3, the stored procedure is not working.
    We have narrowed it down to the different between 12.1.2 using ojdbc5/6 and 12.1.3 using ojdbc7 jars, though we do not understand what the difference here is.
    Connection connection = getConnection();
    CallableStatement callableStatement = connection.prepareCall("{call RECEIPT_LOG (?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?)}");
    callableStatement.registerOutParameter("PIO_RECEIPT_LOG_ID", java.sql.Types.INTEGER);
    callableStatement.setLong("PIO_RECEIPT_LOG_ID", 0);
    callableStatement.setString("PIO_DRAWER_NAME", request.getDrawerName());
    callableStatement.setString("PIO_DRAWER_FIRST_NAME", request.getDrawerFirstName());
    callableStatement.setString("PIO_DRAWER_OTHER_NAMES", "");
    callableStatement.setString("PIO_DRAWER_STREET_NO", "");
    callableStatement.setString("PIO_DRAWER_STREET", "");
    callableStatement.setString("PIO_DRAWER_LOCALITY", "");
    callableStatement.setLong("PIO_DRAWER_POSTCODE", 0);
    callableStatement.setString("PI_PAYMENT_TYPE", request.getPiPaymentType());
    callableStatement.setLong("PI_APPLICATION_ID", request.getApplicationId());
    callableStatement.setString("PI_PRIMARY_ID", request.getPiPrimaryId());
    callableStatement.setString("PI_SECONDARY_ID", request.getPiSecondaryId());
    callableStatement.setDouble("PI_AMOUNT", request.getPiAmount());
    callableStatement.setInt("PI_TAX_AMOUNT", 0);
    callableStatement.setNull("PI_VPC_TXNRESPONSECODE", java.sql.Types.VARCHAR);
    callableStatement.setInt("PI_VPC_TRANSACTIONNO", 0);
    callableStatement.setString("PI_VPC_MESSAGE", "");
    callableStatement.setString("PI_VPC_ACQRESPONSECODE", "");
    callableStatement.setString("PI_VPC_RECEIPTNO", "");
    callableStatement.setString("PI_VPC_BATCHNO", "");
    callableStatement.setString("PI_VPC_CARD", "");
    callableStatement.setString("PI_VPC_MERCHTXNREF", "");
    callableStatement.setString("PI_VPC_MERCHANT", "");
    callableStatement.setString("PI_VPC_ORDERINFO", "");
    callableStatement.setInt("PI_VPC_AMOUNT", 0);
    callableStatement.setString("PI_VPC_AUTHORIZEID", "");
    callableStatement.registerOutParameter("PO_RECEIPT_NO", java.sql.Types.VARCHAR);
    callableStatement.registerOutParameter("PO_SOURCE_ID", java.sql.Types.INTEGER);
    callableStatement.registerOutParameter("PO_PAYMENT_METHOD_TEXT", java.sql.Types.VARCHAR);
    callableStatement.registerOutParameter("PO_CREATE_COMMENT", java.sql.Types.VARCHAR);
    callableStatement.registerOutParameter("PO_ERROR_MESSAGE", java.sql.Types.VARCHAR);
    boolean isSuccessful = callableStatement.execute();
    Long receiptLogId = callableStatement.getLong("PIO_RECEIPT_LOG_ID");
    Here, when the callableStatement.execute() is fired, the isSuccessful is false and the output parameter receiptLogId is 0
    Any help appreciated.
    Regards,
    Rahul

    Hi All,
    We still haven't figured out what the problem is with JDBC when using ojdbc7.jar but, as an alternate solution we ported the code to Spring JDBC and got it working.
    Regards,
    Rahul

  • Delete Operation in JDBC Sender Adapter not works

    Hi,
        I have one student table which contains the fields ID,Name,BirthMonth,BirthYear,ReadFlag fields. ReadFlag is a character field or lenght 1 which contains only values either 'Y' or ' '. 
         I want to execute delete operation in this table ie to delete the records which contains the readflag = 'Y'. So, I set the below values for the following parameters.
    DELETE FROM student WHERE READFLAG = ' Y '
    Query SQL Statement : SELECT * FROM student WHERE readflag = 'Y'
    Update SQL Statement : DELETE FROM student WHERE READFLAG = 'Y'
    Poll Interval : 60 Seconds.
        There are more records in this table which contains readflag = 'Y'. But, the Adapter does not delete those records from the table i.e delete operation is not executed. At the same time, in Comm. Channel monitoring it does not show any error, but the delete operation is not carried out in the table.
         I tried after 'COMMIT' the table also. But it does not work. What could be the reason ? or How to use Delete Operation effectively on the table ?
         Kindly help me friends to solve this problem.
    Thanking you.
    Kind Regards,
    Jeg.

    http://help.sap.com/saphelp_nw04/helpdata/en/7e/5df96381ec72468a00815dd80f8b63/content.htm >>>
    <i>Adapter Work Method
    You must add an indicator that specifies the processing status of each data record in the adapter (data record processed/data record not processed) to the database table.
    The UPDATE statement must alter exactly those data records that have been selected by the SELECT statement. You can ensure this is the case by using an identical WHERE clause. (See Processing Parameters, SQL Statement for Query, and SQL Statement for Update below).
    <b>Processing can only be performed correctly when the isolation level for transaction is set to repeatable_read or serializable.
    Example
    SQL statement for query: SELECT * FROM table WHERE processed = 0;
    SQL statement for update: UPDATE table SET processed = 1 WHERE processed = 0;
    processed is the indicator in the database.</b></i>
    try with repeatable_read or serializable !!!
    Also go thru this thread - DELETE Querey in JDBC SENDER

  • JNDI LookUp does not work in WSAD5.0

    Hi,
    I have an independent java class which creates Data Source in WASD 5.0, and this works fine to get data source when the server is 4.0, but does not work for server 5.0, here is the code:
    public static void main(String[] args) throws NamingException {
         javax.naming.InitialContext initialContext = null;
         java.util.Hashtable htContextEnvironment = new java.util.Hashtable();
            htContextEnvironment.put(javax.naming.Context.INITIAL_CONTEXT_FACTORY, "com.ibm.websphere.naming.WsnInitialContextFactory");
            htContextEnvironment.put(javax.naming.Context.DNS_URL,"dns://127.0.0.1");
         htContextEnvironment.put(javax.naming.Context.PROVIDER_URL,"iiop://127.0.0.1:2809/");
            initialContext = new javax.naming.InitialContext(htContextEnvironment);
            System.out.println("Initial Context = " + initialContext.getNameInNamespace());
            Hashtable ht = initialContext.getEnvironment();
            DataSource ds = (DataSource) initialContext.lookup("jndi/abcd");
            System.out.println("Data Source = \n" + ds);
    }The only change which I need to make is change the port name from 2809 [5.0] to 900[4.0], the jndi name in both server is defined as "jndi/abcd"
    I always get the initial context in both cases, but can not get data source. For 5.0, I get the following exception:
    javax.naming.NameNotFoundException: jndi/abcd
         at com.ibm.ejs.ns.jndi.CNContextImpl.doLookup(CNContextImpl.java:1445)
         at com.ibm.ejs.ns.jndi.CNContextImpl.lookup(CNContextImpl.java:1129)
         at com.ibm.ws.naming.util.WsnInitCtx.lookup(WsnInitCtx.java:128)
         at javax.naming.InitialContext.lookup(InitialContext.java:359)Is there any difference in creating inital context and data source between 4.0 and 5.0 servers.
    Any help on this please.
    Thanks
    Rajender

    This did not work dear. I assume when you say [Add ur datasource], you mean the name of the datasource, and I did as you told. I was wondering though that I have an independent java class which try to get data source from WSAD server, then how does web.xml help, may be I am not understanding the connection here.
    Just to let you know, that same java class gets the datasource from 4.0 test server. I am running both servers now i.e. 4.0 test and 5.0 test server on different ports, and only data source from 4.0 workd good. Do you have any other solution, which I can try.
    Is there any difference the way data source is accessed between 4.0 and 5.0 versions.
    Thanks in advance.
    Open web.xml, There will reference tab,, then take
    Resource, Add ur datasourse on where the Cursor points
    and then JNDI Name.
    U need to restart ..

  • IDoc string field to JDBC date field - Not working

    Hello everyone,
    Once again I must ask you something that is keeping me..
    I had a interface type RFC ASync to JDBC SQL Server, it was working fine. Then, I was asked to change to a type iDoc ASync to JDBC SQL Server.
    At first, it was not a problem, just manual work. But them, I am getting an error.
    In the RFC, I had a date field, that was directly related to the date field on the JDBC destination, so the mapping was pretty much straight forward. The SQL INSERT command was working fine on this cenario.
    Now, in iDoc, this field was automatically converted to a string, and somehow, PI is not understanding that string has to be mapped to a date field in the JDBC.
    Is there any 'workaround' for me to do this?
    Thanks!
    Ricardo Sancio Lóra
    Brazil

    The issue here is that somehow, the same SQL insert command that was working, does not work anymore.
    This is the SQL command took from RWB log monitor:
    INSERT INTO  aniversariantes_sap (matricula, nome, nascimento, unidade) VALUES (00000070, 'Ricardo Lora', '19851216', 00000000)
    If I run this query on my DB it works.
    But, in PI, it's not, here is the error:
    Could not execute statement for table/stored proc. "aniversariantes_sap" (structure "ANIVERSARIANTES_SAP") due to com.microsoft.sqlserver.jdbc.SQLServerException: Syntax error converting datetime from character string.
    I´ve tried cast() and convert() using mapping 'habilities', but also, does not work. Work if I run in the DB, but not if PI runs it.
    Wierd..
    Ricardo

  • Jdbc to rfc to jdbc scenario is not working

    Hi...
    We have done the JDBC to RFC to JDBC scenario using BPM, it was working fine in the last month. now we started testing the same scenario, that is not working. In SXMB_MONI it is showing only sender data is successful, it is not showing any RFC Receiver data & Jdbc Receiver data. in the CCM also Jdbc Sender CC is showing successfull and it is showing the successful messages also, but in RFC Receiver CC
    & JDBC Receiver CC it is not showing any thing.
    please help on this...
    Regards,
    Pasi.

    Hi
    Check u r RFC response (put external break point)
    and check wether it has data
    rgds
    srini

  • Jdbc tracking does not work in JDeveloper 10.1.2

    My project consists of a single jsp file, and two libraries: JSP Runtime, and DebugJDBC. The latter simply includes ojdbc14_g.zip
    The JSP FIle is
    <%@ page contentType="text/html;charset=windows-1252"%>
    <html>
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
    <title>untitled</title>
    </head>
    <body>
    <%
    oracle.jdbc.driver.OracleLog.startLogging();
    %>
    </body>
    </html>
    The error I get is:
    Oracle Jdbc tracing is not avaliable in a non-debug zip/jar file
    Should I log a bug about this?
    Thanks,
    -Robert

    I just verified that the problem does not exist in JDeveloper 10.1.3.0.4.
    Regards,
    -Robert

  • JDBC driver is not working in JAR file

    Hello
    Java is new for me.
    In my project JDBC is working fine for MSSQL Server 2000. It is developed in Netbeans.
    Now When I am going to rin JAR file of project, Driver for MSSQL is not found.
    Can anyone tell me that What I have to do to work with MSSQL driver in JAR file of project?
    I am using "Microsoft SQL Server 2000 Driver for JDBC" for JDBC.

    In my project JDBC is working fine for MSSQL Server
    2000. It is developed in Netbeans.
    Now When I am going to rin JAR file of project,
    Driver for MSSQL is not found.
    Can anyone tell me that What I have to do to work
    with MSSQL driver in JAR file of project?
    I am using "Microsoft SQL Server 2000 Driver for
    JDBC" for JDBC.Adding the JAR to the Netbeans project means adding it to the classpath for the IDE only, the JAR which you developed still needs the driver jar in the classpath.

  • RFC-XI-JDBC testing is not working

    Hi,
    I created rfc-xi-jdbc. I created 2 dt, 2 msg types, 2 msg mappings, 1 msg interface(synchronous, abstract), 1 interface mapping.
    In the CD, I defined, 1 sender, 1 receiver agreement. 1 receiver, 1 sender determination, 1 interface determination, and two comm channels.
    My RFC destination is working fine. But in se 37 , when I execute the FM, and submit the RFC destination I am getting dump. Please tell me what causes this error.
    In the message mapping when I tested it (rfc-jdbc) mapping, it gets the action as "insert" and not getting table value. Is it supposed to get a table name? or not?
    Thanks. I appreciate your help.
    Raj.

    Michal,
    As I said I already have this zreport program. This is how I am calling:
    CALL FUNCTION 'Z_PA_DINERS_TXN'
         destination 'DINERSIM' *RFC Dest 4 sender adapter
           EXPORTING
                ID            = lw_id
                INIT_ZDINERS  = lw_delete
           TABLES
                IT_ERROR   = IT_ERROR
                IT_ZDINERS = IT_IM_ZDINERS.
         commit work.
    Is that correct? I didnot create any seperate program for this, I am using the existing program. Please advice on further steps.
    In the RFC destination, do I need to mention XI server params in the gateway server host and service? or my sending system's details?
    Thanks,
    Raj.
    Message was edited by: Raj Peddisetty

  • Oracle8i JDBC Guide Example Not Working-applet security

    I was having problems with a JDK1.1.7 applet that I want to get
    working with Netscape 4.07 and my Oracle 8.0.5 installation. I
    am using Netscape's Signtool, the Capabilities classes, and I
    have packaged the Oracle classes111.zip contents into my Signed
    JAR file. I got a copy of the Oracle 8i JDBC Developer's Guide
    and Reference which has an example of what I'm trying to do.
    However, I get the same error running the example. Can anyone
    tell me what I'm doing wrong?
    Please help...
    stephen
    The Java console output is as follows:
    # Applet debug level set to 9
    netscape.security.AppletSecurityException: security.Couldn't
    connect to '47.129.164.42' with origin from ''.
    at
    netscape.security.AppletSecurity.checkConnect(AppletSecurity.java
    :914)
    at
    netscape.security.AppletSecurity.checkConnect(AppletSecurity.java
    :926)
    at
    netscape.security.AppletSecurity.checkConnect(AppletSecurity.java
    :795)
    at
    java.lang.SecurityManager.checkConnect(SecurityManager.java:718)
    at java.net.Socket.<init>(Socket.java:245)
    at java.net.Socket.<init>(Socket.java:123)
    at oracle.sqlnet.SQLnet.Connect(SQLnet.java:176)
    at oracle.sqlnet.SQLnet.Connect(SQLnet.java:146)
    at oracle.sqlnet.SQLnet.Connect(SQLnet.java:120)
    at oracle.jdbc.ttc7.TTC7Protocol.connect(TTC7Protocol.java:983)
    at oracle.jdbc.ttc7.TTC7Protocol.logon(TTC7Protocol.java:158)
    at
    oracle.jdbc.driver.OracleConnection.<init>(OracleConnection.java:
    93)
    at
    oracle.jdbc.driver.OracleDriver.connect(OracleDriver.java:146)
    at java.sql.DriverManager.getConnection(DriverManager.java:90)
    * at java.sql.DriverManager.getConnection(DriverManager.java:132)
    at MainApplet.button2_actionPerformed(MainApplet.java:196)
    at
    MainApplet$MainApplet_button2_actionAdapter.actionPerformed(MainA
    pplet.java:255)
    at java.awt.Button.processActionEvent(Button.java:267)
    at java.awt.Button.processEvent(Button.java:240)
    at java.awt.Component.dispatchEventImpl(Component.java:1789)
    at java.awt.Component.dispatchEvent(Component.java:1715)
    at
    java.awt.EventDispatchThread$EventPump.dispatchEvents(EventDispat
    chThread.java:83)
    at
    java.awt.EventDispatchThread.run(EventDispatchThread.java:135)
    at
    netscape.applet.DerivedAppletFrame$AppletEventDispatchThread.run(
    DerivedAppletFrame.java:911)
    null

    No, it is not, but this is the reason for using Netscape's
    Capabilities API. It contains a PrivilegeManager that works with
    Java's Applet Security Manager to grant permissions for the
    applet.
    Stephen Brewell (guest) wrote:
    : Is the database server on the same machine as your web server?
    : I don't think applets can connect to a machine other than that
    : from which it was served.
    null

  • Lookup.USR_PROCESS_TRIGGERS not working

    Whenever a user's OIM attribute is modified, I want that value to be pushed to the user's AD resource. I am not able to get this to work.
    Here are the steps I took:
    In the Lookup.USR_PROCESS_TRIGGERS, I added the code key (attribute column name in usr table) and decode (Name of the process task).
    In the AD User Process Definition, I added the task (same name as the decode) attached with an out of the box adapter called "adpADIDCRETURNTEXTVALUE". Also, I created an Updated task for that attribute.
    I've validated these process tasks by manually going into a user's AD resource history and calling the process tasks. This works fine.
    My issue here is whenever I change the user's OIM attribute, my process task for that attribute does not get called. I do not see this task in the AD resource history.
    I am only able to get the "Change User Password" task to work (gets triggered whenever reset password happens). My custom ones and the other out of the box tasks doesn't work.
    What is the reason for this? Do I need to set a system property for this? Is it possible my event handlers (User) are interfering?

    Hi,
    Try creating a custom adapter and attach the adapter to the process task which you have created. This adapter should read the user profile value and populate in the AD provisioning form. Then test the flow for one attribute. As I am suspecting that there would be an issue with OOTB adapter.
    Regards
    Sai

  • Lookup Gesture Not Working

    I have installed lion on both my iMac (Late 2009) and MacBook Pro (Early 2008).
    All the gestures work fine on both, except for the 3 finger double tap to look up.
    That works on neither machine, I have messed around with various combinations of different gesture settings but have had no luck.
    Anyone else with a similar issue and found a way to fix it?
    Also, I have been trying it in Safari and Text Edit.

    Does the keyboard shortcut work? Just wondering if it is a problem with the lookup itself and not the gesture.
    It works fine on mine.
    Given that you see it on two machines, perhaps you have something installed on both that is interfering.
    Have you tried in a different account?
    How about a Safe Boot?

Maybe you are looking for

  • Can I install nvidia quadro 600/ AMD FirePro V4900 (ATI FireGL) on HPE h8-1220t ?

    HP/Nvidia Quadro 600 graphics card hangs w/ blue hp startp screen after installation into HPE h8-1220t. Error: After installation and startup, just it sounds a 'beep' and after a minute, it beeps again. No further progess w/ HP blue screen.  Notes: C

  • Call the method of a ejb??

    hi! I get EJB refrence ,How can I call the method of it?(I use the stand-alone application client) code: import javax.naming.*; //import javax.naming.InitialContext; import javax.rmi.*; import java.util.*; //import hello.*; public class jndi { public

  • How can i make transference to mac by my handycam

    How can i do transferece by handycam?

  • Trouble installing Firmware Update on Power Mac G5 1.6

    I am trying to install a Firmware update on a PowerMac G5 1.6. I downloaded through Software Update. And follow the instructions that came with the updater but when I go to restart I get a completely different result than what I should. Instead of th

  • UCCX agent multiple queues

    If a agent belongs to multiple queues is there away for the agent to know which queue the call is coming from. The end user is using ip phone agent, not desktop agent. ex. queue a xyz company sales queue b xyz company support They want to be able to