Database Connection problem please help

Hi,
I have a servlet that basically connects to the database if the userid and password is correct.
I have a "login.html" page where the user enters the "userid" and "password".The servlet does the checking and grants access to the user.
My question is as follows.As soon as I startup tomcat type in the url login.html,then press the submit button,(both the fields are blank) the servlet says "ok" this is this information is present in the database.It should say "not ok".Hope I question is clear.The code for the servlet is given below.
package package1.structure;
import javax.servlet.*;
import javax.servlet.http.*;
import java.io.*;
import java.util.*;
import java.sql.*;
public class AuthenticateServlet2 extends HttpServlet {
private String user="";
private String pass="";
private String username="";
private String password="";
private String message1="";
public void init() {
try{
    Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
    System.out.println("Driver loaded successfully");
   }//close try
catch (ClassNotFoundException e) {
System.out.println(e.toString());
}//close catch
}//close init() method
public void doGet(HttpServletRequest request,HttpServletResponse response)throws ServletException, IOException
} //close doGet
public void doPost(HttpServletRequest request,HttpServletResponse response)
throws ServletException, IOException
  user = request.getParameter("username").trim();
  pass = request.getParameter("password").trim();
  System.out.println("*"+user+"*");
  System.out.println("*"+pass+"*");
  String message = null;
try{
  Connection con= DriverManager.getConnection("jdbc:odbc:MyDS");
  System.out.println("Successfully connected to database");
  PreparedStatement pstmt;
  pstmt = con.prepareStatement("SELECT username,password FROM users" + " WHERE username ='" + user + "'" +
  " AND password='" + pass + "'");
  ResultSet rs = pstmt.executeQuery();
  if(rs.next())
      username = rs.getString(1);
       password = rs.getString(2);     
if (username != null && password != null && user.equals(username) && pass.equals(password) ){
    message ="ok";
    PrintWriter out = response.getWriter();
    out.print("<B>" + message + "</B>");
    //response.sendRedirect ("http://localhost:8080/thankyou.html");
}//closes the if statement
else {
     message="not ok";
     PrintWriter out = response.getWriter();
     out.print("<B>" + message + "</B>");
    //response.sendRedirect ("http://localhost:8080/sampleapp/login.html");
}//close else statement
}//closes 2ndtry
catch (SQLException e) {
System.out.println(e.toString());
}//closes 2ndcatch
}//close doPost
}//close classKindly let me know ASAP.
Regarding the database.The fields in the database are "username" and "password" and it has one tuple
"xyz" and "xyz"
Hope that my question is rightly put.
Thanking you
AS

Actually, I think the servlet is doing the right thing
by printing "ok". A quick glance at your code tells
me that username and password are both members of your
servlet class and initialized to "". Neither is null,
and both are blank.
If your HTML page sends user and pass as blank
strings, you'll do a database query for those values.
If they don't appear in the database, your ResultSet
will have no rows and the username and password data
members will not be updated.
When you get to your if test, neither username nor
password is null and both are equal to the values
passed in from the HTML. Hence the "ok".
If you initialize your username and password members
to null this might still work.
Be sure to set them back to null when you finish the
test.
If you take all that JDBC code out of the servlet and
isolate it into its own class, you can test it out by
feeding it valid and invalid username and password
combinations. Once you've got that working perfectly,
you can just have the servlet instantiate your
database object and call its methods. If you have any
problems after that point, you know they're due to the
servlet and not the database interactions.
Right now the database and servlet are confounded.
Separate them out and you might make faster progress.
- MODHello,
Thanks for the reply.Will consider your points for a proper coding.Will keep posting.
AS

