JDBC x getConnection

I�m using eclipse and when I was using the jdbc.odbc.jdbcodbcDriver a message error said that the driver was not found.
Now I have downloaded the sql driver....and I did:
public void stabilishConection()
          try
               Class.forName("com.mysql.jdbc.Driver");
               Connection con = DriverManager.getConnection("jdbc:myBase", "", "");
          catch(Exception e)
               e.printStackTrace();
     }The message that appears is: no suitable driver at java.sql.DriverManager.getConnection(Unknown Source)
I have set the classpath correctly....
I�m a begginer and I�m just trying to create my first program..but I�m trying this for a long time and it�s not working...
Do I have to create a dataBase file before running the program??

I really don�t know what�s going on...but after I
read the tutorial....
The part that teachs how to connect doesn�t give any
further niformation....
I don�t have a mysql database on my machine...
...as I told before I�m a begginer in this subject...Okay let's try again.
In order to use JDBC you need all of the following.
1) A relational database system.
2) A database.
3) A JDBC driver that will connect to the above.
You only have the driver. That's a problem. You are trying to connect to something that doesn't exist so we need to get that solved first.
What OS are you running? I am asking because you need to use a database and if you are running Windows and have Access than that will be easiest.
Please let me know what OS you are running and if you have Access.

Similar Messages

  • Get BaseResourceException with JDBC ds.getConnection()

    Hi,
    I have created a stateless sessionbean with the intension to connect to the default SAP database by JDBC. Therefore I have created 3 project: a dictionairy project, a enterprise java bean project and a j2ee application project. Within the j2ee application project I have created a datasource alias:
    ?xml version="1.0" encoding="UTF-8"?>
    <!DOCTYPE data-source-aliases SYSTEM "data-source-aliases.dtd">
    <data-source-aliases>
         <aliases>
              <data-source-name>${com.sap.datasource.default}</data-source-name>
              <alias>UNIQEMA_CONTACT_US</alias>
         </aliases>
    </data-source-aliases>
    And in the ejb module project I have created also a reference to the datasource:
                   <resource-ref>
                        <res-ref-name>UNIQEMA_CONTACT_US</res-ref-name>
                        <res-type>javax.sql.DataSource</res-type>
                        <res-auth>Application</res-auth>
                        <res-sharing-scope>Shareable</res-sharing-scope>
                   </resource-ref>
    I have also created the following create method in the ejb :
         public void ejbCreate() throws CreateException {
              try {
    //               Class.forName("com.sap.dbtech.jdbc.DriverSapDB");
                   Context ctx = new InitialContext();
                   DataSource ds = (DataSource) ctx.lookup("java:comp/env/UNIQEMA_CONTACT_US");
                   conn = ds.getConnection();
              } catch (Exception e) {
                   throw new CreateException("e.getMessage");
    But when the ejb excutes the ds.getConnection() I got the following error:
    com.sap.engine.services.connector.exceptions.BaseResourceException: Cannot get connection. Reason: the thread of component "ejbContexts/sap.com/com.atosorigin.uniqema.contactus.appl/uniqema_contact_us_country" in application "sap.com/com.atosorigin.uniqema.contactus.appl" is currently associated with a restricted resource set and it is not allowed to get connection within it.
    Please can someone say what I have done wrong a which feature I have forgotten to set.
    regards,
    Sander Valkenburg

    Hi Sander,
    another note on using DS connections:
    1. connection as you may know are scarce resources, meant to be shared among apps. Storing a connection in a instance variable of a bean is not a good idea for another reason to: the database times out connections too!
    2. proper usage would be something like this
    Connection conn = null;
    try {
      // acquire conn.
      conn = ds.getConnection();
      // do something with it
    } catch( ..) {
    } finally {
      // give conn back to pool
      try { if () conn.close(); } catch(Exception e) {}
    Regards
    Gregor

  • Teradata connection error in jdbc -- DriverManager.getConnection()

    I have issue while connecting to teradata DB from a sampel jave jdbc code.
    the code is as below.
    String url="jdbc:teradata://10.33.22.27/AMRROCD";
    Class.forName("com.teradata.jdbc.TeraDriver");
    Properties x = new Properties();
    x.put("user","user123");
    x.put("password","pwd123");
    Connection con = DriverManager.getConnection (url, x);--> i am getting error at this line as
    GSSException: Failure unspecified at GSS-API level (Mechanism level: UserFile parameter null)
    at com.teradata.tdgss.jtdgss.TdgssParseXml.<init>(DashoA1*..)
    at com.teradata.tdgss.jtdgss.TdgssConfigApi.<init>(DashoA1*..)
    at com.teradata.tdgss.jtdgss.TdgssManager.<init>(DashoA1*..)
    at com.teradata.tdgss.jtdgss.TdgssManager.getInstance(DashoA1*..)
    at com.teradata.jdbc.jdbc.GenericTeraEncrypt.getGSSM(GenericTeraEncrypt.java:583)
    at com.teradata.jdbc.jdbc.GenericTeraEncrypt.getConfig(GenericTeraEncrypt.java:601)
    at com.teradata.jdbc.jdbc.GenericTeraEncrypt.getUserNameForOid(GenericTeraEncrypt.java:694)
    at com.teradata.jdbc.AuthMechanism.<init>(AuthMechanism.java:50)
    at com.teradata.jdbc.jdbc.GenericInitDBConfigState.action(GenericInitDBConfigState.java:105)
    at com.teradata.jdbc.jdbc.GenericLogonController.run(GenericLogonController.java:49)
    at com.teradata.jdbc.jdbc_4.TDSession.<init>(TDSession.java:195)
    at com.teradata.jdbc.jdbc_3.ifjdbc_4.TeraLocalConnection.<init>(TeraLocalConnection.java:94)
    at com.teradata.jdbc.jdbc.ConnectionFactory.createConnection(ConnectionFactory.java:55)
    at com.teradata.jdbc.TeraDriver.doConnect(TeraDriver.java:216)
    at com.teradata.jdbc.TeraDriver.connect(TeraDriver.java:149)
    at java.sql.DriverManager.getConnection(DriverManager.java:512)
    at java.sql.DriverManager.getConnection(DriverManager.java:171)
    at dbValidation.main(dbValidation.java:25)
    Error java.lang.NullPointerException
    could anybody have an idea on this , its urgent for me to solve this.
    I am able to execute the code in windows OS . this error is occourring in UNIX system

    You'd have to pursue Teradata for support/help with their JDBC driver. This has nothing
    to do with Oracle though...

  • Configuring JDBC in jboss-4.0.4.GA

    I'm using JBoss-4.0.4.GA, Eclipse 3.1 and MS SQL Server2005.
    To configure JBoss with MSSQL datasource I made the following:
    Copy sqljdbc.jar and put them in server\default\lib direcroty.
    I also copy the mssql-ds.xml from \docs\examples\jca\ and modify it according to my specification and put it in deploy directory of default server.
    My DataSource is as Follows:
    <?xml version="1.0" encoding="UTF-8"?>
    <datasources>
    <local-tx-datasource>
    <jndi-name>regDataSource</jndi-name>
    <connection-url>jdbc:sqlserver://localhost:1433;databaseName=Ereg;</connection-url>
    <driver-class>com.microsoft.sqlserver.jdbc.SQLServerDriver</driver-class>
    <user-name>sa</user-name>
    <password>royal</password>
    <metadata>
    <type-mapping>MS SQLSERVER2005</type-mapping>
    </metadata>
    </local-tx-datasource>
    </datasources>
    When i build my application, i get the following exceptions......
    [b]org.jboss.resource.JBossResourceException: Could not create connection; - nested throwable: (com.microsoft.sqlserver.jdbc.SQLServerException: The TCP/IP connection to the host has failed. java.net.ConnectException: Connection refused: connect)
         at org.jboss.resource.adapter.jdbc.local.LocalManagedConnectionFactory.createManagedConnection(LocalManagedConnectionFactory.java:177)
         at org.jboss.resource.connectionmanager.InternalManagedConnectionPool.createConnectionEventListener(InternalManagedConnectionPool.java:539)
         at org.jboss.resource.connectionmanager.InternalManagedConnectionPool.getConnection(InternalManagedConnectionPool.java:228)
         at org.jboss.resource.connectionmanager.JBossManagedConnectionPool$BasePool.getConnection(JBossManagedConnectionPool.java:417)
         at org.jboss.resource.connectionmanager.BaseConnectionManager2.getManagedConnection(BaseConnectionManager2.java:324)
         at org.jboss.resource.connectionmanager.TxConnectionManager.getManagedConnection(TxConnectionManager.java:301)
         at org.jboss.resource.connectionmanager.BaseConnectionManager2.allocateConnection(BaseConnectionManager2.java:379)
         at org.jboss.resource.connectionmanager.BaseConnectionManager2$ConnectionManagerProxy.allocateConnection(BaseConnectionManager2.java:812)
         at org.jboss.resource.adapter.jdbc.WrapperDataSource.getConnection(WrapperDataSource.java:88)
         at org.hibernate.connection.DatasourceConnectionProvider.getConnection(DatasourceConnectionProvider.java:69)
         at org.hibernate.cfg.SettingsFactory.buildSettings(SettingsFactory.java:73)
         at org.hibernate.cfg.Configuration.buildSettings(Configuration.java:1928)
         at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1211)
         at org.hibernate.ejb.Ejb3Configuration.buildEntityManagerFactory(Ejb3Configuration.java:631)
         at org.hibernate.ejb.Ejb3Configuration.createEntityManagerFactory(Ejb3Configuration.java:760)
         at org.hibernate.ejb.Ejb3Configuration.createContainerEntityManagerFactory(Ejb3Configuration.java:350)
         at org.hibernate.ejb.HibernatePersistence.createContainerEntityManagerFactory(HibernatePersistence.java:119)
         at org.jboss.ejb3.entity.PersistenceUnitDeployment.start(PersistenceUnitDeployment.java:264)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:585)
         at org.jboss.ejb3.ServiceDelegateWrapper.startService(ServiceDelegateWrapper.java:99)
         at org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupport.java:289)
         at org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMBeanSupport.java:245)
         at sun.reflect.GeneratedMethodAccessor300.invoke(Unknown Source)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:585)
         at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
         at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
         at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
         at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
         at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
         at org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:978)
         at $Proxy0.start(Unknown Source)
         at org.jboss.system.ServiceController.start(ServiceController.java:417)
         at sun.reflect.GeneratedMethodAccessor5.invoke(Unknown Source)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:585)
         at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
         at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
         at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
         at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
         at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
         at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
         at $Proxy420.start(Unknown Source)
         at org.jboss.ejb3.JmxKernelAbstraction.install(JmxKernelAbstraction.java:82)
         at org.jboss.ejb3.Ejb3Deployment.startPersistenceUnits(Ejb3Deployment.java:626)
         at org.jboss.ejb3.Ejb3Deployment.start(Ejb3Deployment.java:475)
         at org.jboss.ejb3.Ejb3Module.startService(Ejb3Module.java:139)
         at org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupport.java:289)
         at org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMBeanSupport.java:245)
         at sun.reflect.GeneratedMethodAccessor300.invoke(Unknown Source)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:585)
         at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
         at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
         at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
         at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
         at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
         at org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:978)
         at $Proxy0.start(Unknown Source)
         at org.jboss.system.ServiceController.start(ServiceController.java:417)
         at sun.reflect.GeneratedMethodAccessor5.invoke(Unknown Source)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:585)
         at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
         at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
         at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
         at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
         at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
         at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
         at $Proxy43.start(Unknown Source)
         at org.jboss.ejb3.EJB3Deployer.start(EJB3Deployer.java:449)
         at sun.reflect.GeneratedMethodAccessor203.invoke(Unknown Source)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:585)
         at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
         at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
         at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:133)
         at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
         at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:142)
         at org.jboss.mx.interceptor.DynamicInterceptor.invoke(DynamicInterceptor.java:97)
         at org.jboss.system.InterceptorServiceMBeanSupport.invokeNext(InterceptorServiceMBeanSupport.java:238)
         at org.jboss.ws.server.WebServiceDeployer.start(WebServiceDeployer.java:117)
         at org.jboss.deployment.SubDeployerInterceptorSupport$XMBeanInterceptor.start(SubDeployerInterceptorSupport.java:188)
         at org.jboss.deployment.SubDeployerInterceptor.invoke(SubDeployerInterceptor.java:95)
         at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
         at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
         at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
         at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
         at $Proxy44.start(Unknown Source)
         at org.jboss.deployment.MainDeployer.start(MainDeployer.java:1007)
         at org.jboss.deployment.MainDeployer.start(MainDeployer.java:997)
         at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:808)
         at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:771)
         at sun.reflect.GeneratedMethodAccessor7.invoke(Unknown Source)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:585)
         at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
         at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
         at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:133)
         at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
         at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:142)
         at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
         at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
         at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
         at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
         at $Proxy6.deploy(Unknown Source)
         at org.jboss.deployment.scanner.URLDeploymentScanner.deploy(URLDeploymentScanner.java:421)
         at org.jboss.deployment.scanner.URLDeploymentScanner.scan(URLDeploymentScanner.java:634)
         at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.doScan(AbstractDeploymentScanner.java:263)
         at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.loop(AbstractDeploymentScanner.java:274)
         at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.run(AbstractDeploymentScanner.java:225)
    Caused by: com.microsoft.sqlserver.jdbc.SQLServerException: The TCP/IP connection to the host has failed. java.net.ConnectException: Connection refused: connect
         at com.microsoft.sqlserver.jdbc.SQLServerException.makeFromDriverError(Unknown Source)
         at com.microsoft.sqlserver.jdbc.SQLServerConnection.connectHelper(Unknown Source)
         at com.microsoft.sqlserver.jdbc.SQLServerConnection.loginWithoutFailover(Unknown Source)
         at com.microsoft.sqlserver.jdbc.SQLServerConnection.connect(Unknown Source)
         at com.microsoft.sqlserver.jdbc.SQLServerDriver.connect(Unknown Source)
         at org.jboss.resource.adapter.jdbc.local.LocalManagedConnectionFactory.createManagedConnection(LocalManagedConnectionFactory.java:169)
         ... 113 more
    Thanx in advance.

    Enable TCP/IP protocol. Select Microsoft SQL Server 2005>Configuration Tools>SQL Server Configuration Manager. In the SQL Server Configuration Manager select the node SQL Server 2005 Network Configuration>Protocols for SQLEXPRESS. Right-click on the TCP/IP node and select Enable. Restart the SQL Server (SQLEXPRESS) service. Right-click on the SQL Server (SQLEXPRESS) service in Services and select Restart.

  • JDBC driver register issue in iAS.

    I currently turn to EJB development, and I encountered a problem when running a CMP sample in iPlanet. My develop environment list below:
    Windows 2000 Server
    iPlanet 6.0 SP3 (Installed in G:\iplanet\ias6\ias )
    Oracle8i,
    Forte for Java 3.0
    I learn CMP Bean by study the Product sample in iPlanet ( G:\iplanet\ias6\ias\ias-samples\j2eeguide\product ). I ran the script in G:\iplanet\ias6\ias\ias-samples\j2eeguide\product\src\schema\setup_ora.bat. It register a ORACLE-OCI ,the type 2 driver. But I want to register a type 4 driver. So I start kregedit ,
    removed the type 2 , and register a type 4 driver and datasource use iASAT. The entries list following:
    Oracle Type4 Driver Register
    DriverType:oracle-type4
    Driver ClassName:oracle.jdbc.driver.OracleDriver
    Driver Classpath:D:\oracle\ora81\jdbc\lib\classes12.zip
    DataSource configuration
    JNDI Name:bankDS
    DriverType:oracle-type4
    DatabaseUrl:oracle:thin:@192.168.188.31:1521:PhilipW
    Username:philip
    Password:tiger
    Then, I run the client (both servlet and rmi), all successfully. But few days later. When I run it a exception raise to indicated that the iAS can't find jdbc driver. Message in KJS Process window list below:
    ==================First KJS Process window================
    Engine running on Java HotSpot(TM) Server VM 2.0fcs JVM supplied by Sun Microsy
    stems Inc.
    Connected to LDAP server on top-philip port 389
    iPlanet Application Server is running in international mode
    Initializing LDAP cache from server top-philip port 389
    LDAP cache initialization completed successfully.
    [25/&#20108;&#26376;/2002 16:05:53:6] info: ENGINE-ready: ready: 8787
    eng =com.kivasoft.types.enumSubKeysIGDSKey@288051
    eng =com.kivasoft.types.enumSubKeysIGDSKey@45eb
    eng =com.kivasoft.types.enumSubKeysIGDSKey@6e7a14
    eng =com.kivasoft.types.enumSubKeysIGDSKey@10cb03
    [25/&#20108;&#26376;/2002 16:06:18:9] error: EB-001: Unable to locate interface IGXTxnAssocMgr
    [25/&#20108;&#26376;/2002 16:06:19:0] info: PROT-006: new connection established
    ================Second KJS Process Window ==================
    [25/&#20108;&#26376;/2002 16:05:44:0] info: ENGINE-ready: ready: 10819
    [25/&#20108;&#26376;/2002 16:06:19:0] info: PROT-006: new connection established
    [25/&#20108;&#26376;/2002 16:06:19:0] info: REQ-012: thread add
    java.sql.SQLException: No suitable driver
    at java.sql.DriverManager.getDriver(DriverManager.java:208)
    at com.netscape.server.jdbc.DataSourceImpl.loadDriver(Unknown Source)
    at com.netscape.server.jdbc.DataSourceImpl.getConnection(Unknown Source
    at com.netscape.server.jdbc.DataSourceImpl.getConnection(Unknown Source
    at com.netscape.server.ejb.SQLPersistenceManager.getConnection(Unknown source)
    at com.netscape.server.ejb.SQLPersistenceManager.start(Unknown Source)
    at com.netscape.server.ejb.SQLPersistenceManager.start(Unknown Source)
    at com.netscape.server.ejb.SQLPersistenceManager.create(Unknown Source)
    at com.netscape.server.ejb.EntityDelegateManagerImpl.doPersistentCreate(Unknown Source)
    at com.netscape.server.ejb.EntityDelegateManagerImpl.create(Unknown Souce)
    at com.kivasoft.eb.EBHomeBase.create(Unknown Source)
    at com.titan.cabin.ejb_home_com_titan_cabin_CabinBean.create(ejb_home_cm_titan_cabin_CabinBean.java:76)
    at com.titan.cabin.ejb_kcp_skel_CabinHome.create__com_titan_cabin_Cabin_int(ejb_kcp_skel_CabinHome.java:208)
    at com.kivasoft.thread.ThreadBasic.run(Native Method)
    at java.lang.Thread.run(Thread.java:479)
    I am sure the classes12.zip (the Oracle type4 jdbc driver ) is on the iAS's classpath. I guess maybe this caused by the type2 driver. I had reinstalled iAS, even the OS. but I can't resolve this problem. I
    really feel crazy! Do you have any idea?
    Thanks in advance.
    Shuhao Wang

    Shouldn't the database URL be
    "<B>jdbc:</B>oracle:thin:@192.168.188.31:1521:PhilipW"? And it could also be a good idea to add the path to classes12.zip to appserver/6.0/java/classpath using kregedit...

  • FAIL_OVER in jdbc url

    Hello,
    Recently one of db database node was down and our application did not connect to another node as per the below URL because we have configured FAIL_OVER=ON.
    <connection-url>
    jdbc:oracle:thin:@(DESCRIPTION=(LOAD_BALANCE=ON)(FAILOVER=ON)(ADDRESS=(PROTOCOL=TCP)(HOST=db02-vip)(PORT=1521))(ADDRESS=(PROTOCOL=TCP)(HOST=db01-vip)(PORT=1521))(CONNECT_DATA=(SERVICE_NAMEGDB.eada.com)))
    </connection-url>
    Can any one explain why fail over did not happen. We are using Oracle 10g and RHEL 5.3 OS.
    Rgds,

    Hi,
    Due to Hardware failure one of the node was down. We expected our application to connect to another node which was up and running, but did not happen. It lasted for almost 1 hour. Once the node went down i could see only below exception in jboss server logs.
    Initially i got below WARN messages :
    2012-12-17 15:00:44,196 WARN [com.arjuna.ats.arjuna.logging.arjLoggerI18N] [com.arjuna.ats.arjuna.coordinator.BasicAction_58] - Abort of action id 619289df:dc67:50ce06ae:6bd9 invoked while multiple threads active within it.
    2012-12-17 15:00:44,196 WARN [com.arjuna.ats.arjuna.logging.arjLoggerI18N] [com.arjuna.ats.arjuna.coordinator.CheckedAction_2] - CheckedAction::check - atomic action 619289df:dc67:50ce06ae:6bd9 aborting with 1 threads active!
    2012-12-17 15:00:44,760 WARN [com.arjuna.ats.arjuna.logging.arjLoggerI18N] [com.arjuna.ats.arjuna.coordinator.BasicAction_58] - Abort of action id 619289df:dc67:50ce06ae:6bda invoked while multiple threads active within it.
    2012-12-17 15:00:44,760 WARN [com.arjuna.ats.arjuna.logging.arjLoggerI18N] [com.arjuna.ats.arjuna.coordinator.CheckedAction_2] - CheckedAction::check - atomic action 619289df:dc67:50ce06ae:6bda aborting with 1 threads active!
    Later after minutes i found below Exceptions
    2012-12-17 15:04:04,218 WARN [org.jboss.resource.connectionmanager.JBossManagedConnectionPool] Throwable while attempting to get a new connection: null
    org.jboss.resource.JBossResourceException: Could not create connection; - nested throwable: (java.sql.SQLException: Io exception: Connection reset)
    at org.jboss.resource.adapter.jdbc.local.LocalManagedConnectionFactory.createManagedConnection(LocalManagedConnectionFactory.java:179)
    at org.jboss.resource.connectionmanager.InternalManagedConnectionPool.createConnectionEventListener(InternalManagedConnectionPool.java:577)
    at org.jboss.resource.connectionmanager.InternalManagedConnectionPool.getConnection(InternalManagedConnectionPool.java:262)
    at org.jboss.resource.connectionmanager.JBossManagedConnectionPool$BasePool.getConnection(JBossManagedConnectionPool.java:500)
    at org.jboss.resource.connectionmanager.BaseConnectionManager2.getManagedConnection(BaseConnectionManager2.java:341)
    at org.jboss.resource.connectionmanager.TxConnectionManager.getManagedConnection(TxConnectionManager.java:315)
    at org.jboss.resource.connectionmanager.BaseConnectionManager2.allocateConnection(BaseConnectionManager2.java:396)
    at org.jboss.resource.connectionmanager.BaseConnectionManager2$ConnectionManagerProxy.allocateConnection(BaseConnectionManager2.java:842)
    at org.jboss.resource.adapter.jdbc.WrapperDataSource.getConnection(WrapperDataSource.java:88)
    at com.hp.np.dao.NPDBConnectionManager.getDSConnection(NPDBConnectionManager.java:85)
    Any idea about the Warning messages we received.
    Regards,
    Jaya

  • Major performance problem in weblogic jdbc

    I ran a test which selected ~1000 rows from an oracle database table. The
    code ran in 4 seconds when I used the Oracle driver directly:
    Class.forName("oracle.jdbc.driver.OracleDriver");
    Connection connection = DriverManager.getConnection(URL, "XXX", "XXX");
    When I changed the code to get the connection from weblogic, it took 128
    SECONDS!!!!
    weblogic.jdbc.connectionPool.pointclick=\
    url=jdbc:oracle:thin:@XXX:dev,\
    driver=oracle.jdbc.driver.OracleDriver,\
    initialCapacity=1,\
    maxCapacity=2,\
    capacityIncrement=1,\
    props=user=XXX;password=XXX
    weblogic.jdbc.TXDataSource.weblogic.jdbc.jts.pointclick=pointclick
    Properties properties = new Properties();
    properties.put(Context.INITIAL_CONTEXT_FACTORY,
    "weblogic.jndi.WLInitialContextFactory");
    Context context = new InitialContext(properties);
    try
    DataSource dataSource = (DataSource)context.lookup(NAME);
    Connection connection = dataSource.getConnection();
    // if(!autoCommit)
    // connection.setAutoCommit(false);
    return connection;
    finally
    context.close();
    The strangest thing is that when I used the weblogic pool, if I executed
    "select column from table" it took 128 seconds, but "select * from table"
    only took 32 seconds. Why would it take longer to process less data?
    And more importantly, why does the weblogic connection take so damn long?
    Thanks for your help.
    Sean Rohead

    Hey, I finally managed to get JDBC logging up and running! Had to do with
    permission setting, adding the following entry to weblogic.policy:
    permission java.sql.SQLPermission "setLog";
    Boy are you right; JDBC logging is slow as mud! Good thing we use BMP
    entity beans, so I guess I can log JDBC calls myself in the
    ejbCreate/Load/Store/Remove hooks!
    Gene Chuang
    Teach the world. Join Kiko!
    http://www.kiko.com/profile/join.jsp?refcode=TAF-gchuang
    "Joseph Weinstein" <[email protected]> wrote in message
    news:[email protected]...
    >
    >
    Gene Chuang wrote:
    Hey, I've tried setting weblogic.jdbc.enableLogFile=true before and
    can't
    even get the server to start up! Since JDBC logging is not only slow,but
    buggy,JDBC logging is slow for the reasons described, but not buggy as such.
    is there a possibility Weblogic can implement a JDBC log for a future
    release?
    Seems like Weblogic can catch SQL calls much easier than we can,
    especially for CMP!It is conceivable that our pool drivers (pool,jts,rmi etc) couldindependently
    log SQL for debugging purposes, but we need to retain the semantics ofturning
    on jdbc logging, which in any case will continue to emanate from any JDBCdriver.
    In any case, we wouldn't do anything differently that DriverManager doesfor
    simply writing to a file, which would be serialized by the stream anyway.
    Joe
    Gene Chuang
    Teach the world. Join Kiko!
    http://www.kiko.com/profile/join.jsp?refcode=TAF-gchuang
    "Joseph Weinstein" <[email protected]> wrote in message
    news:[email protected]...
    Sean Rohead wrote:
    OK, disregard everything I said in my last post. The REAL reason
    for
    the
    slowdown is that I had "weblogic.jdbc.enableLogFile=true" in my
    weblogic.properties. So, there is nothing wrong with the JNDIDataSource
    object. Sorry if I misled anyone.
    Still, it does seem rather excessive for logging to cause a 30Xslowdown.
    Someone at BEA ought to take a closer look at that...Known issue, not ours.
    JDBC logging collect anything logged by any JDBC driver or by anySQLException.
    These all call DriverManager.println() which is class synchronized in
    the
    JVM,
    so this will serialize most JDBC threads, and slow the server down a
    lot,
    independently of the disk I/O needed to grow the file.
    Joe
    Sean Rohead
    "Sean Rohead" <[email protected]> wrote in message
    news:[email protected]...
    Nice work, Charlie!
    When I just connected to the pool directly, it ran fine. I am
    guessing
    that
    the DataSource returns a connection that connects first to the
    server
    via
    RMI and then to the database. I am trying to obtain a JDBC
    connection
    for
    use in EJB and servlets, so this is clearly overkill. The
    question I
    now
    have is what is the best way to obtain a transactional
    connection
    without
    the overhead described above? Can I somehow create a
    transactional
    DataSource that doesn't go over RMI? Or, should I just use thejts
    driver
    directly? I tried the following code, but got an error:
    Driver driver = new weblogic.jdbc.jts.Driver();
    Properties properties = new Properties();
    properties.put("connectionPoolID", "pointclick");
    Connection connection = driver.connect("jdbc:weblogic:jts",properties);
    The error was:
    java.sql.SQLException: The url cannot be null
    atjava.sql.DriverManager.getConnection(DriverManager.java:434)
    atjava.sql.DriverManager.getConnection(DriverManager.java:106)
    at weblogic.jdbcbase.jts.Driver.connect(Driver.java:213)
    at
    pointclick.jdbc.ConnectionFactory.getConnection(ConnectionFactory.java:24)
    atpointclick.servlet.TestServlet.doGet(TestServlet.java:36)
    atjavax.servlet.http.HttpServlet.service(HttpServlet.java:740)
    atjavax.servlet.http.HttpServlet.service(HttpServlet.java:865)
    at
    weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java
    :124)
    at
    weblogic.servlet.internal.ServletContextImpl.invokeServlet(ServletContextImp
    l.java:744)
    at
    weblogic.servlet.internal.ServletContextImpl.invokeServlet(ServletContextImp
    l.java:692)
    at
    weblogic.servlet.internal.ServletContextManager.invokeServlet(ServletContext
    Manager.java:251)
    at
    weblogic.socket.MuxableSocketHTTP.invokeServlet(MuxableSocketHTTP.java:363)
    at
    weblogic.socket.MuxableSocketHTTP.execute(MuxableSocketHTTP.java:263)
    atweblogic.kernel.ExecuteThread.run(ExecuteThread.java:120)
    >>>>>
    >>>>>
    I copied the code above from
    http://www.weblogic.com/docs51/classdocs/jts_driver.html and there
    was
    no
    mention of setting any other properties. If I create the
    connection
    this
    way from an EJB, will it still participate in the transaction
    started
    by
    the
    EJB container?
    Sean Rohead
    "Charlie Crook" <[email protected]> wrote in message
    news:[email protected]...
    Your Oracle example is also using JNDI to obtain the connection;
    not
    just
    getting a connection from a pool. So you've actually changed 2conditions
    ( non-pool to pool, non-JNDI to JNDI ). So both of these should
    be
    considered as suspects for the performance.
    "Sean Rohead" <[email protected]> wrote in message
    news:[email protected]...
    I ran a test which selected ~1000 rows from an oracle database
    table.
    The
    code ran in 4 seconds when I used the Oracle driver directly:
    Class.forName("oracle.jdbc.driver.OracleDriver");
    Connection connection = DriverManager.getConnection(URL,
    "XXX",
    "XXX");
    When I changed the code to get the connection from weblogic,
    it
    took
    128
    SECONDS!!!!
    weblogic.jdbc.connectionPool.pointclick=\
    url=jdbc:oracle:thin:@XXX:dev,\
    driver=oracle.jdbc.driver.OracleDriver,\
    initialCapacity=1,\
    maxCapacity=2,\
    capacityIncrement=1,\
    props=user=XXX;password=XXX
    weblogic.jdbc.TXDataSource.weblogic.jdbc.jts.pointclick=pointclick
    >>>>>>>
    >>>>>>>
    Properties properties = new Properties();
    properties.put(Context.INITIAL_CONTEXT_FACTORY,
    "weblogic.jndi.WLInitialContextFactory");
    Context context = new InitialContext(properties);
    try
    DataSource dataSource = (DataSource)context.lookup(NAME);
    Connection connection = dataSource.getConnection();
    // if(!autoCommit)
    // connection.setAutoCommit(false);
    return connection;
    finally
    context.close();
    The strangest thing is that when I used the weblogic pool, ifI
    executed
    "select column from table" it took 128 seconds, but "select *
    from
    table"
    only took 32 seconds. Why would it take longer to process
    less
    data?
    And more importantly, why does the weblogic connection take sodamn
    long?
    Thanks for your help.
    Sean Rohead
    PS: Folks: BEA WebLogic is in S.F., and now has some entry-level
    positions
    for
    people who want to work with Java and E-Commerce infrastructure
    products.
    Send
    resumes to [email protected]
    The Weblogic Application Server from BEA
    JavaWorld Editor's Choice Award: Best Web Application Server
    Java Developer's Journal Editor's Choice Award: Best Web ApplicationServer
    Crossroads A-List Award: Rapid Application Development Tools for
    Java
    Intelligent Enterprise RealWare: Best Application Using a ComponentArchitecture
    http://www.bea.com/press/awards_weblogic.html
    PS: Folks: BEA WebLogic is in S.F., and now has some entry-level positionsfor
    people who want to work with Java and E-Commerce infrastructure products.Send
    resumes to [email protected]
    The Weblogic Application Server from BEA
    JavaWorld Editor's Choice Award: Best Web Application Server
    Java Developer's Journal Editor's Choice Award: Best Web ApplicationServer
    Crossroads A-List Award: Rapid Application Development Tools for Java
    Intelligent Enterprise RealWare: Best Application Using a ComponentArchitecture
    http://www.bea.com/press/awards_weblogic.html

  • Can't Load 3rd Party JDBC in iPlanet Application Server

    I am trying to use a 3rd Party Type 4 Oracle JDBC driver to connect to a database in iPlanet Application Server 6.0 SP3. I used the jdbcsetup.exe tool to register the driver and used the iAS Administrative Tool to Register the Datasource.
    External JDBC Driver Parameters:
    Driver Type: OracleConnectionPoolDataSource
    Driver Classname: oracle.jdbc.pool.OracleConnectionPoolDataSource
    Driver Classpath: c:\src\jdbc\lib\classes111.zip
    DataSource Registration Parameters:
    JNDI Name: OracleConnectionPoolDataSource
    DriverType: OracleConnectionPoolDataSource
    DatabaseURL: jdbc:oracle:thin:@decipher:1521:csi
    Code to Access datasource (Note: dsName=OracleConnectionPoolDataSource):
    try {
    // Define JNDI InitialContext object.
    InitialContext ctx = new InitialContext();
    ds = (DataSource)ctx.lookup("jdbc/" + dsName);
    dbConn = ds.getConnection();
    //requires all sql Statements to be manually commit(ed)
    dbConn.setAutoCommit(false);
    if(dbConn!=null)
         System.out.println("Getting a connection from dds.");
    catch (Exception e){
         e.printStackTrace();
    The Error that I am getting:
    [22/Aug/2002 15:43:51:9] info: RLOPMGR-005: OracleConnectionPoolDataSource: CALLBACK FAILED: CreateObject
    java.sql.SQLException: A. Couldn't load or create 3rd party class: oracle.jdbc.pool.OracleConnectionPoolDataSource
    at com.netscape.server.jdbc.Driver.connect(Unknown Source)
    at com.netscape.server.jdbc.ConnectionPool.createNewConnection(Unknown Source)
    at com.netscape.server.jdbc.ProxyEvaluation.createObject(Unknown Source)
    at com.kivasoft.rlop.ObjectPool.reserveObjectnative(Native Method)
    at com.kivasoft.rlop.ObjectPool.reserveObject(Unknown Source)
    at com.netscape.server.jdbc.ConnectionPool.getFromPool(Unknown Source)
    at com.netscape.server.jdbc.ConnectionPool.getConnection(Unknown Source)
    at com.netscape.server.jdbc.DataSourceImpl.getConnection(Unknown Source)
    at com.netscape.server.jdbc.DataSourceImpl.getConnection(Unknown Source)
    I would greatly appreciate any help on why I am getting this error. I am desparate!

    I'm sorry but I'm not an expert......
    As you know Classes12.zip contains two dir "javax" and "oracle".
    So my path for driver is "/servers/jdbc/classes12.zip (or wath is contains).
    In classpath variable in iasenv.ksh I put /servers/jdbc but it doesn't work.
    I tried with /servers/jdbc/oracle/driver.....the same
    Can you help me again
    Thank you very much!
    Massimiliano

  • Destroying connection that is not valid, due to the following exception [com.microsoft.sqlserver.jdbc.SQLServerException: Connection reset]

    Hi everyone, 
    I'm facing the following problem in a Server runing Linux with JBoss AS 4.2.2, JRE 1.6, and MSSQL Server 2005 with JDBC 2.0 (sqljdbc4.jar).
    The thing is: on friday morning I started up the server and everything worked fine ... next, from Friday at 6pm to Saturday at 8am nobody has used the system. 
    Then on Saturday at 8:05 got the following warning lines every time I tried to do something in my application. While it seems that everything works, after a few days the system starts to decrease their performance and malfunction, so I want to know why it
    might happen these warnings.
    I have tried to find a solution to this problem in several places but I'm not succeeding. That's why I'm writing my problem here... 
    Hope somebody can help me!
    Thanks in advance and best regards!
    Cristian.
    This is the "error" log.
    2011-06-11 08:05:29,680 WARN [org.jboss.resource.adapter.jdbc.local.LocalManagedConnectionFactory] Destroying connection that is not valid, due to the following exception: ConnectionID:2941
    com.microsoft.sqlserver.jdbc.SQLServerException: Connection reset
    at com.microsoft.sqlserver.jdbc.SQLServerConnection.terminate(SQLServerConnection.java:1352)
    at com.microsoft.sqlserver.jdbc.SQLServerConnection.terminate(SQLServerConnection.java:1339)
    at com.microsoft.sqlserver.jdbc.TDSChannel.read(IOBuffer.java:1654)
    at com.microsoft.sqlserver.jdbc.TDSReader.readPacket(IOBuffer.java:3694)
    at com.microsoft.sqlserver.jdbc.TDSCommand.startResponse(IOBuffer.java:5022)
    at com.microsoft.sqlserver.jdbc.SQLServerStatement.doExecuteStatement(SQLServerStatement.java:773)
    at com.microsoft.sqlserver.jdbc.SQLServerStatement$StmtExecCmd.doExecute(SQLServerStatement.java:676)
    at com.microsoft.sqlserver.jdbc.TDSCommand.execute(IOBuffer.java:4575)
    at com.microsoft.sqlserver.jdbc.SQLServerConnection.executeCommand(SQLServerConnection.java:1400)
    at com.microsoft.sqlserver.jdbc.SQLServerStatement.executeCommand(SQLServerStatement.java:179)
    at com.microsoft.sqlserver.jdbc.SQLServerStatement.executeStatement(SQLServerStatement.java:154)
    at com.microsoft.sqlserver.jdbc.SQLServerStatement.execute(SQLServerStatement.java:649)
    at org.jboss.resource.adapter.jdbc.CheckValidConnectionSQL.isValidConnection(CheckValidConnectionSQL.java:58)
    at org.jboss.resource.adapter.jdbc.BaseWrapperManagedConnectionFactory.isValidConnection(BaseWrapperManagedConnectionFactory.java:435)
    at org.jboss.resource.adapter.jdbc.BaseWrapperManagedConnection.checkValid(BaseWrapperManagedConnection.java:231)
    at org.jboss.resource.adapter.jdbc.local.LocalManagedConnectionFactory.matchManagedConnections(LocalManagedConnectionFactory.java:200)
    at org.jboss.resource.connectionmanager.InternalManagedConnectionPool.getConnection(InternalManagedConnectionPool.java:211)
    at org.jboss.resource.connectionmanager.JBossManagedConnectionPool$BasePool.getConnection(JBossManagedConnectionPool.java:538)
    at org.jboss.resource.connectionmanager.BaseConnectionManager2.getManagedConnection(BaseConnectionManager2.java:341)
    at org.jboss.resource.connectionmanager.TxConnectionManager.getManagedConnection(TxConnectionManager.java:315)
    at org.jboss.resource.connectionmanager.BaseConnectionManager2.allocateConnection(BaseConnectionManager2.java:396)
    at org.jboss.resource.connectionmanager.BaseConnectionManager2$ConnectionManagerProxy.allocateConnection(BaseConnectionManager2.java:842)
    at org.jboss.resource.adapter.jdbc.WrapperDataSource.getConnection(WrapperDataSource.java:88)
    at org.hibernate.connection.DatasourceConnectionProvider.getConnection(DatasourceConnectionProvider.java:69)
    at org.hibernate.jdbc.ConnectionManager.openConnection(ConnectionManager.java:423)
    at org.hibernate.jdbc.ConnectionManager.getConnection(ConnectionManager.java:144)
    at org.hibernate.jdbc.AbstractBatcher.prepareQueryStatement(AbstractBatcher.java:139)
    at org.hibernate.loader.Loader.prepareQueryStatement(Loader.java:1547)
    at org.hibernate.loader.Loader.doQuery(Loader.java:673)
    at org.hibernate.loader.Loader.doQueryAndInitializeNonLazyCollections(Loader.java:236)
    at org.hibernate.loader.Loader.doList(Loader.java:2220)
    And this is my mssql-ds.xml
    <local-tx-datasource>
    <jndi-name>jdbc/bpmsdb</jndi-name>
    <connection-url>jdbc:sqlserver://ipaddress:1433;DatabaseName=BPMS</connection-url>
    <driver-class>com.microsoft.sqlserver.jdbc.SQLServerDriver</driver-class>
    <user-name>user</user-name>
    <password>pwd</password>
    <min-pool-size>5</min-pool-size>
    <max-pool-size>50</max-pool-size>
    <exception-sorter-class-name>
    org.jboss.resource.adapter.jdbc.vendor.MySQLExceptionSorter
    </exception-sorter-class-name>
    <metadata>
    <type-mapping>MS SQLSERVER2000</type-mapping>
    </metadata>
    <new-connection-sql>select 1</new-connection-sql>
    <check-valid-connection-sql>select 1</check-valid-connection-sql>
    <idle-timeout-minutes>5</idle-timeout-minutes>
    </local-tx-datasource>

    I´m facing similar problem with Linux and SQL Server 2008 R2. I made the downgrade of JDK 1.6 from 27 to 26 (some people reporting errors when upgraded to jdk1.6_29 and rolling back is ok) but for me the error persists. At this moment we are testing with
    sqljdbc4.jar version 4.0 (released in 3/6/2012). The curious I have two equals Linux boxes and only one have presented connection reset errors.
    Thanks in advance.
    Carlos

  • 3rd Party JDBC Driver in IAS6

    Hi,
    I set up a third-party JDBC driver on iPlanet App Server 6.0 SP3 Test Drive
    on WinNT 4.0. I then ran HelloDB against a data source pointing to this JDBC
    driver. I got the following exception while trying to make a connection. Any
    hint as to what's wrong would be greatly appreciated.
    Yongtao You
    [email protected]
    PS. The "Driver Classpath" is set to "k:\iPlanet\ias6\neon\scjd12ts.jar"
    which contains the class "com.neon.jdbc.Driver".
    java.sql.SQLException: A. Couldn't load or create 3rd party class:
    com.neon.jdbc.Driver
    at com.netscape.server.jdbc.Driver.connect(Unknown Source)
    at com.netscape.server.jdbc.ConnectionPool.createNewConnection(Unknown
    Source)
    at com.netscape.server.jdbc.ProxyEvaluation.createObject(Unknown Source)
    at com.kivasoft.rlop.ObjectPool.reserveObjectnative(Native Method)
    at com.kivasoft.rlop.ObjectPool.reserveObject(Unknown Source)
    at com.netscape.server.jdbc.ConnectionPool.getFromPool(Unknown Source)
    at com.netscape.server.jdbc.ConnectionPool.getConnection(Unknown Source)
    at com.netscape.server.jdbc.DataSourceImpl.getConnection(Unknown Source)
    at com.netscape.server.jdbc.DataSourceImpl.getConnection(Unknown Source)
    at
    samples.hellodb.servlet.GreeterDBServlet.doGet(GreeterDBServlet.java:91)
    at
    samples.hellodb.servlet.GreeterDBServlet.doPost(GreeterDBServlet.java:132)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:772)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:865)
    at com.netscape.server.servlet.servletrunner.ServletInfo.service(Unknown
    Source)
    at
    com.netscape.server.servlet.servletrunner.ServletRunner.execute(Unknown
    Source)
    at com.kivasoft.applogic.AppLogic.execute(Unknown Source)
    at com.kivasoft.applogic.AppLogic.execute(Unknown Source)
    at com.kivasoft.thread.ThreadBasic.run(Native Method)
    at java.lang.Thread.run(Thread.java:479)

    Hi,
    I fixed the problem by manually editing the Windows Registry.
    Thanks.
    Yongtao
    Yongtao You <[email protected]> wrote in message
    news:9q52qh$[email protected]..
    Hi,
    I set up a third-party JDBC driver on iPlanet App Server 6.0 SP3 TestDrive
    on WinNT 4.0. I then ran HelloDB against a data source pointing to thisJDBC
    driver. I got the following exception while trying to make a connection.Any
    hint as to what's wrong would be greatly appreciated.
    Yongtao You
    [email protected]
    PS. The "Driver Classpath" is set to "k:\iPlanet\ias6\neon\scjd12ts.jar"
    which contains the class "com.neon.jdbc.Driver".
    java.sql.SQLException: A. Couldn't load or create 3rd party class:
    com.neon.jdbc.Driver
    at com.netscape.server.jdbc.Driver.connect(Unknown Source)
    at com.netscape.server.jdbc.ConnectionPool.createNewConnection(Unknown
    Source)
    at com.netscape.server.jdbc.ProxyEvaluation.createObject(UnknownSource)
    at com.kivasoft.rlop.ObjectPool.reserveObjectnative(Native Method)
    at com.kivasoft.rlop.ObjectPool.reserveObject(Unknown Source)
    at com.netscape.server.jdbc.ConnectionPool.getFromPool(Unknown Source)
    at com.netscape.server.jdbc.ConnectionPool.getConnection(UnknownSource)
    at com.netscape.server.jdbc.DataSourceImpl.getConnection(UnknownSource)
    at com.netscape.server.jdbc.DataSourceImpl.getConnection(UnknownSource)
    at
    samples.hellodb.servlet.GreeterDBServlet.doGet(GreeterDBServlet.java:91)
    at
    samples.hellodb.servlet.GreeterDBServlet.doPost(GreeterDBServlet.java:132)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:772)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:865)
    atcom.netscape.server.servlet.servletrunner.ServletInfo.service(Unknown
    Source)
    at
    com.netscape.server.servlet.servletrunner.ServletRunner.execute(Unknown
    Source)
    at com.kivasoft.applogic.AppLogic.execute(Unknown Source)
    at com.kivasoft.applogic.AppLogic.execute(Unknown Source)
    at com.kivasoft.thread.ThreadBasic.run(Native Method)
    at java.lang.Thread.run(Thread.java:479)

  • Oracle.jdbc.driver.T4CConnection

    Hi All,
    My system is basically a vertically clustered. Please find below the configuration details of the system.
    1. IHS web servers - 4 servers
    2. WAS 6.1 - 4 servers - Each one has 3 vertically clustered JVM instances.
    3. Oracle 10g DB - 1
    We are using a Content Management Product called 'Fatwire 7.0.2' which runs over each WAS instance.
    Issue Description: We are getting blank pages(no html in the view source) intermittently in our production environment.
    Technical Description: We are encountering the following exception in the websphere log trace.
    StaleConnectionException:
    [5/19/09 13:10:57:894 GMT] 00000a31 db E COM.FutureTense.Servlet.e6 b Exception getting a connection for data source jndi/engine_cs
    com.ibm.websphere.ce.cm.StaleConnectionException: Io exception: Got minus one from a read callDSRA0010E: SQL State = null, Error Code = 17,002
         at sun.reflect.GeneratedConstructorAccessor89.newInstance(Unknown Source)
         at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
         at java.lang.reflect.Constructor.newInstance(Constructor.java:522)
         at com.ibm.websphere.rsadapter.GenericDataStoreHelper.mapExceptionHelper(GenericDataStoreHelper.java:523)
         at com.ibm.websphere.rsadapter.GenericDataStoreHelper.mapException(GenericDataStoreHelper.java:578)
         at com.ibm.ws.rsadapter.AdapterUtil.mapException(AdapterUtil.java:2124)
         at com.ibm.ws.rsadapter.spi.WSRdbDataSource.getPooledConnection(WSRdbDataSource.java:1441)
         at com.ibm.ws.rsadapter.spi.WSManagedConnectionFactoryImpl.createManagedConnection(WSManagedConnectionFactoryImpl.java:1089)
         at com.ibm.ejs.j2c.FreePool.createManagedConnectionWithMCWrapper(FreePool.java:1821)
         at com.ibm.ejs.j2c.FreePool.createOrWaitForConnection(FreePool.java:1552)
         at com.ibm.ejs.j2c.PoolManager.reserve(PoolManager.java:2289)
         at com.ibm.ejs.j2c.ConnectionManager.allocateMCWrapper(ConnectionManager.java:909)
         at com.ibm.ejs.j2c.ConnectionManager.allocateConnection(ConnectionManager.java:599)
         at com.ibm.ws.rsadapter.jdbc.WSJdbcDataSource.getConnection(WSJdbcDataSource.java:439)
         at com.ibm.ws.rsadapter.jdbc.WSJdbcDataSource.getConnection(WSJdbcDataSource.java:408)
         at COM.FutureTense.Servlet.e6.b(DashoA19*..)
         at COM.FutureTense.Servlet.e5.a(DashoA19*..)
         at COM.FutureTense.Servlet.g8.a(DashoA19*..)
         at COM.FutureTense.Servlet.g8.<init>(DashoA19*..)
         at COM.FutureTense.Servlet.e5.a(DashoA19*..)
         at COM.FutureTense.Common.b6.e(DashoA19*..)
         at COM.FutureTense.Common.b6.aj(DashoA19*..)
         at COM.FutureTense.CatalogManager.do.a(DashoA19*..)
         at COM.FutureTense.CatalogManager.do.a(DashoA19*..)
         at COM.FutureTense.Common.ez.ci(DashoA19*..)
         at COM.FutureTense.Common.g1$nu.doWork(DashoA19*..)
         at com.fatwire.cs.core.util.KeyThrottle.execute(DashoA19*..)
         at COM.FutureTense.Common.g1.a(DashoA19*..)
         at COM.FutureTense.Common.g1.a(DashoA19*..)
         at COM.FutureTense.Common.ez.o(DashoA19*..)
         at COM.FutureTense.Servlet.FTServlet.a(DashoA19*..)
         at COM.FutureTense.Servlet.FTServlet.doGet(DashoA19*..)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:743)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
         at com.ibm.ws.webcontainer.servlet.ServletWrapper.service(ServletWrapper.java:1075)
         at com.ibm.ws.webcontainer.servlet.ServletWrapper.service(ServletWrapper.java:1016)
         at com.ibm.ws.webcontainer.filter.WebAppFilterChain.doFilter(WebAppFilterChain.java:118)
         at com.ibm.ws.webcontainer.filter.WebAppFilterChain._doFilter(WebAppFilterChain.java:87)
         at com.ibm.ws.webcontainer.filter.WebAppFilterManager.doFilter(WebAppFilterManager.java:771)
         at com.ibm.ws.webcontainer.filter.WebAppFilterManager.doFilter(WebAppFilterManager.java:679)
         at com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:546)
         at com.ibm.ws.wswebcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:478)
         at com.ibm.ws.webcontainer.servlet.CacheServletWrapper.handleRequest(CacheServletWrapper.java:90)
         at com.ibm.ws.webcontainer.WebContainer.handleRequest(WebContainer.java:744)
         at com.ibm.ws.wswebcontainer.WebContainer.handleRequest(WebContainer.java:1455)
         at com.ibm.ws.webcontainer.channel.WCChannelLink.ready(WCChannelLink.java:115)
         at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleDiscrimination(HttpInboundLink.java:458)
         at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleNewInformation(HttpInboundLink.java:387)
         at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.ready(HttpInboundLink.java:267)
         at com.ibm.ws.tcp.channel.impl.NewConnectionInitialReadCallback.sendToDiscriminators(NewConnectionInitialReadCallback.java:214)
         at com.ibm.ws.tcp.channel.impl.NewConnectionInitialReadCallback.complete(NewConnectionInitialReadCallback.java:113)
         at com.ibm.ws.tcp.channel.impl.AioReadCompletionListener.futureCompleted(AioReadCompletionListener.java:165)
         at com.ibm.io.async.AbstractAsyncFuture.invokeCallback(AbstractAsyncFuture.java:217)
         at com.ibm.io.async.AsyncChannelFuture$1.run(AsyncChannelFuture.java:205)
         at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:1473)
    ---- Begin backtrace for Nested Throwables
    java.sql.SQLException: Io exception: Got minus one from a read callDSRA0010E: SQL State = null, Error Code = 17,002
         at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:112)
         at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:146)
         at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:255)
         at oracle.jdbc.driver.T4CConnection.logon(T4CConnection.java:387)
         at oracle.jdbc.driver.PhysicalConnection.<init>(PhysicalConnection.java:439)
         at oracle.jdbc.driver.T4CConnection.<init>(T4CConnection.java:165)
         at oracle.jdbc.driver.T4CDriverExtension.getConnection(T4CDriverExtension.java:35)
         at oracle.jdbc.driver.OracleDriver.connect(OracleDriver.java:801)
         at oracle.jdbc.pool.OracleDataSource.getPhysicalConnection(OracleDataSource.java:297)
         at oracle.jdbc.pool.OracleDataSource.getConnection(OracleDataSource.java:221)
         at oracle.jdbc.pool.OracleConnectionPoolDataSource.getPhysicalConnection(OracleConnectionPoolDataSource.java:157)
         at oracle.jdbc.pool.OracleConnectionPoolDataSource.getPooledConnection(OracleConnectionPoolDataSource.java:94)
         at oracle.jdbc.pool.OracleConnectionPoolDataSource.getPooledConnection(OracleConnectionPoolDataSource.java:75)
         at com.ibm.ws.rsadapter.spi.InternalGenericDataStoreHelper$1.run(InternalGenericDataStoreHelper.java:918)
         at java.security.AccessController.doPrivileged(AccessController.java:246)
         at com.ibm.ws.security.util.AccessController.doPrivileged(AccessController.java:125)
         at com.ibm.ws.rsadapter.spi.InternalGenericDataStoreHelper.getPooledConnection(InternalGenericDataStoreHelper.java:955)
         at com.ibm.ws.rsadapter.spi.WSRdbDataSource.getPooledConnection(WSRdbDataSource.java:1437)
         at com.ibm.ws.rsadapter.spi.WSManagedConnectionFactoryImpl.createManagedConnection(WSManagedConnectionFactoryImpl.java:1089)
         at com.ibm.ejs.j2c.FreePool.createManagedConnectionWithMCWrapper(FreePool.java:1821)
         at com.ibm.ejs.j2c.FreePool.createOrWaitForConnection(FreePool.java:1552)
         at com.ibm.ejs.j2c.PoolManager.reserve(PoolManager.java:2289)
         at com.ibm.ejs.j2c.ConnectionManager.allocateMCWrapper(ConnectionManager.java:909)
         at com.ibm.ejs.j2c.ConnectionManager.allocateConnection(ConnectionManager.java:599)
         at com.ibm.ws.rsadapter.jdbc.WSJdbcDataSource.getConnection(WSJdbcDataSource.java:439)
         at com.ibm.ws.rsadapter.jdbc.WSJdbcDataSource.getConnection(WSJdbcDataSource.java:408)
         at COM.FutureTense.Servlet.e6.b(DashoA19*..)
         at COM.FutureTense.Servlet.e5.a(DashoA19*..)
         at COM.FutureTense.Servlet.g8.a(DashoA19*..)
         at COM.FutureTense.Servlet.g8.<init>(DashoA19*..)
         at COM.FutureTense.Servlet.e5.a(DashoA19*..)
         at COM.FutureTense.Common.b6.e(DashoA19*..)
         at COM.FutureTense.Common.b6.aj(DashoA19*..)
         at COM.FutureTense.CatalogManager.do.a(DashoA19*..)
         at COM.FutureTense.CatalogManager.do.a(DashoA19*..)
         at COM.FutureTense.Common.ez.ci(DashoA19*..)
         at COM.FutureTense.Common.g1$nu.doWork(DashoA19*..)
         at com.fatwire.cs.core.util.KeyThrottle.execute(DashoA19*..)
         at COM.FutureTense.Common.g1.a(DashoA19*..)
         at COM.FutureTense.Common.g1.a(DashoA19*..)
         at COM.FutureTense.Common.ez.o(DashoA19*..)
         at COM.FutureTense.Servlet.FTServlet.a(DashoA19*..)
         at COM.FutureTense.Servlet.FTServlet.doGet(DashoA19*..)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:743)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
         at com.ibm.ws.webcontainer.servlet.ServletWrapper.service(ServletWrapper.java:1075)
         at com.ibm.ws.webcontainer.servlet.ServletWrapper.service(ServletWrapper.java:1016)
         at com.ibm.ws.webcontainer.filter.WebAppFilterChain.doFilter(WebAppFilterChain.java:118)
         at com.ibm.ws.webcontainer.filter.WebAppFilterChain._doFilter(WebAppFilterChain.java:87)
         at com.ibm.ws.webcontainer.filter.WebAppFilterManager.doFilter(WebAppFilterManager.java:771)
         at com.ibm.ws.webcontainer.filter.WebAppFilterManager.doFilter(WebAppFilterManager.java:679)
         at com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:546)
         at com.ibm.ws.wswebcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:478)
         at com.ibm.ws.webcontainer.servlet.CacheServletWrapper.handleRequest(CacheServletWrapper.java:90)
         at com.ibm.ws.webcontainer.WebContainer.handleRequest(WebContainer.java:744)
         at com.ibm.ws.wswebcontainer.WebContainer.handleRequest(WebContainer.java:1455)
         at com.ibm.ws.webcontainer.channel.WCChannelLink.ready(WCChannelLink.java:115)
         at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleDiscrimination(HttpInboundLink.java:458)
         at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleNewInformation(HttpInboundLink.java:387)
         at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.ready(HttpInboundLink.java:267)
         at com.ibm.ws.tcp.channel.impl.NewConnectionInitialReadCallback.sendToDiscriminators(NewConnectionInitialReadCallback.java:214)
         at com.ibm.ws.tcp.channel.impl.NewConnectionInitialReadCallback.complete(NewConnectionInitialReadCallback.java:113)
         at com.ibm.ws.tcp.channel.impl.AioReadCompletionListener.futureCompleted(AioReadCompletionListener.java:165)
         at com.ibm.io.async.AbstractAsyncFuture.invokeCallback(AbstractAsyncFuture.java:217)
         at com.ibm.io.async.AsyncChannelFuture$1.run(AsyncChannelFuture.java:205)
         at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:1473)
    I herewith attached the full trace of the exception.
    It looks like the the WAS instance tries to use stale connections sometimes. As stale connections cannot able to retrieve any information from DB, we are getting blank pages.
    FYI:
    DB Connection Pool Size: 700
    I really don’t know whether the issue with the DB or WAS. Could you please help me in resolving this issue?
    Your help on this is much appreciated.
    Kind Regards,
    Selvandhan M

    are you able to resolve this issue? I am also getting similar problem. We have migrated from WAS 5.1 to 6.1 and getting following Exception: it is working very well in backend as well as on WAS5.1
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:743)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
    at com.ibm.ws.webcontainer.servlet.ServletWrapper.service(ServletWrapper.java:1143)
    at com.ibm.ws.webcontainer.servlet.ServletWrapper.service(ServletWrapper.java:1084)
    at com.ibm.ws.webcontainer.filter.WebAppFilterChain.doFilter(WebAppFilterChain.java:145)
    at com.hsbc.plada.framework.servlet.PLADACompressionFilter.doFilter(PLADACompressionFilter.java:55)
    at com.ibm.ws.webcontainer.filter.FilterInstanceWrapper.doFilter(FilterInstanceWrapper.java:190)
    at com.ibm.ws.webcontainer.filter.WebAppFilterChain.doFilter(WebAppFilterChain.java:130)
    at com.ibm.ws.webcontainer.filter.WebAppFilterChain._doFilter(WebAppFilterChain.java:87)
    at com.ibm.ws.webcontainer.filter.WebAppFilterManager.doFilter(WebAppFilterManager.java:832)
    at com.ibm.ws.webcontainer.filter.WebAppFilterManager.doFilter(WebAppFilterManager.java:679)
    at com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:587)
    at com.ibm.ws.wswebcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:481)
    at com.ibm.ws.webcontainer.servlet.CacheServletWrapper.handleRequest(CacheServletWrapper.java:90)
    at com.ibm.ws.webcontainer.WebContainer.handleRequest(WebContainer.java:748)
    at com.ibm.ws.wswebcontainer.WebContainer.handleRequest(WebContainer.java:1466)
    at com.ibm.ws.webcontainer.channel.WCChannelLink.ready(WCChannelLink.java:119)
    at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleDiscrimination(HttpInboundLink.java:458)
    at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleNewInformation(HttpInboundLink.java:387)
    at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.ready(HttpInboundLink.java:267)
    at com.ibm.ws.tcp.channel.impl.NewConnectionInitialReadCallback.sendToDiscriminators(NewConnectionInitialReadCallback.java:214)
    at com.ibm.ws.tcp.channel.impl.NewConnectionInitialReadCallback.complete(NewConnectionInitialReadCallback.java:113)
    at com.ibm.ws.tcp.channel.impl.AioReadCompletionListener.futureCompleted(AioReadCompletionListener.java:165)
    at com.ibm.io.async.AbstractAsyncFuture.invokeCallback(AbstractAsyncFuture.java:217)
    at com.ibm.io.async.AsyncChannelFuture$1.run(AsyncChannelFuture.java:205)
    at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:1473)
    I have gone through the listener.log as suggested above.. but not really able to find any exception there.
    Request you to please revert in case of any information available. Thanks in advance.

  • Problem with MS SQL 2005 JDBC Conection

    Dear all,
    I am new user of MS SQL Server 2005 database and Java developer.
    When I conect to MS SQL Server 2005 i have a problem with conection.
    First I creat new class named DaoTest to test MS SQL conection.
    Here I show my code complete.
    {color:#0000ff}
    import java.sql.Connection;
    import java.sql.Statement;
    import com.microsoft.sqlserver.jdbc.SQLServerDataSource;
    public class DaoTest {
    private Connection connection;
    public DaoTest() {
    try {
    Class.forName("com.microsoft.sqlserver.jdbc.SQLServerDriver");
    SQLServerDataSource ds = new SQLServerDataSource();
    ds.setUser("sa");
    ds.setPassword("deanweb");
    ds.setServerName("localhost");
    ds.setPortNumber(1434);
    ds.setDatabaseName("common");
    connection= ds.getConnection();
    } catch (Exception e) {
    e.printStackTrace();
    public static void main(String[] args) throws Exception {
    DaoTest daoTest1 = new DaoTest();
    DaoTest daoTest2 = new DaoTest();
    }{color}
    {color:#000000}and when I run this class a error appeared:{color}
    {color:#ff0000}com.microsoft.sqlserver.jdbc.SQLServerException: Connection reset
    at com.microsoft.sqlserver.jdbc.SQLServerConnection.terminate(Unknown Source)
    at com.microsoft.sqlserver.jdbc.TDSChannel.read(Unknown Source)
    at com.microsoft.sqlserver.jdbc.SQLServerConnection.Prelogin(Unknown Source)
    at com.microsoft.sqlserver.jdbc.SQLServerConnection.connectHelper(Unknown Source)
    at com.microsoft.sqlserver.jdbc.SQLServerConnection.loginWithoutFailover(Unknown Source)
    at com.microsoft.sqlserver.jdbc.SQLServerConnection.connect(Unknown Source)
    at com.microsoft.sqlserver.jdbc.SQLServerDataSource.getConnectionInternal(Unknown Source)
    at com.microsoft.sqlserver.jdbc.SQLServerDataSource.getConnection(Unknown Source)
    at DaoTest.<init>(DaoTest.java:21)
    at DaoTest.main(DaoTest.java:32)
    {color:#000000}But when i change main methol as{color}:
    {color}{color:#0000ff}public static void main(String[] args) throws Exception {
    DaoTest daoTest1 = new DaoTest();
    daoTest1.connection.close();
    DaoTest daoTest2 = new DaoTest();
    }{color}
    ->>successful.
    {color:#ff0000}{color:#000000}That mean I {color}**can not**{color} creat more than one instance of class DaoTest if i do not close {color:#000000}*daoTest1*'{color}s conection.
    I only see this error with MS SQL Server,none in Postgres or HSQL.
    Please help me.
    Thank for reading and I am waiting for your reply.
    sorry my english.
    [email protected]
    Edited by: DrNhut on Jun 24, 2008 3:39 AM
    Edited by: DrNhut on Jun 24, 2008 3:44 AM

    Thank you.
    I try your code but it didn't work.
    So,here my code with your opinion
    String connectionUrl = "jdbc:sqlserver://localhost:1434;"
                   + "databaseName=common;selectMethod=cursor;";
    //                Declare the JDBC objects.
                   Connection con = null;
                   Statement stmt = null;
                   ResultSet rs = null;
                   try {
    //                Establish the connection.
                   Class.forName("com.microsoft.sqlserver.jdbc.SQLServerDriver");
                   con = DriverManager.getConnection(connectionUrl,"sa","deanweb");
                   } catch (Exception e) {
                   e.printStackTrace();
         public static void main(String[] args) throws Exception {
              DaoTest daoTest1 = new DaoTest();
              // daoTest1.connection.close();
              DaoTest daoTest2 = new DaoTest();
         }It throws same error with my last posted.
    I can't use your code exactlyString connectionUrl = "jdbc:sqlserver://localhost:1434/common;selectMethod=cursor";because it throws a new exception:com.microsoft.sqlserver.jdbc.SQLServerException: The port number 1434/common is not valid.
         at com.microsoft.sqlserver.jdbc.SQLServerException.makeFromDriverError(Unknown Source)
         at com.microsoft.sqlserver.jdbc.SQLServerConnection.connect(Unknown Source)
         at com.microsoft.sqlserver.jdbc.SQLServerDriver.connect(Unknown Source)
         at java.sql.DriverManager.getConnection(DriverManager.java:582)
         at java.sql.DriverManager.getConnection(DriverManager.java:185)May be I change my DBMS instead of MS SQL 2005.
    (I nead a database can manage big data.So,I choose MS SQL).
    thank you.
    DrNhut.
    Edited by: DrNhut on Jun 25, 2008 6:39 PM

  • Segmentation violation while logging to jdbc type 4

    hi,
    I'm getting segmentation violation everytime when I try to log to jdbc type 4 after I've sent emails (via a thread). The code was working fine for type 2 jdbc. Following is my stack trace:
    SIGSEGV 11 segmentation violation
    si_signo [11]: SEGV
    si_errno [0]:
    si_code [1]: SEGV_MAPERR [addr: 0x0]
    stackpointer=E107EB98
    "Thread-49" (TID:0x135b978, sys_thread_t:0x135b8b0, state:CW, thread_t: t@87, threadID:0xe73a4000, stack_bottom:0xe0e00000, stack_size:0x200000) prio=6
    [1] java.lang.Thread.sleep(Native Method)
    [2] com.kivasoft.applogic.AppLogicCleaner.run(Unknown Source)
    "Thread-48" (TID:0x1328960, sys_thread_t:0x1328898, state:R, thread_t: t@86, threadID:0xe73a3e00, stack_bottom:0xe1080000, stack_size:0x200000) prio=5 current thread
    [1] com.kivasoft.rlop.ObjectPoolManager.getObjectPoolnative(Native Method)
    [2] com.kivasoft.rlop.ObjectPoolManager.getObjectPool(Unknown Source)
    [3] com.netscape.server.jdbc.ConnectionPool.getPool(Unknown Source)
    [4] com.netscape.server.jdbc.ConnectionPool.getFromPool(Unknown Source)
    [5] com.netscape.server.jdbc.ConnectionPool.getConnection(Unknown Source)
    [6] com.netscape.server.jdbc.DataSourceImpl.getConnection(Unknown Source)
    [7] TestDatabase.getConnection(TestDatabase.java:89)
    Is there any threading issue for logging to jdbc? I'm using Iplanet 6 SP2, running on UNIX system. Thanks in advance for any help.

    You say you've managed to get the JDBC driver working
    in an application but not in a JSP. You also say that
    the error you get is
    "com.microsoft.jdbc.sqlserver.SQLServerDriver".
    I'd be willing to bet that the exception that you have
    got is a ClassNotFoundException. I.E. your application
    server hasn't found the JDBC driver classes. The
    application server probably doesn't use your current
    CLASSPATH to look for classes. It will be setup within
    the application server in some way and you'll need to
    check your app server documentation to see how it is
    done.
    Try replacing
    e.printStackTrace();with
    e.printStackTrace(out);to get a full stack trace of your error.
    ColTried it. Got this error when I tried to run the JSP.
    Incompatible type for method. Can't convert javax.servlet.jsp.JspWriter to java.io.PrintWriter.
              e.printStackTrace(out);
    I'm currently using Apache Tomcat 4.0.3 as my JSP/Servlet Container.
    I'm also using Type 4 MS SQL Server 2000 JDBC driver version 2.0 on my NT4.0 Server.
    Do I need to set my JDBC driver in my container? if so, how do I do that?

  • ATG CIM: Not able to connect to database jdbc:oracle:thin

    Hi All,
    I am trying to setup a ATG environment on windows boxes. Below is the setup:
    VM1) DC - Windows Domain Controller (Windows Server 2008)
    VM2) javadb - Oracle 11g (Windows Server 2008)
    VM3) javaweb - ATG 10.0.3 / WebLogic wlserver_10.3/ TomCat 7 (Windows Server 2008)
    Installation / Setup Progress
    * Oracle 11g installation successful. Sample DB successfully created.
    * WebLogic installation successful. Base_Domain successfully created.
    * Able to create successful connection to Oracle (javadb vm) from TomCat (javaweb vm) and query data
    Error: When configuring CIM I keep on getting >> "Not able to connect to database jdbc:oracle:thin:@javadb:1521:SampleDB @ scott"+_
    Corrective action already taken:
    1) Disabled firewall on all boxes
    2) Added path of JDBC driver (ojdbc6.jar) in Environment Variables
    3) Tested Oracle 11g (javadb vm) connectivity both from Eclipse and Tomcat. Which is successful
    4) Cleared all files under C:\ATG\ATG10.0.3\CIM\data to reset CIM
    Please refer CIM details below:
    ===========================================
    CIM DISPLAY START
    ===========================================
    -------ENTER CONNECTION DETAILS-----------------------------------------------
    enter [h]elp, [m]ain menu, [q]uit to exit
    Production Core
    Select Database Type
    *[1] Oracle Thin
    [2] MS SQL
    [3] iNet MS SQL
    [4] DB2
    [5] My SQL
    Select one > 1
    Enter User Name [[system]] > scott
    Enter Password [[**********]] > **********
    Re-enter Password > **********
    Enter Host Name [[javadb]] > javadb
    Enter Port Number [[1521]] > 1521
    Enter Database Name [[sampledb]] > SampleDB
    Enter Database URL [[jdbc:oracle:thin:@javadb:1521:SampleDB]]
    >
    Enter Driver Path [[C:/Oracle/Middleware/wlserver_10.3/server/lib/ojdbc6.jar]]
    Enter JNDI Name [[ATGProductionDS]] >
    -------CONFIGURE DATASOURCE PRODUCTION CORE-----------------------------------
    enter [h]elp, [m]ain menu, [q]uit to exit
    [C] Connection Details - Done
    *[T] Test Connection
    [S] Create Schema
    Import Initial Data
    [D] Drop Schema
    [O] Configure Another Datasource
    > T
    -------TEST DATASOURCE CONNECTION---------------------------------------------
    enter [h]elp, [m]ain menu, [q]uit to exit
    Production Core
    >> Not able to connect to database jdbc:oracle:thin:@javadb:1521:SampleDB @ scott
    ===========================================
    CIM DISPLAY END
    ===========================================
    ===========================================
    CIM LOG START
    ===========================================
    **** Warning     Mon Jul 23 22:46:25 IST 2012     1343063785645     atg.cim.worker.status.StatusUpdateValidator     Status id nonswitchingCore-DatasourceConnectionTemplateStep is unknown.
    **** Error     Mon Jul 23 22:46:32 IST 2012     1343063792213     atg.cim.worker.databaseconfig.TestJdbcConnectionValidator     Not able to connect to database jdbc:oracle:thin:@javadb:1521:SampleDB : -1     java.lang.ArrayIndexOutOfBoundsException: -1
    **** Error     Mon Jul 23 22:46:32 IST 2012     1343063792213     atg.cim.worker.databaseconfig.TestJdbcConnectionValidator          at oracle.jdbc.driver.T4CTTIoauthenticate.setSessionFields(T4CTTIoauthenticate.java:948)
    **** Error     Mon Jul 23 22:46:32 IST 2012     1343063792213     atg.cim.worker.databaseconfig.TestJdbcConnectionValidator          at oracle.jdbc.driver.T4CTTIoauthenticate.<init>(T4CTTIoauthenticate.java:225)
    **** Error     Mon Jul 23 22:46:32 IST 2012     1343063792213     atg.cim.worker.databaseconfig.TestJdbcConnectionValidator          at oracle.jdbc.driver.T4CConnection.logon(T4CConnection.java:358)
    **** Error     Mon Jul 23 22:46:32 IST 2012     1343063792213     atg.cim.worker.databaseconfig.TestJdbcConnectionValidator          at oracle.jdbc.driver.PhysicalConnection.<init>(PhysicalConnection.java:538)
    **** Error     Mon Jul 23 22:46:32 IST 2012     1343063792213     atg.cim.worker.databaseconfig.TestJdbcConnectionValidator          at oracle.jdbc.driver.T4CConnection.<init>(T4CConnection.java:228)
    **** Error     Mon Jul 23 22:46:32 IST 2012     1343063792213     atg.cim.worker.databaseconfig.TestJdbcConnectionValidator          at oracle.jdbc.driver.T4CDriverExtension.getConnection(T4CDriverExtension.java:32)
    **** Error     Mon Jul 23 22:46:32 IST 2012     1343063792213     atg.cim.worker.databaseconfig.TestJdbcConnectionValidator          at oracle.jdbc.driver.OracleDriver.connect(OracleDriver.java:521)
    **** Error     Mon Jul 23 22:46:32 IST 2012     1343063792213     atg.cim.worker.databaseconfig.TestJdbcConnectionValidator          at java.sql.DriverManager.getConnection(DriverManager.java:582)
    **** Error     Mon Jul 23 22:46:32 IST 2012     1343063792213     atg.cim.worker.databaseconfig.TestJdbcConnectionValidator          at java.sql.DriverManager.getConnection(DriverManager.java:185)
    **** Error     Mon Jul 23 22:46:32 IST 2012     1343063792213     atg.cim.worker.databaseconfig.TestJdbcConnectionValidator          at atg.service.jdbc.BasicDataSource.getDriverManagerConnection(BasicDataSource.java:526)
    **** Error     Mon Jul 23 22:46:32 IST 2012     1343063792213     atg.cim.worker.databaseconfig.TestJdbcConnectionValidator          at atg.service.jdbc.BasicDataSource.getDriverManagerConnection(BasicDataSource.java:588)
    **** Error     Mon Jul 23 22:46:32 IST 2012     1343063792213     atg.cim.worker.databaseconfig.TestJdbcConnectionValidator          at atg.service.jdbc.BasicDataSource.getConnection(BasicDataSource.java:475)
    **** Error     Mon Jul 23 22:46:32 IST 2012     1343063792213     atg.cim.worker.databaseconfig.TestJdbcConnectionValidator          at atg.service.jdbc.FakeXADataSource.getXAConnection(FakeXADataSource.java:671)
    **** Error     Mon Jul 23 22:46:32 IST 2012     1343063792213     atg.cim.worker.databaseconfig.TestJdbcConnectionValidator          at atg.service.jdbc.MonitoredDataSource.createResource(MonitoredDataSource.java:837)
    **** Error     Mon Jul 23 22:46:32 IST 2012     1343063792213     atg.cim.worker.databaseconfig.TestJdbcConnectionValidator          at atg.service.resourcepool.ResourcePool.populateSlot(ResourcePool.java:2064)
    **** Error     Mon Jul 23 22:46:32 IST 2012     1343063792213     atg.cim.worker.databaseconfig.TestJdbcConnectionValidator          at atg.service.resourcepool.ResourcePool.checkOut(ResourcePool.java:1332)
    **** Error     Mon Jul 23 22:46:32 IST 2012     1343063792213     atg.cim.worker.databaseconfig.TestJdbcConnectionValidator          at atg.service.jdbc.MonitoredDataSource.co(MonitoredDataSource.java:1792)
    **** Error     Mon Jul 23 22:46:32 IST 2012     1343063792213     atg.cim.worker.databaseconfig.TestJdbcConnectionValidator          at atg.service.jdbc.MonitoredDataSource.getConnection(MonitoredDataSource.java:1070)
    **** Error     Mon Jul 23 22:46:32 IST 2012     1343063792213     atg.cim.worker.databaseconfig.TestJdbcConnectionValidator          at atg.cim.worker.databaseconfig.TestJdbcConnectionValidator.performTestConnection(TestJdbcConnectionValidator.java:319)
    **** Error     Mon Jul 23 22:46:32 IST 2012     1343063792213     atg.cim.worker.databaseconfig.TestJdbcConnectionValidator          at atg.cim.worker.databaseconfig.TestJdbcConnectionValidator.validate(TestJdbcConnectionValidator.java:266)
    **** Error     Mon Jul 23 22:46:32 IST 2012     1343063792213     atg.cim.worker.databaseconfig.TestJdbcConnectionValidator          at atg.cim.step.StepExecutor.executeValidations(StepExecutor.java:280)
    **** Error     Mon Jul 23 22:46:32 IST 2012     1343063792213     atg.cim.worker.databaseconfig.TestJdbcConnectionValidator          at atg.cim.ui.text.TextDisplay.processStep(TextDisplay.java:338)
    **** Error     Mon Jul 23 22:46:32 IST 2012     1343063792213     atg.cim.worker.databaseconfig.TestJdbcConnectionValidator          at atg.cim.ui.UIDispatchImpl.processStep(UIDispatchImpl.java:89)
    **** Error     Mon Jul 23 22:46:32 IST 2012     1343063792213     atg.cim.worker.databaseconfig.TestJdbcConnectionValidator          at atg.cim.step.StepExecutor.processStep(StepExecutor.java:201)
    **** Error     Mon Jul 23 22:46:32 IST 2012     1343063792213     atg.cim.worker.databaseconfig.TestJdbcConnectionValidator          at atg.cim.step.StepExecutor.processCurrentStep(StepExecutor.java:80)
    **** Error     Mon Jul 23 22:46:32 IST 2012     1343063792213     atg.cim.worker.databaseconfig.TestJdbcConnectionValidator          at atg.cim.runner.Runner.run(Runner.java:152)
    **** Error     Mon Jul 23 22:46:32 IST 2012     1343063792213     atg.cim.worker.databaseconfig.TestJdbcConnectionValidator          at atg.cim.command.types.LaunchTemplate.execute(LaunchTemplate.java:69)
    **** Error     Mon Jul 23 22:46:32 IST 2012     1343063792213     atg.cim.worker.databaseconfig.TestJdbcConnectionValidator          at atg.cim.command.CommandExecutor.execute(CommandExecutor.java:128)
    **** Error     Mon Jul 23 22:46:32 IST 2012     1343063792213     atg.cim.worker.databaseconfig.TestJdbcConnectionValidator          at atg.cim.command.CommandExecutor.executeCommands(CommandExecutor.java:156)
    **** Error     Mon Jul 23 22:46:32 IST 2012     1343063792213     atg.cim.worker.databaseconfig.TestJdbcConnectionValidator          at atg.cim.step.StepExecutor.processStep(StepExecutor.java:129)
    **** Error     Mon Jul 23 22:46:32 IST 2012     1343063792213     atg.cim.worker.databaseconfig.TestJdbcConnectionValidator          at atg.cim.step.StepExecutor.processCurrentStep(StepExecutor.java:80)
    **** Error     Mon Jul 23 22:46:32 IST 2012     1343063792213     atg.cim.worker.databaseconfig.TestJdbcConnectionValidator          at atg.cim.runner.Runner.run(Runner.java:152)
    **** Error     Mon Jul 23 22:46:32 IST 2012     1343063792213     atg.cim.worker.databaseconfig.TestJdbcConnectionValidator          at atg.cim.command.types.LaunchTemplate.execute(LaunchTemplate.java:69)
    **** Error     Mon Jul 23 22:46:32 IST 2012     1343063792213     atg.cim.worker.databaseconfig.TestJdbcConnectionValidator          at atg.cim.command.CommandExecutor.execute(CommandExecutor.java:128)
    **** Error     Mon Jul 23 22:46:32 IST 2012     1343063792213     atg.cim.worker.databaseconfig.TestJdbcConnectionValidator          at atg.cim.command.CommandExecutor.executeCommands(CommandExecutor.java:156)
    **** Error     Mon Jul 23 22:46:32 IST 2012     1343063792213     atg.cim.worker.databaseconfig.TestJdbcConnectionValidator          at atg.cim.step.StepExecutor.processStep(StepExecutor.java:129)
    **** Error     Mon Jul 23 22:46:32 IST 2012     1343063792213     atg.cim.worker.databaseconfig.TestJdbcConnectionValidator          at atg.cim.step.StepExecutor.processCurrentStep(StepExecutor.java:80)
    **** Error     Mon Jul 23 22:46:32 IST 2012     1343063792213     atg.cim.worker.databaseconfig.TestJdbcConnectionValidator          at atg.cim.runner.Runner.run(Runner.java:152)
    **** Error     Mon Jul 23 22:46:32 IST 2012     1343063792213     atg.cim.worker.databaseconfig.TestJdbcConnectionValidator          at atg.cim.command.types.LaunchTemplate.execute(LaunchTemplate.java:69)
    **** Error     Mon Jul 23 22:46:32 IST 2012     1343063792213     atg.cim.worker.databaseconfig.TestJdbcConnectionValidator          at atg.cim.command.CommandExecutor.execute(CommandExecutor.java:128)
    **** Error     Mon Jul 23 22:46:32 IST 2012     1343063792213     atg.cim.worker.databaseconfig.TestJdbcConnectionValidator          at atg.cim.command.CommandExecutor.executeCommands(CommandExecutor.java:156)
    **** Error     Mon Jul 23 22:46:32 IST 2012     1343063792213     atg.cim.worker.databaseconfig.TestJdbcConnectionValidator          at atg.cim.step.StepExecutor.processStep(StepExecutor.java:129)
    **** Error     Mon Jul 23 22:46:32 IST 2012     1343063792213     atg.cim.worker.databaseconfig.TestJdbcConnectionValidator          at atg.cim.step.StepExecutor.processCurrentStep(StepExecutor.java:80)
    **** Error     Mon Jul 23 22:46:32 IST 2012     1343063792213     atg.cim.worker.databaseconfig.TestJdbcConnectionValidator          at atg.cim.runner.Runner.run(Runner.java:152)
    **** Error     Mon Jul 23 22:46:32 IST 2012     1343063792213     atg.cim.worker.databaseconfig.TestJdbcConnectionValidator          at atg.cim.command.types.LaunchWizard.execute(LaunchWizard.java:73)
    **** Error     Mon Jul 23 22:46:32 IST 2012     1343063792213     atg.cim.worker.databaseconfig.TestJdbcConnectionValidator          at atg.cim.command.CommandExecutor.execute(CommandExecutor.java:128)
    **** Error     Mon Jul 23 22:46:32 IST 2012     1343063792213     atg.cim.worker.databaseconfig.TestJdbcConnectionValidator          at atg.cim.command.CommandExecutor.executeCommands(CommandExecutor.java:156)
    **** Error     Mon Jul 23 22:46:32 IST 2012     1343063792213     atg.cim.worker.databaseconfig.TestJdbcConnectionValidator          at atg.cim.step.StepExecutor.processStep(StepExecutor.java:216)
    **** Error     Mon Jul 23 22:46:32 IST 2012     1343063792213     atg.cim.worker.databaseconfig.TestJdbcConnectionValidator          at atg.cim.step.StepExecutor.processCurrentStep(StepExecutor.java:80)
    **** Error     Mon Jul 23 22:46:32 IST 2012     1343063792213     atg.cim.worker.databaseconfig.TestJdbcConnectionValidator          at atg.cim.runner.Runner.run(Runner.java:152)
    **** Error     Mon Jul 23 22:46:32 IST 2012     1343063792213     atg.cim.worker.databaseconfig.TestJdbcConnectionValidator          at atg.cim.flow.CimFlow.startupFlow(CimFlow.java:69)
    **** Error     Mon Jul 23 22:46:32 IST 2012     1343063792213     atg.cim.worker.databaseconfig.TestJdbcConnectionValidator          at atg.cim.flow.CimFlowCreator.startDefaultCimFlow(CimFlowCreator.java:78)
    **** Error     Mon Jul 23 22:46:32 IST 2012     1343063792213     atg.cim.worker.databaseconfig.TestJdbcConnectionValidator          at atg.cim.Launcher.startCimFlow(Launcher.java:168)
    **** Error     Mon Jul 23 22:46:32 IST 2012     1343063792213     atg.cim.worker.databaseconfig.TestJdbcConnectionValidator          at atg.cim.Launcher.main(Launcher.java:68)
    **** Error     Mon Jul 23 22:46:32 IST 2012     1343063792213     atg.cim.worker.databaseconfig.TestJdbcConnectionValidator     
    **** Error     Mon Jul 23 22:46:32 IST 2012     1343063792218     atg.cim.worker.databaseconfig.TestJdbcConnectionValidator     Error initializing connection from parameters. Test for jdbc connection failed
    ===========================================
    CIM LOG END
    ===========================================
    Any suggestion how to resolve this issue. Thanks in advance.
    cheers,
    Sandeep
    Edited by: 948180 on Jul 23, 2012 11:29 PM

    Hi,
    Earlier my ojdbc6.jar path was not at the beginning of ClassPath. I have made necessary changes. Please refer below:
    Environment Variables Settings on machine where CIM resides:
    PATH = C:\Oracle\Middleware\wlserver_10.3\server\lib\ojdbc6.jar+;%SystemRoot%\system32;%SystemRoot%;%SystemRoot%\System32\Wbem;C:\Program Files\Java\jre7\bin;C:\Program Files\Apache Software Foundation\Tomcat 7.0\bin;C:\Program Files\cvsnt;C:\Program Files\Java\jdk1.7.0\bin;C:\Program Files\Sun\JavaDB\bin;C:\Program Files\Sun\JavaDB\lib;;C:\ATG\ATG10.0.3\MySQL\win32\bin;C:\ATG\ATG10.0.3\home\bin\;C:\Oracle\Middleware\wlserver_10.3\server\lib\;
    Note: I have verified by ojdbc6.jar path.
    Below are the precise steps I executed after updating my environment variables and restarting CMD.
    ===========================================
    CIM DISPLAY START
    ===========================================
    C:\ATG\ATG10.0.3\home\bin>cim.bat
    Nucleus running
    _ | () |
    __ _ | |_ __ _ ----
    / _` | | __| / _` |
    | (_| | | |_ | (_| |
    \__,_| \__| \__, |
    |___/
    Configuration Installation Manager
    =======CIM MAIN MENU============================================================
    enter [h]elp, [q]uit to exit
    Choose the task you want to perform:
    *[1] Database Configuration
    [2] Server Instance Configuration
    [3] Application Assembly & Deployment
    [P] Product Selection - Done (ATG B2C Commerce)
    [A] Select Application Server - Done (Weblogic Online)
    [C] Custom CIM Plugin Launcher
    > 1
    -------CALCULATE DATASOURCE DEPENDENCIES----------------------------------------
    enter [h]elp, [m]ain menu, [q]uit to exit
    Calculating Datasource Dependencies. View log file at C:/ATG/ATG10.0.3/home/
    ../CIM/log/cim.log
    |. . |
    |. . |
    -------SELECT A DATASOURCE TO CONFIGURE-----------------------------------------
    enter [h]elp, [m]ain menu, [q]uit to exit
    *[P] Publishing
    [C] Production Core
    [D] Done
    > c
    -------CONFIGURE DATASOURCE PRODUCTION CORE-------------------------------------
    enter [h]elp, [m]ain menu, [q]uit to exit
    [C] Connection Details - Done
    *[T] Test Connection
    [S] Create Schema
    Import Initial Data
    [D] Drop Schema
    [O] Configure Another Datasource
    > t
    -------TEST DATASOURCE CONNECTION-----------------------------------------------
    enter [h]elp, [m]ain menu, [q]uit to exit
    Production Core
    >> Not able to connect to database jdbc:oracle:thin:@javadb:1521:SampleDB @
    scott
    *[E] Edit Connection Details
    [R] Redo
    [D] Done
    > e
    -------RE-USE VALUES FROM PREVIOUS DATASOURCE-----------------------------------
    enter [h]elp, [m]ain menu, [q]uit to exit
    Production Core
    Base on previous database details:
    [1] system@jdbc:oracle:thin:@javadb:1521:sampledb
    [2] scott@jdbc:oracle:thin:@javadb:1521:SampleDB
    *[3] None/Use Existing
    Select one > 2
    -------ENTER CONNECTION DETAILS-------------------------------------------------
    enter [h]elp, [m]ain menu, [q]uit to exit
    Production Core
    Select Database Type
    *[1] Oracle Thin
    [2] MS SQL
    [3] iNet MS SQL
    [4] DB2
    [5] My SQL
    Select one > 1
    Enter User Name [[scott]] > scott
    Enter Password [[**********]] > **********
    Re-enter Password > **********
    Enter Host Name [[javadb]] > javadb
    Enter Port Number [[1521]] > 1521
    Enter Database Name [[SampleDB]] > SampleDB
    Enter Database URL [[jdbc:oracle:thin:@javadb:1521:SampleDB]]
    > jdbc:oracle:thin:@javadb:1521:SampleDB
    Enter Driver Path [[C:/Oracle/Middleware/wlserver_10.3/server/lib/ojdbc6.jar]
    ] > C:\Oracle\Middleware\wlserver_10.3\server\lib\ojdbc6.jar
    Enter JNDI Name [[ATGProductionDS]] > ATGProductionDS
    -------CONFIGURE DATASOURCE PRODUCTION CORE-------------------------------------
    enter [h]elp, [m]ain menu, [q]uit to exit
    [C] Connection Details - Done
    *[T] Test Connection
    [S] Create Schema
    [I] Import Initial Data
    [D] Drop Schema
    [O] Configure Another Datasource
    > T
    -------TEST DATASOURCE CONNECTION-----------------------------------------------
    enter [h]elp, [m]ain menu, [q]uit to exit
    Production Core
    >> Not able to connect to database jdbc:oracle:thin:@javadb:1521:SampleDB @
    scott
    *[E] Edit Connection Details
    [R] Redo
    [D] Done
    >
    ===========================================
    CIM DISPLAY END
    ===========================================
    Don't understand what could possibly be going wrong.
    Cheers,
    Sandeep
    Edited by: 948180 on Jul 24, 2012 12:23 AM

  • ODI11 jdbc Cannot Get Jdbc Connection Exception - HELP!

    Dear
    I'm trying to make a conexion a new facility in the ODI 11 in a new machine.
    that occurs when you try to configure the conexion at exactly the moment that will define the repository of work the following error occurs.
    ==
    Parameters
    Odi user and password - OK (checked and is correct)
    Repository User and Master password - ok (checked and is correct)
    Driver List - oracle.jdbc.OracleDriver
    URL>
    jdbc: oracle: thin: @ (DESCRIPTION = (ADDRESS = (PROTOCOL = TCP) (HOST = sss.rrr3.ttttj.ggg.br) (PORT = 1521)) (CONNECT_DATA = (SERVER = DEDICATED) (SERVICE_NAME = RRR3) ))
    and
    Error Text>
    oracle.odi.core.config.MasterRepositoryResourceFailureException: org.springframework.jdbc.CannotGetJdbcConnectionException: Could not get JDBC Connection; nested exception is java.sql.SQLException: Exception while getting connection: oracle.ucp.UniversalConnectionPoolException: Can not get connection Data Source
    at oracle.odi.core.repository.Repository.getMasterRepository (Repository.java: 74)
    at oracle.odi.core.OdiInstance.createMasterRepository (OdiInstance.java: 501)
    at oracle.odi.core.OdiInstance. <init> (OdiInstance.java: 553)
    at oracle.odi.core.OdiInstance.createInstance (OdiInstance.java: 529)
    at com.sunopsis.graphical.dialog.SnpsDialogLoginDetail.jButtonRepository_ActionPerformed (SnpsDialogLoginDetail.java: 1209)
    at com.sunopsis.graphical.dialog.SnpsDialogLoginDetail.connEtoC9 (SnpsDialogLoginDetail.java: 394)
    com.sunopsis.graphical.dialog.SnpsDialogLoginDetail.access at $ 15 (SnpsDialogLoginDetail.java: 390)
    com.sunopsis.graphical.dialog.SnpsDialogLoginDetail at $ IvjEventHandler.actionPerformed (SnpsDialogLoginDetail.java: 186)
    at javax.swing.AbstractButton.fireActionPerformed (AbstractButton.java: 1995)
    javax.swing.AbstractButton at $ Handler.actionPerformed (AbstractButton.java: 2318)
    at javax.swing.DefaultButtonModel.fireActionPerformed (DefaultButtonModel.java: 387)
    at javax.swing.DefaultButtonModel.setPressed (DefaultButtonModel.java: 242)
    at javax.swing.plaf.basic.BasicButtonListener.mouseReleased (BasicButtonListener.java: 236)
    at java.awt.AWTEventMulticaster.mouseReleased (AWTEventMulticaster.java: 272)
    at java.awt.AWTEventMulticaster.mouseReleased (AWTEventMulticaster.java: 272)
    at java.awt.Component.processMouseEvent (Component.java: 6267)
    at javax.swing.JComponent.processMouseEvent (JComponent.java: 3267)
    at java.awt.Component.processEvent (Component.java: 6032)
    at java.awt.Container.processEvent (Container.java: 2041)
    at java.awt.Component.dispatchEventImpl (Component.java: 4630)
    at java.awt.Container.dispatchEventImpl (Container.java: 2099)
    at java.awt.Component.dispatchEvent (Component.java: 4460)
    at java.awt.LightweightDispatcher.retargetMouseEvent (Container.java: 4577)
    at java.awt.LightweightDispatcher.processMouseEvent (Container.java: 4238)
    at java.awt.LightweightDispatcher.dispatchEvent (Container.java: 4168)
    at java.awt.Container.dispatchEventImpl (Container.java: 2085)
    at java.awt.Window.dispatchEventImpl (Window.java: 2478)
    at java.awt.Component.dispatchEvent (Component.java: 4460)
    at java.awt.EventQueue.dispatchEvent (EventQueue.java: 599)
    at java.awt.EventDispatchThread.pumpOneEventForFilters (EventDispatchThread.java: 269)
    at java.awt.EventDispatchThread.pumpEventsForFilter (EventDispatchThread.java: 184)
    at java.awt.EventDispatchThread.pumpEventsForFilter (EventDispatchThread.java: 178)
    java.awt.Dialog at $ 1.run (Dialog.java: 1046)
    java.awt.Dialog at $ 3.Run (Dialog.java: 1098)
    at java.security.AccessController.doPrivileged (Native Method)
    at java.awt.Dialog.show (Dialog.java: 1096)
    at java.awt.Component.show (Component.java: 1563)
    at java.awt.Component.setVisible (Component.java: 1515)
    at java.awt.Window.setVisible (Window.java: 842)
    at java.awt.Dialog.setVisible (Dialog.java: 986)
    at com.sunopsis.graphical.dialog.SnpsDialogLoginDetail.snpsInitializeDisplayAll (SnpsDialogLoginDetail.java: 1475)
    at com.sunopsis.graphical.dialog.SnpsDialogLoginDetail.snpsInitialize (SnpsDialogLoginDetail.java: 1421)
    at com.sunopsis.graphical.dialog.SnpsDialogLoginDetail.initialize (SnpsDialogLoginDetail.java: 1096)
    at com.sunopsis.graphical.dialog.SnpsDialogLoginDetail. <init> (SnpsDialogLoginDetail.java: 230)
    at com.sunopsis.graphical.dialog.SnpsDialogLoginDetail. <init> (SnpsDialogLoginDetail.java: 208)
    at oracle.odi.ui.LoginFactory.createLoginDetailDialog (LoginFactory.java: 218)
    at oracle.odi.ui.LoginFactory.createNewLogin (LoginFactory.java: 291)
    at com.sunopsis.graphical.dialog.SnpsDialogLogin.jToolBarButtonNew_ActionPerformed (SnpsDialogLogin.java: 853)
    at com.sunopsis.graphical.dialog.SnpsDialogLogin.connEtoC1 (SnpsDialogLogin.java: 166)
    com.sunopsis.graphical.dialog.SnpsDialogLogin at $ IvjEventHandler.actionPerformed (SnpsDialogLogin.java: 120)
    at javax.swing.AbstractButton.fireActionPerformed (AbstractButton.java: 1995)
    javax.swing.AbstractButton at $ Handler.actionPerformed (AbstractButton.java: 2318)
    at javax.swing.DefaultButtonModel.fireActionPerformed (DefaultButtonModel.java: 387)
    at javax.swing.DefaultButtonModel.setPressed (DefaultButtonModel.java: 242)
    at javax.swing.plaf.basic.BasicButtonListener.mouseReleased (BasicButtonListener.java: 236)
    at java.awt.AWTEventMulticaster.mouseReleased (AWTEventMulticaster.java: 272)
    at java.awt.AWTEventMulticaster.mouseReleased (AWTEventMulticaster.java: 272)
    at java.awt.Component.processMouseEvent (Component.java: 6267)
    at javax.swing.JComponent.processMouseEvent (JComponent.java: 3267)
    at java.awt.Component.processEvent (Component.java: 6032)
    at java.awt.Container.processEvent (Container.java: 2041)
    at java.awt.Component.dispatchEventImpl (Component.java: 4630)
    at java.awt.Container.dispatchEventImpl (Container.java: 2099)
    at java.awt.Component.dispatchEvent (Component.java: 4460)
    at java.awt.LightweightDispatcher.retargetMouseEvent (Container.java: 4577)
    at java.awt.LightweightDispatcher.processMouseEvent (Container.java: 4238)
    at java.awt.LightweightDispatcher.dispatchEvent (Container.java: 4168)
    at java.awt.Container.dispatchEventImpl (Container.java: 2085)
    at java.awt.Window.dispatchEventImpl (Window.java: 2478)
    at java.awt.Component.dispatchEvent (Component.java: 4460)
    at java.awt.EventQueue.dispatchEvent (EventQueue.java: 599)
    at java.awt.EventDispatchThread.pumpOneEventForFilters (EventDispatchThread.java: 269)
    at java.awt.EventDispatchThread.pumpEventsForFilter (EventDispatchThread.java: 184)
    at java.awt.EventDispatchThread.pumpEventsForFilter (EventDispatchThread.java: 178)
    java.awt.Dialog at $ 1.run (Dialog.java: 1046)
    java.awt.Dialog at $ 3.Run (Dialog.java: 1098)
    at java.security.AccessController.doPrivileged (Native Method)
    at java.awt.Dialog.show (Dialog.java: 1096)
    at java.awt.Component.show (Component.java: 1563)
    at java.awt.Component.setVisible (Component.java: 1515)
    at java.awt.Window.setVisible (Window.java: 842)
    at java.awt.Dialog.setVisible (Dialog.java: 986)
    at com.sunopsis.graphical.dialog.SnpsAbstractDialog.setVisible (SnpsAbstractDialog.java: 299)
    at oracle.odi.ui.OdiConnectController.handleEvent (OdiConnectController.java: 114)
    at oracle.ide.controller.IdeAction.performAction (IdeAction.java: 529)
    at oracle.ide.controller.IdeAction.actionPerformedImpl (IdeAction.java: 884)
    at oracle.ide.controller.IdeAction.actionPerformed (IdeAction.java: 501)
    oracle.odi.ui.docking.AbstractOdiDockableWindow at $ 1.actionPerformed (AbstractOdiDockableWindow.java: 203)
    at javax.swing.AbstractButton.fireActionPerformed (AbstractButton.java: 1995)
    javax.swing.AbstractButton at $ Handler.actionPerformed (AbstractButton.java: 2318)
    at javax.swing.DefaultButtonModel.fireActionPerformed (DefaultButtonModel.java: 387)
    at javax.swing.DefaultButtonModel.setPressed (DefaultButtonModel.java: 242)
    at javax.swing.plaf.basic.BasicButtonListener.mouseReleased (BasicButtonListener.java: 236)
    at java.awt.AWTEventMulticaster.mouseReleased (AWTEventMulticaster.java: 272)
    at java.awt.Component.processMouseEvent (Component.java: 6267)
    at javax.swing.JComponent.processMouseEvent (JComponent.java: 3267)
    at java.awt.Component.processEvent (Component.java: 6032)
    at java.awt.Container.processEvent (Container.java: 2041)
    at java.awt.Component.dispatchEventImpl (Component.java: 4630)
    at java.awt.Container.dispatchEventImpl (Container.java: 2099)
    at java.awt.Component.dispatchEvent (Component.java: 4460)
    at java.awt.LightweightDispatcher.retargetMouseEvent (Container.java: 4577)
    at java.awt.LightweightDispatcher.processMouseEvent (Container.java: 4238)
    at java.awt.LightweightDispatcher.dispatchEvent (Container.java: 4168)
    at java.awt.Container.dispatchEventImpl (Container.java: 2085)
    at java.awt.Window.dispatchEventImpl (Window.java: 2478)
    at java.awt.Component.dispatchEvent (Component.java: 4460)
    at java.awt.EventQueue.dispatchEvent (EventQueue.java: 599)
    at java.awt.EventDispatchThread.pumpOneEventForFilters (EventDispatchThread.java: 269)
    at java.awt.EventDispatchThread.pumpEventsForFilter (EventDispatchThread.java: 184)
    at java.awt.EventDispatchThread.pumpEventsForHierarchy (EventDispatchThread.java: 174)
    at java.awt.EventDispatchThread.pumpEvents (EventDispatchThread.java: 169)
    at java.awt.EventDispatchThread.pumpEvents (EventDispatchThread.java: 161)
    at java.awt.EventDispatchThread.run (EventDispatchThread.java: 122)
    Caused by: org.springframework.jdbc.CannotGetJdbcConnectionException: Could not get JDBC Connection; nested exception is java.sql.SQLException: Exception while getting connection: oracle.ucp.UniversalConnectionPoolException: Unable to get Connection from Data Source
    at org.springframework.jdbc.datasource.DataSourceUtils.getConnection (DataSourceUtils.java: 82)
    at org.springframework.jdbc.core.JdbcTemplate.execute (JdbcTemplate.java: 524)
    at org.springframework.jdbc.core.JdbcTemplate.query (JdbcTemplate.java: 588)
    at org.springframework.jdbc.core.JdbcTemplate.query (JdbcTemplate.java: 613)
    at org.springframework.jdbc.core.JdbcTemplate.query (JdbcTemplate.java: 645)
    at org.springframework.jdbc.object.SqlQuery.execute (SqlQuery.java: 111)
    at org.springframework.jdbc.object.SqlQuery.execute (SqlQuery.java: 121)
    at org.springframework.jdbc.object.SqlQuery.execute (SqlQuery.java: 136)
    oracle.odi.core.repository.support.RepositoryUtils at $ RepositoryInfoSource.loadRepositoryInfo (RepositoryUtils.java: 179)
    at oracle.odi.core.repository.support.RepositoryUtils.loadMasterRepositoryInfo (RepositoryUtils.java: 373)
    at oracle.odi.core.repository.Repository.getMasterRepository (Repository.java: 72)
    ... 113 more
    Caused by: java.sql.SQLException: Exception while getting connection: oracle.ucp.UniversalConnectionPoolException: Unable to get Connection from Data Source
    at oracle.odi.jdbc.datasource.LoginTimeoutDatasourceAdapter.doGetConnection (LoginTimeoutDatasourceAdapter.java: 133)
    at oracle.odi.jdbc.datasource.LoginTimeoutDatasourceAdapter.getConnection (LoginTimeoutDatasourceAdapter.java: 62)
    at org.springframework.jdbc.datasource.DataSourceUtils.doGetConnection (DataSourceUtils.java: 113)
    at org.springframework.jdbc.datasource.DataSourceUtils.getConnection (DataSourceUtils.java: 79)
    ... 123 more
    Caused by: java.sql.SQLException: Exception while getting connection: oracle.ucp.UniversalConnectionPoolException: Unable to get Connection from Data Source
    at oracle.ucp.util.UCPErrorHandler.newSQLException (UCPErrorHandler.java: 541)
    at oracle.ucp.jdbc.PoolDataSourceImpl.throwSQLException (PoolDataSourceImpl.java: 587)
    at oracle.ucp.jdbc.PoolDataSourceImpl.getConnection (PoolDataSourceImpl.java: 668)
    at oracle.ucp.jdbc.PoolDataSourceImpl.getConnection (PoolDataSourceImpl.java: 613)
    at oracle.ucp.jdbc.PoolDataSourceImpl.getConnection (PoolDataSourceImpl.java: 607)
    at sun.reflect.NativeMethodAccessorImpl.invoke0 (Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke (NativeMethodAccessorImpl.java: 39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke (DelegatingMethodAccessorImpl.java: 25)
    at java.lang.reflect.Method.invoke (Method.java: 597)
    oracle.odi.core.datasource.support.RuntimeClassLoaderDataSourceCreator at $ DataSourceInvocationHandler.invoke (RuntimeClassLoaderDataSourceCreator.java: 41)
    Proxy0.getConnection at $ (Unknown Source)
    oracle.odi.jdbc.datasource.LoginTimeoutDatasourceAdapter at $ ConnectionProcessor.run (LoginTimeoutDatasourceAdapter.java: 217)
    java.util.concurrent.Executors at $ RunnableAdapter.call (Executors.java: 441)
    java.util.concurrent.FutureTask at $ Sync.innerRun (FutureTask.java: 303)
    at java.util.concurrent.FutureTask.run (FutureTask.java: 138)
    at java.util.concurrent.ThreadPoolExecutor $ Worker.runTask (ThreadPoolExecutor.java: 886)
    at java.util.concurrent.ThreadPoolExecutor $ Worker.run (ThreadPoolExecutor.java: 908)
    at java.lang.Thread.run (Thread.java: 662)
    Caused by: oracle.ucp.UniversalConnectionPoolException: Unable to get Connection from Data Source
    at oracle.ucp.util.UCPErrorHandler.newUniversalConnectionPoolException (UCPErrorHandler.java: 421)
    at oracle.ucp.util.UCPErrorHandler.newUniversalConnectionPoolException (UCPErrorHandler.java: 389)
    at oracle.ucp.jdbc.DriverConnectionFactoryAdapter.createConnection (DriverConnectionFactoryAdapter.java: 133)
    oracle.ucp.common.UniversalConnectionPoolImpl at $ UniversalConnectionPoolInternal.createOnePooledConnectionInternal (UniversalConnectionPoolImpl.java: 1570)
    $ UniversalConnectionPoolInternal.access oracle.ucp.common.UniversalConnectionPoolImpl at $ 600 (UniversalConnectionPoolImpl.java: 1378)
    at oracle.ucp.common.UniversalConnectionPoolImpl.createOnePooledConnection (UniversalConnectionPoolImpl.java: 445)
    at oracle.ucp.common.UniversalConnectionPoolImpl.borrowConnectionWithoutCountingRequests (UniversalConnectionPoolImpl.java: 302)
    at oracle.ucp.common.UniversalConnectionPoolImpl.borrowConnection (UniversalConnectionPoolImpl.java: 129)
    at oracle.ucp.jdbc.JDBCConnectionPool.borrowConnection (JDBCConnectionPool.java: 119)
    at oracle.ucp.jdbc.PoolDataSourceImpl.getConnection (PoolDataSourceImpl.java: 655)
    ... 15 more
    Caused by: java.sql.SQLException: ORA-01017: password / username invalid; log-on denied
    at oracle.jdbc.driver.SQLStateMapping.newSQLException (SQLStateMapping.java: 70)
    at oracle.jdbc.driver.DatabaseError.newSQLException (DatabaseError.java: 133)
    at oracle.jdbc.driver.DatabaseError.throwSqlException (DatabaseError.java: 206)
    at oracle.jdbc.driver.T4CTTIoer.processError (T4CTTIoer.java: 455)
    at oracle.jdbc.driver.T4CTTIoer.processError (T4CTTIoer.java: 406)
    at oracle.jdbc.driver.T4CTTIoer.processError (T4CTTIoer.java: 399)
    at oracle.jdbc.driver.T4CTTIoauthenticate.receiveOauth (T4CTTIoauthenticate.java: 799)
    at oracle.jdbc.driver.T4CConnection.logon (T4CConnection.java: 368)
    at oracle.jdbc.driver.PhysicalConnection. <init> (PhysicalConnection.java: 508)
    at oracle.jdbc.driver.T4CConnection. <init> (T4CConnection.java: 203)
    at oracle.jdbc.driver.T4CDriverExtension.getConnection (T4CDriverExtension.java: 33)
    at oracle.jdbc.driver.OracleDriver.connect (OracleDriver.java: 510)
    at oracle.ucp.jdbc.DriverConnectionFactoryAdapter.createConnection (DriverConnectionFactoryAdapter.java: 129)
    ... 22 more
    ==
    >
    I think the problem is in jdbc
    but exhausted my ideas on how to fix
    this
    where:
    ODI already reinstalled 11
    checked path in SO (JAVA_HOME, ODI_JAVA_HOME am using C: \ Program Files \ Java \ bin \ jdk1.6.0_23)
    ORACLE_CLASSES am using C: \ oracle \ product \ 10.2.0 \ client_1 \ jdbc \ lib \ ojdbc14.jar
    and
    ORACLE_HOME is using C: \ oracle \ product \ 10.2.0 \ client_1
    My OS is windows vista business (the client machine odi11)
    connecting to the database oracle11
    have any suggestions for a procedure, something that did not, forgot or did not even know.
    Thank you.

    Hi Ankit Jain
    yes it's the second option,
    exactly the error occurs when I click the icon to select the repository of work - work_dev
    then this exception is generated
    =
    I select for the field
    Drivers List -
    the value >> Oracle JDBC Driver
    and then is placed in the Driver Name field
    value>> oracle.jdbc.OracleDriver
    and after I put a URL
    jdbc: oracle: thin: @ (DESCRIPTION = (ADDRESS = (PROTOCOL = TCP) (HOST = sss.rrr3.ttttj.ggg.br) (PORT = 1521)) (CONNECT_DATA = (SERVER = DEDICATED) (SERVICE_NAME = RRR3) ))
    It should say
    that
    This is occurring on a machine, but others the same configuration is working
    I think it's something of the environment on this machine,
    but no longer know what to test
    grateful for your attention.

Maybe you are looking for

  • Mapviewer view zoomed out within BI report

    Hello, I'm trying to troubleshoot an issue with a mapviewer map within a BI report showing the map zoomed way out. This map is a FL state map with the cities within the states marked. The geometry theme "FL_CITIES" preview fine on the MapBuilder.jar

  • How do I install Mountain Lion on a thumb drive?

    How do I install Mountain Lion on a thumb drive when my computer is running Mavericks? I downloaded the Mountain Lion installer, but when I attempt to run it I get a message that says "You cannot install OS X 10.8 on this computer." I don't want to i

  • Websites are redirected to not what i clicked on.

    At least half the time when I click on a bookmark or on a link in facebook or any web page , i get redirected to a totally different web page then what I was seeking. I have searched for help with this but can't find an answer. I scanned for malware,

  • Help on Approvers and Appoval rights

    Kindly help me on how approvers and approval rights are configured in Oracle E biz. For example I need to find to find out whether a Purchase order or Purchase order had been rightly approved by the correct approver or not. Pease five me the back end

  • Wlc 4404 upgrade software version

    I have two wireless controllers ( software version 5.1.151.0 ) . Is this vesion supports AP 1142 N   . also what is the required  version to support AP 1142 N . If the controllers upgraded to new version , will it affect the APs license for existing