I got error when i had connectivity SQL server 2000 by using jsp page plz

HTTP Status 500 -
type Exception report
message
description The server encountered an internal error () that prevented it from fulfilling this request.
exception
javax.servlet.ServletException: [Microsoft][SQLServer 2000 Driver for JDBC]Error establishing socket.
     org.apache.jasper.runtime.PageContextImpl.doHandlePageException(PageContextImpl.java:848)
     org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:781)
     org.apache.jsp.Admin.Login_jsp._jspService(org.apache.jsp.Admin.Login_jsp:179)
     org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97)
     javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
     org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:322)
     org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:291)
     org.apache.jasper.servlet.JspServlet.service(JspServlet.java:241)
     javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
root cause
java.sql.SQLException: [Microsoft][SQLServer 2000 Driver for JDBC]Error establishing socket.
     com.microsoft.jdbc.base.BaseExceptions.createException(Unknown Source)
     com.microsoft.jdbc.base.BaseExceptions.getException(Unknown Source)
     com.microsoft.jdbc.base.BaseExceptions.getException(Unknown Source)
     com.microsoft.jdbc.sqlserver.tds.TDSConnection.<init>(Unknown Source)
     com.microsoft.jdbc.sqlserver.SQLServerImplConnection.open(Unknown Source)
     com.microsoft.jdbc.base.BaseConnection.getNewImplConnection(Unknown Source)
     com.microsoft.jdbc.base.BaseConnection.open(Unknown Source)
     com.microsoft.jdbc.base.BaseDriver.connect(Unknown Source)
     java.sql.DriverManager.getConnection(DriverManager.java:525)
     java.sql.DriverManager.getConnection(DriverManager.java:140)
     org.apache.jsp.Admin.Login_jsp._jspService(org.apache.jsp.Admin.Login_jsp:75)
     org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97)
     javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
     org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:322)
     org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:291)
     org.apache.jasper.servlet.JspServlet.service(JspServlet.java:241)
     javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
note The full stack trace of the root cause is available in the Apache Tomcat/5.5.9 logs.

http://support.microsoft.com/kb/313178

