Intermittent Unknown Database Connector Error: "Object reference"

Don't know if I'm posting to the right forum.  Please redirect me if this post belongs elsewhere.
We use a .NET application by SunGard (Advance Web).  We have a whole bunch of Crystal reports we've deployed through this application, and they all work. . .most of the time.
We occasionally, however, find that ALL our Crystal reports return this error:
Unknown Database Connector Error Error in File C:\WINDOWS\TEMP\Report1003 {7B4DBA4D-3EA7-4545-83DB-F5A56AE945FF}.rpt: Unknown Database Connector Error
CrystalReportViewer - CrystalReportViewer1
Error: Object reference not set to an instance of an object.
If we reboot the server, the reports all work again.  But sooner or later they start to fail w/ the same error message.
We have Crystal Reports 11.5.8.826 installed on the server. 
The network service account has full read/write access to its temp directory (C:\Windows\TEMP).
The reports have never failed when we've used this application on a different server, so we're wondering if there's something amiss with the server.
Anybody have an idea of what's happening here?

Sorry. My mistake. That note wasn't tagged correctly so it didn't show up on the public side of the SAP Note system. I've fixed the tag but it will still take a day or two for it to replicate to the other system. I've pasted the contents of the note below.
Symptom
Error: "Unknown Database Connector Error Failed to retrieve data from the database"
Error: "Unknown Database Connector Error"
Failed to change the Table to CommandTable using RAS SDK
Reproducing the Issue
There are lots of reports designed with regular tables.
A custom RAS SDK application is developed to change the reports from regular table to CommandTable
        rd = new CrystalDecisions.CrystalReports.Engine.ReportDocument();
        string rptPath = Server.MapPath("./axmr310_0_std.rpt");
        rd.Load(rptPath);
        DatabaseController databaseController = rd.ReportClientDocument.DatabaseController;
        ConnectionInfos connectionInfos = databaseController.GetConnectionInfos(null);
        ConnectionInfo oldConnectionInfo = connectionInfos[0];
        ConnectionInfo newConnectionInfo = CreateConnectionInfo();
        databaseController.ReplaceConnection(oldConnectionInfo, newConnectionInfo, null,CrDBOptionsEnum.crDBOptionUseDefault);
        ISCRTable oldTable = (ISCRTable)databaseController.Database.Tables[0];
        CommandTable newTable = new CommandTable();
        newTable.Alias = "Command";
        newTable.Name = "Command";
        newTable.QualifiedName = "Command";
        newTable.ConnectionInfo = newConnectionInfo;
        newTable.CommandText = "SELECT * FROM ds_report.axmr310_0939_12";
        databaseController.SetTableLocation(oldTable, newTable);
        CrystalReportViewer1.ReportSource = rd;
Most of reports can be successfully changed and viewed, however the error occurs with somes of the reports.
BusinessObjects Enterprise XI 3.*
Crystal Reports 2008
Cause
"Verify on First Refresh" option is not selected for those unworking reports.
Resolution
Workaround 1: Check "Verify on First Refresh" option for the report.
Open the report in Crystal Reports Designer
Go to menu File -> Report Options
check the Verify on First Refresh option for the report
Save the report
Workaround 2: Add "rd.VerifyDataBase()" in the code
        databaseController.SetTableLocation(oldTable, newTable);
        rd.VerifyDataBase();

