Error while getting a Connection from a  Datasource

hi all, m using netbeans to design a web app. it got to the point of connecting to a mysql database, i tried to follow the recommendation of using a datasource instead, and i edited the META-INF\context.xml and
WEB-INF\web.xml as follows respectively.
Here is a copy of context.xml
<?xml version="1.0" encoding="UTF-8"?>
<Context path="/MyOnlineStore">
<Resource name="jdbc/StoreDB"
type="javax.sql.DataSource"
auth="Container"
/>
<ResourceParams name="jdbc/StoreDB">
<parameter>
<name>username</name>
<value>root</value>
</parameter>
<parameter>
<name>password</name>
<value>stephanie</value>
</parameter>
<parameter>
<name>driverClassName</name>
<value>com.mysql.jdbc.Driver</value>
</parameter>
<parameter>
<name>url</name>
<value>jdbc:mysql://localhost:3306/mystore?autoReconnect=true</value>
</parameter>
</ResourceParams>
</Context>
and here is a copy of web.xml
<?xml version="1.0" encoding="UTF-8"?>
<web-app version="2.5" xmlns="http://java.sun.com/xml/ns/javaee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd">
<servlet>
<servlet-name>controller</servlet-name>
<servlet-class>com.obinna.servlets.ControllerServlet</servlet-class>
</servlet>
<servlet-mapping>
<servlet-name>controller</servlet-name>
<url-pattern>*.do</url-pattern>
</servlet-mapping>
<servlet-mapping>
<servlet-name>controller</servlet-name>
<url-pattern>/controller</url-pattern>
</servlet-mapping>
<session-config>
<session-timeout>
30
</session-timeout>
</session-config>
<welcome-file-list>
<welcome-file>controller</welcome-file>
</welcome-file-list>
<resource-ref>
<res-ref-name>jdbc/StoreDB</res-ref-name>
<res-type>javax.sql.DataSource</res-type>
<res-auth>Container</res-auth>
</resource-ref>
</web-app>
and here is a fragment of a helper class i use to retrieve connections
public class StoreJDBCHelper {
private DataSource _dataSource;
public StoreJDBCHelper() throws NamingException
Context context = new InitialContext();
Context applicationEnv = (Context)context.lookup("java:comp/env");
_dataSource = (DataSource)applicationEnv.lookup("jdbc/StoreDB");
public Connection getConnection() throws SQLException
return _dataSource.getConnection();
each time i call getConnection() from another class i get this exception
org.apache.tomcat.dbcp.dbcp.SQLNestedException: Cannot create JDBC driver of class ' ' for connect URL 'null'
at org.apache.tomcat.dbcp.dbcp.BasicDataSource.createDataSource(BasicDataSource.java:1150)
at org.apache.tomcat.dbcp.dbcp.BasicDataSource.getConnection(BasicDataSource.java:880)
at com.obinna.processingcommands.StoreJDBCHelper.getConnection(StoreJDBCHelper.java:33)
at com.obinna.processingcommands.CategoryProcessingCommand.getCategoryDB(CategoryProcessingCommand.java:85)
at com.obinna.processingcommands.CategoryProcessingCommand.getOrCreateCategory(CategoryProcessingCommand.java:58)
at com.obinna.processingcommands.CategoryProcessingCommand.execute(CategoryProcessingCommand.java:47)
at com.obinna.servlets.ControllerServlet.processRequest(ControllerServlet.java:63)
at com.obinna.servlets.ControllerServlet.doPost(ControllerServlet.java:90)
at com.obinna.servlets.ControllerServlet.doGet(ControllerServlet.java:78)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:690)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.netbeans.modules.web.monitor.server.MonitorFilter.doFilter(MonitorFilter.java:390)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:286)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)
at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)
at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
at java.lang.Thread.run(Thread.java:619)
Caused by: java.lang.NullPointerException
at sun.jdbc.odbc.JdbcOdbcDriver.getProtocol(JdbcOdbcDriver.java:507)
at sun.jdbc.odbc.JdbcOdbcDriver.knownURL(JdbcOdbcDriver.java:476)
at sun.jdbc.odbc.JdbcOdbcDriver.acceptsURL(JdbcOdbcDriver.java:307)
at java.sql.DriverManager.getDriver(DriverManager.java:253)
at org.apache.tomcat.dbcp.dbcp.BasicDataSource.createDataSource(BasicDataSource.java:1143)
... 25 more
please what can i do.
thanks.