Similar Messages

  • How can i connect to a SQL Server 2000 database usgin JSP?

    I need (URGENT) to connect to SQL Server 2000 databse using JSP. I do not know how to program using JSP, so if anyone has any code snippet please let me see it. What i need is to give my site some login/password security.
    Anyone?
    Thx.

    just create an ODBC of your database from control pannel -> administrative tools -> data sources (ODBC) ,double click it .....
    go to the tab SYstem DSN , click on ADD button. select the driver for your connection. it will be the last one in the list "SQL Server".
    click Next then give ur DSN name there, description and Server Name , on next give your username and password of SQL server. when it will be connected to the server celect your database from there and hence there will be an ODBC bridge same as in case of MS Access.
    code for connecting to ODBC is
    // DSN-NAME same as in System DSN.
    // username and password are of your databse
    try
              url = "jdbc:odbc:DSN-NAME";
              Class.forName( "sun.jdbc.odbc.JdbcOdbcDriver" );
              connect = DriverManager.getConnection( url,"username","password" );
              catch ( ClassNotFoundException cnfex ) {
                        setErrorMsg( cnfex.getMessage() );
              catch ( SQLException sqlex ) {
                        setErrorMsg( sqlex.getMessage() );
              catch ( Exception ex ) {
                        setErrorMsg( ex.getMessage() );
    Now you are connected to the SQL Server ..... use connect object for further processing .........

  • How to connect Sql Server 2000 using JDBC ODBC Driver

    How to connect Sql Server 2000 using JDBC ODBC Driver ?
    plz Send Syntax.
    thanks

    In SQL Server 2000 the driver class is com.microsoft.jdbc.sqlserver.SQLServerDriver
    The connection URL for the default SQL Server 2000 database is jdbc:sqlserver://localhost:1433
    Class.forName(
      "com.microsoft.sqlserver.jdbc.
      SQLServerDriver");
    String url =
      "jdbc:sqlserver://localhost:1433";
    Connection conn = DriverManager.
      getConnection(
      url, "sa", "sqlserver");

  • How to compare 2 dates in SQL Server 2000 DB using Java?

    How do you compare 2 dates in SQL Server 2000 DB using Java?
    Let's say we have two fields: Date Reported and Target Finish Date.
    Date Reported is 09-10-2004 09:55:55: PM
    Target Finish Date is 09-12-2004 11:59:59: PM
    What i want to happen is i want to convert both dates to days and get the difference of the two.
    can SQL Server 2000 DB do this?

    it doesnt wrk.
    ok here's what i did:
    iv tested a simple code for this case.
    I created a table name tblDate which has 3 columns namely date_ID, date_From (datatype datetime), date_To (datatype datetime).
    I inserted 1 row: date_ID has the value 1, date_From has the value 10/22/2004, and date_To has the value 10/24/2004.
    i run the java code below:
    int days = 0;
              String query = "SELECT date_From, date_To cast(date_From-date_To AS int) AS Diff FROM tblZoo WHERE date_ID = '1'";
              try
                   DBConnect db = new DBConnect();
                   db.openCon();
                   ResultSet rs = db.execute(query);
                   while(rs.next())
                        days = rs.getInt("Diff");
                   db.closeCon();                         
              catch (Exception ex)
                   System.out.println("Error on Execution: " + ex);
              return days;___________
    an error occurred: Error on Execution: java.lang.nullpointerexception

  • Error when importing metadata from sql server

    Hi,
    I am having problem connecting to SQL Server. from OWB.(my owb client is 11.1.0.6.0 and owb repository is 11.1.0.1.1)
    I am using Oracle Database Gateways 11g Release 1 (11.1.0.6.0) to connect.
    i make all the configuration for the gateway .
    and execute the dg4msql_cvw.sql to create corresponding views in sql server ...
    THe dblink allows me to run SQL query from sql plus to the tables in SQL server (the host that i want to import data from is i sql server 2000).
    When I test the connnection from owb to SQL Server it returns "successful"
    but when i go to import the meta data of tables in SQL Server i get this error.
    ORA-00942: table or view does not exist
    [Oracle][ODBC SQL Server Driver][SQL Server]Invalid object name 'V$VERSION'.[Oracle][ODBC SQL Server Driver][SQL Server]Statement(s) could not be prepared.
    ORA-02063: preceding 2 lines from FIN_LINK
    owb looking for v$version in sql server and i dont know why .
    i tried to create this view in sql server like this
    create table v$version (banner varchar(20))
    but i dont know what kind of data should i insert in ,,,,,,,
    is there any idea how can i fix this
    thanx

    thanx dallan for replying
    i really execute that script u talk about and i mentioned that in first post ...
    its' dg4msql_cvw.sql script and its make a views in sqlservere
    its create these views :
    ALL_CONS_COLUMNS
    ALL_IND_COLUMNS
    USER_CONS_COLUMNS
    USER_IND_COLUMNS
    ... i r execute it as following : i have windows server 2003, the sql server 2000 installed on this server
    i open the query analyzer and connect to the user that hold the db, i select open and browse to the dg4msql_cvw.sq
    and then execute ... but still same error
    i think this may works ..right?
    and this is the trace log file :
    note :
    here are the trace log file :
    Oracle Corporation --- TUESDAY MAY 05 2009 12:44:14.846
    Heterogeneous Agent Release
    11.1.0.6.0
    Oracle Corporation --- TUESDAY MAY 05 2009 12:44:14.846
    Version 11.1.0.6.0
    HOSGIP for "HS_FDS_TRACE_LEVEL" returned "On"
    RC=-1 from HOSGIP for "PATH"
    PATH from environment is "D:\app\OraGtw\bin;D:\app\product\product\11.1.0\db_1\bin;D:\app\BI\server\Bin;D:\app\BI\web\bin;D:\app\BI\web\catalogmanager;D:\app\BI\SQLAnywhere;D:\app\product\product\11.1.0\db_1\jdk\bin;D:\app\BI\server\Bin;D:\app\BI\web\bin;D:\app\BI\web\catalogmanager;D:\app\BI\SQLAnywhere;D:\app\product\product\11.1.0\db_1\jdk\bin;C:\Program Files\HP\NCU;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\system32\WindowsPowerShell\v1.0"
    HOSGIP for "HS_OPEN_CURSORS" returned "50"
    HOSGIP for "HS_FDS_FETCH_ROWS" returned "100"
    HOSGIP for "HS_LONG_PIECE_TRANSFER_SIZE" returned "65536"
    HOSGIP for "HS_NLS_NUMERIC_CHARACTER" returned ".,"
    HOSGIP for "HS_FDS_RECOVERY_ACCOUNT" returned "RECOVER"
    HOSGIP for "HS_FDS_TRANSACTION_LOG" returned ""HS_TRANSACTION_LOG""
    HOSGIP for "HS_FDS_TIMESTAMP_AS_DATE" returned "TRUE"
    HOSGIP for "HS_FDS_CHARACTER_SEMANTICS" returned "FALSE"
    HOSGIP for "HS_FDS_MAP_NCHAR" returned "TRUE"
    HOSGIP for "HS_FDS_RESULT_SET_SUPPORT" returned "FALSE"
    HOSGIP for "HS_FDS_PROC_IS_FUNC" returned "FALSE"
    HOSGIP for "HS_FDS_REPORT_REAL_AS_DOUBLE" returned "FALSE"
    using SA as default value for "HS_FDS_DEFAULT_OWNER"
    HOSGIP for "HS_SQL_HANDLE_STMT_REUSE" returned "FALSE"
    ##>Connect Parameters (len=209)<##
    ## DRIVER=Oracle 11g dg4msql-OraGtw11g_home1;
    ## SERVER=web02;
    ## Database=acc-aeu;
    #! UID=SA;
    #! PWD=*
    ## AnsiNPW=Yes;
    ## QuotedId=Yes;
    ## IANAAppCodePage=2252;
    ## ArraySize=100;
    ## PadVarbinary=0;
    ## SupportNumericPrecisionGreaterThan38=1;
    SQL text from hgopars, id=1, len=25 ...
    00: 454C4553 2A205443 4F524620 5622204D [SELECT * FROM "V]
    10: 52455624 4E4F4953 22 [$VERSION"]
    hgopars, line 347: calling SQLNumResultCols got sqlstate 42S02
    plz guys any ideas ???

  • Access denial on connecting SQL server 2000 with Microsoft JDBC driver

    Hi guys,
    I am developping a BMP invoking procedures stored in a SQL server 2000 instance on the Sun RI platform. I am using the Microsoft type 4 JDBC driver.
    the connection pattern is something like
    jdbc:microsoft:sqlserver://ambassador:1433;User=sa;Password;DataBase=Forethought;SelectMethod=cursor
    An type-like "access denied" exception is raised when trying to get the connection from the DataSource object with some code similar to :
    DataSource objDS = (DataSource)objCtx.lookup("jdbc/Forethought");
    Connection objConn = ds.getConnection();
    I have realised a CMP to access the database and everything works fine.
    It seems that the SunRI tries to get the db connection with an "impersonated " user even if i have specified the user name and password in the connection string.
    Does anyone have an idea how to force the connection with SQL Server user name and password ??

    I come accorss the same problem too,
    my URL jdbc:microsoft:sqlserver://ambassador:1433;User=sa;Password=123;DatabaseName=pubs
    and the password is right.I can establish connection to SQL server 2000 by JDBC Driver Manager,the code as follow:
    Class.forName("com.microsoft.jdbc.sqlserver.SQLServerDriver");
    Connection conn = DriverManager.getConnection
    ("jdbc:microsoft:sqlserver://localhost:1433;User=sa;Password=123");

  • Connect SQL Server 2000 using JDBC

    Hi all,
    We have installed the microsoft sql server 2000 into 3 different pcs which is not the server. we have installed the jdbc driver into the server and wish to connect the database from the 3 pcs using that jdbc driver from the server. may i know is it possible to connect the database and if it is possible, the database url is it something like      jdbc:sqlserver://<host_name>:<port>;DatabaseName=<db_name>?
    Also may i know what is actually the host name? like is it the host name of j2ee engine or the ip address where the database resides in. also for the port is it 1433 for microsoft sql server 2000 and if it is fix meaning that only 1433 is the port for sql server 2000?
    Thanks

    Hi,
    see <a href="https://www.sdn.sap.com/irj/sdn/thread?threadID=48126">this Thread</a>
    HTH,
    Carsten
    The hostname is the name (or IP-Adress) of your PCs. The Port of SQL Server may vary, but by default it is 1433.

  • Memory error when executing package through SQL Server Agent.

    Hi!!
    I have a problem with a package (SSIS) when run on SQL Server Agent.
    The job is configured
    with the proxy and the account has the
    required privileges. Runs perfectly
    if the job runs manually, but if I let it
    run on schedule I get a memory error.
    Also if I run the
    package through DTExec.exe or VS2008,
    everything runs smoothly.
    I am using SQL2008R2.
    If someone has something similar happened
    and have found how to fix it please i need
    to know how.
    Thank you.

    This is most likely your issue:
    http://support.microsoft.com/kb/824422

  • Error when re-starting an SQL Server Instance from VBA - [SQL-DMO]Service Control Error: Access is denied.

    Our Application needs to have the use of the [Named Pipes] and [TCP/IP] Protocols.  To save our Users the hassle of having to enable them manually our application has always done it for them and then stopped and restarted SQL Server.  However
    since the advent of Vista and Windows 7, the restart stopped working.  We solved the problem by detecting the failure to re-start and giving Users sufficient instructions for them to do it themselves.  Since this only occurs during installation on
    the Server, this approach has not been too much of a hassle.  However we would like to tidy this up if possible. This the VBA code that is causing the problem:
        obj_SQLServerInstance2.Start _
            g_SQL_UseWindowsAuthentication, _
            SQLServerInstance, _
            UserName, _
            Password
    This still works when run under XP, but fails under Windows 7 with the Error:
    [SQL-DMO]Service Control Error: Access is denied.
    Does anyone know how to resolve the problem?

    This still works when run under XP, but fails under Windows 7 with the Error:
    [SQL-DMO]Service Control Error: Access is denied.
    Hello Brian,
    Under Windows 7 you have to run the VBA script with admin permission, a normal user don't have permissions to start/stop services.
    Olaf Helper
    [ Blog] [ Xing] [ MVP]

  • Error when opening BIDS 2005 - SQL Server 2005 - Urgent to solve

    Hi,
    today I've a problem when I try to launch the BIDS 2005: an error message says that isn't possible to find a component and says to reinstall the application. I cannot any records inside the event viewer that could help me. The SQL Server 2005 build is 9.00.5069.00.
    BIDS 2005 is installed on my machine that has Windows 7 64-bit. Moreover I've also SQL Server 2008 R2 and BIDS 2008 R2: I cannot open also this tool for the same error.
    Any suggests to me, please?
    Thanks

    Hi Pscorca,
    According to your description, you cannot start Business Intelligence Development Studio (BIDS) in SQL Server 2005 and 2008 with the error "isn't possible to find a component and says to reinstall the application". As per my understanding, the issue
    can be caused by some SQL Server files were corrupted. It's hard to give you the root reason that cause this issue based on the limited information.
    In your scenario, please drive the BIDS installation folder (C:\ProgramData\Microsoft\Windows\Start Menu\Programs\Microsoft SQL Server 2008 R2), try to open BIDS and check if this issue persists or not. Besides, you can try to repair SQL Server
    installation using stepup.exe.
    Hope this helps.
    Regards,
    Charlie Liao
    TechNet Community Support

  • ICloud encountered an error when trying to connect to server?

    When I log into ICloud I continue to get a message "ICloud encountered and error while trying to connect to the server"

    If it only does it at work, then the most likely reason is that your work network is blocking it, or one of the servers iCloud connects to.
    Have you asked the IT people at work? Checked it on another computer at work?

  • Error when insert data in Sql Server table(DateTime data type)

    Hello all,
    I have created a database link in oracle 11g to SQL Server 2008 using Sqlserver gateway for oracle,Oracle run on Linux and SQL Server run on Windows platform.
    I have queried a table and it fetches rows from the target table.
    I am using this syntax for insert a row in Sql Server table.
    Insert into Prod@sqlserver (NUMITEMCODE, NUMPREOPENSTOCK, NUMQNTY, NUMNEWOPENSTOCK, DATPRODDATE , TXTCOMPANYCODE, "bolstatus", NUMRESQNTY )
    Values (1118 , 1390.0 , 100.0 ,1490 , '2012-06-23 12:37:58.000','SFP' ,0 , 0 );
    but it give me error on DATPRODDATE,The data type of DATPRODDATE column in Sql Server is DATETIME.
    My Question is how can i pass the date values in INSERT statement for Sql Server DateTime data type.
    Regards

    Just as with Oracle, you have to specify the date using the to_date() function or use the native date format for the target database (if you can figure out what that is). This is good practice anyway and a good habit to get into.

  • Error when i want install sql server 2008

    Hi,
    I want the below error:

    What's operation system? What's edition of SQL Server? Have you opened ISO file and run setup.exe locally?
    Best Regards,Uri Dimant SQL Server MVP,
    http://sqlblog.com/blogs/uri_dimant/
    MS SQL optimization: MS SQL Development and Optimization
    MS SQL Consulting:
    Large scale of database and data cleansing
    Remote DBA Services:
    Improves MS SQL Database Performance
    SQL Server Integration Services:
    Business Intelligence

  • BCP - Error with column text in sql server 2000

    Hi,
    Im trying to restore a bcp using the command: 
    bcp "db.dbo.tb_log_old" in "tb_log2013.out" -SSERVER -T -n
    Im using SQL 2000 with the table below
    CREATE TABLE [dbo].[tb_log_old](
    [cd_id] [int] NULL,
    [cd_servico] [int] NULL,
    [dt_ocorrencia] [datetime] NULL,
    [nm_xml_entrada] [text] NULL,
    [nm_xml_saida] [text] NULL,
    [dt_inicio_processamento] [datetime] NULL,
    [dt_fim_processamento] [datetime] NULL
    ) ON [PRIMARY] TEXTIMAGE_ON [PRIMARY]
    I have got the error
    Starting copy...
    SQLState = S1001, NativeError = 0
    Error = [Microsoft][ODBC SQL Server Driver]Memory allocation failure
    SQLState = 22001, NativeError = 0
    Error = [Microsoft][ODBC SQL Server Driver]String data, right truncation
    SQLState = S1000, NativeError = 0
    Error = [Microsoft][ODBC SQL Server Driver]Text column data incomplete
    SQLState = S1000, NativeError = 0
    Error = [Microsoft][ODBC SQL Server Driver]Text column data incomplete
    SQLState = 22001, NativeError = 0
    Error = [Microsoft][ODBC SQL Server Driver]String data, right truncation
    SQLState = S1000, NativeError = 0
    Error = [Microsoft][ODBC SQL Server Driver]Text column data incomplete
    SQLState = S1000, NativeError = 0
    Error = [Microsoft][ODBC SQL Server Driver]Text column data incomplete
    SQLState = 22001, NativeError = 0
    Error = [Microsoft][ODBC SQL Server Driver]String data, right truncation
    SQLState = S1000, NativeError = 0
    Error = [Microsoft][ODBC SQL Server Driver]Text column data incomplete
    SQLState = S1000, NativeError = 0
    Error = [Microsoft][ODBC SQL Server Driver]Text column data incomplete
    SQLState = S1000, NativeError = 0
    Error = [Microsoft][ODBC SQL Server Driver]Text column data incomplete
    SQLState = 22001, NativeError = 0
    Error = [Microsoft][ODBC SQL Server Driver]String data, right truncation
    SQLState = S1000, NativeError = 0
    Error = [Microsoft][ODBC SQL Server Driver]Text column data incomplete
    SQLState = 22001, NativeError = 0
    Error = [Microsoft][ODBC SQL Server Driver]String data, right truncation
    SQLState = S1000, NativeError = 0
    Error = [Microsoft][ODBC SQL Server Driver]Text column data incomplete
    SQLState = 22001, NativeError = 0
    Error = [Microsoft][ODBC SQL Server Driver]String data, right truncation
    SQLState = S1000, NativeError = 0
    Error = [Microsoft][ODBC SQL Server Driver]Text column data incomplete
    SQLState = 37000, NativeError = 4810
    Error = [Microsoft][ODBC SQL Server Driver][SQL Server]Expected the TEXT token in data stream for bulk copy of text or image data.
    BCP copy in failed

    I tried with binary and nvarchar but I got the error below:
    Can I get just 2 columns in the bcp?
    Starting copy...
    SQLState = 22001, NativeError = 0
    Error = [Microsoft][ODBC SQL Server Driver]String data, right truncation
    SQLState = 22001, NativeError = 0
    Error = [Microsoft][ODBC SQL Server Driver]String data, right truncation
    SQLState = 22001, NativeError = 0
    Error = [Microsoft][ODBC SQL Server Driver]String data, right truncation
    SQLState = 22001, NativeError = 0
    Error = [Microsoft][ODBC SQL Server Driver]String data, right truncation
    SQLState = 22001, NativeError = 0
    Error = [Microsoft][ODBC SQL Server Driver]String data, right truncation
    SQLState = 22001, NativeError = 0
    Error = [Microsoft][ODBC SQL Server Driver]String data, right truncation
    SQLState = 22001, NativeError = 0
    Error = [Microsoft][ODBC SQL Server Driver]String data, right truncation
    SQLState = 22001, NativeError = 0
    Error = [Microsoft][ODBC SQL Server Driver]String data, right truncation
    SQLState = 22001, NativeError = 0
    Error = [Microsoft][ODBC SQL Server Driver]String data, right truncation
    SQLState = 22001, NativeError = 0
    Error = [Microsoft][ODBC SQL Server Driver]String data, right truncation
    BCP copy in failed

  • Oracle forms 9i/10g connecting SQL Server 2000

    Could anyone please guide me in detail to connect Oracle Forms 9i/10g with MS SQL Server database?
    To connect with Oracle Database, we need to copy and paste the tnsnames.ora file from the Oracle Database folder to the Oracle Forms folder.
    But how do i connect with other databases like SQL Server, MS Access, and so on?
    Thanks in advance.

    Follwoing is the soluton which I got from orafaq forum:
    <<<<<
    I'd go for an ODBC on the database server, using HSODBC. It worked quite well on a data warehouse project using OWB. I fail to see why it wouldn't work for Forms.
    MHE
    >>>>>
    Now I'm fully in a confused and frustrated state. Each person is saying different solutions for the problem. One person is saying to connect using ODBC driver while other is saying to connect JDBC driver. Actually which driver should I configure? Also no one is giving a clear picture for the problem.
    How can I get a detailed solution for this problem (with screen shots) which include step by step procedure to configure a driver?
    So, I would be pleased if you could please guide me with step by step procedure to get connected with Oracle Forms using SQL Server?
    Or atleast some reference site where I can find the same.
    Thanks.

Maybe you are looking for

  • Windows Server 2008 R2 DNS service issue with BitLocker

    I recently installed BitLocker on a Windows Server 2008 Platform. I did not encrypt the boot partition because the server hardware BIOS did not have the necessary requirements to encrypt the system drive. The Server roles are ADSM, DC and File Server

  • Troubles installing cs3 Web Premium

    I just got a new computer (MacBook Pro) running OS 10.6.7.  I deactived my Adobe software on my old computer (an older white MacBook which is also running OS 10.6.7), downloaded CS3 Web Premium from the Adobe on-line store (where I originally purchas

  • Can we see the code of GUI UDF functions

    Hi All, Can we see the code of GUI UDF functions? Which language it has been written? Cheers! Samarjit

  • Participation group AND settlement unit in real estate module

    Hello, i want to create Participation group (transaction RESCPG) and Settlement unit (transaction RESCSU). Is there any bapi or standard lsmw object to create the 2 objects ? thanks for your help.

  • Can not creat Ratings in Mini Bridge

    I checked mode and they are in filmstrip. I tried all the other modes with the same result. One other thing is the mini bridge icon does not appear automatically with the pallets. I have to go to the file menu and open it. It does show the file names