Insertion problem .... plzzzzzzzzzzz help

I have a jsp page code below mentioned...
This jsp page retrieved values from a html files, which is shown as bold.
my problem is that i cannot insert the values in database.plzz help me...
<html>
<head>
<title></title>
</head>
<body>
<%@ page import =" java.sql.Date.*" %>
<%@ page import =" java.text.SimpleDateFormat.*" %>
<%@ page import =" java.util.Date.*" %>
<%@ page import =" java.text.*" %>
<%@ page import="javax.servlet.*" %>
<%@ page import="javax.servlet.http.*" %>
<%@ page language="java" import="java.sql.*" %>
<%
     String     Security_No, Category_code,Face_Value, Purchase_Value,Interest_Paid,Interest_Received,Brokrage,Total_Value,Voucher_No,Voucher_Date,Voucher_Amt,D_Date1,D_Date2,Ledger_No,Maturity_Date,sql1 ;
     java.util.Date voudate_temp=null;
     java.util.Date duedate1_temp=null;
     java.util.Date duedate2_temp=null;
     java.util.Date matdate_temp=null;
     ResultSet results;
     PreparedStatement sql;
try {
     Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
     Connection conn=DriverManager.getConnection("jdbc:odbc:pf","scott","ttlscott");
     System.out.println("got connection");
          try
               SimpleDateFormat format = new SimpleDateFormat("dd/MM/yyyy");
               format.setLenient(false);
               int     sec_no, catg_code,face_val,pur_val,int_paid,int_recd,brkr,tot_val,vou_amt;
               String vou_no, lf_no;
               java.sql.Date vou_date, due_date1, due_date2,mat_date;
               boolean     doneheading = false;
               Statement s=con.createStatement();
          Security_No = request.getParameter("secno");
          Category_code = request.getParameter("catcode");
          Face_Value = request.getParameter("facevalue");
          Purchase_Value = request.getParameter("purvalue");
          Interest_Paid = request.getParameter("intpaid");
          Interest_Received = request.getParameter("intrecvd");
          Brokrage = request.getParameter("brokrage");
          Total_Value = request.getParameter("tvalue");
          Voucher_No = request.getParameter("vouno");
          Voucher_Date = request.getParameter("voudate");
          Voucher_Amt = request.getParameter("vouamt");
          D_Date1 = request.getParameter("due1");
          D_Date2 = request.getParameter("due2");
          Ledger_No = request.getParameter("lfno");
          Maturity_Date = request.getParameter("maturity");          
          sql1 = "insert into sec_mast values (" + "'" + Security_No + "', '" Category_code "' , '" + Face_Value + "', '" + Purchase_Value + "', '" + Interest_Paid + "', '" + Interest_Received + "', '" + Brokrage + "', '" + Total_Value + "', '" + Voucher_No + "', #"+ Voucher_Date+ "# , '" + Voucher_Amt + "', #" + D_Date1 + "#, #" + D_Date2 + "#, '" + Ledger_No + "', #" + Maturity_Date + "#)" ;
          s.executeUpdate(sql1);               
               sql = con.prepareStatement("SELECT * FROM sec_mast WHERE sec_no = '" + Security_No + "' ");
               results = sql.executeQuery();
               while(results.next())
                    if(! doneheading)
                         doneheading = true;
sec_no = results.getInt("sec_no");
catg_code= results.getInt("catg_code");
face_val = results.getInt("face_val");
pur_val = results.getInt("pur_val");
int_paid= results.getInt("int_paid");
int_recd = results.getInt("int_recd");
                    brkr = results.getInt("brkr");
tot_val= results.getInt("tot_val");
                    vou_no = results.getString("vou_no");
                    voudate_temp = results.getDate("vou_date");
vou_amt = results.getInt("vou_amt");
                    duedate1_temp = results.getDate("due_date1");
duedate2_temp= results.getDate("due_date2");
lf_no= results.getString("lf_no");
     matdate_temp = results.getDate("mat_date");
java.text.SimpleDateFormat sdf = new java.text.SimpleDateFormat("MM/dd/yyyy");
               sdf.setTimeZone(TimeZone.getDefault());
               vou_date = sdf.format(voudate_temp);
               java.text.SimpleDateFormat sdf = new java.text.SimpleDateFormat("MM/dd/yyyy");
               sdf.setTimeZone(TimeZone.getDefault());
               due_date1 = sdf.format(duedate1_temp);
               java.text.SimpleDateFormat sdf = new java.text.SimpleDateFormat("MM/dd/yyyy");
               sdf.setTimeZone(TimeZone.getDefault());
               due_date2 = sdf.format(duedate2_temp);
               java.text.SimpleDateFormat sdf = new java.text.SimpleDateFormat("MM/dd/yyyy");
               sdf.setTimeZone(TimeZone.getDefault());
               mat_date = sdf.format(matdate_temp);
out.println("<BODY bgColor=blanchedalmond text=#008000 topMargin=0>");
out.println("<P align=center><FONT face=Helvetica><FONT color=fuchsia > <BIG>SECURITY INFORMATION</BIG></FONT></P>");
out.println("<P align=center>");
out.println("<TABLE align=center border=1 cellPadding=1 cellSpacing=1 width=\"75%\">");
out.println("<TR>");
                    out.println("<TD>Secuirty No.</TD>");
out.println("<TD>Category Code</TD>");
out.println("<TD>Face Value</TD>");
out.println("<TD>Purchase Value</TD>");
                    out.println("<TD>Interest Paid</TD>");
                    out.println("<TD>Interest Recieved</TD>");
out.println("<TD>Brokrage Value</TD>");
out.println("<TD>Total Value</TD>");
out.println("<TD>Voucher No.</TD>");
out.println("<TD>VOucher Date</TD>");
                    out.println("<TD>VOucher Amount</TD>");
out.println("<TD>Due Date 1</TD>");
                    out.println("<TD>Due Date 2</TD>");
out.println("<TD>L F No.</TD>");
                    out.println("<TD>Maturity Date</TD>");
                    out.println("<tr><td>" + sec_no);
                    out.println("<td>" + catg_code);
                    out.println("<td>" + face_val);
                    out.println("<tr><td>" + pur_val);
                    out.println("<td>" + int_paid);
                    out.println("<td>" + int_recd);
                    out.println("<tr><td>" + brkr);
                    out.println("<td>" + tot_val);
                    out.println("<td>" + vou_no);
                    out.println("<tr><td>" + vou_date);
                    out.println("<td>" + vou_amt);
                    out.println("<td>" + due_date1);
                    out.println("<tr><td>" + due_date2);
                    out.println("<td>" + lf_no);
                    out.println("<td>" + mat_date);
               if(doneheading)
                    out.println("</table>");
               else
                    out.println("<BODY bgColor=blanchedalmond text=#FF0000 topMargin=0>");
                    out.println("<P align=center><FONT face=Helvetica><FONT color=fuchsia ></FONT></P>");
out.println("<P align=center>");
                    out.println("No matches for " + Security_No);
               }catch(ParseException e) {
out.println("do date format error action.<br>");
          catch (SQLException s)
               out.println("<BODY bgColor=blanchedalmond text=#FF0000 topMargin=50>");
                    out.println("<P align=center><FONT face=Helvetica><FONT color=fuchsia ></FONT></P>");
out.println("<P align=center>");
               out.println("Duplicate Entry.Try another Security Code No.<br>");
          catch(ParseException e) {
          out.println("do date format error action.<br>");
     catch (ClassNotFoundException err)
          out.println("Class loading error");
%>
</body>
</html>

you should try posting it in the jsp forum.what error/exceptions are you getting if any?

Similar Messages

  • Public Synonyms for Nested Tables - Insertion Problem  - Please Help!!!!!

    Hi,
    we are facing a problem during implementation. Our DB set up
    is , we will be having two schema named OWNR and COPY.
    In the schema, OWNR we have to create all the tables,
    types,procedures, packages and obj.....This schema will have
    both DDL and DML privileges.
    In the schema, COPY we are not supposed to create any tables,
    objects. We have to create public synonyms for all the tables,
    types, procedures... in OWNR and grant ALL privilege to the
    schema COPY.The schema, COPY will have only DML privileges.
    The problem is we have some nested tables in our application.
    When I try to insert into the synonym which is created for the
    nested table, it is not allowing me to insert..The whole
    implementation is stucked..Please help.The scripts are given
    below.......
    We have a type name SITA_ADDRESS_TY which is used by the nested
    table SITA_ADDRESSES_NT.Script used for creating the Type,Nested
    table,Table, Public Synonym and granting all privilege to these
    types and tables are
    CREATE OR REPLACE TYPE SITA_ADDRESS_TY AS OBJECT (
    SITA_ADDRESS VARCHAR2(10),
    REMARKS VARCHAR2(100)) ;
    PROMPT SITA_ADDRESSS_NT...
    CREATE OR REPLACE TYPE SITA_ADDRESSES_NT AS TABLE OF
    SITA_ADDRESS_TY ;
    Using this nested table we have created the table,
    UMS_SITA_ADDRESS
    CREATE TABLE UMS_SITA_ADDRESS (
    COMPANY_CODE VARCHAR2 (6) NOT NULL,
    AIRLINE_CODE VARCHAR2 (6) NOT NULL,
    DESTINATION VARCHAR2 (6) NOT NULL,
    SITA_ADDRESS SITA_ADDRESSES_NT)
    TABLESPACE EKUMDAT
    PCTFREE 5
    PCTUSED 40
    INITRANS 1
    MAXTRANS 255
    STORAGE (
    INITIAL 64K
    NEXT 64K
    PCTINCREASE 0
    MINEXTENTS 1
    MAXEXTENTS 505
    FREELISTS 1 FREELIST GROUPS 1 )
    NOCACHE
    NESTED TABLE SITA_ADDRESS STORE AS UMSNT_SITA_ADDRESS ;
    PROMPT SYNONYM SITA_ADDRESS_TY...
    CREATE PUBLIC SYNONYM SITA_ADDRESS_TY FOR SITA_ADDRESS_TY
    PROMPT SYNONYM SITA_ADDRESSES_NT...
    CREATE PUBLIC SYNONYM SITA_ADDRESSES_NT FOR SITA_ADDRESSES_NT
    PROMPT UMS_SITA_ADDRESS...
    CREATE PUBLIC SYNONYM UMS_SITA_ADDRESS FOR UMS_SITA_ADDRESS
    Granting Privileges
    PROMPT SITA_ADDRESS_TY...
    GRANT EXECUTE ON SITA_ADDRESS_TY TO COPY
    PROMPT SITA_ADDRESSS_NT...
    GRANT EXECUTE ON SITA_ADDRESSES_NT TO COPY
    PROMPT UMS_SITA_ADDRESS...
    GRANT ALL ON UMS_SITA_ADDRESS TO COPY
    When I connect to copy and desc UMS_SITA_ADDRESS, the structure
    is
    SQL> desc ums_sita_address
    Name Null? Type
    COMPANY_CODE NOT NULL VARCHAR2(6)
    AIRLINE_CODE NOT NULL VARCHAR2(6)
    DESTINATION NOT NULL VARCHAR2(6)
    SITA_ADDRESS
    OWNR.SITA_ADDRESSES_NT
    Why is it so??. Even though I have a synonym for
    SITA_ADDRESSES_NT, it is not referencing the synonym but instead
    refer the OWNR.SITA_ADDRESSES_NT
    Because of this when I try to insert into ums_sita_address(in
    schema COPY), it is giving the following error,
    SQL> insert into ums_sita_address values
    ('EK','EK','DXB',SITA_ADDRESSES_NT());
    insert into ums_sita_address values
    ('EK','EK','DXB',SITA_ADDRESSES_NT())
    ERROR at line 1:
    ORA-00932: inconsistent datatypes
    But when the same connect to OWNR and try to insert with the
    same stmt, it is inserting...
    Our middle tier can connect only to COPY schema alone..Is there
    anything to be done in the DBA side to achieve this??.
    Please help from your valuabe experience...Or can you ask your
    collegues if they have got a soln to this probs..We are stucked
    with this...
    Thanks
    Priya

    Hi
    I am not sure but maybe you need to use this command:
    SQL> insert into ums_sita_address values
    ('EK','EK','DXB',SITA_ADDRESSES_TY());
    SITA_ADDRESSES_TY() instead SITA_ADDRESSES_NT
    Regards

  • Boot problem == pls HELP

    I have use the utility disk and format the machintos drive , and use  Extended (Journaled , Encrypted) , it ask me for a password (typed the password, confirmed the password - done) ,  after that i tried to install a fresh copy of Lion (i waited to be downloded from apple.com - done) after that it said that the fresh copy it will be installed and it will reboot by itself -> done ... from here the problem it's starting .... now my macbook air , it dosent start anymore it keep showming me, instaid of the apple sign from the start , a sign like the one from ghost busters (but without the ghost in it ) , i have tried to boot from cd , from usb , nothing dosent seams to be working.
    If anyone know a solution to this problem, pls HELP! Thank you in advance...
    p.s. before i had 2 hard drives that show up when i press the ALT button (machintos hd and utility drive, or something like that) now.. the only thing that it's showing me is : mac os base system , and if i try to use partition magic or something else, from a usb, it will tell me something about a bootguard , but i don't know how to insert the password.

    Glad your issue is fixed. Thanks for the update!
    Click if you want to Thank someone. If Problem is resolved, so that others can make use of it.

  • I've made a movie in iMovie. Now all of a sudden the sound that I added to my video is mute. I havn't changed anything and in my other iMovie-projects the sound is working fine. What is the problem? Help!

    I've made a movie in iMovie. Now all of a sudden the sound that I added to my video is mute. I havn't changed anything and in my other iMovie-projects the sound is working fine. What is the problem? Help!

    Try double tapping the movie clip itself when inserted in the timeline and ensure that sound is on on the actual clip on the movie time line.

  • My iPad shows a message "Cannot find AirPrint printer". I used to use my iPad to print materials using HP wireless printer D110. Now it does not want to print. Is this because I am now using IOS 7? What should I do to solve the problem? Help please.

    My iPad shows a message "Cannot find AirPrint printer". I used to use my iPad to print materials using HP wireless printer D110. Now it does not want to print. Is this because I am now using IOS 7? What should I do to solve the problem? Help please.

    Restart your WiFi router and printer by removing power for 30 seconds.

  • IPod Mini Problems Please Help

    This is my second post of the type... no one replied to that so im hoping someone could help me.
    Problems:
    -Wont Update or Load Songs
    -It starts loading, gets to around the 5th song (out of well over 600) and says "Ipod Update Complete, OK To Disconnect" though nothing is on the iPod.
    -Occasionally wont restore to factory settings.
    Okay, before you suggest the five R's, ill note that ive put several MONTHS into this, and ive tried them well over 20 times in order.
    Things Tried
    -5 R's Repeatedly (as noted above)
    -updating on a friends computer (several times with no luck, same problems)
    -requested help over the phone
    -The number i called was the Apple US Help Line, which the person helped me for about an hour before he said he did not know what was up, and transfered me to the Canadian help line, where they demanded a large sum for help, which i could not pay (under 18).
    -When i first noticed the problems, I sent it in (around the end of december)and problems continued upon arrival of the new mini.
    I will also note that my sisters iPod Nano works perfectly fine, no problems, as well as my friends iPods adding songs from my computer.
    Please please help... im currently resorting to a crappy CD player that skips for my music... and have been... its starting to break me inside.
    Thank you,
    Milan

    Natalie,
    If you have your iPod set to transfer your music manually, then that “do not disconnect” message will continue to be displayed on your iPod until you manually eject it.
    You can do this by clicking on the little eject icon next to the iPod listing in the source window of iTunes, or right click on it and select “eject”. Another way would be to use the “safely remove hardware” icon in the system tray next to the clock (looks like a grey rectangle with a green arrow above it). Click on this then select your iPod. Or through Windows, select start/my computer, right click on the iPod, select eject.
    If you have your iPod set to automatically sync with iTunes, right click on the iPod in iTunes, select options and if you have a check mark in the box marked “enable disk use”, remove it and your iPod should automatically disconnect after it’s finished transferring music.
    For the iPod to automatically open iTunes, you have to have "open iTunes when this iPod is attached" checked.
    Go to edit/preferences/iPod to do this.
    If you prefer to keep the iPod set to manual transfer, look at this. In fact, the whole tutorial is a must read.
    Managing Your Songs Manually
    iPod Tutorial
    iTunes Tutorial Windows

  • Apps store wont let me download free app due to previous purchasing problem? help!!

    apps store wont let me download free app due to previous purchasing problem? help!!

    Is the address on your iTunes account exactly the same (format and spacing etc) as on your credit card bill ? If it's not then that might be the reason that you are getting the security code error : http://support.apple.com/kb/TS1646 ? If it is then you could try what it says at the bottom of that page :
    If the issue persists, contact your credit card company and verify that they and any company they use to process credit card authorizations have the correct information on file.
    And/or try contacting iTunes support : http://www.apple.com/support/itunes/contact/ - click on Express Lane, then iTunes > iTunes Store

  • I am trying to send minutes of a meeting to pc users by clicking on export and choosing the word option.  Recipients are unable to open them saying they came as a ZIP compressed folder.  No idea what that is or how to correct the problem.  Help!

    I am trying to send minutes of a meeting created in Pages to pc users by clicking on export then word.  Recipients are telling me they cannot open the minutes which have come as a ZIP compressed folder.  I have no idea what this is or how to fix the problem.  Help?!

    A pc user can open a .zip file by double clicking it.
    If that does not work, you can convert the document to a .pdf by doing the following.
    With the document active, type commannd + P  (the print command).
    In the next screen, on the bottom left, click on PDF, and in the drop down select Save as pdf...
    You will be asked where the .pdf should be saved - the desktop is the easiest.
    Now when you want to send the minutes, you have them as a .pdf file. Anyone with Adobe Acrobat Reder can open this.

  • Report problem plz help

    hi to all
    Using form6i and run in client server. i cant solve this problem please help to all master :
    I have a text item in forms and button. When i type the Customer_Name in text item then all names appears in reports, i want that when i type the name, only that name will appear .
    Please check what is wrong with my code and steps.
    In report wizard, query statement i put "Select * from S_customer"
    then i call the report in forms..
    Report Property pallette:
    Other Parameters=Customer_Name
    Query names=Select * from s_Customer where Customer_Name=:rep(the text item)
    then in forms the button trigger is when button pressed.below is the code:
    declare
    v_Rep varchar2(100);
    repid report_object;
    Begin
    repid := find_report_object('report');
    SET_REPORT_OBJECT_PROPERTY(repid,REPORT_OTHER,’s_customer=’||:Dept.rep);
    v_rep := run_report_object(repid);
    end;
    advance tnx to all

    Hi,
    You need to bulid a parameter list.
    This is a code sample to run a report from Forms:
    (Place it on a button when-button-pressed trigger, to run the report).
    DECLARE
         repid REPORT_OBJECT;
         v_rep VARCHAR2(100);
         rep_status VARCHAR2(20);
    -- this is the parameter list
         pl_id ParamList;
    pl_name VARCHAR2(10) := 'tempdata';
    BEGIN
    -- try to find the parameter list
    pl_id := Get_Parameter_List(pl_name);
              IF Id_Null(pl_id) THEN
                   -- if parameter lsit does not exist
                   -- create it
              pl_id := Create_Parameter_List(pl_name);
              IF Id_Null(pl_id) THEN
              Message('Error creating parameter list '||pl_name);
              RAISE Form_Trigger_Failure;
              END IF;
              ELSE
              Message('Parameter list '||pl_name||' already exists!');
              -- destroy it to clear old parameters
              -- and create it again;
              destroy_parameter_list(pl_id);
              pl_id := Create_Parameter_List(pl_name);
              END IF;
    Add_Parameter(pl_id,'p_customer_name',TEXT_PARAMETER,:customer.cust_name);
    -- add as many parameters as needed
    -- finally run the report passing your parameter list
         repid := FIND_REPORT_OBJECT('report4');
         v_rep := RUN_REPORT_OBJECT(repid, pl_id);
                   Exception
                        when others then
                        Message('Error running report. '||sqlerrm, acknowledge);
    END;
    Also, you need to create the parameter in your report:
    1.- Open your report on reports builder.
    2.- Find the "Data Model" node, and the "User parameters" node.
    3.- Create a parameter: p_customer_name
    4.- Modify your sql from:
    Select * from S_customer
    TO:
    Select * from S_customer
    where Customer_Name=:p_customer_name;
    If you want this parameter to be optional, check the reports online help on "Lexical References".
    Have fun,
    Hugo

  • Problem connecting wirelessly from iMac to NETGEAR router, get invalid password message with WPA and WPA-2 encryption in place but if I remove them, so no security, can connect without a problem. Help!!

    Problem connecting wirelessly from iMac to NETGEAR router, get invalid password message with WPA and WPA-2 encryption in place but if I remove them, so no security, can connect without a problem. Help!!

    Thank you for your suggestion but I have already had a couple of phone sessions with NETGEAR support and they don't see any problems with the router settings etc. They referred me to Apple support, who helped me discover that it is possible to communicate with the router but only if I turn off the encryption/security software, which I don't want to do. The frustrating thing is that I can connect wirelessly from a laptop running Windows 7 and two Anroid smart phones, with WPA-2 in place, without a problem. Do you have any other ideas?

  • Hi my iphone 4 is disabled how can solve this problem? help me please

    hi my iphone 4 is disabled how can solve this problem? help me please

    What do you mean by "disabled"? Disabled by entering the wrong passcode? If so, you'll have to force the phone into recovery mode & restore it to get it working again & remove the passcode:
    Turn your phone off, then force it into recovery mode & restore it:
    Leave the USB cable connected to your computer, but NOT your phone, iTunes running, press & hold the home button while connecting the USB cable to your dock connector, continue holding the home button until you see “Connect to iTunes” on the screen. You may now release the home button. iTunes should now display that it has detected your phone in recovery mode, if not quit and reopen iTunes. If you still don’t see the recovery message repeat these steps again. iTunes will give you the option to restore from a backup or set up as new.

  • My iphone is on recovery mode and i can´t turn on it, when i try to recover it from itunes i get: "unknown error (36), i´ve tried to do lot of things but i can´t  solve my problem. please help!!

    my iphone is on recovery mode and i can´t turn on it, when i try to recover it from itunes i get: unknown error (36), i´ve tried to do lot of things but i can´t solve my problem. please help!!

    Hi, i had the same problem. Try to find the file "apple" or "itunes" don't know it anymore exactly. Ahm well you need to delet any information or just plug in your iphone into an other computer. important is that your iphone never has been pluged in this computer before. This was what i did, and it worked!

  • I have a 160GB Hard Drive in my MBP and use VMWare Fusion and had a 60GB Virtual Machine running Windows XP. Deleted the Virtual Machine and CANNOT find the 60GB space I desperately need!  Anybody out there with a similar problem?  Help!

    I have a 160GB Hard Drive in my MBP and use VMWare Fusion and had a 60GB Virtual Machine running Windows XP. Deleted the Virtual Machine and CANNOT find the 60GB space I desperately need!  Anybody out there with a similar problem?  Help!

    Thanks - Of Course the first thing I checked and did.
    Disc Utility reads as follows:
    Capacity : 159.18 GB (159,182,127,104 Bytes)
      Format : Mac OS Extended (Journaled)  Available : 11.47 GB (11,472,896,000 Bytes)
      Owners Enabled : Yes  Used : 147.71 GB (147,709,231,104 Bytes)
      Number of Folders : 139,540  Number of Files : 511,832
    Activity Monitor(Disc Usage) shows something quite interesting.  Mac HD and Ramanan (Main User) - My hard drive is only 160GB!  Would the retired engineer gentleman please note as well.  Many thanks. Rams

  • How do I copy files onto a hard drive (device) from Mac 2 7 pc. I'm able to transfer files from device but cannot transfer files to device. Anyone had same problem or can help solve this problem? Help pls

    how do I copy files onto a hard drive (device) from Mac 2 7 pc. I'm able to transfer files from device but cannot transfer files to device. Anyone had same problem or can help solve this problem? Help pls

    Welcome to Apple Support Communities
    When you try to copy data to the external drive, what happens? If you don't see any error, the external drive is formatted in NTFS, and OS X can't write in it.
    To be able to write on this external drive, you have to use an app like Paragon NTFS. Another solution would be to format the external drive in FAT32 or exFAT with Disk Utility > http://pondini.org/OSX/DU1.html Make sure you copied all the files of the external disk to the internal disk before doing it

  • Problem Please help me.....Let me know the area to look for it I am a DBA..

    Problem Please help me.....Let me know the area to look for it I am a DBA..Thanks in advance to let me know the cause and the area to look and fix it...
    Server Error in '/' Application.
    Problem with SAP/BAPI. SAP.Connector.RfcCommunicationException: Connect to message server failed Connect_PM MSHOST=prddb01.lamrc.com, R3NAME=PRD, GROUP=Prod HR PRD LOCATION CPIC (TCP/IP) on local host ERROR service 'sapmsPRD' unknown TIME Wed May 04 08:59:06 2005 RELEASE 620 COMPONENT NI (network interface) VERSION 36 RC -3 MODULE ninti.c LINE 428 DETAIL NiPServToNo SYSTEM CALL getservbyname COUNTER 1 at SAP.Connector.SAPConnection.ThrowRfcException(RFC_ERROR_INFO_EX rfcerrInfo, Encoding encoding, String languangeCode) at SAP.Connector.SAPConnection.Open() at SAP.Connector.SAPClient.RfcInvoke(String method, Object[] methodParamsIn) at SAP.Connector.SAPClient.SAPInvoke(String method, Object[] methodParamsIn) at SoftwareKeySAPG.SAPProxy1.Z_Bapi_Load_Kpi_Region(ZSOFT_KPI_REGIONS_MTable&amp; Kpi_Regions, ZSOFT_PROD_TYPETable&amp; Prod_Type) at SoftwareKeySAPG.SAPGSK.LoadKPIRegion(DataSet dsProduct)
    Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
    Exception Details: System.Web.Services.Protocols.SoapException: Problem with SAP/BAPI. SAP.Connector.RfcCommunicationException: Connect to message server failed Connect_PM MSHOST=prddb01.lamrc.com, R3NAME=PRD, GROUP=Prod HR PRD LOCATION CPIC (TCP/IP) on local host ERROR service 'sapmsPRD' unknown TIME Wed May 04 08:59:06 2005 RELEASE 620 COMPONENT NI (network interface) VERSION 36 RC -3 MODULE ninti.c LINE 428 DETAIL NiPServToNo SYSTEM CALL getservbyname COUNTER 1 at SAP.Connector.SAPConnection.ThrowRfcException(RFC_ERROR_INFO_EX rfcerrInfo, Encoding encoding, String languangeCode) at SAP.Connector.SAPConnection.Open() at SAP.Connector.SAPClient.RfcInvoke(String method, Object[] methodParamsIn) at SAP.Connector.SAPClient.SAPInvoke(String method, Object[] methodParamsIn) at SoftwareKeySAPG.SAPProxy1.Z_Bapi_Load_Kpi_Region(ZSOFT_KPI_REGIONS_MTable&amp; Kpi_Regions, ZSOFT_PROD_TYPETable&amp; Prod_Type) at SoftwareKeySAPG.SAPGSK.LoadKPIRegion(DataSet dsProduct)
    Source Error:
    An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below. 
    Stack Trace:
    [SoapException: Problem with SAP/BAPI.
    SAP.Connector.RfcCommunicationException: Connect to message server failed
    Connect_PM  MSHOST=prddb01.lamrc.com, R3NAME=PRD, GROUP=Prod HR PRD
    LOCATION    CPIC (TCP/IP) on local host
    ERROR       service 'sapmsPRD' unknown
    TIME        Wed May 04 08:59:06 2005
    RELEASE     620
    COMPONENT   NI (network interface)
    VERSION     36
    RC          -3
    MODULE      ninti.c
    LINE        428
    DETAIL      NiPServToNo
    SYSTEM CALL getservbyname
    COUNTER     1
       at SAP.Connector.SAPConnection.ThrowRfcException(RFC_ERROR_INFO_EX rfcerrInfo, Encoding encoding, String languangeCode)
       at SAP.Connector.SAPConnection.Open()
       at SAP.Connector.SAPClient.RfcInvoke(String method, Object[] methodParamsIn)
       at SAP.Connector.SAPClient.SAPInvoke(String method, Object[] methodParamsIn)
       at SoftwareKeySAPG.SAPProxy1.Z_Bapi_Load_Kpi_Region(ZSOFT_KPI_REGIONS_MTable&amp; Kpi_Regions, ZSOFT_PROD_TYPETable&amp; Prod_Type)
       at SoftwareKeySAPG.SAPGSK.LoadKPIRegion(DataSet dsProduct)]
       System.Web.Services.Protocols.SoapHttpClientProtocol.ReadResponse(SoapClientMessage message, WebResponse response, Stream responseStream, Boolean asyncCall) +1503
       System.Web.Services.Protocols.SoapHttpClientProtocol.Invoke(String methodName, Object[] parameters) +218
       SoftwareKeyUI.InstalledBaseDataWS.InstalledBaseData.LoadKPIRegionMulti(DataSet products)
       SoftwareKeyUI.InstalledBaseDataAccess.LoadKPIRegionMulti(DataSet products)
       SoftwareKeyUI.InstalledBase.GetRegionDetails(Int32 userId, String product, String regionType)
       SoftwareKeyUI.FilteredAccess.GetRegionDetails(Int32 userId, String product, String regionType)
       SoftwareKeyUI.search.LoadRegionDetails()
       SoftwareKeyUI.search.regionType_SelectedIndexChanged(Object sender, EventArgs e)
       System.Web.UI.WebControls.ListControl.OnSelectedIndexChanged(EventArgs e) +108
       System.Web.UI.WebControls.DropDownList.System.Web.UI.IPostBackDataHandler.RaisePostDataChangedEvent() +26
       System.Web.UI.Page.RaiseChangedEvents() +115
       System.Web.UI.Page.ProcessRequestMain() +1099

    The error is a very basic one - the sapmsPRD service is not known. You will have to go to <NT_ROOT>\system32\drivers\etc and add the entry sapmsPRD 3600 to this file.
    This is basically telling the requester at what port to look for the message server.
    C

  • Problem Please help me.....Let me know the area to look for it

    Problem Please help me.....Let me know the area to look for it I am a DBA..Thanks in advance to let me know the cause and the area to look and fix it...
    Server Error in '/' Application.
    Problem with SAP/BAPI. SAP.Connector.RfcCommunicationException: Connect to message server failed Connect_PM MSHOST=prddb01.lamrc.com, R3NAME=PRD, GROUP=Prod HR PRD LOCATION CPIC (TCP/IP) on local host ERROR service 'sapmsPRD' unknown TIME Wed May 04 08:59:06 2005 RELEASE 620 COMPONENT NI (network interface) VERSION 36 RC -3 MODULE ninti.c LINE 428 DETAIL NiPServToNo SYSTEM CALL getservbyname COUNTER 1 at SAP.Connector.SAPConnection.ThrowRfcException(RFC_ERROR_INFO_EX rfcerrInfo, Encoding encoding, String languangeCode) at SAP.Connector.SAPConnection.Open() at SAP.Connector.SAPClient.RfcInvoke(String method, Object[] methodParamsIn) at SAP.Connector.SAPClient.SAPInvoke(String method, Object[] methodParamsIn) at SoftwareKeySAPG.SAPProxy1.Z_Bapi_Load_Kpi_Region(ZSOFT_KPI_REGIONS_MTable&amp; Kpi_Regions, ZSOFT_PROD_TYPETable&amp; Prod_Type) at SoftwareKeySAPG.SAPGSK.LoadKPIRegion(DataSet dsProduct)
    Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
    Exception Details: System.Web.Services.Protocols.SoapException: Problem with SAP/BAPI. SAP.Connector.RfcCommunicationException: Connect to message server failed Connect_PM MSHOST=prddb01.lamrc.com, R3NAME=PRD, GROUP=Prod HR PRD LOCATION CPIC (TCP/IP) on local host ERROR service 'sapmsPRD' unknown TIME Wed May 04 08:59:06 2005 RELEASE 620 COMPONENT NI (network interface) VERSION 36 RC -3 MODULE ninti.c LINE 428 DETAIL NiPServToNo SYSTEM CALL getservbyname COUNTER 1 at SAP.Connector.SAPConnection.ThrowRfcException(RFC_ERROR_INFO_EX rfcerrInfo, Encoding encoding, String languangeCode) at SAP.Connector.SAPConnection.Open() at SAP.Connector.SAPClient.RfcInvoke(String method, Object[] methodParamsIn) at SAP.Connector.SAPClient.SAPInvoke(String method, Object[] methodParamsIn) at SoftwareKeySAPG.SAPProxy1.Z_Bapi_Load_Kpi_Region(ZSOFT_KPI_REGIONS_MTable&amp; Kpi_Regions, ZSOFT_PROD_TYPETable&amp; Prod_Type) at SoftwareKeySAPG.SAPGSK.LoadKPIRegion(DataSet dsProduct)
    Source Error:
    An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.
    Stack Trace:
    [SoapException: Problem with SAP/BAPI.
    SAP.Connector.RfcCommunicationException: Connect to message server failed
    Connect_PM MSHOST=prddb01.lamrc.com, R3NAME=PRD, GROUP=Prod HR PRD
    LOCATION CPIC (TCP/IP) on local host
    ERROR service 'sapmsPRD' unknown
    TIME Wed May 04 08:59:06 2005
    RELEASE 620
    COMPONENT NI (network interface)
    VERSION 36
    RC -3
    MODULE ninti.c
    LINE 428
    DETAIL NiPServToNo
    SYSTEM CALL getservbyname
    COUNTER 1
    at SAP.Connector.SAPConnection.ThrowRfcException(RFC_ERROR_INFO_EX rfcerrInfo, Encoding encoding, String languangeCode)
    at SAP.Connector.SAPConnection.Open()
    at SAP.Connector.SAPClient.RfcInvoke(String method, Object[] methodParamsIn)
    at SAP.Connector.SAPClient.SAPInvoke(String method, Object[] methodParamsIn)
    at SoftwareKeySAPG.SAPProxy1.Z_Bapi_Load_Kpi_Region(ZSOFT_KPI_REGIONS_MTable&amp; Kpi_Regions, ZSOFT_PROD_TYPETable&amp; Prod_Type)
    at SoftwareKeySAPG.SAPGSK.LoadKPIRegion(DataSet dsProduct)]
    System.Web.Services.Protocols.SoapHttpClientProtocol.ReadResponse(SoapClientMessage message, WebResponse response, Stream responseStream, Boolean asyncCall) +1503
    System.Web.Services.Protocols.SoapHttpClientProtocol.Invoke(String methodName, Object[] parameters) +218
    SoftwareKeyUI.InstalledBaseDataWS.InstalledBaseData.LoadKPIRegionMulti(DataSet products)
    SoftwareKeyUI.InstalledBaseDataAccess.LoadKPIRegionMulti(DataSet products)
    SoftwareKeyUI.InstalledBase.GetRegionDetails(Int32 userId, String product, String regionType)
    SoftwareKeyUI.FilteredAccess.GetRegionDetails(Int32 userId, String product, String regionType)
    SoftwareKeyUI.search.LoadRegionDetails()
    SoftwareKeyUI.search.regionType_SelectedIndexChanged(Object sender, EventArgs e)
    System.Web.UI.WebControls.ListControl.OnSelectedIndexChanged(EventArgs e) +108
    System.Web.UI.WebControls.DropDownList.System.Web.UI.IPostBackDataHandler.RaisePostDataChangedEvent() +26
    System.Web.UI.Page.RaiseChangedEvents() +115
    System.Web.UI.Page.ProcessRequestMain() +1099

    Hi
    You should make a mapping for the service sapmsPRD in your /etc/services file (On Windows: C:WINDOWSSYSTEM32DRIVERSETCservices). If your instance number is 00 you will have to add the following entry:
    sapmsPRD      3600/tcp
    Good luck!
    René van Es

Maybe you are looking for