Caused by: java.lang.NullPointerException
at sun.jdbc.odbc.JdbcOdbcDriver.getProtocol(JdbcOdbcDriver.java:507)
at sun.jdbc.odbc.JdbcOdbcDriver.knownURL(JdbcOdbcDriver.java:476)
at sun.jdbc.odbc.JdbcOdbcDriver.acceptsURL(JdbcOdbcDriver.java:307)
at java.sql.DriverManager.getDriver(DriverManager.java:253)
at org.apache.tomcat.dbcp.dbcp.BasicDataSource.createDataSource(BasicDataSource.java:1143)
... 25 moreDBCP is trying to create a datasource for you. It has the MySQL JDBC URL which you specified (jdbc:mysql://localhost:3306/mystore?autoReconnect=true) and is trying to find a matching driver. It scans all drivers which are loaded and registered in the DriverManager. The JDBC-ODBC bridge driver is apparently also loaded somehow and while testing the MySQL URL on this driver, the driver is throwing a NullPointerException while getting the protocol.
This look like one more bug in the JDBC-ODBC bridge -which is already soo full of unfixed bugs-. So to get this problem solved either remove the JDBC-ODBC bridge driver from your application, or upgrade it to a newer version without this bug (if any exist), or change the Tomcat resource configuration that no one datasource is actually using the JDBC-ODBC bridge driver, so that this driver won't get loaded and registered by the DriverManager.

Similar Messages

  • Error in Getting Database Connection from datasource

    Hi,
    I am getting the following error when I tried to get the connection from the datasource object.
    The call is made by the client proxy and the code is getting executed on the server side.
       InitialContext ic = new InitialContext();
       DataSource ods = (DataSource)ic.lookup(dataSourceJndiName);
                conn = ods.getConnection();
    ods.getConnection() is giving the following error
    Caused by: com.sap.engine.services.dbpool.exceptions.BaseSQLException: ResourceException occured in method ConnectionFactoryImpl.getConnection(): com.sap.engine.services.connector.exceptions.BaseResourceException: Not allowed to open connection!
         at com.sap.engine.services.dbpool.cci.ConnectionFactoryImpl.getConnection(ConnectionFactoryImpl.java:59)
         at com.delos.cmx.server.datalayer.DataSourceConnectionData.getDatabaseConnection(DataSourceConnectionData.java:132)
         ... 37 more
    Caused by: com.sap.engine.services.connector.exceptions.BaseResourceException: Not allowed to open connection!
         at com.sap.engine.services.connector.resource.impl.RestrictedResourceSetImpl.getSharedEventHandler(RestrictedResourceSetImpl.java:64)
         at com.sap.engine.services.connector.jca.ConnectionManagerImpl.allocateConnection(ConnectionManagerImpl.java:172)
         at com.sap.engine.services.dbpool.cci.ConnectionFactoryImpl.getConnection(ConnectionFactoryImpl.java:51)
         ... 38 more
         at com.sap.engine.services.ejb.exceptions.BaseRuntimeException.writeReplace(BaseRuntimeException.java:273)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:324)
         at java.io.ObjectStreamClass.invokeWriteReplace(ObjectStreamClass.java:896)
         at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1011)
         at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:278)
         at com.sap.engine.services.rmi_p4.DispatchImpl.throwException(DispatchImpl.java:120)
         at com.sap.engine.services.rmi_p4.DispatchImpl._runInternal(DispatchImpl.java:270)
         at com.sap.engine.services.rmi_p4.DispatchImpl._run(DispatchImpl.java:165)
         at com.sap.engine.services.rmi_p4.server.P4SessionProcessor.request(P4SessionProcessor.java:102)
         at com.sap.engine.core.service630.context.cluster.session.ApplicationSessionMessageListener.process(ApplicationSessionMessageListener.java:37)
         at com.sap.engine.core.cluster.impl6.session.UnorderedChannel$MessageRunner.run(UnorderedChannel.java:71)
         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:94)
         at com.sap.engine.core.thread.impl3.SingleThread.run(SingleThread.java:140)
    I am unable to proceed because of this error.
    I would appreciate any help on this.
    Thanks
    Kavitha

    Hi Kavitha,
    If u have not gone through the link given below then
    plz visit it, it may help u.
    http://help.sap.com/saphelp_nw04/helpdata/en/5c/2f2c4142aef623e10000000a155106/content.htm
    Regards,
    Narinder

  • Error while creating a connection from JDeveloper to OC4J instance on 9iAS

    I m trying to create a connection to the application server(9iAS release 2) from the JDeveloper(9.0.2.822) using the JDeveloper connection wizard. I followed all the steps, but when i click on "Test Connection" button to test the connection the error i get is "IO Error: Connection refused: connect". The description of the settings i provided in the wizard step are as follows,
    Step 1
    Connection name:- Connection1
    Connection Type:- Oracle 9i Application Server
    Step 2
    Username:- admin
    Password:- welcome
    Deploy Password checkbox: Unchecked
    Step 3 (the 9iAS server address is 192.168.30.162)
    URL:- ormi://192.168.30.162/
    Target Web Site:- http-web-site
    Local dir where admin.jar is installed for Oracle 9iAS is installed:- C:\ora9i_d2k\j2ee\home
    Step 4
    Test Connection: “IO Error: Connection refused: connect”
    Please advise.
    Thanks
    Unmesh

    Hi,
    You cannot connect to an Oracle9iAS environment directly using the connections node. You can only connect to an individual OC4J instance using this technique.
    You need to use Oracle9iAS Distributed Management Configuration (DCM). See JDeveloper Help under Creating Application Server Connections

  • Getting error while getting ACK back from TP

    Hi,
    When my TP is sending ack back to me I am getting following error -
    2008.12.24 at 11:06:19:672: Thread-10: B2B - (DEBUG) oracle.tip.adapter.b2b.tpa.RepoDataAccessor:getDocumentDefinition() given docTypeName: Pip3A4PurchaseOrderRequest given docTypeRev: V02.00
    2008.12.24 at 11:06:19:674: Thread-10: B2B - (DEBUG) oracle.tip.adapter.b2b.tpa.RepoDataAccessor:getDocumentDefinition() given docTypeName: Pip3A4PurchaseOrderRequest given docTypeRev: V02.00
    2008.12.24 at 11:06:19:674: Thread-10: B2B - (DEBUG) oracle.tip.adapter.b2b.tpa.RepoDataAccessor:getDocumentDefinition() reposDocTypeName: Pip3A4PurchaseOrderRequest reposDocTypeRev : V02.03.00
    2008.12.24 at 11:06:19:674: Thread-10: B2B - (DEBUG) oracle.tip.adapter.b2b.tpa.RepoDataAccessor:getDocumentDefinition() reposDocTypeName: Pip3A4PurchaseOrderConfirmation reposDocTypeRev : V02.03.00
    2008.12.24 at 11:06:19:675: Thread-10: B2B - (DEBUG) oracle.tip.adapter.b2b.tpa.RepoDataAccessor:getAgreementData() End..
    2008.12.24 at 11:06:19:675: Thread-10: B2B - (DEBUG) oracle.tip.adapter.b2b.tpa.RepoDataAccessor:getAgreementDetails() ..End
    2008.12.24 at 11:06:19:675: Thread-10: B2B - (DEBUG) oracle.tip.adapter.b2b.tpa.MessageModifier:updateDeliveryChannel() Updating DeliveryChannel information..
    2008.12.24 at 11:06:19:675: Thread-10: B2B - (DEBUG) oracle.tip.adapter.b2b.tpa.MessageValidator:validateCollaborationInfo()
    2008.12.24 at 11:06:19:676: Thread-10: B2B - (ERROR) Error -: AIP-50515: Collaboration revision "V02.03.00" in message is different from collaboration revision "V02.00" in agreement
    at oracle.tip.adapter.b2b.tpa.MessageValidator.validateCollabInfo(MessageValidator.java:298)
    at oracle.tip.adapter.b2b.tpa.MessageValidator.validateMessage(MessageValidator.java:123)
    at oracle.tip.adapter.b2b.tpa.TPAProcessor.processTPA(TPAProcessor.java:664)
    at oracle.tip.adapter.b2b.tpa.TPAProcessor.processIncomingTPA(TPAProcessor.java:196)
    at oracle.tip.adapter.b2b.engine.Engine.processIncomingMessage(Engine.java:1810)
    at oracle.tip.adapter.b2b.engine.Engine.incomingContinueProcess(Engine.java:2554)
    at oracle.tip.adapter.b2b.engine.Engine.handleMessageEvent(Engine.java:2424)
    at oracle.tip.adapter.b2b.engine.Engine.processEvents(Engine.java:2379)
    at oracle.tip.adapter.b2b.data.MsgListener.onMessage(MsgListener.java:527)
    at oracle.tip.adapter.b2b.data.MsgListener.run(MsgListener.java:374)
    at java.lang.Thread.run(Thread.java:534)
    2008.12.24 at 11:06:19:677: Thread-10: B2B - (DEBUG) oracle.tip.adapter.b2b.engine.Engine:XXX: processIncomingMessage B2BDE
    2008.12.24 at 11:06:19:677: Thread-10: B2B - (DEBUG) oracle.tip.adapter.b2b.engine.Engine:handleExceptionBeforeIncomingTPA Enter
    2008.12.24 at 11:06:19:677: Thread-10: B2B - (DEBUG) oracle.tip.adapter.b2b.engine.Engine:XXX: handleInboundException
    Our Trading Partner is using BizTalk B2B and we are using RosettaNet V02.00 as document exchange protocol. PIP Version we are using is V02.03.00
    Please help.
    Thanks & Regards,
    Anuj Dwivedi

    Hi Ramesh,
    Thanks for your prompt response.
    I am using the Document Type Pip3A4PurchaseOrderConfirmation with revision v02.03.00
    But still we are getting the same error. My trading partner is sending an Exception to us in Service Conent. Actually he is sending messages in four parts-
    =====
    Preamble
    Delivery Header
    Service Header
    Service Contents
    ======
    In which part he should provide the required properties(docTypeName and docTypeRivision) to find the right Collaboration by Oracle B2B at our side?
    Thanks.
    Warm Regards,
    Anuj Dwivedi

  • Error while getting the NotificationTemplate from NotificationService

    Hi all
    iam intrested in getting NotificationTemplate object using the NotificationService class' api using below code
       NotificationTemplate objtemplate =objNotificationService.lookupTemplate(templateName.trim(),enLocale);when i execute the above code iam getting the exception
    <Incoming message header or abbreviation processing failed
    java.io.InvalidClassException: org.eclipse.persistence.internal.helper.DatabaseTable; local class incompatible: stream classdesc serialVersionUID = -3104383536215490874, local class serialVersionUID = -8219935847209476671
    java.io.InvalidClassException: org.eclipse.persistence.internal.helper.DatabaseTable; local class incompatible: stream classdesc serialVersionUID = -3104383536215490874, local class serialVersionUID = -8219935847209476671I searched this on forums i found that it is due to different versions of the eclipselink.jar so i added the eclipselink.jar in my JDevloper's class path and also added same jar in the
    my Jdevloper's weblogic path C:\jdevweblogic11g\oracle_common\modules\oracle.toplink_11.1.1
    Still iam getting the the above exception.
    please suggest me some solution.

    Hi all
    when i run my below code as a standalone java application the code will execute fine..
    NotificationService objNotificationService =  client.getService(NotificationService.class);
    NotificationTemplate objtemplate =objNotificationService.lookupTemplate(templateName.trim(),enLocale);but when i execute the above mentioned code as a web application using ADF, JDEvloper 11.1.1.4 and weblogic server it will give me error below.
    <Jul 13, 2011 10:13:52 AM IST> <Error> <RJVM> <BEA-000503> <Incoming message header or abbreviation processing failed
    java.io.InvalidClassException: org.eclipse.persistence.internal.helper.DatabaseTable; local class incompatible: stream classdesc serialVersionUID = -3104383536215490874, local class serialVersionUID = -8219935847209476671
    java.io.InvalidClassException: org.eclipse.persistence.internal.helper.DatabaseTable; local class incompatible: stream classdesc serialVersionUID = -3104383536215490874, local class serialVersionUID = -8219935847209476671
         at java.io.ObjectStreamClass.initNonProxy(ObjectStreamClass.java:562)
         at java.io.ObjectInputStream.readNonProxyDesc(ObjectInputStream.java:1583)
         at java.io.ObjectInputStream.readClassDesc(ObjectInputStream.java:1496)
         at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1316)
         at java.io.ObjectInputStream.readObject(ObjectInputStream.java:351)
         Truncated. see log file for complete stacktrace
    >
    The exception ; ; nested exception is:
         java.rmi.UnmarshalException: Incoming message header or abbreviation processing failed ; nested exception is:
         java.io.InvalidClassException: org.eclipse.persistence.internal.helper.DatabaseTable; local class incompatible: stream classdesc serialVersionUID = -3104383536215490874, local class serialVersionUID = -8219935847209476671; nested exception is: java.rmi.UnmarshalException: Incoming message header or abbreviation processing failed ; nested exception is:
         java.io.InvalidClassException: org.eclipse.persistence.internal.helper.DatabaseTable; local class incompatible: stream classdesc serialVersionUID = -3104383536215490874, local class serialVersionUID = -8219935847209476671
    javax.ejb.EJBException: ; nested exception is: so i replace all the refrencence of eclipcselink.jar file in my weblogic enviornment with the same version which iam using.
    still iam getting that same exception mentioned above.
    so please provide me some pointers to above problem.how we can tell weblogic server to load test. jar file insted of other version of test.jar
    Thanks and Regards.
    Edited by: Bipin Patil on Jul 12, 2011 11:42 PM

  • Error while getting shipment cost from inbound delivery

    Hi all, I already make the setting according to sapnote 427944.
    I made PO with condition type FRB1 and value 0.
    Then we made the inbound delivery and shipment documents
    next while we makin shipment cost using VI01 the net value field is grey and the value is 0.
    can anyone please explain to me how can i get the value for the shipment cost? Thanks

    Hi
    On double clicking on the item level, respective item details of the material is displayed and then click SHIFT+ F6 to see the COSTCENTER in the shipement cost document.
    Configuration:
    1) In Item category configuration account assigment category is Cost Center.
    Logistics Execution>Transportation>Shipment Costs>Shipment Cost Document>Shipment Cost Types and Item Categories-->Define item categories
    2) In the Transaction code OKB9 Costcenter is assigned to the company code , in order to automate the determination of CO assignments in case of Shipment cost document creation
    Logistics Execution>Transportation>Shipment Costs>Settlement>Automatic Determination of CO Assignments
    Edited by: Bhaskar C.R on Jun 17, 2010 10:13 AM

  • Java.rmi.MarshalException when getting a Connection from DataSource

    Hi, folks!
    Whenever I try to get a Connection from a DataSource, I´ve got the following Exception:
    "java.rmi.MarshalException: CORBA MARSHAL 0 Maybe; nested exception is:
         org.omg.CORBA.MARSHAL: vmcid: 0x0 minor code: 0 completed: Maybe
    CORBA MARSHAL 0 Maybe; nested exception is:
         org.omg.CORBA.MARSHAL: vmcid: 0x0 minor code: 0 completed: Maybe
         at com.sun.corba.se.internal.iiop.ShutdownUtilDelegate.mapSystemException(ShutdownUtilDelegate.java:97)
         at javax.rmi.CORBA.Util.mapSystemException(Util.java:65)
         at weblogic.jdbc.common.internal._RemoteDataSource_Stub.getConnection(Unknown
    Source)
         at com.contratacao.model.dao.DAObasico.getConnection(DAObasico.java:42)..."
    In fact, the client can retrieve the DataSource´s stub, but just can´t get the
    Connection.
    Configuration:
    1. WLS 8.1 sp2, on Windows XP, with SUN JDK 141_05 (embbeded with WLPlatorm installer)
    2. Oracle 9.0.1 on Windows XP, connected through an Oracle JDBC thin driver
    3. java Client on Windows XP/2000, with SUN JDK 142_03 (I´ve got the same results
    with SUN JDK 141_01. I´m also using wlclient.jar.
    Do you have any idea of what is causing this behavior?
    I´d appreciate any help. Thanks in advance,
    Marcos

    "Marcos Medina" <[email protected]> writes:
    This is an FAQ. The RMI JDBC driver is not supported in the thin client.
    andy
    Hi, folks!
    Whenever I try to get a Connection from a DataSource, I´ve got the following Exception:
    "java.rmi.MarshalException: CORBA MARSHAL 0 Maybe; nested exception is:
         org.omg.CORBA.MARSHAL: vmcid: 0x0 minor code: 0 completed: Maybe
    CORBA MARSHAL 0 Maybe; nested exception is:
         org.omg.CORBA.MARSHAL: vmcid: 0x0 minor code: 0 completed: Maybe
         at com.sun.corba.se.internal.iiop.ShutdownUtilDelegate.mapSystemException(ShutdownUtilDelegate.java:97)
         at javax.rmi.CORBA.Util.mapSystemException(Util.java:65)
         at weblogic.jdbc.common.internal._RemoteDataSource_Stub.getConnection(Unknown
    Source)
         at com.contratacao.model.dao.DAObasico.getConnection(DAObasico.java:42)..."
    In fact, the client can retrieve the DataSource´s stub, but just can´t get the
    Connection.
    Configuration:
    1. WLS 8.1 sp2, on Windows XP, with SUN JDK 141_05 (embbeded with WLPlatorm installer)
    2. Oracle 9.0.1 on Windows XP, connected through an Oracle JDBC thin driver
    3. java Client on Windows XP/2000, with SUN JDK 142_03 (I´ve got the same results
    with SUN JDK 141_01. I´m also using wlclient.jar.
    Do you have any idea of what is causing this behavior?
    I´d appreciate any help. Thanks in advance,
    Marcos

  • OpenScript & ant ssh - "Cannot get a connection from helper after 120 seconds"

    Hi, I'm trying to run openscript tests (with runscript.bat file) from hudson. I'm connecting to windows XP machine through ssh and executing batch file, but execution of scipt finishes with error "Cannot get a connection from helper after 120 seconds". This error occurs when openscript tries to run test on Internet Explorer. If IE is not nescessary, test finishes with OK. When running batch directly on windows (without hudson and ssh, but on the same user) everything works fine. Has enyone met with such issue ?

    Hi,
    What Jules has suggested should work, but I have also used the following to get scripts working from OTM -
    OATS Application service - run as a user with local admin rights
    helper service - local system
    OATS agent service - set to manual
    Then, run the agent service as a console app -
    1. run a cmd prompt
    2. Run c:\> C:\OracleATS\agentmanager\bin\AgentManagerService.exe -c C:\OracleATS\agentmanager\bin\\AgentManagerService.conf
    3. Execute the script from OTM
    If the agent is running on a machine separate to OTM then the user will have to remain logged in.
    Cheers,
    Jamie

  • OTM-Cannot get a connection from helper after 120 seconds.

    Can any one tell me how to fix the problem of ,
    OTM not able to run the scripts, and getting the following error:
    "Cannot get a connection from helper after 120 seconds. "
    I have tried un-installing and installing all the services , actually its happening for helper service,but at the same time
    Its working when we use OpenScript, with out any such helper issue but when we use to run the same script using OTM , the above mentioned error message is getting displayed.
    Please let me know a solution, if any one has made a fix for this.
    Thanks in Advance
    Atish

    Hi,
    Step1: Uninstall ATS products and Oracle XE database
    Step2: Remove/Rename the following folders.
    Remove/Rename ATS install directory (e.g. C:\OracleATS).
    Remove/Rename the directory: C:\Documents and Settings\username\osworkspace (depends on your Operating System, it may look like: C:\Users\username\osworkspace)
    Remove/Rename the directory: C:\Program Files\Oracle\Inventory ( depends on your Operating System, it may look like: C:\Program Files (x86)\Oracle\Inventory)
    C:\Windows\rsw.ini
    Step3: Remove the following Services (if services exist)
    Start -> Run. Enter "cmd" Type the command: sc delete servicename
    Oracle Application Testing Suite Application Service
    Step4: Remove the Registry Keys (if exist)
    Start -> Run. Enter "regedit" to launch Registry Editor. Remove the keys below:
    HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Oracle Application Testing Suite Application Services
    HKEY_LOCAL_MACHINE\Software\Oracle\Oracle Application Testing Suite and Oracle Test Management
    Step5: Restart your System
    Step6: Install ATS with admin privilege
    Regards,
    Deepu M

  • I am unable to connect to the icloud from my windows laptop and get an error message: "Connection error: icloud encountered an error while trying to connect to the server"

    I am unable to connect to icloud from my windows-based laptop and get the following error message: "icloud encountered an error while trying to connect to the server."

    I would remove the email account from mail and then set it up again.
    If your are able to long I via owa though without the auto fill, then we already know the user name and password are correct.
    Let me know if that works.

  • Trying to setup new iCloud in system preferences and get error message: "iCloud encountered an error while trying to connect to the server."

    Here's the sequence of events:
    Setting up a new iMac.
    Migration Assistant was aborted during setup and a normal setup was completed.
    Then ran Migration Assistant from the newly setup account.
    It ran fine, but put all the data in a new account called "user".
    Renamed "user" to a new name, renamed the home folder to a new name following these instructions: OS X: How to change your account name or home directory name
    Delete the account we originally created, so just have one account with the name we want and all the data, email. Works fine.
    Sign into the App Store with the account we share for purchases.
    Now, the problem:
    Go to System Preferences to setup iCloud with a new Apple ID
    Get this error: "iCloud encountered an error while trying to connect to the server."
    So I'm unable to setup iCloud for photo stream, FaceTime, etc.
    Internet works fine, we can get mail, etc.
    Rebooting doesn't help
    Ideas?

    never mind the problem is gone this morning.

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

  • On my Mac Mini, I keep getting this error message: "iCloud encountered an error while trying to connect to the server".  I don't have any problems with iCloud on my laptop / PC.  It works fine... Does anyone know what the problem could be?

    On my Mac Mini, I keep getting this error message: "iCloud encountered an error while trying to connect to the server".  I don't have any problems with iCloud on my laptop / PC.  It works fine... Does anyone know what the problem could be?

    Your Mac must be on Lion (10.7) to run iCloud. Apple had to change the operating system to fully support it. Nevertheless, it is possible to get emails from iCloud without having Lion. Please tell me if this interests you.
    Anyways, here is the link to buy Lion (30 dollars, totally worth the upgrade ): http://itunes.apple.com/be/app/os-x-lion/id444303913?mt=12
    Franklin

  • I want to access my Icloud account through my office computer but every time I get a message saying ''iCloud encountered an error while trying to connect to the server''

    I want to access my Icloud account through my office computer but every time I get a message saying ''iCloud encountered an error while trying to connect to the server''

    My recommendation is to download Apple’s Safari version 5.1.7 for Windows to access iCloud.com. It consistently works for me!!!! To make things easier with Safari, I made iCloud.com its Homepage. I’m using it to access iCloud.com from all of my PCs.
    On my Windows 7 systems it appears that some add-ons are causing problems when you try to access iCloud.com with the 32-bit version of IE9, but the 64-bit version seems to work fine, more than likely because there are few add-ons that are 64-bit and the 64-bit version of IE9 can't be the default browser in Windows 7.

  • An error occurred while getting property "userId" from an instance of class

    Running application SRDemo (Tutorial Chapter 6 Implementing Login Security)
    After logging, the List page popped up. But no data returned. Get Error
    JBO-29000: Unexpected exception caught: oracle.jbo.JboException, msg=JBO-29000: Unexpected exception caught: java.lang.RuntimeException, msg=javax.servlet.jsp.el.ELException: An error occurred while getting property "userId" from an instance of class oracle.srdemo.view.UserInfo.
    Questions:
    1. What are possible reasons to cause the getting property "userId" problem?[
    2. Why the Login page asked User Name and Password and the program used the query with "WHERE (EMAIL = 'sking')"
    The Log file shows the select statement:
    SELECT USER_ID, FIRST_NAME, LAST_NAME, CITY, POSTAL_CODE, EMAIL, STATE_PROVINCE, COUNTRY_ID, STREET_ADDRESS, USER_ROLE FROM USERS WHERE (EMAIL = 'sking')
    [TopLink Info]: 2006.11.08 11:07:09.468--ServerSession(1235)--Thread(Thread[ApplicationServerThread-0,5,RequestThreadGroup])--SRDemoSession login successful
    [TopLink Finer]: 2006.11.08 11:07:09.468--ServerSession(1235)--Thread(Thread[ApplicationServerThread-0,5,RequestThreadGroup])--client acquired
    [TopLink Fine]: 2006.11.08 11:07:09.500--ServerSession(1235)--Connection(1925)--Thread(Thread[ApplicationServerThread-0,5,RequestThreadGroup])--SELECT USER_ID, FIRST_NAME, LAST_NAME, CITY, POSTAL_CODE, EMAIL, STATE_PROVINCE, COUNTRY_ID, STREET_ADDRESS, USER_ROLE FROM USERS WHERE (EMAIL = 'sking')
    [TopLink Finer]: 2006.11.08 11:07:09.578--ClientSession(2021)--Thread(Thread[ApplicationServerThread-0,5,RequestThreadGroup])--client released
    [TopLink Finer]: 2006.11.08 11:07:09.625--ServerSession(1235)--Thread(Thread[ApplicationServerThread-0,5,RequestThreadGroup])--client acquired
    [TopLink Fine]: 2006.11.08 11:07:09.625--ServerSession(1235)--Connection(1922)--Thread(Thread[ApplicationServerThread-0,5,RequestThreadGroup])--SELECT USER_ID, FIRST_NAME, LAST_NAME, CITY, POSTAL_CODE, EMAIL, STATE_PROVINCE, COUNTRY_ID, STREET_ADDRESS, USER_ROLE FROM USERS WHERE (EMAIL = 'sking')
    [TopLink Finer]: 2006.11.08 11:07:09.625--ClientSession(2027)--Thread(Thread[ApplicationServerThread-0,5,RequestThreadGroup])--client released
    2006-11-08 11:07:09.640 WARNING JBO-29000: Unexpected exception caught: oracle.jbo.JboException, msg=JBO-29000: Unexpected exception caught: java.lang.RuntimeException, msg=javax.servlet.jsp.el.ELException: An error occurred while getting property "userId" from an instance of class oracle.srdemo.view.UserInfo
    2006-11-08 11:07:09.640 WARNING JBO-29000: Unexpected exception caught: java.lang.RuntimeException, msg=javax.servlet.jsp.el.ELException: An error occurred while getting property "userId" from an instance of class oracle.srdemo.view.UserInfo
    2006-11-08 11:07:09.640 WARNING javax.servlet.jsp.el.ELException: An error occurred while getting property "userId" from an instance of class oracle.srdemo.view.UserInfo
    2006-11-08 11:07:11.515 WARNING rowIterator is null
    2006-11-08 11:07:11.515 WARNING rowIterator is null
    Process exited.

    Hi,
    I got the answer to my question. The tables were not populated. So I ran the script - populateSchemaTables.sql, and got the data into the tables. The error is gone!
    Lin

Maybe you are looking for

  • Can't open iphoto after complete reboot.

    Hi! My computer stoped working a while back and I had the harddrive replaced, now I can't open iphoto after importing it from time mashine. I still have the same OS X (10.6.8) on a Mac Book pro from 2009. I can't buy the new one, or update it, becaus

  • TS3212 Files missing from my Itunes

    Hi, I have tried to reinstall itunes but it keeps telling me that files are missing. It states 'Itunes drivers for importing and burning CD's and DVD's are missing. This can happen as a result of installing other CD-burning software. Please reinstall

  • PDF is not opening  in safari

    PDF is not opening in safari . I have adobe prof 9, and safari is the latest version. Now, all I get is a black window and nothing loads. what should i do? i have added ad ones to open pdf in safari, but still doesnt work

  • Just updated Tiger now my KVM wont work!!!

    I just ran the most recent update for tiger, now my Belkin KVM switch doesn't work, it did before the update, now when I switch on my G4 (g4 400 os9.2.2) it tries to cut in I can even force the monitor over but it goes right back to my mac min (G4 1.

  • Hotspot stops working with iOS6

    After updating my iPhone4 and my 3gen iPad to iOS6 I can tether to the iPad 2-3 times and then the phone says it is connected and the iPad sees the phone but the connection fail to complete. Resetting the network setting in the phone seems the only f