Intermittent errors with mxmlc

Hi All,
I have recently begun to encounter intermittent errors when executing the mxmlc ant task.  This appears to be some sort of timing issue, because I can just re-run the task and have the build run to completion.  The errors that I get vary, but usually are either invalid implicit coercions (with a line number being reported of -1), or attempting to access fields or functions that don't exist (with an actual line number where the error supposedly occurs).  In each of these case, I get many errors, followed by a ton of invalid embed commands.
As I mentioned before, simply re-running the task will either cause a successful compilation, or a completely different set of errors and line numbers being reported.  This is turning into a very high visibility issue because automated builds are failing, and the only thing that I can do is to tell them to run it again.
Here is the list of options that I'm sending to mxmlc:
static-link-runtime-shared-libraries=true
debug=false
keep-generated-actionscript=false (have changed to true in an attempt to find the problem)
incremental=false
We are using the 4.5.1 "full" SDK, ant 1.8.2, and JDK 1.6.0_30.
Thank you for any help or insight!

Hello, Flexers, this discussion has been moved from the Community Help application forum, I hope I did move it to the correct spot!

Similar Messages

  • Intermittent Error with Runtime.exec()

    I have a Windows Service for an Adaptive Server Anywhere database server that is built upon install of our application.
    One of the new things we're trying to do with our app
    requires us to shutdown this service using Java (1.4.2_06) code. This
    shutdown is done by using the runtime.exec("dbsvc -x
    ASA_SERVICE") command. Sometimes this works fine, but
    others it fails. I got the error output from the java
    command which is: Overlapped I/O operation is in progress.
    Error stopping service "ASA_SERVICE". When I try and
    shutdown the service via the Windows Service dialog I have
    no problems anytime. I see no errors in the ASA log
    file. Can someone tell me what might be
    causing the error sometimes when running this using the Java
    runtime.exec(...) command?
    Thanks,
    Cory Musselman

    Try running the command a couple of dozen times from the command line, not from Runtime.exec() but just from a plain old command line. That should give you a better idea of whether Runtime.exec() is part of the problem or not.

  • Intermittent error with CFFILE copy

    I have a problem that's driving me nuts and I don't see it in
    here already (I apologize if it is and I just missed it).
    We have ColdFusion 5.0 (yes, I know it's old) and I've been
    using it for an in-house billing program. One of the things it does
    is use CFFILE to copy a PDF version of the bill to the boss's
    machine. This what that part of the code looks like:
    <cffile action="COPY"
    source="\\testweb\wwwroot\Billing\invoices\#attachment#"
    destination="\\Obi-wan\Data\Glenns Code Backup\QB
    invoices\#attachment#">
    This is an example of what I get:
    Error processing CFFILE
    Unable to copy file
    '\\testweb\wwwroot\Billing\invoices\Emmi_Solutions,_LLC-Mulert-Asthma_Action_Plans-Round_ 1-No_7661.pdf'
    to path '\\Obi-wan\Data\Glenns Code Backup\QB
    invoices\Emmi_Solutions,_LLC-Mulert-Asthma_Action_Plans-Round_1-No_7661.pdf'.
    Error: The system cannot find the file specified. (error 2).
    The file has been created. It's THERE. I can open it. And
    sometimes this works without an error! Up until today, when we got
    this error, I'd reboot the CF server (testweb) and then it would
    work. Today, I've rebooted the server several times and it just
    won't.
    Any ideas?

    Below is the Snippet of code.
    It never makes it past this first line. It almost seems like
    something on IIS5. I creates the file,but stops at 1048 kb. But
    this is weird, when the error message appears, the file becomes
    7.8m. The entire file is 8megs
    <CFFILE ACTION="Upload"
    FILEFIELD=#Attributes.SourceField#
    DESTINATION="#TargetFile#.tmp"
    NAMECONFLICT="MAKEUNIQUE" ATTRIBUTES="Temporary">
    <CFSET FileName = CFFile.ClientFile>
    <CFSET FileSize = CFFile.FileSize>
    <!--- DETERMINE MIME TYPE --->
    <CF_MIME EXTENSION=#File.ClientFileExt#
    TYPE=#File.ContentType# SUBTYPE=#File.ContentSubType#>
    <!--- MOVE IT TO CORRECT LOCATION (REPLACING OLD VERSION,
    IF NECESSARY) --->
    <CFFILE ACTION="Rename" SOURCE="#TargetFile#.tmp"
    DESTINATION="#TargetFile#" ATTRIBUTES="Normal">

  • Intermittent error B3100 on OpenMQ 4.2

    Hello - can't see anything on this past MQ3.6, so I wonder if anybody could help.
    I'm getting an intermittent error with OpenMQ 4.2 (non-clustered):
    [07/Jan/2009:09:34:53 GMT] ERROR [B3100]: Unexpected Broker Internal Error : [-------------------------------------------Internal Error: Invalid Acknowledge
    Packet processing
    notifying client
    Packet: ACKNOWLEDGE(24):1493-192.168.1.56(b9:47:5f:ec:f6:6f)-60157-1231320893887
    Magic/Version: 469754818/301 Size: 236 Type: ACKNOWLEDGE(24)
    Expiration: 0 Timestamp: 1231320893887
    Source IP: 192.168.1.56(b9:47:5f:ec:f6:6f) Port: 60157 Sequence: 1493
    Property Offset: 76 Property Size: 0
    Encryption: 0 Priority: 5
    Flags: A consumerID: 34
    TransactionID: 0
    MessageID: 1493-192.168.1.56(b9:47:5f:ec:f6:6f)-60157-1231320893887
    Properties: null
    Message Body: 160 bytes [5917200703564544256:-627756874-0:11e:b071:ad6e:0:11e:b071:ad6e--16777216-5917200703564544256][-5139733075799310024:-627756874-0:1
    1e:b071:ad6e:0:11e:b071:ad6e--16777216-5917200703564544256][5917200703564544256:-627756874-0:11e:b071:ad6e:0:11e:b071:ad6e--16777216-5917200703564544256][-51
    39733075799310024:-627756874-0:11e:b071:ad6e:0:11e:b071:ad6e--16777216-5917200703564544256]
    Internal Buffers (useDirect=false):
    Fixed Header Buffer:java.nio.HeapByteBuffer[pos=0 lim=72 cap=72]
    com.sun.messaging.jmq.jmsserver.util.BrokerException: Internal Error: Unable to complete processing acks: Unknown consumer [consumer:-5139733075799310024, ty
    pe=NONE]
    at com.sun.messaging.jmq.jmsserver.data.handlers.AckHandler.handleAcks(AckHandler.java:387)
    at com.sun.messaging.jmq.jmsserver.data.handlers.AckHandler.handle(AckHandler.java:246)
    at com.sun.messaging.jmq.jmsserver.data.PacketRouter.handleMessage(PacketRouter.java:181)
    at com.sun.messaging.jmq.jmsserver.service.imq.IMQIPConnection.readData(IMQIPConnection.java:1500)
    at com.sun.messaging.jmq.jmsserver.service.imq.IMQIPConnection.process(IMQIPConnection.java:666)
    at com.sun.messaging.jmq.jmsserver.service.imq.OperationRunnable.process(OperationRunnable.java:170)
    at com.sun.messaging.jmq.jmsserver.util.pool.BasicRunnable.run(BasicRunnable.java:493)
    at java.lang.Thread.run(Thread.java:619)
    Client stack trace:
    ERROR 09:36:07,373 Acknowledge.checkOnFinal()
    com.sun.messaging.jms.JMSException: [C4000]: Packet acknowledge failed. user=admin, broker=server:9883(59820)
    at com.sun.messaging.jmq.jmsclient.ProtocolHandler.writePacketWithAck(ProtocolHandler.java:712)
    at com.sun.messaging.jmq.jmsclient.ProtocolHandler.writePacketWithAck(ProtocolHandler.java:575)
    at com.sun.messaging.jmq.jmsclient.ProtocolHandler.writePacketWithReply(ProtocolHandler.java:430)
    at com.sun.messaging.jmq.jmsclient.ProtocolHandler.acknowledge(ProtocolHandler.java:2593)
    at com.sun.messaging.jmq.jmsclient.SessionImpl.doAcknowledge(SessionImpl.java:1382)
    at com.sun.messaging.jmq.jmsclient.SessionImpl.doClientAcknowledge(SessionImpl.java:1786)
    at com.sun.messaging.jmq.jmsclient.SessionImpl.clientAcknowledge(SessionImpl.java:1635)
    at com.sun.messaging.jmq.jmsclient.MessageImpl.acknowledge(MessageImpl.java:2087)
    <rest omitted>
    I haven't been able to pinpoint anything consistently taking place before this that could be a cause, and, as mentioned, it is intermittent. This appears using OpenMQ 4.2 on Solaris 10 (Intel), on multiple environments.
    I've (on gleaning advice on a similar, fixed issue in Open MQ 4.2) also tried reconfiguring the ConnectionFactory to set imqReconnect to 'true' (it is disabled by default), but this has no effect.
    Any help would be gratefully accepted.
    Edited by: hailesaladdie on Jan 7, 2009 3:38 AM

    You may try to increase the log level to DEBUG to see if you get more information. Do you expire your messages ?
    Basically you have a situation where the broker is trying to ack a message for a consumer does not seem to exist (even its session is gone) any more even though the broker still has its id.
    You're right the shutdown bit was my mistake, I've misread the code.
    Could you say more about the nature of your application ? How do you acknowledge the message ? Can you post larger extracts from the broker log file ? Are there any errors warning before this exception ?
    Tom

  • Intermittent oracle errors with case-insensitive searches

    Hi
    I have a table with several columns, two of them are indexed with oracle text.
    When I ask queries containing "CONTAINS"-clauses against these columns everything works great. However I have a few other columns in table that I want to run case-insensitive comparisons with.
    So I enable case-insensitivity:
    ALTER SESSION SET NLS_COMP=LINGUISTIC
    ALTER SESSION SET NLS_SORT=BINARY_CI
    Now I suddenly start getting intermittent errors.
    When I call a query:
    SELECT
    FROM
    article_table at
    WHERE
    CONTAINS(searchfield , '%MEAT%') > 0
    Sometimes it works, but sometimes I get:
    ERROR
    ORA-29902: ett fel inträffade när rutinen ODCIIndexStart() kördes
    ORA-20000: Oracle Text error:
    DRG-00100: internal error, arguments : [50935],[drpn.c],[1051],[],[]
    DRG-00100: internal error, arguments : [50935],[drpnw.c],[601],[],[]
    DRG-00100: internal error, arguments : [51002],[drwa.c],[594],[],[]
    DRG-00100: internal error, arguments : [51028],[drwaw.c],[297],[0],[%MEAT%]
    DRG-00100: internal error, arguments : [50401],[dreb.c],[1033],[],[]
    ORA-00600: intern felkod, argument: [qernsRowP], [1], [], [], [], [], [], []
    Anyone knows what is going on? Is this bug? Is there a fox for it?
    Thanks for any help anyone can provide.
    /Kjell

    Clearly that's a bug. Unless anyone here recognizes it and can point you to the bug/patch number I would strongly recomend you to take it to oracle support.
    Incidently, doing a search for '%MEAT%' is usually a bad idea. Leading wildcards will disable the use of the index on the $I table, so unless you're using the SUBSTRING_INDEX option such searches will usually perform very badly. They shouldn't cause "internal errors", of course.

  • I keep getting an intermittent error on web pages where a blue box with a question mark appears instead of pictures.  For example Facebook and Zappos would load normally on one visit, but if I visit other websites and return I get the blue box.

    I keep getting an intermittent error on web pages where a blue box with a question mark appears instead of pictures.  For example Facebook and Zappos would load normally on one visit, but if I visit other websites and return I get the blue box instead of pictures. If I restart the problem will go away temporarly. However, normally returnes in time.

    HI,
    From the Safari Menu Bar click Safari/Preferences then select the Appearance tab. Tick the box next to: Display images when the page opens.
    If that box is already ticked, from the Safari Menu Bar, click Safari / Empty Cache. When you are done with that...
    From the Safari Menu Bar, click Safari / Reset Safari. Select the top 5 buttons and click Reset. Relaunch Safari. If you still have problems loading images, go here for trouble shooting 3rd party plugins or input managers which might be causing the problem. Safari: Add-ons may cause Safari to unexpectedly quit or have performance issues
    Web pages now include a small icon or 'favicon' which is visible in the address bar and next to bookmarks. These icons take up disk space and slow Safari down. It is possible to erase the icons from your computer and start fresh. *To delete Safari's icon cache using the Finder, open your user folder, navigate to ~/Library/Safari/ and move this file "webpageIcons.db to the Trash.*
    Make sure Safari is not running in Rosetta. Right or control click the Safari icon in your Applications folder then click Get Info. In the Get Info window click the black disclosure triangle so it faces down. Where you see Open using Rosetta... make sure that is NOT selected.
    If you still have problems, go to the Safari Menu Bar, click Safari/Preferences. Make note of all the preferences under each tab. Quit Safari. Now go to ~/Library/Preferences and move this file com.apple.safari.plist to the Desktop. Relaunch Safari. If it's a successful launch, then that .plist file needs to be moved to the Trash.
    Carolyn

  • SSIS 2012 is intermittently failing with below "Invalid date format" while importing data from a source table into a Destination table with same exact schema.

    We migrated Packages from SSIS 2008 to 2012. The Package is working fine in all the environments except in one of our environment.
    SSIS 2012 is intermittently failing with below error while importing data from a source table into a Destination table with same exact schema.
    Error: 2014-01-28 15:52:05.19
       Code: 0x80004005
       Source: xxxxxxxx SSIS.Pipeline
       Description: Unspecified error
    End Error
    Error: 2014-01-28 15:52:05.19
       Code: 0xC0202009
       Source: Process xxxxxx Load TableName [48]
       Description: SSIS Error Code DTS_E_OLEDBERROR.  An OLE DB error has occurred. Error code: 0x80004005.
    An OLE DB record is available.  Source: "Microsoft SQL Server Native Client 11.0"  Hresult: 0x80004005  Description: "Invalid date format".
    End Error
    Error: 2014-01-28 15:52:05.19
       Code: 0xC020901C
       Source: Process xxxxxxxx Load TableName [48]
       Description: There was an error with Load TableName.Inputs[OLE DB Destination Input].Columns[Updated] on Load TableName.Inputs[OLE DB Destination Input]. The column status returned was: "Conversion failed because the data value overflowed
    the specified type.".
    End Error
    But when we reorder the column in "Updated" in Destination table, the package is importing data successfully.
    This looks like bug to me, Any suggestion?

    Hi Mohideen,
    Based on my research, the issue might be related to one of the following factors:
    Memory pressure. Check there is a memory challenge when the issue occurs. In addition, if the package runs in 32-bit runtime on the specific server, use the 64-bit runtime instead.
    A known issue with SQL Native Client. As a workaround, use .NET data provider instead of SNAC.
    Hope this helps.
    Regards,
    Mike Yin
    If you have any feedback on our support, please click
    here
    Mike Yin
    TechNet Community Support

  • SSMS Intermittent error - "Error message is: SqlDateTime overflow"

    SQL 2008R2(10.50.6000) Standard Edition, 64 Bit on Windows 2008R2 SP1 Enterprise.
    SSMS 10.50.4033
    From time-to-time (several times per week) I receive the following error when running a query from SSMS.
    "An error occurred while executing batch. Error message is: SqlDateTime overflow. Must be between 1/1/1753 12:00:00 AM and 12/31/9999 11:59:59 PM."
    This happens on small single statement queries, large complex admin queries, ad hoc queries, queries that I have source controlled and tested/run many times.  I have exhaustively checked the target tables and don't find any dates out of range.
    Typically, I just rerun the query and it runs fine.
    Another error that occurs less often is
    "An error occurred while executing batch. Error message is: Non-negative number required.
    Parameter name: count"
    This is particularly confusing since I don't have a parameter named "count" which is an illegal T-SQL identifier anyway.
    The references to "SqlDateTime"  and "count" lead me to believe this is an SSMS coding error.
    Ray

    Unfortunately, without a scenario to repro the issue, it is impossible investigate. And overall, intermittent errors are horrendeously difficult to troubleshoot.
    What I would recommend is that you install SSMS 2012 SP2. You can download it for free here:
    http://www.microsoft.com/en-us/download/details.aspx?id=43351
    You can run SSMS2012 against SQL 2008 R2 without problem, and personally I find it nicer to work with.
    Not that I am sure that it will resolve the issue.
    Erland Sommarskog, SQL Server MVP, [email protected]

  • Intermittent errors when  retrieving through smart view (11.1.2.5.210) in Oracle 11.1.2.3.500

    We are getting the below errors when retrieving from huge smart view sheets for couple of our applications. We have increased the time out settings from the local registry, server registry, mod_wl_ohs file, Web logic console, http.conf, Essbase.properties. Also, increased the JVM from opmn.xml & setCustomParamsAnalyticProviderServices.bat. However we still face the error.
    Note: this is an intermittent error and does not happen all the time.
    Cannot connect to the provider. Make sure it is running in the specified host/port. Error(12152).
    Cannot connect to the provider. Make sure it is running in the specified host/port. Error(12031).
    Also, we are facing  retrieval performance issues after we upgraded to 11.1.2.3.500 after we migrated from 11.1.1.3.500. Has anyone faced this issue? if so, any suggestions in improving the retrieval performance (especially with MDX member formulas in ASO applications)  in 11.1.2.3.500 version?
    Smart view version: 11.1.2.5.210

    Is there a load balancer being used?
    Does the issue common on both Shared and Private connection?
    Smartview client
         A)    add a essbase.cfg  to the client machine in smartview\bin
                 the file will have 3 entries
                NETDELAY 2000
                NETRETRYCOUNT 2000
                NETTCPCONNECTRETRYCOUNT  200
    You can give it a try on a single client machine and check is the result is improved.

  • Adobe Reader error with SAP interactive form in Web dynpro ABAP

    Hi,
    We are having a strange intermittent problem with Adobe Reader. When we try to open PDF files from SAP Frontend we get an error pop-up. The pop-up does not have any text. The title of the pop-up has "Adobe Reader". There is a blue question mark and an OK button. The form is inserted into Web Dynpro ABAP page. This web dynpro application is executed in SAP GUI by this program:
    REPORT  TEST1 MESSAGE-ID SWDP_RUNTIME.
    start-of-selection.
      CALL FUNCTION 'WDY_EXECUTE_IN_PLACE'
        EXPORTING
         PROTOCOL               = 'HTTPS'       " HTTP | HTTPS
        INTERNALMODE           = 'X'    "SPACE - browser is started
        PARAMETERS             =
          APPLICATION            = 'Z_FORM'
         CONTAINER_NAME         = 'TEST'
        EXCEPTIONS
          INVALID_APPLICATION    = 1
          BROWSER_NOT_STARTED    = 2
          OTHERS                 = 3.
      IF sy-subrc EQ 1.
        MESSAGE a400.
      ELSEIF sy-subrc = 2.
        MESSAGE a401.
      ELSEIF sy-subrc = 3.
        MESSAGE a667.
      ENDIF.
    Adobe Reader version is 9.1.2
    Is there any solution for this?
    Many thanks for answer.

    Jiri,
    The reason why I thought downgrading would help is because Reader 9 and above is probably not fully supported by SAP yet.
    You can maybe open an OSS and see if Adobe 9 is fully supported or not.
    Chintan

  • Opening CS4 projects in CS5 error with Canon 5D footage HELP!!!

    HI Im trying out the new Premiere Pro CS5 demo and Im getting major problems opening projects.
    Initially I couldnt open any of my CS4 projects but could import single sequences one at a time only, not whole projects. So I was finally working fine yesturday and today nothing opens that includes canon 5d footage . I get this error.
    "This project contains a sequence that could not be opened. No sequence preview preset file or codec could be associated with this sequence type."
    I get the same message when I import a whole project. Yet I can import a whole project 1 sequence at a time!!!
    I can only create new projects which save and open but all older saved projects do not open.
    thanks
    remainz

    Yes, this is an intermittent issue with CS5. Somehow, there’s a problem wherein certain commonly-used codecs suddenly remove/disable themselves. I had this problem, and it was driving me crazy as I couldn’t open anything, and it was just way, way too much work to recreate. So I opened up a new project. Lo and behold, the program suddenly informed me that there were codecs that needed to be installed. Codecs which, I’m sure, have been installed already, but obviously Premiere knows that they’re missing. Allowing the program to install them, and then allowing it to quit itself, and then reopening the program again enabled Premiere to open all of my projects again.

  • Error with compiling module

    I have such folders structure in my Flex project:
    components/classes/
    components/modules/
    In modules/ folder I have a module (<mx:Module>)
    myModule.mxml.
    That module imports class myConnector.as from classes/ folder
    using statement:
    import components.classes.myConnector;
    I can work with class' properties and methods and there are
    no errors. But when I try to compile myModule.mxml with mxmlc using
    command:
    mxmlc
    pathToProject/components/modules/myModule.mxml
    I get an error:
    Type was not found or was not a compile-time constant:
    myConnector.
    private var myConn:myConnector;
    As I see compiler cannot locate myConnector.as class, even
    though it is located correctly while authoring.
    How can specify path to that class for compiler?
    Or there is anything else wrong?
    Thanks in advance.

    The answer is yes and no. Since your Modules are not in the
    main application directory, the answer is no. Should they live in
    the main application directory, then you can mark them as
    Applications and Flex Builder will automatically compile them and
    move them to the bin directory.

  • Intermittent  Error Running Report

    I have an intermittent issue with the WPF report Viewer.  I run a report and get the window open with the busy circle as per normal but then there is a  Invalid report file path error appearin, then a blank report is shown in the viewer.   If I run the report again everything is fine.   Can anyone help to explain why this is happening
    The error being reported is.
    Error Exception: SEHException
    Error Message: External component has thrown an exception.
    Error Stack Trace:
       at CrystalDecisions.ReportAppServer.ClientDoc.ReportClientDocumentClass.RemoveAfterFormatPageEventCallBack(ISCRAfterFormatPageEventCallBack formatPageEventCallBack)  
    at CrystalDecisions.ReportAppServer.ReportClientDocumentWrapper.RemoveAfterFormatPageEventCallBack(ISCRAfterFormatPageEventCallBack eventCallback)   
    at CrystalDecisions.CrystalReports.Engine.ReportDocument.ClearCache(Boolean clearDocument)   
    at CrystalDecisions.CrystalReports.Engine.ReportDocument.InternalClose(Boolean bSetupForNextReport)   
    at CrystalDecisions.CrystalReports.Engine.ReportDocument.Close()
    at CrystalDecisions.CrystalReports.Engine.ReportDocument.Load(String filename, OpenReportMethod openMethod, Int16 parentJob)  
    at CrystalDecisions.CrystalReports.Engine.ReportDocument.EnsureLoadReport()
    at CrystalDecisions.CrystalReports.Engine.ReportDocument.get_Database()
    at ....ReportViewer.CleanUpObjectsForMemoryLeak() in ...ReportViewer.xaml.cs:line 307     at ....ReportViewer.Window_Unloaded(Object sender, RoutedEventArgs e) in..\ReportViewer.xaml.cs:line 297  
    at System.Windows.RoutedEventHandlerInfo.InvokeHandler(Object target, RoutedEventArgs routedEventArgs)   
    at System.Windows.EventRoute.InvokeHandlersImpl(Object source, RoutedEventArgs args, Boolean reRaised)  
    at System.Windows.UIElement.RaiseEventImpl(DependencyObject sender, RoutedEventArgs args)   
    at System.Windows.UIElement.RaiseEvent(RoutedEventArgs e)   
    at System.Windows.BroadcastEventHelper.BroadcastEvent(DependencyObject root, RoutedEvent routedEvent)   
    at System.Windows.BroadcastEventHelper.BroadcastUnloadedEvent(Object root)   
    at MS.Internal.LoadedOrUnloadedOperation.DoWork()  
    at System.Windows.Media.MediaContext.FireLoadedPendingCallbacks()
    at System.Windows.Media.MediaContext.FireInvokeOnRenderCallbacks()
    at System.Windows.Media.MediaContext.RenderMessageHandlerCore(Object resizedCompositionTarget)  
    at System.Windows.Media.MediaContext.RenderMessageHandler(Object resizedCompositionTarget)  
    at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)   
    at MS.Internal.Threading.ExceptionFilterHelper.TryCatchWhen(Object source, Delegate method, Object args, Int32 numArgs, Delegate catchHandler)  
    FYI the CleanUpObjectsForMemoryLeak code is listed below and all references - which should only be on window close or disposal of window
            private void CleanUpObjectsForMemoryLeak()
                if (this.vwCrystalReportViewer != null)
                    var objRptDocViewer = (ReportDocument)this.vwCrystalReportViewer.ViewerCore.ReportSource;
                    if (objRptDocViewer != null)
                        foreach (CrystalDecisions.CrystalReports.Engine.Table table in objRptDocViewer.Database.Tables)
                            table.Dispose();
                        }// Line 297
                        objRptDocViewer.Database.Dispose();
                        objRptDocViewer.Close();
                        objRptDocViewer.Dispose();
                        objRptDoc.Close();
                        objRptDoc.Dispose();
                        objRptDoc = null;
                    this.ParameterValues = null;
                    this.PassedReport = null; //Line 307
                    if (this.vwCrystalReportViewer.ViewerCore.ParameterFieldInfo != null)
                        this.vwCrystalReportViewer.ViewerCore.ParameterFieldInfo.Clear();
                    if (this.vwCrystalReportViewer.ViewerCore != null)
                        this.vwCrystalReportViewer.ViewerCore.Content = null;
                        this.vwCrystalReportViewer.ViewerCore.Dispose();
                    if (this.vwCrystalReportViewer.Owner != null)
                        this.vwCrystalReportViewer.Owner = null;
                    this.vwCrystalReportViewer = null;
                    GC.Collect();
    private void Window_Unloaded(object sender, RoutedEventArgs e)
                CleanUpObjectsForMemoryLeak();
            private void Window_Closing(object sender, System.ComponentModel.CancelEventArgs e)
               e.Cancel = true;
                CleanUpObjectsForMemoryLeak();
                this.Visibility = System.Windows.Visibility.Collapsed;
    ~ReportViewer()
                try
                    CleanUpObjectsForMemoryLeak();
                finally { }

    Couple of things I'd do differently.
    1) Load the report object using the engine, not the viewer:
    objRptDoc.Load = <path to the report>
    2) You really do not need all that viewer clean up code (but that would just be my preference):
    if (this.vwCrystalReportViewer.ViewerCore != null)
                        this.vwCrystalReportViewer.ViewerCore.Content = null;
                        this.vwCrystalReportViewer.ViewerCore.Dispose();
                    if (this.vwCrystalReportViewer.Owner != null)
                        this.vwCrystalReportViewer.Owner = null;
                    this.vwCrystalReportViewer = null;
                    GC.Collect();
    - Ludek
    Senior Support Engineer AGS Product Support, Global Support Center Canada
    Follow us on Twitter

  • Intermittent errors - Invoke() could not find the Service name

    Users are getting intermittent error : Invoke() could not find the Service name, when opening the Xcelsius dashboards in PRODUCTION. The dashboard has several QAAW queries .These errors are poping up intermittently.
    The dashboards are hosted utside the BO environment.
    BOXIR3.1
    Crystal Xcelsius 2008 Enterprise

    As I continue to look into it, the only thing that I see differently when I am prompted for login is that I can specify the system to log into. I am now wondering if somehow this information is being lost and that is what is causing these issues. Given that the specified name cannot be found and that it does in fact recognize the correct name, I'm not entirely sure what the problem is.
    Further information:
    If I disable the use of hard-coded logins and I am prompted, I can display results for the onLoad run. Yet the query is also set to refresh on 30 second intervals. On every subsequent interval I am getting this error.
    I think this has something to do with sessions. How do I check which sessions exist on my box? CmcApp somewhere?
    Edited by: Brian Comeau on Jun 4, 2009 12:24 AM
    Checking in CmcApp I found some sessions. Here is what happens:
    Login to CmcApp Sessions tab
    -Administrator: 1 session at 5:45pm
    Launch browser to Xcelsius .swf
    Prompted for login information: Administrator/password
    -Administrator: 2 sessions at 6:30pm
    I had previously set the timeout for sessions in QaaWS to 120 seconds
    After 2 minutes
    -Administrator: 1 session at 5:45pm
    Yet throughout this time, I am still given this "invoke() could not find the service name" error. The name provided "qaawsIncidents" is the same name that I can see if I launch QaaWS.
    Ideas?
    Edited by: Brian Comeau on Jun 4, 2009 12:30 AM

  • Intermittent error establishing socket on SQL Server 2000

    I have a suite of 130 JUnit tests. Recently, they started to give me intermittent "error establishing socket" errors when trying to connect to a local instance of SQL Server 2000 via JDBC.
    Each test creates one or more connections. I've used wrappers to prove that I'm closing all of the connections, statements, prepared statements and result sets. The first 70 or 80 tests succeed. After that every test gets the "error establishing socket" exception. Sometimes (but not always) SQL Server continues to refuse connections when I re-run the suite. When that happens I have to let it sit for 30 seconds or so (or restart the server) before it will accept connections.
    I've tested this with both Microsoft's and WebLogic's JDBC drivers with the same results. There's nothing in the SQL Server logs when this happens. There's nothing in the Windows event logs, either.
    If I sleep for 5 seconds between each test the problem goes away.
    I installed the latest service pack (SP3a) for SQL Server 2000 with no change in behavior.
    All of this leads me to believe that something is wrong with SQL Server. Has anyone else run into this problem? Any ideas?

    I am not overly familiar with the SQL Server network architecture, but there are scenarios that could explain your intermittent failures.
    When you connect to a database one of two things can happen, you can start your own process on the server that acts as communication to from the server locally, or you are put in a queue for a static (shared) process that does the same thing.
    Assuming that most databases are initially setup with singular processes per connection, and you have established a connection then you disconnect from the database you do not automatically or instantly kill your process running on the server. There are two primary reasons for this as far as I know. First, the database puts more priority on doing something then doing nothing. Cleaning up and removing your process would be considered doing nothing, accepting incoming connections would be considered doing something. Second, the process may have to stay around to ensure all commit or rollback is completed properly (not always true in every database).
    So, I would expect that there is a connection limit (perhaps between 50-80) that you are exceeding because you are firing these connections rapidly and even though you close the connection in your remote program, the database simply doesn't keep up. Most databases will "cleanup" reasonably quickly if they have the resources to do so, so if you were to put a 30 second delay between every connection it would probably work just fine. It would probably work fine if you put a 30 second delay between after every 20 connections too. It's a bit of balancing act.
    There would be a couple of ways to alleviate this constraint. Putting in delays can demonstrate that this is in fact a work load problem (constrained by total count of connections), but doesn't really help in production instances. You can change the maximum number of connections allowed by the database, however this threshold may be caused by hardware resource (memory) limitations as much as it is a parameter in the database. You may have to add memory to accommodate this many connections. You may have to constrain how much memory each connection gets (again controlled by database parameters). You may have to accept this as a resource constraint and write your code accordingly. This often manifests itself by taking advantage of transaction managers (or transaction manager logic) that will queue up requests until database resources are available.
    Again, I'm not a SQL Server expert, but I'm reasonably certain that most of what I said applies if not specifically at least generally.
    Good Luck.

Maybe you are looking for