Database Polling Fails when target database re-started

Hi
I have a problem with a BPEL process that is polling records from the database. I noticed that no records had been picked up in a while and that no errors were being caught by the process. When i checked the domain log I could see that the error below had occurred and was retrying. I found out that the target SQLServer database had been restarted, but as far as I was aware the connection should refresh once the database restarts.
This is quite a concern for my client who is querying the stability of the SOA suite. they frequently restart their SQL Server database and do not want to have to refresh connections to solve the problem from the application server each time. They are currenlty using 10.1.3.3.0 of the SOA suite software so the connection should be reintiated when the target database is started again.
Does any one have any idea why this error is occuring??
<2008-03-18 18:34:16,987> <INFO> <default.collaxa.cube.activation> <Database Adapter::Inbound> <oracle.tip.adapter.db.exceptions.DBResourceException createEISException> A retriable exception occured. In BPEL you can configure a fault policy (starting with 10.1.3.3) to automatically perform retries. Please configure bpel/domains/<domainName>config/fault-bindings.xml
<2008-03-18 18:34:17,007> <WARN> <default.collaxa.cube.activation> <Database Adapter::Inbound>
ORABPEL-11624
DBActivationSpec Polling Exception.
Query name: [readProjectCodes], Descriptor name: [readProjectCodes.EFolder]. Polling the database for events failed on this iteration. [Caused by: Broken pipe]
If the cause is something like a database being down successful polling will resume once conditions change. Caused by Exception [TOPLINK-4002] (Oracle TopLink - 10g Release 3 (10.1.3.3.0) (Build 070608)): oracle.toplink.exceptions.DatabaseException
Internal Exception: java.sql.SQLException: I/O Error: Broken pipeError Code: 0
Call:SELECT eFolderID, eMapName, eCategory, eStageName FROM dbo.eFolder WHERE ((((eStageName = ?) AND (eMapName = ?)) AND ((eCategory <> ?) OR (eCategory IS NULL))) AND ((eCategory <> ?) OR (eCategory IS NULL))) ORDER BY eFolderID ASC
     bind => [Oracle SOA Finance interface, ProjectCode, SOAProcess, SOARead]
Query:ReadAllQuery(bpel___localhost_default_ReadProjectCodesEworks_1_5__1205248248244.readProjectCodes.EFolder).
     at oracle.tip.adapter.db.exceptions.DBResourceException.createEISException(DBResourceException.java:461)
     at oracle.tip.adapter.db.exceptions.DBResourceException.inboundReadException(DBResourceException.java:376)
     at oracle.tip.adapter.db.InboundWork.handleException(InboundWork.java:633)
     at oracle.tip.adapter.db.InboundWork.runOnce(InboundWork.java:576)
     at oracle.tip.adapter.db.InboundWork.run(InboundWork.java:416)
     at oracle.tip.adapter.db.inbound.InboundWorkWrapper.run(InboundWorkWrapper.java:43)
     at oracle.tip.adapter.fw.jca.work.WorkerJob.go(WorkerJob.java:51)
     at oracle.tip.adapter.fw.common.ThreadPool.run(ThreadPool.java:272)
     at java.lang.Thread.run(Thread.java:595)
Caused by: Exception [TOPLINK-4002] (Oracle TopLink - 10g Release 3 (10.1.3.3.0) (Build 070608)): oracle.toplink.exceptions.DatabaseException
Internal Exception: java.sql.SQLException: I/O Error: Broken pipeError Code: 0
Call:SELECT eFolderID, eMapName, eCategory, eStageName FROM dbo.eFolder WHERE ((((eStageName = ?) AND (eMapName = ?)) AND ((eCategory <> ?) OR (eCategory IS NULL))) AND ((eCategory <> ?) OR (eCategory IS NULL))) ORDER BY eFolderID ASC
     bind => [Oracle SOA Finance interface, ProjectCode, SOAProcess, SOARead]
Query:ReadAllQuery(bpel___localhost_default_ReadProjectCodesEworks_1_5__1205248248244.readProjectCodes.EFolder)
     at oracle.toplink.exceptions.DatabaseException.sqlException(DatabaseException.java:290)
     at oracle.toplink.internal.databaseaccess.DatabaseAccessor.basicExecuteCall(DatabaseAccessor.java:581)
     at oracle.toplink.internal.databaseaccess.DatabaseAccessor.executeCall(DatabaseAccessor.java:441)
     at oracle.toplink.threetier.ServerSession.executeCall(ServerSession.java:457)
     at oracle.toplink.internal.sessions.IsolatedClientSession.executeCall(IsolatedClientSession.java:117)
     at oracle.toplink.internal.queryframework.DatasourceCallQueryMechanism.executeCall(DatasourceCallQueryMechanism.java:117)
     at oracle.toplink.internal.queryframework.DatasourceCallQueryMechanism.executeCall(DatasourceCallQueryMechanism.java:103)
     at oracle.toplink.internal.queryframework.DatasourceCallQueryMechanism.executeSelectCall(DatasourceCallQueryMechanism.java:174)
     at oracle.toplink.internal.queryframework.DatasourceCallQueryMechanism.selectAllRows(DatasourceCallQueryMechanism.java:481)
     at oracle.toplink.internal.queryframework.ExpressionQueryMechanism.selectAllRowsFromTable(ExpressionQueryMechanism.java:825)
     at oracle.toplink.internal.queryframework.ExpressionQueryMechanism.selectAllRows(ExpressionQueryMechanism.java:803)
     at oracle.toplink.queryframework.ReadAllQuery.executeObjectLevelReadQuery(ReadAllQuery.java:473)
     at oracle.toplink.queryframework.ObjectLevelReadQuery.executeDatabaseQuery(ObjectLevelReadQuery.java:811)
     at oracle.toplink.queryframework.DatabaseQuery.execute(DatabaseQuery.java:620)
     at oracle.toplink.queryframework.ObjectLevelReadQuery.execute(ObjectLevelReadQuery.java:779)
     at oracle.toplink.queryframework.ReadAllQuery.execute(ReadAllQuery.java:451)
     at oracle.toplink.publicinterface.Session.internalExecuteQuery(Session.java:2089)
     at oracle.toplink.publicinterface.Session.executeQuery(Session.java:993)
     at oracle.tip.adapter.db.inbound.DestructivePollingStrategy.poll(DestructivePollingStrategy.java:347)
     at oracle.tip.adapter.db.InboundWork.runOnce(InboundWork.java:505)
     ... 5 more
Caused by: java.sql.SQLException: I/O Error: Broken pipe
     at net.sourceforge.jtds.jdbc.TdsCore.executeSQL(TdsCore.java:1052)
     at net.sourceforge.jtds.jdbc.JtdsStatement.executeSQLQuery(JtdsStatement.java:465)
     at net.sourceforge.jtds.jdbc.JtdsPreparedStatement.executeQuery(JtdsPreparedStatement.java:777)
     at net_sourceforge_jtds_jdbc_JtdsPreparedStatement_Proxy.executeQuery()
     at oracle.toplink.internal.databaseaccess.DatabaseAccessor.executeSelect(DatabaseAccessor.java:744)
     at oracle.toplink.internal.databaseaccess.DatabaseAccessor.basicExecuteCall(DatabaseAccessor.java:516)
     ... 23 more
Caused by: java.net.SocketException: Broken pipe
     at java.net.SocketOutputStream.socketWrite0(Native Method)
     at java.net.SocketOutputStream.socketWrite(SocketOutputStream.java:92)
     at java.net.SocketOutputStream.write(SocketOutputStream.java:136)
     at java.io.DataOutputStream.write(DataOutputStream.java:90)
     at net.sourceforge.jtds.jdbc.SharedSocket.sendNetPacket(SharedSocket.java:671)
     at net.sourceforge.jtds.jdbc.RequestStream.putPacket(RequestStream.java:560)
     at net.sourceforge.jtds.jdbc.RequestStream.flush(RequestStream.java:508)
     at net.sourceforge.jtds.jdbc.TdsCore.executeSQL(TdsCore.java:1039)
     ... 28 more
<2008-03-18 18:34:47,265> <INFO> <default.collaxa.cube.activation> <Database Adapter::Inbound> <oracle.tip.adapter.db.exceptions.DBResourceException createEISException> A retriable exception occured. In BPEL you can configure a fault policy (starting with 10.1.3.3) to automatically perform retries. Please configure bpel/domains/<domainName>config/fault-bindings.xml
<2008-03-18 18:34:47,270> <WARN> <default.collaxa.cube.activation> <Database Adapter::Inbound>
ORABPEL-11624
DBActivationSpec Polling Exception.
Query name: [readProjectCodes], Descriptor name: [readProjectCodes.EFolder]. Polling the database for events failed on this iteration. [Caused by: Invalid state, the Connection object is closed.]
If the cause is something like a database being down successful polling will resume once conditions change. Caused by Exception [TOPLINK-4002] (Oracle TopLink - 10g Release 3 (10.1.3.3.0) (Build 070608)): oracle.toplink.exceptions.DatabaseException
Internal Exception: java.sql.SQLException: Invalid state, the Connection object is closed.Error Code: 0
Call:SELECT eFolderID, eMapName, eCategory, eStageName FROM dbo.eFolder WHERE ((((eStageName = ?) AND (eMapName = ?)) AND ((eCategory <> ?) OR (eCategory IS NULL))) AND ((eCategory <> ?) OR (eCategory IS NULL))) ORDER BY eFolderID ASC
     bind => [Oracle SOA Finance interface, ProjectCode, SOAProcess, SOARead]
