Data Source Lookup fails

The problem is that I get an class cast exception when doing a data source lookup. I need to know why this is happening and what can be done to avoid the exception. I have provided the following sections to document the run time environment:
1.     The stack trace from Jdeveloper
2.     The code that is run
3.     The web.xml file for the application
4.     The data source definition
Thanks in advance for the help!!!!
The stack trace from Jdeveloper :
Process exited.
C:\oracle\jdev903\jdk\bin\javaw.exe -ojvm -classpath C:\oracle\jdev903\j2ee\home\oc4j.jar -Dhttp.proxyHost=http -Dhttp.proxyPort=80 -Dhttp.nonProxyHosts= -Xverify:none -Doracle.j2ee.dont.use.memory.archive=true com.evermind.server.OC4JServer -config C:\oracle\jdev903\jdev\system9.0.3.1035\oc4j-config\server.xml
[Starting OC4J using the following ports: HTTP=8996, RMI=23891, JMS=9227.]
[waiting for the server to complete its initialization...]
m_dataSourceName = oracle.jdbc.pool.OracleConnectionPoolDataSource/default/jdbc/DBConn
Embedded OC4J startup time: 2574 ms.
Target URL -- http://172.17.36.54:8996/design-pcat-context-root/ProcessCatagory.jsp
Error creating the ORB :
Oracle9iAS (9.0.3.0.0) Containers for J2EE initialized
Entered doUpdates()
Trace ID: 1044899698135 Date:1/10/2003 Time: 11:54:58:135 AM
fsweb.util.FsException
Cause:
java.lang.ClassCastException: com.evermind.sql.OrionCMTDataSource
     void fsweb.product.ProcessCatalogCategoryThread.doUpdates()
          ProcessCatalogCategoryThread.java:54
     void ProcessCatagory.jspService(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)
          ProcessCatagory.jsp:10
     void oracle.jsp.runtime.HttpJsp.service(javax.servlet.ServletRequest, javax.servlet.ServletResponse)
          HttpJsp.java:139
     void oracle.jsp.runtimev2.JspPageTable.service(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse, java.lang.String)
          JspPageTable.java:317
     void oracle.jsp.runtimev2.JspServlet.internalService(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)
          JspServlet.java:465
     void oracle.jsp.runtimev2.JspServlet.service(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)
          JspServlet.java:379
     void javax.servlet.http.HttpServlet.service(javax.servlet.ServletRequest, javax.servlet.ServletResponse)
          HttpServlet.java:853
     void com.evermind.server.http.ServletRequestDispatcher.invoke(javax.servlet.ServletRequest, javax.servlet.ServletResponse)
          ServletRequestDispatcher.java:721
     void com.evermind.server.http.ServletRequestDispatcher.forwardInternal(javax.servlet.ServletRequest, javax.servlet.http.HttpServletResponse)
          ServletRequestDispatcher.java:306
     boolean com.evermind.server.http.HttpRequestHandler.processRequest(com.evermind.server.ApplicationServerThread, com.evermind.server.http.EvermindHttpServletRequest, com.evermind.server.http.EvermindHttpServletResponse, java.io.InputStream, java.io.OutputStream, boolean)
          HttpRequestHandler.java:767
     void com.evermind.server.http.HttpRequestHandler.run(java.lang.Thread)
          HttpRequestHandler.java:259
     void com.evermind.server.http.HttpRequestHandler.run()
          HttpRequestHandler.java:106
     void EDU.oswego.cs.dl.util.concurrent.PooledExecutor$Worker.run()
          PooledExecutor.java:803
     void java.lang.Thread.run()
          Thread.java:484
