Global catch error?
Hi,
is it possible to catch ALL uncatched errors of my
application?
I want to have the possibility to show my own error dialog
for all errors which was not catched in subclasses.
is it possible in debug version?
Hey, have a look there
https://bugs.adobe.com/jira/browse/FP-8
and if you want please vote
Similar Messages
-
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 PMHere 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 -
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 -
I'm working with 11g.
I have a BPM process and I want catch the system errors to redirect the work flow at a subprocess or in the particular form that can help external users
I have tried with "evant subprocess" but don't work (BUG fix in only for PS5(11.1.1.6 version) )
Can you help me?
Thanks
ElenaCan you be more specific about the bug?
It's true that the fault handling framework for recovery (as in BPEL) is in an upcoming release. But you can (in 11.1.1.4) put the activities that would generate errors in an embedded subprocess, then put a boundary catch event on the subprocess to catch and handle system and/or business errors. The flow out of whatever handles the error can rejoin the main flow or loop back to retry. A common pattern is to have to flow go to a human activity where the outcome of the activity determines whether to retry.
You can also catch error events in an event subprocess, but you can't continue the main flow from there. That flow (within the event subprocess) either interrupts or is concurrent with the main flow. -
SMCnsnmp in shared-ip non-global zone errors due to duplicate I/F index
Hi all,
I have Solaris 10 zones using the shared-ip model, with Net SMTP installed in the global and non-global zones.
Smtpd starts normally in the global zone, but fails to start in the non-global zones, reporting this error ...
$ sudo tail /zones/roots/uxNNNz4/root/var/log/snmpd.log
error on subcontainer 'interface container' insert (-1)
error on subcontainer 'interface container' insert (-1)
error on subcontainer 'interface container' insert (-1)
error on subcontainer 'interface container' insert (-1)
error on subcontainer 'interface container' insert (-1)
error on subcontainer 'interface container' insert (-1)
error on subcontainer 'interface container' insert (-1)
error on subcontainer 'interface container' insert (-1)
error on subcontainer 'interface container' insert (-1)
error on subcontainer 'interface container' insert (-1)
This error was reported on OpenSolaris some time ago, reference ...
(http://prefetch.net/blog/index.php/2009/05/10/net-snmp-should-now-work-in-an-opensolaris-non-global-zone) ...
Net-snmp does not work in an opensolaris non-global zone:
+"error on subcontainer ‘interface container’ insert (-1)"+
These errors are caused by opensolaris bug #6640675, which causes all interfaces to be assigned an index value of 0 (this leads net-snmp to think there are duplicate interfaces). The fix was just integrated into Nevada, so hopefully the code will be back ported to Solaris 10.
Example ifconfig in global zone (note index 2 for global and shared-ip VIPs)...
lo0: flags=2001000849<UP,LOOPBACK,RUNNING,MULTICAST,IPv4,VIRTUAL> mtu 8232 index 1
inet 127.0.0.1 netmask ff000000
lo0:1: flags=2001000849<UP,LOOPBACK,RUNNING,MULTICAST,IPv4,VIRTUAL> mtu 8232 index 1
zone ux560z1
inet 127.0.0.1 netmask ff000000
lo0:2: flags=2001000849<UP,LOOPBACK,RUNNING,MULTICAST,IPv4,VIRTUAL> mtu 8232 index 1
zone ux560z2
inet 127.0.0.1 netmask ff000000
lo0:3: flags=2001000849<UP,LOOPBACK,RUNNING,MULTICAST,IPv4,VIRTUAL> mtu 8232 index 1
zone ux560z3
inet 127.0.0.1 netmask ff000000
lo0:4: flags=2001000849<UP,LOOPBACK,RUNNING,MULTICAST,IPv4,VIRTUAL> mtu 8232 index 1
zone ux560z4
inet 127.0.0.1 netmask ff000000
nxge0: flags=1000843<UP,BROADCAST,RUNNING,MULTICAST,IPv4> mtu 1500 index 2
inet 172.25.4.2 netmask fffffc00 broadcast 172.25.7.255
ether 0:21:28:ba:9e:e4
nxge0:1: flags=1000843<UP,BROADCAST,RUNNING,MULTICAST,IPv4> mtu 1500 index 2
zone ux560z1
inet 172.25.4.3 netmask fffffc00 broadcast 172.25.7.255
nxge0:2: flags=1000843<UP,BROADCAST,RUNNING,MULTICAST,IPv4> mtu 1500 index 2
zone ux560z2
inet 172.25.4.4 netmask fffffc00 broadcast 172.25.7.255
nxge0:3: flags=1000843<UP,BROADCAST,RUNNING,MULTICAST,IPv4> mtu 1500 index 2
zone ux560z3
inet 172.25.4.5 netmask fffffc00 broadcast 172.25.7.255
nxge0:4: flags=1000843<UP,BROADCAST,RUNNING,MULTICAST,IPv4> mtu 1500 index 2
zone ux560z4
inet 172.25.4.6 netmask fffffc00 broadcast 172.25.7.255
QUESTIONS:
1. Has the bug been reported for Solaris 10 ?
2. Is a Solaris 10 patch available ?
3. Is there a work-around or other ideas to get SMTP working in a Solaris shared-ip zoned.
4. Exclusive-IP should fix it, but does that require a dedicated NIC per zone ?
Thank You,
KWThe CR you cite: 6640675
was fixed in S10 over a year ago. You'll need a contract to get the patch. -
More trouble with registering sapccmsr and EYE CATCH error
Hello all,
I saw that this was a topic in an earlier thread. That thread was very helpful for troubleshooting, but it seems I have everything properly set up and patched, but I am still receiving the dreaded EYE CATCH error. The system is a Unicode dual-stack XI system. Here are the details:
sapccm4x registers with no problems.
sapccmsr results in the following:
<b>LE06201:xitadm 160% ./sapccmsr -j2ee -R pf=/sapmnt/XIT/profile/START_DVEBMGS00_LE06201
INFO: CCMS agent sapccmsr working directory is /usr/sap/ccms/XIT_00/sapccmsr
INFO: CCMS agent sapccmsr config file is /usr/sap/ccms/XIT_00/sapccmsr/csmconf
INFO: Central Monitoring System is [XIT]. (found in config file)
INFO: additional Central Monitoring System is [SLM]. (found in config file)
additional CENTRAL system y/[n] ? :
INFO: found ini file /usr/sap/ccms/XIT_00/sapccmsr/sapccmsr.ini.
INFO: Checking Distributed Statistical Records Library dsrlib.so
INFO: DSR: Path /usr/sap/ccms/dsr for Distributed Statistical Records.
INFO: checking version an Unicodeness of dsrlib.so
INFO: DSR: Dynamic Library dsrlib.so (version 22) successfully loaded.
INFO:
CCMS version 20040229, 64 bit, multithreaded, Unicode
compiled at Jul 7 2007
systemid 370 (Solaris on SPARCV9 CPU)
relno 6400
patch text patch collection 2007/4, OSS note 1013331
patchno 191
intno 20020600
running on LE06201 SunOS 5.9 Generic_122300-02 sun4us
pid 26318
profile /sapmnt/XIT/profile/START_DVEBMGS00_LE06201
ERROR: Cannot open Monitoring Segment 0 rtc = 245
Last reported error: [249] CCMS monitoring segment has wrong EYE CATCH. It seems to be created as non-unicode segment.
This program runs as unicode. Please use non-unicode version
INFO: dsr: dsrlib unloaded.
EXITING with code 1</b>
Based on the information in the earlier thread, I checked that the files are consistent in their Unicodeness:
<b>LE06201:xitadm 35% pwd
/sapmnt/XIT/exe
LE06201:xitadm 165% sapccm4x -v
CCMS version 20040229, 64 bit, multithreaded, Unicode
compiled at Jul 7 2007
systemid 370 (Solaris on SPARCV9 CPU)
relno 6400
patch text patch collection 2007/4, OSS note 1013331
patchno 191
intno 20020600
running on LE06201 SunOS 5.9 Generic_122300-02 sun4us
LE06201:xitadm 166% sapccmsr -v
CCMS version 20040229, 64 bit, multithreaded, Unicode
compiled at Jul 7 2007
systemid 370 (Solaris on SPARCV9 CPU)
relno 6400
patch text patch collection 2007/4, OSS note 1013331
patchno 191
intno 20020600
running on LE06201 SunOS 5.9 Generic_122300-02 sun4us
LE06201:xitadm 167% saposcol -v
SAPOSCOL version COLL 20.94 640 - V3.73 64Bit, 64 bit, single threaded, Non-Unicode
compiled at Jul 7 2007
systemid 370 (Solaris on SPARCV9 CPU)
relno 6400
patch text COLL 20.94 640 - V3.73 64Bit
patchno 191
intno 20020600
running on LE06201 SunOS 5.9 Generic_122300-02 sun4us
LE06201:xitadm 107% disp+work -v | more
disp+work information
kernel release 640
kernel make variant 640_REL
DBMS client library OCI_920
DBSL shared library version 640.00
compiled on SunOS 5.8 Generic_117350-38 sun4u
compiled for 64 BIT
compilation mode UNICODE
compile time Oct 29 2006 21:30:34
update level 0
patch number 155
source id 0.155
supported environment
database (SAP, table SVERS) 610
620
630
640
DBMS server
ORACLE 9.2.0..
ORACLE 10.1.0..
ORACLE 10.2.0..
operating system
SunOS 5.8
SunOS 5.9
SunOS 5.10
LE06201:xitadm 169% pwd
/sapmnt/XIT/exeU
LE06201:xitadm 170% sapccm4x -v
CCMS version 20040229, 64 bit, multithreaded, Unicode
compiled at Jul 7 2007
systemid 370 (Solaris on SPARCV9 CPU)
relno 6400
patch text patch collection 2007/4, OSS note 1013331
patchno 191
intno 20020600
running on LE06201 SunOS 5.9 Generic_122300-02 sun4us
LE06201:xitadm 171% sapccmsr -v
CCMS version 20040229, 64 bit, multithreaded, Unicode
compiled at Jul 7 2007
systemid 370 (Solaris on SPARCV9 CPU)
relno 6400
patch text patch collection 2007/4, OSS note 1013331
patchno 191
intno 20020600
running on LE06201 SunOS 5.9 Generic_122300-02 sun4us
LE06201:xitadm 172% saposcol -v
SAPOSCOL version COLL 20.88 640 - V3.60 64Bit, 64 bit, single threaded, Non-Unicode
compiled at Apr 16 2005
systemid 370 (SUN on SPARC CPU with Solaris 2.2)
relno 6400
patch text COLL 20.88 640 - V3.60 64Bit
patchno 68
intno 20020600
running on LE06201 SunOS 5.9 Generic_122300-02 sun4us
LE06201:xitadm 111% disp+work -v | more
disp+work information
kernel release 640
kernel make variant 640_REL
DBMS client library OCI_920
DBSL shared library version 640.00
compiled on SunOS 5.8 Generic_117350-38 sun4u
compiled for 64 BIT
compilation mode UNICODE
compile time Oct 29 2006 21:30:34
update level 0
patch number 155
source id 0.155
supported environment
database (SAP, table SVERS) 610
620
630
640
DBMS server
ORACLE 9.2.0..
ORACLE 10.1.0..
ORACLE 10.2.0..
operating system
SunOS 5.8
SunOS 5.9
SunOS 5.10</b>
Anyone have any ideas why I am unable to register the sapccmsr? Thanks in advance for your help.
Best Regards,
Warren ChirhartHi,
I'd just like to make some additional comments.
The issue comes from the "jmon.dll" library which is non-unicode. You have to download the latest SAR archive of the SAP CCMS agents from the Service Marketplace and update your agents as well as your "jmon.dll" library by replacing the EXE and DLL files.
The agent files are located under:
/usr/sap/<SID>/<INSTNACE>/exe
The "jmon.dll" library is located under:
/usr/sap/<SID>/<INSTNACE>/j2ee/os_libs
Most probably you would have to shut down / restart the instance after you update the library so the changes take effect.
You can find the latest SAP CCMS agents SAR archive in SMP under:
https://websmp109.sap-ag.de/swdc
Then browse to:
/SAP Support Packages/SAP Support Packages and Patches/Entry by Application Group/SAP NetWeaver/SAP NETWEAVER/SAP NETWEAVER <version>/Entry by Component/Application Server ABAP/SAP KERNEL <version> <32-BIT | 64-BIT> UNICODE/<OS>/#Database independent/ccmagent_<agent_version>.sar
Hope this helps.
Kind regards,
Rosen -
Catching error in call transaction
Hi,
Can anyone tell me how to catch errors in call transaction method.
Please provide step by step guide.
Thanks,
ShipraHi Shipra...
This is the way...
data : It_MSG type table of BDCMSGCOLL with header line.
DATA : V_MESSAGE TYPE STRING.
LOOP AT ITAB.
PERFORM MAP_BDCDATA.
CALL Transaction 'MK01'
USING it_bdcdata
MODE 'N'
Messages into IT_MSG.
if sy-subrc ne 0. "when the Transaction is unsuccessful
**Display the Error messages
LOOP AT IT_MSG WHERE MSGTYP = 'E'.
CALL FUNCTION 'FORMAT_MESSAGE'
EXPORTING
msgtyp = it_msg-msgtyp
msgno = it_msg-msgnr
msgid = it_msg-msgid
msgv1 = it_msg-msgv1
msgv2 = it_msg-msgv2
IMPORTING
MESSAGE = V_MESSAGE.
WRITE:/ V_MESSAGE.
ENDLOOP.
REFRESH : IT_BDCDATA, IT_MSG.
ENDLOOP.
<b>Reward if Helpful.</b> -
Catching errors such as divide by zero and typing non-numeric characters
Fellows: How do I extend following script to catch errors such as divide by zero and typing non-numeric characters. Thanks
This program takes two integers (whole numbers), then displays the sum, average, division,
Modula of those numbers and finally the first number raised to the power of the second number.
import java.io.*;
public class HWOne
public static void main(String[] args) throws IOException // error handling
// variable declaration
String firstdigit, seconddigit;
int first, second, sum, total, modus, power;
float division;
double average;
BufferedReader myIn = new BufferedReader(new InputStreamReader(System.in));
//Invoke user response
System.out.print("Please enter first digit ");
firstdigit = myIn.readLine();
first = Integer.parseInt(firstdigit);
System.out.print("Please enter second digit ");
seconddigit = myIn.readLine();
second = Integer.parseInt(seconddigit);
//computations
sum = first + second;
average = (double)sum / (double)2;
division = (float)first / (float)second;
modus = first % second;
power = (int)Math.pow(first, second);
//Screen message
System.out.println("Sum: " + sum);
System.out.println("Average: " + average);
System.out.println("Division: " + division);
System.out.println("Modula: " + modus);
System.out.println("Power: " + power);Have you learnt about try/catch statements yet?
The parseInt method throws a NumberFormatException. So you place the call to that method inside a try statement and catch the exception.
For divide by zero, you can use an if statement. If the divisor != 0 perform division. -
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:
Johndon't use the name property. that is a string:
targets=(obj.dropTarget.parent)
trace(targets);
trace(targets.x) -
OLE Automation: catch error message
Hi, Experts.
I am interested in catching error messages after OLE commands. I show it in Excel example, but interested in general:
REPORT zlcka_ole .
TYPE-POOLS ole2.
DATA h_excel TYPE ole2_object.
DATA h_workbooks TYPE ole2_object.
DATA h_workbook TYPE ole2_object.
DATA h_range TYPE ole2_object.
CREATE OBJECT h_excel 'EXCEL.APPLICATION'.
SET PROPERTY OF h_excel 'Visible' = 1.
CALL METHOD OF h_excel 'Workbooks' = h_workbooks.
CALL METHOD OF h_workbooks 'Add' = h_workbook.
CALL METHOD OF h_excel 'Rows' = h_range
EXPORTING
#1 = 3.
SET PROPERTY OF h_range 'Name' = 'TEST'.
CALL METHOD OF h_excel 'Range' = h_range
EXPORTING
#1 = 'TEST'.
SET PROPERTY OF h_range 'Hidden' = 1.
WRITE / sy-subrc.
WRITE / sy-msgli.
I turned on debuging Automation of GUI and execute program.
Result was sy-subrc = 3 sy-msgli = ''
But in logfile(directory: SapWorkDir) I find:
<275=Automation(Error): *****************************ERROR OCCURED IN MODULE: [CALL METHOD OF 12 ('[Excel.Application.10]') 'Range' Imode 1002]*********************************************************************************************************************************
<275=Automation(Error): PROGRAM_ID |MODULE_NAME |METHOD_NAME |ERROR DESCRIPTION |VERSION |GUI VERSION |MODULE_PATH |
<275=Automation(Error): ********************************************************************************************************************************************************************************************************************************************************
<275=Automation(Error): CALL METHOD OF 12 ('[Excel.Application.10]') 'Range' Imode 1002 |Class name not found |Hidden |Unable to set the Hidden property of the Range class |Version info not found |6206.6.64.970 |Module doesnot exist |
<275=Automation(Error): ********************************************************************************************************************************************************************************************************************************************************
Is there anybody know how to get that error message <i>"Unable to set the Hidden property of the Range class"</i>?
SAP Version: 4.6CHi,
in SRM all messages are stored in the message handler. Also when you set a message within the check BAdI, the message is stored later in the message handler. If you want to know when a message is moved to the message handler, just set a break-point in FM BBP_PD_MSG_ADD.
Regards -
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) -
Hi,
Question : could you please tell me how to catch footer error message?
Background :
I am working with FM L_TO_CREATE_SINGLE .
This FM has so many exceptions and I am catching those in my custom program.
the problem is FM is throwing error message while it executes and simply coming out of my custom program and displaying error message at footer so I am not able to catch error message.
Please help me how to catch this error and see my code below
CALL FUNCTION 'L_TO_CREATE_SINGLE'
EXPORTING
I_LGNUM = '620'
I_BWLVS = '999'
I_MATNR = WA_RECORD_OUT-MATNR
I_WERKS = WA_RECORD_OUT-WERKS
I_ANFME = WA_PHY_INV_HIS-QUANTITY
I_ALTME = WA_PHY_INV_HIS-UNIT_OF_MEASURE
I_SQUIT = 'X'
I_VLTYP = WA_RECORD_OUT-LGTYP
I_VLPLA = WA_RECORD_OUT-LGPLA
I_VLENR = WA_PHY_INV_HIS-STO_UNIT
I_NLTYP = WA_PHY_INV_HIS-STO_TYPE
I_NLPLA = WA_PHY_INV_HIS-STO_BIN
I_COMMIT_WORK = 'X'
I_BNAME = SY-UNAME
I_KOMPL = 'X'
IMPORTING
E_TANUM = I_TANUM
EXCEPTIONS
NO_TO_CREATED = 1
BWLVS_WRONG = 2
BETYP_WRONG = 3
BENUM_MISSING = 4
BETYP_MISSING = 5
FOREIGN_LOCK = 6
VLTYP_WRONG = 7
VLPLA_WRONG = 8
VLTYP_MISSING = 9
NLTYP_WRONG = 10
NLPLA_WRONG = 11
NLTYP_MISSING = 12
RLTYP_WRONG = 13
RLPLA_WRONG = 14
RLTYP_MISSING = 15
SQUIT_FORBIDDEN = 16
MANUAL_TO_FORBIDDEN = 17
LETYP_WRONG = 18
VLPLA_MISSING = 19
NLPLA_MISSING = 20
SOBKZ_WRONG = 21
SOBKZ_MISSING = 22
SONUM_MISSING = 23
BESTQ_WRONG = 24
LGBER_WRONG = 25
XFELD_WRONG = 26
DATE_WRONG = 27
DRUKZ_WRONG = 28
LDEST_WRONG = 29
UPDATE_WITHOUT_COMMIT = 30
NO_AUTHORITY = 31
MATERIAL_NOT_FOUND = 32
LENUM_WRONG = 33
OTHERS = 34 .
IF SY-SUBRC <> 0.
CASE sy-subrc.
WHEN 1. MESSAGE = 'no_to_created'.
WHEN 2. MESSAGE = 'bwlvs_wrong' .
WHEN 3. MESSAGE = 'betyp_wrong'.
WHEN 4. MESSAGE = 'benum_missing'.
WHEN 5. MESSAGE = 'betyp_missing'.
WHEN 6. MESSAGE = 'foreign_lock'.
WHEN 7. MESSAGE = 'vltyp_wrong'.
WHEN 8. MESSAGE = 'vlpla_wrong'.
WHEN 9. MESSAGE = 'vltyp_missing'.
WHEN 10. MESSAGE = 'nltyp_wrong'.
WHEN 11. MESSAGE = 'nlpla_wrong'.
WHEN 12. MESSAGE = 'nltyp_missing'.
WHEN 13. MESSAGE = 'rltyp_wrong'.
WHEN 14. MESSAGE = 'rlpla_wrong'.
WHEN 15. MESSAGE = 'rltyp_missing'.
WHEN 16. MESSAGE = 'squit_forbidden'.
WHEN 17. MESSAGE = 'manual_to_forbidden'.
WHEN 18. MESSAGE = 'letyp_wrong'.
WHEN 19. MESSAGE = 'vlpla_missing'.
WHEN 20. MESSAGE = 'nlpla_missing'.
WHEN 21. MESSAGE = 'sobkz_wrong'.
WHEN 22. MESSAGE = 'sobkz_missing'.
WHEN 23. MESSAGE = 'sonum_missing'.
WHEN 24. MESSAGE = 'bestq_wrong'.
WHEN 25. MESSAGE = 'lgber_wrong'.
WHEN 26. MESSAGE = 'xfeld_wrong'.
WHEN 27. MESSAGE = 'date_wrong'.
WHEN 28. MESSAGE = 'drukz_wrong'.
WHEN 29. MESSAGE = 'ldest_wrong'.
WHEN 30. MESSAGE = 'update_without_commit'.
WHEN 31. MESSAGE = 'no_authority'.
WHEN 32. MESSAGE = 'material_not_found'.
WHEN 33. MESSAGE = 'lenum_wrong'.
WHEN 34. MESSAGE = 'ERROR_MESSAGE'.
WHEN OTHERS.
message id sy-msgid type sy-msgty number sy-msgno with
sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
ENDCASE.
Thanks
SBHi I have resloved it myself. here is the working code, thanks for all your help
CALL FUNCTION 'L_TO_CREATE_SINGLE'
EXPORTING
I_LGNUM = '620'
I_BWLVS = '999'
I_MATNR = WA_RECORD_OUT-MATNR
I_WERKS = WA_RECORD_OUT-WERKS
I_ANFME = WA_PHY_INV_HIS-QUANTITY
I_ALTME = WA_PHY_INV_HIS-UNIT_OF_MEASURE
I_SQUIT = 'X'
I_VLTYP = WA_RECORD_OUT-LGTYP
I_VLPLA = WA_RECORD_OUT-LGPLA
I_VLENR = WA_PHY_INV_HIS-STO_UNIT
I_NLTYP = WA_PHY_INV_HIS-STO_TYPE
I_NLPLA = WA_PHY_INV_HIS-STO_BIN
I_COMMIT_WORK = 'X'
I_BNAME = SY-UNAME
I_KOMPL = 'X'
IMPORTING
E_TANUM = I_TANUM
EXCEPTIONS
NO_TO_CREATED = 1
BWLVS_WRONG = 2
BETYP_WRONG = 3
BENUM_MISSING = 4
BETYP_MISSING = 5
FOREIGN_LOCK = 6
VLTYP_WRONG = 7
VLPLA_WRONG = 8
VLTYP_MISSING = 9
NLTYP_WRONG = 10
NLPLA_WRONG = 11
NLTYP_MISSING = 12
RLTYP_WRONG = 13
RLPLA_WRONG = 14
RLTYP_MISSING = 15
SQUIT_FORBIDDEN = 16
MANUAL_TO_FORBIDDEN = 17
LETYP_WRONG = 18
VLPLA_MISSING = 19
NLPLA_MISSING = 20
SOBKZ_WRONG = 21
SOBKZ_MISSING = 22
SONUM_MISSING = 23
BESTQ_WRONG = 24
LGBER_WRONG = 25
XFELD_WRONG = 26
DATE_WRONG = 27
DRUKZ_WRONG = 28
LDEST_WRONG = 29
UPDATE_WITHOUT_COMMIT = 30
NO_AUTHORITY = 31
MATERIAL_NOT_FOUND = 32
LENUM_WRONG = 33
ERROR_MESSAGE = 99
OTHERS = 34.
IF SY-SUBRC NE 0.
CALL FUNCTION 'FORMAT_MESSAGE'
EXPORTING
ID = SY-MSGID
LANG = '-D'
NO = SY-MSGNO
V1 = SY-MSGV1
V2 = SY-MSGV2
V3 = SY-MSGV3
V4 = SY-MSGV4
IMPORTING
MSG = MESSAGE
EXCEPTIONS
NOT_FOUND = 1
OTHERS = 2.
ENDIF.
Edited by: Rob Burbank on Oct 12, 2011 3:44 PM -
Hi experts,
I am new to BAPI.
Can anyone tell me " How to catch error in BAPI ".
Thanks,
ShipraHi,
In the BAPI return internal table you have to check for the Error or ABort message types..
Ex..
Check for error or abort messages
LOOP AT T_RETURN WHERE TYPE = 'E' OR TYPE = 'A'.
EXIT.
ENDLOOP.
IF SY-SUBRC = 0.
WRITE: / 'Exception occured'.
ELSE.
WRITE: / 'Update is successful'.
ENDIF.
Thanks
Naren -
In my application I want to cathc an error from mysql database.
Does anybody know?
Thanks in advance.You should be getting an SQLException
But if you are really getting an error you can do
try {
... throws an Error
} catch(SQLException e) {
e.printStackTrace();
} catch (Error e) {
e.printStackTrace();
}
Maybe you are looking for
-
hi i just upgraded to tiger, about a week ago. and i have a little bit of a problem,or i hope its not a problem. everything seems fine with repair permissions, but i noticed when i used macaroni the other day that i had the message ./users/shared/sc
-
After offer release, employee has to fill personal details through URL-E-recruitment
Dear All, Client is Indian, After Offer release through e-recruitment. HR want to send URL mail to selected candidate. Through this URL candidate has to fill all personal details(Family details, IT Declarations, Blood group etc.) How to store this da
-
NI-DAQmx Counter Frequency Measurement
I need to measure the number of pulses obtained within a time period (3 secs). So if i use channel 0 to generate a gate pulse for channel 1 how can i do other other things while waiting for my 3 seconds to be up ? Has anyone got any VB6 code to do it
-
Hi folks... I want to know how long the Connection cable from the back of the Creative X-Fi Elite Pro to the external Panel is. thanks
-
Batch Number in A/R Invoice
Hi All, How do you print Batch Number of an Item in A/R Invoice PLD? Thanks SV Reddy