Similar Messages

  • Intermittent 'Unknown Database Connector' Error with Crystal XI in VFP9 app

    We have a VFP9 application which uses Crystal XI as its reporting tool. We use Installshield Express to install the Crystal components by including the merge modules in the setup.
    We extract data in the VFP app then write it to the local temporary files folder on the PC running the app. The VFP app then opens the crystal report and changes the database locations (xbase files). We intermittently get an OLE IDispatch exception with Crystal error u201CUnknown Database Connectoru201D. If the user runs exactly the same process again it is likely to be OK. The system had been relatively stable and unfortunately we cannot pinpoint what changed to introduce this problem. Around the same time we did install a new server, upgrade PCs to dual processor and also upgrade to Crystal XI!
    If anyone has had a similar problem or has any idea what the problem could be please let me know as our users are becoming frustrated with the system crashes they are encountering.

    First thing to do is to make sure you have the latest Service Pack. You mention that you are using CR XI, but I don't know if it is CR XI r1 or CR XI r2. Assuming it is r1, the latest SP is here:
    https://smpdl.sap-ag.de/~sapidp/012002523100006008952008E/crXIwin_sp4.zip
    If you are using CR XI r2, the latest SP is here:
    https://smpdl.sap-ag.de/~sapidp/012002523100006255422008E/crxir2_sp4_inc.exe
    You will also have to create a new deployment project. MSM for cr xi r1 is here:
    http://resources.businessobjects.com/support/communityCS/FilesAndUpdates/crXI_rdc_merge_modules.zip
    and for CR XI r2 is here:
    https://smpdl.sap-ag.de/~sapidp/012002523100009381702008E/crxir2sp4_rdc_mm.zip
    Next, you mention that this is an app upgraded to CR XI, but you do not mention the version of CR you upgraded from. If it is from CR 8.5 or older, we may want to take a look at the code you are using to connect to the database. E.g.; sending the database code used my be a good idea.
    Finally, please note that the platforms.txt does not mention VFP as a supported platform. E.g.; VFP was not tested and thus if there are any issues with the RDC, these will have to be duplicated on a supported platform before being submitted for a fix. Also, just for your information, the RDC has been retired in the currently shipping CR 2008.
    Ludek
    Edited by: Ludek Uher on Oct 2, 2008 3:31 PM

  • Unable to retrieve Object.Error in File: Unknown Database Connector Error

    Hi,
    I have deployed two report on BO XI server. Both the reports are designed in Crystal Report designer XI.
    I got all database credentilas, saved in CMC by my administrator so that these reports should not prompt me for any database login parameters when I am trying to run them from BOXI test server.
    When I am running one of my report, the report is working fine. But this is not the case with other report.
    This second report is working well with some inputs.
    Case 1 - It is having to input date parameter(Date1 and Date2), when I am entering one input date parameter (Date1) and other (Date2) is set to NULL, it is displaying correct result. But when I am giving any date for Date2 it is throwing me an error -
    "Error in File Manager_Agent_Report.rpt: Unknown Database Connector Error
    Unable to retrieve Object.
    Error in File Manager_Agent_Report.rpt: Unknown Database Connector Error "
    Case 2 - Similiarly it is having an other input field which I am using in filetering the records in Report.
    If I am setting it to NULL or If I am not giving this field, while entering the input. I am getting an output.
    But incase I am giving this particular field then again it is promptig me the  above mentioned error.
    The report are working fine if I am executing them from crystal report designer.
    Please help me to find a solution for the same.
    Thanks
    Deepak

    Deepak, firstly are you trying to connect to one database or two in these reports? I would check the ODBC connections both in server and client machine (testing server or whatever you testing it on). Make sure both connection settings are exactly the same.
    Secondly I will check the parameters values under Objects under the CMC and see if there is anything changed there.
    Report back if you have checked both and it still giving errors
    Regards
    Jehanzeb

  • Unknown Database Connector Error using Oracle stored procedures

    We are using an Oracle database for the first time with our Crystal Reports, and I am attempting to modify a report to use a new stored procedure.  When I attempt to add either the new procedure, or to add a new copy of the existing procedure, I get an error message:
    Unknown Database Connector Error
    If I remove the existing procedure first (leaving no database objects at all), and then attempt to add back exactly the same stored procedure that I just removed, I get a different error message:
    Database Connector Error: '42000:[Oracle][ODBC]Syntax error or access violation'
    Neither of these errors is particularly helpful.  The stored procedure in question works as is.  I can run it in SQL Developer, and it also executes within the existing report if I run it.  Unfortunately, it needs to be modified and given a new name, so I need to be able to add the new stored procedure to the report.
    The operating system is Windows XP Professional version 2002 SP3.  The Oracle version is 11g (11.2.0.2.0).  Crystal reports version is Crystal Reports 2008 (12.3.0.601).  The stored procedure returns a refcursor.  The ODBC connection is created using the "Oracle in OraClient11g_home1" driver.  When I test the connection, it tells me it was successful.
    If it matters, the report is a Saba report.
    Can anyone shed any light on what the problem is and how to fix it.  If the solution is to upgrade the Windows version, that is under the control of our tech support and there is no information available as to when it will happen.

    Yes - I had used the Set Datasource Location to point to the correct ODBC connection.  I get the same results with an existing report as I do with a new blank report.
    I have no idea where the service market place is.  Honestly, I find the entire SAP site confusing.  I found one reference to the PAM guide, but when I clicked on it, it insisted on a userid/password, and apparently the userid/password I have for this discussion group doesn't pass.  I did find, eventually, a document called "Crystal Reports 2008 Service Pack 3 for Windows - Supported Platforms".  When I read it, it tells me that it's compatible with Oracle 11g, generic ODBC, and Windows XP SP3, which is what we are using.  I'm hoping that this document has equivalent information to the PAM guide.

  • Unknown Database Connector Error - when published

    Post Author: dommurphy21
    CA Forum: Deployment
    Hi,
    Im trying to get a Crystal Report to run when published to my BOXI Enterprise server.  I get the following error when trying to run the report
    CrystalReportViewer
    Unable to retrieve Object.Error in File UseTable.rpt: Unknown Database Connector Error
    The report runs on my PC using an oracle connection and I have also setup the orace driver and client on the Server and can connect to the database from the server.  I'm using the same TNSNAMES entries on my client that are also on the server.
    Could you please respond asap as once this simple issue is resolved I can get on with completing my Proof of Concept.
    RegardsDominic

    Post Author: colin mackenzie
    CA Forum: Deployment
    Hi Dominic. I had a similar problem in the past.When you go to publish your report try this.Select the Object.Select the Process Tab.Select the Database Tab.Select the radio button or option button "Use custom database logon information specified here"Inside the drop down list select Oracle.Enter your server name or tnsname "whatever.world"Enter your database name, this doesn't really matter you can enter anything will work here. (Whatever world - Production)Try that and let me know if that solves the problem.

  • Unknown Database Connector Error   Details: "Failed to retrieve SQL Error"

    Hi
    Getting "Failed to retrieve SQL Error" while trying to refresh the Crystal report.
    Unable to create a new report also
    This is my ERROR MESSAGE
    "Unknown Database Connector Error   Details: "Failed to retrieve SQL Error"
    Previous Error: Query generated multiple SQL statements.However multiple SQL is not supported in crystal reports query panel"
    Any Suggestion.

    Hi,
    Please note that any query that generates multiple SQL statements is not supported in the Query Panel in Crystal Reports.
    I guess this Universe is generating multiple SQLs and hence the error.
    I found this option while I was searching for something else: Could you try turning off the "Multiple SQL statement for each measure" in the Universe parameters and see if it works?
    Also, here's the Universe Support Guide, although old, it is still applicable:
    http://www.sdn.sap.com/irj/boc/go/portal/prtroot/docs/library/uuid/20984c2b-17f1-2b10-1091-d18977f7cd8f?QuickLink=index&overridelayout=true
    -Abhilash

  • Unknown Database Connector Error in CR XI R2 sp6

    I'm getting an "Unknown Database Connector Error" when I try to Set Data Source Location. This is effecting all of my reports and is happening on multiple copies of CR XI. I'm trying to connect to MS SQL using an ODBC (RDO) connection. The reports were initially working fine connecting to the datasource and then something changed. The current connection is blank and when I try to create a new connection I get the above error.
    I tried updating CR to the latest version (what a pain! kept running into the Missing CrystalReport.msi problem). Finally figured out how to fix that but the updates did not solve my connection problem.
    I ran the SQL Connectivity Test app and here are the results:
    SQLDriverConnect Successful
    [Microsoft][ODBC SQL Server Driver][SQL Server]Changed database context to 'I3_IC'.
    [Microsoft][ODBC SQL Server Driver][SQL Server]Changed language setting to us_english.
    ODBC Version is : 03
    SQL Driver Name is : SQLSRV32
    SQL Driver Version is : 03.86.3959
    SQL Driver Supported ODBC Version is : 03
    SQL DBMS Name is : Microsoft SQL Server
    SQL DBMS Version is : 10.00.2531
    I am running Crystal on a Windows Server 2003 Enterprise Edition system. It's a developement and testing server. I also tried running CR on a Windows XP workstation connection to the same SQL server with the same results.
    Any help would be greatly appreciated. I am totally stumped.

    Hello,
    mmmmmm.. From the driver name it's SQL Server 2000 you are using?
    Have a look at your PATH statement to see if MS SQL is in there. It should look something like this:
    Microsoft Windows XP [Version 5.1.2600]
    (C) Copyright 1985-2001 Microsoft Corp.
    C:\>path
    PATH=C:\Program Files\Microsoft SQL Server\80\Tools\Binn\;.....
    It may be that your ODBCINI in the registry is corrupted so removing all and adding them back in may help. Use the ODBC Administrator to remove your DSN's, don't modify the registry.
    Also create your DSN's using the System tab so all users and processes have access to them.
    Thank you
    Don

  • Unknown Database connector Error - Crystal Reports 2008 and OLE DB

    Hi,
    I want to create a report based on OLE DB provider.
    Once I Select it from the Database Expert list I get this Error: "Unknown Database Connector Error", and the list is empty.
    I am using Crystal Reports 2008 on Win XP SP2.
    SQL Server 2005 is installed on the local machine.
    If I create a UDL File and double click, I can see all OLE DB Providers on the machine.
    What am I missing ?
    Thanks,
    Yuval.

    Hi Friends,
    Thank you all for trying to help.
    - The installed MDAC version is 2.8 (It comes with XP SP2). I have tried installing it again and it says that it is already installed.
    - I am not using a bussiness view. Just the simplest blank report in CR2008. I am not able to start it using OLE DB, once I want to choose a provider - I get the error, before even entering connection details such as username and password.
    - I am able to build an ODBC report, but when trying to view it using Crystal Reports Windows Form Viewer (from within a .Net application) I get an error: "Failed to Open The Connection". It happens also with reports built on other machines using OLE DB.
    Same report works fine with the same application on different machines and I cannot figure out what is the difference.
    I think Something on my machine is not right.
    Any suggestions ?
    Thanks,
    Yuval.

  • Unknown Database Connector Error using Crystal Report XI with Windows 7

    My current configuration is:
    Windows XP Professional
    Crystal Reports XI Professional
    Oracle Client 10g
    This is working great, however we are switching to Windows 7 Professional and I need to get this same configuration working on the new machines.
    I have loaded Windows 7 Professional and Oracle Client 10g.  Oracle makes the data connection without any problems.  I loaded Crystal Reports XI Professional, but it will not connect to the Oracle database.  It keeps giving me the Unknown Database Connector error.  Can anyone assist me with this problem?  This is the final software package that is holding up the project. 
    Thanks

    Hello Uher,
    Thanks for quickly response.
    I have attached the details of my issue, the most confuse part is that I'm not sure is there any conflict btw software.
    Appreciating your professional advise.

  • Unknown Database Connector Error

    Hi,
    I am using Crystal Reports 2008 to write reports against a CRS2008 repository.  I have developed and deployed the reports succesfully to multiple servers but I am now receiving and error when trying to refresh the data in the report.
    I can still connect to the repository and any changes to data foundation/business views are being picked up when I verify the database within the designer.
    I am receiving the following error when trying to refresh the data in a report:
    Crystal Reports for SAP Business One
    Unknown Database Connector Error
    OK  
    Crystal Reports for SAP Business One
    Prompting failed with the following error message: ''.
    Error source:   Error code: 0x80004005
    OK  
    Any ideas?
    I have seen a couple of hits on this issue but no obvious resolution.  I have tried closing and re-opening Crystal.  I am receiving this error on two different machines XP SP3 and Windows Server 2003 R2 SP2.  I receive exactly the same error on both machines.
    Regards,
    Sean

    Hi Don,
    Thanks for the link to the correct forum.
    Was a bit of a blonde moment on my behalf...I had re-imported the CRS Business Views, foundations etc but forgot that in doing so the Password against the Data Connection is lost.  I re-applied the password to the data connection and all was well in my Crystal World.
    Cheers,
    Sean

  • BOE XI R2 Error on failed instance:  Unknown Database Connector Error

    I have a recurring job that runs against a high availability instance of our SAP production server.  This job runs every 15 minutes to make sure that the HAS reporting instanace is available to my BOE environment for reporting.  This morning, one of my recurring instances failed and the associated message was "Unknown Database Connection Error."  The application and system event logs on my BOE server for the period immediately prior to the instance failure did not show any issues or unusual behavior.  Basis reviewed AS400 logs for the SAP instance and didn't see anything there either.
    Has anyone experienced a similar error nessage for a failed instance in this sort of a scenario?  The next recurring instance, and so far all subsequent runs, have been successful.

    David,
    We have the same problem at times; the work around we found was to retry.  Our standard is retry 3 time and wait 180 seconds.  I believe the problem comes from network congestion.  Our jobs usually complete on the first retry.
    TB

  • Database connector error - building crystal xir2 report from univ?

    Folks,
    I am attempting to create a crystal xir2 report using an otherwise fully functional universe, one that has other webi docs already created. After opening crystal and selecting new report, I log onto the BO server and select objects from the Univ to build the query. Hovever, I get 'Unknown database connector error' when clicking OK.
    I recently installed crystal xir2, the same version as my bo server. I checked the cmc and am using the same credentials when logging onto bo enterprise to select the univ from within crystal. Any ideas what is causing this and how to correct the issue?
    Thanks.

    Hello,
    I'm going to move this over to the Report Design forum. Someone there should be able to sort this out for you. I doubt it's a DB connection problem but something in the Universe causing Cr to fail.
    Seems no one in the Report Designer forum has any suggestions so I'm again moving this to the Universe Designer forum.
    Thanks you
    Don
    Edited by: Don Williams on Nov 15, 2009 8:48 AM

  • Crystal Report throws Unexpected Database Connector error

    Hi,<br>
    <br>
    We are using Crystal report 2008 CR4E API to implement the crystal report in our application. We use the below code to reset the report data source with our application data source. It works fine for most of the simple queries. But if the query contains any function defined in the SELECT Clause it throws Unexpected Database Connector error. As per the log and analysis we believe the root cause of the exception is it consider that function as column in the table and throws the SQL Exception that "function is Invalid Identifier". Could you please help in resolving this issue?
    <br><br>
    Code:<br><br>
         Tables tables = clientDoc.getDatabaseController().getDatabase().getTables(); <br>
                for(int i = 0;i < tables.size();i++){<br>
                    origTable = tables.getTable(i);<br>
                    if (tableName == null || origTable.getName().equals(tableName)) {<br>
                        newTable = (ITable)origTable.clone(true);<br>
                        newTable.setQualifiedName(origTable.getAlias());<br>
                        connectionInfo = newTable.getConnectionInfo();<br>
                        propertyBag = new PropertyBag();<br>
                        propertyBag.put("Trusted_Connection", params.trustedCon);<br>
                        propertyBag.put("Server Type", params.serverType);<br>
                        propertyBag.put("Use JDBC", params.useJdbc);<br><br>
                        propertyBag.put("Database DLL",params.databaseDLL);<br>
                        propertyBag.put("Connection URL", params.connectionURL);<br>
                        propertyBag.put("Database Class Name", params.dbClassName);<br>
                        connectionInfo.setAttributes(propertyBag);<br>
                        connectionInfo.setUserName(params.userName);<br>
                        connectionInfo.setPassword(params.password);<br>
                        clientDoc.getDatabaseController().setTableLocation(origTable, newTable); // Exception is thrown here<br>
              }                    <br>
         }     <br>
    <br>
    SQL Query : <br><br>
    Select empno, Fun_getEmpAddress(empno) from employee where empno = ?<br><br><br>
    Error Log:<br><br>
    2011-04-26 16:30:41.926 89022900 CrystalReportParms_jsp._jspService(368) Error while generating crystal report<br>
    com.crystaldecisions.sdk.occa.report.lib.ReportSDKException: Unexpected database connector error---- Error code:-2147467259 Error code name:failed<br>
         at com.businessobjects.reports.sdk.JRCCommunicationAdapter.a(SourceFile:2285)<br>
         at com.businessobjects.reports.sdk.JRCCommunicationAdapter.a(SourceFile:2305)<br>
         at com.businessobjects.reports.sdk.JRCCommunicationAdapter.if(SourceFile:737)<br>
         at com.businessobjects.reports.sdk.JRCCommunicationAdapter.a(SourceFile:167)<br>
         at com.businessobjects.reports.sdk.JRCCommunicationAdapter$2.a(SourceFile:529)<br>
         at com.businessobjects.reports.sdk.JRCCommunicationAdapter$2.call(SourceFile:527)<br>
         at com.crystaldecisions.reports.common.ThreadGuard.syncExecute(SourceFile:102)<br>
         at com.businessobjects.reports.sdk.JRCCommunicationAdapter.for(SourceFile:525)<br>
         at com.businessobjects.reports.sdk.JRCCommunicationAdapter.int(SourceFile:424)<br>
         at com.businessobjects.reports.sdk.JRCCommunicationAdapter.request(SourceFile:352)<br>
         at com.businessobjects.sdk.erom.jrc.a.a(SourceFile:54)<br>
         at com.businessobjects.sdk.erom.jrc.a.execute(SourceFile:67)<br>
         at com.crystaldecisions.proxy.remoteagent.RemoteAgent$a.execute(SourceFile:716)<br>
         at com.crystaldecisions.proxy.remoteagent.CommunicationChannel.a(SourceFile:125)<br>
         at com.crystaldecisions.proxy.remoteagent.RemoteAgent.a(SourceFile:537)<br>
         at com.crystaldecisions.sdk.occa.report.application.ds.a(SourceFile:186)<br>
         at com.crystaldecisions.sdk.occa.report.application.an.a(SourceFile:108)<br>
         at com.crystaldecisions.sdk.occa.report.application.b0.if(SourceFile:148)<br>
         at com.crystaldecisions.sdk.occa.report.application.b0.b(SourceFile:95)<br>
         at com.crystaldecisions.sdk.occa.report.application.bb.int(SourceFile:96)<br>
         at com.crystaldecisions.proxy.remoteagent.UndoUnitBase.performDo(SourceFile:151)<br>
         at com.crystaldecisions.proxy.remoteagent.UndoUnitBase.a(SourceFile:106)<br>
         at com.crystaldecisions.sdk.occa.report.application.DatabaseController.a(SourceFile:2159)<br>
         at com.crystaldecisions.sdk.occa.report.application.DatabaseController.a(SourceFile:543)<br>
         at com.crystaldecisions.sdk.occa.report.application.DatabaseController.a(SourceFile:3898)<br>
         at com.crystaldecisions.sdk.occa.report.application.DatabaseController.setTableLocation(SourceFile:2906)<br>
         at com.mysystems.myapp.common.CRJavaHelper.changeDataSource(CRJavaHelper.java:157)<br>
         at com.mysystems.myapp.common.CrystalReport.print(CrystalReport.java:202)<br>
         at org.apache.jsp.english.CrystalReportParms_jsp._jspService(CrystalReportParms_jsp.java:368)<br>
         at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)<br>
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)<br>
         at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:377)<br>
         at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:313)<br>
         at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:260)<br>
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)<br>
         at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)<br>
         at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)<br>
         at com.mysystems.myapp.common.MyServletFilter.doFilter(MyServletFilter.java:107)<br>
         at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)<br>
         at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)<br>
         at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)<br>
         at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)<br>
         at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)<br>
         at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)<br>
         at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)<br>
         at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:298)<br>
         at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:857)<br>
         at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:588)<br>
         at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:489)<br>
         at java.lang.Thread.run(Thread.java:595)<br>
    Caused by: com.crystaldecisions.reports.common.QueryEngineException: Unexpected database connector error<br>
         at com.crystaldecisions.reports.queryengine.Connection.bf(SourceFile:2958)<br>
         at com.crystaldecisions.reports.queryengine.Rowset.z3(SourceFile:944)<br>
         at com.crystaldecisions.reports.queryengine.Rowset.bL(SourceFile:533)<br>
         at com.crystaldecisions.reports.queryengine.Rowset.zM(SourceFile:245)<br>
         at com.crystaldecisions.reports.queryengine.Connection.a(SourceFile:776)<br>
         at com.crystaldecisions.reports.queryengine.Table.a(SourceFile:2234)<br>
         at com.crystaldecisions.reports.queryengine.Table.if(SourceFile:2161)<br>
         at com.crystaldecisions.reports.queryengine.Table.try(SourceFile:1525)<br>
         at com.crystaldecisions.reports.queryengine.Table.a(SourceFile:568)<br>
         at com.crystaldecisions.reports.queryengine.Table.u7(SourceFile:2405)<br>
         at com.crystaldecisions.reports.dataengine.datafoundation.AddDatabaseTableCommand.new(SourceFile:529)<br>
         at com.crystaldecisions.reports.common.CommandManager.a(SourceFile:71)<br>
         at com.crystaldecisions.reports.common.Document.a(SourceFile:203)<br>
         at com.businessobjects.reports.sdk.requesthandler.f.a(SourceFile:175)<br>
         at com.businessobjects.reports.sdk.requesthandler.DatabaseRequestHandler.byte(SourceFile:1079)<br>
         at com.businessobjects.reports.sdk.JRCCommunicationAdapter.do(SourceFile:1167)<br>
         at com.businessobjects.reports.sdk.JRCCommunicationAdapter.if(SourceFile:661)<br>
         ... 47 more<br>
    Caused by: com.businessobjects.reports.jdbinterface.common.DBException: Unexpected database connector error<br>
         at com.crystaldecisions.reports.queryengine.driverImpl.jdbc.JDBCQueryDefinition.Execute(Unknown Source)<br>
         at com.crystaldecisions.reports.queryengine.driverImpl.jdbc.JDBCQueryDefinition.Execute(Unknown Source)<br>
         at com.crystaldecisions.reports.queryengine.Connection.bf(SourceFile:2953)<br>
         ... 63 more<br>
    Caused by: java.sql.SQLException: ORA-00904: "Fun_getEmpAddress": invalid identifier<br>
    <br>
         at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:124)<br>
         at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:304)<br>
         at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:271)<br>
         at oracle.jdbc.driver.T4C8Oall.receive(T4C8Oall.java:622)<br>
         at oracle.jdbc.driver.T4CStatement.doOall8(T4CStatement.java:111)<br>
         at oracle.jdbc.driver.T4CStatement.execute_for_describe(T4CStatement.java:350)<br>
         at oracle.jdbc.driver.OracleStatement.execute_maybe_describe(OracleStatement.java:895)<br>
         at oracle.jdbc.driver.T4CStatement.execute_maybe_describe(T4CStatement.java:382)<br>
         at oracle.jdbc.driver.OracleStatement.doExecuteWithTimeout(OracleStatement.java:985)<br>
         at oracle.jdbc.driver.OracleStatement.execute(OracleStatement.java:1515)<br>
         ... 66 more<br>

    i'm also getting the same error when i'm trying to call stored procedure (that will fetch the result set and populate the report) through the query in the report-viewer.jsp. The result set is fetched i.e. when i print the result set it shows on tomcat but it is not getting passed to Table object to populate the report. However when i try to give the query explicitly in the form of SELECT statements, it works fine i.e. i can view the report in the browser. But giving query in the form of SELECT is a very naive way and is ok if u have too less reports not requiring too many joins, thats why i was using stored procedure. Any help would be appreciated.

  • ResultSet AS datasource:Unexpected database connector error, Please Help?

    Dear all;
    I try to use a ResultSet as datasource in Crystal Reports,But an Exception Happend;
    First i execute the SQL Statment to get ResultSet Object called rs then try the following code:
    String tableAlias = reportClientDocument.getDatabaseController().getDatabase().getTables().getTable(0).getAlias();
    reportClientDocument.getDatabaseController().setDataSource(rs,tableAlias,"resultsetTable");
    This is the Exception;
    com.crystaldecisions.sdk.occa.report.lib.ReportSDKException: Unexpected database connector error---- Error code:-2147467259 Error code name:failed
         at com.businessobjects.reports.sdk.JRCCommunicationAdapter.a(Unknown Source)
         at com.businessobjects.reports.sdk.JRCCommunicationAdapter.a(Unknown Source)
         at com.businessobjects.reports.sdk.JRCCommunicationAdapter.if(Unknown Source)
         at com.businessobjects.reports.sdk.JRCCommunicationAdapter.a(Unknown Source)
         at com.businessobjects.reports.sdk.JRCCommunicationAdapter$2.a(Unknown Source)
         at com.businessobjects.reports.sdk.JRCCommunicationAdapter$2.call(Unknown Source)
         at com.crystaldecisions.reports.common.ThreadGuard.syncExecute(Unknown Source)
    Please help me to solve this exception

    I need to execute the SQL Query thruogh java becouse there is some parameters must be in the SQL Query...and i have not permission to add views or stored procedure in database
    this is my query:
    String sqlquery = "SELECT "
                        + "TO_CHAR(TO_DATE('1970-01-01', 'yyyy-mm-dd') + Command.CREATIONTIME / 86400000, 'mm/dd/yyyy') as CREATIONDATE"
                        + ", COUNT(*) as TICKETCOUNT "
                        + "FROM ALARMTICKET Command "
                        + "WHERE "
                        + "to_date(TO_CHAR(TO_DATE('1970-01-01', 'yyyy-mm-dd') + Command.CREATIONTIME / 86400000, 'mm/dd/yyyy'),'mm/dd/yyyy') "
                        + "between "
                        + "'"
                        + dateFormater.format(date1)
                        + "' "
                        + "AND "
                        + "'"
                        + dateFormater.format(date2)
                        + "' "
                        + "group by TO_CHAR(TO_DATE('1970-01-01', 'yyyy-mm-dd') + Command.CREATIONTIME / 86400000, 'mm/dd/yyyy') "
                        + "order by TO_CHAR(TO_DATE('1970-01-01', 'yyyy-mm-dd') + Command.CREATIONTIME / 86400000, 'mm/dd/yyyy')";
    date1 and date2 are my variables.....

  • Crystal Reports: Unexpected database connector error

    Hi experts,
    I have a Web Module DC that uses JSP to show Crystal Reports. In my report I use POJO as datasource. The POJO itself is a JPA entity and is located in other EJB Module DC that has dependency with the Web Module DC. At design time everything looks fine and I can retrieve the data I need from other EJB Module with Session Beans but as a result I see the following error: "Unexpected database connector error". The architecture is the following:
    SessionBean EJB Module----
    |
                                                       >>dependency to >> Web Module DC with Crystal Reports
    JPA Entities EJB Module----
    |
    And in my report as datasource I use entity from the JPA EJB Module. And the source in my jsp is the following:
         Object object = null;
         try {
              Context c = new InitialContext();
              object = c
                        .lookup("ejb:/appName=sap.com/slauto_viewer_app, beanName=GeneralBean, interfaceName=com.sap.crs.slautoviewer.beans.GeneralBeanLocal");
              Class clazz = object.getClass();
              try {
                   //Open report.
                   Method method = getMethod(clazz,
                             "getGeneralDataByHostAndID");
                   List<General> generals = (List<General>) method
                             .invoke(object,
                                       new Object[] { "localhost", "b", 10 });
                   POJOResultSetFactory factory = new POJOResultSetFactory(
                             SlAutoGeneral.class);
                   POJOResultSet resultSet = factory
                             .createResultSet(generals);
                   ReportClientDocument reportClientDoc = new ReportClientDocument();
                   reportClientDoc.open("CrystalReport1.rpt", 0);
                   ITable table = reportClientDoc.getDatabaseController()
                             .getDatabase().getTables().getTable(0);
                   String tableAlias = table.getAlias();
                   reportClientDoc.getDatabaseController().setDataSource(
                             resultSet, tableAlias, tableAlias);
                   session.setAttribute("reportSource", reportClientDoc
                             .getReportSource());
                   CrystalReportViewer viewer = new CrystalReportViewer();
                   viewer.setOwnPage(true);
                   viewer
                             .setDocumentViewType(CrDocumentViewTypeEnum.webLayout);
                   viewer.setHasDrilldownTabs(false);
                   viewer.setDisplayToolbar(false);
                   viewer.setPrintMode(CrPrintMode.ACTIVEX);
                   Object reportSource = reportClientDoc.getReportSource();
                   viewer.setReportSource(reportSource);
                   viewer.processHttpRequest(request, response,
                             getServletConfig().getServletContext(), null);
              } catch (ReportSDKException ex) {
                   out.println(ex);
              } catch (Exception ex) {
                   out.println(ex);
         } catch (NamingException e) {
    protected Method getMethod(Class clazz, String name) {
              Method[] methods = clazz.getMethods();
              for (int i = 0; i < methods.length; i++) {
                   Method method = methods<i>;
                   String methodName = method.getName();
                   if (methodName.equals(name)) {
                        return method;
              return null;
    Please tell me what could be wrong
    Regards,
    Martin
    Edited by: musaka on Dec 11, 2009 2:51 PM

    Please check the Preview tab for formatting before posting. If People can read the question they may reply. Limit your posts to 1500 characters, then formatting is not lost.

Maybe you are looking for