Query:ReadAllQuery(bpel___localhost_default_ReadProjectCodesEworks_1_5__1205248248244.readProjectCodes.EFolder).
     at oracle.tip.adapter.db.exceptions.DBResourceException.createEISException(DBResourceException.java:461)
     at oracle.tip.adapter.db.exceptions.DBResourceException.inboundReadException(DBResourceException.java:376)
     at oracle.tip.adapter.db.InboundWork.handleException(InboundWork.java:633)
     at oracle.tip.adapter.db.InboundWork.runOnce(InboundWork.java:576)
     at oracle.tip.adapter.db.InboundWork.run(InboundWork.java:416)
     at oracle.tip.adapter.db.inbound.InboundWorkWrapper.run(InboundWorkWrapper.java:43)
     at oracle.tip.adapter.fw.jca.work.WorkerJob.go(WorkerJob.java:51)
     at oracle.tip.adapter.fw.common.ThreadPool.run(ThreadPool.java:272)
     at java.lang.Thread.run(Thread.java:595)
Caused by: Exception [TOPLINK-4002] (Oracle TopLink - 10g Release 3 (10.1.3.3.0) (Build 070608)): oracle.toplink.exceptions.DatabaseException
Internal Exception: java.sql.SQLException: Invalid state, the Connection object is closed.Error Code: 0
Call:SELECT eFolderID, eMapName, eCategory, eStageName FROM dbo.eFolder WHERE ((((eStageName = ?) AND (eMapName = ?)) AND ((eCategory <> ?) OR (eCategory IS NULL))) AND ((eCategory <> ?) OR (eCategory IS NULL))) ORDER BY eFolderID ASC
     bind => [Oracle SOA Finance interface, ProjectCode, SOAProcess, SOARead]
Query:ReadAllQuery(bpel___localhost_default_ReadProjectCodesEworks_1_5__1205248248244.readProjectCodes.EFolder)
     at oracle.toplink.exceptions.DatabaseException.sqlException(DatabaseException.java:290)
     at oracle.toplink.internal.databaseaccess.DatabaseAccessor.basicExecuteCall(DatabaseAccessor.java:581)
     at oracle.toplink.internal.databaseaccess.DatabaseAccessor.executeCall(DatabaseAccessor.java:441)
     at oracle.toplink.threetier.ServerSession.executeCall(ServerSession.java:457)
     at oracle.toplink.internal.sessions.IsolatedClientSession.executeCall(IsolatedClientSession.java:117)
     at oracle.toplink.internal.queryframework.DatasourceCallQueryMechanism.executeCall(DatasourceCallQueryMechanism.java:117)
     at oracle.toplink.internal.queryframework.DatasourceCallQueryMechanism.executeCall(DatasourceCallQueryMechanism.java:103)
     at oracle.toplink.internal.queryframework.DatasourceCallQueryMechanism.executeSelectCall(DatasourceCallQueryMechanism.java:174)
     at oracle.toplink.internal.queryframework.DatasourceCallQueryMechanism.selectAllRows(DatasourceCallQueryMechanism.java:481)
     at oracle.toplink.internal.queryframework.ExpressionQueryMechanism.selectAllRowsFromTable(ExpressionQueryMechanism.java:825)
     at oracle.toplink.internal.queryframework.ExpressionQueryMechanism.selectAllRows(ExpressionQueryMechanism.java:803)
     at oracle.toplink.queryframework.ReadAllQuery.executeObjectLevelReadQuery(ReadAllQuery.java:473)
     at oracle.toplink.queryframework.ObjectLevelReadQuery.executeDatabaseQuery(ObjectLevelReadQuery.java:811)
     at oracle.toplink.queryframework.DatabaseQuery.execute(DatabaseQuery.java:620)
     at oracle.toplink.queryframework.ObjectLevelReadQuery.execute(ObjectLevelReadQuery.java:779)
     at oracle.toplink.queryframework.ReadAllQuery.execute(ReadAllQuery.java:451)
     at oracle.toplink.publicinterface.Session.internalExecuteQuery(Session.java:2089)
     at oracle.toplink.publicinterface.Session.executeQuery(Session.java:993)
     at oracle.tip.adapter.db.inbound.DestructivePollingStrategy.poll(DestructivePollingStrategy.java:347)
     at oracle.tip.adapter.db.InboundWork.runOnce(InboundWork.java:505)
     ... 5 more
Caused by: java.sql.SQLException: Invalid state, the Connection object is closed.
     at net.sourceforge.jtds.jdbc.ConnectionJDBC2.checkOpen(ConnectionJDBC2.java:1634)
     at net.sourceforge.jtds.jdbc.ConnectionJDBC2.prepareStatement(ConnectionJDBC2.java:2328)
     at net_sourceforge_jtds_jdbc_ConnectionJDBC3_Proxy.prepareStatement()
     at oracle.toplink.internal.databaseaccess.DatabaseAccessor.prepareStatement(DatabaseAccessor.java:1216)
     at oracle.toplink.internal.databaseaccess.DatabaseAccessor.prepareStatement(DatabaseAccessor.java:1170)
     at oracle.toplink.internal.databaseaccess.DatabaseCall.prepareStatement(DatabaseCall.java:591)
     at oracle.toplink.internal.databaseaccess.DatabaseAccessor.basicExecuteCall(DatabaseAccessor.java:491)
     ... 23 more
<2008-03-18 18:35:17,633> <INFO> <default.collaxa.cube.activation> <Database Adapter::Inbound> <oracle.tip.adapter.db.exceptions.DBResourceException createEISException> A retriable exception occured. In BPEL you can configure a fault policy (starting with 10.1.3.3) to automatically perform retries. Please configure bpel/domains/<domainName>config/fault-bindings.xml

I work with ditchTwentyThree. We are still getting this problem.
To clarify, the situation is that when we use the BPEL Database Adapter to Poll a SQL Server Database we get the behaviour that if the database is not available, the retry policy is referenced and the polling retries every 30 seconds. All good so far. However, when the Database becomes available again the polling still fails in the same way - until the SQL Server Database Connection is manually refreshed through EM. The behaviour we would expect is for the Polling to reinitiate as soon as the SQL Server becomes available without any manual intervention.
We have configured the DB Adapter retry policies in the same way as we have done for polling an Oracle database (all this works well with Oracle).
Can anyone help or confirm that this has been successfully achieved on other projects with the DB Adapter accessing MS SQL Server.
Any tips appreciated.
Thanks,
Mark.

