JDBC Communication channel : Error establishing socket

Dear friends,
Im using JDBC comm channel. JDBC driver has been insatlled for SQL Server 2000 (SP3) .
However for the JDBC comm. channel i get an error
"SQLException: [Microsoft][SQLServer 2000 Driver for JDBC]Error establishing socket.'
following parameters are used :
JDBC driver:  com.microsoft.jdbc.sqlserver.SQLServerDriver
DB connection :
jdbc:microsoft:sqlserver://<ip address>:1433;databaseName=<dbname>
i looked up some blogs in SDN, & tried some other options,
eg: com.microsoft.sqlserver.jdbc.SQLServerDriver
DB name:
jdbc:microsoft:sqlserver://<ip address>:1433;DatabaseName=<dbname>
However still get the same error
Can somebody help ?

Hi
The following should fix your problem
<i>I had this problem using SQLServer 2000 Driver for JDBC and finally solved it. Here's what I did:
1. Make sure that SQL Server is set to mixed authentication. To do this, open enterprise manager, right click on server/properties; go to security tab and select SQL Server and Windows Authentication. Apparently, the driver from Microsoft cannot handle windows integrated authentication.
2. Keeping the server properties dialog up, go to the general tab and push the network configuration button. <b>Enable TCP/IP (it is disabled by default). If you wish, press properties to change the default port (1433).</b>
3. Add an SQL Server login account (NOT a WINDOWS account (see 1)). You can also use your sa account, but I don't recommend it.
4. Use the login setup in step 3.
Some final notes:
(1) I've seen ads for third party drivers that can use Windows integrated authentication. Try one if you need this feature.
(2) One responder suggested telneting to port 1433 to verify TCP connectivity. The connection is refused on my machine even though I can connect through the driver. And this is how it should be; otherwise there'd be a security risk.</i>
Courtesy:XI installation Configuration of J2EE engine problem
Regards
krishna
<i>Note:Reward points if helpful</i>