The code that is run:
public void doUpdates()
Connection con = null;
OracleDataSource ds = null;
try
System.out.println("Entered doUpdates()");
Context ctx = new InitialContext();
ds = (OracleDataSource)ctx.lookup("jdbc/DBConn");
con = ds.getConnection();
ds = ds;
catch(Throwable t)
{ handleException(t); }
finally
if(con != null)
try { con.close(); }
catch(Throwable t) { handleException(t); }
System.out.println("Exit doUpdates()");
The web.xml file for the application:
<?xml version = '1.0' encoding = 'windows-1252'?>
<!DOCTYPE web-app PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN" "http://java.sun.com/dtd/web-app_2_3.dtd">
<web-app>
<description>Empty web.xml file for Web Application</description>
<session-config>
<session-timeout>30</session-timeout>
</session-config>
<mime-mapping>
<extension>html</extension>
<mime-type>text/html</mime-type>
</mime-mapping>
<mime-mapping>
<extension>txt</extension>
<mime-type>text/plain</mime-type>
</mime-mapping>
<welcome-file-list>
<welcome-file>index.jsp</welcome-file>
<welcome-file>index.html</welcome-file>
</welcome-file-list>
</web-app>
The data source definition:
Location:
C:\Program Files\Common Files\System\MAPI\1033\nt>C:\oracle\jdev903\jdev\system9
.0.3.1035\oc4j-config\data-sources.xml
Contents:
<?xml version="1.0" standalone='yes'?>
<!DOCTYPE data-sources PUBLIC "Orion data-sources" "http://xmlns.oracle.com/ias/dtds/data-sources.dtd">
<data-sources>
     <data-source
          class="com.evermind.sql.DriverManagerDataSource"
          name="OracleDS"
          location="jdbc/OracleCoreDS"
          xa-location="jdbc/xa/OracleXADS"
          ejb-location="jdbc/OracleDS"
          connection-driver="oracle.jdbc.driver.OracleDriver"
          username="scott"
          password="tiger"
          url="jdbc:oracle:thin:@localhost:5521:oracle"
          inactivity-timeout="30"
     />
<data-source
     class="oracle.jdbc.pool.OracleConnectionPoolDataSource"
     name="DBConn"
     location="jdbc/DBConn"
     xa-location="jdbc/xa/DBConn"
     ejb-location="jdbc/DBConn"
     connection-driver="oracle.jdbc.driver.OracleDriver"
     password="bc4j"
     username="bc4j"
     url="jdbc:oracle:thin:@nemesis:1521:fsweb"
     inactivity-timeout="30"
     min-connections="0"
     max-connections="10">
</data-source>
</data-sources>

The datasource defintion is for oc4j datasources whereas the code is trying to cast it to oracle datasource implementation. Use the datsource interface instead to get the connection. I.e
Change the lookup code to
javax.sql.DataSource ds = (javax.sal.DataSource)ctx.lookup(..);
ds.getConnection();
Dhiraj

