Error testing connection pools

Hi,
I've just started working on the Avitek Tutorials.
Encountered the following error message when testing the connection pools for
both the XA and non-XA connections.
Warning! Connectivity to backend database not verified. This is either because
required connection pool attributes "TestConnectionsOnReserve" or "TestConnectionsOnRelease"
have not been enabled, or an invalid value has been specified for attribute "TestTableName".
Please check the server log for more details..
Any ideas what might be wrong?
Thanks!

Have figured this out. Need to set the "Test Connections" settings under Configurations
(Advanced Options) for the Connection Pool.
Thanks for your help :)
Joe Weinstein <[email protected]> wrote:
Everbright wrote:
Hi,
I've just started working on the Avitek Tutorials.
Encountered the following error message when testing the connectionpools for
both the XA and non-XA connections.
Warning! Connectivity to backend database not verified. This is eitherbecause
required connection pool attributes "TestConnectionsOnReserve" or "TestConnectionsOnRelease"
have not been enabled, or an invalid value has been specified for attribute"TestTableName".
Please check the server log for more details..
Any ideas what might be wrong?It is likely that some part of the information you specified about how
to connect to
your database was incorrect, so weblogic was unable to make a pool of
connections.
We will know more if you show us the server log file, which will contain
messages
about any errors it suffered during startup...
Joe
Thanks!