Similar Messages

  • Database logon failed when opening report with parameter values in CrystalReportViewer

    Hi,
    I designed 2 crystal reports: report A contains parameter fields and report B did not contain any parameter
    I can open both reports in development site using CrystalReportViewer control. When I open the reports in testing site,
    I can open report B but can't open report A. It display error message "Database logon failed". When I set EnableDatabaseLogonPrompt
    to true and try to open the report A again, it shows database connection data which was created on report.
    In addition, it is strange that it displays error "Database logon failed" when I click an item in group tree panel of the report B. This indicates that it can load data from database
    in testing site but it connect to development database when clicking items in group tree panel
    All reports connect to database using Windows Authenication. It use dynamic database connection at runtime
    How to ensure the report always connect database using login data dynamically at runtime?
    Below is my code about database connection:
    string strServerName = null;
    string strDatabaseName = null;
    ReportDocument rptDoc = new ReportDocument();
    rptDoc.Load(strFilePath);
    ConnectionInfo connInfo = new ConnectionInfo();
    TableLogOnInfo logonInfo;
    for (int i = 0; i < rptDoc.Database.Tables.Count; i++)
    logonInfo = rptDoc.Database.Tables[i].LogOnInfo;
    ReportHelper.GetReportConnection(ref strServerName, ref strDatabaseName, strSystemType);
    logonInfo.ConnectionInfo.ServerName = strServerName; 
    logonInfo.ConnectionInfo.DatabaseName = strDatabaseName;
    logonInfo.ConnectionInfo.IntegratedSecurity = true;
    rptDoc.Database.Tables[i].ApplyLogOnInfo(logonInfo);
    rptDoc.Database.Tables[i].Location = rptDoc.Database.Tables[i].Location.Substring(0, rptDoc.Database.Tables[i].Location.Length - 2);
    crvViewer.ReportSource = rptDoc;
    crvViewer.DataBind();
    Development environment:
    - SAP Crystal Reports 2013 Support Pack 1
    - Visual Studio Professional 2012
    - .NET Framework 3.5
    - DDL
    CrystalDecisions.Shared (v 13.0.8.1216)
    CrystalDecisions.Web (v 13.0.8.1216)
    CrystalDecisions.CrystalReports.Engine (v 13.0.8.1216)
    Database connection in crystal report:
    - Database Type: OLEDB (ADO)
    - Provider: SQLOLEDB
    - Integrated Security: True
    Thanks and Regards,
    Tony

    Hi Tonylck
    Try  to pass login info to crystal report dynamically as follows:
    using System;
    using System.Windows.Forms;
    using CrystalDecisions.CrystalReports.Engine;
    using CrystalDecisions.Shared;
    namespace WindowsApplication1
    public partial class Form1 : Form
    public Form1()
    InitializeComponent();
    private void button1_Click(object sender, EventArgs e)
    ReportDocument cryRpt = new ReportDocument();
    TableLogOnInfos crtableLogoninfos = new TableLogOnInfos();
    TableLogOnInfo crtableLogoninfo = new TableLogOnInfo();
    ConnectionInfo crConnectionInfo = new ConnectionInfo();
    Tables CrTables ;
    cryRpt.Load("PUT CRYSTAL REPORT PATH HERE\CrystalReport1.rpt");
    crConnectionInfo.ServerName = "YOUR SERVER NAME";
    crConnectionInfo.DatabaseName = "YOUR DATABASE NAME";
    crConnectionInfo.UserID = "YOUR DATABASE USERNAME";
    crConnectionInfo.Password = "YOUR DATABASE PASSWORD";
    CrTables = cryRpt.Database.Tables ;
    foreach (CrystalDecisions.CrystalReports.Engine.Table CrTable in CrTables)
    crtableLogoninfo = CrTable.LogOnInfo;
    crtableLogoninfo.ConnectionInfo = crConnectionInfo;
    CrTable.ApplyLogOnInfo(crtableLogoninfo);
    crystalReportViewer1.ReportSource = cryRpt;
    crystalReportViewer1.Refresh();
    Ref
    http://csharp.net-informations.com/crystal-reports/csharp-crystal-reports-dynamic-login.htm
    Mark as answer if you find it useful
    Shridhar J Joshi Thanks a lot

  • Just got a new iPod Nano 7gen. Have downloaded and installed iTunes 10.7 and installed succesfully. But iTunes fails when I try to start the program. Have OS X 10.8.2. Moutain Lion. Please help - thanks. Sven

    Just got a new iPod Nano 7gen. Have downloaded and installed iTunes 10.7 and installed succesfully. But iTunes fails when I try to start the program. Have OS X 10.8.2. Moutain Lion. Please help - thanks.
    Sven

    Problem solved. Copied latest file of iTunes Library.itl from Previous iTunes Libraries and replaced it with the original in Music - iTunes-folder.

  • Crystal reports "Database login failed" when using push method

    I have a web application (ASP.NET, .NET v3.5), that pushes data to a CR 2008 report. On two servers one of the three reports returns a "Database login failed" error. I am stumped since there is no login, it's push not pull; in addition the problem is hard to debug since it works fine from my developers workstation. I have "updated" the xsd in that report, reinstalled the app, etc., non of which helped. If anyone has a solution or even ideas I'd appreciate the help.

    What about following the troubleshooting steps as described in the blog;
    Create an XML file off of your dataset. Make sure this is done just before you set the dataset to the report:
                rpt.Load(rptPath)
    myDataset.WriteXml(xmlPath, XmlWriteMode.WriteSchema)
    rpt.SetDataSource(myDataset)
    Copy the above created XML to your development system
    Open the problem report in the Crystal Reports designer
    In the Desigger, go to the Database menu and select u201CSet Datasource Locationu201D
    In the u201CReplace with:u201D pane, expand the u201CCreate New Connectionu201D folder.
    Double click the u201CADO .NET (XML)u201D icon
    Browse to the location of the XML file you created in step (1)
    Click on the path to the XML. The <Update> button should enable
    Click on the <Update> button
    Typically, either of the following will happen:
    You will get a u201CMap Fieldsu201D dialog. This indicates that the XML written off of your dataset does not match what the report is expecting. This may be due to incorrect fields name, incorrect field type, etc. You will now need eliminate the difference.
    Incorrect data or no data. There is an issue with your dataset and you need to determine why the data is not present in your dataset. Looking at the XML may be a good place to start.
    Ludek

  • Database logon failed when deploy CR on Windows Server 2008

    I use Crystal Reports for Visual Studio 2010 Production Release with MVC 2 web aplication and SQL Server 2008 database server. When I compile/run from VS 2010 it running well, but when deploy it on Windows Server 2008, when load certain report (Not All report) face the following exception message:
    Database logon failed
    Stack Trace is as the following:
    at CrystalDecisions.ReportAppServer.ConvertDotNetToErom.ThrowDotNetException(Exception e) at CrystalDecisions.ReportSource.EromReportSourceBase.ExportToStream(ExportRequestContext reqContext) at CrystalDecisions.CrystalReports.Engine.FormatEngine.ExportToStream(ExportRequestContext reqContext) at CrystalDecisions.CrystalReports.Engine.ReportDocument.ExportToStream(ExportOptions options) at CrystalDecisions.CrystalReports.Engine.ReportDocument.ExportToStream(ExportFormatType formatType) at SequisLife.Controllers.ReportController.run_report(String report_name, IDictionary`2 dic_param)
    InnerException:
    System.Runtime.InteropServices.COMException (0x8004100F): Database logon failed. at CrystalDecisions.ReportAppServer.Controllers.ReportSourceClass.Export(ExportOptions pExportOptions, RequestContext pRequestContext) at CrystalDecisions.ReportSource.EromReportSourceBase.ExportToStream(ExportRequestContext reqContext)
    run_report method is as the following:
    private ActionResult run_report(string report_name, IDictionary<string, string> dic_param)
                string ls_respon = "";
                try
                    get_sqllogin();
                    ReportClass rptH = new ReportClass();               
                    rptH.FileName = Server.MapPath(VirtualPathUtility.ToAbsolute(report_name));
                    rptH.Load();             
                    rptH.Refresh();
                    Database crDataBase;
                    Tables crTables;
                    TableLogOnInfo crTableLogOnInfo;
                    ConnectionInfo reportConnectionInfo = new ConnectionInfo();
                    reportConnectionInfo.ServerName = server;
                    reportConnectionInfo.DatabaseName = database;
                    reportConnectionInfo.UserID = login_user;
                    reportConnectionInfo.Password = login_pass;
                    crDataBase = rptH.Database;
                    crTables = crDataBase.Tables;
                    foreach (Table crTable in crTables)
                        crTableLogOnInfo = crTable.LogOnInfo;
                        crTableLogOnInfo.ConnectionInfo = reportConnectionInfo;
                        crTable.ApplyLogOnInfo(crTableLogOnInfo);                  
                    ParameterFields lpf_parameters = rptH.ParameterFields;
                    if (lpf_parameters.Count > 0)
                        foreach (ParameterField lpf_param in lpf_parameters)
                            var llst_tmps = dic_param.Where(d => d.Key == lpf_param.Name);
                            foreach (var param in llst_tmps)
                                if (param.Key == lpf_param.Name)
                                    if (lpf_param.ReportName == "")
                                        rptH.SetParameterValue(lpf_param.Name, param.Value);
                                    else
                                        rptH.SetParameterValue(lpf_param.Name, param.Value, lpf_param.ReportName);
                    Stream stream = rptH.ExportToStream(CrystalDecisions.Shared.ExportFormatType.PortableDocFormat);
                    return File(stream, "application/pdf");
                catch (Exception ex)
                    ls_respon += ex.Message;
                    ls_respon = " - "ex.StackTrace;
                    ls_respon += " - " + ex.InnerException;
                    ls_respon += " - " + ex.Source;
                    ls_respon += " - " + ex.Data;
                    return Content(ls_respon);
    Please any body hepl me...
    Thank's in advance

    Hi,
    I am using CR with visual studio 2010 in windows 7 box 64bit box. using a ADO.net data source. And I need to export .rpt as pdf.The solution works fine in my dev box. by when i try to deploy in a windows server 2008 R2 box (64bit) it fails . Both my dev box and deplyment box uses sql server 2008 DB . Also i am using .Net framework 4.0 (not client profile)
    installed the following things in deployment box:
    1. CRRuntime_64bit_13_0_1.msi in
    2. Also copied the CRforVS_mergemodules_13_0_1 in C:\Program Files (x86)\Common Files\Merge Modules
    I get the following error in my Box:
    CrystalDecisions.ReportAppServer.ConvertDotNetToErom.ThrowDotNetException(Exception e)   at CrystalDecisions.ReportSource.EromReportSourceBase.ExportToStream(ExportRequestContext reqContext)   at CrystalDecisions.CrystalReports.Engine.FormatEngine.ExportToStream(ExportRequestContext reqContext)   at CrystalDecisions.CrystalReports.Engine.FormatEngine.Export(ExportRequestContext reqContext)   at CrystalDecisions.CrystalReports.Engine.ReportDocument.ExportToDisk(ExportFormatType formatType, String fileName)   at Tesco.Instore.PickingControl.ReportController.PrintDriverDocumentation(String driverDocumentation, Int32 vehicleTripId)] 20/10/2011 08:08:41        PCS        Critical                   Classic .NET AppPool      Error running End of Van [Logon failed.
    Error in File temp_31b3196f-fd25-45c8-b657-5d9cd7c9dccb {4F74290C-D56E-4FC4-8DEF-371BB5C5B10B}.rpt:
    Unable to connect: incorrect log on parameters.]
    I also verified the database connection is upto date. while creating the solution
    the project build is set to anyCPU.
    is there anything else i have to install ?? Please help me ..I am trying this thing from last one week and have not got any proper solution till now

  • Database Logon Failed when loading Access mdb that use a system mdw

    I am trying to get my Report Viewer ASP.NET application running 11 R2 SP3 to open a report that uses Access database with a system database file (mdb and mdw file)
    the report runs fine in the designer and it runs fine on the developer test computer
    but the production environment that does not have the full Crystal Designer installed just the runtime engine (but does have the full MSAccess running) cannot load the database
    i keep getting "Database Logon Failed"
    SWIP Reports
    Error Exporting Report
    Report:     Help Desk Reports Over 3 Days
    Server Name:     \\poseidon\IT\Databases\itdept.mdb
    Database Name:     \\poseidon\IT\Databases\itdept.mdb
    User:     GLOBAL\ADMINISTRATOR
    IP:     127.0.0.1
    ============================================================
    | Exception Information
    +----------------------------------------------------------------------
    |  Exception Message:     Database logon failed.
    |  Exception Source:     CrystalDecisions.ReportAppServer.DataSetConversion
    |  Inner Exception:          
    |  Begin Stack Trace:
    |        at CrystalDecisions.ReportAppServer.ConvertDotNetToErom.T_
    |          hrowDotNetException(Exception e)
    |        at CrystalDecisions.ReportSource.EromReportSourceBase.Exp_
    |          ortToStream(ExportRequestContext reqContext)
    |        at CrystalDecisions.CrystalReports.Engine.FormatEngine.Ex_
    |          portToStream(ExportRequestContext reqContext)
    |        at CrystalDecisions.CrystalReports.Engine.ReportDocument._
    |          ExportToStream(ExportOptions options)
    |        at CrystalDecisions.CrystalReports.Engine.ReportDocument._
    |          ExportToHttpResponse(ExportOptions options, HttpRe_
    |          sponse response, Boolean asAttachment, String atta_
    |          chmentName)
    |        at CrystalDecisions.CrystalReports.Engine.ReportDocument._
    |          ExportToHttpResponse(ExportFormatType formatType,_
    |          HttpResponse response, Boolean asAttachment, Strin_
    |          g attachmentName)
    |        at reports.PushReport(ExportFormatType expType, String Co_
    |          ntentType, String Ext, Boolean Popup)
    |        at reports.exportReport(String strExpFmt)
    +----------------------------------------------------------------------
    For more information, see Help and Support Center at http://go.microsoft.com/fwlink/events.asp.
    does anyone have any advice on why this is failing only on the server but is not failing on the developer or the designer computers.

    public Reports(String RptPath)
                this._ExpOptions.ExportDestinationType = ExportDestinationType.NoDestination;
                this._ExpOptions.ExportFormatType = ExportFormatType.NoFormat;
                this._RptDoc = new ReportDocument();
                this._RptDoc.Load(RptPath, OpenReportMethod.OpenReportByTempCopy);
                login();
    private void login()
                if (!_IsLoggedIn)
                    try
                        String dbName = this._RptDoc.DataSourceConnections[0].ServerName.ToString();
                        for (int i = 0; i < this._RptDoc.DataSourceConnections.Count; i++)
                            this._RptDoc.DataSourceConnections<i>.SetLogon(uid(dbName), pwd(dbName));
                        foreach (ReportDocument Sub in this._RptDoc.Subreports)
                            dbName = Sub.DataSourceConnections[0].ServerName.ToString();
                            for (int i = 0; i < Sub.DataSourceConnections.Count; i++)
                                Sub.DataSourceConnections<i>.SetLogon(uid(dbName), pwd(dbName));
                        ConnectionInfo coninfo = new ConnectionInfo();
                        coninfo.DatabaseName = this._RptDoc.DataSourceConnections[0].DatabaseName;
                        coninfo.ServerName = this._RptDoc.DataSourceConnections[0].ServerName;
                        coninfo.UserID = this._RptDoc.DataSourceConnections[0].UserID;
                        coninfo.Password = this._RptDoc.DataSourceConnections[0].Password;
                        foreach (CrystalDecisions.CrystalReports.Engine.Table crtbl in this._RptDoc.Database.Tables)
                            TableLogOnInfo logoninfo = crtbl.LogOnInfo;
                            logoninfo.ConnectionInfo = coninfo;
                            crtbl.ApplyLogOnInfo(logoninfo);
                        _IsLoggedIn = true;

  • Database limit warning when creating database copy

    Exchange 2010 Standard SP3 RU3.
    2 Server mailbox DAG.
    I have 5 mailbox databases mounted. I have a copy of each database. WHen I try to create a copy for the 5th mailbox database I get the following warning "Server has reached the maximum database limit of 5.
    Looking at my server, There was an old database that was never used in the exchange directory but its not listed in the EMC.
    Is it possible that information about an old database still exists in AD? Where can I verify in Adsiedit what exchange databases it sees?

    Hi,
    One server limited to 5 databases in Exchange 2010 Standard edition.
    So, from the description of your screenshot I summary the following information:
    The following databases stayed on NASD-MBX1:
    Mailbox Database Admin
    Mailbox Database Faculty
    Mailbox Database Faculty Large
    Mailbox Database Faculty Medium
    Mailbox Database Faculty Small (Mounted)
    The following databases stayed on NASD-MBX2:
    Mailbox Database Admin (Mounted)
    Mailbox Database Faculty (Mounted)
    Mailbox Database Faculty Large (Mounted)
    Mailbox Database Faculty Medium (Mounted)
    Public Folder Database (It should be here, right?) (Mounted)
    Now, if we try to make a copy of “Mailbox Database Faculty Small”,
    it will be available as a passive database copy on NASD-MBX2. However, there are five Database mounted on NASD-MBX2 including the Public Folder Database. So it will
    get the error “Server has reached the maximum database limit of 5”. We can delete the Public Folder Database to test it.
    In ADSIEdit, please refer the following image to find these databases.
    Best Regards.

  • Install failing when running Database Configuration Assistant

    I am trying to install Oracle 9i on a new Solaris 9 box. Everything goes fine until oui tries to run the Database Configuration Assistant. It is at the "Creating and starting Oracle Instance" stage that I get a popup which says:
    ORA-27302: failure occured at: skgpwreset1
    ORA-27303: additional information: invalid shared ctx
    ORA-27146: post/wait initialization failed with
    status:28
    ORA-27301: OS failure message: No space left on device
    ORA-27302: failure occured at: sskgpcreates
    I don't understand the "No space left on device" as I have ~30 GB available. I am hoping it is a result of the invalid shared ctx above it. Other than this, the installation completes without any errors.
    I have been banging my head against this for over a week! Does anyone have any suggestions. I am sorry I waited so long to post the question, but I could use some assistance urgently.
    TIA,
    Steve

    Solution:
    For Solaris 9 the (recommended) /etc/system parameters look like this:
    set semsys:seminfo_semmni= 100
    set semsys:seminfo_semmns= 1024
    set semsys:seminfo_semmsl= 256
    set shmsys:shminfo_shmmax=4294967295
    set shmsys:shminfo_shmmni=100
    The other parameters are not needed in this Solaris version.
    I hope this is useful.

  • Custom classloader fails when using Java Web Start

    Hope you can help me with a problem that is driving me nuts. I have implemented my own classloader to support plugins. This classloader works as follows:
    1. The classloader is configured to access a plugin components jar file downloaded by jws.
    2. The plugin components jar file contains other jar files which contains the actual plugin code to be loaded using my own classloader.
    3. Upon initialization - my classloader extracts all jar files contained in the plugin components jar file into temporary files.
    4. These temporary files are used by my classloader when defining plugin classes.
    The classloader works fine when not using java web start. Then I launch the application using java web start with security policy in .jnlp file set to:
    <security>
    <all-permissions/>
    </security>
    After a while (it was able to load some of the classes) it fails with the following stack-trace:
    Regards,
    Terje
    java.security.AccessControlException: access denied (java.io.FilePermission C:\DOCUME~1\TEOES\LOCALS~1\Temp\activity61102.jar read)
         at java.security.AccessControlContext.checkPermission(Unknown Source)
         at java.security.AccessController.checkPermission(Unknown Source)
         at java.lang.SecurityManager.checkPermission(Unknown Source)
         at java.lang.SecurityManager.checkRead(Unknown Source)
         at java.util.zip.ZipFile.<init>(Unknown Source)
         at java.util.jar.JarFile.<init>(Unknown Source)
         at java.util.jar.JarFile.<init>(Unknown Source)
         at my.plugin.ActivityClassLoader.getJarFileEntry(ActivityClassLoader.java:258)
         at my.plugin.ActivityClassLoader.search(ActivityClassLoader.java:244)
         at my.plugin.ActivityClassLoader.loadClass(ActivityClassLoader.java:99)
         at java.lang.ClassLoader.loadClass(Unknown Source)
         at java.lang.ClassLoader.loadClassInternal(Unknown Source)
    Does anyone have source code for implementing a simple class loader that can be used with Java Web Start (preferrably with all jar files to be used by the classloader wrapped into a jar file)

    If you implement your own classloader, and then still run with a SecurityManager installed, then your ClossLoader is responsible for asigning the permissions to the code it loads.
    You need your ClassLoader to extend SecureClassLoader, and implement the method :
    SecureClassLoader.getPermissions(CodeSource cs) to return the PermissionCollection you want.
    /Andy

  • J2EE Engine start error: Database initialization failed!

    My J2EE engine now fails to start - jcontrol stays yellow.  I've followed Troubleshooting pages from help.sap.com Admin manual topic "starting J2EE Engine".
    Background:
    I was running through JDI Scenario 2+ on a fresh installed WebAS 6.40 at SP9.  Using NWDevStudio2.09, I attempted to load a DC, but servers stopped responding.  So I downed everything (in MMC) including offlining the DB, then put DB back online and restart the J2E engine, and now jcontrol stays yellow. 
    I find this in the file log_bootstrap_ID0014430.0.log:
    Apr 7, 2005 3:10:23 PM  ] Bootstrap MODE:
    [Apr 7, 2005 3:10:23 PM  ] <INSTANCE GLOBALS>
    [Apr 7, 2005 3:10:23 PM  ]  determined by parameter [ID0014430].
    [Apr 7, 2005 3:10:23 PM  ] -
    [Apr 7, 2005 3:10:26 PM  ] Exception occured:
    com.sap.engine.bootstrap.SynchronizationException: Database initialization failed! Check database properties!
         at com.sap.engine.bootstrap.Bootstrap.initDatabaseConnection(Bootstrap.java:422)
         at com.sap.engine.bootstrap.Bootstrap.<init>(Bootstrap.java:144)
         at com.sap.engine.bootstrap.Bootstrap.main(Bootstrap.java:813)
    .........a few lines cut out here..........
         at com.sap.engine.offline.OfflineToolStart.main(OfflineToolStart.java:81)
    ==[ Caused by: ]==----
    com.sap.engine.frame.core.configuration.ConfigurationException: Error while connecting to DB.
         at com.sap.engine.core.configuration.impl.persistence.rdbms.DBConnectionPool.createConnection(DBConnectionPool.java:344)
    ............ a few lines cut out here..........
         at com.sap.engine.offline.OfflineToolStart.main(OfflineToolStart.java:81)
    Caused by: com.sap.dbtech.jdbc.exceptions.JDBCDriverException: SAP DBTech JDBC: Cannot connect to jdbc:sapdb://PHI21811/J2E [Cannot connect to host PHI21811 [Connection refused: connect], -813.].
         at com.sap.dbtech.jdbc.DriverSapDB.connect(DriverSapDB.java:183)
         at com.sap.sql.jdbc.NativeConnectionFactory.createNativeConnection(NativeConnectionFactory.java:219)
         at com.sap.sql.connect.OpenSQLDataSourceImpl.createPooledConnection(OpenSQLDataSourceImpl.java:570)
         at com.sap.sql.connect.OpenSQLDataSourceImpl.getPooledConnection(OpenSQLDataSourceImpl.java:263)
         at com.sap.engine.core.configuration.impl.persistence.rdbms.DBConnectionPool.createConnection(DBConnectionPool.java:294)
         ... 14 more
    [Apr 7, 2005 3:10:26 PM  ] [Bootstrap module]> Problem occured while performing synchronization.
    [Apr 7, 2005 3:22:24 PM  ] -
    ANYONE HAVE ANY SUGGESTIONS?????

    Using the Database Administration section of the help.sap.com library, I found the location of SAPDB/MySQL log files.  They are in C:\sapdb\data\wrk\J2E.  In 'knldiag' I found entries complaining of Log files being full and tasks put in suspension.
    So I figured out to do a full back up of the DB and/or backup the log files.  The log file bar (in MMC) still showed 100% full, but I figured out to refresh the view and voila it was empty (so one of the backups emptied it, not sure which one).
    After that the DB comes up fine and now my J2E WebAS goes all green.
    Message was edited by: Michael W Rains

  • Database Logon Failed which created by Crystal Report 2008

    this time i meet the famous error again which is database logon failed.
    i created a crystal report 2008 starting from blank report, then connect with odbc
    i use 2008 method
    objRpt.SetDatabaseLogon(db_username, db_password, odbc_name, database_name);
    2008 method will get database logon failed even set database location and verify database again
    then i use 8.5 method and try again for 2008 report. it said field name is unknown for one of formula
    then i drag field again for formula and set database location and verify database again
    it said the same error.
    then i uninstall 8.5 crytal report software in window 7 deployment machine, and do above again, it said the same error
    //'Create a new Stored Procedure Table to replace the reports current table.
            CrystalDecisions.ReportAppServer.DataDefModel.Procedure boTable = new CrystalDecisions.ReportAppServer.DataDefModel.Procedure();
            //'boMainPropertyBag: These hold the attributes of the tables ConnectionInfo object
            PropertyBag boMainPropertyBag = new PropertyBag();
            //'boInnerPropertyBag: These hold the attributes for the QE_LogonProperties
            //'In the main property bag (boMainPropertyBag)
            PropertyBag boInnerPropertyBag = new PropertyBag();
            //'Set the attributes for the boInnerPropertyBag
            boInnerPropertyBag.Add("Connect Timeout", "15");
            //boInnerPropertyBag.Add("Data Source", "MyDataSource");
            boInnerPropertyBag.Add("Data Source", "10.1.1.191");
            boInnerPropertyBag.Add("DataTypeCompatibility", "0");
            boInnerPropertyBag.Add("General Timeout", "0");
            //boInnerPropertyBag.Add("Initial Catalog", "MyCatalog");
            boInnerPropertyBag.Add("Initial Catalog", database_name);
            boInnerPropertyBag.Add("Integrated Security", "False");
            boInnerPropertyBag.Add("Locale Identifier", "1033");
            boInnerPropertyBag.Add("MARS Connection", "0");
            //boInnerPropertyBag.Add("OLE DB Services", "-5");
            //boInnerPropertyBag.Add("ODBC", "-5");
            boInnerPropertyBag.Add("ODBC", "Cheque");
            boInnerPropertyBag.Add("Provider", "SQLNCLI");
            boInnerPropertyBag.Add("Tag with column collation when possible", "0");
            boInnerPropertyBag.Add("Trust Server Certificate", "0");
            boInnerPropertyBag.Add("Use Encryption for Data", "0");
            //'Set the attributes for the boMainPropertyBag
            boMainPropertyBag.Add("Database DLL", "crdb_ado.dll");
            //boMainPropertyBag.Add("Database DLL", "p2sodbc.dll");
            //boMainPropertyBag.Add("QE_DatabaseName", "VEPILOT");
            boMainPropertyBag.Add("QE_DatabaseName", database_name);
            //boMainPropertyBag.Add("QE_DatabaseType", "OLE DB (ADO)");
            boMainPropertyBag.Add("QE_DatabaseType", "ODBC");
            //'Add the QE_LogonProperties we set in the boInnerPropertyBag Object
            boMainPropertyBag.Add("QE_LogonProperties", boInnerPropertyBag);
            boMainPropertyBag.Add("QE_ServerDescription", "MyServer");
            boMainPropertyBag.Add("QE_SQLDB", "True");
            boMainPropertyBag.Add("SSO Enabled", "False");
            //'Create a new ConnectionInfo object
            CrystalDecisions.ReportAppServer.DataDefModel.ConnectionInfo boConnectionInfo = new CrystalDecisions.ReportAppServer.DataDefModel.ConnectionInfo();
            //'Pass the database properties to a connection info object
            boConnectionInfo.Attributes = boMainPropertyBag;
            //'Set the connection kind
            boConnectionInfo.Kind = CrConnectionInfoKindEnum.crConnectionInfoKindCRQE;
            //'*EDIT* Set the User Name and Password if required.
            boConnectionInfo.UserName = db_username;
            boConnectionInfo.Password = db_password;
            //'Pass the connection information to the table
            boTable.ConnectionInfo = boConnectionInfo;
    CrystalDecisions.ReportAppServer.DataDefModel.Tables boTables = objRpt.ReportClientDocument.DatabaseController.Database.Tables;
                CrystalDecisions.CrystalReports.Engine.Tables tables = objRpt.Database.Tables;
                foreach (CrystalDecisions.CrystalReports.Engine.Table table in tables)
                    if (!string.IsNullOrEmpty(table.Name))
                        //boTable.Name = table.Name;
                        //boTable.QualifiedName = database_name + ".dbo." + table.Name;
                        //boTable.Alias = table.Name;
                        boTable.Name = "sp_ChequeIssueDetRpt";
                        boTable.QualifiedName = database_name + ".dbo.sp_ChequeIssueDetRpt";
                        boTable.Alias = "sp_ChequeIssueDetRpt";
                        objRpt.ReportClientDocument.DatabaseController.SetTableLocation(boTables[0], boTable);
                objRpt.VerifyDatabase();
    http://sourceforge.net/projects/aspchequesprint/files/ChequeIssueDet.rpt/download

    No subreport, only a stored procedure with final two lines are
    print @m_sql
    exec (@m_sql)
    After use generated code in the link above
    Error at boReportDocument.VerifyDatabase();
    Inner Exception : no error
    Message "Logon failed"
    ErrorID : CrystalDecisions.CrystalReports.Engine.EngineExceptionErrorID.LogOnFailed
    HelpLink : null
    stacktrace :  CrystalDecisions.CrystalReports.Engine.ReportDocument.VerifyDatabase()\r\n   at viewReport.Page_Load(Object sender, EventArgs e) 於 d:
    Data
    My Documents
    Visual Studio 2008
    WebSites
    Cheques
    viewReport.aspx.cs: row 1302\r\n   at System.Web.Util.CalliHelper.EventArgFunctionCaller(IntPtr fp, Object o, Object t, EventArgs e)\r\n   at System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e)\r\n   at System.Web.UI.Control.OnLoad(EventArgs e)\r\n   at System.Web.UI.Control.LoadRecursive()\r\n   於 System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
    TargetSite : {Void VerifyDatabase()}
    string reportPath = report_path + "ChequeIssueDet.rpt";
                boReportDocument = new ReportDocument();
                //**EDIT** Change the path and report name to the report you want to change.
                boReportDocument.Load(reportPath, OpenReportMethod.OpenReportByTempCopy);
                //Create a new Stored Procedure Table to replace the reports current table.
                CrystalDecisions.ReportAppServer.DataDefModel.Procedure boTable =
                new CrystalDecisions.ReportAppServer.DataDefModel.Procedure();
                //boMainPropertyBag: These hold the attributes of the tables ConnectionInfo object
                PropertyBag boMainPropertyBag = new PropertyBag();
                //boInnerPropertyBag: These hold the attributes for the QE_LogonProperties
                //In the main property bag (boMainPropertyBag)
                PropertyBag boInnerPropertyBag = new PropertyBag();
                //Set the attributes for the boInnerPropertyBag
                boInnerPropertyBag.Add("Database", database_name);
                boInnerPropertyBag.Add("DSN", "Cheque");
                boInnerPropertyBag.Add("UseDSNProperties", "False");
                //Set the attributes for the boMainPropertyBag
                boMainPropertyBag.Add("Database DLL", "crdb_odbc.dll");
                boMainPropertyBag.Add("QE_DatabaseName", database_name);
                boMainPropertyBag.Add("QE_DatabaseType", "ODBC (RDO)");
                //Add the QE_LogonProperties we set in the boInnerPropertyBag Object
                boMainPropertyBag.Add("QE_LogonProperties", boInnerPropertyBag);
                boMainPropertyBag.Add("QE_ServerDescription", "Cheque");
                boMainPropertyBag.Add("QE_SQLDB", "True");
                boMainPropertyBag.Add("SSO Enabled", "False");
                //Create a new ConnectionInfo object
                CrystalDecisions.ReportAppServer.DataDefModel.ConnectionInfo boConnectionInfo =
                new CrystalDecisions.ReportAppServer.DataDefModel.ConnectionInfo();
                //Pass the database properties to a connection info object
                boConnectionInfo.Attributes = boMainPropertyBag;
                //Set the connection kind
                boConnectionInfo.Kind = CrConnectionInfoKindEnum.crConnectionInfoKindCRQE;
                //**EDIT** Set the User Name and Password if required.
                boConnectionInfo.UserName = db_username;
                boConnectionInfo.Password = db_password;
                //Pass the connection information to the table
                boTable.ConnectionInfo = boConnectionInfo;
                //Get the Database Tables Collection for your report
                CrystalDecisions.ReportAppServer.DataDefModel.Tables boTables;
                boTables = boReportDocument.ReportClientDocument.DatabaseController.Database.Tables;
                //For each table in the report:
                // - Set the Table Name properties.
                // - Set the table location in the report to use the new modified table
                boTable.Name = "sp_ChequeIssueDetRpt;1";
                boTable.QualifiedName = database_name+".dbo.sp_ChequeIssueDetRpt;1";
                boTable.Alias = "sp_ChequeIssueDetRpt;1";
                boReportDocument.ReportClientDocument.DatabaseController.SetTableLocation(boTables[0], boTable);
                //Verify the database after adding substituting the new table.
                //To ensure that the table updates properly when adding Command tables or Stored Procedures.
                boReportDocument.VerifyDatabase();
                //**EDIT** Set the value for the Stored Procedure parameters.
                string m_curUser = "";
                int spid = Convert.ToInt32(Request.Cookies["login_cookie"]["spid"]);
                queryString = "select * from v_All_Session where SPID=" + spid.ToString();
                //string _connectionString = ConfigurationManager.ConnectionStrings["ChequeConnectionString"].ConnectionString;
                using (SqlConnection connection = new SqlConnection(_connectionString))
                    SqlCommand command = connection.CreateCommand();
                    command.CommandText = queryString;
                    connection.Open();
                    using (SqlDataReader datareader = command.ExecuteReader())
                        if (datareader.HasRows == true)
                            while (datareader.Read())
                                if (datareader["UserID"] != System.DBNull.Value)
                                    m_curUser = datareader["UserID"].ToString();
                        datareader.Close();
                    connection.Close();
                boReportDocument.SetParameterValue("@UserID", m_curUser);
                if (string.IsNullOrEmpty(Session["fm_CoCode"].ToString()))
                    boReportDocument.SetParameterValue("@fm_CoCode", Session["fm_CoCode"].ToString());
                if (string.IsNullOrEmpty(Session["to_CoCode"].ToString()))
                    boReportDocument.SetParameterValue("@to_CoCode", Session["to_CoCode"].ToString());
                if (string.IsNullOrEmpty(Session["fm_BankACNo"].ToString()))
                    boReportDocument.SetParameterValue("@fm_BankACNo", Session["fm_BankACNo"].ToString());
                if (string.IsNullOrEmpty(Session["to_BankACNo"].ToString()))
                    boReportDocument.SetParameterValue("@to_BankACNo", Session["to_BankACNo"].ToString());
                if (string.IsNullOrEmpty(Session["fm_BatchNo"].ToString()))
                    boReportDocument.SetParameterValue("@fm_BatchNo", Session["fm_BatchNo"].ToString());
                if (string.IsNullOrEmpty(Session["to_BatchNo"].ToString()))
                    boReportDocument.SetParameterValue("@to_BatchNo", Session["to_BatchNo"].ToString());
    Edited by: Mathew_666 on Jul 19, 2011 4:27 AM
    Edited by: Mathew_666 on Jul 19, 2011 4:28 AM

  • ORA-16607: one or more databases have failed

    Dear folks,
    we are trying to create a physical standby database using DGMGRL CLI .After the configuration is made and while enabling the configuration is made i get this error ORA-16607: one or more databases have failed.When i checked the alert log i get
    ORACLE Instance iasdb - Archival Error. Archiver continuing.
    ARCH: Connecting to console port...
    ARCH: Connecting to console port...
    Error 12514 received logging on to the standby
    Mon Sep 27 08:34:03 2010
    Errors in file /oracle1/admin/iasdb/bdump/iasdb_arc1_7516.trc:
    ORA-12514: TNS:listener does not currently know of service requested in connect descriptor
    PING[ARC1]: Heartbeat failed to connect to standby '(DESCRIPTION=(ADDRESS_LIST=(ADDRESS=(PROTOCOL=tcp)(HOST=inuchn12.ind.rsa-ins.com)(PORT=1521)))(CONNECT_DATA=(SERVICE_NAME=iasdb_XPT.ind.rsa-ins.com)(INSTANCE_NAME=iasdb)(SERVER=dedicated)))'. Error is 12514.
    Error 12514 received logging on to the standby
    Mon Sep 27 08:40:03 2010
    Errors in file /oracle1/admin/iasdb/bdump/iasdb_arc1_7516.trc:
    ORA-12514: TNS:listener does not currently know of service requested in connect descriptor
    PING[ARC1]: Heartbeat failed to connect to standby '(DESCRIPTION=(ADDRESS_LIST=(ADDRESS=(PROTOCOL=tcp)(HOST=inuchn12.ind.rsa-ins.com)(PORT=1521)))(CONNECT_DATA=(SERVICE_NAME=iasdb_XPT.ind.rsa-ins.com)(INSTANCE_NAME=iasdb)(SERVER=dedicated)))'. Error is 12514.
    Error 12514 received logging on to the standby
    Mon Sep 27 08:46:03 2010
    Errors in file /oracle1/admin/iasdb/bdump/iasdb_arc1_7516.trc:
    ORA-12514: TNS:listener does not currently know of service requested in connect descriptor
    PING[ARC1]: Heartbeat failed to connect to standby '(DESCRIPTION=(ADDRESS_LIST=(ADDRESS=(PROTOCOL=tcp)(HOST=inuchn12.ind.rsa-ins.com)(PORT=1521)))(CONNECT_DATA=(SERVICE_NAME=iasdb_XPT.ind.rsa-ins.com)(INSTANCE_NAME=iasdb)(SERVER=dedicated)))'. Error is 12514.
    My enviroinment:
    Database: Oracle 10g
    OS:Oracle solaris 10 SPARC
    Folk kindly help with this.Thanks in advance.
    Regards
    Prasanna.N

    Dear Prasanna.N,
    First of all, please see the following error code;
    Error 12514
    http://ora-12514.ora-code.com/
    ORA-12514:
    TNS:listener does not currently know of service requested in connect descriptor
    Cause: The listener received a request to establish a connection to a database or other service.
    The connect descriptor received by the listener specified a service name for a service (usually a database service) that either has not yet dynamically registered with the listener or has not been statically configured for the listener.
    This may be a temporary condition such as after the listener has started, but before the database instance has registered with the listener.
    Action:      
    - Wait a moment and try to connect a second time.
    - Check which services are currently known by the listener by executing: lsnrctl services <listener name>
    - Check that the SERVICE_NAME parameter in the connect descriptor of the net service name used specifies a service known by the listener.
    - If an easy connect naming connect identifier was used, check that the service name specified is a service known by the listener.
    - Check for an event in the listener.log file.This is purely a connection problem and you can also use the +"tnsping"+ to see whether the Oracle can resolve the naming service or not. Use the naming service for the tnsping: iasdb_XPT.ind.rsa-ins.com
    Fix that problem and edit the tnsnames.ora file and see the results again. You may need to check the alert.log and the listener.log files for further informational messages.
    Hope That Helps.
    Ogan

  • Database Logon Failed in Drill Down reports

    I am developing reports on Crystal Reports XI R2, VS.NET 2005 , SQL Server 2000, C#.
    I am getting Database Logon Failed when I click on a drill down link in the report. It works if I click on the drill down link with in a minute. But if I wait for a minute and click on drill down, I am getting Database Logon Failed 
    Error in Crystal report viewer14
    Object reference not set to an instance of an object
    Any help would be greatly appreciated.
    Thanks,
    Sailu

    The above code should be written after the loading of report.
    For example-
    private void Page_Load(object sender, System.EventArgs e)
                   // Put user code to initialize the page here
                   if (!IsPostBack)
                        crReport.Load(Server.MapPath("CrystalReport1.rpt"));
                        ConnectionInfo crConn= new ConnectionInfo();
                        crConn.ServerName="D-3271-SQL";
                        crConn.DatabaseName="Northwind";
                        crConn.UserID="sa";
                        crConn.Password="sa";
                        Tables crTables=crReport.Database.Tables;
                        foreach(CrystalDecisions.CrystalReports.Engine.Table crTable in crTables)
                             TableLogOnInfo crLogoninfo=crTable.LogOnInfo;
                             crLogoninfo.ConnectionInfo =crConn;
                             crTable.ApplyLogOnInfo(crLogoninfo);
                   CrystalReportViewer1.ReportSource =crReport;
    I hope this help
    Regards
    Amit
    Edited by: Amit Singh on Aug 21, 2008 4:48 PM

  • Database initialization failed after attach the database.

    Hello Everyone,
    I have a problem after detaching the database and attaching it again (I moved the database to another partition because of shortage of disk space). Then, I find that the system can not start. (I've two systems and now neither of them could start). The error seems very similar.
    In the pure java system(netweaver 04s) log: jvm_bootstrap.out,
    com.sap.engine.bootstrap.synchronizationException: Database Initializtion Failed! Check database properties.
    com.sap.engine.frame.core.configuration.configurationException: Error while connecting to DB.
    Caused by: java.sql.SQLException: [NWMss] [SQLServer JDBC Driver] [SQLServer] Login failed for user 'SAPBP0DB'.
    In pure ABAP system(Netweaver 04s) log: dev_w12:
    openoledbConnection: MARS property was not set.
    openoledbConnection: line 23722. hr: 0x8000ffff login failed for user 'CNDT50083414\SAPServiceBE0'.
    sloledb.cpp [openoledbConnection, line 23722]: Error/Message: (err 18456, sev 0), Login failed for user 'CNDT50083414\SAPServiceBE0'.
    sloledb.cpp [openoledbConnection, line 23722]: Error/Message: (err 0, sev 0), Invalid string connection attribute.
    Is this because the DB not started? In Windows Services, I found 'MSSQLServer' is started.
    How can I trace down to this problem? I don't have much idea on DB...
    All your kindly help is greatly appreciated.
    Best Regards,

    Hi Karan,
    Thank you for your reply. I attach the dev_w0 file here:
    trc file: "dev_w0", trc level: 1, release: "700"
    ACTIVE TRACE LEVEL           1
    ACTIVE TRACE COMPONENTS      all, MJ

    B Tue Sep 23 13:16:15 2008
    B  create_con (con_name=R/3)
    B  Loading DB library 'C:\usr\sap\BE0\DVEBMGS02\exe\dbmssslib.dll' ...
    B  Library 'C:\usr\sap\BE0\DVEBMGS02\exe\dbmssslib.dll' loaded
    B  Version of 'C:\usr\sap\BE0\DVEBMGS02\exe\dbmssslib.dll' is "700.08", patchlevel (0.158)
    B  New connection 0 created
    M sysno      02
    M sid        BE0
    M systemid   562 (PC with Windows NT)
    M relno      7000
    M patchlevel 0
    M patchno    159
    M intno      20050900
    M make:      multithreaded, Unicode, 64 bit, optimized
    M pid        1704
    M
    M  kernel runs with dp version 237000(ext=110000) (@(#) DPLIB-INT-VERSION-237000-UC)
    M  length of sys_adm_ext is 576 bytes
    M  ***LOG Q0Q=> tskh_init, WPStart (Workproc 0 1704) [dpxxdisp.c   1316]
    I  MtxInit: 30000 0 0
    M  DpSysAdmExtCreate: ABAP is active
    M  DpSysAdmExtCreate: VMC (JAVA VM in WP) is not active
    M  DpShMCreate: sizeof(wp_adm)          21008     (1616)
    M  DpShMCreate: sizeof(tm_adm)          5912624     (29416)
    M  DpShMCreate: sizeof(wp_ca_adm)          24000     (80)
    M  DpShMCreate: sizeof(appc_ca_adm)     8000     (80)
    M  DpCommTableSize: max/headSize/ftSize/tableSize=500/16/552064/552080
    M  DpShMCreate: sizeof(comm_adm)          552080     (1088)
    M  DpSlockTableSize: max/headSize/ftSize/fiSize/tableSize=0/0/0/0/0
    M  DpShMCreate: sizeof(slock_adm)          0     (104)
    M  DpFileTableSize: max/headSize/ftSize/tableSize=0/0/0/0
    M  DpShMCreate: sizeof(file_adm)          0     (72)
    M  DpShMCreate: sizeof(vmc_adm)          0     (1864)
    M  DpShMCreate: sizeof(wall_adm)          (41664/36752/64/192)
    M  DpShMCreate: sizeof(gw_adm)     48
    M  DpShMCreate: SHM_DP_ADM_KEY          (addr: 0000000011080050, size: 6604928)
    M  DpShMCreate: allocated sys_adm at 0000000011080050
    M  DpShMCreate: allocated wp_adm at 0000000011082150
    M  DpShMCreate: allocated tm_adm_list at 0000000011087360
    M  DpShMCreate: allocated tm_adm at 00000000110873C0
    M  DpShMCreate: allocated wp_ca_adm at 000000001162ABF0
    M  DpShMCreate: allocated appc_ca_adm at 00000000116309B0
    M  DpShMCreate: allocated comm_adm at 00000000116328F0
    M  DpShMCreate: system runs without slock table
    M  DpShMCreate: system runs without file table
    M  DpShMCreate: allocated vmc_adm_list at 00000000116B9580
    M  DpShMCreate: allocated gw_adm at 00000000116B9600
    M  DpShMCreate: system runs without vmc_adm
    M  DpShMCreate: allocated ca_info at 00000000116B9630
    M  DpShMCreate: allocated wall_adm at 00000000116B9640
    M  rdisp/queue_size_check_value :  -> off
    M  ThTaskStatus: rdisp/reset_online_during_debug 0
    X  EmInit: MmSetImplementation( 2 ).
    X  MM global diagnostic options set: 0
    X  <ES> client 0 initializing ....
    X  Using implementation view
    X  <EsNT> Using memory model view.
    M  <EsNT> Memory Reset disabled as NT default
    X  ES initialized.
    M  ThInit: running on host CNDT50083414

    M Tue Sep 23 13:16:16 2008
    M  calling db_connect ...
    C  Thread ID:6104
    C  Thank You for using the SLOLEDB-interface
    C  Using dynamic link library 'C:\usr\sap\BE0\DVEBMGS02\exe\dbmssslib.dll'
    C  dbmssslib.dll patch info
    C    patchlevel   0
    C    patchno      158
    C    patchcomment Corrections of odbc-based dbsl: dsql: optype, DSN (1135165)
    C  np:(local) connection used on CNDT50083414
    C  CopyLocalParameters: dbuser is 'be0'

    C Tue Sep 23 13:16:17 2008
    C  Provider SQLNCLI could not be initialized. See note #734034 for more information.
    C  Using provider SQLOLEDB instead.
    C  OpenOledbConnection: MARS property was not set.
    C  OpenOledbConnection: line 23722. hr: 0x8000ffff Login failed for user 'CNDT50083414\SAPServiceBE0'.
    C  sloledb.cpp [OpenOledbConnection,line 23722]: Error/Message: (err 18456, sev 0), Login failed for user 'CNDT50083414\SAPServiceBE0'.
    C  Procname: [OpenOledbConnection - no proc]
    C  sloledb.cpp [OpenOledbConnection,line 23722]: Error/Message: (err 0, sev 0), Invalid connection string attribute
    C  Procname: [OpenOledbConnection - no proc]
    C  Provider SQLNCLI could not be initialized. See note #734034 for more information.
    C  Using provider SQLOLEDB instead.
    C  OpenOledbConnection: line 23722. hr: 0x8000ffff Login failed for user 'CNDT50083414\SAPServiceBE0'.
    C  sloledb.cpp [OpenOledbConnection,line 23722]: Error/Message: (err 18456, sev 0), Login failed for user 'CNDT50083414\SAPServiceBE0'.
    C  Procname: [OpenOledbConnection - no proc]
    C  sloledb.cpp [OpenOledbConnection,line 23722]: Error/Message: (err 0, sev 0), Invalid connection string attribute
    C  Procname: [OpenOledbConnection - no proc]
    C  Provider SQLNCLI could not be initialized. See note #734034 for more information.
    C  Using provider SQLOLEDB instead.
    C  OpenOledbConnection: line 23722. hr: 0x8000ffff Login failed for user 'CNDT50083414\SAPServiceBE0'.
    C  sloledb.cpp [OpenOledbConnection,line 23722]: Error/Message: (err 18456, sev 0), Login failed for user 'CNDT50083414\SAPServiceBE0'.
    C  Procname: [OpenOledbConnection - no proc]
    C  sloledb.cpp [OpenOledbConnection,line 23722]: Error/Message: (err 0, sev 0), Invalid connection string attribute
    C  Procname: [OpenOledbConnection - no proc]
    C  failed to establish conn to np:(local).
    C  Retrying without protocol specifier: (local)
    C  Provider SQLNCLI could not be initialized. See note #734034 for more information.
    C  Using provider SQLOLEDB instead.
    C  OpenOledbConnection: line 23722. hr: 0x8000ffff Login failed for user 'CNDT50083414\SAPServiceBE0'.
    C  sloledb.cpp [OpenOledbConnection,line 23722]: Error/Message: (err 18456, sev 0), Login failed for user 'CNDT50083414\SAPServiceBE0'.
    C  Procname: [OpenOledbConnection - no proc]
    C  sloledb.cpp [OpenOledbConnection,line 23722]: Error/Message: (err 0, sev 0), Invalid connection string attribute
    C  Procname: [OpenOledbConnection - no proc]
    C  Provider SQLNCLI could not be initialized. See note #734034 for more information.
    C  Using provider SQLOLEDB instead.
    C  OpenOledbConnection: line 23722. hr: 0x8000ffff Login failed for user 'CNDT50083414\SAPServiceBE0'.
    C  sloledb.cpp [OpenOledbConnection,line 23722]: Error/Message: (err 18456, sev 0), Login failed for user 'CNDT50083414\SAPServiceBE0'.
    C  Procname: [OpenOledbConnection - no proc]
    C  sloledb.cpp [OpenOledbConnection,line 23722]: Error/Message: (err 0, sev 0), Invalid connection string attribute
    C  Procname: [OpenOledbConnection - no proc]
    C  Provider SQLNCLI could not be initialized. See note #734034 for more information.
    C  Using provider SQLOLEDB instead.
    C  OpenOledbConnection: line 23722. hr: 0x8000ffff Login failed for user 'CNDT50083414\SAPServiceBE0'.
    C  sloledb.cpp [OpenOledbConnection,line 23722]: Error/Message: (err 18456, sev 0), Login failed for user 'CNDT50083414\SAPServiceBE0'.
    C  Procname: [OpenOledbConnection - no proc]
    C  sloledb.cpp [OpenOledbConnection,line 23722]: Error/Message: (err 0, sev 0), Invalid connection string attribute
    C  Procname: [OpenOledbConnection - no proc]
    C  failed to establish conn. 0
    B  ***LOG BY2=> sql error -1     performing CON [dbsh#2 @ 1204] [dbsh    1204 ]
    B  ***LOG BY0=> Login failed for user 'CNDT50083414\SAPServiceBE0'. [dbsh#2 @ 1204] [dbsh    1204 ]
    B  ***LOG BY2=> sql error -1     performing CON [dblink#5 @ 431] [dblink  0431 ]
    B  ***LOG BY0=> Login failed for user 'CNDT50083414\SAPServiceBE0'. [dblink#5 @ 431] [dblink  0431 ]
    M  ***LOG R19=> ThInit, db_connect ( DB-Connect 000256) [thxxhead.c   1440]
    M  in_ThErrHandle: 1
    M  *** ERROR => ThInit: db_connect (step 1, th_errno 13, action 3, level 1) [thxxhead.c   10504]

    M  Info for wp 0

    M    pid = 1704
    M    severity = 0
    M    status = 0
    M    stat = WP_RUN
    M    waiting_for = NO_WAITING
    M    reqtype = DP_RQ_DIAWP
    M    act_reqtype = NO_REQTYPE
    M    rq_info = 0
    M    tid = -1
    M    mode = 255
    M    len = -1
    M    rq_id = 65535
    M    rq_source =
    M    last_tid = 0
    M    last_mode = 0
    M    semaphore = 0
    M    act_cs_count = 0
    M    csTrack = 0
    M    csTrackRwExcl = 0
    M    csTrackRwShrd = 0
    M    mode_cleaned_counter = 0
    M    control_flag = 0
    M    int_checked_resource(RFC) = 0
    M    ext_checked_resource(RFC) = 0
    M    int_checked_resource(HTTP) = 0
    M    ext_checked_resource(HTTP) = 0
    M    report = >                                        <
    M    action = 0
    M    tab_name = >                              <
    M    attachedVm = no VM

    M  *****************************************************************************
    M  *
    M  *  LOCATION    SAP-Server CNDT50083414_BE0_02 on host CNDT50083414 (wp 0)
    M  *  ERROR       ThInit: db_connect
    M  *
    M  *  TIME        Tue Sep 23 13:16:17 2008
    M  *  RELEASE     700
    M  *  COMPONENT   Taskhandler
    M  *  VERSION     1
    M  *  RC          13
    M  *  MODULE      thxxhead.c
    M  *  LINE        10724
    M  *  COUNTER     1
    M  *
    M  *****************************************************************************

    M  PfStatDisconnect: disconnect statistics
    M  Entering TH_CALLHOOKS
    M  ThCallHooks: call hook >ThrSaveSPAFields< for event BEFORE_DUMP
    M  *** ERROR => ThrSaveSPAFields: no valid thr_wpadm [thxxrun1.c   724]
    M  *** ERROR => ThCallHooks: event handler ThrSaveSPAFields for event BEFORE_DUMP failed [thxxtool3.c  261]
    M  Entering ThSetStatError
    M  ThIErrHandle: do not call ThrCoreInfo (no_core_info=0, in_dynp_env=0)
    M  Entering ThReadDetachMode
    M  call ThrShutDown (1)...
    M  ***LOG Q02=> wp_halt, WPStop (Workproc 0 1704) [dpnttool.c   333]

  • How to un-register target database in Catalog DB?

    I am using 8.0.5. I create a Catalog database and register a target database with it for online backup. How do I un-register a target database from the Catalog DB if I do not want to continue taking backup? Is there any 'unregister' command?
    Thanks in advance
    - Sanchayan RoyChoudhury
    Bangalore, India
    null

    Let me try...
    If u know your dbid (which can be found out by just logging into rman with the target databasse)
    login ot the catalog database throught sqlpplus as the catalog schema owner...
    run the following query..
    SELECT db_key, db_id FROM db WHERE db_id ="dbid just found";
    then run
    execute dbms_rcvcat.unregisterdatabase(db_key, db_id);
    This will unregister your database from the catalog. however keep in mind that you will lose all records of your old backups..
    HTH
    null

Maybe you are looking for

  • Re: Nokia Lumia 520 music problem

    I bought a 520 2says ago. Created a nokia account, everytime i try using the music app to download a new song says we had problems registering your device for nokia unlimited music services.

  • How to post depreciation start date in next year?

    I have a problem in fix asset period control. We want to post the depreciation start date in the next two month after GR. I set the period control rule as: Fiscal Year Variant: K4, period control: Z1 (next 2 month), month: 12, day: 31, period: 13 But

  • [SOLVED] Pacman complains ... (no, it was clyde)

    After the update to pacman 3.4 and reading http://www.archlinux.org/news/503/, I updated my pacman.conf from the pacman.conf.pacnew and added the line Architecture = i686 (tried "= auto" as well). Pacman worked fine, but I had forgotten to update my

  • I want to rearrange images/files position in their folders. Drag & drop does not work

    I have just bought Elements 12. Great programme. I used to use Picasa 3, a good free programme. In Picasa it is easy to move images around in their folders by simply click, drag and drop. This does not work in elements. Is it possible to achieve this

  • Safari Log in...

    Evening, Bit of a weird one this - When I open a webpage that requires me to log in. The website tells me that I have entered the password or username wrong. Despite the fact that everything is correct. It then wont let me log into the website again,