Similar Messages

  • Custom SharePoint 2010 designer page throws "The data source control failed to execute the insert command" exception while adding the new item after the August 13, 2013 CU has installed

    We have the SharePoint Server 2010 with SP1 environment on which the custom SP2010 designer pages were working as expected before the
    August 13, 2013 CU has installed. But, getting the below exception while trying to add the new item after the CU has installed.
    Error while executing web part: System.NullReferenceException: Object reference not set to an instance of an object.     at Microsoft.SharePoint.WebControls.SPDataSourceView.ExecuteInsert(IDictionary values)     at
    System.Web.UI.DataSourceView.Insert(IDictionary values, DataSourceViewOperationCallback callback) 3b64c3a0-48f3-4d4a-af54-d0a2fc4553cc
    06/19/2014 16:49:37.65  w3wp.exe (0x1240)                        0x1300 SharePoint Foundation        
     Runtime                        tkau Unexpected Microsoft.SharePoint.WebPartPages.DataFormWebPartException: The data source control
    failed to execute the insert command. 3b64c3a0-48f3-4d4a-af54-d0a2fc4553cc    at Microsoft.SharePoint.WebPartPages.DataFormWebPart.InsertCallback(Int32 affectedRecords, Exception ex)     at System.Web.UI.DataSourceView.Insert(IDictionary
    values, DataSourceViewOperationCallback callback)     at Microsoft.SharePoint.WebPartPages.DataFormWebPart.FlatCommit()     at Microsoft.SharePoint.WebPartPages.DataFormWebPart.HandleOnSave(Object sender, EventArgs e)    
    at Microsoft.SharePoint.WebPartPages.DataFormWebPart.RaisePostBackEvent(String eventArgument)     at System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument)     at System.Web.UI.Page.ProcessRequestMain(Boolean
    inclu... 3b64c3a0-48f3-4d4a-af54-d0a2fc4553cc
    06/19/2014 16:49:37.65* w3wp.exe (0x1240)                        0x1300 SharePoint Foundation        
     Runtime                        tkau Unexpected ...deStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) 3b64c3a0-48f3-4d4a-af54-d0a2fc4553cc
    I have tried changing the "DataSourceMode" as below, now the insert command is working, but update command is not working.
    <SharePoint:SPDataSource runat="server" DataSourceMode="ListItem" />
    Also, the lookup dropdown fields are displaying the value as "<a href="Daughterhttp://cpsp10/sites/Employees/_layouts/listform.aspx?PageType=4&ListId={8F62F444-FB6A-4F03-9522-C4696B45DCD1}&ID=10&RootFolder=*">Daughter</a>"
    instead of only "Daughter".
    Please provide the solution to get rid of this issue.
    Thanks
    Ramasubbu

    Try below:
    http://social.technet.microsoft.com/Forums/en-US/ae910269-3a0c-4506-844b-e8bc89d95b71/data-source-control-failed-to-execute-the-insert-command
    http://blog.jussipalo.com/2012/01/sharepoint-2010-data-source-control.html
    While there can be many causes for this generic error message, in my case the first parameter or ddwrt:DataBind function inside the SharePoint:FormFields element was
    'i' and I was working with an Edit Form. Changing it to
    'u' as it was with every other FormField fixed the issue.
    <SharePoint:FormField runat="server" id="ff1{$Pos}" ControlMode="Edit" FieldName="Esittaja" __designer:bind="{ddwrt:DataBind('u',concat('ff1',$Pos),'Value','ValueChanged','ID',ddwrt:EscapeDelims(string(@ID)),'@Esittaja')}"
    />
    Explanation:
    DataBind operation type parameters (the first parameter) are listed below:
    'i' stands for INSERT,
    'u' stands for UPDATE,
    'd' stands for DELETE.
    http://webcache.googleusercontent.com/search?q=cache:d9HHY4I7omgJ:thearkfloats.blogspot.com/2014/03/sharepoint-2010-data-source-control.html+&cd=4&hl=en&ct=clnk&gl=in
    If this helped you resolve your issue, please mark it Answered

  • Data source control failed to execute the insert command

    I have a sign up training calendar that runs on sharepoint 2010, over the weekend i went to install the latest cumulative update http://support.microsoft.com/kb/2817552 and it seems to have broken the signup process. Whenever some goes to sign up for an
    event they see the following error what can i do to fix this?
    Error
    The data source control failed to execute the insert command. d8b915be-5355-4d63-97bb-c9cf3aacad75
    Web Parts Maintenance Page: If you have permission, you can use this page to temporarily close Web Parts or remove personal settings. For more information, contact your site administrator.
    Troubleshoot issues with Microsoft SharePoint Foundation.
    Correlation ID: d8b915be-5355-4d63-97bb-c9cf3aacad75
    Date and Time: 7/31/2013 9:51:25 PM

    0
    Vote
    Thanks!!!
    It worked for me too

  • The data source control failed to execute the insert command

    Hi,
      We have installed SharePoint 2010 on Windows Server 2008 Enterprise Edition. We've started using the "Employee Training Scheduling and Materials" template that is available at
    http://www.microsoft.com/government/en-us/campaigns/Pages/SharePoint-Templates.aspx. Till last friday (17th Oct,2013) everything was working fine, but after that we are getting an error "The data source failed to execute the insert command"
    when I click on the "Save" button available on the Registrations.aspx. Could any one help me resolve this issue?
    Kinldy revert if you need more details.
    Though I see many posts regarding this, most of them are associated with Windows Server 2008 R2. So, most of the hot fixes mentioned there could not help me.
    Your help me is greatly appreciated. Thanks for taking time to go through this post.
    Thanks and Regards
    Praveen.
    Thanks and Regards Praveen.

    I have the exact same problem. I updated the 2007 Employee training template to the 2010 version and then 2 months ago, presumably when our Sharepoint had the July 10th patch 14.0.7102.5004 applied, it all broke. An attempt to register for a class always
    comes back with "Failure to execute insert command".
    I tried changing the DateSourceMode from "ListItem" to "List"  that gets rid of the error but does NOT update the registrations list.
    Anyone have any success fixing this?

  • OPA Data Source Connector failed to run on Linux server

    When I run data source connector for java on linux server using:
    java -Xms512m -Xmx512m -classpath "/usrfile/OPA/DataSourceConnector/lib/determinations-engine.jar:/usrfile/OPA/DataSourceConnector/lib/log4j-1.2.15.jar:/usrfile/OPA/DataSourceConnector/lib/sqlitejdbc-v044-native.jar:/usrfile/OPA/DataSourceConnector/lib/determinations-data-source-connector.jar:/usrfile/OPA/DataSourceConnector/lib/jsr173_api.jar:/usrfile/OPA/DataSourceConnectorlib/sjsxp.jar" com.oracle.determinations.connector.DataSourceConnector /usrfile/OPA/DataSourceConnector/data/DEMO3/run/DEMO3.xml -debug
    I got the following error message.So I think the path “..\conf\configuration.xsd” is hard coded and it raised this error. The detail error log is:
    27-12-2010, 11:35:20, INFO , Processing file /usrfile/OPA/DataSourceConnector/data/DEMO3/run/DEMO3.xml.
    27-12-2010, 11:35:20, ERROR, /usrfile/OPA/DataSourceConnector/bin/..\conf\configuration.xsd (No such file or directory)
    org.xml.sax.SAXException: /usrfile/OPA/DataSourceConnector/bin/..\conf\configuration.xsd (No such file or directory)
    at gnu.xml.validation.xmlschema.XMLSchemaSchemaFactory.newSchema(libgcj.so.7rh)
    at javax.xml.validation.SchemaFactory.newSchema(libgcj.so.7rh)
    at javax.xml.validation.SchemaFactory.newSchema(libgcj.so.7rh)
    at com.oracle.determinations.connector.schema.validation.Validate.compileSchema(Unknown Source)
    at com.oracle.determinations.connector.schema.validation.ValidateSAXStream.<init>(Unknown Source)
    at com.oracle.determinations.connector.XMLTools.validateXML(Unknown Source)
    at com.oracle.determinations.connector.Configuration.<init>(Unknown Source)
    at com.oracle.determinations.connector.DataSourceConnector.kickOff(Unknown Source)
    at com.oracle.determinations.connector.DataSourceConnector.main(Unknown Source)
    Caused by: java.io.FileNotFoundException: /usrfile/OPA/DataSourceConnector/bin/..\conf\configuration.xsd (No such file or directory)
    at gnu.java.nio.channels.FileChannelImpl.open(libgcj.so.7rh)
    at gnu.java.nio.channels.FileChannelImpl.<init>(libgcj.so.7rh)
    at gnu.java.nio.channels.FileChannelImpl.create(libgcj.so.7rh)
    at java.io.FileInputStream.<init>(libgcj.so.7rh)
    at gnu.java.net.protocol.file.Connection.connect(libgcj.so.7rh)
    at gnu.java.net.protocol.file.Connection.getInputStream(libgcj.so.7rh)
    at java.net.URL.openStream(libgcj.so.7rh)
    at gnu.xml.validation.xmlschema.XMLSchemaSchemaFactory.getDocument(libgcj.so.7rh)
    at gnu.xml.validation.xmlschema.XMLSchemaSchemaFactory.newSchema(libgcj.so.7rh)
    ...8 more
    I have checked the file path using following command:
    [root@bjx4 ~]# more /usrfile/OPA/DataSourceConnector/bin/..\conf\configuration.xsd
    /usrfile/OPA/DataSourceConnector/bin/..confconfiguration.xsd: No such file or directory
    [root@bjx4 ~]# more /usrfile/OPA/DataSourceConnector/bin/../conf/configuration.xsd
    <?xml version="1.0" encoding="UTF-8"?>
    <xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns="http://oracle.co
    m/determinations/connector/data-source" targetNamespace="http://oracle.com/deter
    minations/connector/data-source" elementFormDefault="qualified" version="10.0.0:
    20091013" xml:lang="en">
    <xsd:element name="configuration" type="configuration-type"/>
    <xsd:complexType name="configuration-type">
    <xsd:sequence>
    <xsd:element name="threads" type="threads-type" minOccurs="0" maxOccurs
    ="1"/>
    <xsd:element name="run-limit" type="run-limit-type" minOccurs="0" maxOc
    curs="1"/>
    <xsd:element name="time-out" type="time-out-type" minOccurs="0" maxOccu
    rs="1"/>
    <xsd:element name="unknown-value" type="unknown-type" minOccurs="0" max
    Occurs="1"/>
    <xsd:element name="uncertain-value" type="uncertain-type" minOccurs="0"
    maxOccurs="1"/>
    <!-- required elements -->
    <xsd:element name="data-sources" type="data-sources-type" minOccurs="1"
    maxOccurs="1"/>
    <xsd:element name="data-mappings" type="data-mappings-type" minOccurs="
    1" maxOccurs="1"/>
    [root@bjx4 ~]# more /usrfile/OPA/DataSourceConnector/bin/..\conf\configuration.xsd
    /usrfile/OPA/DataSourceConnector/bin/..confconfiguration.xsd: No such file or directory
    [root@bjx4 ~]# cls
    -bash: cls: command not found
    [root@bjx4 ~]# clear
    [root@bjx4 ~]# more /usrfile/OPA/DataSourceConnector/bin/..\conf\configuration.xsd
    /usrfile/OPA/DataSourceConnector/bin/..confconfiguration.xsd: No such file or directory
    [root@bjx4 ~]# more /usrfile/OPA/DataSourceConnector/bin/../conf/configuration.xsd
    <?xml version="1.0" encoding="UTF-8"?>
    <xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns="http://oracle.com/determinations/connector/data-source" targetNamespace="http://oracle.com/determinations/connector/data-source" elementF
    ormDefault="qualified" version="10.0.0:20091013" xml:lang="en">
    <xsd:element name="configuration" type="configuration-type"/>
    <xsd:complexType name="configuration-type">
    <xsd:sequence>
    <xsd:element name="threads" type="threads-type" minOccurs="0" maxOccurs="1"/>
    <xsd:element name="run-limit" type="run-limit-type" minOccurs="0" maxOccurs="1"/>
    <xsd:element name="time-out" type="time-out-type" minOccurs="0" maxOccurs="1"/>
    <xsd:element name="unknown-value" type="unknown-type" minOccurs="0" maxOccurs="1"/>
    <xsd:element name="uncertain-value" type="uncertain-type" minOccurs="0" maxOccurs="1"/>
    <!-- required elements -->
    <xsd:element name="data-sources" type="data-sources-type" minOccurs="1" maxOccurs="1"/>
    <xsd:element name="data-mappings" type="data-mappings-type" minOccurs="1" maxOccurs="1"/>
    <xsd:element name="output" type="output-type" minOccurs="1" maxOccurs="1"/>
    </xsd:sequence>
    </xsd:complexType>
    <!-- threads -->
    <xsd:complexType name="threads-type">
    <xsd:attribute name="value" type="xsd:integer" use="required">
    </xsd:attribute>
    </xsd:complexType>
    <!-- run-limit -->
    <xsd:complexType name="run-limit-type">
    <xsd:attribute name="value" type="xsd:integer" use="required">
    </xsd:attribute>
    </xsd:complexType>
    <!-- time-out -->
    <xsd:complexType name="time-out-type">
    <xsd:attribute name="value" type="xsd:integer" use="required">
    </xsd:attribute>
    </xsd:complexType>
    <!-- unknown value -->
    <xsd:complexType name="unknown-type">
    <xsd:attribute name="value" type="xsd:string" use="required">
    </xsd:attribute>
    </xsd:complexType>
    <!-- uncertain value -->
    <xsd:complexType name="uncertain-type">
    <xsd:attribute name="value" type="xsd:string" use="required">
    </xsd:attribute>
    </xsd:complexType>
    More(24%)
    Please help to resolve this problem, any suggestion is appreciate.

    We have confirmed this as a limitation in the current version 10.2.0 of the software, and earlier versions. We will provide more information on the timing and availability of a fix in the future.

  • Change crystal report data source dynamically failed with multi tables report

    hello all
    i have many reports created by someone else on his own machine using same database file i use
    my application use Visual studio 2013 win form with crystal report pack 9
    i use rpt files provided to me
    connect database use OLEDB
    to show form i use below code
    SQLstr = " select what ever  from  table "                      ' defined as Public
    reportName = rpt file path & report name
    showReport()
    public sub showReport()
    reportTable.clear()                                                       ' defined as Public
    DBAdapter = new oleDpdataAdapter(SQLstr,DBconnection)
    DBAdapter.fill(reportTable)
    dim rptDoc as new Crystaldesicin.crystalreports.Engine.ReportDocument
    rptDoc.load(reportName)
    rptDoc.setdatasource(reportTable)
    formRpt.RptViewer.reportsource = rptDoc
    formRpt.showdialog()
    now
    when i use one table report with (select from one table) >>>>> works perfectly
    but when i use report retrieve data from 2 tables and group   data like using
    SQLstr = " select 'table'.'coulumn', 'table2'.'column' ....... etc
    from 'table1'
    INNER JOIN 'table2' ON 'table'.'coulumn' = 'table2'.'column'
    it's not working and formrpt shown but asking for database login
    I noted that in database login window : server name refer to ORIGINAL DATABASE USED BY Report Creator not to my local database
    ================================================
    i tried to set
    rptDoc.datasourceconnection.item(0).setconnection("","databse file path and name", False)
    rptDoc.datasourceconnection.item(0).setlogin("admin","")
    but the same
    using dataset instead of reportTable the same error
    ================================================
    what i missed in this type of reports?
    ( apologize about long take and poor English )

    Hi
    Please have a look at the wiki Troubleshooting Issues with VS .NET Datasets and Crystal Reports.
    - Ludek
    Senior Support Engineer AGS Product Support, Global Support Center Canada
    Follow us on Twitter

  • 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 (!?!?!!?)

  • Weblogic Server 10.3.6.0.8 one of data sources failing while other 6 not

    Hello,
    I have 7 data sources connecting to the same database schema. After I upgraded the environment (production) day before yesterday evening I noticed one of the data sources start failing with exception below:
    "Connection test failed with the following exception: weblogic.common.resourcepool.ResourceUnavailableException: No resources currently available in pool ePayBatchDS to allocate to applications.
    Either specify a time period to wait for resources to become available, or increase the size of the pool and retry.."
    The data source capacity size is Min:1 Max:30, I increased to be as 1-50, after change it is worked for 15 minutes then it back again giving the same error message above. Please not that I have in production two servers as high availability approach however I upgraded one of them till now only and the same data source in the old server not failing.
    Please advise.
    Old Environment Specifications:
    Weblogic Server version: 10.3.4.0
    OS: Sun OS10 SPARC 64-bit
    JDK: 1.6.0 update 32 64-bit
    New Environment Specifications:
    Weblogic Server version: 10.3.6.0.8
    OS: Solaris 11.1 (64-Bit Mode) SRU 20 (18 June 2014 patchset).
    JDK: 1.7.0 update 55 64-bit
    Thanks,
    Mohd.

    Hii,
               No resources currently available in pool ePayBatchDS to allocate to applications.
    This exception cleaarly shows the connection are not available to allocate to ePayBatchDS  datasource.
    As you said there are altogether 7 data source out which six are working and one is not.
    In general if you are creating a datasource and providing a connection pool size we should consider the number of connection available or allowed at the database side as well.
    Please cross check at the DB side the number of connection available and based on that try to tune the connection pool size in your data sources.
    Regards,
    Abdul

  • Data Federator data source not available causes Universe Connection error

    I created a Data Federator project that connects to 20 servers across US and Canada.  All data sources are SQL Server 2005.  The DF project maps 40 source objects into 4 target objects.  I created a universe based on the DF project and we have been quite pleased with Webi query response.  Today one of the source servers was taken off line and this generated a connection error when trying to access the universe (not trying to access the data source that failed).  We do not want the universe connection to error when one source server is not available u2013 is that possible?
    If the answer is no then I see us abandoning what appears to be a great solution for real time distributed reporting and resorting to ETL and moving data.

    Hi Chapman,
    Can you be little elobrate on what you have done to solve the issue.
    Thanks,
    Dayanand

  • Data sources (ODBC) config -MS SQL Server linking

    OS -WS2008 R2-64
    I realize that the problems I'm experiencing are not one’s everyday’s activities and are falling quite astray of the regular Oracle dba work.
    There is no other place to post but here as the MS SQL Server forums were not able to provide any solution so far.
    I hope somebody could have experienced similar issues and could have solutions or at least to point to the right direction.
    The box has a MS SQL Server 2008 that has to be linked with an Oracle 10g database on a different box(SunOS 5.10).
    The source for the ODBC drivers supposed to be Oracle Client + ODAC.
    The simple scenario of linking SQL Server to Oracle got developed into an ugly battle with Oracle drivers to be recognized by the SQL Server.
    Numerous installations-de-installations of the Oracle Client 10g + ODAC and Oracle Client 11 + ODAC led to nowhere.
    The major points of failures are:
    1. The OracleMTS Recovery Service gets broken and can not start - the installation of ODAC fails.
    Following the Metalink: Recreating Oracle MTS Recovery Service [ID 836137.1]
    fails even with domain admin account - "access denied".
    2. In case when the Oracle Client + ODAC get a successful installation:
    -     no effort could make the oracle drivers to ne recognized by the SQL server.
    Even with config of Data Sources (ODBC) and successful connection test against the Oracle databases -> there is no way to have the oracle OraOLEDB.Oracle listed in the SQL Server dropdown window with available drivers.
    3. Data Sources (ODBC) - fail to initiate reporting bogus reasons.
    As there are 32 and 64 bit of applications (ODBC Managers) and corresponding – or not – drivers------ there is a reportedly confusion over the forums which drivers are for which OS.
    The bottom line is – linking fails (something I have done successfully before).
    I have the feeling there is something wrong with our environments, but have no way to prove it.
    I’m posting with a little hope for help.
    Thx,

    WS2008 is 64 bit
    MS SQL Server 2008 is 64-bit
    Solaris is 64-bit
    Oracle is 64-bit
    Oracle's OLE DB - as OraOLEDB.Oracle
    or Microsoft OLE DB Provider for ODBC Drivers (MSDASQL) .
    The road block is that I can not configure a Data Sources (ODBC) - System DSN with any of OraOLEDB.Oracle or MSDASQL because they are not listed on the list of available drivers!!!!
    Source for OraOLEDB.Oracle has to be the Client11g - ODAC installation. - at no avail
    Source for MSDASQL should be the OS by itself as the driver is built in. - at no avail
    (the SQL server recognizes the MSDASQ - listed under Linked servers providers).
    As per the information from Microsoft and other forums - the mess is based upon 32 - 64 bit applications and drivers; on the way the installations were done.
    Even the server administrator advises for a new installation.
    Thx,

  • Data Source Level SRS (SSRS) Issue - Permissions granted to user... are insufficient for performing this operation. (rsAccessDenied)

    I've inherited a bit of a security issue and would appreciate any insight.  
    The bottom line is that I have a user than can run one report from folder "X", but not the report next to it.
    Here is the problem context.  The names are changed to protect the innocent.  Sharepoint is not involved.
    The SSRS Home Folder has Security "Group or User" of "DomainX\SSRS_Browsers"   with Role(s) "Browser"
    "SSRS_Browsers" is an AD group.  The user with the issue (DomainX\UnhappyUser) is a member of this group.
    The user is able to navigate to folder "X" (one level below Home) and run Report "A" successfully.  But, when they try to run report "B", they get: 
    "An error has occurred during report processing. (rsProcessingAborted)  The permissions granted to user "DomainX\UnhappyUser" are insufficient for performing this operation. (rsAccessDenied)
    The difference between report "A" that works, and report "B" that doesn't is that report "B" references a data set from a different data source.
    Both reports reference DataSource1.  The failing report additionally references DataSource2.   The SSRS logs confirm this is where the problem is:
    ERROR: Throwing Microsoft.ReportingServices.Diagnostics.Utilities.AccessDeniedException: , Microsoft.ReportingServices.Diagnostics.Utilities.AccessDeniedException: The permissions granted to user 'DomainX\UnhappyUser' are insufficient for performing this operation.;
    processing!ReportServer_0-34!c58!07/16/2014-16:45:41:: e ERROR: An exception has occurred in data set 'DataSource2'. blah blah blah
    Both data sources have "stored" credentials with the same AD user: "DomainX\SSRS_Reports".  Both data sources reference the same instance of SQL Server.  They do have different "Initial Catalog" values.  (DatabaseA
    and DatabaseB).  I can run both reports successfully, but I more authority.
    "SSRS_Reports" is defined as a "Login" user under "Security" in SSMS at the instance level.  The Server Role is "public".
    DatabaseA (which is behind the data source that works) has Security->Users->DomainX\DataBaseA_Readers.   This is an AD group, that includes has "SSRS_Reports" as a member.
    DataBaseA_readers (in SQL Server, at the DatabaseA level) is a member of role db_datareader.
    DataBaseB (which is behind the data source that fails) has Security->Users->DomainX\DataBaseB_Readers.  This is also an AD group, that includes "SSRS_Reports" as a member.
    DataBaseA_readers (in SQL Server, at the DatabaseB level) is a member of role db_datareader.
    Does anyone have any insights as to where my problem may be?
    Thank you.  Sorry for the verbosity.  

    Hi Steve,
    After testing the issue in my local environment, I can reproduce it. The Home Folder has Security for "DomainX\SSRS_Browsers" group with "Browser" Role, the folder “X” and Report “A” security is inherited from its parent item, but the Report “B” Item security
    is not inherited from its parent item. In this way, the DomainX\UnhappyUser has insufficient permission to render the Report “B”.
    So, please try to check the Security page of Report “B” and compare it with Report “A” security settings. If possible, we can click “Revert to Parent Security” button to replace all the defined security settings with the security settings of its parent folder
    ”X”.
    Hope this helps.
    Thanks,
    Katherine Xiong
    Katherine Xiong
    TechNet Community Support

  • JNDI failure. Unable to lookup Data Source

    Dear all
    I'm running my ADF application from the jdeveloper integrated web logic server and every thing is ok.
    My project contains BC and a bounded tasklflow that contains two views.
    the problem happened when I changed the connection type of the application module from "JDBC Datasource" to "JDBC URL".
    The name of the jdbc url is "jdbc/pmsDS"
    I made this because I want to deploy my application to weblogic server and I created a datasource with the same name "jdbc/pmsDS" in weblogic server.
    I tried to test and run the application on my local jdeveloper , it fails and this error occurs
    oracle.jbo.DMLException: JBO-27200: JNDI failure. Unable to lookup Data Source at context jdbc/pmsDS
    Can any one plese tell me what is the problem. Whay my application can not identify the JNDI.
    Thanks

    user answer here,
    What does this message mean?
    No credential mapper entry found for password indirection user =hr Issue:-
    http://madnanhashmi.blogspot.com/2010/05/weblogiccommonresourceexception.html
    Edited by: Erp on Oct 20, 2011 4:50 AM

  • Creating new Data Source Error - Database connection Failed

    Successfully installed and configured 11.1.1.3.0. Planning and Essbase dev.
    Went to Workspace > Administer > Classing Planning Administration > Manage Data Sources > Create Data Source.
    Entered all info about the application database , etc. Getting error "The database connection failed" (I was able to connect with no problem during the install)
    SQL server 2005 is on the same physical server.
    The diagnostic tool shows database connection passed for planning. A new database was created for the new application.
    The server event viewer shows these errors.
    "Login failed for user 'xxx-hyperion'. The user is not associated with a trusted SQL Server connection."
    Group Policy Error "The client-side extension could not apply computer policy settings for 'Default Domain Policy {xxx}' because it failed with error code '0x80070003 The system cannot find the path specified.' See trace file for more details. "
    The Group Policy client-side extension Group Policy Services failed to execute. Please look for any errors reported earlier by that extension.
    Any help is appreciated.

    Datasource for the application.
    I have created a sql db for this planning application (my datasource). See my first message for more details.
    When you create a new planning application, you need to associate it with a data source. Since this is a new install, I don't have any data sources available yet.
    So, "To create, edit or delete data sources, click Manage Data Source."
    This page lets you validate your connection to the database and essbase server. My essbase server connection validates! The database connection does not validate after I enter all the relevant information.
    SCREEN INFO BELOW
    Fields displayed with an asterisk (*) are mandatory.
    Data Source Name *:
    Data Source Description:
    Select Database Platform
    Microsoft SQL Server
    Application Database
    Server * :
    Port * :
    Database *:
    User *:
    Password *:
    Click "Validate Database Connection"
    ERROR ---> Database connection failed.
    So it does not let me create a data source for my new planning application, so I cannot create a new planning application.
    Thanks in advance.

  • SQL Agent Job failing - not using credentials in the config file for Data source

    Hi
    We have an SSIS pkg, that is secheduled as SQL Agent job using proxy account. The pkg contanins data source for connecting different SQL servers and the proxy account do not have access to the external DBs. The data source credentials are stored in the Config
    file.
    Why the job is not using the credentials in the config file and try to use the proxy account and failing.
    Do the proxy account need access to all the external dbs in the pkg, and then what is the purpose of the config file.
    I am sorry, i am not SSIS person trying to understand. If any one can explain tha will be great!!
    Thank you!
    VR

    Please take a look at these URLs:
    Schedule a Package by using SQL Server Agent
    SSIS package does not run when called from a SQL Server Agent job step
    Cheers,
    Saeid Hasani
    Database Consultant
    Please feel free to contact me at [email protected] as well as on Twitter and Facebook.
    [My Writings on TechNet Wiki] [T-SQL Blog] [Curah!]
    [Twitter] [Facebook] [Email]

  • Excel 2007 = Refresh All = Error Message "Initialization Data Source Failed"

    Excel 2007 => Data Tab - Refresh All => Error Message "Initialization Data Source Failed
    2nd Error message:
    The following data ranged failed to refresh:  ExternalData1 - Continue to refresh all
    How do I resolve this? Trying to connect to Oracle DB environment 12C

    What will happen if you rebuild the PivotTable/Table ?
    Make sure the external database is available and the Oracle Provider for OLE DB is installed correctly.
    Wind Zhang
    TechNet Community Support

