URGENT: how to get the database error message into application?

Hi, pls give some idea:
For example, the database is MS Access. When insertion failed, the getMessage() method of SQLException will print "General error", while the log file created by ODBC will be "[MICROSOFT][ODBC DRIVER]column ID no found in student table"(...just a example).
So, how to get this message in our application?

instead of using the getMessage method, have you tried something like this:
         try {
         } catch (Throwable t1) {
            System.out.println(t1.toString());
         }If that still doesn't work, you can always redirect the log entries into a textarea but then everything that appears in the log file will be redirected!
;o)
V.V.

Similar Messages

  • When upgrading to the most current version of iTunes I get the following error message "An application has made an attempt to load the C runtime library incorrectly"  How do I fix this?

    When upgrading iTunes I recieve the following error message "An application has made an attempt to load the C runtime library incorrectly". 
    Program:C:\Program Files\iTunes.exe

    See Troubleshooting issues with iTunes for Windows updates.
    tt2

  • How to get the returned error messages in the Try/Catch block in DS 3.0?

    A customer sent me the following questions when he tried to implement custom error handling in DS 3.0. I could only find the function "smtp_to" can return the last few lines of trace or error log file but this is not what he wants. Does anyone know the answers? Thanks!
    I am trying to implement the Try/Catch for error handling, but I have
    hard time to get the return the msg from DI, so I can write it to out
    custom log table.
    Can you tell me or point me to sample code that can do this, also, can
    you tell me which tables capture these info if I want to query it from
    DI system tables

    Hi Larry,
    In Data Services XI 3.1 (GAd yesterday) we made several enhancements for our Try/Catch blocks. One of them is the additional of functions to get details on the error that was catched :
    - error_message() Returns the error message of the caught exception
    - error_number() Returns the error number of the caught exception
    - error_timestamp() Returns the timestamp of the caught exception.
    - error_context() Returns the context of the caught exception. For example, "|Session Datapreview_job|Dataflow debug_DataFlow|Transform Debug"
    In previous versions, the only thing you could do was in the mail_to function specify the number of lines you want to include from the error_log, which would send the error_log details in the body of the mail.
    Thanks,
    Ben.

  • Constantly getting the following error message JavaScript Application error: "An error has occurred: error"

    I about to give up on using Firefox since I've tried everything I know: cleared cache & reinstalled Firefox

    Start Firefox in <u>[[Safe Mode]]</u> to check if one of the extensions or if hardware acceleration is causing the problem (switch to the DEFAULT theme: Firefox/Tools > Add-ons > Appearance/Themes).
    *Don't make any changes on the Safe mode start window.
    *https://support.mozilla.org/kb/Safe+Mode
    *https://support.mozilla.org/kb/Troubleshooting+extensions+and+themes
    Create a new profile as a test to check if your current profile is causing the problems.
    See "Basic Troubleshooting: Make a new profile":
    *https://support.mozilla.org/kb/Basic+Troubleshooting#w_8-make-a-new-profile
    There may be extensions and plugins installed by default in a new profile, so check that in "Tools > Add-ons > Extensions & Plugins" in case there are still problems.
    If that new profile works then you can transfer some files from the old profile to that new profile, but be careful not to copy corrupted files.
    See:
    *http://kb.mozillazine.org/Transferring_data_to_a_new_profile_-_Firefox

  • HT1766 At the end of a synch I am getting the following error message "iTunes could not back up the iPod because the backup could not be saved on the computer".  Any ideas on how to resolve?

    At the end of a synch I am getting the following error message "iTunes could not back up the iPod because the backup could not be saved on the computer".  Any ideas on how to resolve?

    See:
    iOS: Troubleshooting backup issues in iTunes
    Try going to iTunes>Preferences>Devices and delete the existing backup so iTunes creates an entire new one vice changing the existing one.

  • I get the -1 error message when i have tried to restore my iphone, the phone will no longer work how can i rectify this?

    I have tried to restore my iPhone but when it has gone through all the restore I get the -1 error message and now my phone will not work at all, how do I rectify this please.

    Error 1 or -1
    This may indicate a hardware issue with your device. Follow Troubleshooting security software issues, and restore your device on a different known-good computer. If the errors persist on another computer, the device may need service.

  • Can no longer access blueyonder emails on iphone.I get the following error message: The mail server 'imap4.blueyonder.co.uk is not responding', how do I fix pls?

    Hi there
    As I've mentioned above, I can't seem to access my emails from my blueyonder account on my iphone. When I first set up my account on the phone, I had no problems at all receiving emails. Then recently, just out of the blue I get the following error message: 'Cannot Get Mail, The Mail Server 'imap4.blueyonder.co.uk' is not responding.  Verfiy that you have entered the correct account info in mail settings.  I definitely have the right settings, I even checked with Virgin but they are not able to assist with my problem. Has anyone else experienced this problem, if so,how did you fix it? If you could explain in simple terms as I'm not tech savvy!
    Many thanks!

    http://www.apple.com/uk/support/iphone/mail/
    work through this

  • I am trying to reinstall itunes 10.5 and am getting the following error message. An error occurred during the installation of assembly "Microsoft.VC80.CRT.type="win32".version="8.0.50727.6195".publicKey Token="1fc8b3b9a1e18e3b"Anyone know how to fix this?

    i am trying to reinstall itunes 10.5 and am getting the following error message.
    An error occurred during the installation of assembly “Microsoft.VC80.CRT.type=”win32”.version=”8.0.50727.6195”.publicKeyToken=”1fc8b 3b9a1e18e3b”.processorArchitecture=”x86””. Please refer to Help and Support for more information. HRESULT:0X800736B3.
    Anyone know how to fix this?

    same problem. tried the ff fixes from microsoft but no joy
    http://answers.microsoft.com/en-us/windows/forum/windows_7-windows_programs/gett ing-error-message-an-error-occurred-during-the/10122022-2d88-4266-a695-6c6ddeafd 019?tab=AllReplies&page=1
    http://answers.microsoft.com/en-us/windows/forum/windows_vista-windows_programs/ windows-vista-unable-to-install-itunes-an-error/19b48df7-54c8-47f3-8854-d34118fa a79a
    http://support.microsoft.com/mats/system_maintenance_for_windows/en-us
    other ideas would be appreciated.
    cheers

  • With my new macbook I attempted to open an older spreadsheet and get the following error message:  "This spreadsheet cannot be opened because ti is too old.  To open it, save it with numbers '09 first"  So how does one do this when I only have ver3.1?

    With my new macbook I attempted to open an older spreadsheet and get the following error message:  "This spreadsheet cannot be opened because ti is too old.  To open it, save it with numbers '09 first"  So how does one do this when I only have ver3.1?

    Numbers 3.x can only open Numbers '09 and later.  You will need Numbers '09 to open Numbers '08 files.
    If it is a single file (or only a few) you can email me and I will open and convert then email back.  My email address is in the "Biography" of my profile.
    You may have Numbers '09 installed.  Look in the folder "/Applications/iWork '09"  if Numbers is in that folder launch it, open the file you tried to open, and save.  Then you should be able to open in Numbers 3.x

  • I am trying to load iTunes and keep getting a error 126 and reinstall program.  I have uninstalled and reinstalled twice and keep getting the same error message.  How can this be resolved.

    I am trying to load iTunes and keep getting a error 126 and reinstall program.  I have uninstalled and reinstalled twice and keep getting the same error message.  How can this be resolved?

    Go to Control Panel > Add or Remove Programs (Win XP) or Programs and Features (later)
    Remove all of these items in the following order:
    iTunes
    Apple Software Update
    Apple Mobile Device Support (if this won't uninstall move on to the next item)
    Bonjour
    Apple Application Support
    Reboot, download iTunes, then reinstall, either using an account with administrative rights, or right-clicking the downloaded installer and selecting Run as Administrator.
    The uninstall and reinstall process will preserve your iTunes library and settings, but ideally you would back up the library and your other important personal documents and data on a regular basis. See this user tip for a suggested technique.
    Please note:
    Some users may need to follow all the steps in whichever of the following support documents applies to their system. These include some additional manual file and folder deletions not mentioned above.
    HT1925: Removing and Reinstalling iTunes for Windows XP
    HT1923: Removing and reinstalling iTunes for Windows Vista, Windows 7, or Windows 8
    tt2

  • When I turn on my computer I get the following error messages: Insecure Startup Item disabled. "Library/StartupItems/HP IO" has not been started because it does not have the proper security settings. Also for HP Trap Monitor.  How do I fix these?

    When I turn on my computer I get the following error messages:
    Insecure Startup Item disabled. "Library/StartupItems/HP IO" has not been started because it does not have the proper security settings.
    Insecure Startup Item disabled. "Library/StartupItems/HP Trap Monitor" has not been started because it does not have the proper security settings.
    How do I fix these?

    Library/LaunchAgents: com.promethean.activmgr.plist
    Library/LaunchDaemons: com.microsoft.office.licensing.helper.plist, com.promethean.activhardwareservice.plist
    Library/StartupItems: HP IO folder - HP IO, Resources, StartupParameters.plist
    HP Trap Monitor folder - HP Trap Monitor, Resources, StartupParameters.plist
    These are the system extension errors
    "/System/Library/Extensions/AppleGraphicsControl.kext"
    "/System/Library/Extensions/AppleGraphicsControl.kext/Contents/PlugIns/AppleMux Control.kext"
    "/System/Library/Extensions/AppleGraphicsControl.kext/Contents/PlugIns/ApplePoli cyControl.kext"
    "/System/Library/Extensions/BJUSBLoad.kext"
    "/System/Library/Extensions/EPSONUSBPrintClass.kext"
    I do not know what any of these do or how to fix them.  I have run multiple disk permission repairs & disk repairs.  The startup & system extension errors continue to come up.
    I even followed the directions to move HP IO & HP Trap Monitor to the trash, run disk permissions repair, put back in folder, then restart - and still am getting error message.

  • When I tried to run php file I am getting the following error message, "/home/karthick/Desktop/PHP files/third.php could not be opened, because the associated helper application does not exist. Change the association in your preferences." How to fix this?

    When I tried to run php file I am getting the following error message, "/home/karthick/Desktop/PHP files/third.php could not be opened, because the associated helper application does not exist. Change the association in your preferences." How to fix this?

    first, you just asked me to use MS file Explorer to see what the properties were.,..and to ask what happened. Yes - that's on my hard drive. The problem I have is opening word files in a DB that is web enabled.....I've used Firefox browser for that, and everything else , for years...... When I look at the Tools, and options on FireFox., as your support page noted.....NOTHING is listed in the Applications tab....hence my note asking for help. The file I need to open is a Word file out on a web enabled DB. It's not on my hard drive - I have to problems opening docs there - but for that, I don't use Firefox

  • I purchased an app for my Mac Book Pro.  The app is called djay.  Unfortunately it won't download.  I get the following error message: Error 1004 please try again later.  How can I resolve this issue?

    I purchased an app for my Mac Book Pro.  The app is called djay.  Unfortunately it won't download.  I get the following error message: Error 1004 please try again later.  How can I resolve this issue?

    Try contacting the app developer via email here >  http://help.algoriddim.com/customer/portal/emails/new

  • I get the following error message and don't know how to correct it: Sync encountered an error while connecting: Unknown error, Please try again.

    I get the following error message and don't know how to correct it: Sync encountered an error while connecting: Unknown error, Please try again.

    There have been problems reported with Sync.
    They are working on it, so please try again later when those problems are fixed.
    *https://services.mozilla.com/status/
    *http://twitter.com/#!/mozservices

  • HT3275 Im getting the following error message when Time Machine is trying to backup:  backup disc image/volumes/data/mycomputer.sparsebundle is already in use, how do I correct?

    Im getting the following error message when Time Machine is trying to back up:  backup disc image/volumes/data/my computer.sprasebundle is already in use.  What does this mean?  How do i correct?  Thanks!

    90% of the time, all you need to do is power off the Time Capsule, wait a few minutes, and power it back up.
    If no luck, then go to the more sophisticated fixes in the link above.

Maybe you are looking for

  • Change href Attribute

    I'm currently working on a website in DW8. This site has both English and Spanish pages. The document names are the same but are in separate folders ("en/home.htm" for English and "es/home.htm" for Spanish). I put a link on the top right of each page

  • ITunes error (-50)

    Hi I have a problem with purchasing in itunes store. everytime and in every device when i tried to purchase something i recieve an error with this content error (-50) i tied everything but i couldn't fix my problem. if there is any solution for this

  • Error occur when importing web part using Client Object Model API

                    i try to update webpart properties using Client API for some view and form pages. and the following error occured: view: /sites/metadata des02/frank metadata library/Forms/Thumbnails.aspx ERROR 03-06 05:36:47,720 Microsoft.SharePoint.

  • Reg:Excise round off

    Dear All, While doing MIGO, the excise value is getting rounded off in the header excise tab, where as in the item excise tab the value is flowing as in PO, for eg, BED 289.4 is getting rounded off as 28.94 in the header tab. how to control this this

  • I have a Adobe Creative Suite 6 Design Standard and Teacher Edition download for Windows, can I change the platform to Mac?

    I have a Adobe Creative Suite 6 Design Standard and Teacher Edition download for Windows, can I change the platform to Mac?