Catching Errors: opinions needed

Under what conditions should a program try to catch Errors (not Exceptions) ? The docs for the Error class read:
"An Error is a subclass of Throwable that indicates serious problems that a reasonable application should not try to catch."
However, nothing enforces the fact that I should not try to catch an Error. I can catch a StackOverFlowError, ExceptionInInitializerError, etc. just as I would catch any Exception class.
Everything I have read talks plenty about Exception handling, but basically nothing about Error handling.
My questions are: 1) Why doesn't the JVM prevent me from catching Errors? 2) Under what conditions should I try to catch Errors? 3) What are good practices for handling Errors?

My questions are: 1) Why doesn't the JVM prevent me from catching Errors? In case you need to catch them.
2) Under what conditions should I try to catch Errors?When you want to perform an action when a specific error occurs.
An action I perform is to shutdown my server when an OutOfMemoryError or StackOverflowError occurs. This is required as an Error only results in the end of the thread which threw it. The other threads can keep running, leaving a running but unless application, like a zombie. Under this condition, if the application is not working it should shutdown. e.g. System.exit();
3) What are good practices for handling Errors?When you catch an erro you should rethrow it. (I don't always, but this is considered good practice)

Similar Messages

  • Time machine osx 10.6.8 problem slow backupd CFPropertyListCreateFromXMLData(): Old-style plist parser: missing semicolon in dictionary. mdworker32 kCGErrorFailure: Set a breakpoint @ CGErrorBreakpoint() to catch errors as they are logged.

    Hello Guys I have a problem that I can not get to the bottom.
    Time Machine has suddenly stopped working it really slow to make up. Copy a few kb at a time and long hours it takes to close the back. (up to a few tens of megs, 10, 20 Mb).
    I made ​​the following list of tests that will follow along with the log file.
    First of all I made ​​a copy as root with Carbon Copy Cloner disk of the iMac. (So that they can go back in case of disaster)
    Following the guides Pondini (pondini.org) I did the following steps:
    1) Changed the internfaccia FW800 to USB hard drive (does not change anything, still slow)
    2) Changed to another external HD for time machine with FW800 and USB (nothing changes still slow)
    3) Recreated the full backup with Time Machine on either drive (still slow)
    4) Reinstalled the 10.6.8 Combo Pack (still slow)
    5) Re spootlight indexed with the disk (still slow)
    6) At this point, in desperation I reinstalled on the internal drive of my iMac 10.6.8 creating a new user, User Migration Assistant from my hd clone with Carbon Copy Cloner. Recreated the full backup with Time Machine.
    The first full backup is fast, but slow incremental backups are back (as to 'start a few kb at a time).
    I compared the log files with those of my other machine with same configuration and I found these errors:
    backupdir [19376]: CFPropertyListCreateFromXMLData (): Old-style plist parser: missing semicolon in dictionary.
    mdworker32 [20950]: kCGErrorFailure: Set a breakpoint @ CGErrorBreakpoint () to catch errors logged as They Are.
    You know help me? I saw that this error is from 10.5 to 10.7, but no one has found a real solution to the issue.
    I never installed antivirus software and tried with different external drives COPN capacity equal to or greater than the external drive. Only at the end I tried to divide the external drive to back up into two parts by a 1.5 TB and 500 GB but with the same mistakes that I have described.
    thanks
    Stefano
    Ciao  Ragazzi ho un problema a cui non riesco a venire a capo.
    improvvisamente time machine ha smesso di funzionare va veramente lento a fare backup. Copia pochi kb alla volta e impiega tanto tempo ore per chiudere il backup. (backup di poche decine di mega, 10, 20 Mb).
    Ho effettuato le seguenti prove che vi elenco di seguito insieme al file log.
    Prima di tutto ho fatto una copia  come utente root con Carbon Copy cloner del disco del imac.(in maniera tale di poter tornare indietro in caso di disastro)
    Seguendo le guide di Pondini (pondini.org) ho effettuato i seguenti passaggi:
    1) Cambiato internfaccia del disco rigido da FW800 a USB (non cambia nulla, sempre lento)
    2) Cambiato hd esterno con un altro per time machine con FW800 e USB (non cambia nulla sempre lento)
    3) Ricreato il full Backup con time machine su entrambe i dischi (sempre lento)
    4) Reinstallato il Combo pack 10.6.8 (sempre lento)
    5) Re indicizzato con spootlight il disco (sempre lento)
    6) A questo punto preso dalla disperazione ho reinstallato sul disco interno del mio imac il 10.6.8 creando un nuovo utente, Assistente migrazione utente dal mio hd clonato con Carbon copy cloner. Ricreato il backup completo con time machine.
    Il primo full backup è veloce, ma i backup incrementali sono tornati lentissimi (come all' inizio pochi kb alla volta).
    Ho confrontato il file log con quelli di un mio altro mac con la stessa configurazione ed ho trovato questi errori:
    backupd[19376]: CFPropertyListCreateFromXMLData(): Old-style plist parser: missing semicolon in dictionary.
    mdworker32[20950]: kCGErrorFailure: Set a breakpoint @ CGErrorBreakpoint() to catch errors as they are logged.
    Sapete darmi aiuto? Ho visto che questo errore è presente dal 10.5 al 10.7 ma nessuno ha trovato una vera soluzione alla questione.
    Non ho mai installato software antivirus ed ho provato con diversi dischi esterni copn capacità uguale o superiore al disco esterno. Solo alla fine ho provato a dividere il disco esterno del backup in due parti una da 1,5TB e una da 500 Gb ma con i medesimi errori che vi ho descritto.
    grazie
    Stefano
    File LOG:
    Jan  9 00:31:37 ihomez newsyslog[19803]: logfile turned over
    Jan  9 00:33:26 ihomez com.apple.backupd[19376]: Copied 534.0 GB of 1020.2 GB, 649387 of 1786353 items
    Jan  9 01:33:27 ihomez com.apple.backupd[19376]: Copied 728.3 GB of 1020.2 GB, 805293 of 1786353 items
    Jan  9 02:33:27 ihomez com.apple.backupd[19376]: Copied 938.5 GB of 1020.2 GB, 807979 of 1786353 items
    Jan  9 02:55:58 ihomez com.apple.backupd[19376]: Copied 808871 files (1012.7 GB) from volume i5 2TB.
    Jan  9 03:08:03 ihomez com.apple.backupd[19376]: No pre-backup thinning needed: 100.0 MB requested (including padding), 383.44 GB available
    Jan  9 03:10:13 ihomez backupd[19376]: CFPropertyListCreateFromXMLData(): Old-style plist parser: missing semicolon in dictionary.
    Jan  9 03:27:54 ihomez [0x0-0x12012].com.getdropbox.dropbox[0]: Sampling process 12446 for 5 seconds with 10 milliseconds of run time between samples
    Jan  9 03:27:59 ihomez [0x0-0x12012].com.getdropbox.dropbox[0]: Sampling completed, processing symbols...
    Jan  9 03:28:00 ihomez mds[19366]: (Warning) Server: No stores registered for metascope "kMDQueryScopeComputer"
    Jan  9 03:28:00 ihomez [0x0-0x12012].com.getdropbox.dropbox[0]: Sample analysis of process 12446 written to file /Users/home/.dropbox/s4f0a50aa
    Jan  9 03:33:30 ihomez com.apple.backupd[19376]: Copied 717781 files (13.0 MB) from volume i5 2TB.
    Jan  9 04:06:38 ihomez com.apple.backupd[19376]: Starting post-backup thinning
    Jan  9 04:06:38 ihomez com.apple.backupd[19376]: No post-back up thinning needed: no expired backups exist
    Jan  9 04:06:39 ihomez com.apple.backupd[19376]: Backup completed successfully.
    Jan  9 04:33:45 ihomez com.apple.backupd[20287]: Starting standard backup
    Jan  9 04:33:46 ihomez com.apple.backupd[20287]: Backing up to: /Volumes/Time Machime LA/Backups.backupdb
    Jan  9 04:33:46 ihomez mds[19366]: (Warning) Server: No stores registered for metascope "kMDQueryScopeComputer"
    Jan  9 04:40:18 ihomez com.apple.backupd[20287]: No pre-backup thinning needed: 100.0 MB requested (including padding), 382.47 GB available
    Jan  9 04:59:25 ihomez backupd[20287]: CFPropertyListCreateFromXMLData(): Old-style plist parser: missing semicolon in dictionary.
    Jan  9 05:31:48 ihomez com.apple.backupd[20287]: Copied 720482 files (13.0 MB) from volume i5 2TB.
    Jan  9 05:45:22 ihomez com.apple.backupd[20287]: No pre-backup thinning needed: 100.0 MB requested (including padding), 381.98 GB available
    Jan  9 06:05:14 ihomez backupd[20287]: CFPropertyListCreateFromXMLData(): Old-style plist parser: missing semicolon in dictionary.
    Jan  9 06:32:57 ihomez com.apple.backupd[20287]: Copied 12.7 MB of 12.7 MB, 538084 of 538084 items
    Jan  9 06:36:52 ihomez com.apple.backupd[20287]: Copied 717781 files (12.7 MB) from volume i5 2TB.
    Jan  9 08:12:05 ihomez mds[19366]: (Normal) DiskStore: Creating index for /
    Jan  9 08:12:30 ihomez System Preferences[20910]: Preference bundle "/Users/home/Library/PreferencePanes/Archives.prefPane" is misplaced, ignoring...
    Jan  9 08:12:32 ihomez System Preferences[20910]: Error loading /Library/Audio/Plug-Ins/HAL/DVCPROHDAudio.plugin/Contents/MacOS/DVCPROHDAudio:  dlopen(/Library/Audio/Plug-Ins/HAL/DVCPROHDAudio.plugin/Contents/MacOS/DVCPROHD Audio, 262): no suitable image found.  Did find:\n    /Library/Audio/Plug-Ins/HAL/DVCPROHDAudio.plugin/Contents/MacOS/DVCPROHDAudio: no matching architecture in universal wrapper
    Jan  9 08:12:32 ihomez System Preferences[20910]: Cannot find function pointer NewPlugIn for factory C5A4CE5B-0BB8-11D8-9D75-0003939615B6 in CFBundle/CFPlugIn 0x20056cb80 </Library/Audio/Plug-Ins/HAL/DVCPROHDAudio.plugin> (bundle, not loaded)
    Jan  9 08:23:40 ihomez mdworker[20945]: Error, could not create MachMessagePort for com.apple.AddressBook.abd
    Jan  9 08:23:46 ihomez mdworker32[20948]: kCGErrorFailure: Set a breakpoint @ CGErrorBreakpoint() to catch errors as they are logged.
    Jan  9 08:23:52 ihomez mdworker32[20950]: kCGErrorFailure: Set a breakpoint @ CGErrorBreakpoint() to catch errors as they are logged.
    Jan  9 08:30:47 ihomez com.apple.Finder[225]: Failed to send message to backup server: error = -2
    Jan  9 08:30:41 ihomez com.apple.backupd[20287]: Starting post-backup thinning
    Jan  9 08:30:49 ihomez com.apple.backupd[20287]: No post-back up thinning needed: no expired backups exist
    Jan  9 08:30:51 ihomez com.apple.launchd[1] (0x1001017c0.mach_init.mdworker[20949]): Exited: Killed
    Jan  9 08:35:39 ihomez mdworker[20959]: (Normal) Import: Spotlight giving up on importing file /Users/home/Desktop/testdisk-6.11.3/recupero/recup_dir.34/f2515784.abcdp after 240.256 seconds, 239.841 seconds of which was spent in the Spotlight importer plugin.
    Jan  9 08:35:39 ihomez com.apple.launchd[1] (0x1001017c0.mach_init.mdworker[20959]): Exited with exit code: 75
    Jan  9 08:36:55 ihomez com.apple.backupd[20287]: Backup completed successfully.
    Jan  9 08:37:17 ihomez mdworker32[20974]: kCGErrorFailure: Set a breakpoint @ CGErrorBreakpoint() to catch errors as they are logged.
    Jan  9 08:39:36 ihomez mdworker[20969]: CFPropertyListCreateFromXMLData(): Old-style plist parser: missing semicolon in dictionary.
    Jan  9 08:41:09 ihomez mdworker[20969]: Corrupt JPEG data: 10053 extraneous bytes before marker 0xed
    Jan  9 08:41:37 ihomez /System/Library/Frameworks/CoreServices.framework/Frameworks/Metadata.framework /Versions/A/Support/mdworker[20969]: zip importer encountered an error (3) scanning "/Users/home/Downloads/Griffin Seconda serie.zip".
    Jan  9 08:45:44 ihomez /System/Library/Frameworks/CoreServices.framework/Frameworks/Metadata.framework /Versions/A/Support/mdworker[20969]: FontImporter: Validation failed - "/Users/home/Library/Fonts Disabled/MT Extra".
    Jan  9 08:45:44 ihomez /System/Library/Frameworks/CoreServices.framework/Frameworks/Metadata.framework /Versions/A/Support/mdworker[20969]: FontImporter: Validation Result - "<CFArray 0x10204f310 [0x7fff70eaeee0]>{type = mutable-small, count = 5, values = (\n    0 : <CFString 0x102762af8 [0x7fff70eaeee0]>{contents = "kATSFontTestSeverityInformation"}\n    1 : <CFString 0x102762b18 [0x7fff70eaeee0]>{contents = "kATSFontTestSeverityTechnicalError"}\n    2 : <CFString 0x102762b58 [0x7fff70eaeee0]>{contents = "kATSFontTestSeverityMajorError"}\n    3 : <CFString 0x102762b78 [0x7fff70eaeee0]>{contents = "kATSFontTestSeverityFatalError"}\n    4 : <CFString 0x102762b38 [0x7fff70eaeee0]>{contents = "kATSFontTestSeverityMinorError"}\n)}".
    Jan  9 08:45:55 ihomez mdworker[20969]: Error, could not create MachMessagePort for com.apple.AddressBook.abd
    Jan  9 08:46:09 ihomez mdworker[20969]: CFPropertyListCreateFromXMLData(): Old-style plist parser: missing semicolon in dictionary.
    Jan  9 09:03:32 ihomez mdworker[21011]: CFPropertyListCreateFromXMLData(): Old-style plist parser: missing semicolon in dictionary.
    Jan  9 09:04:02: --- last message repeated 5 times ---
    Jan  9 09:05:15 ihomez mdworker[20969]: CFPropertyListCreateFromXMLData(): Old-style plist parser: missing semicolon in dictionary.
    Jan  9 09:05:43 ihomez mdworker32[21036]: kCGErrorFailure: Set a breakpoint @ CGErrorBreakpoint() to catch errors as they are logged.
    Jan  9 09:05:44 ihomez mdworker[20969]: iCal.mdimporter: could not parse ICS file: /Applications/Microsoft Office 2008/Office/EntourageCore.framework/Versions/12/Resources/it.lproj/Timezones.ic s
    Jan  9 09:13:28 ihomez mdworker32[21053]: kCGErrorFailure: Set a breakpoint @ CGErrorBreakpoint() to catch errors as they are logged.
    Jan  9 09:16:17 ihomez mdworker32[21074]: kCGErrorFailure: Set a breakpoint @ CGErrorBreakpoint() to catch errors as they are logged.
    Jan  9 09:33:45 ihomez com.apple.backupd[21102]: Starting standard backup
    Jan  9 09:33:46 ihomez com.apple.backupd[21102]: Backing up to: /Volumes/Time Machime LA/Backups.backupdb
    Jan  9 09:40:46 ihomez com.apple.backupd[21102]: No pre-backup thinning needed: 100.0 MB requested (including padding), 381.68 GB available
    Jan  9 09:57:57 ihomez backupd[21102]: CFPropertyListCreateFromXMLData(): Old-style plist parser: missing semicolon in dictionary.
    Jan  9 10:29:58 ihomez com.apple.backupd[21102]: Copied 718890 files (12.9 MB) from volume i5 2TB.
    Jan  9 10:43:35 ihomez com.apple.backupd[21102]: No pre-backup thinning needed: 100.0 MB requested (including padding), 381.48 GB available
    Jan  9 11:02:16 ihomez backupd[21102]: CFPropertyListCreateFromXMLData(): Old-style plist parser: missing semicolon in dictionary.
    Jan  9 11:31:08 ihomez com.apple.backupd[21102]: Copied 12.7 MB of 12.7 MB, 642967 of 642967 items
    Jan  9 11:33:07 ihomez com.apple.backupd[21102]: Copied 716189 files (12.7 MB) from volume i5 2TB.
    Jan  9 13:26:26 ihomez com.apple.backupd[21102]: Backup deletion was canceled by user
    Jan  9 13:26:26 ihomez com.apple.backupd[21102]: Starting post-backup thinning
    Jan  9 13:26:27 ihomez com.apple.backupd[21102]: Backup completed successfully.

    Thanks for the quick response.
    I followed the steps you listed and also remove the files that were creating problems spootlight, including the audio plugin and the panel preferences file.
    Then I stopped by the timemachine reindexed spootlight 'option in the preferences panel spootight privacy. After I restarted my iMac and formatted the external drive again, Time Machine and restarting a full backup. This morning after a quick full backup and disk indexing completed incremental backups are always slow. Proceeds with a few kb at a time. I resend you the log files and screen capture. My iMac is constantly backed up.
    Thank you for your time.
    Stefano
    File log:
    Jan 10 00:30:05 ihomez newsyslog[757]: logfile turned over
    Jan 10 00:43:30 ihomez [0x0-0xe00e].com.getdropbox.dropbox[278]: Sampling process 278 for 5 seconds with 10 milliseconds of run time between samples
    Jan 10 00:43:35 ihomez [0x0-0xe00e].com.getdropbox.dropbox[278]: Sampling completed, processing symbols...
    Jan 10 00:43:35 ihomez [0x0-0xe00e].com.getdropbox.dropbox[278]: Sample analysis of process 278 written to file /Users/home/.dropbox/s4f0b7ba2
    Jan 10 00:44:08 ihomez mdworker32[805]: kCGErrorFailure: Set a breakpoint @ CGErrorBreakpoint() to catch errors as they are logged.
    Jan 10 01:00:51 ihomez mdworker[579]: -[ABAddressBook sharedAddressBook] Can't ABACQUIRE_FILE_LOCK /SourceCache/AddressBook/AddressBook-883/Framework/AddressBook/ABAddressBook.m: 3314
    Jan 10 01:04:41 ihomez osascript[897]: Initializer-based scripting additions have been deprecated. Please update this addition: "/Library/ScriptingAdditions/QXPScriptingAdditions.osax"
    Jan 10 01:07:56 ihomez mdworker32[930]: kCGErrorFailure: Set a breakpoint @ CGErrorBreakpoint() to catch errors as they are logged.
    Jan 10 01:08:01 ihomez mdworker32[931]: kCGErrorFailure: Set a breakpoint @ CGErrorBreakpoint() to catch errors as they are logged.
    Jan 10 01:09:44 ihomez com.apple.backupd[479]: Copied 94.7 GB of 990.4 GB, 506176 of 1771170 items
    Jan 10 01:13:34 ihomez [0x0-0xe00e].com.getdropbox.dropbox[278]: Sampling process 278 for 5 seconds with 10 milliseconds of run time between samples
    Jan 10 01:13:39 ihomez [0x0-0xe00e].com.getdropbox.dropbox[278]: Sampling completed, processing symbols...
    Jan 10 01:13:39 ihomez [0x0-0xe00e].com.getdropbox.dropbox[278]: Sample analysis of process 278 written to file /Users/home/.dropbox/s4f0b82ad
    Jan 10 01:14:19 ihomez mdworker32[946]: kCGErrorFailure: Set a breakpoint @ CGErrorBreakpoint() to catch errors as they are logged.
    Jan 10 01:20:02 ihomez mdworker32[969]: kCGErrorFailure: Set a breakpoint @ CGErrorBreakpoint() to catch errors as they are logged.
    Jan 10 02:00:16 ihomez mdworker32[1025]: kCGErrorFailure: Set a breakpoint @ CGErrorBreakpoint() to catch errors as they are logged.
    Jan 10 02:09:44 ihomez com.apple.backupd[479]: Copied 316.2 GB of 990.4 GB, 530801 of 1771170 items
    Jan 10 02:10:51 ihomez mdworker32[1052]: kCGErrorFailure: Set a breakpoint @ CGErrorBreakpoint() to catch errors as they are logged.
    Jan 10 02:11:00 ihomez mdworker[937]: CFPropertyListCreateFromXMLData(): Old-style plist parser: missing semicolon in dictionary.
    Jan 10 02:15:01 ihomez mdworker[937]: Corrupt JPEG data: 10053 extraneous bytes before marker 0xed
    Jan 10 02:15:37 ihomez mdworker32[1063]: kCGErrorFailure: Set a breakpoint @ CGErrorBreakpoint() to catch errors as they are logged.
    Jan 10 02:30:55 ihomez mdworker32[1098]: kCGErrorFailure: Set a breakpoint @ CGErrorBreakpoint() to catch errors as they are logged.
    Jan 10 02:38:32 ihomez /System/Library/Frameworks/CoreServices.framework/Frameworks/Metadata.framework /Versions/A/Support/mdworker[937]: FontImporter: Validation failed - "/Users/home/Library/Fonts Disabled/MT Extra".
    Jan 10 02:38:32 ihomez /System/Library/Frameworks/CoreServices.framework/Frameworks/Metadata.framework /Versions/A/Support/mdworker[937]: FontImporter: Validation Result - "<CFArray 0x10256a570 [0x7fff70e20ee0]>{type = mutable-small, count = 5, values = (\n    0 : <CFString 0x104eb5af8 [0x7fff70e20ee0]>{contents = "kATSFontTestSeverityInformation"}\n    1 : <CFString 0x104eb5b18 [0x7fff70e20ee0]>{contents = "kATSFontTestSeverityTechnicalError"}\n    2 : <CFString 0x104eb5b58 [0x7fff70e20ee0]>{contents = "kATSFontTestSeverityMajorError"}\n    3 : <CFString 0x104eb5b78 [0x7fff70e20ee0]>{contents = "kATSFontTestSeverityFatalError"}\n    4 : <CFString 0x104eb5b38 [0x7fff70e20ee0]>{contents = "kATSFontTestSeverityMinorError"}\n)}".
    Jan 10 02:38:55 ihomez mdworker[937]: CFPropertyListCreateFromXMLData(): Old-style plist parser: missing semicolon in dictionary.
    Jan 10 02:38:56 ihomez mdworker32[1115]: kCGErrorFailure: Set a breakpoint @ CGErrorBreakpoint() to catch errors as they are logged.
    Jan 10 03:09:44 ihomez com.apple.backupd[479]: Copied 517.9 GB of 990.4 GB, 651137 of 1771170 items
    Jan 10 04:09:45 ihomez com.apple.backupd[479]: Copied 723.7 GB of 990.4 GB, 787449 of 1771170 items
    Jan 10 05:09:46 ihomez com.apple.backupd[479]: Copied 947.2 GB of 990.4 GB, 789860 of 1771170 items
    Jan 10 05:20:55 ihomez com.apple.backupd[479]: Copied 790597 files (982.2 GB) from volume i5 2TB.
    Jan 10 05:32:32 ihomez com.apple.backupd[479]: No pre-backup thinning needed: 1.60 GB requested (including padding), 873.52 GB available
    Jan 10 05:33:14 ihomez mdworker[1452]: CFPropertyListCreateFromXMLData(): Old-style plist parser: missing semicolon in dictionary.
    Jan 10 05:35:07: --- last message repeated 5 times ---
    Jan 10 05:35:36 ihomez backupd[479]: CFPropertyListCreateFromXMLData(): Old-style plist parser: missing semicolon in dictionary.
    Jan 10 05:35:45 ihomez mdworker[1475]: CFPropertyListCreateFromXMLData(): Old-style plist parser: missing semicolon in dictionary.
    Jan 10 05:59:42 ihomez com.apple.backupd[479]: Copied 699486 files (1.9 MB) from volume i5 2TB.
    Jan 10 06:34:52 ihomez com.apple.backupd[479]: Starting post-backup thinning
    Jan 10 06:34:52 ihomez com.apple.backupd[479]: No post-back up thinning needed: no expired backups exist
    Jan 10 06:34:52 ihomez com.apple.backupd[479]: Backup completed successfully.
    Jan 10 07:10:09 ihomez com.apple.backupd[1752]: Starting standard backup
    Jan 10 07:10:09 ihomez com.apple.backupd[1752]: Backing up to: /Volumes/TimeMachine LA/Backups.backupdb

  • How to catch errors watched in sxmb_moni through abap program??

    Dear Gents,
    I have one scenario which is proxy -> xi -> jdbc. Scenario works fine when every thing is good, but if there are any errors in XI usually we catch the exception after calling the proxy as :
    TRY.
        CALL METHOD cl_rfq_sapin->mios_rfq_sapin
          EXPORTING
            output = output
          IMPORTING
            input  = input.
        COMMIT WORK.
      CATCH cx_ai_system_fault INTO cl_system_fault .
        gv_system_fault = 'X'.
      CATCH cx_ai_application_fault INTO cl_application_fault.
        gv_application_fault = 'X'.
    ENDTRY.
    But by this code we are able to know whether it is system error or application error. But we cant get actual error. To see the actual error we need to go to SXMB_MONI in XI. The some sample error in sxmb_moni is as follows :
      <?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
    - <!--  Inbound Message
      -->
    - <SAP:Error xmlns:SAP="http://sap.com/xi/XI/Message/30" xmlns:SOAP="http://schemas.xmlsoap.org/soap/envelope/" SOAP:mustUnderstand="1">
      <SAP:Category>XIAdapterFramework</SAP:Category>
      <SAP:Code area="MESSAGE">GENERAL</SAP:Code>
      <SAP:P1 />
      <SAP:P2 />
      <SAP:P3 />
      <SAP:P4 />
      <SAP:AdditionalText>com.sap.aii.af.ra.ms.api.DeliveryException: Error when attempting to get processing resources: com.sap.aii.af.service.util.concurrent.ResourcePoolException: Unable to create new pooled resource: DriverManagerException: Cannot establish connection to URL 'jdbc:microsoft:sqlserver://10.56.5.79:1433;databaseName=SXD': SQLException: [Microsoft][SQLServer 2000 Driver for JDBC]The requested instance is either invalid or not running.</SAP:AdditionalText>
      <SAP:ApplicationFaultMessage namespace="" />
      <SAP:Stack />
      <SAP:Retry>M</SAP:Retry>
      </SAP:Error>
    So is there any way we can catch the above error in the abap program ??
    Your responeses were highly appreciated.
    Regards,
    Santhosh

    hi,
    did you try using acknowledgments?
    http://help.sap.com/saphelp_nwpi71/helpdata/en/f4/8620c6b58c422c960c53f3ed71b432/content.htm
    (code at the bottom of this page)
    Regards,
    Michal Krawczyk

  • Error catcher: Error #1069: Property _bindingsByDestination not found

    I appear to be having a rather strange issue. In my Flex project I have a mx:Canvas with a mx:Resize inside. The mx:Resize is redundant and not needed at all. Currently it looks like this:
    <mx:Resize easingFunction="{Bounce.easeOut}" />
    Nothing uses it at all, its completly redundant. If I remove that one line of MXML the flash player complains with this error:
    Error catcher: Error #1069: Property _bindingsByDestination not found on ********* and there is no default value.
    Any ideas?
    Regards:
    John

    don't use the name property.  that is a string:
    targets=(obj.dropTarget.parent)
    trace(targets);
    trace(targets.x)

  • Cannot catch error from SessionManagerAdobeHostedServices

    I just got the following error in the client:
    Error: error getting ticket: [Event type="error" bubbles=false cancelable=false eventPhase=2]
         at com.adobe.rtc.session.managers::SessionManagerAdobeHostedServices/onTicketError()
         at flash.events::EventDispatcher/dispatchEventFunction()
         at flash.events::EventDispatcher/dispatchEvent()
         at com.adobe.rtc.session.sessionClasses::SingleUseTicketService/sendRequest()
         at com.adobe.rtc.session.managers::SessionManagerAdobeHostedServices/onMeetingInfo()
         at flash.events::EventDispatcher/dispatchEventFunction()
         at flash.events::EventDispatcher/dispatchEvent()
         at com.adobe.rtc.session.sessionClasses::MeetingInfoService/onInfoReceive()
         at com.adobe.rtc.session.sessionClasses::MeetingInfoService/onComplete()
         at flash.events::EventDispatcher/dispatchEventFunction()
         at flash.events::EventDispatcher/dispatchEvent()
         at flash.net::URLLoader/onComplete()
    It seems to come from (SessionManagerAdobeHostedServices)
              protected function onTicketError(p_evt:Event):void
                   throw new Error("error getting ticket: " + p_evt);
    Is there a way to catch errors in event listeneres? Otherwise it's not possible to handle this error gracefully. The global error handler could resolve it somewhen in the future but we cannot jump to 10.1 yet.
    The root cause was on our server that most likely emitted an invalid authentication token, so that's not an issue anymore.

    Hi Mark,
    If you are linking to the source files and not using swc, you can do these changes for yourself in source code of LCCS.
    To catch this error as an event rather than throwing as we do by default, you can do something like
    var p_error:Object = new Object();
    p_error.name = "Give it a name" ;
    p_error.message = "Send the message" ;
    super.receiveError(p_errorObject);
    inside your onTicketError function.
    Just look at the code inside onSessionError function in SessionManagerAdobeHostedServices. It works similarly. This error object that you created gets converted into an event called SessionEvent.ERROR ( look at the code inside SessionManagerBase's onSessionError). SessionManagerBase is the base class for SessionManagerAdobeHostedServices.
    Finally, since this event is thrown by SessionManagerBase, the connectSession catches it automatically. So, all you need to do is add a event listener to connectionSession to catch this error(look at onSessionError function inside ConnectSession.as ). And you should be able to handle this.
    I haven't tried it but rather throwing you an idea. So, give it a shot.
    Hope this helps
    Thanks
    Hironmay Basu

  • How do we catch errors in Servlets?

    Hello, i 'm using Servlets and JDBC.
    i'm having a form.html where the user inserts data in the input fields.
    It's a registration page.
    I would like to check for possible user errors.
    For example if the user has not typed anything in a required field like field "password", so the field is null.
    I would like to inform the user that this field is null and he/she shall type in it again.
    (I'm talking generally not only for a registration page but to any page that requires correct data)
    *1.* Shall i use Javascript?
    *2.* Shall i direct the user to an error page where the page describes the error, what the user has to do in order to correct it and direct him back to the previous page?
    *3.* Shall i only use if/else?
    I would appreciate if sm could give me some advice on this matter or post me some links related to catch errors in servlets.
    Thanks, in advance!
    Edited by: g_p_java on Jul 11, 2009 12:15 PM

    Here is a possible approach to this issue:
    * use javascript to validate all textfields on the form client-side every time the user clicks the submit button. If it fails, put a message in red next to the problem textfield describing what the problem is. Dont allow submit if there are validation issues.
    * More than one validation may apply to a given textfield. For instance, the field cant be empty is checked before its checked for an invalid date.
    * Check to see if its an invalid date format first (example: mm/dd/yyyy), then check to see if its an invalid date (non leap year for example).
    * recheck all validation back on the server (necessary if user disabled javascript or a hacker bypasses your client side validation). Redraw the page and populate it, but put messages next to the problem fields as you did for javascript.
    * The invalid date format and invalid date should pass if given an empty value since the its the empty value validation (if it applicable for that field) that is repsonsible for that test.
    *since you will be applying this validation over and over again for all your JSP pages for this project and future projects, it may be a good idea to create reusable code for it. You may also research google for good approaches.
    Your javascript code should be from a single javascript file that is included into each JSP page so it can be reused.
    @see http://www.xs4all.nl/~sbpoley/webmatters/formval.html
    * All textfields should be validated throughly so your database never gets bad data (data is king).
    * common things to check for:
    invalid date format, invalid date, empty textfield, invalid email address, invalid telephone number format, invalid zip code, etc, etc, etc

  • "itunes has experienced an error and needs to close"

    while trying to import my c.d. collection to itunes, i quite often get the message "itunes has experienced an error and needs to close. do you want to send the error to microsoft?" it usually takes me about 20 minutes to import 1 c.d. to itunes becuase i have to keep re-opening itunes after it closes. i never lose anything i have already imported. sometimes i will get through 5 songs before i get the error message, sometimes i cant get through a single song. whats the deal here??

    What if you try importings CDs to your computer (not to iTunes) Is this normally working? If yes the problem is in ITunes and if no the problem is maybe your CD player. If the problem is in iTunes you should try to download the latest version from the Apple pages and then update/reinstall.

  • "iTunes has encountered an error and needs to close" -Gapless Playback

    I've had this problem for a while now and I'm just plain sick of it!
    Every time I start up iTunes it does the "Determining Gapless Playback" thing, but when it gets to certain songs it freezes up and I get an error message that says:
    "iTunes has encountered an error and needs to close"
    This happenes to a lot of songs (a few dozen)and the only way I can actually access my library is by hitting the 'x'next to "Determining Gapless Playback" before it gets to the songs. However, now I can't even do that because it gets to the song immediately.
    I need to know if I can disable the gapless playback or somehow debug this (I have reinstalled iTunes, Quicktime works, I have reloaded my library, done a system restore,and changed users/startup programs... nothing works)
    PLEASE help!
    I run XP if that helps.

    Kar,
    Check out the steps Roy B posted in this thread. They are long and a bit convoluted, but they seem to have done the trick for many others having this problem.

  • "iTunes has encountered an error and needs to close" - can't open iTunes

    Hi guys,
    I'm a huge Apple fan so I obviously decided to upgrade to Apple 7.0.1 the day it came out... installed it. Opened it up, but within just a few seconds i got a Windows message saying
    "iTunes has encountered an error and needs to close"
    I reinstalled it and still have the same problem.
    First few days I could atleast keep iTunes open for a few minutes before the message, but now its down to just a few seconds.
    I run Windows XP if that helps any.
    Please help me fix this problem or tell me how I can put iTunes 6 back on my computer --- I need my music!
    Thanks

    After downloading and installing 7.0.1 my iTunes would not open either. Even worse is you can't go back to v6 if you had v7 running--the database is updated.
    Luckily I was able to get my iTunes to open again by doing the following:
    Click Start/Run
    Type in "%userprofile%\application data\apple computer"
    Right click on the iTunes folder and rename it to iTunes.bak.
    Close the window.
    Click Start/Run again.
    Type in "%userprofile%\local settings\application data\apple computer"
    Right click on the iTunes folder and rename it to iTunes.bak.
    Close the window.
    Try opening your iTunes again. It may re-ask some general setup questions, but mine opened without the error, and it still had all my music. However, I did have to re-authorize my computer.
    I used to never be leary about updating iTunes... guess Apple's software ain't no peach, either.
    Hope this helps someone.
      Windows XP Pro  

  • Firefox says it has an error and needs to close

    Firefox says it has an error and needs to close. I have sent multiple reports and no change. It says it is an firefox.exe problem. Please help

    I also used version 7 and faced the same problem, it shows,
    [Exception... "Component returned failure code: 0x80004005 (NS_ERROR_FAILURE) [nsIDOMLocation.hostname]" nsresult: "0x80004005 (NS_ERROR_FAILURE)" location: "JS frame :: chrome://searchshield/content/overlay.js :: onContentLoaded :: line 918" data: no]

  • Itunes causes a "itunes has encountered a serious error and needs to close"

    Ok everytime i try to open up itunes it immediatly opens up a window that says itunes has encountered a serious error and needs to close....i send the error report microsoft directs me to check out that apple page to uninstall qt and then repair...i have tried everything that i read in these forums, even the one where it says to go into dos mode(F8 to get to safe mode) and delete the files that have a random 4 or 6 letter file ending in .exe
    i am at my whits end here please help i need my itunes
    by the way it worked fine when i first installed it for about 2 days then i get nothing...

    oh yeah and when i go to uninstall it from add\remove programs when the wizard comes up and is running i get that same error and needs to close message, but i doenst effect the uninstall wizard(i dont think)........PLEASE HELP

  • Error message needs to be generated in case of change in released PO.

    Hi all,
    please help me how to solve this issue
    <b>issue1:</b>
    Error message needs to be generated in case of change in released PO.
    1) change in incoterms,  
    2) payment terms,                 
    3) quantity                             
    4) rate.                                    
    The system should allow for change on the higher side.

    Hi ,
    I think you point no 3 & 4 can be solved using option available in release startegy and for point 1 & 2 u have to try with some user_exits. I think so , others can comment on this .
    Thanks
    Dipak

  • New to lightroom, used program last wk no problem, now unable to import any nef or jpegs, keeps showing error message, need help =(

    new to lightroom, used program last wk no problem, now unable to import any nef or jpegs, keeps showing error message, need help =(

    So where is LR trying to copy the files?  Check your destination in the Import panel at the right.

  • Photoshop CS2 has serious error and needs to be reinstalled * 3

    Hello,
    I am running photoshop CS2 at work and had it open very slowly this morning (3minutes) and then give me an error message - Photoshop has encountered a serious error and needs to restart. I did this 3 times and it still is not working. I did a full uninstall each time, trashed prefferences, repaired permissions and restared but with no luck. Capture One is not opening either, but one step at a time here.
    Anyone have any suggestions?
    thaks

    A little more info:
    This seems particularly likely to happen when I open a sequence on the timeline that has more than 5 audio tracks.
    I'm using OS Mavericks 10.9.5. Video footage is .R3D. I have the crash report if that helps.

  • The file is not compatible with this version of photoshop / CS2 error -- Same File : CS6 no error / CS2 error , I need trouble shooting method, Please

    the file is not compatible with this version of photoshop / CS2 error -- Same File : CS6 no error / CS2 error , I need trouble shooting method, Please

    Save with Maximize Compatibility in CS6.
    Choose Edit > Preferences > File Handling (Windows) or Photoshop > Preferences > File Handling (Mac OS). 
    From the Maximize PSD and PSB File Compatibility menu, choose any of the following: 
      Always 
    Then re-save your file so it can open in CS2

Maybe you are looking for

  • Short Dump While selecting Variant for ABAP query

    Hi, ABAP query is going to short dump (CONNE_IMPORT_WRONG_COMP_LENG) while selecting a Variant. If i create and use variant then i am able to see Output of Variant.But not able to use Earlier created variants . I think some mismatch between variant v

  • AWT PopupMenu not showing Chinese Characters

    Hi all. I have a mostly Swing application that must display English and Chinese characters. Changing the Swing components has been easy, however I am having problems changing an AWT PopupMenu that i use in combination with the new TrayIcon features o

  • Upload Standard Text Key

    Hi expert, I am trying to upload Standard Text Key (CA10) for task list. I don't know how to do it, because it contain long text. Can anyone give me a suggestion? Thanks, Secundes

  • Tax Credit with Vertex

    Hi, We are using vertex. Can some one explain me how to handle Tax credits (invoive corrections for only tax). I will not like to cancel the invoice and then rebook again, I read something about invoice correction, is that something that is used for

  • If number is not negative

    I want an if statement to do the following If (x is not neagaitve) Do this. eg. If (x!= -n) //where n can be one of an array of numbers Do this. Can anyone help with the "if statement". Cheers, Enda.