Maybe you are looking for

  • How to use a event structure with a state machine

    First, I would like to inform you that I only work on LabView part time, and have much to learn.  Anything I do learn, I usually forget until I need it again, because I only work on it part time. Using your StopWhileLoopMOD[1].vi, I am trying to put

  • Plug-in UI - Acrobat SDK9

    Hello, I have created simple plug-in to get image files from a folder to convert to PDF through programatically and I wanted to create GUI to get input parameters from user. Please anyone help me to use(Group Box, Combo box, Text Box, OK and Cancel b

  • Two EJB's, separate JARS?

    Hi, I have a MDB, consuming messages from a Q, a Java Bean and a Stateless Session Bean. The MDB has a message sent to it, consumes the message, calls the Bean and the bean then passes the Remote interface of the EJB back to the MDB. I have packaged

  • Preview app and Spaces not working

    I use Spaces with a 2 row 3 column grid, for a total of 6 spaces. I assigned Preview to Space 4 - the lower left space. Every time I double click to open a screenshot png that resides on my desktop, Spaces moves to Space 6, while opening Preview in S

  • File Format for Avid

    I've been working on Final Cut/After Effects jobs, but now I have an upcoming Avid/After Effects job.  Can someone tell me the proper file format I should output to for the Avid?  Thanks.