Problem on catch error
Hi ,
I have cross pages download function, which is i fthe user only want to download sorecodes on one scree, just check the checked box and click the save button, if user want to download recode cross pages, the need to check the box click add more button and then click the save button.
Now my problem is if the use did not checked any box and click the save button then I need some error message is pop up, it suppose quite sample, but I just keep got java.lang.NullPointerException, what mistake I hade makde??
String[] checked = request.getParameterValues("mybox");
if(checked.length>0){
dosomething}
else {
error message}
I can't handle the error message
java.lang.NullPointerException
formate.download.doPost(download.java:112)
javax.servlet.http.HttpServlet.service(HttpServlet.java:709)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
org.apache.jasper.runtime.PageContextImpl.doForward(PageContextImpl.java:693)
org.apache.jasper.runtime.PageContextImpl.forward(PageContextImpl.java:660)
org.apache.jsp.secure.Action_jsp._jspService(org.apache.jsp.secure.Action_jsp:74)
Similar Messages
-
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 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 -
Problem in catching UserException
I have a problem in catching UserException in the JavaCard RMI demo of purse client from the Development Kit. The error that i'm getting is this, instead of catching the UserException:
Exception in thread "main" java.lang.UnsatisfiedLinkError: com.sun.javacard.impl.NativeMethods.getCurrentContext()B
at com.sun.javacard.impl.NativeMethods.getCurrentContext(Native Method)
at com.sun.javacard.impl.PrivAccess.getCurrentAppID(PrivAccess.java:454)
at javacard.framework.CardException.<init>(CardException.java:46)
at javacard.framework.UserException.<init>(UserException.java:49)
at com.sun.javacard.javax.smartcard.rmiclient.CardObjectFactory.throwIt(Unknown Source)
at com.sun.javacard.javax.smartcard.rmiclient.CardObjectFactory.throwException(Unknown Source)
at com.sun.javacard.javax.smartcard.rmiclient.CardObjectFactory.getObject(Unknown Source)
at com.sun.javacard.rmiclientlib.JCRemoteRefImpl.parseAPDU(Unknown Source)
at com.sun.javacard.rmiclientlib.JCRemoteRefImpl.invoke(Unknown Source)
at card.PurseImpl_Stub.setAccountNumber(Unknown Source)
at client.PurseClient.main(PurseClient.java:88)The client aplication from the demo works fine, but at the end it was supposed to generate a UserException. The result that I get is this:
Receiving initial reference... OK
Getting the balance... Balance = 0
Crediting 20...
Debiting 15...
Getting the new balance... Balance = 5
Setting account number equal to 54321...
Getting the account number... 5 4 3 2 1
Trying to set incorrect (too long) account number. Expecting to get UserException with code=0x6002
Exception in thread "main" java.lang.UnsatisfiedLinkError: com.sun.javacard.impl.NativeMethods.getCurrentContext()B
at com.sun.javacard.impl.NativeMethods.getCurrentContext(Native Method)
at com.sun.javacard.impl.PrivAccess.getCurrentAppID(PrivAccess.java:454)
at javacard.framework.CardException.<init>(CardException.java:46)
at javacard.framework.UserException.<init>(UserException.java:49)
at com.sun.javacard.javax.smartcard.rmiclient.CardObjectFactory.throwIt(Unknown Source)
at com.sun.javacard.javax.smartcard.rmiclient.CardObjectFactory.throwException(Unknown Source)
at com.sun.javacard.javax.smartcard.rmiclient.CardObjectFactory.getObject(Unknown Source)
at com.sun.javacard.rmiclientlib.JCRemoteRefImpl.parseAPDU(Unknown Source)
at com.sun.javacard.rmiclientlib.JCRemoteRefImpl.invoke(Unknown Source)
at card.PurseImpl_Stub.setAccountNumber(Unknown Source)
at client.PurseClient.main(PurseClient.java:88) Have anybody had this problem when running the RMI demo from the development kit?
Edited by: Traveller83 on Feb 19, 2009 3:11 PM
Update: I'm using JDK 1.6 and I already have tried 1.5, and still have this problem. Also, I get this problem by running either CREF and JCWDE.
It seems that when the runtime environment calls getCurrentContext() from the NativeMethods class it gives an error. The application runs well, and this only happens when a UserException is thrown by the card. All the samples in the javacard kit 2.2.2 gives this problem when the card throws an UserException. Please I need help on this problem, I can't find a solution anywhere...
Thanks in advance.
Edited by: Traveller83 on Feb 19, 2009 11:27 PMProblem resolved.
I'm using Eclipse for the development of JavaCard applets and the host side. So, i had all the librabries from the JavaCard Kit all along in the same project. When the client application tried to catch an exception thrown by the card some conflicts surged.
To fix this,if you're using Eclipse for the development, you have to separate the necessary libraries for the card from those necessary for the host applications. Now I have two projects, one for the client applications and another for the card side. -
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 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 -
Catching errors in web services
I have a web service that I am adding error handling to log
and notify me of anything that I haven't already caught with
specific cftry/catches. I put an onError function in my
application.cfc. When I test my error handling by calling the .cfc
as a component from a .cfm template, it works great. The onError
logs the error and sends me an email.
When I test using a .Net app and call the .cfc as a web
service, something besides my onError seems to catch the error. It
returns "coldfusion.xml.rpc.CFCInvocationException:
[coldfusion.runtime.UndefinedVariableException : Variable apple is
undefined.]" (My test is trying to add 1 to apple (which is not
defined) ).
Whatever this mysterious handler is correctly identifies the
error. But, it is not calling my routines to log and email me.
Anyone have a clue how to catch errors in web services???
Thanks,
MikeHi mferris,
Looks like I'm facing the same exact situation trying to use onError() method in a webservice:
http://forums.adobe.com/message/1986620#1986620
I would be very happy to know how did you successfully solve this problem. Thanks.
-Salvo -
Try/catching errors occuring in synchronous event handlers
Hi,
I know that using try/catch in flash player it is possible to catch only synchronous errors, but recently I ran into code in our application which I strongly believe is synchronous but it behaves as if it wasn't.
In example below I create event listener and inside try/catch I dispatch event. Handler function throws error. Executing code stops when error is thrown, so message "after throwing error" won't be logged, but try/catch block catches nothing and code executes as if nothing happened after event dispatch.
Dispatching event on element executes handler method immediately so it is synchronous execution. Event call stack which is displayed in debug versions of flash player, shows every function from creation of class to execution of handler.
Generally flash applications relays heavily on events and in my case it caused ours users projects to be irreversibly corrupted, because of this continuing to work after error, which I even can't properly detect and handle, cause it's going throught 5 or more event handlers and adding try/catch to each handler would create enormous chaos in my code. So my question is why does flash player behaves like this? Are there any ways to tell compiled SWF file to treat such cases as synchronous calls, f.e. compilation parameters?
package
import flash.display.Sprite;
import flash.events.Event;
import flash.events.EventDispatcher;
import flash.text.TextField;
public class TestApp extends Sprite
public var cTextField:TextField;
public function TestApp()
cTextField = new TextField();
cTextField.width = 300;
cTextField.height = 200;
addChild(cTextField);
onAppCreated();
protected function onAppCreated():void
var eventName:String = "my_event";
var caughtError:Boolean = false;
var dispatcher:EventDispatcher = new EventDispatcher();
dispatcher.addEventListener(eventName, handler);
try
dispatcher.dispatchEvent(new Event(eventName));
} catch (error:Error)
caughtError = true;
cTextField.text += caughtError ? "caught error\n" : "error wasn't caught\n";
protected function handler(event:Event):void
cTextField.text += "before throwing error\n";
throw new Error("throw error");
cTextField.text += "after throwing error\n";Okay, nobody bit. Sorry.
The only way to really figure out what is going on is to look at a running example with a C++ debugger. I'm particularly curious about whether this problem happens in a specific browser/os combination (we may be working around a quirk of that platform), or if it's something that happens everywhere.
The most effective way to proceed is going to be to file a bug with a simplified, executable example (source and compiled SWF, ideally) that demonstrates the problem. This will help me route the bug to a developer and get you an answer in the shortest time possible.
You can file a bug here:
http://bugbase.adobe.com/
If you reply here with the bug number, I'll get it assigned to an engineer.
Thanks! -
Hi Fellows,
Since a couple of days I can't upload images and pdf's to my wiki anymore. What happens is that the image or pdf gets uploaded once and processed 3 or 4 times (I can find them in the corresponding /Library/Collaboration/ folder). But the image or pdf does not show up in the wikipage and throws up a server error message instead: There was an error uploading the file. Please try again.
Stop/Start the wikid proces solves the problem shortly until after a couple of hours the problems start occuring again.
On the server side I see this:
Oct 10 08:08:37 myserver com.apple.wikid[41152]: Wed Oct 10 08:08:37 myserver.x.net QTKitServer[45631] <Error>: kCGErrorFailure: Set a breakpoint @ CGErrorBreakpoint() to catch errors as they are logged.
Oct 10 08:08:37 myserver /System/Library/Frameworks/QTKit.framework/Resources/QTKitServer[45631]: _RegisterApplication(), FAILED TO establish the default connection to the WindowServer, _CGSDefaultConnection() is NULL.
Oct 10 08:08:37 myserver com.apple.wikid[41152]: _RegisterApplication(), FAILED TO establish the default connection to the WindowServer, _CGSDefaultConnection() is NULL.
My questions:
1. How can I catch errors / set breakpoint
2. How can I make sure the QTKitserver can 'talk' to the windowserver
Colocated productionserver with DNS, Firewall, iCal, Mail, MySQL, OD, Push Notification & Web + wikis
Thanks in advance!
the cat-tamerOk, here is the culprit, not a solution sofar
Safari 6 is breaking the upload mechanism of the Snow Leopard wiki server. They all end up in loops and gracefully fail and die after around 5 attempts.
Gecko, Trident and Presto as well as Webkit based Chrome have no problem at all with uploading, just Apple's own Safari.
Bug will be filed and will investigate more server side. -
can't open iTunes on my pc in windows. I keep getting a Problem event: BEX error. How can i fix this? need very detailed step by step instructions on how to fix. thx
Check out this discussion link:
https://discussions.apple.com/thread/2777410?threadID=2777410&tstart=15 -
"Problem When Printing" error on Mac Mini
Hi all,
I just recently updated my Mac Mini from 10.3 to 10.4. Instead of Archive and Install I formatted and did a clean install.
I have my printer set up, however whenever I try and print anything from any application I get a very unhelpful "Problem when printing" error, and nothing prints.
I also get the same error when trying to save to PDF.
My printer is a HP Deskjet 3750, and the driver is the one included with 10.4 (as per HP's instruction), but I don't think it's a driver problem as Save to PDF gives me the same error.
I've already tried repairing permissions. Anyone know what could be causing this. Any help is greatly appreciated.
Thanks.Bugger. PSR is often a winner
You could try installing Gutenprint 5.0.1 available from Sourceforge (it's about 15MB). It's an updated version of the included GIMP-Print drivers and may repair/replace/install some of the core files. Otherwise you may have to contact Apple and see if you can get 10.4.9 mailed to you. -
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. -
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.
Maybe you are looking for
-
Programatiicaly determine if a subsequence exists
How do I determine if a named sequence exists in a sequence file (not the current sequence file) and if present, execute it? The file in which the sequence resides may or may not be loaded. I would like to do this within a TestStand sequence (presuma
-
Illustrator CS6 (iMac) lagging/saving time finally improved.
I upgrade from a PC with CS3 to a late 2012 iMac 27" with CS6: Processor 3.2 GHz Intel Core i5 NVIDIA GeForce GTX 680MX 2048 MB and have had the lag problems that others have experienced, so was very disappointed with CS6 and my new iMac I upgraded
-
Skypetastic...
Hi,I recently posted regarding being unable to connect in iChat with a Mac friend in Jersey. We could text, and his presence was there, but no audio or video - (basic error messages, insufficient bandwidth, user failed to respond, I failed to respond
-
When I submit to reset my security questions, I do not receive an email to reset them, What can I do to reset them?
-
Me salen una linea de cuadraditos blancos en la pantallar
Me salen una linea de cuadraditos blancos en la pantalla, parte superior del iphone tapando el estado bateria, conexion wifi,etc....alguien sabe como se quita. iPhone 5, iOS 6.1.4