Crystal Report XI R2 cause IIS to hang while calling ReportDocument.Close()

Dear Concern,
We are using Visual Studio 2008 (.Net framework 3.5) to develop ERP Web portal for our company. Crystal Report XI R2 has been used here for generating customized report.
I have written a CrystalReport utility to do all type of logon, parameter pass stuffs with the report. The utility itself implements IDisposable and following is my code at the Dispose method:
public override void Dispose()
_crReportDocument.Close();
_crReportDocument.Dispose();
But when my code reaches _crReportDocument.Close() then the IIS/ W3C hangs. I have waited for long time to the process to be finished but it never.
I also tried to move the code from my utility and directly close the report object from caller form but failed.
Can anyone please give me any suggestions regarding this issue? Is there anything wrong with this?
N.B. I have succeeded with Crystal Report X by using the same procedure.
Thank You.

Dear Adam,
Thanks.
The problem resolved after I have installed CR XI R2 Service Pack 4. Crystal Report 2008 of course is a better solution but I have to wait a bit for procurement.
Warm Regards,
Sultan

Similar Messages

  • 500 - Internal server error hosting Crystal Reports XI Server on IIS 7

    Hi. I have just moved a to IIS 7 running in 32 bit mode and despite a few stumbling blocks along the way, it is now up and running. The Crystal report documents output as .pdf format in their own frame with no problems but when I try and output the same reports in html 4.0 format, I get the following error: CrystalDecisions.CrystalReports.Engine.InvalidArgumentException: Invalid export options. Has anyone got any ideas what might be causing this? Any help would be appreciated.
    Edited by: foxdeveloper2000 on Dec 10, 2009 6:17 P M

    Hi Ludek, I tried the Process Monitor and it doesn't throw up anything obvious as is causing this, neither do the logs. I tried installing Crysyal X1 designer on the server and when I try html preview I get the following message:
    HTML Preview Configuration Required
    HTML Preview will be enabled when:
    You are logged on to Business Objects Enterprise. You can log on  using the Repository Explorer
    You have entered location of a Report Application Server. You can enter the Report Application Server Location on the Files->Options Dialog, Smart tag and html Preview tab.
    Please can someone explain what this means and how I do can get my reports to output in html format.
    Many thanks in advance

  • Crystal Reports 2010 SP1 on IIS 7.0 - Report is not being displayed

    Hi,
    Finally, the keycode assembly, BusinessObjects.Licensing.KeycodeDecoder.dll error is gone, after I installed Crystal Runtime 2010 SP1. Also, I tested Crystal Report 2010 SP1 on my Windows 32 application and I can tell that I do not have this error anymore and report is being displayed properly.
    But Crystal Report is not being displayed on ASP.NET page on MS Server 2008 standard edition SP2 with IIS 7.0. Database resides on iSeries remote machine.
    The MS Server 2008 is virtual machine.
    OS system has:
    Crystal Report Basic Runtime for Visual Studio 2008
    SAP Crystal Reports Runtime engine for .NET Framework 4 (32-bit)
    Simply the report is not being displayed at all. No errors are being recorded in the Event Viewer.
    Nothing happens; excerpt the page is Loadingu2026 and Waiting for u2018website nameu2019 in the left lower corner of Firefox web browser.
    Here is the code behind aspx page with a command button - very simple:
    using CrystalDecisions.CrystalReports.Engine;
    using CrystalDecisions.Shared;
    protected void Button1_Click(object sender, EventArgs e)
    ReportDocument crReportDocument;
    Database crDatabase;
    Tables crTables;
    // CrystalDecisions.CrystalReports.Engine.Table crTable;
    TableLogOnInfo crTableLogOnInfo;
    ConnectionInfo crConnectionInfo;
    crConnectionInfo = new ConnectionInfo();
    //Set server name
    crConnectionInfo.ServerName = this._strServerName;
    //set database name
    crConnectionInfo.DatabaseName = this._strDatabaseName;
    crConnectionInfo.UserID = this._strUserID;
    crConnectionInfo.Password = this._strUserPassword;
    //Set integrated security
    crConnectionInfo.IntegratedSecurity = false;
    crReportDocument = new ReportDocument();
    crReportDocument.Load(Server.MapPath("~/crystal-reports/TransformerLoad/TransLoadMonthlyMax.rpt"));
    crDatabase = crReportDocument.Database;
    //Set all tables from current report file
    crTables = crReportDocument.Database.Tables;
    //crTableLogOnInfo.ConnectionInfo = crConnectionInfo;
    //Apply schema name to the table's location
    foreach (CrystalDecisions.CrystalReports.Engine.Table _crTable in crTables)
    crTableLogOnInfo = _crTable.LogOnInfo;
    crTableLogOnInfo.ConnectionInfo = crConnectionInfo;
    _crTable.ApplyLogOnInfo(crTableLogOnInfo);
    //Check if database table name starts
    if (_crTable.Location.StartsWith("XFMRSMAX", StringComparison.CurrentCulture) ||
    _crTable.Location.StartsWith("XFMRSMIN", StringComparison.CurrentCulture))
    //_crTable.Location = this._strSchemaName + "." + _crTable.Location.Remove(8) + Convert.ToInt32(Request.QueryString\"ReportYear\");
    _crTable.Location = "XFMRSMAX09";
    else
    _crTable.Location = _crTable.Location;
    this.CrystalReportViewer1.ReportSource = crReportDocument;
    This code runs on my development machine Win XP SP3
    OS system has:
    Crystal Report Basic Runtime for Visual Studio 2008
    SAP Crystal Reports Runtime engine for .NET Framework 4 (32-bit)
    This code also runs on another development server - Windows XP SP3 (IIS 5.1)
    OS system has:
    Crystal Report Basic Runtime for Visual Studio 2008
    SAP Crystal Reports Runtime engine for .NET Framework 4 (32-bit)
    ispnet_client folder has IUSR user and this user has read permissions to this folder. I even tried to change the permissions to Read & Execute.
    I am developing my reports using Crystal Reports 2008 SP2.
    Any help would be greatly appreciated.
    Serghei

    Hi Ludek,
    Thank you for your response.
    I checked the web.config file, all http handlers are there. I think the handlers are required to render the images on crystal report viewer but in my case the report viewer is not being rendered.
    I have to questions:
    1. What exact folders should be under aspnet_client\system_web?
    In my case I have structure like this
    aspnet_client\system_web\2_0_50727\crystalreportviewers13
    aspnet_client\system_web\4_0_30319\crystalreportviewers13
    Should I have folders something like this
    aspnet_client\system_web\2_0_50727\crystalreportviewers13_1
    aspnet_client\system_web\4_0_30319\crystalreportviewers13_1
    after I installed Crystal Reports 2010 SP1
    Also, in C:\Program Files\SAP BusinessObjects\Crystal Reports for .NET 4.0\Common\Crystal Reports 2011\ there is no folder named as crystalreportviewers13 but instead crystalreportviewers
    a.     Should I copy all files from this folder to aspnet_client\system_web\2_0_50727\crystalreportviewers13, or
    b.     Should I copy all files from this folder to aspnet_client\system_web\2_0_50727\crystalreportviewers13 and rename this folder to
    crystalreportviewers
    2. Can you explain how to get a data report?
    This is the quote from your previous answer
    I'd be interested to see this simplified to a saved data report - no DB logon code - as a test...  
    Thank you Serghei

  • Crystal Reports Server 2008 on IIS

    Hello,  About six months ago we upgraded from CR Server XI to CR Server 2008 and at that time I believe we could only install with Apache Tomcat for CMC and InfoView.  Before, we ran in IIS and I immediately noticed how slow the page loads were after the upgrade.  Is it possible to use IIS again with Crystal Reports Server?

    Tomcat and IIS are both used by many of our customers and both are very reliable in most cases. The advantage of tomcat is all of our apps can be used with it. I'm hoping they release a CRS version with .net built back in but tomcat is usually just as good. I run them both side by side in XIR2 and 3.1, both perform fine for me in DEV environments.
    Regards,
    Tim

  • Crystal Reports  for VS2005 causes a Redistributable error for Windows 7

    HI, I believe I also have a compatibility iossue with pre-bundeled Visual Studio 2005 (VS2005) Crystal Reports and Windows 7 using an XP development environment on a virtual PC.
    I had built and published my VS 2005 desktop application code on a virtual PC running XP.After publishing the application executable to an application server for Windows 7 Kiosks machines to use. These Kiosks machines are used for Member Check In services. I discoverd that I get an error message when I attempt to print something from the application interface which says:
    +"Please install the appropriate Crytsal Reports redistributable (CCRedist.msi) contaning the correct version of the Crystal Reports runtime (x86, x64, or Itanium) required. Please go to http://www.businessobjects.com./support for more information."+*
    In attempting to resolve this issue, I went to the SAP site for help and discovered a help page on  Merged Modules listed on one of the Web pages.
    Next, I tried the suggestion one of the articles had mentioned about using CR2008 Click Once with VS2500 applications when deploying them. So I made sure that I unzipped  this downloaded file and copied over the existing Click Once Bootstrap files, listed in the Windows 8 /Bootstrap/Packages, with those from the SAP downloaded files for 2008 Click Once.
    Finally, I then rebuilt my application in VS2500 and published it using Click Once for the Windows 7 KIOSK to use.
    Unfortunately, when I went to link and run the application's executable using the Windows 7 Kiosk in order to run it's interface, I still got the same error message when I tried to print out a member's  Check In ticket.  These tickets are created using VS2005 Crystal Reports.
    Q) Did I do something incorrect when I used the SAP CR2008 Click Once merged module on deployemnt?
    Thanks.
    Tony

    Hi All,
    I have my application developed in VS2005 . When i am trying to print i am getting the following error:
    +"Please install the appropriate Crytsal Reports redistributable (CCRedist.msi) contaning the correct version of the Crystal Reports runtime (x86, x64, or Itanium) required. Please go tohttp://www.businessobjects.com./support for more information."+*
    I am using Windows 8 64-bit OS.
    Can u please guide me through the steps i need to follow to resolve this error.
    I did not understand the above threads .

  • Opening multiple reports in Crystal Reports for VS causes database connect limit to be reached.  Seems to be no way to force Crystal Reports to close database connection (other than exiting application)

    I am working on upgrading an application that has been in use for many years.  The application is written in VB6 and I have been tasked with upgrading the current application to Crystal Reports for Visual Studio.  I am using Crystal Reports for VS Version 13.0.12.1494.  The system's database is a Sybase SQL Anywhere 16 database with an ODBC connection using integrated login.  Each of the reports has the database connection set up from within the report.  There is only once database server, so each of the reports are pointing to the same DB.  The database server is currently installed as a "Personal Server" with a limit of 10 connections. 
    I have implemented the CR viewer as part of a COM-callable wrapper that exposes a COM interface for VB6 to interact with.  Inside of my viewer component is a Winform that embeds the Crystal's Report viewer.  The COM interface basically maps the basic Crystal apis to methods that the VB6 can call (i.e., Load Report, Set Field Text, Update SQL Query, etc).  This architecture is working as designed and the reports are displaying correctly and responding correctly to changes in queries, etc.
    The issue is that after I open 9 reports, the tenth one will respond with an error indicating that the database connection limit has been reached.  The database connections used by the reports aren't released until after the application is closed.  The application is designed for a secure environment that prohibits the non-administrative user from accessing the systems desktop, so asking the user tor restart the application after 10 reports isn't a viable option.
    I have checked and database connection pooling is turned off for the SQL Anywhere 16 driver.
    I have been digging on this for a few days and have tried adding code in the FormClosed event to close and dispose of the Report Document as follows:
    ReportDocument reportDoc= (ReportDocument) crystalReportViewer1.ReportSource;
    reportDoc.Close();
    reportDoc.Dispose();
    GC.Collect();       // Force garbage collection on disposed items
    I have also tried the following (as well as maybe 20 or so other permutations) trying to fix the issue with no success.  
    ReportDocument reportDoc= (ReportDocument) crystalReportViewer1.ReportSource;
    foreach (Table table in reportDoc.Database.Tables)
         table.Dispose();
    crystalReportViewer1.ReportSource = null;
    reportDoc.Database.Dispose();
    reportDoc.Close();
    reportDoc.Dispose();
    reportDoc = (ReportDocument)crystalReportViewer1.ReportSource;
    GC.Collect();       // Force garabe collection on disposed items
    Any ideas or suggestions would be greatly appreciated.  I have been pulling my hair out on this one!

    Hi Ludek,
    Thanks so much for the quick reply.  Unfortunately I did not have time to work on the reporting project Friday afternoon, but did a quick test this morning with some interesting results.  I'm hoping if I describe what I'm doing, you can show me the error of my ways.  This is really my first major undertaking with Crystal Reports.
    If I simply load the report, then close and dispose, I don't hit the limit of 10 files.  Note that I do not logon manually in my code as the logon parameters are all defined within the reports themselves.  The logon happens when you actually view the report.  Loading the report doesn't seem to actually log in to the DB.
    What I did was create a very simple form with a single button that creates the WinForm class which contains the Crystal Viewer.  It then loads the report, sets the ReportSource property on the CrystalReportsViewer object contained in the WInForm and shows the report. The report does show correctly, until the 10 reports limit is reached.
    The relevant code is shown below. More than I wanted to post, but i want to be as complete and unambiguous as possible. 
    This code displays the same behavior as my earlier post (after 10 reports we are unable to create another connection to the DB).
    // Initial Form that simply has a button
      public partial class SlectReport : form
            public SelectReport()
                InitializeComponent();
            private void button1_Click(object sender, EventArgs e)
                ReportDocument rd = new ReportDocument();
                ReportForm report = new ReportForm();
                try
                    rd.Load(@"Test.rpt");
                    report.ReportSource = rd;
                    report.Show();
             catch (Exception ex)
                  MessageBox.Show(ex.Message);
    // The WinForm containing the Crystal Reports Viewer
        public partial class ReportForm : Form
            public ReportForm()
                InitializeComponent();
            private void Form1_Load(object sender, EventArgs e)
                this.crystalReportViewer1.RefreshReport();
                this.FormClosed += new FormClosedEventHandler(ReportForm_FormClosed);
            void ReportForm_FormClosed(object sender, FormClosedEventArgs e)
                ReportDocument rd;
                rd = (ReportDocument)crystalReportViewer1.ReportSource;
                rd.Close();
                rd.Dispose();
            public object ReportSource
                set { crystalReportViewer1.ReportSource = value; }
    Again, any guidance would be greatly appreciated. 

  • Upgrading Crystal Reports XI Release 2 to CR 2008: Where is ReportDocument

    I am attempting to upgrade our .NET Crystal Reports code from Crystal Reports XI Release 2 on Visual Studio 2005 SP1 to Crystal Reports 2008 on the same compiler.  We use the ReportDocument interface and I can't seem to find it in the new Crystal Reports 4.0 managed directory.  Here's the top of the .header file that worked in the old environment:
    #using <CrystalDecisions.Shared.dll>
    #using <CrystalDecisions.CrystalReports.Engine.dll>
    #using <CrystalDecisions.Enterprise.InfoStore.dll>
    using namespace CrystalDecisions::Shared;
    using namespace CrystalDecisions::CrystalReports::Engine;
    With that code in place, I get compiler errors indicating that the packages can't be found:
    c:\dev\sources\videoview_6_6\video\nextlink\reportfaxservice\NReportFaxServiceImpl.h(13) : fatal error C1107: could not find assembly 'CrystalDecisions.Shared.dll': please specify the assembly search path using /AI or by setting the LIBPATH
    environment variable
    If I comment out the lines as follows and add in the ReportDefModel (the only dll that appears to have a ReportDocument symbol):
    // #using <CrystalDecisions.Shared.dll>
    // #using <CrystalDecisions.CrystalReports.Engine.dll>
    #using <CrystalDecisions.Enterprise.InfoStore.dll>
    #using <CrystalDecisions.ReportAppServer.ReportDefModel.dll>
    // using namespace CrystalDecisions::Shared;
    // using namespace CrystalDecisions::CrystalReports::Engine;
    using namespace CrystalDecisions::ReportAppServer::ReportDefModel;
    Then, I get compiler errors like this:
    NReportFaxServiceImpl.cpp(306) : error C2039: 'Close' : is not a member of 'CrystalDecisions::ReportAppServer::ReportDefModel::ReportDocument'
            c:\dev\businessobjects\common\4.0\managed\crystaldecisions.reportappserver.reportdefmodel.dll : see declaration of 'CrystalDecisions::ReportAppServer::ReportDefModel::ReportDocument'
    NReportFaxServiceImpl.cpp(941) : error C2039: 'Load' : is not a member of 'CrystalDecisions::ReportAppServer::ReportDefModel::ReportDocument'
            c:\dev\businessobjects\common\4.0\managed\crystaldecisions.reportappserver.reportdefmodel.dll : see declaration of 'CrystalDecisions::ReportAppServer::ReportDefModel::ReportDocument'
    NReportFaxServiceImpl.cpp(950) : error C2039: 'SetParameterValue' : is not a member of 'CrystalDecisions::ReportAppServer::ReportDefModel::ReportDocument'
            c:\dev\businessobjects\common\4.0\managed\crystaldecisions.reportappserver.reportdefmodel.dll : see declaration of 'CrystalDecisions::ReportAppServer::ReportDefModel::ReportDocument'
    NReportFaxServiceImpl.cpp(974) : error C2039: 'ExportToDisk' : is not a member of 'CrystalDecisions::ReportAppServer::ReportDefModel::ReportDocument'
            c:\dev\businessobjects\common\4.0\managed\crystaldecisions.reportappserver.reportdefmodel.dll : see declaration of 'CrystalDecisions::ReportAppServer::ReportDefModel::ReportDocument'
    Here's line 306 of that source file, for example:
    NReportFaxServiceImpl::~NReportFaxServiceImpl()
         DESTLOG( LOG_NREPORTSERVER, "NReportFaxServiceImpl::~NReportFaxServiceImpl", "[[[]]]" );
         RFaxCloseServerHandle( _hRightFaxServer );
         //  close all the report documents
            IDictionaryEnumerator^ enumReportDocuments = _mapReportDocuments->GetEnumerator();
            while( enumReportDocuments->MoveNext() )
             Object^ reportName = enumReportDocuments->Key;
             ReportDocument^ crReportDocument = dynamic_cast<ReportDocument^>(enumReportDocuments->Value);
    /* line 306 */         crReportDocument->Close();
    Can anyone advise me of the correct #using directive to specify to pull in the ReportDocument object?
    Thanks.

    Okay, we seem to be getting somewhere.  I switched the /AI directive to point to the managed/dotnet2 directory, but then I get the following warning:
    c:\dev\sources\videoview_6_6\video\nextlink\reportfaxservice\NReportFaxServiceImpl.h(15) : fatal error C1107: could not find assembly 'CrystalDecisions.Enterprise.InfoStore.dll': please specify the assembly search path using /AI or by setting the LIBPATH environment variable
    NMAKE : fatal error U1077: 'c:\dev\VisualStudio\VC\bin\cl.EXE' : return code '0x2'
    So, I commented out the following line in the header:
    #using <CrystalDecisions.Enterprise.InfoStore.dll>
    Then, I get the following error when I try to make the project:
    NReportFaxServiceImpl.cpp(982) : error C3624: 'System::Drawing::Printing::PrinterSettings': use of this type requires a reference to assembly 'System.Drawing'
    NMAKE : fatal error U1077: 'c:\dev\VisualStudio\VC\bin\cl.EXE' : return code '0x2'
    Here is line 982:
                        crReportDocument->PrintToPrinter(1, false, 0, 0);  
    So, I'm assuming that maybe I need to provide an assembly search path to both the managed and the managed/dotnet2 directories.  Is that correct?  If so, is order dependent between those two /AI directives.
    Thanks.

  • Crystal reports 2008 sp3 : An error has occurred while attempting to load t

    Hello,
    Please forgive me for posting in the CR .NET forum because we are using the full Crystal Reports 2008 product and I did not see a category for it.  If there is a better forum for this question, please let me know or feel free to move it.
    We are having trouble deploying our crystal reports 2008 reports to a Windows Server 2008 R2 server in an aspx application...
    I have been working on this issue for 4-days and cannot seem to make any progress, so I would really appreciate your help.
    Our Environment:
    Development Computer (32-bit, WinXP)
      VS2008 (fully updated, was not installed with its Crystal Reports feature)
      Crystal Reports 2008 SP3 (downloaded and installed "cr2008_sp3_fullbuild")
    Database Server (64-bit)
      "SERVER2" is a Microsoft SQL Server 2008 server, fully updated
    Web Server (64-bit)
      "SERVER3" is a Microsoft Server 2008 R2 Web server.
    We have an application that is installed on the Web server and it pulls data from the database server.
    The webpages are accessing the database properly.  There is a ShowReport.aspx webpage that has the
    CrystalReportsViewer on it.  We send parameters and logon information to ShowReport.aspx.  ShowReport
    works properly on our development computer and the report looks good, but it fails on the web server.
    We downloaded CRRuntime_12_3_mlb.msi (X86) from SAP/CR and installed it on the web server without any issues.
    Our application pool on the web server for this application is set to 32-bit mode.  When I launch the
    application, it works properly with the database and displays data on web pages, but when I try to
    view a report on ShowReport, I get the following error message:
    An error has occurred while attempting to load the Crystal Reports runtime.
    Either the Crystal Reports registry key permissions are insufficient or the Crystal Reports runtime is not installed correctly.
    Please install the appropriate Crystal Reports redistributable (CRRedist*.msi) that contains the version of the Crystal Reports runtime (x86, x64, or Itanium)  that is required.
    According to everything that I have read, I have properly matched the DLLs: On the development computer, "cr2008_sp3_fullbuild" was installed; On
    the web server, "CRRuntime_12_3_mlb.msi (X86)" was installed.  They are both Crystal Reports 2008 and not .NET.  CR.NET was not installed on our development computer, so our application was built with full Crystal Reports 2008 SP3.  On our development computer, .ENGINE is 12.0.2000.0 and
    the same version is on the web server.
    So, I am completely at a loss as to why we are encountering this error.  Help, Please!!!
    Thank you in advance,
    Mike

    Hi Mike,
    Did you set your project for X86 mode only? If not do so and rebuild and deploy your app.
    Thank you
    Don

  • Form hangs while calling Report

    Hi, I am converting some Forms/reports from 6i to 10g.
    The form I am testing is calling a report repeatedly using the following code:
    rep_id := Find_Report_Object('FILE_RECORD_DESCRIPTION');
    <<open_files>>
    OPEN files;
    <<get_next_file>>
    FETCH files INTO file_name;
    IF files%NOTFOUND
         THEN
         CLOSE files;
         RETURN;
    END IF;
    :FILE_RECORD_DESC_STATUS := 'Doing file' || file_name;
    SYNCHRONIZE;
    IF :TYPE = 'PDF'
         THEN
         SET_REPORT_OBJECT_PROPERTY (rep_id,REPORT_DESNAME,'C:\DOC\PDF\' || file_name || '.pdf');
         SET_REPORT_OBJECT_PROPERTY (rep_id,REPORT_DESFORMAT,'PDF');
    SET_REPORT_OBJECT_PROPERTY (rep_id,REPORT_OTHER, 'P05_FILES="' || file_name || '"');
    END IF;
    IF :TYPE = 'HTML'
         THEN
         SET_REPORT_OBJECT_PROPERTY (rep_id,REPORT_DESNAME,'C:\DOC\' || file_name || '.htm');
         SET_REPORT_OBJECT_PROPERTY (rep_id,REPORT_DESFORMAT,'HTML');
    SET_REPORT_OBJECT_PROPERTY (rep_id,REPORT_OTHER, 'P05_FILES="' || file_name || '"');
    END IF;
    report := Run_Report_Object(rep_id);
    GOTO get_next_file;
    When REPORT_DESFORMAT is set to ‘HTML’, everything works well. Around 40 .htm documents are created on C:\DOC. But when REPORT_DESFORMAT is set to ‘PDF’ the form hang after creating 10 or 11 .pdf documents!!!
    Any idea what I am doing wrong? Do I have to free up some sort of buffer/memory/other things when creating .pdf document?
    Regards
    Yves

    I tried different things and it seams that the amount of data (i.e the size of the .pdf) determine how many times the report can be called before the form hangs. Form did hang after only 2 call for big report (around 20 pages each) but hangs after several calls for smaller ones???
    Yves

  • Crystal reports visual studio 2013. "Please wait while the document is being processed." Error

    I am using Crystal Reports for VS 2010. The report is working fine but if you click on the next page or click on group tree,
    the message “Please wait while the document is being processed.” comes. Never show next page.
    Any ideas?

    Hi Qin Yang,
    Please post your question in the official
    SAP Crystal Reports for Visual Studio forum.
    Thanks for your understanding.
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • Berkeley  DB JE is getting hanged while calling environment sync method.

    Hi,
    I am developing an application in Java and I am using JE edition of Berkeley. I am facing an issue, during shutdown operation I am calling syn method of EntityStore class and Environment class.
    The EntityStore.sync() is getting completed but during executing of Environment.sync() the control is not coming out of this statement. Below is the code that I am using to perform sync operation.
    if (myEnv != null) {
    try {
    entityStore.sync(); //Calling sync method of Entity Store Class.
    log.error("Finished Syncing of Entity Store");
    myEnv.sync(); // Calling Sync method of Environment Class. Control is not coming out of this sync call.
    log.error("Finished Syncing of Environment");
    } catch (DatabaseException dbe) {
    log.error("DataBase exception duing close operation ",dbe);
    } catch (IllegalStateException ie) {
    logger.fatal("Cursor not closed: ", ie);
    During my unit testing I was changing system date and perfoming some db operation. While I during down the application the the above code gets executed but the system is getting hanged and control is not coming out of Environment sync method call. Can some one tell why the sync is causing the system to hang.
    Thanks in advance.

    Hello,
    You did not mention the version of BDB JE. In any case for BDB JE questions the correct forum is at:
    Berkeley DB Java Edition
    Thanks,
    Sandra

  • Oracle session Hangs while calling one package function

    Hi all,
    We are a facing a interesting scenario in our code. Consider that you have 2 pakcages(A,B). Ecah packages is having more than 5 functions in it.
    1. A.function1() makes a call to B.function1() - is working fine
    2 .B.function1() calls B.function2() - is working fine
    3. B.function2() calls A.function2() - oracle session hangs in this call.
    If I copy the scropt code from A.function2() and inline (put) it in B.function1() , the execution gets completed without an issue.
    If i run the A.function2() seperatly it works fine. Only calling from B package it is failing.
    If anyone knows the rooot cause of the issue, please let me know.
    Thanks and regards,
    Vijayaraja

    Do you have/use global variables?
    Moving code from one package to another doesn’t necessarily result in logically equivalent programs. In the version of your program which “hangs” you may have crafted an infinite loop. Instrument your code and see if you really stall or just keep going on forever.
    With this kind of cross-dependencies in your libraries you almost ask for trouble.

  • Report does not show the main section while calling from forms 6i

    Hi
    I am running report from report from forms 6i but is does not show the data in main section, where as the data in the header section is ok.
    But when i run the same report independantly from report builder it show the both header and main section with relevent data.
    pl solve the matter
    thanks in advance

    can you tell me more about this, you might check if you are using different users when you call this report or if the user has all privileges to see all tables in this report

  • Dbms_aqadm hang while calling add_subscriber can i make a asynchronous call

    Hi ,
    I call dbms_aqadm.add_subscriber but it hangs ( most probbably for the reason that some process has the lock on the queue - my guess ,correct me if wrong).
    Can i make the call add_subscriber asynchronous which is returning some error code or something specifying that unable to add subscribe due to the following reason.
    Please reply immeaditely.
    Thanks
    Saurabh

    Hi line123,
    Sorry about all the issues you've had getting this installed. I've alerted your local area market about what's going on. They will get in contact with you about coming out to get this resolved. 
    Thank You

  • System Display hangs while call waiting

    Hi
     I have a black berry 8520 smart phone brought from Airtel and still under warranty. Since past few days, I am encountering an issue while I try to answer a call which is on wait.During this time, the display of the system hangs! The display will show the calling person's details and stand still.
    After this, I can see phone ringing if I try to call my number from a different phone. But I wont be able answer the call, I cannot power off/on. The only option left with me is to remove the battery and give a cold boot which take at least 20 mins to come up.
    I am looking forward for a help on this issue

    Hey philu,
    Welcome to the BlackBerry Support Community Forums.
    I would highly suggest you perform a clean application load.  Since this issue seems to be a software related issue.
    Here is a link on how to perform the clean application load: http://www.blackberry.com/btsc/KB11320
    -ViciousFerret
    Come follow your BlackBerry Technical Team on Twitter! @BlackBerryHelp
    Be sure to click Like! for those who have helped you.
    Click  Accept as Solution for posts that have solved your issue(s)!

Maybe you are looking for

  • COPA Product wise profitability

    Hi Sapians I have execute an order settlement and variance is successfully posted in COPA Value field VV002(Qty variance) In product wise profitability report. System shows as follows: Product   Qty    Sales value   Cost @ Std price  order Variance V

  • Variable screen is missing

    Hi All, We are facing a weird issue, that variable screen is missing while executing query in Bex, however we are able to get variable entry screen in RSRT and Web bex.  1. Variable type : Characteristic values 2. Processing type : User entry and ent

  • IPhoto, iCal & iTunes entirely disappeared in separate events

    Hi. A month ago, I discovered iPhoto was completely gone, not just from my dock, including ALL my PHOTOS. Perplexing though it was, I had backed up a month prior and time machined it back right away (minus whatever I had done since backup, of course)

  • No audio input? Really?

    Ok start of a rant here, but just want to make sure I understand, there is no audio input for my brand new Macbook Pro Retina? I need to buy a USB adapter? What kind? Searchingn for "audio ports" in the Mac Help, I'm told to "Find the Manual" for my

  • Why is an item I paid for a month ago, now suddenly showing up in my notifications?

    It was an auction style listing that ended on Sat. June 6 that I won, and also paid for on that day as well. It was delivered on Fri. June 19. Now tonight, Sun. July 5, it has suddenly reappeared under the 'Notifications' bell icon at the top of the