JDBC Adapter Connection Issue

Hi Experts,
The scenario is file to JDBC, the messages are getting failed in XI MDT with the following error "JDBC Message processing failed ,reason when attempting to get processing resources: com.sap.aii.af.service.utill.concurrent.ResourcePoolException: Unable to create new pooled resource: DriverManagerException: Cannot establish connection to URL<JDBC Connection details maintained in CC>: SQLException: Io exception: The Network Adapter could not establish the connection".
We got this error after changing the IP addreass of the Oralce system. we did maintained in all the communication channels with new IP Address, previously the data is updating to the Oralce table with old IP addreass.
IP address is also maintained in XI Host file. We are able to ping the Oralce from XI with new IP.
Can any body suggest how to rectify the issue.
Thanks in Advance
Bhaskar

Hi,
have you checked cache status. It is possbile that the change hasn't been applied yet. That would explain, why the database can't be reached.
Stop/Start of communication channel might also help. Sometimes it si necessary to restart the whole JDBC Adapter.
If all this fails, you should get yourself a free copy of DBVisualizer, use the same database driver as is installed on PI, provide credentials and try to reach database. Might also be a driver issue.
Regards
Sven

Similar Messages

  • JDBC-ORACLE CONNECTIVITY ISSUE WITYH OCI8 DRIVER using oracle 11g client..

    JDBC-ORACLE CONNECTIVITY ISSUE WITYH OCI8 DRIVER using oracle 11g client..
    I am getting below error when i m trying to access oracle db using oracle 11g client. It works with earlier oracle client versions. how do i resolve this. is there any issue with version of ojdbc6.jar that i am using??? I cant use thin driver since its an old application for which i dont have source files.
    Apr 6, 2013 1:00:59 PM org.apache.catalina.core.StandardWrapperValve invoke
    SEVERE: Servlet.service() for servlet jsp threw exception
    java.lang.UnsatisfiedLinkError: no ocijdbc9 in java.library.path
    at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1682)
    at java.lang.Runtime.loadLibrary0(Runtime.java:822)
    at java.lang.System.loadLibrary(System.java:992)
    at oracle.jdbc.oci8.OCIDBAccess.logon(OCIDBAccess.java:262)
    at oracle.jdbc.driver.OracleConnection.<init>(OracleConnection.java:346)
    at oracle.jdbc.driver.OracleDriver.getConnectionInstance(OracleDriver.java:468)
    at oracle.jdbc.driver.OracleDriver.connect(OracleDriver.java:314)
    at java.sql.DriverManager.getConnection(DriverManager.java:525)
    at java.sql.DriverManager.getConnection(DriverManager.java:171)
    at PettyCash.SysDate.getSysSubSys(SysDate.java:232)
    at org.apache.jsp.PettyCash.index_jsp._jspService(org.apache.jsp.PettyCash.index_jsp:186)
    at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
    at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:322)
    at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)
    at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
    Code is as follow for reference
    import oracle.jdbc.driver.*;
    DriverManager.registerDriver(new oracle.jdbc.OracleDriver());
    conn = DriverManager.getConnection ("jdbc:oracle:oci8:@" + database,db_user, db_pass);
    eNVIRONMENT VARIABLES set are as follows:
    classpath
    C:\Program Files\apache-tomcat-5.5.12\common\lib\servlet-api.jar;C:\Program Files\apache-tomcat-5.5.12\webapps\ROOT\WEB-INF\lib\classes12.jar;C:\Program Files\apache-tomcat-5.5.12\webapps\ROOT\WEB-INF\lib\ojdbc6.jar;
    JAVA_HOME
    C:\Program Files\Java\jdk1.5.0_04
    PATH
    C:\Program Files\Java\jdk1.5.0_04\bin
    ORACLE_HOME
    D:\Oracle11\product\11.2.0\client_1\BIN

    Apr 8, 2013 5:24:06 PM org.apache.catalina.core.StandardWrapperValve invoke
    SEVERE: Servlet.service() for servlet jsp threw exception
    java.lang.NullPointerException
         at org.apache.jsp.abc.index_jsp._jspService(org.apache.jsp.abc.index_jsp:280)
         at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
         at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:322)
         at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)
         at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
         at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
         at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
         at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
         at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
         at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:432)
         at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
         at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
         at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
         at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
         at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:868)
         at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:663)
         at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
         at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80)
         at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
         at java.lang.Thread.run(Thread.java:595)

  • JDBC Adapter - Connectivity

    I connect to Oracle Database using JDBC Adapter and the adapter is configured to poll every 300 secs.
    The Oracle Database goes down over the week end for maintenance. By the time I come Monday morning the Adapters are down and I have to reactivate them from ID. I assumed that the Retry interval will take care of the issued.
    Is there any way to stop this from happening?
    Regards
    Michael

    Hi Michael,
    Like mentioned by Amol, <b>Disconnect from Database After Processing Each Message</b> will do the trick.
    Every time your JDBC adapter receives a message for processing , it will connect to the database the details  provided in the Adapter Configuration.
    Normally, if you do not select this option, your JDBC adapter will connect to the Database once when it is getting activated and will use the same connection for further processing. But, if the Database resets this connection , there is no way the JDBC adapter isaware of this, and the next time a message is processed by it, it will get disconnected.
    So, if this DB disconnection is going to happen frequently, you need to have the option Disconnect from Database After Processing Each Message selected.
    Regards,
    Bhavesh

  • Macbook air Mini DisplayPort to VGA Adapter connectivity issues

    Hi pple,
    Would like to ask if anyone is facing connectivity issues with Mini DisplayPort to VGA?
    I am currently using the 2nd Gen Macbook Air with Intel HD Graphics 3000 384 MB. Sometimes when I connect to a montior (Viewsonic VA1918wm) it works fine, sometimes it just does not work and the laptop just shows me a blue screen.
    I tried with out with my friend's Mini DisplayPort to VGA adapter, it has the same problem. Does this means that my macbook air mini disoaly port got a problem?
    Thanks
    Bryan

    I am experiencing the same kind of problem... only with projectors. Some projectors will display the screen and then others wont even register with the MacBook Air.
    Using an Apple Min Displayport to VGA adapter. It's hit or miss if it works. Firmware has been updated on the adapter but this did not help.
    Anyone help with this?
    Thanks,
    Nathan.

  • JDBC adapter connection

    Hi Gurus,
    My user has a web based system where goods receipt details are entered and it gets updated in mySql DB. In return the user would gather information from sap and displayed back on web at real time. They do not have option for web services or http . They do not want to customize this system.
    Since business system is DB,
    Can I implement the JDBC connection and poll the DB continuously to make synchronous JDBC <-> PROXY scenario. Can I achieve the real time update in DB. Is this going to affect the performance ?
    Kindly suggest.

    Since the JDBC adapter will retrieve the information based on a "SELECT FROM ... WHERE", it would be nice to have some information that could be updated with a flag "been read" or "is changed", which can be updated also by the JDBC sender (you have a query and an update action, please check the help page below). You could also have a query to gather by the timestamp.
    http://help.sap.com/saphelp_nw04s/helpdata/en/7e/5df96381ec72468a00815dd80f8b63/content.htm
    However, it seems you are going to have a 1 second polling on the database? This can have some impact on the performance depending on the database or if you have many XI scenarios running. Is this the only option you have?

  • JDBC Adapter - Connection Pooling

    Does anybody know if we can specify a Connection Pool to the JDBC Adapter? I mean the number of connections that the Adapter can have open to say Oracle Data.
    Regards
    Mike

    Hi Michael,
    Some of the specifications that are given while configuring the JDBC adapter, especially regarding the number of connections that you acn have...is given clearly in this documentation for JDBC adapter:-
    http://help.sap.com/saphelp_nw04/helpdata/en/1d/756b3c0d592c7fe10000000a11405a/frameset.htm
    Specifically check for the following parameters :-
    <i>db.transactionIsolation=0|1|2|4|8
    db.autoCommit=NO|YES
    db.pollInterval=
    db.retryInterval=
    db.logPollInterval=NO|YES</i>
    Regards,
    Sushumna

  • Oracle 10G on XP : Network Adapter Connection Issue

    Hi,
    I am trying to install an enterprise software which uses Oracle 10g database.
    I have installed the database, but installation of the enterprise software fails with the following error message.
    THROWABLE EVENT {Description=[Failed to create connection],
    Throwable=[java.sql.SQLException: Io exception: The Network Adapter could not establish the connection
      oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:125)
      oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:162)
      oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:274)
      oracle.jdbc.driver.T4CConnection.logon(T4CConnection.java:319)
      oracle.jdbc.driver.PhysicalConnection.<init>(PhysicalConnection.java:344)
      oracle.jdbc.driver.T4CConnection.<init>(T4CConnection.java:148)
      oracle.jdbc.driver.T4CDriverExtension.getConnection(T4CDriverExtension.java:32)
      oracle.jdbc.driver.OracleDriver.connect(OracleDriver.java:545)
    The listener name is "LISTENER" and Listner service name is OracleServiceBMCPDS.
    The listener is running.
    LSNRCTL> status
    Connecting to (ADDRESS=(PROTOCOL=TCP)(HOST=hostname)(PORT=1521))
    STATUS of the LISTENER
    Alias                     LISTENER
    Version                   TNSLSNR for 32-bit Windows: Version 10.2.0.2.0 - Production
    Start Date                10-JUL-2009 16:54:48
    Uptime                    0 days 0 hr. 38 min. 11 sec
    Trace Level               off
    Security                  ON: Local OS Authentication
    SNMP                      OFF
    Listener Parameter File   C:\abc...\network\admin\listener.ora
    Listener Log File         C:\abc...\network\log\listener.log
    Listening Endpoints Summary...
      (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=hostname)(PORT=1521)))
    Services Summary...
    Service "BMCPDS" has 1 instance(s).
      Instance "BMCPDS", status UNKNOWN, has 1 handler(s) for this service...
    Service "BMCPDS.corp.capgemini.com" has 1 instance(s).
      Instance "bmcpds", status READY, has 1 handler(s) for this service...
    Service "BMCPDS_XPT.corp.capgemini.com" has 1 instance(s).
      Instance "bmcpds", status READY, has 1 handler(s) for this service...
    The command completed successfully
    I am not a DBA hence finding it hard to resolve the issue. Your help is highly appreciated.
    Edited by: user3533384 on Jul 10, 2009 6:12 AM                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

    Are you talking about the Enterprise Manager Console provided by the oracle or some other enterprise software? If it is enterprise software then you need to the do the proper setting for network connection to database. Probably you will have to configure tnsname.ora and sqlnet.ora. Can you connect through SQL*Plus utility? Go to Run-->SQLPLUSW type in the username password and tnsnames entry for the database. See if you can connect. If not post us the error message.
    Regards.

  • Oracle 8i jdbc/Tomcat connection issues

    Tomcat 4.1.8
    Oracle 8i JDBC Driver
    I have been able to create the DataSource as a global resource and as a local resource inside the context of the application.
    The code hangs when it attempts to create a connection. I have been able to connect to the database and perform the necessary query in a standalone application to ensure that I actually can connect.
    JSP Code:
    <html>
    <head>
    <title>VTW App</title>
    </head>
    <body>
    <%
    vtw.VTWApp tst = new vtw.VTWApp();
    tst.init();
    %>
    <h2>Results</h2>
    <%= tst.getList() %>
    </body>
    </html>
    Java Code (Class called by JSP):
    package vtw;
    import javax.naming.*;
    import javax.sql.*;
    import java.sql.*;
    public class VTWApp {
    String list = "EMPTY";
    public void init() {
    try{
    Context ctx = new InitialContext();
    if(ctx == null )
    throw new Exception("Boom - No Context");
    System.out.println("Context Created ...");
    DataSource ds =
    (DataSource)ctx.lookup(
    "java:comp/env/jdbc/oracleDB");
    if (ds != null) {
              System.out.println("DataSource Created ...");
    Connection conn = ds.getConnection();
    System.out.println("Connection Pulled");
    if(conn != null) {
                   System.out.println("Connection Good");
                   Statement st = conn.createStatement();
                   String query = "";
                   query += "select grpid, to_char(min(dtlastendtime),'mm-dd-yyyy hh24:mi:ss') ";
                   query += "from calc_table where equipmentsernum in (";
                   query += "'888000','888001'";
                   query += ") group by grpid";
                   ResultSet rs = st.executeQuery(query);
                   if(rs != null) {
                        list = "";
                        while(rs.next()) {
                             list += (rs.getString(1) + "," + rs.getString(2));
                   rs.close();
                   conn.close();
                   System.out.println("Connection Closed");
              } else {
                   System.out.println("Connection Not Established");
    }catch(Exception e) {
    e.printStackTrace();
    public String getList() { return list; }
    }

    I figured out the issue ...
    In the server.xml file the resource & resource params needed to be modified..
    1. Set type to oracle.jdbc.pool.OracleDataSource
    2. Set factory to oracle.jdbc.pool.OracleDataSourceFactory
    3. In the Java code cast the context lookup to an OracleDataSource instead of a java.sql.DataSource
    Oracles DataSource does not subclass the jdbc DataSource for its OracleDataSource class everything works fine now.
    <Resource name="jdbc/mydb" scope="Shareable" type="oracle.jdbc.pool.OracleDataSource"/>
    <ResourceParams name="jdbc/mydb">
    <parameter>
    <name>validationQuery</name>
    <value></value>
    </parameter>
                   <parameter>
                        <name>factory</name>
                        <value>oracle.jdbc.pool.OracleDataSourceFactory</value>
                   </parameter>
    <parameter>
    <name>driverClassName</name>
    <value>oracle.jdbc.driver.OracleDriver</value>
    </parameter>
    <parameter>
         <name>url</name>
         <value>jdbc:oracle:thin:@server.company.com:1521:dbname</value>
    </parameter>
    <parameter>
    <name>password</name>
    <value>guest</value>
    </parameter>
                   <parameter>
                        <name>maxWait</name>
                        <value>10000</value>
                   </parameter>
                   <parameter>
                        <name>maxActive</name>
                        <value>100</value>
                   </parameter>
    <parameter>
    <name>user</name>
    <value>guest</value>
    </parameter>
    <parameter>
    <name>maxIdle</name>
    <value>2</value>
    </parameter>
    </ResourceParams>

  • Sender JDBC Adapter - Connectivity Problems

    I installed JDBC Driver for Oracle 9 ojdbc14.jar on the J2EE Engine as per the instructions in the How To Guide. I updated the tnsnames.ora on the server appropriately. Also I could connect to Oracle database from the server using sqlplus. I configured my Sender Adapter with the following parameters:
    JDBC Driver:oracle.jdbc.driver.OracleDriver
    Connection:jdbc:oracle:thin:@ORACLEDEV
    I get the following error:
    Sender Adapter v2108 for Party '', Service 'ORACLEDEV_BS':
    Configured at 2006-03-09 17:24:42 EST
    History:
    - 2006-03-09 17:24:42 EST: Retry interval started. Length: 60.000 s
    - 2006-03-09 17:24:42 EST: Error: Accessing database connection 'jdbc:oracle:thin:@ORACLEDEV' failed: DriverManagerException: Cannot establish connection to URL 'jdbc:oracle:thin:@ORACLEDEV': SQLException: Io exception: SO Exception was generated
    - 2006-03-09 17:24:42 EST: Processing started
    Help is highly appreciated.
    Mike

    Hi Bhavesh/Naveen,
    You are correct.
    Mike, the correct settings are as follows
    JDBC Driver: oracle.jdbc.driver.OracleDriver
    Connection: jdbc:oracle:thin:@<oracle server>:<port>:XDB<sid>
    Username: <oraccle username>
    Password: <oracle password
    Rgds,
    Sam raju

  • 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>.

  • T60p and T61 LAN adapter connection issues

    Hi all,
    Strange issue concerning LAN adapter on both T60p and T61.  Either thinkadvantage laptop is at a different remote location connected to headquarters via a ptp link(fibre). This remote link has been updated recently.  DHCP is assigned from main officeto all user locally and at the two remote sites.
    For some very strange reaso, these both laptops are the only systems at the remote site that cannot get assigend ip settings via DHCP.  Also if I manually assign them static ip settings, (the limited or no connectivity icon disappears) which i presumed but there is still no connectivity to these two laptops via ping cmds etc.
    Even more strange is when these laptops are brought to back to headquarters and are plugged into the network here, they get assigned ip settings like they should and everything works like it should.
    Also all the other systems at the remote sites get their ip settings dynamically like they should.
    The LAN adapters are intel
    I have reinstalled drivers, used winsock repair tools and also plugged the laptops directly into the fibre swtich on the dedicated vlan port that connects to the local swtich at the sites.  Still same syptom
    I am very confused at the moment and would appreciate any advice or solution.  At the moment I believe its how the network card communicates with the protocol on link maybe there is an issue.  I am not sure. Appreciate any input guys/gals

    Hi,
    Do you enable ESB email notification in ESB Control for your ESB system and mail still not received?
    Some errors cannot be caught by ESB email notification (for example, you use polling DB-adapter and provide a incorrect login password and so on, you can use rejection handlers for this type of errors. I not implemented this yet in our system but think it should work).
    Errors raised when you ESB-process already started - may be caught.
    You will receive email with flow_id, initial payload and error message (if didn't use asynchronous calls: bug 7616012 - error message is empty when error raised after asynchronous service invocation in 10.1.3.3 (can be not visible..)).
    Best Regards,
    Mikhail.

  • JDBC adapter connected to a DB in high availability!

    Hi folks,
    I have finished my scenario File -> XI -> JDBC and now I’m preparing to transport it to QAS. I found that Data Base of QAS is in two cluster nodes. I have two hostnames to fill the parameter <b><IP address></b> and I don’t know which hostname I should use! Is it supposed use both? …or I need another one virtual?
    Connection: <b>jdbc:oracle:thin:@<IP address>:<listener port>:<instance name (database name)></b>
    Thanks in advance,
    Ricardo.

    I don't know this mechanism of high availability with 2 IP, but if you really have 2 hostname you should think to a method to switch from a node to the other in easy way, deactivating one and activating the other (for instance with the <a href="http://help.sap.com/saphelp_nw2004s/helpdata/en/45/0c86aab4d14dece10000000a11466f/frameset.htm">Controlling a Communication Channel Externally</a>)
    I suggest you to verify how it will be in production instance: real cluster ? switch over ? virtual IP ?
    Regards,
    Sandro

  • Jdbc odbc connectivity issue

    I have made one system dsn ...in some folder..then in my jsp page my
    Class.forName ("sun.jdbc.odbc.JdbcOdbcDriver").newInstance();
    Connection myConn = DriverManager.getConnection."jdbc:odbc:Employee");im getting error like no data source...and its finding in root directory like c:/document seting etc etc ..not where my db lies
    if i put my db in root directory .then code wrks fine..but is it taking that root directory

    well well the code would not consider nothing here the microsoft native bridge driver has to find appropriate database.
    Are you sure u have created an entry in Odbc Data Source Administrator --> System DSN -> and you have a name called "Employee" out their pointing to appropriate database which you are trying to connect.

  • Mysql-jdbc applet connection issue

    I am developing a user interface for a mysql database. I am able to successfully access the db and execute queries through a java APPLICATION.
    I need to do the same (access the db (mysql)) through a java APPLET. When I compile the applet it complies fine. When I try to run the applet I'm getting the following error message:
    java.lang.ClassNotFoundException: com.mysql.jdbc.Driver
    I tied running the applet using appletviewer and through a web browser, same result. I can run the application from the same command prompt it works fine.
    Please help.
    Relevant info:
    OS: Linux, Fedora4
    Classpath: export set CLASSPATH=/home/xyz/Java/mysql-connector-java-5.0.5/:$CLASSPATH;
    JDK: PATH=/usr/java/jdk1.6.0/bin
    Program:
    import java.sql.*;
    public class b extends java.applet.Applet
         int y = 0;
    public void paint(java.awt.Graphics g)
              y = y + 10;
    Connection conn = null;
    String driver = "com.mysql.jdbc.Driver";     
    String url = "jdbc:mysql://localhost:3306/testdb?user=usr1234&password=xyzxyz";
    try {
         Class.forName(driver).newInstance();
         conn = DriverManager.getConnection(url);
         System.out.println("Connected to the database.");
         System.out.println(" ");
         //*********BLOCK TO RETRIEVE RECORDS FROM TABLE*********          
                   try{
                        Statement st = conn.createStatement();
                        ResultSet res = st.executeQuery("SELECT * FROM table1");
                        System.out.println("Name: " + "\t" + "Age: ");
                        while (res.next()) {
                             String s = res.getString("name");
                             int i = res.getInt("age");
                             System.out.println(s + "\t" + i);
                   catch (SQLException s){
              y = y + 20;
    g.drawString("******* s: "+s,50,y);
         //*********END OF BLOCK TO RETRIEVE RECORDS FROM TABLE*********          
         conn.close();
         System.out.println("Disconnected from database");
         }      catch (Exception e) {
              y = y + 20;
    g.drawString("******* e: "+e,50,y);
                   e.printStackTrace();
    Thanks for the help in advance.
    --Mat                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

    First, accessing a database from an applet is a horrendous idea.
    Having said that, did you add the mysql jar to the applet tag in the html page (in the archive property)?

  • DB Adapter connectivity issue

    Hi,
    I am trying to create a BPEL process which connect to a Custom oracle database using DB adapter. This process is supposed to read data from custom table and populate elsewhere. In BPEL designer I am able to create the connection, view the tables and create mapping. Then I deployed the process. Now when I try to test the process by inserting data to the table, it is throwing following error message in the log and no process is getting initiated in the console. Any thoughts on what could be the problem? Is there anything that I am missing after creating and deploying the process?
    <2006-02-21 17:42:16,023> <WARN> <default.collaxa.cube.activation> <Database Adapter::Inbound> <oracle.tip.adapter.db.InboundWork runOnce> Exception during polling of the database ORABPEL-11624
    DBActivationSpec Polling Exception.
    Query name: [DatabaseAdapter], Descriptor name: [CDHTestPrj1.CustomerMaster]. Polling the database for events failed on this iteration.
    If the cause is something like a database being down successful polling will resume once conditions change. Caused by Local Exception Stack:Exception [TOPLINK-4002] (OracleAS TopLink - 10g (9.0.4.5) (Build 040930)): oracle.toplink.exceptions.DatabaseException
    Exception Description: java.sql.SQLException: ORA-00904: "COMPLETE": invalid identifier

    Hi,
    I am trying to create a BPEL process which connect to a Custom oracle database using DB adapter. This process is supposed to read data from custom table and populate elsewhere. In BPEL designer I am able to create the connection, view the tables and create mapping. Then I deployed the process. Now when I try to test the process by inserting data to the table, it is throwing following error message in the log and no process is getting initiated in the console. Any thoughts on what could be the problem? Is there anything that I am missing after creating and deploying the process?
    <2006-02-21 17:42:16,023> <WARN> <default.collaxa.cube.activation> <Database Adapter::Inbound> <oracle.tip.adapter.db.InboundWork runOnce> Exception during polling of the database ORABPEL-11624
    DBActivationSpec Polling Exception.
    Query name: [DatabaseAdapter], Descriptor name: [CDHTestPrj1.CustomerMaster]. Polling the database for events failed on this iteration.
    If the cause is something like a database being down successful polling will resume once conditions change. Caused by Local Exception Stack:Exception [TOPLINK-4002] (OracleAS TopLink - 10g (9.0.4.5) (Build 040930)): oracle.toplink.exceptions.DatabaseException
    Exception Description: java.sql.SQLException: ORA-00904: "COMPLETE": invalid identifier

Maybe you are looking for