Sybase connectivity

Hi all,
I have some troubles with the deployment process of the jdbc datasource.
I used an evaluation version of the DataDirect JDBC drivers to connect a Sybase database. Following the process stated on the tutorials I configured a new Server Type and a new DataSource. All was working fine: the connection was alive, the tables and columns were showing up and I was able to bind a result set to an object on a jsp page.
When I deployed the first time the simple application I got a runtime exception saying "Error in allocationg a connection. Cause:null".
Lookin deeper in the application server definitions through the admin tool, I discovered that the JDBC Connection Pool definition, deployed by the Sun Java Studio Creator, had something wrong. The ping button said "An error has occurred. Operation 'pingConnectionPool' failed in 'resources' Config Mbean".
On the page "Edit Connection Pool" the entry "Data Source Class Name" was filled with the Driver class name (com.ddtek.jdbc.sybase.SybaseDriver instead of com.ddtek.jdbcx.sybase.SybaseDataSource). I can understand this because during the definition of the datasource nobody asked me the data source class name and I suppose that the deployment program can't guess by itself the correct class name.
Using the admin tool I changed the entries on the Edit Connection Pool page to the correct class name, adding the properties serverName and portNumber too. With these definitions I got a successful ping.
Unfortunately I did'nt reach the target because the application is still not working. The exception handler shows the following message: "java.sql.SQLException: Error in allocating a connection. Cause: No PasswordCredential found".
Can anybody help me?

Looks like you might be using blank password to connect to your Sybase database. Creator IDE data sourcesare configured as connection pools when deploying to the bundled AppServer. We have a known issue that the AppServer fails to connect to connection pools with blank passwords. Try with non-blank password and confirm if it works.

