DB Lookup Not Initialising PLz Help!

Dear all,
I Tried to do DB Lookup as told in this blog by siva
/people/siva.maranani/blog/2005/08/23/lookup146s-in-xi-made-simpler
I used the below code.
I am not Getting any error, the mapping is successfully ACTIVATED. But in the Receiver field i am Getting Null as output , the DB lookup which i have mentioned is not connecting to the Database and executing and fetching the query. Just in the receiver field its througing the Null valuse(Default Initialisation Values). The Required Value is not fetched by using the communication channel.
I am getting the above error when i try to TEST THE MAPPING in IR.
Below is the code i used.
SERVER:XI 3.0
SP:18
RECEIVER DATABSE: MSQL SERVER 2000
CODE----
*//write your code here
String Query = "";
Channel channel = null;
DataBaseAccessor accessor = null;
DataBaseResult resultSet = null;
Query = "Select cir_id from circle where cir_sap = 'IDBL'";
try{
channel = LookupService.getChannel("<Business Service/System Name>","JDBC_channel_receiver Communication channel");
accessor = LookupService.getDataBaseAccessor(channel);
resultSet = accessor.execute(Query);
for(Iterator rows = resultSet.getRows();rows.hasNext();){
Map rowMap = (Map)rows.next();
result.addValue((String)rowMap.get("cir_id"));
catch(Exception ex){
result.addValue(ex.getMessage());
finally{
try{
if (accessor!= null) accessor.close();
catch(Exception ex){
result.addValue(ex.getMessage());
END CODE----
Please help me out.
I am getting output as null. But in database value is there for cir_id where cir_sap='IDBL'.
Regards,
Prakash
Edited by: senthilprakash selvaraj on Jul 2, 2008 2:37 AM

Dear Varun,
Thanks a Million Times.actually to openly say. U R ANSWER only HELPED And My querry worked.
But Varun by mistake i gave the total points the other person, i thought that it was u.! in a hurry i gave the points to the other person yaar ! Please dont mistake me. and i am not in a position to revert it .
Please dont mistake me both of you. And thans a ZILLION times for all who tried to help me really it means something for me.
Regards,
Prakash

Similar Messages

  • IN Clause with Ampersand(Lexical Parameters) not working plz help

    hi
    I m writing the following query but it is not working. plz help how can i apply ampersend(lexical parameter) with IN clause.
    select * from emp where to_number(empno) IN (&p_1);
    thnx

    Hi,
    Try to change the query as
    SELECT <field_list> FROM EMP &P_1and in the AFTER PARAMETER FORM trigger write the WHERE condition including the WHERE clause, Column_Name etc.
    Hope this helps.
    Regards,
    Manu.

  • My vibraton not work plz help me

    my vibraton not work plz help me

    Well you do one thing!
    Download the latest version of iTunes and install it! Here's the link : http://www.apple.com/itunes/download/
    After you download iTunes, you connect your iPhone to the computer and sync it once. After that right click on the iPhone under the devices in the sidebar on the left and hit backup. After it's done. Hit the restore button. It will download the latest version of iOS and it's gonna take a while to download it. After download is completed, it will start restoring your iPhone with the latest iOS, it will take few minutes, and you're done installing the latest iOS in your iPhone.
    This should solve your problem anyhow

  • HT4623 i got apple iphone 3 and i getting problem to activate that its showing message could not activate plz help me how can i activate my phone?

    i got apple iphone 3 and i getting problem to activate that its showing message could not activate plz help me how can i activate my phone?

    Most likely your phone is carrier locked to a different carrier than the SIM card you're using.  It will activate and operate only with the carrier to which it's locked.

  • When ever i'm trying to install an app from the app store i'm getting the following error "We could not complete your purchase - The product distribution file could not be verified. It may be damaged or was not signed", plz help me to rectify this .

    when ever i'm tring to install an app from the app store i'm getting the following error.
    "We could not complete your purchase - The product distribution file could not be verified. It may be damaged or was not signed".
    someone plz help me to overcome this.

    Installing the appropriate combo update may help...
    If you are running v10..7 Lion, install the OS X Lion Update 10.7.4 (Client Combo)
    For 10.6 Snow Leopard >  Mac OS X 10.6.8 Update Combo
    Then restart your Mac. Try the App Store.
    If that doesn't help, try the following..
    Quit the App Store if it's open.
    Open the Finder. From the Finder menu bar top of your screen click Go > Go to Folder
    Type this exactly as you see it here:
    /Library/Preferences/SystemConfiguration
    Click Go
    Move the NetworkInterfaces.plist file from the SystemConfiguration folder to the Trash.
    Relaunch the App Store and try downloading Mountain Lion.
    You may also need to disable anti virus software and turn off the Firewall in System Preferences > Security (or Security & Privacy) > Firewall

  • My iphone's setting menu is not working.plz help me

    When i enter into the setting tab all the menu is not working i cant eneter to any item there or even i cant scroll down.plz help me

    Try hard resetting the phone.
    Hold down the sleep/wake button and the home button at the same time until the apple appears and let the phone reset itself.
    Let me know if you've already tried this or if it works.

  • Hi i installed wrong iousbfamily on osx and now my login screen is frozen, keyboard and mouse not working plz help

    hi i installed wrong iousbfamily on osx and now my login screen is frozen, keyboard and mouse not working plz help

    How and why did you install that?  What steps did you take in that process.  I can then help with some steps to undo them. 

  • Code for radio button is not working plz help

    checkboxes are working fine but when i put radio code submit button does nothing
    plz help
    thanks in advance
    <%@ page language="java" contentType ="text/html; charset=ISO-8859-1" pageEncoding="ISO-8859-1" import= "java.sql.*,java.io.*,com.anaghan.MyBeans.CmsConnection"%>
    <jsp:useBean id="obj" scope="request" class="com.anaghan.MyBeans.DepartmentBean"/>
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" >
    <html>
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
    <script language="javascript" >
    function cmdOnSelect()                                   
                   var deptcode=document.DepartmentPage.cmdSelect.value;
                   DepartmentPage.method="post";
                   DepartmentPage.action="./vsnlemployee_calldatasheetcallhistory.jsp?flag=select&cmdSelect="+deptcode;
                   DepartmentPage.submit();           
    function validate()
         var user_etime = document.DepartmentPage.etime.value;
         var etime_length = document.DepartmentPage.etime.value.length;
         var user_edate = document.DepartmentPage.edate.value;
         var edate_length = document.DepartmentPage.edate.value.length;
         var user_calltype = document.DepartmentPage.calltype.value;
         var calltype_length = document.DepartmentPage.calltype.value.length;
         var user_callstatus = document.DepartmentPage.callstatus.value;
         var callstatus_length = document.DepartmentPage.callstatus.value.length;
         if( edate_length==0 )
              alert("Please enter the call date");
              return false;
         else if( calltype_length==0 )
              alert("Please enter the call type");
              return false;
         else if( callstatus_length==0 )
              alert("Please enter the call status");
              return false;
         else if( etime_length==0 )
              alert("Please enter the call timing");
              return false;
         else if(etime_length!=0 && etime_length!=4)
              alert("Entered timing is invalid");
              return false;
         else if (etime_length!=0)
              for (var i = 0; i < etime_length; i++)
                   valid_characters = new RegExp ("[0-9]", "g");
                   var part_user_etime = user_etime.charAt (i);
                   if (!valid_characters.test (part_user_etime))
                        alert("Special characters like '" + part_user_etime + "' are not allowed in timing" );
                        return false;
                   valid_characters = null;
              return true;
         else
              return true;
    function cmdOnClick()                                   
              if (validate())
                        DepartmentPage.method="post";
                        DepartmentPage.action="/anaghan/CallSheet?flag=call";     
                        DepartmentPage.submit()     
    </script>
    <script language="javascript" src="calendar1.js">
    </script>
    </head>
    <body>
    <%
    String uname=(String)session.getAttribute("employeeName");
    if(uname==null)
         response.sendRedirect("/Error.jsp?login=Login Session Problem");
    %>
    <%
         String date1="";
         String date2="";
    %>
    <%!
         ResultSet rs=null;
         Connection con =null;
         String conStr="sun.jdbc.odbc.JdbcOdbcDriver";
         String tableStr="jdbc:odbc:Anaghan";
    %>
    <%
         String companycode=request.getParameter("cmdSelect");
         HttpSession hs = request.getSession();
         hs.setAttribute("companycode",companycode);
         System.out.println("CALLLLL="+companycode);
    %>
    <%
         String flag="";
         String deptcode="";
         String commissioningdate="";
         String closuredate="";
    %>
    <%
         String a2="";String a1="";
    %>
    <form name="DepartmentPage" >
    <TABLE cellSpacing=0 cellPadding=0 width="100%" border="0" >
         <TR>
              <TD align=CENTER>
                   <h2> CALL DATA SHEET </h2>
              </TD>
         </TR>
         <TR>     
              <div>
                                  <FONT face="Arial " color=#000000 size=2>
              <TD valign="top">          
                   <TABLE cellSpacing=15 cellPadding=0 width="100%" border="0">
                        <TD width="50%" vAlign="top" align=CENTER height=24 bgcolor=#F8F8F8 >
                                       <tr>
                                            <TD align=RIGHT>Select Company - </TD>
                                                 <td><SELECT name="cmdSelect" size="1" onChange="cmdOnSelect();">
                                                 <OPTION SELECTED></OPTION>
                                                      <%
                                                           deptcode=request.getParameter("cmdSelect");
                                                           response.setContentType("text/html");
                                                           ResultSet rs = obj.onSelect();
                                                           while(rs.next())
                                                                String tempName=rs.getString(2);
                                                      %>
                                                 <OPTION id= "a<%=tempName %>" value= "<%=tempName%>"> <%=tempName %></OPTION>
                                                 <%}%>
                                                 </SELECT></td>
                                       </TR>
                                            </TD>
                                       </TABLE>
                                       <TABLE cellSpacing=15 cellPadding=0 width="100%" border="0">
                                            <TR>
                                                 <TD>
                                                 <table align="center" width="90%" cellspacing="2" cellpadding="2">
                                                      <tr>
                                                           <td align="center"><h2>Contact Person</h2></td>
                                                      </tr>
                                                 </table>
                                                 <table align="center" width="90%" border="1" cellspacing="2" cellpadding="2">
                                                 <tr><th>Name</th><th>Landline</th><th>Mobile</th><th>Fax</th><th>E-mail</th></tr>
                                                 <%!
                                                      ResultSet result=null;
                                                 %>
                                                 <%
                                                      response.setContentType("text/html");
                                                 try{
                                                      Connection con = DriverManager.getConnection("jdbc:odbc:Anaghan");
                                                      Statement stmt=con.createStatement();
                                                      result =stmt.executeQuery("select * from enquiry_details where companycode='"+deptcode+"' ");
                                                      while(result.next())
                                                      %>
                                                      <tr>
                                                           <OL><td align ="center"><%=result.getString(9) %></td>
                                                           <td align ="center"><%=result.getString(10) %></td>
                                                           <td align ="center"><%=result.getString(11) %></td>
                                                           <td align ="center"><%=result.getString(12) %></td>
                                                           <td align ="center"><%=result.getString(13) %></td></OL>
    <tr>
                                                           <OL><td align ="center"><%=result.getString(14) %></td>
                                                           <td align ="center"><%=result.getString(15) %></td>
                                                           <td align ="center"><%=result.getString(16) %></td>
                                                           <td align ="center"><%=result.getString(17) %></td>
                                                           <td align ="center"><%=result.getString(18) %></td></OL>
                                                           <%}
                                                      catch(Exception e)
                                                           e.printStackTrace();
                                                      }%>
                                                 </tr></table>
                                                 </TD>
                                            </TR>
                                            <TR>
                                                 <TD>
                                                 <table align="center" width="90%" cellspacing="2" cellpadding="2">
                                                      <tr>
                                                           <td align="center"><h2>Call History</h2></td>
                                                      </tr>
                                                 </table>
                                                 <table align="center" width="90%" border="1" cellspacing="2" cellpadding="2">
                                                 <tr><th>Call Type</th><th>Call Status</th><th>Service Type</th><th>Feedback</th><th>Next Visit</th><th>Call Date</th></tr>
                                                 <%!
                                                      ResultSet result1=null;
                                                 %>
                                                 <%
                                                      response.setContentType("text/html");
                                                 try{
                                                      result1=obj.onSelectCallHistory(deptcode);
                                                      while(result1.next())
                                                      %>
                                                      <tr>
                                                           <OL><td align ="center"><%=result1.getString(3) %></td>
                                                           <td align ="center"><%=result1.getString(4) %></td>
                                                           <td align ="center"><%=result1.getString(6) %></td>
                                                           <td align ="center"><%=result1.getString(7) %></td>
                                                           <td align ="center"><%=result1.getString(9) %></td>
                                                           <td align ="center"><%=result1.getString(8) %></td>
                                                           </OL>
                                                           <%}}
                                                      catch(Exception e)
                                                           e.printStackTrace();
                                                      }%>
                                                 </tr></table>
                                                 </TD>
                                            </TR>
                                       <TABLE cellSpacing=15 cellPadding=0 width="100%" border="0">
                                            <TD width="50%" vAlign="top" align=CENTER height=24 bgcolor=#F8F8F8 >
                                            <TR>
                                                 <TD></TD>
                                            </TR>
                                            <TR></TR>
                                            <TR>
                                                 <TD align=RIGHT>                                   
                                                 Type of Call - </TD>
                                            <td>
                                            <input type = radio name=calltype value=personal/>personal
                                            <input type = radio name=calltype value=email/>Email</td>
                                                 <!-- <TD><SELECT name="calltype" size="1" >
                                                      <OPTION SELECTED></OPTION>
                                                      <OPTION id= "s" value= "personal"> Personal </OPTION>
                                                      <OPTION id= "s" value= "telephonic"> Telephonic </OPTION>
                                                      <OPTION id= "s" value= "email"> E-mail </OPTION>
                                                      <OPTION id= "s" value= "meeting"> Meeting </OPTION>
                                                      </SELECT>
                                                 </TD>-->
                                            </TR>
                                            <TR>
                                                 <TD align=RIGHT>                                   
                                                 Status of Call - </TD>
                                                 <TD>
                                                 <SELECT name="callstatus" size="1" >
                                                      <OPTION SELECTED></OPTION>
                                                      <OPTION id= "s" value= "cold"> Cold </OPTION>
                                                      <OPTION id= "s" value= "warm"> Warm </OPTION>
                                                      <OPTION id= "s" value= "hot"> Hot </OPTION>
                                                      <OPTION id= "s" value= "closed"> Connection Executed </OPTION>
                                                      <OPTION id= "s" value= "upgrade"> Upgrade </OPTION>
                                                      <OPTION id= "s" value= "downgrade"> Downgrade </OPTION>
                                                      <OPTION id= "s" value= "shiftingoflocation"> Shifting of Location </OPTION>
                                                      <OPTION id= "s" value= "connectionterminated"> Connection Terminated </OPTION>
                                                      </SELECT>
                                                 </TD>
                                            </TR>
                                            <TR>
                                                 <TD align=RIGHT>Date - </TD>
                                                 <TD><input type="text" readonly name="edate" id="edate" size="10" value="<%=date1 %>">
                                                 <img src="./cal.gif" width="16" height="16" border="0" alt="Click Here to Pick up the date">
                                                 </TD>
                                            </TR>
                                            <TR>
                                                 <TD align=RIGHT>                                   
                                                 Time - </TD>
                                                 <TD><input type="text" size="4" name="etime" maxlength="4"></TD>
                                            </TR>
                                            <TR>
                                                 <TD align=RIGHT>                                   
                                                 </TD>
                                                 <TD>(Write timing in 0000 - 2400 in this format only)</TD>
                                            </TR>
                                            <TR><TD align=CENTER> INFRASTRUCTURE DETAILS
                                                 </TD></TR>
                                            <TR></TR>     
                                            <TR>
                                                 <TD align=RIGHT bgcolor=#00CCFF>     
                                                 <font color="#CC6600" size=4>Details of service </font></TD>
                                                 <TD></TD>
                                            </TR>
                                            <TR>
                                                 <TD align=RIGHT>                                   
                                                 Circuit Specification - </TD>
                                                 <TD><SELECT name="servicetype" size="1" >
                                                      <OPTION SELECTED>---Services---</OPTION>
                                                      <OPTION id= "s" value= "IPLC"> IPLC </OPTION>
                                                      <OPTION id= "s" value= "VPN"> VPN </OPTION>
                                                      <OPTION id= "s" value= "ILL"> ILL </OPTION>
                                                      <OPTION id= "s" value= "VoIP"> VoIP </OPTION>     
                                                      <OPTION id= "s" value= "ISDN"> ISDN </OPTION>
                                                      <OPTION id= "s" value= "IDC"> IDC </OPTION>
                                                      <OPTION id= "s" value= "V-IPLC"> V-IPLC </OPTION>
                                                      <OPTION id= "s" value= "contactcenter"> Contact Center </OPTION>
                                                      </SELECT>
                                                 </TD>
                                            </TR>
                                            <TR>
                                                 <TD align=RIGHT vAlign=TOP>
                                                 Feedback Details - </TD>
                                                 <TD><TEXTAREA wrap="virtual" name="feedback" rows=5 cols=30 MAXLENGTH=100></TEXTAREA></TD>
                                            </TR>
                                            <TR>
                                                 <TD align=RIGHT>Next Visit Scheduled - </TD>
                                                 <TD><input type="text" readonly name="nextvisit" id="nextvisit" size="10" value="<%=date2 %>">
                                                 <img src="./cal.gif" width="16" height="16" border="0" alt="Click Here to Pick up the date">
                                                 </TD>
                                            </TR>
                                            <TR></TR>
                                            <TR>
                                                 <TD></TD>
                                                 <TD>     
                                                      <input type="button" name="bill" value="SUBMIT" onClick="cmdOnClick();">
                                                         <input type="reset" name="reset" value="RESET" >
                                                 </TD>
                                            </TR>
                                       </FONT>
                             </div>
                        </TD>
                   </TR>
              </TABLE>
         </TD>
         <TD vAlign=TOP bgcolor=#FFFFFF>
                   </TD>
         </TR></TABLE>
    </form>
    <script language="JavaScript">
         var cal1 = new calendar1(document.forms['DepartmentPage'].elements['edate']);
         var cal2 = new calendar1(document.forms['DepartmentPage'].elements['nextvisit']);
    </script>
    <script language="javascript">
    document.getElementById('a<%=request.getParameter("cmdSelect")%>').selected=true;
    </script>
    <BR><BR>
    <jsp:include page="index-end.jsp"/>
    </body>
    </html>

    If the reset doesn't work, you have to force iPad into Recovery Mode
    1. Turn off iPad
    2. Turn on computer and launch iTunes (make sure you have the latest version of iTune)
    3. Plug USB cable into computer's USB port
    4. Hold Home button down and plug the other end of cable into docking port.
    DO NOT RELEASE BUTTON until you see picture of iTunes and plug
    5. Release Home button.
    ON COMPUTER
    6. iTunes has detected iPad in recovery mode. You must restore this iPad before it can be used with iTunes.
    7. Select "Restore iPad"...
    Note:
    1. Data will be lost if you do not have backup
    2. You must follow step 1 to step 4 VERY CLOSELY.
    3. Repeat the process if necessary.

  • My Iphone4 will turn off, and it is not on, plz help how to switch on or what is the problem

    Hi,
    My iphone 4 will turn off on its own and It will not turn on, plz help me

    Try:
    - iOS: Not responding or does not turn on
    - Also try DFU mode after try recovery mode
    How to put iPod touch / iPhone into DFU mode « Karthik's scribblings
    - If not successful and you can't fully turn the iOS device fully off, let the battery fully drain. After charging for an least an hour try the above again.
    - If still not successful that usually indicates a hardware problem and an appointment at the Genius Bar of an Apple store is in order.
      Apple Retail Store - Genius Bar

  • Me taskbar icons are not responding. plz help

    my taskbars icons are not responding when i click on it...ie it doesnt opens not it responds....
    alo like back button which is on upper panel is also not responding...is this any software error or hardware... plz help seriously.... i cant even call any1....

    Windows or Mac OS X?

  • Plz help my ipad mini is just bringing the apple logo again and again and it is not working plz help

    plz help my ipad mini is just bringing the apple logo again and again and it is not working plz help

    If the reset doesn't work, you have to force iPad into Recovery Mode
    1. Turn off iPad
    2. Turn on computer and launch iTunes (make sure you have the latest version of iTune)
    3. Plug USB cable into computer's USB port
    4. Hold Home button down and plug the other end of cable into docking port.
    DO NOT RELEASE BUTTON until you see picture of iTunes and plug
    5. Release Home button.
    ON COMPUTER
    6. iTunes has detected iPad in recovery mode. You must restore this iPad before it can be used with iTunes.
    7. Select "Restore iPad"...
    Note:
    1. Data will be lost if you do not have backup
    2. You must follow step 1 to step 4 VERY CLOSELY.
    3. Repeat the process if necessary.

  • My subscription not renewed. plz help

    My subscription renewal date was yesterday. but till now it has not been renewed. plz help. i need to make calls. . ..

    metty3 wrote:
    My subscription renewal date was yesterday. but till now it has not been renewed. plz help. i need to make calls. . ..
    I think you may need to contact customer service regarding that matter. 
    https://support.skype.com/en/faq/FA1170/how-can-i-contact-skype-customer-service
    IF YOU FOUND OUR POST USEFUL THEN PLEASE GIVE "KUDOS". IF IT HELPED TO FIX YOUR ISSUE PLEASE MARK IT AS A "SOLUTION" TO HELP OTHERS. THANKS!
    ALTERNATIVE SKYPE DOWNLOAD LINKS | HOW TO RECORD SKYPE VIDEO CALLS | HOW TO HANDLE SUSPICIOS CALLS AND MESSAGES

  • My i phone4 camera not work        plz help

    my i phone4 camera not work        plz help

    Reset your phone by holding the power/lock button at the top and your home button at the bottom until you see the Apple logo on the screen.
    Once phone is fully rebooted try again.

  • HT4623 i just updated my 3gs 4.3 t0 6.1 its updated but not activate plz help

    i just updated my 3gs 4.3 t0 6.1 its updated but not activate plz help

    Do you get an error message.
    Was your phone ever locked to a different phone carrier?
    When you can't activate, usually means your phone was hacked or jailbroken to unlocked it, then when you updated the IOS it locked back to the original carrier.

  • Bios not booting PLZ HELP

    ok my friend brang over his toshiba   A100 LE1  laptophe told me it was password locked i assumed it was just an xp password to recover, but it turned out his bios pasword was no longer working so i started reading and thought there would just be a jumper to clear the bios memory and  some guy told me i had to pop the memory out  and peel back the mylar layer under it and jump the solder connector marked PAD500 so i did that now when i turn on the computer it lights up like its gonna work and then befor you see anything from the bios it shuts off and the just loops like that over and over CRY is just a paper wieght now or can this be fixed????i havnt even told the kid yet what i have done and feel bad I WISH I NEVER DID ANYTHING TO IT SUN OF A GUN
    PLZ PLZ PLZ HELP
    Solved!
    Go to Solution.

    well i fixewd it turns out i did every thing correctly eccept the ram dont like to go i his computer all the way so i just wasnt getting the ram in all the way and the computer wouldnt boot haha
    [admin edit of pw removal info]
    Message Edited by jim on 02-09-2009 12:09 AM

Maybe you are looking for

  • If I create a new itunes account?

    If I create a new itunes account will it erase my existing information such as my purchased music history? This is a problem my father is having, When he started his itunes account a few years ago he made up an email account to initiate the account a

  • Speaking text in different languages

    I am using my Mac server to answer the phone and play answering machine. I like it to read messages to callers using the build in voices. However if I write massages in other languages but English even I would not know what it is saying and I doubt a

  • HT1338 Trying to update

    I have a MacBook 10.4.11 Gmail and Aol tell me I need to update and that I am running on basic mode in their mail service. When I do a software update on my MacBook it says, I don't have updates available. What do I need to do?

  • I have PSE 4.0.  How do I get it to read Nikon D300 .NEF's?

    Hi, I am not a computer expert and I am in a tizzy because I *just* started gaining momentum in learning Elements and then was surprised with a new D300 for Christmas (previously had a D70s which worked great with PSE4.0). So is there any way that I

  • 3g problem

    Recently my phone has been giving problems when selecting 3g. If i enable 3g in the settings menu 99 times out of 100 it wont connect, just goes to no service and wont go back to 2g, i have to switch 3g off again to get a signal back. sometimes it wi