Similar Messages

  • Urgent please - Error Testing connection pool

    I have a connection pool and datasource working fine, but when I click at the testing hyperlink on the weblogic console/jdbc/testing, the following message apear at the Unix console.
    Caused by: javax.management.MalformedObjectNameException: bad object name,property Location has multiple values in Name=hom59DataSource,Type=ApplicationRuntime,Location=cbdHom,ServerRuntime=cbdHom,Loc
    ation=cbdHom,Type=JDBCDataSourceRuntime
    at java.lang.Throwable.<init>(Throwable.java:57)
    at java.lang.Throwable.<init>(Throwable.java:68)
    at weblogic.management.WebLogicObjectName.extractProperties(WebLogicObjectName.java:571)
    at weblogic.management.WebLogicObjectName.<init>(WebLogicObjectName.java:326)
    at weblogic.management.WebLogicObjectName.setParentFromObjectName(WebLogicObjectName.java:934)
    at weblogic.management.WebLogicObjectName.populate(WebLogicObjectName.java:851)
    at weblogic.management.WebLogicObjectName.<init>(WebLogicObjectName.java:328)
    at weblogic.management.WebLogicObjectName.<init>(WebLogicObjectName.java:822)
    at weblogic.management.jmx.MBeanServerInvocationHandler.getWebLogicObjectName(MBeanServerInvocationHandler.java:80)
    Somebody please could help me?
    Message was edited by:
    Denimar

    Have figured this out. Need to set the "Test Connections" settings under Configurations
    (Advanced Options) for the Connection Pool.
    Thanks for your help :)
    Joe Weinstein <[email protected]> wrote:
    Everbright wrote:
    Hi,
    I've just started working on the Avitek Tutorials.
    Encountered the following error message when testing the connectionpools for
    both the XA and non-XA connections.
    Warning! Connectivity to backend database not verified. This is eitherbecause
    required connection pool attributes "TestConnectionsOnReserve" or "TestConnectionsOnRelease"
    have not been enabled, or an invalid value has been specified for attribute"TestTableName".
    Please check the server log for more details..
    Any ideas what might be wrong?It is likely that some part of the information you specified about how
    to connect to
    your database was incorrect, so weblogic was unable to make a pool of
    connections.
    We will know more if you show us the server log file, which will contain
    messages
    about any errors it suffered during startup...
    Joe
    Thanks!

  • Test Connection Pooling

    i have writen a DBTester.java to test connection pooling.
    when i run my program , every time it open a new connection ?
    please help me where i did mistake ?
    package db;
    import oracle.jdbc.pool.OracleConnectionPoolDataSource;
    * @author Jayaraj
    public class DBTester {
         private static void test() throws Exception {
              OracleConnectionPoolDataSource ocpds = new OracleConnectionPoolDataSource();
              ocpds.setURL("jdbc:oracle:thin:@127.0.0.1:1521:db1");
              ocpds.setUser("root");
              ocpds.setPassword("root");
              for (int i = 0; i < 100; i++) {
                   new RequestThread(i, ocpds).start();
         public static void main(String[] args) throws Exception {
              test();
    package db;
    import java.sql.Connection;
    import java.sql.SQLException;
    import javax.sql.PooledConnection;
    import oracle.jdbc.pool.OracleConnectionPoolDataSource;
    * @author Jayaraj
    public class RequestThread extends Thread implements Runnable {
         private OracleConnectionPoolDataSource datasource = null;
         private int rid = 0;
         public RequestThread(int rid, OracleConnectionPoolDataSource datasource) {
              this.datasource = datasource;
              this.rid = rid;     
         public void run() {
              try {               
                   PooledConnection pc = datasource.getPooledConnection();
                   Connection conn = pc.getConnection();
                   System.out.println(" Request ID :" + rid + " Connection : " + conn);
                   conn.close();
              } catch (SQLException e) {
                   e.printStackTrace();
    }

    I have tested few properties . this will be helpfull
    thanks for all ur reply
    package db.test;
    import java.sql.Connection;
    import java.sql.SQLException;
    import java.util.Properties;
    import org.apache.commons.dbcp.DelegatingCallableStatement;
    import oracle.jdbc.driver.OracleCallableStatement;
    import oracle.jdbc.driver.OracleResultSet;
    import oracle.jdbc.driver.OracleTypes;
    import oracle.jdbc.pool.OracleConnectionCacheManager;
    import oracle.jdbc.pool.OracleDataSource;
    * @author Jayaraj
    public class DBTester {
         public static void main(String[] args) throws Exception {
              OracleDataSource datasource = new OracleDataSource();
              datasource.setDataSourceName("oracle.jdbc.pool.OracleDataSource");
              datasource.setURL("jdbc:oracle:thin:@10.187.53.10:1521:TEST");
              datasource.setUser("wnr");
              datasource.setPassword("wnr");
              //enable the cache
              datasource.setConnectionCachingEnabled(true);
              Properties cacheProperties = new Properties();
              cacheProperties.setProperty("MinLimit", "2");                                                                      
              cacheProperties.setProperty("MaxLimit", "5");                                                                      
              cacheProperties.setProperty("InitialLimit", "3");
              //cacheProperties.setProperty("MaxStatementsLimit", "1");                                                                 
              cacheProperties.setProperty("InactivityTimeout", "10");
              //cacheProperties.setProperty("TimeToLiveTimeout", "");          
              cacheProperties.setProperty("AbandonedConnectionTimeout", "1");
              //cacheProperties.setProperty("ConnectionWaitTimeout", "");               
              //cacheProperties.setProperty("PropertyCheckInterval", "");
              //cacheProperties.setProperty("ValidateConnection", "");
              //cacheProperties.setProperty("ClosestConnectionMatch", "");
              //cacheProperties.setProperty("AttributeWeights", "");
              //cacheProperties.setProperty("LowerThresholdLimit", "");     
              datasource.setConnectionCacheProperties(cacheProperties);     
              System.out.println("testing initial limit");
              testInitialLimit(datasource);
              System.out.println("testing max limit");
              testMaxLimit(datasource);
         private static void testMaxLimit(OracleDataSource datasource) throws SQLException {
              String max = (String)datasource.getConnectionCacheProperties().get("MaxLimit");
              int maxi = Integer.parseInt(max);
              for (int i = 0; i < maxi ; i++) {
                   //new TestThread(i,datasource).start();
                   Connection conn =datasource.getConnection();
                   System.out.println(i);
              System.out.println("waiting for existing to close....");
              Connection conn =datasource.getConnection();
              System.out.println("maximum connection reached.."+conn);
         static void showDetails() throws SQLException{
              OracleConnectionCacheManager sConnectionCacheMananger = OracleConnectionCacheManager.getConnectionCacheManagerInstance();
              String string[] = sConnectionCacheMananger.getCacheNameList();
              for (int i = 0; i < string.length; i++) {
                   //System.out.println(string);
                   System.out.println("AvailableConnections : "+sConnectionCacheMananger.getNumberOfAvailableConnections(string[i]));
                   System.out.println("ActiveConnections : "+sConnectionCacheMananger.getNumberOfActiveConnections(string[i]));
         private static void testInitialLimit(OracleDataSource datasource ) throws SQLException {          
              Connection conn =datasource.getConnection();
              showDetails();     
              conn.close();

  • Error creating connection pool in j2ee 1.4

    i want to create a connection pool in j2ee 1.4 but it is giving an error " sun.jdbc.odbc.JdbcOdbcDriver"
    the driver class i enter is sun.jdbc.odbc.JdbcOdbcDriver
    please tell me the possible error

    now, i have installed j2ee 1.5 bundled version. Now i have tried the same thing. nut it is giving an error "sun.jdbc.odbc.JdbcOdbcDriver canot be cast to javax.sql.XADataSource".
    Now, i have downloaded Microsoft jdbc Driver for SQL Server 2000 and set the classpath for those three files that comes under the lib folder. Then i used "com.microsoft.jdbcx.sqlserver.SQLServerDataSource" class, then another error comes "Class not found or classpath is not set for "com.microsoft.jdbcx.sqlserver.SQLServerDataSource" class.
    however, this class file is packed in one of those three jar files for which i have set the classpath.
    PLEASE HELP

  • Error Creating Connection Pool for Microsoft SQL Server

    I am trying to create a connection pool that connects to a MS SQl Server but it keeps giving me an error
    Unable to create : com.microsoft.sqlserver.jdbc.SQLServerDriver
    Missing class: com.microsoft.sqlserver.jdbc.SQLServerDriver Dependent class: oracle.oc4j.sql.config.DataSourceConfigUtils Loader: oc4j:10.1.3 Code-Source: /D:/jdevstudiobase1013/j2ee/home/lib/oc4j-internal.jar Configuration: in META-INF/boot.xml in D:\jdevstudiobase1013\j2ee\home\oc4j.jar This load was initiated at system.root:0.0.0 using the Class.forName() method. The missing class is not available from any code-source or loader in the system.
    I have added the Microsoft Jar to the D:/jdevstudiobase1013/j2ee/home/lib/ and also to D:/jdevstudiobase1013/j2ee/home/. Please any suggestion would be welcome

    I am trying to create a connection pool that connects to a MS SQl Server but it keeps giving me an error
    Unable to create : com.microsoft.sqlserver.jdbc.SQLServerDriver
    Missing class: com.microsoft.sqlserver.jdbc.SQLServerDriver Dependent class: oracle.oc4j.sql.config.DataSourceConfigUtils Loader: oc4j:10.1.3 Code-Source: /D:/jdevstudiobase1013/j2ee/home/lib/oc4j-internal.jar Configuration: in META-INF/boot.xml in D:\jdevstudiobase1013\j2ee\home\oc4j.jar This load was initiated at system.root:0.0.0 using the Class.forName() method. The missing class is not available from any code-source or loader in the system.
    I have added the Microsoft Jar to the D:/jdevstudiobase1013/j2ee/home/lib/ and also to D:/jdevstudiobase1013/j2ee/home/. Please any suggestion would be welcome

  • Sbo common error - test connection

    Hello, Im trying to connect the B1DI in SBO common, but I can't:
    This error appears:
    XCE001 Nested exception: java.rmi.RemoteException: com.sap.b1i.xcellerator.XcelleratorException: XCE001 Nested exception: java.net.MalformedURLException: invalid authority: rmi://license_server_name:2099/DiaAdapterProxy_XXX
    If I write the IP address, is another error: -8012... I checked the note "Troubleshooting on B1ic Version 8.81" but the patch level are correct...
    Can somebody help me??
    Thank you!
    Sorry for my english!!
    Paulina

    Hi Paulina,
    You cannot successfully connect to SBO-Common via the B1DI test connection since its actually not like a normal Business One database. Therefore you should only test connections to normal B1 databases. If they do not exists in the SLD then you can create one.
    Cheers,
    Lisa

  • Error During Connection Pool Reserve Test

    When using Oracle 9 XA Thin JDBC driver on WLS 6.1sp3, I receive the following
    error when a reserved connection is tested. Any ideas?
    Thanks,
    -jb
    <Jul 31, 2002 9:03:26 PM PDT> <Info> <JDBC Pool test> <A connection from pool
    dsn
    was tested during reserve with a select count(*) from TEST_SCHEMA.TEST_TABLE
    an
    d failed:
    >
    <Jul 31, 2002 9:03:26 PM PDT> <Info> <JDBC Pool test> <javax.transaction.xa.XAExc
    eption
    at oracle.jdbc.xa.OracleXAResource.disallowLocalTxnMode(OracleXAResource
    .java:1045)
    at oracle.jdbc.xa.client.OracleXAResource.start(OracleXAResource.java:15
    3)
    at weblogic.jdbc.jta.VendorXAResource.start(VendorXAResource.java:41)
    at weblogic.jdbc.common.internal.ConnectionEnv.test(ConnectionEnv.java:9
    61)
    at weblogic.common.internal.ResourceAllocator.reserve(ResourceAllocator.
    java:465)
    at weblogic.common.internal.ResourceAllocator.reserve(ResourceAllocator.
    java:400)
    at weblogic.common.internal.ResourceAllocator.reserveWaitSecs(ResourceAl
    locator.java:390)
    at weblogic.jdbc.common.internal.ConnectionPool.reserve(ConnectionPool.j
    ava:163)
    at weblogic.jdbc.common.internal.ConnectionPool.reserveWaitSecs(Connecti
    onPool.java:117)
    at weblogic.jdbc.jta.DataSource.getXAConnectionFromPool(DataSource.java:
    1136)
    at weblogic.jdbc.jta.DataSource.prepare(DataSource.java:696)
    at weblogic.transaction.internal.ServerResourceInfo.prepare(ServerResour
    ceInfo.java:1178)
    at weblogic.transaction.internal.ServerResourceInfo.prepare(ServerResour
    ceInfo.java:422)
    at weblogic.transaction.internal.ServerSCInfo.startPrepare(ServerSCInfo.
    java:186)
    at weblogic.transaction.internal.ServerTransactionImpl.localPrepare(Serv
    erTransactionImpl.java:1832)
    at weblogic.transaction.internal.ServerTransactionImpl.globalPrepare(Ser
    verTransactionImpl.java:1606)
    at weblogic.transaction.internal.ServerTransactionImpl.internalCommit(Se
    rverTransactionImpl.java:217)
    at weblogic.transaction.internal.ServerTransactionImpl.commit(ServerTran
    sactionImpl.java:189)
    at weblogic.ejb20.internal.MDListener.execute(MDListener.java:278)
    at weblogic.ejb20.internal.MDListener.onMessage(MDListener.java:214)
    at weblogic.jms.client.JMSSession.onMessage(JMSSession.java:1865)
    at weblogic.jms.client.JMSSession.execute(JMSSession.java:1819)
    at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:139)
    at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:120)
    >

    Hi Jeff,
    Do you see any oracle XA trace files, they are normally created in the
    folder from where you start WLS and have a trc extension. Can you post that
    file here so we may see the real problem that is normally logged in that
    file.
    sree
    "Jeff Brown" <[email protected]> wrote in message
    news:[email protected]...
    >
    When using Oracle 9 XA Thin JDBC driver on WLS 6.1sp3, I receive thefollowing
    error when a reserved connection is tested. Any ideas?
    Thanks,
    -jb
    <Jul 31, 2002 9:03:26 PM PDT> <Info> <JDBC Pool test> <A connection frompool
    dsn
    was tested during reserve with a select count(*) fromTEST_SCHEMA.TEST_TABLE
    an
    d failed:
    >
    <Jul 31, 2002 9:03:26 PM PDT> <Info> <JDBC Pool test><javax.transaction.xa.XAExc
    eption
    atoracle.jdbc.xa.OracleXAResource.disallowLocalTxnMode(OracleXAResource
    java:1045)
    atoracle.jdbc.xa.client.OracleXAResource.start(OracleXAResource.java:15
    3)
    atweblogic.jdbc.jta.VendorXAResource.start(VendorXAResource.java:41)
    atweblogic.jdbc.common.internal.ConnectionEnv.test(ConnectionEnv.java:9
    61)
    atweblogic.common.internal.ResourceAllocator.reserve(ResourceAllocator.
    java:465)
    atweblogic.common.internal.ResourceAllocator.reserve(ResourceAllocator.
    java:400)
    atweblogic.common.internal.ResourceAllocator.reserveWaitSecs(ResourceAl
    locator.java:390)
    atweblogic.jdbc.common.internal.ConnectionPool.reserve(ConnectionPool.j
    ava:163)
    atweblogic.jdbc.common.internal.ConnectionPool.reserveWaitSecs(Connecti
    onPool.java:117)
    atweblogic.jdbc.jta.DataSource.getXAConnectionFromPool(DataSource.java:
    1136)
    at weblogic.jdbc.jta.DataSource.prepare(DataSource.java:696)
    atweblogic.transaction.internal.ServerResourceInfo.prepare(ServerResour
    ceInfo.java:1178)
    atweblogic.transaction.internal.ServerResourceInfo.prepare(ServerResour
    ceInfo.java:422)
    atweblogic.transaction.internal.ServerSCInfo.startPrepare(ServerSCInfo.
    java:186)
    atweblogic.transaction.internal.ServerTransactionImpl.localPrepare(Serv
    erTransactionImpl.java:1832)
    atweblogic.transaction.internal.ServerTransactionImpl.globalPrepare(Ser
    verTransactionImpl.java:1606)
    atweblogic.transaction.internal.ServerTransactionImpl.internalCommit(Se
    rverTransactionImpl.java:217)
    atweblogic.transaction.internal.ServerTransactionImpl.commit(ServerTran
    sactionImpl.java:189)
    at weblogic.ejb20.internal.MDListener.execute(MDListener.java:278)
    atweblogic.ejb20.internal.MDListener.onMessage(MDListener.java:214)
    at weblogic.jms.client.JMSSession.onMessage(JMSSession.java:1865)
    at weblogic.jms.client.JMSSession.execute(JMSSession.java:1819)
    at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:139)
    at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:120)
    >

  • Error creating connection pool for WLS6.1 for DB2 connect

    Hi,
    We have installed licensed copy of Weblogic 6.1 Applciation server on HPUX 11.0.
    Our backend system is DB2 on Mainframe (S/390). We have installed DB2Connect
    JDBC driver ver 7.1 on HPUX. While creating pool throught weblogic console with
    following parameters:
    Name: DB2Pool
    URL:jdbc:db2:INFOSYSG
    Driver Classname: COM.ibm.db2.jdbc.app.DB2Driver
    Properties:
    user=jargon
    password=jargon
    Then appropriate Target was selected.
    When server was started following error was recevied on console:
    "CLI0647E Error allocating DB2 environment handle, rc=db2jdbc"
    Any pointers to the solution are welcome.
    Regards,
    Punam Chordia
    Infosys Technologies Ltd, Pune
    Phone: 91-20-2932000 Ext. 5650
    Fax: 91-20-2932832

    Hi,
    thank you for your answer, but i already fixed my problem.
    i simply put the profile-script of the db2-instance into the start script of the
    weblogic server.
    i didn´t really figure out so far which variable was missing, but now it works.
    unfortunately i found that this driver supports only 2 connections at the same
    time when using jdk 1.3.0 :-(.
    Regards,
    Andreas Koch
    Netfidelity Consulting GmbH
    tel +49 211 6012330
    fax +49 211 6012320
    mail [email protected]
    Joseph Weinstein <[email protected]> wrote:
    If you can connect to DB2 on your own, using their
    driver and their JDBC examples, then show me the code
    that works, and show me the classpath and OS environment
    you're running in, and I'll show you what should be
    done for the server.
    Andreas Koch wrote:
    Hi,
    unfortunately i have the same problem and found no solution so far.
    you may check my start-script, but in my eyes all db/2 stuff shouldbe
    found.
    thanks for urgent help
    Andreas Koch
    NetFidelity Consulting Gmbh
    [email protected]
    "Slava Imeshev" <[email protected]> schrieb im Newsbeitrag
    news:[email protected]...
    Hi Punam,
    You need to make sure that all driver's native libraries are
    available to the Weblogic. Check if SQLLIB\bin is on the path
    and let us know if it helps.
    Regards,
    Slava Imeshev
    "Punam" <[email protected]> wrote in message
    news:[email protected]...
    Hi,
    We have installed licensed copy of Weblogic 6.1 Applciation server
    on
    HPUX
    11.0.
    Our backend system is DB2 on Mainframe (S/390). We have installedDB2Connect
    JDBC driver ver 7.1 on HPUX. While creating pool throught weblogic
    console
    with
    following parameters:
    Name: DB2Pool
    URL:jdbc:db2:INFOSYSG
    Driver Classname: COM.ibm.db2.jdbc.app.DB2Driver
    Properties:
    user=jargon
    password=jargon
    Then appropriate Target was selected.
    When server was started following error was recevied on console:
    "CLI0647E Error allocating DB2 environment handle, rc=db2jdbc"
    Any pointers to the solution are welcome.
    Regards,
    Punam Chordia
    Infosys Technologies Ltd, Pune
    Phone: 91-20-2932000 Ext. 5650
    Fax: 91-20-2932832
    Name: startWebLogic.sh
    startWebLogic.sh Type: Kornshell Script File (application/x-unknown-content-type-mks_shell)
    Encoding: x-uuencode

  • ERROR TEST CONNECTION B1DI

    HI friends,
    My case is the following:
    I have to implement Cockpit, i've installed Java 5.0_22, Integration Service, Di Api, EventSender all it's OK, but I tested from Integration Framework show the next error:
    com.sap.b1i.adapter.dia.exception.ConnectionFailedException: Connect to Business One failed.
    (-129) Connection with license server failed
    {b1Server=SERVIDOR, company=SBO_CPB, licenseServer=SERVIDOR:30000, dbType=6, dbUser=sa, userName=B1i}
    The test JDBC it's OK
    Thanks for yours help!
    Christian

    Maria Trinidad:
    Thanks I already actived 3 dashboard but if I could modify this? or create other.. dashboard
    Other question...
    I have my Ipad, now the cockpit works fine and i have configure all, do you have somethings tips for SAP BO work in the ipad?
    In the Settings for my Ipad Sap 1.2 i have:   <IP>:8080   UserCode: Manager    PhoneNum: 123456  (the same configured in SAP)
    Thanks

  • Error when clustering a Connection pool

              We are testing the cluster feature of WebLogic 6.0 Sp2 on MS Win2K Pro and have
              run into a problem trying to cluster the petstoreServer in the Petstore domain
              to a remote machine. I cannot get the Connection pool, called "petstorePool",
              to load on the remote managed server. This is preventing the database from working
              properly on the remote managed server. What can I do to enable the Connection
              Pool to load properly? Below is the boot-up window for the remote managed server.
              Starting Cluster Service ....
              <Jul 13, 2001 8:19:40 AM CDT> <Error> <JDBC Connection Pool> <Cannot startup con
              nection pool "petstorePool" Cannot load driver class: COM.cloudscape.core.JDBCDr
              iver>
              <Jul 13, 2001 8:19:43 AM CDT> <Critical> <WebLogicServer> <Failed to invoke star
              tup class "StartBrowser", java.lang.ClassNotFoundException: com.bea.estore.start
              up.StartBrowser>
              <Jul 13, 2001 8:19:43 AM CDT> <Notice> <WebLogicServer> <ListenThread listening
              on port 7007, ip address 10.10.10.61>
              <Jul 13, 2001 8:19:43 AM CDT> <Notice> <WebLogicServer> <SSLListenThread listeni
              ng on port 7008, ip address 10.10.10.61>
              <Jul 13, 2001 8:19:43 AM CDT> <Notice> <WebLogicServer> <WebLogic Server started
              >
              

    could you post your managed server's start script?
              Make sure Cloudscape's libs are in the classpath.
              Andy Levy wrote:
              > We are testing the cluster feature of WebLogic 6.0 Sp2 on MS Win2K Pro and have
              > run into a problem trying to cluster the petstoreServer in the Petstore domain
              > to a remote machine. I cannot get the Connection pool, called "petstorePool",
              > to load on the remote managed server. This is preventing the database from working
              > properly on the remote managed server. What can I do to enable the Connection
              > Pool to load properly? Below is the boot-up window for the remote managed server.
              >
              > Starting Cluster Service ....
              > <Jul 13, 2001 8:19:40 AM CDT> <Error> <JDBC Connection Pool> <Cannot startup con
              > nection pool "petstorePool" Cannot load driver class: COM.cloudscape.core.JDBCDr
              > iver>
              > <Jul 13, 2001 8:19:43 AM CDT> <Critical> <WebLogicServer> <Failed to invoke star
              > tup class "StartBrowser", java.lang.ClassNotFoundException: com.bea.estore.start
              > up.StartBrowser>
              > <Jul 13, 2001 8:19:43 AM CDT> <Notice> <WebLogicServer> <ListenThread listening
              > on port 7007, ip address 10.10.10.61>
              > <Jul 13, 2001 8:19:43 AM CDT> <Notice> <WebLogicServer> <SSLListenThread listeni
              > ng on port 7008, ip address 10.10.10.61>
              > <Jul 13, 2001 8:19:43 AM CDT> <Notice> <WebLogicServer> <WebLogic Server started
              > >
              

  • Error when creating Pool Connection

    "Hi,
    I have reviewed a lot of postings for this type of error and nothing mentioned in replies have helped me to get over this issue.
    I am trying to create a pool via the admin console in WL6.0sp1. Using Oracle Thin driver. The config information is as follows:
    Name: MydbPool
    url: jdbc:oracle:thin@pavilion:1521:star
    driver classname: oracle.jdbc.driver.OracleDriver
    Properties: user=bentley; password=flyaway
    Initial Capacity: 1
    Max Capacity: 2
    When I startup WL, I get the following error message:
    <Nov 28, 2001 1:36:21 AM EST> <Error> <JDBC Connection Pool> <Cannot startup con
    nection pool "MerlinJdbcPool" weblogic.common.ResourceException:
    Could not create pool connection. The DBMS driver exception was:
    java.sql.SQLException: Invalid Oracle URL specified: OracleDriver.connect
    My PATH is defined as:
    PATH=F:\oracle\ora81\lib;f:\oracle\ora81\jdbc\lib;f:\jdk1.3.1_01\bin;F:\oracle\o
    ra81\bin;f:\Program Files\Oracle\jre\1.1.7\bin;D:\WINNT\system32;D:\WINNT;D:\WIN
    NT\System32\Wbem;f:\Program Files\Symantec\pcAnywhere\;F:\PROGRA~1\SYMANTEC\PCAN
    YW~1\;C:\WINDOWS;C:\WINDOWS\COMMAND
    And my CLASSPATH is defined as:
    classpath=f:\bea2\wlserver6.0sp1\lib\weblogic.jar;f:\oracle\ora81\jdbc\lib\classes12.zip
    And my startWeblogic.cmd file correctly appends %PATH% an

    actually, no, the thin driver reacts badly to being told a server. It tries to
    become the type-2 driver and use the Oracle OCI stuff. If the customer can
    make a standalone program connect to the DBMS with that driver and URL,
    then maybe they need to alter the classpath of the server to have that
    driver come before any weblogic stuff. We ship an older version of the
    driver, and that may be being used because it's ahead in the classpath.
    Joe
    Deepak Vohra wrote:
    >
    Set property
    server=
    in the Properties box.
    Deepak
    Vasu wrote:
    "Hi,
    I have reviewed a lot of postings for this type of error and nothing mentioned in replies have helped me to get over this issue.
    I am trying to create a pool via the admin console in WL6.0sp1. Using Oracle Thin driver. The config information is as follows:
    Name: MydbPool
    url: jdbc:oracle:thin@pavilion:1521:star
    driver classname: oracle.jdbc.driver.OracleDriver
    Properties: user=bentley; password=flyaway
    Initial Capacity: 1
    Max Capacity: 2
    When I startup WL, I get the following error message:
    <Nov 28, 2001 1:36:21 AM EST> <Error> <JDBC Connection Pool> <Cannot startup con
    nection pool "MerlinJdbcPool" weblogic.common.ResourceException:
    Could not create pool connection. The DBMS driver exception was:
    java.sql.SQLException: Invalid Oracle URL specified: OracleDriver.connect
    My PATH is defined as:
    PATH=F:\oracle\ora81\lib;f:\oracle\ora81\jdbc\lib;f:\jdk1.3.1_01\bin;F:\oracle\o
    ra81\bin;f:\Program Files\Oracle\jre\1.1.7\bin;D:\WINNT\system32;D:\WINNT;D:\WIN
    NT\System32\Wbem;f:\Program Files\Symantec\pcAnywhere\;F:\PROGRA~1\SYMANTEC\PCAN
    YW~1\;C:\WINDOWS;C:\WINDOWS\COMMAND
    And my CLASSPATH is defined as:
    classpath=f:\bea2\wlserver6.0sp1\lib\weblogic.jar;f:\oracle\ora81\jdbc\lib\classes12.zip
    And my startWeblogic.cmd file correctly appends %PATH% an

  • Testing connection with Oracle thin driver

    Hi !
    I am testing Oracle connection from dos prompt and I get the SQL Error SQLEXCEPTION.
    How do I connect Petstore to Oracle database? When I test the connection I get error message that java.sql.SQLException No License: weblogic.comon.LicenseNotFoundException. The file is in weblogic home directory.

    Hi Sree !
    Thanks !
    After I ran the SetEnv.cmd, this is working and I guess I am ok now to use this
    connection pool.
    Thank you very much.
    .Madhuri
    "Sree Bodapati" <[email protected]> wrote:
    can you point me to the doc which talks about the valid DBTYPE values
    (url)?
    java utils.dbping ORACLE_THIN scott tiger
    <machineip_or_name>:1521:<tns_alias >
    this should work fine. for out of box usage, just goto the the folder
    <wl_home>/config/mydomain and execute setenv.cmd / setenv.sh then execute
    the above command from the same shell.
    This command is not testing connection pool. its making sure that you
    can
    connect to the db and it will not take you into sqlplus, it will show
    you
    multiple ways to code your connections to the database.
    sree
    "Madhuri" <[email protected]> wrote in message
    news:[email protected]...
    Hi Sree !
    Thanks for your prompt reply. I have tried your solution but stillI am
    having
    problem and I don't find more info. about this on Bea site. Pleasesee
    following
    E:\bea\wlserver6.1>java utils.dbping ORACLE_THIN <username> <password>host:port:database
    name
    Valid DBTYPE values:
    ORACLE, ORACLE_JDBC20, INFORMIX4, [JCONNECT | SYBASE], MSSQLSERVER4
    Where I should have to use dbtype, is there something missing in command?
    Please let me know.
    After the connection pool test is successful, it should take me toSQLPLUS, am
    I right? What message I should be expecting?
    Thanks
    ..Madhuri
    "Sree Bodapati" <[email protected]> wrote:
    The license file for WLS6.1 is license.bea file that is normally in
    the
    BEA_HOME folder.
    Usage for utils.dbping:
    Usage: java utils.dbping ORACLE USER PASS DBNAME
    or java utils.dbping ORACLE_THIN USER PASS HOST:PORT:DBNAME
    or java utils.dbping JCONNECT USER PASS HOST:PORT/DBNAME
    or java utils.dbping INFORMIX4 USER PASS DBNAME@HOST:PORT
    or java utils.dbping MSSQLSERVER4 USER PASS DBNAME@HOST:PORT
    Try to use the second one and it should work. What you were usingwas
    the
    dbping for OCI driver.
    sree
    "Madhuri" <[email protected]> wrote in message
    news:[email protected]...
    Hi Sree !
    I tried this but still I get an error. Please see the following
    E:\bea\wlserver6.1>java -classpath%WL_HOME%;%WL_HOME%\license;%CLASSPATH%
    utils
    dbping ORACLE <username> <password> <database>
    Missing license file for: WebLogic Server 6.1
    Error encountered:
    java.sql.SQLException: Fail to load jDriver/Oracle due to license
    checking
    faile
    d!
    at
    weblogic.jdbc.oci.Driver.loadLibraryIfNeeded(Driver.java:182)
    at weblogic.jdbc.oci.Driver.connect(Driver.java:76)
    at java.sql.DriverManager.getConnection(DriverManager.java:517)
    at java.sql.DriverManager.getConnection(DriverManager.java:146)
    at utils.dbping.main(dbping.java:167)
    Hi why it is complaining for OCI drivers when I am using thin driver?
    Thanks
    ..Madhuri
    "Sree Bodapati" <[email protected]> wrote:
    Try,
    java -classpath %WL_HOME%;%WL_HOME%\license;%CLASSPATH% utils.dbping
    ORACLE
    scott tiger TNS_alias
    and see if it helps, make sure WL_HOMe is set properly.
    sree
    "Madhuri" <[email protected]> wrote in message
    news:[email protected]...
    Hi Sree !
    Following is the error message I am getting:
    java.sql.SQLException: No License:weblogic.common.LicenseNotFoundException:
    weblogic.common.LicenseNotFoundException:
    Could not find licensing file:
    Your WebLogic license file, named either WebLogicLicense.xmlor
    WebLogicLicense.class must be located in a directory
    that
    is
    in your CLASSPATH. By default, your license file is locatedin the
    /license directory located in your WebLogic home directory
    (the root directory of your WebLogic installation).
    As of version 4.0 of WebLogic, a new XML-format license
    file
    has
    replaced the older, compiled class format license file.
    The WebLogic Server will recognize either format.
    For additional information on WebLogic licenses or on
    setting
    your
    class
    path, see the installation instructions in the WebLogic Serverdocumentation,
    av
    ailable at
    http://e-docs.bea.com/
    at weblogic.jdbcbase.oci.Driver.connect(Driver.java:72)
    at java.sql.DriverManager.getConnection(Unknown Source)
    at java.sql.DriverManager.getConnection(Unknown Source)
    at utils.dbping.main(dbping.java:156)
    One more thing I would like to tell you that the file (including
    class
    file) is
    in the weblogic directory and the folder is also in the classpath.I am
    trying
    the following command :
    java utils.dbping ORACLE scott tiger TNS_alias
    Thanks in advance.
    .Madhuri
    "Sree Bodapati" <[email protected]> wrote:
    Hi Madhuri,
    Try placing the folder in which you have the license file in
    your
    classpath.
    Can you post the SQL Exception?
    sree
    "Madhuri" <[email protected]> wrote in message
    news:[email protected]...
    Hi !
    I am testing Oracle connection from dos prompt and I get the
    SQL
    Error
    SQLEXCEPTION.
    How do I connect Petstore to Oracle database? When I test
    the
    connection
    I
    get error message that java.sql.SQLException No License:
    weblogic.comon.LicenseNotFoundException. The file is in weblogic
    home
    directory.

  • String index out of range: -1 occuring while deploying a JDBC connection pool

    Hi,
    I'm getting the below error (Sorry for the enormity.i got it from the log file
    .all nested exceptions are included)
    when i deploy my connectionpool onto a weblogic 6.1
    server with the following entries in the config.xml
    <JDBCConnectionPool DriverName="weblogic.jdbc.mssqlserver4.Driver" InitialCapacity="4"
    LoginDelaySeconds="1" MaxCapacity="10" Name="CabinBeanPool" Properties="user=sa;password=sa;"
    RefreshMinutes="10" SupportsLocalTransaction="true" Targets="myserver" TestConnectionsOnRelease="true"
    TestConnectionsOnReserve="true" TestTableName="CabinBeanTable" URL="weblogic:jdbc:mssqlserver4:pubs@bsl2002"
    />
    The below one i think is the core exception.Rest are nested.
    java.lang.StringIndexOutOfBoundsException: String index out of range: -1
         at java.lang.String.substring(String.java:1525)
         at weblogic.jdbc.mssqlserver4.ConnectionInfo.<init>(ConnectionInfo.java:63)
    Grateful if u could provide the solution?
    ####<Feb 7, 2002 3:25:47 PM IST> <Error> <JDBC> <bsl2002> <myserver> <ExecuteThread:
    '8' for queue: 'default'> <system> <> <001060> <Cannot startup connection pool
    "CabinBeanPool" String index out of range: -1>
    ####<Feb 7, 2002 3:25:47 PM IST> <Error> <Management> <bsl2002> <myserver> <ExecuteThread:
    '8' for queue: 'default'> <system> <> <141001> <Error updating deployments on
    target mydomain:Name=myserver,Type=Server, component mydomain:Name=CabinBeanPool,Type=JDBCConnectionPool,
    deployments: old values: mydomain:Name=myserver,Type=Server>
    weblogic.management.DistributedManagementException: Distributed Management [1
    exceptions]
         at weblogic.management.internal.ConfigurationMBeanImpl.updateConfigMBeans(ConfigurationMBeanImpl.java:534)
         at weblogic.management.internal.ConfigurationMBeanImpl.invoke(ConfigurationMBeanImpl.java:354)
         at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1555)
         at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1523)
         at weblogic.management.internal.MBeanProxy.invoke(MBeanProxy.java:449)
         at weblogic.management.internal.MBeanProxy.invoke(MBeanProxy.java:190)
         at $Proxy7.addDeployment(Unknown Source)
         at weblogic.management.internal.DynamicMBeanImpl.updateDeployments(DynamicMBeanImpl.java:1448)
         at weblogic.management.internal.DynamicMBeanImpl.setAttribute(DynamicMBeanImpl.java:858)
         at weblogic.management.internal.DynamicMBeanImpl.setAttribute(DynamicMBeanImpl.java:810)
         at weblogic.management.internal.ConfigurationMBeanImpl.setAttribute(ConfigurationMBeanImpl.java:288)
         at com.sun.management.jmx.MBeanServerImpl.setAttribute(MBeanServerImpl.java:1356)
         at com.sun.management.jmx.MBeanServerImpl.setAttribute(MBeanServerImpl.java:1331)
         at weblogic.management.internal.MBeanProxy.setAttribute(MBeanProxy.java:303)
         at weblogic.management.internal.MBeanProxy.invoke(MBeanProxy.java:185)
         at $Proxy19.setTargets(Unknown Source)
         at java.lang.reflect.Method.invoke(Native Method)
         at weblogic.management.console.info.FilteredMBeanAttribute.doSet(FilteredMBeanAttribute.java:89)
         at weblogic.management.console.actions.mbean.DoEditMBeanAction.perform(DoEditMBeanAction.java:116)
         at weblogic.management.console.actions.internal.ActionServlet.doAction(ActionServlet.java:167)
         at weblogic.management.console.actions.internal.ActionServlet.doPost(ActionServlet.java:85)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:265)
         at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:200)
         at weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServletContext.java:2456)
         at weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.java:2039)
         at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:139)
         at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:120)
    Distributed update exception
    - remote object: mydomain:Location=myserver,Name=myserver,Type=ServerConfig
    - remote server: weblogic.management.internal.RemoteMBeanServerImpl@19b1ca
    - actionName: addDeployment
    - params: [Ljava.lang.Object;@5e474b
    - signature: [Ljava.lang.String;@1aaeb5
    Distributed update exception
    - remote object: mydomain:Location=myserver,Name=myserver,Type=ServerConfig
    - remote server: weblogic.management.internal.RemoteMBeanServerImpl@19b1ca
    java.lang.StringIndexOutOfBoundsException: String index out of range: -1
         at java.lang.String.substring(String.java:1525)
         at weblogic.jdbc.mssqlserver4.ConnectionInfo.<init>(ConnectionInfo.java:63)
         at weblogic.jdbc.mssqlserver4.ConnectDriver.parse(ConnectDriver.java:337)
         at weblogic.jdbc.mssqlserver4.ConnectDriver.acceptsURL(ConnectDriver.java:181)
         at java.sql.DriverManager.getDriver(DriverManager.java:238)
         at weblogic.jdbc.common.internal.ConnectionEnvFactory.loadDriver(ConnectionEnvFactory.java:94)
         at weblogic.jdbc.common.internal.ConnectionEnvFactory.<init>(ConnectionEnvFactory.java:122)
         at weblogic.jdbc.common.internal.ConnectionPool.getResourceFactory(ConnectionPool.java:691)
         at weblogic.jdbc.common.internal.ConnectionPool.startup(ConnectionPool.java:610)
         at weblogic.jdbc.common.JDBCService.addDeployment(JDBCService.java:107)
         at weblogic.management.mbeans.custom.DeploymentTarget.addDeployment(DeploymentTarget.java:329)
         at weblogic.management.mbeans.custom.DeploymentTarget.addDeployment(DeploymentTarget.java:144)
         at java.lang.reflect.Method.invoke(Native Method)
         at weblogic.management.internal.DynamicMBeanImpl.invokeLocally(DynamicMBeanImpl.java:608)
         at weblogic.management.internal.DynamicMBeanImpl.invoke(DynamicMBeanImpl.java:592)
         at weblogic.management.internal.ConfigurationMBeanImpl.invoke(ConfigurationMBeanImpl.java:352)
         at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1555)
         at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1523)
         at weblogic.management.internal.ConfigurationMBeanImpl.updateConfigMBeans(ConfigurationMBeanImpl.java:484)
         at weblogic.management.internal.ConfigurationMBeanImpl.invoke(ConfigurationMBeanImpl.java:354)
         at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1555)
         at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1523)
         at weblogic.management.internal.MBeanProxy.invoke(MBeanProxy.java:449)
         at weblogic.management.internal.MBeanProxy.invoke(MBeanProxy.java:190)
         at $Proxy7.addDeployment(Unknown Source)
         at weblogic.management.internal.DynamicMBeanImpl.updateDeployments(DynamicMBeanImpl.java:1448)
         at weblogic.management.internal.DynamicMBeanImpl.setAttribute(DynamicMBeanImpl.java:858)
         at weblogic.management.internal.DynamicMBeanImpl.setAttribute(DynamicMBeanImpl.java:810)
         at weblogic.management.internal.ConfigurationMBeanImpl.setAttribute(ConfigurationMBeanImpl.java:288)
         at com.sun.management.jmx.MBeanServerImpl.setAttribute(MBeanServerImpl.java:1356)
         at com.sun.management.jmx.MBeanServerImpl.setAttribute(MBeanServerImpl.java:1331)
         at weblogic.management.internal.MBeanProxy.setAttribute(MBeanProxy.java:303)
         at weblogic.management.internal.MBeanProxy.invoke(MBeanProxy.java:185)
         at $Proxy19.setTargets(Unknown Source)
         at java.lang.reflect.Method.invoke(Native Method)
         at weblogic.management.console.info.FilteredMBeanAttribute.doSet(FilteredMBeanAttribute.java:89)
         at weblogic.management.console.actions.mbean.DoEditMBeanAction.perform(DoEditMBeanAction.java:116)
         at weblogic.management.console.actions.internal.ActionServlet.doAction(ActionServlet.java:167)
         at weblogic.management.console.actions.internal.ActionServlet.doPost(ActionServlet.java:85)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:265)
         at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:200)
         at weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServletContext.java:2456)
         at weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.java:2039)
         at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:139)
         at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:120)
    --------------- nested within: ------------------
    weblogic.management.DeploymentException: Error creating connection pool - with
    nested exception:
    [java.lang.StringIndexOutOfBoundsException: String index out of range: -1]
         at weblogic.jdbc.common.JDBCService.addDeployment(JDBCService.java:110)
         at weblogic.management.mbeans.custom.DeploymentTarget.addDeployment(DeploymentTarget.java:329)
         at weblogic.management.mbeans.custom.DeploymentTarget.addDeployment(DeploymentTarget.java:144)
         at java.lang.reflect.Method.invoke(Native Method)
         at weblogic.management.internal.DynamicMBeanImpl.invokeLocally(DynamicMBeanImpl.java:608)
         at weblogic.management.internal.DynamicMBeanImpl.invoke(DynamicMBeanImpl.java:592)
         at weblogic.management.internal.ConfigurationMBeanImpl.invoke(ConfigurationMBeanImpl.java:352)
         at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1555)
         at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1523)
         at weblogic.management.internal.ConfigurationMBeanImpl.updateConfigMBeans(ConfigurationMBeanImpl.java:484)
         at weblogic.management.internal.ConfigurationMBeanImpl.invoke(ConfigurationMBeanImpl.java:354)
         at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1555)
         at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1523)
         at weblogic.management.internal.MBeanProxy.invoke(MBeanProxy.java:449)
         at weblogic.management.internal.MBeanProxy.invoke(MBeanProxy.java:190)
         at $Proxy7.addDeployment(Unknown Source)
         at weblogic.management.internal.DynamicMBeanImpl.updateDeployments(DynamicMBeanImpl.java:1448)
         at weblogic.management.internal.DynamicMBeanImpl.setAttribute(DynamicMBeanImpl.java:858)
         at weblogic.management.internal.DynamicMBeanImpl.setAttribute(DynamicMBeanImpl.java:810)
         at weblogic.management.internal.ConfigurationMBeanImpl.setAttribute(ConfigurationMBeanImpl.java:288)
         at com.sun.management.jmx.MBeanServerImpl.setAttribute(MBeanServerImpl.java:1356)
         at com.sun.management.jmx.MBeanServerImpl.setAttribute(MBeanServerImpl.java:1331)
         at weblogic.management.internal.MBeanProxy.setAttribute(MBeanProxy.java:303)
         at weblogic.management.internal.MBeanProxy.invoke(MBeanProxy.java:185)
         at $Proxy19.setTargets(Unknown Source)
         at java.lang.reflect.Method.invoke(Native Method)
         at weblogic.management.console.info.FilteredMBeanAttribute.doSet(FilteredMBeanAttribute.java:89)
         at weblogic.management.console.actions.mbean.DoEditMBeanAction.perform(DoEditMBeanAction.java:116)
         at weblogic.management.console.actions.internal.ActionServlet.doAction(ActionServlet.java:167)
         at weblogic.management.console.actions.internal.ActionServlet.doPost(ActionServlet.java:85)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:265)
         at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:200)
         at weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServletContext.java:2456)
         at weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.java:2039)
         at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:139)
         at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:120)
    --------------- nested within: ------------------
    weblogic.management.DistributedOperationUpdateException: Error creating connection
    pool - with nested exception:
    [weblogic.management.DeploymentException: Error creating connection pool - with
    nested exception:
    [java.lang.StringIndexOutOfBoundsException: String index out of range: -1]]
         at weblogic.management.internal.ConfigurationMBeanImpl.updateConfigMBeans(ConfigurationMBeanImpl.java:494)
         at weblogic.management.internal.Con####<Feb 7, 2002 4:09:22 PM IST> <Notice>

    Hi Saju,
    There is an error in the URL definition. It should be
    jdbc:weblogic:mssqlserver4 instead of weblogic:jdbc:mssqlserver4.
    Regards,
    Slava Imeshev
    "Saju Thomas" <[email protected]> wrote in message
    news:[email protected]...
    >
    Hi,
    I'm getting the below error (Sorry for the enormity.i got it from the logfile
    all nested exceptions are included)
    when i deploy my connectionpool onto a weblogic 6.1
    server with the following entries in the config.xml
    <JDBCConnectionPool DriverName="weblogic.jdbc.mssqlserver4.Driver"InitialCapacity="4"
    LoginDelaySeconds="1" MaxCapacity="10" Name="CabinBeanPool"Properties="user=sa;password=sa;"
    RefreshMinutes="10" SupportsLocalTransaction="true" Targets="myserver"TestConnectionsOnRelease="true"
    TestConnectionsOnReserve="true" TestTableName="CabinBeanTable"URL="weblogic:jdbc:mssqlserver4:pubs@bsl2002"
    />
    The below one i think is the core exception.Rest are nested.
    java.lang.StringIndexOutOfBoundsException: String index out of range: -1
    at java.lang.String.substring(String.java:1525)
    atweblogic.jdbc.mssqlserver4.ConnectionInfo.<init>(ConnectionInfo.java:63)
    >
    Grateful if u could provide the solution?
    ####<Feb 7, 2002 3:25:47 PM IST> <Error> <JDBC> <bsl2002> <myserver><ExecuteThread:
    '8' for queue: 'default'> <system> <> <001060> <Cannot startup connectionpool
    "CabinBeanPool" String index out of range: -1>
    ####<Feb 7, 2002 3:25:47 PM IST> <Error> <Management> <bsl2002> <myserver><ExecuteThread:
    '8' for queue: 'default'> <system> <> <141001> <Error updating deploymentson
    target mydomain:Name=myserver,Type=Server, componentmydomain:Name=CabinBeanPool,Type=JDBCConnectionPool,
    deployments: old values: mydomain:Name=myserver,Type=Server>
    weblogic.management.DistributedManagementException: Distributed Management[1
    exceptions]
    atweblogic.management.internal.ConfigurationMBeanImpl.updateConfigMBeans(Confi
    gurationMBeanImpl.java:534)
    atweblogic.management.internal.ConfigurationMBeanImpl.invoke(ConfigurationMBea
    nImpl.java:354)
    atcom.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1555)
    atcom.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1523)
    at weblogic.management.internal.MBeanProxy.invoke(MBeanProxy.java:449)
    at weblogic.management.internal.MBeanProxy.invoke(MBeanProxy.java:190)
    at $Proxy7.addDeployment(Unknown Source)
    atweblogic.management.internal.DynamicMBeanImpl.updateDeployments(DynamicMBean
    Impl.java:1448)
    atweblogic.management.internal.DynamicMBeanImpl.setAttribute(DynamicMBeanImpl.
    java:858)
    atweblogic.management.internal.DynamicMBeanImpl.setAttribute(DynamicMBeanImpl.
    java:810)
    atweblogic.management.internal.ConfigurationMBeanImpl.setAttribute(Configurati
    onMBeanImpl.java:288)
    atcom.sun.management.jmx.MBeanServerImpl.setAttribute(MBeanServerImpl.java:135
    6)
    atcom.sun.management.jmx.MBeanServerImpl.setAttribute(MBeanServerImpl.java:133
    1)
    atweblogic.management.internal.MBeanProxy.setAttribute(MBeanProxy.java:303)
    at weblogic.management.internal.MBeanProxy.invoke(MBeanProxy.java:185)
    at $Proxy19.setTargets(Unknown Source)
    at java.lang.reflect.Method.invoke(Native Method)
    atweblogic.management.console.info.FilteredMBeanAttribute.doSet(FilteredMBeanA
    ttribute.java:89)
    atweblogic.management.console.actions.mbean.DoEditMBeanAction.perform(DoEditMB
    eanAction.java:116)
    atweblogic.management.console.actions.internal.ActionServlet.doAction(ActionSe
    rvlet.java:167)
    atweblogic.management.console.actions.internal.ActionServlet.doPost(ActionServ
    let.java:85)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
    atweblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java
    :265)
    atweblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java
    :200)
    atweblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServletCo
    ntext.java:2456)
    atweblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.java
    :2039)
    at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:139)
    at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:120)
    Distributed update exception
    - remote object:mydomain:Location=myserver,Name=myserver,Type=ServerConfig
    - remote server: weblogic.management.internal.RemoteMBeanServerImpl@19b1ca
    - actionName: addDeployment
    - params: [Ljava.lang.Object;@5e474b
    - signature: [Ljava.lang.String;@1aaeb5
    Distributed update exception
    - remote object:mydomain:Location=myserver,Name=myserver,Type=ServerConfig
    - remote server: weblogic.management.internal.RemoteMBeanServerImpl@19b1ca
    java.lang.StringIndexOutOfBoundsException: String index out of range: -1
    at java.lang.String.substring(String.java:1525)
    atweblogic.jdbc.mssqlserver4.ConnectionInfo.<init>(ConnectionInfo.java:63)
    at weblogic.jdbc.mssqlserver4.ConnectDriver.parse(ConnectDriver.java:337)
    atweblogic.jdbc.mssqlserver4.ConnectDriver.acceptsURL(ConnectDriver.java:181)
    at java.sql.DriverManager.getDriver(DriverManager.java:238)
    atweblogic.jdbc.common.internal.ConnectionEnvFactory.loadDriver(ConnectionEnvF
    actory.java:94)
    atweblogic.jdbc.common.internal.ConnectionEnvFactory.<init>(ConnectionEnvFacto
    ry.java:122)
    atweblogic.jdbc.common.internal.ConnectionPool.getResourceFactory(ConnectionPo
    ol.java:691)
    atweblogic.jdbc.common.internal.ConnectionPool.startup(ConnectionPool.java:610
    at weblogic.jdbc.common.JDBCService.addDeployment(JDBCService.java:107)
    atweblogic.management.mbeans.custom.DeploymentTarget.addDeployment(DeploymentT
    arget.java:329)
    atweblogic.management.mbeans.custom.DeploymentTarget.addDeployment(DeploymentT
    arget.java:144)
    at java.lang.reflect.Method.invoke(Native Method)
    atweblogic.management.internal.DynamicMBeanImpl.invokeLocally(DynamicMBeanImpl
    .java:608)
    atweblogic.management.internal.DynamicMBeanImpl.invoke(DynamicMBeanImpl.java:5
    92)
    atweblogic.management.internal.ConfigurationMBeanImpl.invoke(ConfigurationMBea
    nImpl.java:352)
    atcom.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1555)
    atcom.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1523)
    atweblogic.management.internal.ConfigurationMBeanImpl.updateConfigMBeans(Confi
    gurationMBeanImpl.java:484)
    atweblogic.management.internal.ConfigurationMBeanImpl.invoke(ConfigurationMBea
    nImpl.java:354)
    atcom.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1555)
    atcom.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1523)
    at weblogic.management.internal.MBeanProxy.invoke(MBeanProxy.java:449)
    at weblogic.management.internal.MBeanProxy.invoke(MBeanProxy.java:190)
    at $Proxy7.addDeployment(Unknown Source)
    atweblogic.management.internal.DynamicMBeanImpl.updateDeployments(DynamicMBean
    Impl.java:1448)
    atweblogic.management.internal.DynamicMBeanImpl.setAttribute(DynamicMBeanImpl.
    java:858)
    atweblogic.management.internal.DynamicMBeanImpl.setAttribute(DynamicMBeanImpl.
    java:810)
    atweblogic.management.internal.ConfigurationMBeanImpl.setAttribute(Configurati
    onMBeanImpl.java:288)
    atcom.sun.management.jmx.MBeanServerImpl.setAttribute(MBeanServerImpl.java:135
    6)
    atcom.sun.management.jmx.MBeanServerImpl.setAttribute(MBeanServerImpl.java:133
    1)
    atweblogic.management.internal.MBeanProxy.setAttribute(MBeanProxy.java:303)
    at weblogic.management.internal.MBeanProxy.invoke(MBeanProxy.java:185)
    at $Proxy19.setTargets(Unknown Source)
    at java.lang.reflect.Method.invoke(Native Method)
    atweblogic.management.console.info.FilteredMBeanAttribute.doSet(FilteredMBeanA
    ttribute.java:89)
    atweblogic.management.console.actions.mbean.DoEditMBeanAction.perform(DoEditMB
    eanAction.java:116)
    atweblogic.management.console.actions.internal.ActionServlet.doAction(ActionSe
    rvlet.java:167)
    atweblogic.management.console.actions.internal.ActionServlet.doPost(ActionServ
    let.java:85)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
    atweblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java
    :265)
    atweblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java
    :200)
    atweblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServletCo
    ntext.java:2456)
    atweblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.java
    :2039)
    at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:139)
    at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:120)
    --------------- nested within: ------------------
    weblogic.management.DeploymentException: Error creating connection pool -with
    nested exception:
    [java.lang.StringIndexOutOfBoundsException: String index out of range: -1]
    at weblogic.jdbc.common.JDBCService.addDeployment(JDBCService.java:110)
    atweblogic.management.mbeans.custom.DeploymentTarget.addDeployment(DeploymentT
    arget.java:329)
    atweblogic.management.mbeans.custom.DeploymentTarget.addDeployment(DeploymentT
    arget.java:144)
    at java.lang.reflect.Method.invoke(Native Method)
    atweblogic.management.internal.DynamicMBeanImpl.invokeLocally(DynamicMBeanImpl
    .java:608)
    atweblogic.management.internal.DynamicMBeanImpl.invoke(DynamicMBeanImpl.java:5
    92)
    atweblogic.management.internal.ConfigurationMBeanImpl.invoke(ConfigurationMBea
    nImpl.java:352)
    atcom.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1555)
    atcom.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1523)
    atweblogic.management.internal.ConfigurationMBeanImpl.updateConfigMBeans(Confi
    gurationMBeanImpl.java:484)
    atweblogic.management.internal.ConfigurationMBeanImpl.invoke(ConfigurationMBea
    nImpl.java:354)
    atcom.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1555)
    atcom.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1523)
    at weblogic.management.internal.MBeanProxy.invoke(MBeanProxy.java:449)
    at weblogic.management.internal.MBeanProxy.invoke(MBeanProxy.java:190)
    at $Proxy7.addDeployment(Unknown Source)
    atweblogic.management.internal.DynamicMBeanImpl.updateDeployments(DynamicMBean
    Impl.java:1448)
    atweblogic.management.internal.DynamicMBeanImpl.setAttribute(DynamicMBeanImpl.
    java:858)
    atweblogic.management.internal.DynamicMBeanImpl.setAttribute(DynamicMBeanImpl.
    java:810)
    atweblogic.management.internal.ConfigurationMBeanImpl.setAttribute(Configurati
    onMBeanImpl.java:288)
    atcom.sun.management.jmx.MBeanServerImpl.setAttribute(MBeanServerImpl.java:135
    6)
    atcom.sun.management.jmx.MBeanServerImpl.setAttribute(MBeanServerImpl.java:133
    1)
    atweblogic.management.internal.MBeanProxy.setAttribute(MBeanProxy.java:303)
    at weblogic.management.internal.MBeanProxy.invoke(MBeanProxy.java:185)
    at $Proxy19.setTargets(Unknown Source)
    at java.lang.reflect.Method.invoke(Native Method)
    atweblogic.management.console.info.FilteredMBeanAttribute.doSet(FilteredMBeanA
    ttribute.java:89)
    atweblogic.management.console.actions.mbean.DoEditMBeanAction.perform(DoEditMB
    eanAction.java:116)
    atweblogic.management.console.actions.internal.ActionServlet.doAction(ActionSe
    rvlet.java:167)
    atweblogic.management.console.actions.internal.ActionServlet.doPost(ActionServ
    let.java:85)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
    atweblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java
    :265)
    atweblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java
    :200)
    atweblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServletCo
    ntext.java:2456)
    atweblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.java
    :2039)
    at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:139)
    at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:120)
    --------------- nested within: ------------------
    weblogic.management.DistributedOperationUpdateException: Error creatingconnection
    pool - with nested exception:
    [weblogic.management.DeploymentException: Error creating connection pool -
    with> nested exception:> [java.lang.StringIndexOutOfBoundsException: String index out ofrange: -1]
    atweblogic.management.internal.ConfigurationMBeanImpl.updateConfigMBeans(Confi
    gurationMBeanImpl.java:494)
    at weblogic.management.internal.Con####<Feb 7, 2002 4:09:22 PM IST><Notice>
    >

  • JDBC connection pool getting killed in Managed Server

    I am running a managed server in a Windows2000 SP2,WebLogic 6.0 SP2, JDK 1.3.1_01
    environment
    When I start the managed server I get the following error:
    Attempting to create Connection Pool for the Pool Registry Entry : perfectFitPool
    <Nov 24, 2001 9:03:15 PM EST> <Error> <JDBC Connection Pool> <The pool 'perfectFitPool
    was created successfully. But it must be killed because of: creating Admin MBean
    on a managed server>
    weblogic.common.ResourceException: creating Admin MBean on a managed server
    at weblogic.jdbc.common.internal.ConnectionPool.dynaStartup(ConnectionPool.java:540)
    at weblogic.jdbc.common.internal.ConnectionPool.createPool(ConnectionPool.java:766)
    at weblogic.jdbc.common.internal.ConnectionPool.createPool(ConnectionPool.java:754)
    at ConnectionPoolStartupWl6.createDynamicConnectionPool(ConnectionPoolStartupWl6.java:64)
    at ConnectionPoolStartupWl6.startup(ConnectionPoolStartupWl6.java:45)
    at weblogic.t3.srvr.StartupClassRunner.invokeStartup(StartupClassRunner.java:112)
    at weblogic.t3.srvr.StartupClassRunner.invokeClass(StartupClassRunner.java:93)
    at weblogic.t3.srvr.StartupClassRunner.run(StartupClassRunner.java:61)
    at java.lang.Thread.run(Thread.java:484)
    <Nov 24, 2001 9:03:15 PM EST> <Critical> <WebLogicServer> <Failed to invoke startup
    class
    "ConnectionPoolStartupWl6", weblogic.common.ResourceException: creating Admin
    MBean on a managed server>
    <Nov 24, 2001 9:03:15 PM EST> <Notice> <WebLogicServer> <WebLogic Server started>
    Any idea on what could be wrong.
    Thanks in advance,
    Adarsh Ronald

    Hi Adarsh,
    You can not create Admin MBean on managed server. Managed server can
    have only cached copies of Admin MBeans with type ConfigMBean.
    Could you show us what you do @ ConnectionPoolStartupWl6?
    Regards,
    Slava Imeshev
    "Adarsh Ronald" <[email protected]> wrote in message
    news:3c0054eb$[email protected]..
    >
    I am running a managed server in a Windows2000 SP2,WebLogic 6.0 SP2, JDK1.3.1_01
    environment
    When I start the managed server I get the following error:
    Attempting to create Connection Pool for the Pool Registry Entry :perfectFitPool
    <Nov 24, 2001 9:03:15 PM EST> <Error> <JDBC Connection Pool> <The pool'perfectFitPool
    was created successfully. But it must be killed because of: creating AdminMBean
    on a managed server>
    weblogic.common.ResourceException: creating Admin MBean on a managedserver
    atweblogic.jdbc.common.internal.ConnectionPool.dynaStartup(ConnectionPool.java
    :540)
    atweblogic.jdbc.common.internal.ConnectionPool.createPool(ConnectionPool.java:
    766)
    atweblogic.jdbc.common.internal.ConnectionPool.createPool(ConnectionPool.java:
    754)
    atConnectionPoolStartupWl6.createDynamicConnectionPool(ConnectionPoolStartupWl
    6.java:64)
    at ConnectionPoolStartupWl6.startup(ConnectionPoolStartupWl6.java:45)
    atweblogic.t3.srvr.StartupClassRunner.invokeStartup(StartupClassRunner.java:11
    2)
    atweblogic.t3.srvr.StartupClassRunner.invokeClass(StartupClassRunner.java:93)
    at weblogic.t3.srvr.StartupClassRunner.run(StartupClassRunner.java:61)
    at java.lang.Thread.run(Thread.java:484)
    <Nov 24, 2001 9:03:15 PM EST> <Critical> <WebLogicServer> <Failed toinvoke startup
    class
    "ConnectionPoolStartupWl6", weblogic.common.ResourceException: creatingAdmin
    MBean on a managed server>
    <Nov 24, 2001 9:03:15 PM EST> <Notice> <WebLogicServer> <WebLogic Serverstarted>
    >
    Any idea on what could be wrong.
    Thanks in advance,
    Adarsh Ronald

  • JDBC20 connect pool issue using OCI driver

     

    I tried to use:
    url=jdbc20:weblogic:oracle.
    driver=weblogic.jdbc20.oci.Driver
    and got the following error:
    <Jul 11, 2001 5:52:34 PM PDT> <Error> <JDBC Connection Pool> <Cannot
    startup connection pool "ExrGlobalDbPool" Cannot load driver class:
    weblogic.jdbc20.oci.Driver>
    "Chuan Li" <[email protected]> wrote in message news:<[email protected]>...
    If you use the driver provided by Oracle, then use the following:
    url=jdbc:oracle:oci8:
    driver=oracle.jdbc.driver.OracleDriver
    "Jeff Guo" <[email protected]> wrote:
    Hi,
    What is the correct way to define the url in the jdbc connection pool
    to
    support jdbc20
    features using Oracle OCI driver?
    Thanks!
    Jeff

Maybe you are looking for