Similar Messages

  • Error Opening a Sybase Connection

    Ok, this is the first time i have tried to establish a sybase connection before but this is what i did.
    I went to the sybase site and downloaded the new JConnect 5.5 and 4.5
    I installed it and it is setup in my classpath. jisql works properly so i am sure i have jConnect setup properly.
    So i use IBM visual age for java to program and i imported the jconn2.jar file so i could have the proper drivers, i am sure this imported properly becsaue one of the warnings on my class of not having the proper "com" installed have disapperead. When i try the connection for the DB the error message i am getting is as follows...."java.lang.ClassNotFoundException:com.sybase.jdbc2.jdbc.SybDriver"
    i am importing "import com.sybase.jdbcx.SybDriver;"
    and my code to create the connection is as follows.....
    url = "jdbc:sybase:Tds:testa:4100";
    try
    Class.forName("com.sybase.jdbc2.jdbc.SybDriver").newInstance();
    Connection con = DriverManager.getConnection(url,"sa", "sadummy");
    Statement command = con.createStatement();
    //the rest of the code...........yada yada
    I guess i dont understand what i an doing wrong to create a connection with the sybase server. Any suggestions would be great!
    Thanks
    Chris P.

    i have figured this out please ignor ethis message
    i did not ad the classpath into the run for the main() (when compiling)

  • Sybase Connection Error - cannot establish database connection

    BO Data Services Tool -> Creation of new Data Store -> Sybase ASE
    When I tried to create a sybase datastore(New connection), I've got this error message. But I am able to connect to sybase database with client application with same connection parameter. I appreciate if someone come across same issue.
    ERROR MESSAGE
    *WARNING: Cannot establish database connecton.
    u2018Sybase connecton error: <Sybase ASE Server message number <1640> State <2> Severity <16> From Server <tstlS03>: Message Text is:
    Adaptve Server requires encrypton of the login password on the network.
    Sybase ASE Server message number <4002> State <1> Severity <14> From Server <tstlSO3>: Message Text is: Login failed.
    Sybase CS Library message number <6717S468> Severity <4>: Message Text is: ct_connectO: protocol specific layer: external error: The attempt to connect to the server failed.>.u2019 lODI- 1111341)

    I tried to create repositories for sybase, it failed.  But it succeeded when created datastore.  The procedures's as follow:
    1. Create ODBC for this sybase connection, and it should display "Connection successful" when you click "Test connection".
       (you need to specify several parameters like user id & password, server,database name and file, etc.)
    2. Create datastore by using ODBC connection.

  • Sybase connection tab not showing in New connection option in SQL developer

    Hi,
    I do not see a Sybase connection tab in New connection option in SQL developer 2.1 where as it was available in ver 1.5
    Why is that? how to fix it?

    Hi,
    Have you installed the JTDS JDBC driver yet into SQL Developer.
    This is required before you get the connection tab for SQL Server and Sybase.
    You can install the JTDS driver from the Check For Updates action.
    Regards,
    Dermot
    SQL Developer Team

  • Unable to set-up sybase connection pool for wls6.1

    Hi All,
    I am trying to set-up sybase connection pool in wls6.1 using the supplied jConnect driver (don't know the version of the driver). In diff places I am seeing diff opinions about the settings. It is really frustrating because BEA doc shies away from documenting just the sybase details although it provides details about Oracle, informix and SQL Server.
    I just want to know these
    1. the xml string for the connection pool
    2. which config file should have it (web.xml or config.xml or something else?)
    thanks a ton in advance
    ~rakesh

    Hi,
    I've already solve the problem. I did the following:
    set the Url to be: jdbc:oracle:thin:@hostname:port:SID
    set username
    set password
    add oracle.jdbc.drivers.OracleDriver into the JVM options -Djdbc.drivers
    restart the server
    test the connection
    it works :)

  • Sybase connectivity in ODI

    Hi ,
    Please suggest me the steps for establishing Sybase connectivity with ODI.
    Also kindly provide me which Java connectors to be used and download path:
    Thanks for your anticipation,
    teja

    No idea but I'm sure google could help you out there ;-) Your question was how can ODI connect to netsuite which I think you now have the answer for.

  • WLS 5.1 with SP11 and Sybase connection pools

    I had posted back in January about an issue with WLS 6.1 and Sybase connection
    pools (see posts 12040 - 12043). This issue has now appeared in WLS 5.1 with
    SP 11. I have backed out SP11, but I'd take advantage of the clustering enhancements
    in this SP. Any suggestions? Would it be possible to get another one off patch
    for SP11?

    Could you fill me in as to what problem you were having. We are also using
    Sybase with WLS5.1 and experience intermittent truncating of resultsets.
    Regards,
    Garvin LeClaire
    [email protected]
    "Pete Auriemma" <[email protected]> wrote in message
    news:3c8669ee$[email protected]..
    >
    I had posted back in January about an issue with WLS 6.1 and Sybaseconnection
    pools (see posts 12040 - 12043). This issue has now appeared in WLS 5.1with
    SP 11. I have backed out SP11, but I'd take advantage of the clusteringenhancements
    in this SP. Any suggestions? Would it be possible to get another one offpatch
    for SP11?

  • Transparent gateway to Sybase: connection error

    I have been trying with little success to set up a transparent gateway to a sybase server.
    The gateway is an NT 4 workstation, with an oracle server 8.1.7 installed. The sybase server is an ASE 12.0 on a Solaris 8 box.
    Are these versions of the products supported? In the gateway documentation only Sybase 11 is mentioned...
    Moreover all the examples/schemas given refer to an installation of the gateway on the same machine as the sybase server, whereas in my case the gateway is installed on a separate machine (but it is also stated that this configuration is allowed, provided a sybase client is installed togheter with the gateway).
    From what I can make of the error messages / trace files, the problem lies in the gateway not finding the sybase server. But from the sybase client installed on the gateway machine I can connect to the same remote sybase server without hassles, so the sybase client is configured correctly.
    Thanks for help,
    Gaetano Giunta
    Here's the complete details about the situation:
    Sybase client version:
    Sybase ASE client, version 12.0
    sybase environment variables:
    SYBASE=e:\sybase
    SYBASE_OCS=OCS-12_0
    Sybase server:
    Sybase ASE 12.0 on Solaris 8
    The platform/OS on which the gateway and database reside:
    Windows NT 4.0 + SP6a
    Machine Name: fsiazi08
    Oracle database server:
    Oracle 8i enterprise edition, Version: 8.1.7
    Oracle SID of the Oracle database server
    SID: gate
    Full pathname to directory where the Oracle database server is installed
    ORACLE_HOME: e:\oracle\ora81
    Versions of Net8 Server / client used by the gateway & database
    Net8 Version: 8.1.7
    Net8 Adapter used by the gateway: TCP/IP
    Oracle Transparent Gateway for Sybase:
    Version: 8.1.6
    Full pathname to directory in which gateway resides:
    Path: e:\oracle\ora81\tg4sybs
    Listing of spool log if using SQL*Plus, or the SQL statement and error message received
    SQL*Plus: Release 8.0.5.0.0 - Production on Mon Feb 18 10:27:51 2002
    (c) Copyright 1998 Oracle Corporation. All rights reserved.
    Connected to:
    Oracle8i Enterprise Edition Release 8.1.7.0.0 - Production
    With the Partitioning option
    JServer Release 8.1.7.0.0 - Production
    SQL> select * from "bdvo"."arcofifo"@pollo
    2 /
    select * from "bdvo"."arcofifo"@pollo
    ERROR at line 1:
    ORA-28500: connection from ORACLE to a non-Oracle system returned this message:
    [Transparent gateway for SYBASE]ct_connect(): directory service layer: internal directory control
    layer error: Requested server name not found.
    ORA-02063: preceding 2 lines from POLLO
    SQL>
    Listings of key files:
    tg4sybs_agt_pid.trc log file gathered with HS_FDS_TRACE_LEVEL=on
    (0) [Transparent gateway for SYBASE] version: 2.0.4.0.0009
    (0) connect string is:
    (0) YEAR2000_POLICY=-1;CONSUMER_API=1;SESSION_BEHAVIOR_FLAGS=4;PARSER_DEPTH=2000;E-
    (0) XEC_FLAGS = 131080;defTdpName=tg4sybs;binding=(tg4sybs,SYBASE,"sqlbdvlin1");
    (0) ORACLE SYBASE GATEWAY Log File Started at 15-Feb-02 16:54:43
    (0) ct_connect(): directory service layer: internal directory control layer error:
    (0) Requested server name not found.
    (0) Unexpected error: Get Sybase Logon: app:TG4SYBS$2, user:, pass:,
    (0) service:sqlbdvlin1.TG4SYBS$2, server:sqlbdvlin1
    (0) Unexpected error: , connect
    (0) ct_connect(): directory service layer: internal directory control layer error:
    (0) Requested server name not found.
    (0)
    (0) Closing log file at FRI FEB 15 16:54:44 2002.
    inittg4sybs.ora
    # This is a sample agent init file that contains the HS parameters that are
    # needed for an SYBASE gateway Agent.
    # HS init parameters
    #HS_FDS_CONNECT_INFO=sqlbdvlin1.master
    #HS_FDS_TRACE_LEVEL=OFF
    HS_FDS_CONNECT_INFO=sqlbdvlin1.procs
    HS_FDS_TRACE_LEVEL=on
    # Environment variables required for the non-Oracle system
    set SYBASE=e:\sybase
    set SYBASE_OCS=OCS-12_0
    tnsnames.ora
    # TNSNAMES.ORA Network Configuration File: E:\oracle\ora81\network\admin\tnsnames.ora
    # Generated by Oracle configuration tools.
    GATE =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = TCP)(HOST = fsiazi08)(PORT = 1521))
    (CONNECT_DATA =
    (SERVICE_NAME = gate)
    INST1_HTTP =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = TCP)(HOST = fsiazi08)(PORT = 1521))
    (CONNECT_DATA =
    (SERVER = SHARED)
    (SERVICE_NAME = gate)
    (PRESENTATION = http://admin)
    EXTPROC_CONNECTION_DATA =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC0))
    (CONNECT_DATA =
    (SID = PLSExtProc)
    (PRESENTATION = RO)
    tg4sybs = (DESCRIPTION=
    (ADDRESS=(PROTOCOL=tcp)(HOST=fsiazi08)(PORT=1521))
    (CONNECT_DATA=(SID=tg4sybs))
    (HS=OK)
    listener.ora
    # LISTENER.ORA Network Configuration File: E:\oracle\ora81\network\admin\listener.ora
    # Generated by Oracle configuration tools.
    LISTENER =
    (DESCRIPTION_LIST =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC0))
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = TCP)(HOST = fsiazi08)(PORT = 1521))
    (DESCRIPTION =
    (PROTOCOL_STACK =
    (PRESENTATION = GIOP)
    (SESSION = RAW)
    (ADDRESS = (PROTOCOL = TCP)(HOST = fsiazi08)(PORT = 2481))
    SID_LIST_LISTENER =
    (SID_LIST =
    (SID_DESC =
    (SID_NAME = PLSExtProc)
    (ORACLE_HOME = E:\oracle\ora81)
    (PROGRAM = extproc)
    (SID_DESC =
    (GLOBAL_DBNAME = gate)
    (ORACLE_HOME = E:\oracle\ora81)
    (SID_NAME = gate)
    (SID_DESC=
    (SID_NAME=tg4sybs)
    (ORACLE_HOME=E:\oracle\ora81)
    (PROGRAM=tg4sybs)
    CONNECT_TIMEOUT_LISTENER = 0
    Sybase interfaces file (e:\sybase\ini\sql.ini)
    ;; Sybase Interfaces file
    ;; <link_type>=<network_driver>,<connection_info>
    ;; Examples:
    ;; [JUPITER]
    ;; QUERY=NLMSNMP,\\JUPITER\pipe\sybase\query
    ;; WIN3_QUERY=WNLNMP,\\JUPITER\pipe\sybase\query
    [bdvlin1]
    master=TCP,10.1.1.238,4000
    query=TCP,10.1.1.238,4000
    Sybase net-library configuration (e:\sybase\ocs-12_0\ini\libtcl.cfg)
    ; This is the sample Net-Library configuration file which
    ; shows how to specify the different types of drivers which
    ; will be used by Client-Library and Server-Library
    ; applications.
    ;      This is the sample for NT platforms.
    [DRIVERS]
    NLWNSCK=TCP Sockets
    NLWNSCK=TCP/IP Sockets
    ;[NT_DIRECTORY]
    ;REGISTRY=LIBDREG ditbase=SOFTWARE\SYBASE\SERVER
    ;[SECURITY]
    ;NTLM=LIBSMSSP

    Gaetano,
    The supported products that we list in the manual is only what we have tested at print time. However we update our certification matrix regularly.
    Please refer to the certification matrix on Technet.com ( http://otn.oracle.com/products/gateways/pdf/certmatrix2.pdf) for the latest certified configurations.
    It looks like you have installed the gateway in the same Oracle home as the database. With v8.1.6 of the gateway this is not possible. With v9.x onwards this is possible.
    You can either reinstall the gateway in another Oracle home or upgrade to v9.x.
    I recommend that you upgrade to v9.x, since v8.x will be desupported shortly.
    As of v9.x the Sybase gateway is located on the database CD and you can install it by doing a custom install.
    Vira

  • JDBC - Sybase Connectivity Issue

    I'm a Java beginner.When using the java JDBC i'm experiencing the following issues
    Connection string used - jdbc:sybase:Tds:<Serverip>:<ServerPort>
    Driver File - com.sybase.Jdbc2.Jdbc.SybDriver
    Initially when i tried using these values i'm able to establish the database connection.But recently i changed the machine name.I'm using the same machine for both Database and Java.After the machine name changes i'm getting the following error
    SQLException:Jz006:caught IOException:java.net.connect Exception.
    Please help me...

    Just rename back the host. Do it work?
    See [http://tmaj.pathology.jhmi.edu/doc/manual/FAQs.html#DATABASE_TROUBLESHOOTING]
    I found somewhere that
    Note: The following exception occurs when you click Test Connection to connect a Sybase data source from the administrative console.
    Test connection failed for data source isagent on server server1 at node
    svtaix24Node01 with the following exception: java.lang.Exception:
    java.sql.SQLException: JZ006: Caught IOException: java.net.ConnectException: A
    remote host refused an attempted connect operation.DSRA0010E: SQL State = JZ006,
    Error Code = 0
    This exception occurs when the Sybase data source port number is not matched to the port configured in Sybase server.
    The default port number is 5000.
    Check the port number of your Sybase server in the interfaces file under /<sybase install directory>.

  • Cannot create a sybase connection pool

    I am trying to migrate from Orion app server to Sun One appserver. Here is how I define the connection pool for orion
         <data-source class="com.evermind.sql.DriverManagerDataSource"
                                       name="TestPool"
                                       location="jdbc/rumbaDataSource"
                                       xa-location="jdbc/xa/rumbaPool"
                                       ejb-location="jdbc/rumbaPool"
                                       connection-driver="com.sybase.jdbc2.jdbc.SybXADataSource"
                                       connection-retry-interval="60"
                                       username="test"
                                       password="test"
                                       url="jdbc:sybase:Tds:3.23.24.25:20000/abc?HOSTNAME=rumba"
                                       inactivity-timeout="300"
                                       min-connections="6"
                                       max-connections="75"
         />
    This is how my connection pool appears in Sun ONE
    <jdbc-connection-pool steady-pool-size="8" max-pool-size="32" max-wait-time-in-millis="60000" pool-resize-quantity="2" idle-timeout-in-seconds="300" is-isolation-level-guaranteed="false" is-connection-validation-required="false" connection-validation-method="auto-commit" fail-all-connections="false" datasource-classname="com.sybase.jdbc2.jdbc.SybXADataSource" name="TestPool">
    <property value="3.23.24.25" name="serverName"/>
    <property value="20000" name="portNumber"/>
    <property value="jdbc:sybase:Tds:" name="networkProtocol"/>
    <property value="test" name="user"/>
    <property value="test" name="password"/>
    <property value="abc" name="databaseName"/>
    </jdbc-connection-pool>
    But, I am unable to make a connection using this connection pool

    Here is the exception
    SEVERE: RAR5041:Cannot get jdbc connection
    com.sun.enterprise.repository.J2EEResourceException
    java.lang.NoSuchMethodException: seturl
    at com.sun.enterprise.repository.JdbcConnectionPool.createDataSource(Jdb
    cConnectionPool.java:243)
    at com.sun.enterprise.resource.JdbcUrlAllocator.createResource(JdbcUrlAl
    locator.java:80)
    at com.sun.enterprise.resource.IASNonSharedResourcePool.createSteadyReso
    urces(IASNonSharedResourcePool.java:856)
    at com.sun.enterprise.resource.IASNonSharedResourcePool.initPool(IASNonS
    haredResourcePool.java:416)
    at com.sun.enterprise.resource.IASNonSharedResourcePool.internalGetResou
    rce(IASNonSharedResourcePool.java:625)
    at com.sun.enterprise.resource.IASNonSharedResourcePool.getResource(IASN
    onSharedResourcePool.java:520)
    at com.sun.enterprise.resource.PoolManagerImpl.getResourceFromPool(PoolM
    anagerImpl.java:263)
    at com.sun.enterprise.resource.JdbcXAConnection.<init>(JdbcXAConnection.
    java:74)
    at com.sun.enterprise.resource.Jdbc10XaAllocator.createResource(Jdbc10Xa
    Allocator.java:94)
    at com.sun.enterprise.resource.IASNonSharedResourcePool.createSteadyReso
    urces(IASNonSharedResourcePool.java:856)
    at com.sun.enterprise.resource.IASNonSharedResourcePool.initPool(IASNonS
    haredResourcePool.java:416)
    at com.sun.enterprise.resource.IASNonSharedResourcePool.internalGetResou
    rce(IASNonSharedResourcePool.java:625)
    at com.sun.enterprise.resource.IASNonSharedResourcePool.getResource(IASN
    onSharedResourcePool.java:520)
    at com.sun.enterprise.resource.PoolManagerImpl.getResourceFromPool(PoolM
    anagerImpl.java:263)
    at com.sun.enterprise.resource.PoolManagerImpl.getResource(PoolManagerIm
    pl.java:170)
    at com.sun.enterprise.resource.JdbcDataSource.internalGetConnection(Jdbc
    DataSource.java:241)
    at com.sun.enterprise.resource.JdbcDataSource.getConnection(JdbcDataSour
    ce.java:124)
    at samples.jdbc.simple.servlet.GreeterDBLogDisplayServlet.doGet(Unknown
    Source)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
    at org.apache.catalina.core.StandardWrapperValve.invokeServletService(St
    andardWrapperValve.java:720)
    at org.apache.catalina.core.StandardWrapperValve.access$000(StandardWrap
    perValve.java:118)
    at org.apache.catalina.core.StandardWrapperValve$1.run(StandardWrapperVa
    lve.java:278)
    at java.security.AccessController.doPrivileged(Native Method)
    at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperV
    alve.java:274)
    at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.jav
    a:505)
    at org.apache.catalina.core.StandardContextValve.invoke(StandardContextV
    alve.java:212)
    at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.jav
    a:505)
    at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.j
    ava:203)
    at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.jav
    a:505)
    at com.iplanet.ias.web.connector.nsapi.NSAPIProcessor.process(NSAPIProce
    ssor.java:157)
    at com.iplanet.ias.web.WebContainer.service(WebContainer.java:598)
    INFO: CORE3282: stdout: - Could not interact with the database
    INFO: CORE3282: stdout: - Exception: java.sql.SQLException: com.sun.enterprise.r
    epository.J2EEResourceException
    WARNING: CORE3283: stderr: at com.sun.enterprise.repository.JdbcConnectionP
    ool.createDataSource(JdbcConnectionPool.java:238)
    WARNING: CORE3283: stderr: at com.sun.enterprise.resource.JdbcUrlAllocator.
    createResource(JdbcUrlAllocator.java:80)
    WARNING: CORE3283: stderr: at com.sun.enterprise.resource.IASNonSharedResou
    rcePool.createSteadyResources(IASNonSharedResourcePool.java:856)
    INFO: CORE3282: stdout: java.lang.NoSuchMethodException: seturl
    INFO: CORE3282: stdout: Closing statement...
    WARNING: CORE3283: stderr: at com.sun.enterprise.resource.IASNonSharedResou
    rcePool.initPool(IASNonSharedResourcePool.java:416)
    WARNING: CORE3283: stderr: at com.sun.enterprise.resource.IASNonSharedResou
    rcePool.internalGetResource(IASNonSharedResourcePool.java:625)
    INFO: CORE3282: stdout: - Could not close the statement and connection
    INFO: CORE3282: stdout: GreeterDBLogDisplayServlet is all done
    WARNING: CORE3283: stderr: at com.sun.enterprise.resource.IASNonSharedResou
    rcePool.getResource(IASNonSharedResourcePool.java:520)
    WARNING: CORE3283: stderr: at com.sun.enterprise.resource.PoolManagerImpl.g
    etResourceFromPool(PoolManagerImpl.java:263)
    WARNING: CORE3283: stderr: at com.sun.enterprise.resource.JdbcXAConnection.
    <init>(JdbcXAConnection.java:74)
    WARNING: CORE3283: stderr: at com.sun.enterprise.resource.Jdbc10XaAllocator
    .createResource(Jdbc10XaAllocator.java:94)
    WARNING: CORE3283: stderr: at com.sun.enterprise.resource.IASNonSharedResou
    rcePool.createSteadyResources(IASNonSharedResourcePool.java:856)
    WARNING: CORE3283: stderr: at com.sun.enterprise.resource.IASNonSharedResou
    rcePool.initPool(IASNonSharedResourcePool.java:416)
    WARNING: CORE3283: stderr: at com.sun.enterprise.resource.IASNonSharedResou
    rcePool.internalGetResource(IASNonSharedResourcePool.java:625)
    WARNING: CORE3283: stderr: at com.sun.enterprise.resource.IASNonSharedResou
    rcePool.getResource(IASNonSharedResourcePool.java:520)
    WARNING: CORE3283: stderr: at com.sun.enterprise.resource.PoolManagerImpl.g
    etResourceFromPool(PoolManagerImpl.java:263)
    WARNING: CORE3283: stderr: at com.sun.enterprise.resource.PoolManagerImpl.g
    etResource(PoolManagerImpl.java:170)
    WARNING: CORE3283: stderr: at com.sun.enterprise.resource.JdbcDataSource.in
    ternalGetConnection(JdbcDataSource.java:241)
    WARNING: CORE3283: stderr: at com.sun.enterprise.resource.JdbcDataSource.ge
    tConnection(JdbcDataSource.java:124)
    WARNING: CORE3283: stderr: at samples.jdbc.simple.servlet.GreeterDBLogDispl
    ayServlet.doGet(Unknown Source)
    WARNING: CORE3283: stderr: at javax.servlet.http.HttpServlet.service(HttpSe
    rvlet.java:740)
    WARNING: CORE3283: stderr: at javax.servlet.http.HttpServlet.service(HttpSe
    rvlet.java:853)
    WARNING: CORE3283: stderr: at org.apache.catalina.core.StandardWrapperValve
    .invokeServletService(StandardWrapperValve.java:720)
    WARNING: CORE3283: stderr: at org.apache.catalina.core.StandardWrapperValve
    .access$000(StandardWrapperValve.java:118)
    WARNING: CORE3283: stderr: at org.apache.catalina.core.StandardWrapperValve
    $1.run(StandardWrapperValve.java:278)
    WARNING: CORE3283: stderr: at java.security.AccessController.doPrivileged(N
    ative Method)
    WARNING: CORE3283: stderr: at org.apache.catalina.core.StandardWrapperValve
    .invoke(StandardWrapperValve.java:274)
    WARNING: CORE3283: stderr: at org.apache.catalina.core.StandardPipeline.inv
    oke(StandardPipeline.java:505)
    WARNING: CORE3283: stderr: at org.apache.catalina.core.StandardContextValve
    .invoke(StandardContextValve.java:212)
    WARNING: CORE3283: stderr: at org.apache.catalina.core.StandardPipeline.inv
    oke(StandardPipeline.java:505)
    WARNING: CORE3283: stderr: at org.apache.catalina.core.StandardHostValve.in
    voke(StandardHostValve.java:203)
    WARNING: CORE3283: stderr: at org.apache.catalina.core.StandardPipeline.inv
    oke(StandardPipeline.java:505)
    WARNING: CORE3283: stderr: at com.iplanet.ias.web.connector.nsapi.NSAPIProc
    essor.process(NSAPIProcessor.java:157)
    WARNING: CORE3283: stderr: at com.iplanet.ias.web.WebContainer.service(WebC
    ontainer.java:598)

  • SyBase connection problems

    I'm t rying to connect to a SyBase database with the code below. I get three results with equal distribution:
    1) It gets through and makes the connection - I'm golden
    2) I get:
    Exception: JZ006: Caught IOException: java.net.SocketException: Connection aborted by peer: socket write error
    3) I get:
    Exception: JZ0C0: Connection is already closed.
    Anybody using SyBase with JDBC seen this before?
         private Connection connectToSyBase( String username, String password, String ipAddress, int port )
                             throws SQLException
              Connection con = null;                    // For return
              String url = null;
              try {
                   // Load and register the Sybase driver, if not already done
                   loadSyBaseDrivers();
                   // Establish a connection
                   //          "jdbc:sybase" => identifies the driver
                   //          "Tds" => the Sybase communication protocol for Adaptive Server
                   //          "host:port/database" => the Adaptive Server hostname and listening port
                   url = "jdbc:sybase:Tds:" + ipAddress + ":" + port;
                   System.out.println( "ConnectionFactory.connectToSyBase: getConnection" );
                   con = DriverManager.getConnection( url, username, password );
                   System.out.println( "ConnectionFactory.connectToSyBase: success!" );
              } catch( Exception e ) {
                   String msg = "Exception: " + e.getMessage();
                   System.out.println( "ConnectionFactory.connectToSyBase: " + msg );
                   throw new SQLException( msg );
              // We're golden - return the Connection
              return con;
          *     Load SyBase drivers
         private void loadSyBaseDrivers()
                             throws SQLException
              if( _sybDriver == null ) {
                   try {
                        System.out.println( "ConnectionFactory.loadSyBaseDrivers: load SybDriver" );
                        _sybDriver = (SybDriver)Class.forName("com.sybase.jdbc2.jdbc.SybDriver").newInstance();
                        System.out.println( "ConnectionFactory.loadSyBaseDrivers: set VERSION" );
                        _sybDriver.setVersion( com.sybase.jdbcx.SybDriver.VERSION_5 );
                        System.out.println( "ConnectionFactory.loadSyBaseDrivers: registerDriver" );
                        DriverManager.registerDriver( _sybDriver );
                   } catch( InstantiationException ie ) {
                        // All exceptions get rethrown as SQLException
                        String msg = "InstantiationException: " + ie.getMessage();
                        System.out.println( "ConnectionFactory.loadSyBaseDrivers: " + msg );
                        throw new SQLException( msg );
                   } catch( ClassNotFoundException cnfe ) {
                        String msg = "ClassNotFoundException: " + cnfe.getMessage();
                        System.out.println( "ConnectionFactory.loadSyBaseDrivers: " + msg );
                        throw new SQLException( msg );
                   } catch( SQLException e ) {
                        String msg = "SQLException: " + e.getMessage();
                        System.out.println( "ConnConnectionFactory.loadSyBaseDriversectionFactory: " + msg );
                        throw new SQLException( msg );
                   } catch( Exception e ) {
                        String msg = "Exception: " + e.getMessage();
                        System.out.println( "ConnectionFactory.loadSyBaseDrivers: " + msg );
                        throw new SQLException( msg );

    I am getting following exception while i try to connect to sybase (SQL Anywhere 10)
    java.sql.SQLException: JZ006: Caught IOException: java.net.ConnectException: Con
    nection refused: connect
    at com.sybase.jdbc3.jdbc.ErrorMessage.raiseError(Unknown Source)
    at com.sybase.jdbc3.jdbc.ErrorMessage.raiseErrorCheckDead(Unknown Source
    at com.sybase.jdbc3.tds.Tds.a(Unknown Source)
    at com.sybase.jdbc3.tds.Tds.a(Unknown Source)
    at com.sybase.jdbc3.tds.Tds.login(Unknown Source)
    at com.sybase.jdbc3.jdbc.SybConnection.a(Unknown Source)
    at com.sybase.jdbc3.jdbc.SybConnection.a(Unknown Source)
    at com.sybase.jdbc3.jdbc.SybConnection.<init>(Unknown Source)
    at com.sybase.jdbc3.jdbc.SybConnection.<init>(Unknown Source)
    at com.sybase.jdbc3.jdbc.SybDriver.connect(Unknown Source)
    at java.sql.DriverManager.getConnection(Unknown Source)
    at java.sql.DriverManager.getConnection(Unknown Source)
    at SpringTest.displayData(SpringTest.java:33)
    at SpringTest.main(SpringTest.java:95)
    Following code I am using.
    SybDriver sybDriver = (SybDriver) Class.forName("com.sybase.jdbc3.jdbc.SybDriver").newInstance();
    DriverManager.registerDriver(sybDriver);
    con = DriverManager.getConnection("jdbc:sybase:Tds:199.82.249.27:2638/TITAN-PFR", "titanpfr", "titanpfr1");
    Can anyone help me why i am getting that error?

  • Sybase connection causing error

    Hi,
    I am trying to connect to a sybase database using JDBC. Do I need to issue an 'use database_name' command to the sybase database before I can start selecting from the tables in the database?
    I have tried doing the following but it is giving me an error saying that there is no result set for this query
    String results = "";
    String sql = "use database_name";
    Conenction conn = dataSource.getConnection();
    Statement stmt = conn.createStatement();
    ResultSet rs = stmt.executeQuery(sql);
    while(rs.next()){
    do something;
    Can anyone help?

    hi ,
    >>Statement stmt = conn.createStatement();
    ResultSet rs = stmt.executeQuery(sql); seems to be wrong... afterall... your query "use database_name" isn't expected to return anything.. isn't it? better use   Statement stmt = conn.createStatement();
      stmt.execute(sql); 
    //or
      stmt.executeUpdate(sql);   and check with your jdbc driver documentation on how to specify the database while establishing connection. Most probably u can specify it in the jdbc connection url or using a property object.
    It should support it i hope.
    All the best,
    -Jer

  • Sybase connection error

    I am getting following error when running my bpel process:
    file:/opt/oracle10g/product/10.1.0/oas_1/integration/orabpel/domains/default/tmp/.bpel_EBODProcess_1.0.jar/leasepak.wsdl [ leasepak_ptt::leasepakSelect_arg(leasepakSelect_arg_inparameters,RalCollection) ] - WSIF JCA Execute of operation 'leasepakSelect_arg' failed due to: Could not create/access the TopLink Session. This session is used to connect to the datastore. ; nested exception is: ORABPEL-11622 Could not create/access the TopLink Session. This session is used to connect to the datastore. See root exception for the specific exception. You may need to configure the connection settings in the j2ee/home/application-deployments/default/DbAdapter/oc4j-ra.xml and restart the server. Caused by Exception [TOPLINK-4003] (OracleAS TopLink - 10g (9.0.4.5) (Build 040930)): oracle.toplink.exceptions.DatabaseException Exception Description: Configuration error. Class [com.sybase.jdbc2.jdbc.SybDriver] not found..
    I do not have directory j2ee/home... but have the file oc4j-ra.xml in j2ee/application-deployments/default/DbAdapter/oc4j-ra.xml which i modiefied but am still getting the same error.
    Thanks.

    Hi there,
    you may need to add the Sybase driver to BPEL Server's (oc4j) classpath.
    You can check out the BPEL dev guide at otn.oracle.com/bpel. Specifically in Chapter 20 there is a section "Third-Party Database Support". I am copying from there:
    At run time, you must put the driver's JARs on the application server's classpath. You
    can do this in the following ways:
    &#9632; Edit the classpath in the following files:
    (standalone) Oracle_
    Home/integration/orabpel/system/appserver/oc4j/j2ee/home/config/application.xml
    (regular middle tier) Oracle_Home/j2ee/OC4J_BPEL/config/application.xml
    &#9632; Drop the JARs into the following directories:
    (standalone) Oracle_
    Home/integration/orabpel/system/appserver/oc4j/j2ee/home/applib
    (regular middle tier) Oracle_Home/j2ee/OC4J_BPEL/applib
    If you look at the application.xml you may notice this is how we include the jdbc drivers for olite, i.e.
    <library path="C:\OraBPELPM\integration\orabpel\lib\olite40.jar"/>
    Good luck!
    Steve

  • DB2 Connection/Sybase connections

    Hi All,
    Can we establish a connection to IBM DB2 and Sybase directly from Documaker ?
    For now I am observing only ODBC connection. Please let me know.
    We use  JDBC fro DB2 and Sybase SQL Anywhere - jConnect for Sybase .
    Thanks
    RUC

    You didn't mention exactly what functionality or where you intend to reference the database, but depending upon your version of Documaker, you may be able to use JDBC. You just have to do a little of the configuration manually.

  • Sybase Connectivity with JSP

    Can someone gimme the code for Sybase-JSP database connectivity ?
    Thanx
    Rams

    you can get the connection within your JSP or out the code in an external bean which can be shared among many applications.
    Here is the external version, assuming Sybase JConnect.
    jConnect should be in your classpath,
    e.g. CLASSPATH=.;D:\jConnect-5_5\classes\jconn2.jar;
    import java.util.* ;
    import java.io.* ;
    import java.sql.* ;
    import java.text.* ;
    public class Util {
    java.sql.Connection conn = null ;
    public java.sql.Connection getConnection(String serverUrl, String userId, String password) {
    // serverUrl = server and port in the format "servername:port"
    try {
    Class.forName("com.sybase.jdbc2.jdbc.SybDriver");
    conn = DriverManager.getConnection("jdbc:sybase:Tds:" + serverUrl, userId, password);
    catch (java.sql.SQLException e) {
    System.err.println(e);
    catch (Exception e) {
    System.err.println(e);
    return conn;
    public void closeConnection() {
    try {
    if ( conn != null ) {
    conn.close() ;
    catch (java.sql.SQLException e) {
    System.err.println(e);
    }

Maybe you are looking for

  • Error encountered while doing on-demand refresh of Power BI report

    When I try to manually refresh a PowerBI excel that has been uploaded on to SharePoint, I get this error. "OnPremise error: Sorry, you don't have permissions to retrieve data for this data connection. Request access from your Power BI admin. An error

  • GRC-AC CUP 5.3 SP11 UAR Admin Review

    Hi All, We are on GRC-AC v5.3 SP11 and we are implementing UARs. My question is on the Admin Review functionality. The only "pushbutton" options are "Change" and "Cancel Request(s)". However, we have noticed in our testing that the only ones that get

  • Help With Tags

    I have a TagLib which is working perfectly with JSPs,The Tag is <c:chart id="chart1" datasource="#{name.Graph}" type="xyline" is3d="false" background="green" height="50" width="150" legend="false" border="true"> </c:chart>. What i am trying to do is

  • Price list factor by item

    Hello, we are using factors to link price lists and the factors are different by item group. E.g. item group 1 -> Target Price = Base Price * 1,2 item group 2 -> Target Price = Base Price * 1,4 SAP stores the factor in the table ITM1. Is it possible

  • Modification Check

    Dear All, i Have an issue in which in standard FI transaction FBL5N when i see in development on pressing of " dynamic Selection Tab " on the first screen of FBL5N i get different screen as compared to test or production now according to functional i