Testing connection to a datasource

hi everyone.
i want test connection to a datasource that i create on tomcat ( by tomcat interface ), i want try connection trough a simple java classe ( main method ).
i'm using a postgres database.
can anyone tell me a sample code to try it ?
thx .

I just installed Weblogic 10 and when creating my first Datasource, I got the same error. I think, although I'm not positive, that I clicked Finish instead of Next after testing the Datasource. When you click Next, you get to a page that asks where to deploy.
I ended up shutting down the server, editing config.xml to delete the datasource. I also deleted the file in the config/jdbc directory. After restarting the server, I recreated the Datasource, clicking Next until there wasn't a next button. Everything is fine now.

Similar Messages

  • LDAP access info in datasource xml file for multidomain Test Connect fails.

    Hello SDN
    I've gone through the video that explains how to setup the multidomain conf.
    I have my service users but when it comes to enter the ldap access user I'm not sure what info to enter.
    My ldap user is created at the  company.com level not at the domain1.company.com level as is indicated in the video.
    I entered the following values
    ume.ldap.access.server_name> server1
    ume.ldap.access.user> [email protected]
    ume.ldap.access.base_path.user> CN=USERS,DC=COMPANY,DC=COM
    ume.ldap.access.base_path.grup> CN=USERS,DC=COMPANY,DC=COM
    And when I try to test connection I'm getting an error. So I have two questions:
    Should the ldap account be created at the domain1.company.com level?
    And how do I get the correct info to populate the base_path fields? Not sure where to get it, I just followed video.
    Thanks for any help.
    MR

    Couple of things.,
    1. What LDAP you are using
    2. What kind of hierarchy (flat or deep)
    The hierachy will decide the user path and the group path.
    Given you have all the right values then you populate the values for the foolowing.,
    - Server Name or IP
    - Server port number
    - LDAP user name by (used for connectivity and access which should have enough rights)
    - Password for the LDAP user
    - User path
    - Group path
    With all the above given right the test connection should succeed.
    Optionally SSL can be enabled for LDAP connectivity and can specify unique attribute for UME unique ID (this field will be uid for SUN LDAP and samaccountname for MS AD)
    Regards,
    Muthu Kumaran KG

  • 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();

  • I tring to create new agent and then checking test connection it will show

    i tring to create new agent and then checking test connection it will show error like below plz help us
    oracle.odi.runtime.agent.invocation.InvocationException: ODI-1424: Agent host or port cannot be reached using http://localhost:29010/oraclediagent.
         at oracle.odi.runtime.agent.invocation.RemoteRuntimeAgentInvoker.reThrowAgentErrorAsInvocation(RemoteRuntimeAgentInvoker.java:932)
         at oracle.odi.runtime.agent.invocation.RemoteRuntimeAgentInvoker.invoke(RemoteRuntimeAgentInvoker.java:291)
         at oracle.odi.runtime.agent.invocation.RemoteRuntimeAgentInvoker.invokeIsAlive(RemoteRuntimeAgentInvoker.java:427)
         at oracle.odi.ui.action.SnpsPopupActionTestAgentHandler.actionPerformed(SnpsPopupActionTestAgentHandler.java:65)
         at oracle.odi.ui.SnpsActionControler.handleEvent(SnpsActionControler.java:75)
         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)
         at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1995)
         at javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2318)
         at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:387)
         at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:242)
         at javax.swing.AbstractButton.doClick(AbstractButton.java:357)
         at javax.swing.plaf.basic.BasicMenuItemUI.doClick(BasicMenuItemUI.java:1225)
         at javax.swing.plaf.basic.BasicMenuItemUI$Handler.mouseReleased(BasicMenuItemUI.java:1266)
         at java.awt.Component.processMouseEvent(Component.java:6263)
         at javax.swing.JComponent.processMouseEvent(JComponent.java:3267)
         at java.awt.Component.processEvent(Component.java:6028)
         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:4574)
         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:2475)
         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)

    after using this link it will show error like below plz help
    C:\oracle\Middleware\Oracle_ODI1\oracledi\agent\bin>agent -NAME=OracleDIAgent
    OracleDI: Starting Agent ...
    2011-03-28 19:14:12.930 ERROR ODI-1131 Agent OracleDIAgent encountered an error:
    ODI-1400: Agent OracleDIAgent start failure: JDBC connection error occurs while
    connecting to the master repository.
    ODI-1441: Unable to connect to the master repository at JBDC URL=jdbc:oracle:thi
    n:@01hw175334.india.tcs.com:1521:orcl with USER=sh.
    Caused By: java.sql.SQLException: Exception occurred while getting connection: o
    racle.ucp.UniversalConnectionPoolException: Cannot get Connection from Datasourc
    e
    at oracle.ucp.util.UCPErrorHandler.newSQLException(UCPErrorHandler.java:
    541)
    at oracle.ucp.jdbc.PoolDataSourceImpl.throwSQLException(PoolDataSourceIm
    pl.java:587)
    at oracle.ucp.jdbc.PoolDataSourceImpl.getConnection(PoolDataSourceImpl.j
    ava:668)
    at oracle.ucp.jdbc.PoolDataSourceImpl.getConnection(PoolDataSourceImpl.j
    ava:613)
    at oracle.ucp.jdbc.PoolDataSourceImpl.getConnection(PoolDataSourceImpl.j
    ava:607)
    at oracle.odi.Agent.validateConnectionProperties(Agent.java:398)
    at oracle.odi.Agent.doGetDataSource(Agent.java:390)
    at oracle.odi.Agent.main(Agent.java:471)
    Caused by: oracle.ucp.UniversalConnectionPoolException: Cannot get Connection fr
    om Datasource
    at oracle.ucp.util.UCPErrorHandler.newUniversalConnectionPoolException(U
    CPErrorHandler.java:421)
    at oracle.ucp.util.UCPErrorHandler.newUniversalConnectionPoolException(U
    CPErrorHandler.java:389)
    at oracle.ucp.jdbc.DriverConnectionFactoryAdapter.createConnection(Drive
    rConnectionFactoryAdapter.java:133)
    at oracle.ucp.common.UniversalConnectionPoolImpl$UniversalConnectionPool
    Internal.createOnePooledConnectionInternal(UniversalConnectionPoolImpl.java:1570
    at oracle.ucp.common.UniversalConnectionPoolImpl$UniversalConnectionPool
    Internal.access$600(UniversalConnectionPoolImpl.java:1378)
    at oracle.ucp.common.UniversalConnectionPoolImpl.createOnePooledConnecti
    on(UniversalConnectionPoolImpl.java:445)
    at oracle.ucp.common.UniversalConnectionPoolImpl.borrowConnectionWithout
    CountingRequests(UniversalConnectionPoolImpl.java:302)
    at oracle.ucp.common.UniversalConnectionPoolImpl.borrowConnection(Univer
    salConnectionPoolImpl.java:129)
    at oracle.ucp.jdbc.JDBCConnectionPool.borrowConnection(JDBCConnectionPoo
    l.java:119)
    at oracle.ucp.jdbc.PoolDataSourceImpl.getConnection(PoolDataSourceImpl.j
    ava:655)
    ... 5 more
    Caused by: java.sql.SQLException: ORA-01017: invalid username/password; logon de
    nied
    at oracle.jdbc.driver.SQLStateMapping.newSQLException(SQLStateMapping.ja
    va:70)
    at oracle.jdbc.driver.DatabaseError.newSQLException(DatabaseError.java:1
    33)
    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(T4CTTIoauthentica
    te.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(T4CDriverExtensio
    n.java:33)
    at oracle.jdbc.driver.OracleDriver.connect(OracleDriver.java:510)
    at oracle.ucp.jdbc.DriverConnectionFactoryAdapter.createConnection(Drive
    rConnectionFactoryAdapter.java:129)
    ... 12 more
    C:\oracle\Middleware\Oracle_ODI1\oracledi\agent\bin>

  • BaseFileName cannot be nothing or an empty String during Test Connection

    Dear All,
    I have FDM+Foundation+HSF 11.1.2 installed
    I have stacked with the following problem:
    when I try to Test Connection (Authentication Provider Window) during Load Balance Configuration I am getting
    +“BaseFileName cannot be nothing or an empty String+
    Parameter name: value”
    Can somebody help me with it?
    Best Regards,
    Siarhei

    same error i faced, i restarted the APP server and it worked then.

  • Error while Test Connection with Connector

    hi all:
         there is an error while  Test Connection with Connector , I also test it through sys administration->sys configuration->
    suport -> sap transaction, I got all errors, I put these two errors as folows, could you please tell me how to sovle it
    ***************ERROR 1 while *error while Test Connection with Connector ******************************************************
    Test Details:
    The test consists of the following steps:
    1. Retrieve the default alias of the system
    2. Check the connection to the backend application using the connector defined in this
    system object
      Results
    Retrieval of default alias successful
    Connection failed. Make sure that Single Sign-On is configured correctly
    ************error sys administration->sys configuration-> suport -> sap transaction        ********************** 1.5 #0025B3E02892006100000A0800001798000487530FB0122E#1274690722265#com.sap.portal.prt.runtime#sap.com/irj#com.sap.portal.prt
    .runtime#guodongdong#47472##n/a##690347f0670e11df98cc0025b3e02892#SAPEngine_Application_Thread[impl:3]
    9##0#0#Error##Java###04:4524/05/10_0077_6087550
    [EXCEPTION]
    #1#com.sapportals.portal.prt.runtime.PortalRuntimeException: Exception in SAP Application Integrator occured: Application URL
    &\#39;:///sap(ZT1KVXBWektldldTeV9QQXBXRjNaWTRBLS1OZmRvZzBRWWY2QmN0WThNUmgqdUlRLS0=)/bc/gui/sap/its/webgui&\#39; is not valid!
    Please check the protocol and host entries for system &\#39;sapdev&\#39;.
         at com.sapportals.portal.appintegrator.AbstractIntegratorComponent.doContentPass
    (AbstractIntegratorComponent.java:123)
         at com.sapportals.portal.appintegrator.AbstractIntegratorComponent.doContent(AbstractIntegratorComponent.java:98)
         at com.sapportals.portal.prt.component.AbstractPortalComponent.serviceDeprecated(AbstractPortalComponent.java:209)
         at com.sapportals.portal.prt.component.AbstractPortalComponent.service(AbstractPortalComponent.java:114)
         at com.sapportals.portal.prt.core.PortalRequestManager.callPortalComponent(PortalRequestManager.java:328)
         at com.sapportals.portal.prt.core.PortalRequestManager.dispatchRequest(PortalRequestManager.java:136)
         at com.sapportals.portal.prt.core.PortalRequestManager.dispatchRequest(PortalRequestManager.java:189)
         at com.sapportals.portal.prt.component.PortalComponentResponse.include(PortalComponentResponse.java:215)
         at com.sapportals.portal.prt.pom.PortalNode.service(PortalNode.java:645)
         at com.sapportals.portal.prt.core.PortalRequestManager.callPortalComponent(PortalRequestManager.java:328)
         at com.sapportals.portal.prt.core.PortalRequestManager.dispatchRequest(PortalRequestManager.java:136)
         at com.sapportals.portal.prt.core.PortalRequestManager.dispatchRequest(PortalRequestManager.java:189)
         at com.sapportals.portal.prt.core.PortalRequestManager.runRequestCycle(PortalRequestManager.java:753)
         at com.sapportals.portal.prt.connection.ServletConnection.handleRequest(ServletConnection.java:240)
         at com.sapportals.portal.prt.dispatcher.Dispatcher$doService.run(Dispatcher.java:523)
         at java.security.AccessController.doPrivileged(Native Method)
         at com.sapportals.portal.prt.dispatcher.Dispatcher.service(Dispatcher.java:412)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at com.sap.engine.services.servlets_jsp.server.servlet.InvokerServlet.service(InvokerServlet.java:156)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.runServlet(HttpHandlerImpl.java:401)
         at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.handleRequest(HttpHandlerImpl.java:266)
         at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:386)
         at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:364)
         at com.sap.engine.services.httpserver.server.RequestAnalizer.invokeWebContainer(RequestAnalizer.java:1039)
         at com.sap.engine.services.httpserver.server.RequestAnalizer.handle(RequestAnalizer.java:265)
         at com.sap.engine.services.httpserver.server.Client.handle(Client.java:95)
         at com.sap.engine.services.httpserver.server.Processor.request(Processor.java:175)
         at com.sap.engine.core.service630.context.cluster.session.ApplicationSessionMessageListener.process
    (ApplicationSessionMessageListener.java:33)
         at com.sap.engine.core.cluster.impl6.session.MessageRunner.run(MessageRunner.java:41)
         at com.sap.engine.core.thread.impl3.ActionObject.run(ActionObject.java:37)
         at java.security.AccessController.doPrivileged(Native Method)
         at com.sap.engine.core.thread.impl3.SingleThread.execute(SingleThread.java:104)
         at com.sap.engine.core.thread.impl3.SingleThread.run(SingleThread.java:176)

    Hi,
    As per this part of the trace:
    Exception in SAP Application Integrator occured: Application URL &\#39;:///sap(ZT1KVXBWektldldTeV9QQXBXRjNaWTRBLS1OZmRvZzBRWWY2QmN0WThNUmgqdUlRLS0=)/bc/gui/sap/its/webgui&\#39; is not valid! Please check the protocol and host entries for system &\#39;sapdev&\#39;. at ...
    You can clearly see that the system object 'sapdev' is not configured correctly/at all - you are trying to launch transaction iView
    (WEBGUI) and in order to do so you should configure the 'internet transaction server' category of the system  object
    with the hostname of the ITS server.
    Generally the template is
    <System.Access.ITS.protocol>://<System.Access.ITS.hostname>/sap<ESID>/bc/gui/sap/its/webgui?\....
    So that's why you got
    Please check the protocol and host entries for system ..

  • Why does it take over 2 minutes to get a database connection from the DataSource?

    Hello,
    It is taking over 2 minutes for my application to get a connection from a registered DataSource in iAS 6.0 sp4 on Solaris. The proper results are returned it just takes 2 minutes to establish the connection. The DataSource is an Oracle 9i database. I have the 9i drivers in the classpath. I also have a registered datasource that is an Oracle 8 database and have no problems establishing a connection quickly to that database. As an aside I have setup this application on JBOSS and both datasource's return a connection very quickly. If anyone has any ideas about what might be going on please respond. This issue is holding up a production release.
    Here is the code:
    try {
    log.debug("getting a new initial context");
    ctx = new InitialContext();
    ds = (DataSource) ctx.lookup(bundle.getString("IW_DATASOURCE"));
    log.debug("after looking up datasource from initial context");
    } catch (NamingException e) {
    log.error(e);
    throw new FinstarException
    (bundle.getString("E-0001"));
    try {
    log.debug("about to get connection");
    conn = ds.getConnection();
    log.debug("after getting connection");
    Produces this in the logs:
    2002-05-29 08:55:12,859 DEBUG org.mitre.mii.project.finstar.FinancialSummary - about to get connection
    2002-05-29 08:57:24,963 DEBUG org.mitre.mii.project.finstar.FinancialSummary - after getting connection
    Here is the datasource registration file:
    <ias-resource>
    <resource>
    <jndi-name>jdbc/pdc/IWDataSource</jndi-name>
    <jdbc>
    <database-url>jdbc:oracle:thin:@xxx.xxx.org:1521:acisdb</database-url>
    <datasource>jdbc/pdc/IWDataSource</datasource>
    <username>XXXXX</username>
    <password>XXXXX</password>
    <driver-type>OracleThinDriver</driver-type>
    </jdbc>
    </resource>
    </ias-resource>

    Have you tried to eliminate everything extraneous. In other words, do you experience the same delays with a simple Java program (no lookups, JNDI) that loads the drivermanager and creates a connection.
    Do you have access to a traciong JVM or some program that captures run-time execution timing information? Even without the source, this will tell you the specific class::methos where time is spent so you can better determine where the delay is ocurring.

  • Trying to modify a script to use test-connections in multiple domains?

    Hey Scripting Guy!
    I've created the script (below) to use test-connection against a list of hosts and write the results of the machines that respond to a .txt file. The only issue is that one of my sites utilizes two separate domains, does anyone have any advice as far as
    when a test connection fails, retrying the command using another domain name? (server.domain.com)
    I'll take any advice at this point... Thanks!
    New-PSDrive -Name S -PSProvider FileSystem -Root \\server\share -ErrorAction SilentlyContinue
    Get-ChildItem "S:\Folder1\Folder2\backup\backup Audits\Host Audits" -Filter *.txt | `
    Foreach-Object{
        $content = Get-Content $_.FullName
        #$SiteName = Get-ChildItem "S:\Folder1\Folder2\backup\backup Audits\Host Audits"
        #Find alive machines, and write their hostnames to output file for auditing
        Test-Connection -count 5 -ErrorAction SilentlyContinue $Content | Select-object -unique | Out-File      "S:\Folder1\Folder2\backup\backup Audits\Audit results by Site\$_"

    what i would like to do is when my test-connection fails with an error, append another domain suffix to the hostname so that if:
    test-connection computerxyz fails
    then test-connection computerxyz.domain.corp.com
    $server="$computer.domain1.com"
    if(Test-Connection $server -count 1 -quiet){
        $server="$computer.domain2.com"
        ... other code
    ¯\_(ツ)_/¯

  • I've had an iWeb site running for 4 months and I publish a monthly newsletter. Since August I've been unable to republish. The test connection under FTP settings works but I get an error message when I try to upload newsletter. Am I missing something mis

    I've had an iWeb site running for 4 months and I publish a monthly newsletter. Since August I've been unable to republish. The test connection under FTP settings works but I get an error message when I try to upload newsletter. Am I missing something?

    Where are you hosting the site a what are you using to upload the site files to the server?
    OT

  • Error in Test Connection - Content Repository does not exist

    Hi, I have created a content repository which points to our own external HTTP content server which is a DMS through transaction OAC0.
    In transaction CSADMIN I can see our server's status as running, still it shows yellow icon "customizing missing" in CSADMIN and in transaction OAC0 whenver I click "Test Connection" it gives the message" Content Repository does not exist". CMS 106.
    Kindly help.
    Regards
    Neha

    Hi,
    We are using OACO as follows:
    Choose Tools ® Business documents, Environment ® Knowledge Provider® KPro® Content Repositories
    Enter the following fields in the u201CChange Content Repositories : Detailu201D :-
    1) Content Rep. :- ZO (Content Repository Name)
    2) Description :- Content Repository
    3) Storage type :- HTTP content server.
    4) Version no :- 0045
    5) HTTP svr:p :- IP or machine name of application server on which DMS has been deployed : Web port of the application server on which DMS has been deployed.
    1) Program :- sap/sapDocView.jsp
    Save the created Content Repository by clicking on u201CSaveu201D. We are working on SAP 4.7 versionon a SAP development server and the content repository has not been transported after creation. Will not transporting be causing this error ?
    Please reward points
    Thanks
    Vikranth

  • Test Connection failed in Crystal Reports for Eclipse using SQL Server 2008

    I installed an SQL Server Express 2008 on my local PC (Window XP SP3). I downloaded sqljdbc4.jar to Crystal Reports for Eclipse
    IDE library path and tried to Test Connection, but got the Ping failed message : The TCP/IP connection to the host localhost, port 1433 has failed. It said that check that an instance of SQL Server is running on the host (I saw SQL Server SQLEXPRESS is Running on my PC) and accepting TCP/IP connection at the port (I enabled TCP/IPin my PC's SQL Server Network Configuration),
    and that no firewall is blocking TCP connection to the port(I turned OFF Window Firewall on my OC). Can anyone tell me how can I fix this problem ?

    Hi,
    Check the below thread also:
    http://scn.sap.com/thread/1634856
    Thanks,
    DJ

  • Can't Create a Data Source - Failed to test connection. [DBNETLIB][ConnectionOpen (Connect()).]SQL Server does not exist or access denied

    Hi there,
    I am having a serious issue with The Power BI Data Management Gateway which I am hoping that someone can help me with.
    Basically I am setting a connection between a Power BI demo site and a SQL 2012 Database based on Azure. The Data Management Gateway and is up and running, and Power BI has managed to connect to it successfuly.
    By following the tutorials at
    here I was able to successful create my Data Connection Gateway with a self-signed certificate.
    However, when trying to create the data source I come into problems. The Data Source Manager manages to successfully resolve the hostname, as per the screenshot below:
    Bear in mind that I exposed the require ports in Azure as endpoints and I managed to modify my hosts file on my local machine so I could access the SQL server hosted in Azure using its internal name -- otherwise I would not be able to get this far.
    However the creation of the data source also fails when trying to created it whilst logged in the SQL server in question:
    The Data Source Manager returns the error when using the Microsoft OLE DB Provider for SQL Server:
    Failed to test connection. [DBNETLIB][ConnectionOpen (Connect()).]SQL Server does not exist or access denied
    I tried using the SQL Server Native Client 11.0 instead but I also get an error. This time the error is:
    Failed to test connection. Login timeout expiredA network-related or instance-specific error has occurred while establishing a connection to SQL Server. Server is not found or not accessible. Check if instance name is correct and if SQL Server is configured to allow remote connections. For more information see SQL Server Books Online.Named Pipes Provider: Could not open a connection to SQL Server [53]. 
    Some considerations
    If I provide an invalid username/password, the Data Source Manager does say that the username and password is incorrect.
    Firewall is turned off in the SQL Server (either way, this error also happens if I try top use the Data Source Manager whilst logged in the SQL Server itself).
    SQL Profiler does not show any attempt of connection.
    The SQL server instance in question is the default one.
    The error happens regardless if I select the option to encrypt connection or not.
    In SQL Configuration manager I can see that all protocols are enabled (TCP/IP, Named Pipes and Shared Memory.
    The Event Viewer does not provide any further errors than the one I have copied in this post.
    I'm at a loss here. Could someone please advise what might I be doing wrong?
    Regards,
    P.

    Here is what I had to do to solve this issue:
    Basically I had to add the MSSQL TCP/IP port as an end-point in Azure. After I did that, then I was able to create the data-source. However, I was only able to authenticate with a SQL account, as any domain account would return me an error saying that the
    domain isn't trusted.
    What puzzles me here is how come the Data Source Manager would inform me that an account username/password was invalid, but it would fail/timeout if I provided valid credentials (!?!?!!?)

  • I'm trying to sign in on my account but an error sign come's up from window's saying test connection any ideas......

    I'm trying to sign in on my itunes account but windows error come's up saying test connection any ideas.....

    Make sure you have the right version...
    Camera Raw plug-in | Supported cameras
    Camera Raw-compatible Adobe applications

  • Error in Test Connection of Content Repositories

    Hello All,
    I m creating a Content Repositories via Trnaction OAC0.
    But, when i click on "TEST Connection" icon for testing the Connection, its giving the error " HTTP ERROR : 400 BAD REQUEST".
    I have checked, all my entries while creating Content Repository are Correct.
    My Dcument type is Document Management System(DMS) and
    Storage Type is HTTP Content Server.
    Please Help.
    Thanks,
    Deepak

    Hello,
    Test Page of Content Server is working fine.I have already done the URL Check for Content Server.
    Below are the details of my dev_http trace.
    <Date time>
    [5956] sccsid: @(#) $Id: //bas/710_REL/src/krn/ftp/http.c#16 $ SAP
    [5956] Environment SAP_CODEPAGE = 4110
    [5956] new codepage 1160
    [5956] HTTP Start : argc - 6 a0 - saphttp
    [5956] /H/<IP> sapgw00 39113162 CPIC_TRACE=2 IDX=4
    <Date time>
    [5956] elapsed time 4625 ms - active time 0 ms - wait time 0 ms
    [5956] SAPHTTP end
    Thanks,
    Deepak

Maybe you are looking for

  • Can I use my blackberry as a modem for my iPad cellular?

    I'm not sure on how the iPad cellular uses its 3g functionality. Do I need to insert my phone sim card into the iPad everytime I want to connect to the web using the 3g network? or Can the iPad use my blackberry phone as a modem to connect to the int

  • F110 : How to group payments by assignement field (ZUONR)

    Hi, I have created a Grouping key '02' and I assigned this grouping key to a vendor for which I will run a payment program. In customizing I assigned field1 ZUONR (Assignement) to my Grouping key '02' I run Tcode F110 to pay 3 invoices : Invoice 1 :

  • Case or Decode ?

    Oracle 11.2.3.0 Ok, here is the situation. on a view, there is a column called 'DUE_DATE'. What I want to do is via some logic (using case or decode I presume) depending on how many days there is between sysdate (todays date) and the DUE_DATE. to out

  • Migration to mac from linux

    I've been a linux user since 1998. I think I'm done. Weighing all the options I really think I'm headed for a Mac Mini. I'm waiting for the Haswell refresh and I have a friend who works for Apple who is going to help me out with the Friends and Famil

  • HT204053 the maximum number of free accounts have been activated on this iphone whit i do

    Please tell me what i do