Similar Messages

  • Network connection problems, please help!

    I have had an iPod Touch (4th generation) for over a year now and it worked fine. Today, something went wrong with my network connection. One moment it says that I'm connected to a network, and a few seconds later it says I'm not connected... Then a few seconds later it's connected again. I have full wifi bars, and it does it throughout my whole house. The wifi symbol keeps going on and off. I tried turning my Verizon Westell Model 6100G Modem off and back on because this normally fixes my wifi connection problems. This didn't work. Then I tried turning my iPod off and back on. This didn't work. I tried turning the wifi off and back on. This didn't work. I tried forgetting my network and signing back in. This didn't work. I also tried resetting the network, and this didn't work either. I'm not having any connection problems with my laptop, it's working fine. It's only my iPod. I'm still able to use the wifi, but for a split second, it will not work. I'm not sure what else to do. It's very annoying! I'm going to see if it does this at other peoples houses with their wifi. Can any one tell me what's wrong and how I should fix it? My only theory is a broken antenna...Please help! Thanks!

    I have two things you could try.
    1. Plug your iPod into the host computer that which the network is based around because sometimes the network has trouble identifying a device if it has been a while since you plugged it into the computer.
    2. Find some way to get your network information (IP address, Subnet Mask, Router, DNS numbers) from another device on the network (e.g. laptop). Then go to Settings > Wi-FI and find your router and tap the blue arrow to the right of the name and tap the tab that says "Static" and enter this information accordingly. Then exit back to the network names menu and re-enter your passcode for your network (assuming you have a passcode)

  • Oracle connection problem - please help

    Hi.
    On my Win2k machine I first installed Oracle Developer 6.0 in C:\ORANT.
    After that I also installed Oracle in C:\ORACLE.
    I always used sqlplus C:\ORACLE\BIN\SQLPLUS.EXE till now. Now I have to
    use Forms builder to complete my homework. The problem is that I can't
    connect to my Oracle database with Forms builder.
    I try to solve my problem by comparing runs of C:\ORACLE\BIN\SQLPLUS.EXE
    with C:\ORANT\BIN\SQLPLUS.EXE (from developer tools). So I execute:
    - sqlplus my_user/my_pass@testconn
    in each directory. In the C:\ORACLE\BIN (using sqlplus that come with
    Oracle database) all works fine, while in C:\ORANT\BIN (using sqlplus
    that come with development tools) I get an error:
    - ORA-12705: invalid or unknown NLS parameter value specified
    I try to fix the problem by editing copying connection data from
    C:\ORACLE\network\ADMIN\tnsnames.ora to
    C:\ORANT\NET80\ADMIN\tnsnames.ora, but this didn't help.
    Can someone help me?
    My tnsnames.ora:
    TESTCONN.world =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = TCP)(HOST = 127.0.0.1)(PORT = 1521))
    (CONNECT_DATA =
    (SID = MYSID)
    [i]Long postings are being truncated to ~1 kB at this time.

    Hi Damir,
    Basically, it's possible the NLS_LANG parameter for your
    database install is invalid or isn't a available default
    value. This is a known problem.
    I didn't any specific about one connection route working
    and the other not, as in your case. However, I did find
    some information on this problem when connecting through
    Developer to a DB install.
    The quick fix is to ensure your client initialisation
    files have the 'NLS_LANGUAGE' parameter commented out.
    If the client doesn't have an "NLS_LANGUAGE" parameter
    entry the client and server use the language parameter
    indicated by the server.
    If that doesn't work (or you want to keep this parameter)
    check the NLS_LANG parameter in the DB using your working
    SQL*Plus connection. Try a default value like:
    AMERICAN_AMERICA.US7ASCII
    Also, you can try this:
    SELECT * FROM sys.v$nls_valid_values;
    Whatever you set for NLS_LANG should exist in the values
    returned for this query, otherwise you'll get the error.
    Unfortunately, resolving NLS_LANG issues is not always
    this easy. If commenting out or changing the parameters
    above still doesn't fix the problem, it is possible you need to reinstall the DB and choose the default language option. How you do this depends on the installer options
    for DB version you are using.
    One last point - I suggest you post your query to the
    Forms & Reports forums here on OTN too. This forum is
    ideally for Designer, rather than Developer questions.
    Hope all this helps.
    Regards,
    Dominic
    Designer Product Management
    Oracle

  • Oracle 10g Database startup problem Please help

    i am trying to start database but getting error;
    SQL> startup
    ORACLE instance started.
    Total System Global Area 281018368 bytes
    Fixed Size 788776 bytes
    Variable Size 229373656 bytes
    Database Buffers 50331648 bytes
    Redo Buffers 524288 bytes
    Database mounted.
    ORA-16038: log 2 sequence# 44103 cannot be archived
    ORA-19809: limit exceeded for recovery files
    ORA-00312: online log 2 thread 1: 'D:\ORADATA\ASDB\REDO02.LOG'
    Please guide and help
    Thanks,
    Waheed.

    The error stack is interpreted as follows:
    ORA-16038:     log string sequence# string cannot be archived
    Cause:     An attempt was made to archive the named file, but the file could not be archived. Examine the secondary error messages to determine the cause of the error.
    Action:     No action is required
    ORA-19809:     limit exceeded for recovery files
    Cause:     The limit for recovery files specified by the DB_RECOVERY_FILE_DEST_SIZE was exceeded.
    Action:     The error is accompanied by 19804. See message 19804 for further details.
    ORA-19804:     cannot reclaim string bytes disk space from string limit
    Cause:     Oracle cannot reclaim disk space of specified bytes from the DB_RECOVERY_FILE_DEST_SIZE limit.
    Action:     There are five possible solutions: 1) Take frequent backup of recovery area using RMAN. 2) Consider changing RMAN retention policy. 3) Consider changing RMAN archivelog deletion policy. 4) Add disk space and increase DB_RECOVERY_FILE_DEST_SIZE. 5) Delete files from recovery area using RMAN.
    ORA-00312:     online log string thread string: 'string'
    Cause:     This message reports the filename for details of another message.
    Action:     Other messages will accompany this message. See the associated messages for the appropriate action to take.
    DB_RECOVERY_FILE_DEST_SIZE specifies (in bytes) the hard limit on the total space to be used by target database recovery files created in the flash recovery area. You should increase this value.
    On the other hand, out from the context I guessed it is a 10gRx database, but you should specify this on your thread, as well as specify os details.
    ~ Madrid

  • Really annoying Internet Connection problem, please help!!!

    At first my macbook ran perfectly, but about a month ago i started running into this problem. Everytime i boot my computer up at home it acts like im connected (bars...it even checks my email using gmail notifier which is running)...then after about 20 seconds or upon opening a browser it boots me off.
    -if i use the pulldown menu to get my network it fails to connect, if i hit reconnect after that it fails to connect and i have to restart in order for it to work.
    -the only way i can get it to work is from the pulldown go to "open internet connect" then from that pulldown select my network.
    does anyone know what the problem is here? it is terribly annoying to to be able to just boot up and surf.
    another, not terribly important question as i dont use windows much...if im using the mac side, then reboot onto windows my internet dies after about 2 minutes every time. If i just boot up windows without having been in mac first it doesn't do this. (and the only fix is to unplug and then plug back in the router).
    thanks for any help,
    Jeremy

    I am seeing a similar problem at home.
    We have two existing PowerBooks and an iMac G5 which all connect to my Airport Extreme basestation with no problems.
    We just got a MacBook Pro which is having a lot of trouble staying on the airport wifi network. It keeps dropping off and when I attempt to reconnect, it gets an error doing that and offers to retry. The retry always fails.
    This seems to happen if the MacBook is idle for a time and comes back up. I am running the airport environment as pure 802.11G only with WPA encryption. This feels like it is an issue with the wireless card in the MacBook Pro as our other machines in the exact same area do not have the problem.

  • Touch connectivity problems - please help!!!

    Hi.
    I've got an 1st gen 8Gb Touch that has been fine for ages until now !
    Safari can't open a web page - I get the message "Safari can't open the page because it can't find the server". Also Mail, YouTube, Weather and Stocks don't update.
    It is showing I'm connected to my WiFi network and all the other computers in my house can connect to the internet without any problem. I haven't changed anything on mt router or Touch from yesterday when everything was working fine
    I've just tried restoring the Touch through iTunes but this hasn't solved the problem I'm afraid
    Thanks for any help
    Mark.

    Have you tried resetting your network settings?
    Settings > General > Reset > Reset Network Settings
    Even though you just restored the iPod, try this step if you restored it from your backup vs. setting it up as a new iPod.
    If that doesn't help, try powercycling your router. Just turn it off for about 10 seconds, turn it back on, check your Wi Fi settings to make sure you're connected, and then try Safari/other apps again.
    CG

  • Web Service connect problem, Please Help!!!

    I developed a web service end point following the pattern of adventure as Purchase Order End Point Bean,
    WSDL is correctly generated for both Server anc Client End:
    <?xml version="1.0" encoding="UTF-8"?>
    <definitions name="DownloadWSService" targetNamespace="urn:DownloadWSService" xmlns:tns="urn:DownloadWSService" xmlns="http://schemas.xmlsoap.org/wsdl/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/">
    <types/>
    <message name="DownloadWSInterface_downloadWorkAssignments">
    <part name="String_1" type="xsd:string"/></message>
    <message name="DownloadWSInterface_downloadWorkAssignmentsResponse">
    <part name="result" type="xsd:boolean"/></message>
    <portType name="DownloadWSInterface">
    <operation name="downloadWorkAssignments" parameterOrder="String_1">
    <input message="tns:DownloadWSInterface_downloadWorkAssignments"/>
    <output message="tns:DownloadWSInterface_downloadWorkAssignmentsResponse"/></operation></portType>
    <binding name="DownloadWSInterfaceBinding" type="tns:DownloadWSInterface">
    <soap:binding transport="http://schemas.xmlsoap.org/soap/http" style="rpc"/>
    <operation name="downloadWorkAssignments">
    <soap:operation soapAction=""/>
    <input>
    <soap:body encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" use="encoded" namespace="urn:DownloadWSService"/></input>
    <output>
    <soap:body encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" use="encoded" namespace="urn:DownloadWSService"/></output></operation></binding>
    <service name="DownloadWSService">
    <port name="DownloadWSInterfacePort" binding="tns:DownloadWSInterfaceBinding">
    <soap:address location="REPLACE_WITH_ACTUAL_URL"/></port></service></definitions>
    and I deployed both server and client end of this web service on Sun One Application 7 (Developer version) successfully, in the application server log, I can see the info :
    [#|2004-04-16T15:08:20.865+1000|INFO|j2ee-appserver1.4|javax.enterprise.system.t
    ools.deployment|_ThreadID=12;|DPL5306:EJB Web Service Endpoint [DownloadWSInterf
    acePort] listening at address [http://localhost:8080/webservice/DownloadWSBean]|#
    But when I try to call it on the client side, I got the error and here is the log:
    2004-04-16 15:48:28,477 WEB DEBUG [http8080-Processor4] - Port Info is http://localhost:8080/webservice/DownloadWSBean
    calling download ws endpoint java.rmi.RemoteException: HTTP Status-Code 404: Not Found - /webservice/DownloadWSBean; nested exception is:
    HTTP Status-Code 404: Not Found - /webservice/DownloadWSBean
    Could anyone help and point to me a right direction, I have been hunting the problem for days and couldnt find a clue.
    Thanks a lot in advance!

    Hi, I finally solved this problem, the JDNI entry value is not configured properly for the session bean that's built for the service end point.
    Changed JNDI value, and use that value in the service locator to look up the session bean home, it worked.

  • Firewall + Oracle connection problem, please help!

    We've written a Java application (GUI) that resides on end user desktop. The tool uses a type 4 driver to connect to Oracle that is nested inside a firewall. The connection fails when trying to login to Oracle from the clients' computers that are not in our network; error says "Invalid protocol error!". Please advise...
    Note- there are no connectivity issues with the tool when running inside the network.
    Thanks,
    KN

    You need to open up the firewall for the selected port and probably the TCP/IP protocol on that port.
    Thomas

  • ITunes connection problem, please help

    Dear Apple-forum members,
    Yesterday I tried to sync my iPhone 4 with iTunes (Windows 7 64-bit). When it was at step 3, Windows gave me the message that iTunes did not respond, and shuts it down. While this happened, my iPhone was still in the sync mode but didn't do anything, so I cancelled it.
    When I tried to sync again, I got error 0xe8000065. After a restart, iTunes doesn't even know that the iPhones was connected, although my phone WAS showed inside 'My Computer' (so my computer DOES recognise my iPhone).
    I deleted the adapter, and reinstalled it again. Same issue. 
    I connected my iPhone with another computer, and reconnected it with my own computer. Now I get another error 0xe8000001.
    I deleted and reinstalled iTunes, set iTunes as 'administrator', but also the same issue.
    Anyone having the same problem. 
    How can I solve this?
    I use:
    Latest iTunes version 64-bits
    Windows 7 64-bits
    iPhone 4 iOS 4.3 (not jailbreaked)

    You need to place the iPod in recovery mode and then connect it to your new computer and restore it via iTunes. Note that you will lose all content on the iPod. You can redownload apps at no additional cost provided you are signed into the same iTunes account that originally purchased the apps.

  • Ipod connection problem, please help!!

    Hi
    The problem is when i plug my ipod nano, into my computer the new hardware sound happens and it shows up in device manager and disk management but doesnt come up in itunes, my computer or ipod updater. I have tried the 5 r's (cant restore because it doesnt show up) and tried changing the drive letter. i have recently upgraded motherboard and it has stopped working since then so i am guessing it is something to do with that. (also it works on other computers)
    Thanks Joss

    HotSpot Shield sounds like that may be the issue--especially if your IP address is different.
    Basic troubleshooting steps  
    17" 2.2GHz i7 Quad-Core MacBook Pro  8G RAM  750G HD + OCZ Vertex 3 SSD Boot HD 
    Got problems with your Apple iDevice-like iPhone, iPad or iPod touch? Try Troubleshooting 101
     In Memory of Steve Jobs 

  • Connection Problem please help

    I'm looking for a cable that goes into the optical out (i think it's called that, where you put headphones and speakers and stuff) and goes into the red and white input things that you find on the back of TV's and stuff.
    It's so i can can connect my macbook pro to my bass amp to play songs through it?
    Any suggestions?

    So you want to play sounds from your mac to your bass amp? Does a bass amp accept normal stereo style music signals (I don't know anything about bass amps).
    The cable you are looking for is a minijack (sometimes called a miniphono), to stereo audio. You can pick these up at Best Buy or Circuit City, or order them online which is probably cheaper. They probably range somewhere between $5-$20.
    Just be careful that your amp can handle the signals your Mac will output.
    Cheers,
    Josh

  • Immediate HELP in Tomcat 5 to Postgresql 7.4 database connectivity problem

    Hi,
    I failed to connect Tomcat 5.0.24 with Postgresql
    7.4.2. The files created by me and the changes i had
    made in the existing files are rates.jsp,
    conversionDAO.java, web.xml and server.xml. The error
    message on the top of the rest of it was "The value of
    useBean class attribute converter.conversionDAO is
    invalid". So far I found out that the coding for
    database connectivity purpose in conversionDAO.java
    cause the error. Another thing is Postgresql jdbc
    driver is required to set in the CLASSPATH for the
    java file to access the Postgresql database. I don't
    know where should I put it in Tomcat for web
    application. Anyway, I put it in
    $CATALINA_HOME/shared/lib according the book i
    refered. I do the database connectivity coding refer
    to the Tomcat Kick Start book from Sams Publishing.
    Below are the coding involved, please show me the
    mistake i had made. Thank you.
    ----server.xml----
    <Context path="/database"
    docBase="${catalina.home}/webapps/database" debug="0"
    reload="true">
    <ResourceParams name="jdbc/conversion">
    <parameter>
    <name>username</name>
    <value>myusername</value>
    </parameter>
    <parameter>
    <name>password</name>
    <value>mypassword</value>
    </parameter>
    <parameter>
    <name>driverClassName</name>
    <value>org.postgresql.Driver</value>
    </parameter>
    <parameter>
    <name>url</name>
    <value>jdbc:postgresql://localhost/conversion</value>
    </parameter>
    </ResourceParams>
    </Context>
    ----web.xml----
    <servlet>
    <servlet-name>conversionDAO</servlet-name>
    <servlet-class>converters.conversionDAO</servlet-class>
    </servlet>
    <resource-ref>
    <res-ref-name>jdbc/conversion</res-ref-name>
    <res-type>javax.sql.DataSource</res-type>
    <res-auth>Container</res-auth>
    </resource-ref>
    ----conversionDAO.java----
    public conversionDAO() throws SQLException,
    NamingException
    Context init = new InitialContext();
    Context ctx = (Context)
    init.lookup("java:comp/env");
    DataSource ds = (DataSource)
    ctx.lookup("jdbc/conversion");
    con = ds.getConnection();
    select = con.prepareStatement(
    "SELECT rate FROM Exchange WHERE src= ? AND dst =

    Immediate HELP in Tomcat 5 to Postgresql 7.4 database connectivity problem (cont.)
    Errors log
    2004-06-06 01:07:53 StandardContext[servlets-examples]SessionListener: contextDestroyed()
    2004-06-06 01:07:53 StandardContext[servlets-examples]ContextListener: contextDestroyed()
    2004-06-06 01:07:53 StandardContext[jsp-examples]SessionListener: contextDestroyed()
    2004-06-06 01:07:53 StandardContext[jsp-examples]ContextListener: contextDestroyed()
    2004-06-06 01:07:59 StandardContext[balancer]org.apache.webapp.balancer.BalancerFilter: init(): ruleChain: [org.apache.webapp.balancer.RuleChain: [org.apache.webapp.balancer.rules.URLStringMatchRule: Target string: News / Redirect URL: http://www.cnn.com], [org.apache.webapp.balancer.rules.RequestParameterRule: Target param name: paramName / Target param value: paramValue / Redirect URL: http://www.yahoo.com], [org.apache.webapp.balancer.rules.AcceptEverythingRule: Redirect URL: http://jakarta.apache.org]]
    2004-06-06 01:08:00 StandardContext[jsp-examples]ContextListener: contextInitialized()
    2004-06-06 01:08:00 StandardContext[jsp-examples]SessionListener: contextInitialized()
    2004-06-06 01:08:00 StandardContext[servlets-examples]ContextListener: contextInitialized()
    2004-06-06 01:08:00 StandardContext[servlets-examples]SessionListener: contextInitialized()
    2004-06-06 01:08:01 StandardWrapperValve[jsp]: Servlet.service() for servlet jsp threw exception
    org.apache.jasper.JasperException: /rates/rates.jsp(5,0) The value for the useBean class attribute converters.conversionDAO is invalid.
         at org.apache.jasper.compiler.DefaultErrorHandler.jspError(DefaultErrorHandler.java:39)
         at org.apache.jasper.compiler.ErrorDispatcher.dispatch(ErrorDispatcher.java:357)
         at org.apache.jasper.compiler.ErrorDispatcher.jspError(ErrorDispatcher.java:141)
         at org.apache.jasper.compiler.Generator$GenerateVisitor.visit(Generator.java:1217)
         at org.apache.jasper.compiler.Node$UseBean.accept(Node.java:1116)
         at org.apache.jasper.compiler.Node$Nodes.visit(Node.java:2163)
         at org.apache.jasper.compiler.Node$Visitor.visitBody(Node.java:2213)
         at org.apache.jasper.compiler.Node$Visitor.visit(Node.java:2219)
         at org.apache.jasper.compiler.Node$Root.accept(Node.java:456)
         at org.apache.jasper.compiler.Node$Nodes.visit(Node.java:2163)
         at org.apache.jasper.compiler.Generator.generate(Generator.java:3261)
         at org.apache.jasper.compiler.Compiler.generateJava(Compiler.java:244)
         at org.apache.jasper.compiler.Compiler.compile(Compiler.java:439)
         at org.apache.jasper.compiler.Compiler.compile(Compiler.java:422)
         at org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:507)
         at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:274)
         at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:292)
         at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236)
    ----more----

  • Oracle Designer Problem Please help me

    Sir,
    1) I created a database
    2) Run>cd d:\Oracle_home\repadm61\admin\@ckqa
    @ckparams.txt
    @ ckvalqa
    @ ckcreate
    3)Opened Repository Administration Utility
    Log in as 'repos_manager/repos_manager@orcltest'
    Installed Repository.
    4) Opened Oracle 9i Designer. I am able to connect
    as 'repos_manager/repos_manager@orcltest'
    But I am not able to logon as any other user in same database/ any other user in different database. Why?
    Please help me.
    regards
    Mathew

    duplicate thread, see this one -> Re: Oracle Designer Problem Please help me

  • 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

  • Two Deliveries did not go through Batch Job Runing

    Hi, In this company every evening the automatic batch Job for Billing due list is run but on Nov 23 one Deliver and on Nov 30 another delivery has not gone through i.e. the invoices were not created for these two deliveries. I checked in VF01, the in

  • Personalization preview okay but doesn't show for end user

    Hi, I've built a folder structure for iviews, pages, worksets, and roles and then delta linked across the standard ESS iviews into my new iview folder. I've done the same with the pages and then updated the page with the copied iview and from there b

  • Monitor Capture for IPv6

    Trying to capture IPv6 BGP hello traffic with monitor capture feature without success. With the monitor capture for IPv6 traffic active and running; If I traceroute (IPv6) from this same router I do see the IPv6 traceroute traffic but NEVER IPv6 BGP

  • Reconciliation account ready for input

    Dear All, While creating GL, if it is a recon account, then it is picked up form the Account Type (ie) either vendors/debtors/assets. What is the use of 'Reconciliation account ready for input', Will there be any other recon items other than vendors/

  • Unable to determine XI party

    Hi, I'm still trying to implement an IDoc to RosettaNet scenario. It seems to work fine until the last step, the sending of the PIP message. In Message Monitoring I get the following error. Delivering to channel: PIP3B2_V0100_Shipper_Send_AdvanceShip