Similar Messages

  • Regarding the JDBC Communication Channel error

    Hi all,
    We installed one non-central adapter engine for our xi server. But when configuring jdbc channels with this non-central adapter engine, the jdbc channel not picking data from tables, instead it is always showing message "Processing Started". All the channels configured with central adapter engine are working fine. Basis person is working on this problem for 10 days, he didn't find any solution. Pls help us.
    Note:-when we start the channel configured with non-central adapte engine, the channel is automatically getting lock in visual admin. Even though we will release the lock manually, after starting once again it is getting locked again.
    thanks,
    madhusudhan.

    hi,
    Is your decentral adapter engine working fine for other communication channels.There might be some problem in your decentral adapter engine installation.
    You can refer to my blog on this.
    Basic Steps In Decentralized Adapter Engine
    regards,
    ujjwal kumar

  • JDBC Communication channel error

    Hi All,
    I am facing a problem with JDBC channel.
    We have depolyed the New JDBC driver called SQLSERVER2005 and also in JDBC channel i have changed to the server name and port, because we have new server details now.
    But still channel is getting into error 
    Following are my observations:-
    1)      I can see in the error log of these channels its still continuing to poll in SQL Server 2000 version (though it is updated to SQL 2005).
    2)      When i see in the CC monitoring it is giving the login error
    Let me know if anything should be changed in this direction.
    Please dont give me any links, kindly suggest me your solutions.
    Regards
    Sai Ganesh

    Hi Ganesh,
    Specify the connection parameters as given below
    Jdbc Driver : com.microsoft.sqlserver.jdbc.SQLServerDriver
    Connection: jdbc:sqlserver://ip address of databasehost:1433;databaseName=name of your database
    Regards
    Leela

  • "Error establishing socket" error on JDBC Receiver Channel.

    Dear All,
    Scenario: Soap to JDBC.
    I m getting error on JDBC Receiver Channel. messages are processed succesfully on ABAP Stack and receiver channel is on below error:
    ERROR : Message processing failed. Cause: com.sap.aii.af.ra.ms.api.RecoverableException: Error when attempting to get processing resources: com.sap.aii.af.service.util.concurrent.ResourcePoolException: Unable to create new pooled resource: DriverManagerException: Cannot establish connection to URL 'jdbc:microsoft:sqlserver://156.5.202.194:3312;DatabaseName=ODW': SQLException: [Microsoft][SQLServer 2000 Driver for JDBC]Error establishing socket.
    Note: i already tested another interface with this same IP and it was fine with different port.
    jdbc:microsoft:sqlserver://IP:PORT;DatabaseName=Name
    Regards,
    Manikandan

    and it was fine with different port
    socket exception is (always) related to port....did you check with the network team about this new Port?

  • Error at sender JDBC communication channel

    Dear All,
    While executing JDBC(MS-Access)-PI-RFC interface, we are getting error in sender JDBC communication channel. The error is as following:
    Error during database connection to the database URL 'jdbc:odbc:Driver={Microsoft Access Driver (*.mdb)};DBQ=
    sappidev\Datatran\Database.mdb' using the JDBC driver 'jdbc.odbc.JdbcOdbcDriver': 'com.sap.aii.adapter.jdbc.sql.DriverManagerException: Can not establish connection:: SQLException: [Microsoft][ODBC Driver Manager] Data source name not found and no default driver specified'.
    I have checked various posts on forums and as per those no drivers installation is required to access MS-Access database and I am not able to find any post which could solve my problem.
    Kindly guide me on what might be the problem and how this can be resolved.
    Regards,
    NJ

    Hi Nishu,
      That error ALWAYS means your DSN name is incorrect or can't be accessed for some reason (permission). The ODBC part says that the bridge is working.
      But that DSN is 100% wrong or cannot be seen by the user account that the server is running as. Make sure you have a system DSN and not a user one.
    You can refer these....
    http://bytes.com/topic/java/answers/625400-java-sql-sqlexception-microsoft-odbc-driver-manager-data-source-name-not-found
    http://www.daniweb.com/forums/thread13092.html#
    Hope this will help you....
    Regds,
    Pinangshuk.

  • JDBC to JDBC Scenario - Communications Channel Error

    I am following the published JDBC to JDBC Scenario:
    https://www.sdn.sap.com/irj/sdn/wiki?path=/display/xi/step-by-step+guides
    I am a 3rd Party Vendor, and I'm using NX7: SAP Exchange Infrastructure. My goal is to have a JDBC Sender that sends MS Access data from my PC to NX7, and have a JDBC Receiver that receives MS Access data, and map the data from one database to the other via XI per the scenario, with both databases on my PC.
    I set up the NX7 SAP XI per the scenario, but I'm getting an error on the NX7 Communications Channel:
    Error during database connection to the database URL 'jdbc:odbc:Driver={Microsoft Access Driver(.mdb)};DBQ=//204.245.44.232/C:/Documents and Settings/All Users/Documents/XI_FILES/SENDER/STUDENT_Database.mdb' using the JDBC driver 'sun.jdbc.odbc.JdbcOdbcDriver': 'com.sap.aii.adapter.jdbc.sql.DriverManagerException: Cannot establish connection to URL 'jdbc:odbc:Driver={Microsoft Access Driver(.mdb)};DBQ=//204.245.44.232/C:/Documents and Settings/All Users/Documents/XI_FILES/SENDER/STUDENT_Database.mdb': SQLException: [Microsoft][ODBC Driver Manager] Data source name not found and no default driver specified'
    The data source is in
    C:/Documents and Settings/All Users/Documents/XI_FILES/SENDER/STUDENT_Database.mdb on my PC and it is a shared folder. My PC IP 204.245.44.232 is a public IP address. It should be using the JDBC-ODBC bridge driver in the JDK.
    Why am I getting the error?
    Thanks,
    Ed Culnane

    Hi
    Connection Parameters are of given below check
    Transport Protocol: JDBC 2.0
    Message Protocol: XML SQL Format
    Adapter Engine: Integration Server
    JDBC Driver: jdbc.odbc.JdbcOdbcDriver
    Connection: jdbc:odbc:Driver={Microsoft Access Driver (*.mdb)};DBQ=//xiserver/xitemp/db/TestDB.mdb
    5) In my case there is no userid and password required, but if you have userid and password, then the parameter for Connection becomes,
    jdbc:odbc:Driver={Microsoft Access Driver (*.mdb)};DBQ=//xiserver/xitemp/db/TestDB.mdb;Uid=yourid;Pwd=yourpwd;
    Well ms access file should be in the XI Server path or it should be able to accessed by the XI
    Try this above option of keeping u r file in the XI Server path instead of the local
    rgd
    srini

  • Error in JDBC Adapter-"Error establishing socket"

    Hi,
    I am getting an error in the seander JDBC adapter. PFB the error:
    Error during database connection to the database URL 'jdbc:microsoft:sqlserver://Server Name;DatabaseName=DB Name;SelectMethod=cursor' using the JDBC driver 'com.microsoft.jdbc.sqlserver.SQLServerDriver': 'com.sap.aii.adapter.jdbc.sql.DriverManagerException: Cannot establish connection to URL 'jdbc:microsoft:sqlserver://Server Name;DatabaseName=DB Name;SelectMethod=cursor': SQLException: [Microsoft][SQLServer 2000 Driver for JDBC]Error establishing socket.'
    Can any one hlep me to resolve the error.
    Thanks,
    RK

    Hi,
    Also check whether you have given database connection parameters in the following format:
    JDBC Driver:
    com.microsoft.jdbc.sqlserver.SQLServerDriver
    Connection:   jdbc:microsoft:sqlserver://<HOSTNAME>:1433;DatabaseName=<xxxx>;SelectMethod=cursor
    I think the deployment is done, because you have not got "SAPClassNotFoundException" error.(If the deployment is not done, the driver file cant be located so this will be thrown...)
    Thanks & Regards,
    Senthil.

  • Error in Sender JDBC communication channel

    Dear All,
    We have an interface in which we are fetching data from SQL database through sender JDBC communication channel.
    Last week SQL server was upgraded from 2000 to 2008 and the communication channel has stopped working and is giving the following error:
    Database-level error reported by JDBC driver while executing statement 'SELECT * FROM mstemp_tbl WHERE Active='0''. The JDBC driver returned the following error message: 'java.sql.SQLException: [Microsoft][SQLServer 2000 Driver for JDBC][SQLServer]The incoming tabular data stream (TDS) remote procedure call (RPC) protocol stream is incorrect. Parameter 1 (""): Data type 0x38 is unknown.'. For details, contact your database server vendor.
    Please let me know if any JDBC drivers are to be installed for SQL 2008 or how can we resolve this.
    Thanks,
    NJ

    Hi,
    You may need to update your JDBC driver to 1.2 or 2.0. Kindly see supportability matrix on this link (question #2):
    http://msdn.microsoft.com/en-us/sqlserver/cc325721
    Regards,
    Jenny

  • JDBC Receiver Communication channel Error

    Hi Friends,
    I am facing below error in JDBC Receiver Communication chnnel.
    Please shared your views.
    Message processing failed. Cause: com.sap.engine.interfaces.messaging.api.exception.MessagingException: Error processing request in sax parser: Error when executing statement for table/stored proc. 'KRSAPJOB' (structure 'Statements'): java.sql.SQLException: [SQL0204] KRSAPJOB in KRONOSMF type *FILE not found.
    thanks
    Mohit

    Hi Mohit,
    I received a smiliar error with the receiving JDBC Communication channel. Please talk with your database Admin regarding the stored procedure.
    Either one of the fileds in the database is Mandatory and you are not sending that field valiue OR
    the data type for one of the fields definied is not matching the one in the database and the stored procedure is failing and throwing an exception.
    Teresa

  • JDBC Sender Communication Channel Error

    Hi,
    We are facing the below error in Sender JDBC communication channels:
    The JDBC driver returned the following error message: 'java.sql.SQLException: [Microsoft][SQLServer 2000 Driver for JDBC]No ResultSet set was produced.'
    We are getting this error in channels which are using stored procedures but not in channels using direct sql query statements.
    The database is not having any data currently.
    So is the above error because of no data or some other issue?
    Any ideas?
    I have searched the sdn but didnt find anything appropriate.so posting a new thread.
    Thanks,
    Anu.

    Can you try again after filling in few records in the DB? I am suspecting the way SP has been written ... check if it is required to return value from SP?

  • Error Establishing Socket jdbc

    hello guys i have the problem of error establishing socket in tomacat 4.0.1 and i am using sqlserver 2000.My Application works well for n number of users but then application server hangs giving the "error establishing socket".
    i am closing all the statements and i am calling connection object in init() and closing it in destoy(). And I am not using connection pooling.
    please specify the changes needed to work with SQL server connection with jdbc
    do help me guys its urgent for me
    tell me as soon as possible.

    hello guys i have the problem of error establishing
    socket in tomacat 4.0.1 and i am using sqlserver
    2000.My Application works well for n number of users
    but then application server hangs giving the "error
    establishing socket".
    i am closing all the statements and i am calling
    connection object in init() and closing it in
    destoy(). And I am not using connection pooling.
    please specify the changes needed to work with SQL
    server connection with jdbc
    do help me guys its urgent for me
    tell me as soon as possible. sql server and windows are terrible under load. i know this from
    personal experience ahving spent a great deal of time fixing an ASP site
    that used ADO to access SQL Server 2000. what happens eventually with
    windows and sql server is that when the server gets really busy the os
    does not prioritize itself very well and you can run out of sockets
    temporarily because even though you have programmtically released them
    the operating system is still holding on to them.
    part of the solution i used was to use pooled connections. i suggest the
    same for you.

  • SQL Server 2000 Driver for JDBC - Error establishing sockets

    Hi there
    I am using Microsoft SQL Server 2000 Driver for JDBC to connect to SQL Sever 2000. It is just a test application to see if it would connect to the datacase successfully. But I got the following errors. I already set up the classpath and installed all SQL Server 2000 Driver for JDBC sp 3. Dont know why it still failed...can anyone help me out of this? Thanks.
    When i am using simple JDBC-ODBC bridge Driver it's working fine.
    For this Server Pack3 , i have checked every thing like--
    TCP / IP Poart is Enable.
    I am working in client machine, my MSSQLServer 2000 Placed in server Machine.
    when i am giving Telnet ServerIP 1433 it's giving following response.
    connecting to ServerIP ....... could not open connection to the host , on port 1433:connection Failed
    My Sample Code is :--
    String user="sa";
    String password="imcindia";
    Connection con1 = null;
    CallableStatement cstmt = null;
    Class.forName("com.microsoft.jdbc.sqlserver.SQLServerDriver").newInstance();
    con1=DriverManager.getConnection("jdbc:microsoft:sqlserver://ServerName:1433;DatabaseName=dmo1o2d",user,password);
    Statement st=con1.createStatement();
    st.execute("use dm0102d");
    st.execute("setuser 'dm01012'");
    cstmt = con1.prepareCall("{?=Call dms_ex_create_folder('ABC','18753','NB21','u')}");
    cstmt.execute();
    Here are Error Code :
    java.sql.SQLException: [Microsoft][SQLServer 2000 Driver for JDBC]Error establishing socket.
         at com.microsoft.jdbc.base.BaseExceptions.createException(Unknown Source)
         at com.microsoft.jdbc.base.BaseExceptions.getException(Unknown Source)
         at com.microsoft.jdbc.base.BaseExceptions.getException(Unknown Source)
         at com.microsoft.jdbc.sqlserver.tds.TDSConnection.<init>(Unknown Source)
         at com.microsoft.jdbc.sqlserver.SQLServerImplConnection.open(Unknown Source)
         at com.microsoft.jdbc.base.BaseConnection.getNewImplConnection(Unknown Source)
         at com.microsoft.jdbc.base.BaseConnection.open(Unknown Source)
         at com.microsoft.jdbc.base.BaseDriver.connect(Unknown Source)
         at java.sql.DriverManager.getConnection(Unknown Source)
    java.sql.SQLException: [Microsoft][SQLServer 2000 Driver for JDBC]Connection refused: connect
         at java.sql.DriverManager.getConnection(Unknown Source)
         at TestConnection1.main(TestConnection1.java:24)
    one can help me to over come this problm,
    Thanks in advance.
    venkat

    hey i also have this problem i have been looking for solution for this problem for along time i tried every possible solution i tried every service pack for the SQL but it didn't connect to the port!!!
    it's a network problem ur java code is correct dont worry about it.
    finally i had to install MySQL and it's work fine now but if u insist on usning SQL u have to use the JDBC-ODBC Bridge it will work by :
    first add data source database , follow these steps
    1- go to Administrative tools
    2-Data Sources(ODBC)
    3-System DNS tab and add then choose SQL SERVER the last option then finish
    4-write the name; Note: this name is the one that u will write in ur URL for example if u write Hello the URL will be "jdbc:odbc:Hello"
    5- choose the server, its recommended to write "." or (local)
    6-change the database to its an important step to choose the database that u want to use, choose northwind if u want to use it
    finish
    second
    adding this code:
    import java.sql.*;
    class JdbcTest1 { 
    public static void main (String[] args) { 
    try { 
    // Step 1: Load the JDBC driver.
    Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
    // Step 2: Establish the connection to the database.
    String url = "jdbc:odbc:Hello";
    Connection conn = DriverManager.getConnection(url,"user1","password");
    } catch (Exception e) { 
    System.err.println("Got an exception! ");
    System.err.println(e.getMessage());
    it will work without any problems

  • Error establishing socket (Microsoft SQL Server 2000 Driver for JDBC)

    I tray connect to MS-SQL2000 using JDeveloper and retrieve an error: "[Microsoft][SQLServer 2000 Driver for JDBC]Error establishing socket.[Microsoft][SQLServer 2000 Driver for JDBC]PC160832\NCI_DBA_01"
    I followed the steps:
    1 - Install the JDBC Driver for MS-SQL2000
    2 - Create a new AddJavaLibPath :"AddJavaLibPath C:/Program files/Microsoft SQL Server 2000 Driver for JDBC/lib"
    3 - Specify Default Project Libraries: "msbase.jar, msutil.jar and mssqlserver.jar"
    4 - Create a new connection: "Java class name: com.microsoft.jdbc.sqlserver.SQLServerDriver" "URL: jdbc:microsoft:sqlserver://PC160832\NCI_DBA_01:1433;SelectMethod=cursor"
    5 - Retrieve the error: "[Microsoft][SQLServer 2000 Driver for JDBC]Error establishing socket.[Microsoft][SQLServer 2000 Driver for JDBC]PC160832\NCI_DBA_01"

    Were you able to resolve this? If so could you tell me how. I have the same problem.
    Thanks!!!

  • JDBC Error Establishing Socket

    Hi, I've a problem with my JDBC connection to the SQL Server Database in my Java file. I got a "Error Establishing Socket" problem when I tried to access a database in another server. Can someone tell me what are the possible causes?

    firewall... server not running... etc etc

  • Getting end-of-file on communication channel error on this query

    Hi guys,
    I'm getting the end-of-file on communcation channel error when running the following query in SQL PLUS, If run it in a stored procedure called through code of JDBC, it gave "no more data to read from socket" error. Any idea what went wrong? kind of frustrated now. We are using the Oralce 9.0.1.4.0, which suppose to fix some sdo_uion and sdo_buffer bugs. Thanks a lot!!
    select SDO_GEOM.SDO_BUFFER((SELECT SDO_AGGR_UNION(MDSYS.SDOAGGRTYPE(GEOLOC, 0.011119487)) FROM GEOTEL_SOURCE where MSA='5000' and COMPANY_NAME ='AMERICAN FIBER SYSTEMS'),1.0,5,'unit=MILE arc_tolerance=0.05') from GEOTEL_SOURCE a where a.MI_PRINX = 1;

    Hi Daniel,
    Just tried the 9.2.0.2 patch, seems to work better now. At least I don't get the end-of-file on communication channel error. But how about the speed thing? I isolated the problem, and find out that sdo_aggr_union is taking too long to finish( 1 Hour!!! for 2300 lines with the same city. Any clue to optimize it, I tried some hint like /*+ordered*/ No_Merge and something like that, does not improve though. Thanks!                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

Maybe you are looking for

  • I can not open PDF files in mail on iPhone 6plus

    hhas anyone had a problem opening PDF files in mail.  I get a grey screen

  • Custom column headers

    How can I get a column header to span 2 columns in my report region? Each data column should have its own heading as well. In addition, this column header should be dynamic (well, not that dynamic, just to_char(sysdate,'yyyy')) Help? Thanks

  • Web app with ms ajax occur error in win2003+iis6 Access manager

    my web app in win2003 + iis6 +Microsoft dot Net Framework 3.5 all web pages using ajax scriptmanager object When the iis6 have Policy Agent (amiis6.dll include in IIS) Problems : Every page have error message <script type="text/javascript"> //<![CDAT

  • Trying to add Google Analytics to Dreamweaver site, not working

    I had Google Analytics set up on my dreamweaver site and all of a sudden it stopped reporting data.  A co-worker who no longer works here was working on the page to fix some non-relevant errors and as a result Google Analytics stopped working.  The s

  • Java serverfaces & getServletContext() problems

    Help needed. please I am having problems getting this filter working. The problem is that forward in the method isSystemAvaliable does not work as expected. What happens is the that I get a 'File not found: /subDir/DataSetProgressServlet' error where