Want to print exception. How?

Hello, I am getting some exceptions and I want to print actual message in exception.
Like for,
java.sql.SQLException: ORA-00921: unexpected end of SQL command
I want to print (unexpected end of SQL command) or (ORA-00921: unexpected end of SQL command)
How do I print that. I tried many methods for exception but
its either printing null or java.sql.SQLException. And I want to print "unexpected end of SQL command".
Please help.

printStackTrace gives me following.
java.sql.SQLException
     at org.kki.dao.oracle.oir.RegistrationDAO.getsearchresults(RegistrationDAO.java:1968)
     at org.kki.actions.oir.Finished1.step(Finished1.java:49)
     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
     at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
     at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
     at java.lang.reflect.Method.invoke(Unknown Source)
     at org.apache.struts.actions.DispatchAction.dispatchMethod(DispatchAction.java:280)
     at org.kki.actions.Dispatcher.execute(Dispatcher.java:55)
     at org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:484)
     at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:274)
     at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1480)
     at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:524)
     at javax.servlet.http.HttpServlet.service(HttpServlet.java:709)
     at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
     at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
     at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
     at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:672)
     at org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:463)
     at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:398)
     at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:301)
     at org.apache.struts.action.RequestProcessor.doForward(RequestProcessor.java:1069)
     at org.apache.struts.tiles.TilesRequestProcessor.doForward(TilesRequestProcessor.java:274)
     at org.apache.struts.action.RequestProcessor.processForwardConfig(RequestProcessor.java:455)
     at org.apache.struts.tiles.TilesRequestProcessor.processForwardConfig(TilesRequestProcessor.java:320)
     at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:279)
     at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1480)
     at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:524)
     at javax.servlet.http.HttpServlet.service(HttpServlet.java:709)
     at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
     at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
     at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
     at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
     at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
     at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
     at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
     at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
     at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
     at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869)
     at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:664)
     at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
     at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80)
     at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
     at java.lang.Thread.run(Unknown Source)
I want the actual message. I am not concerened with where that exception occurs as I already know the exception should occur there and also know what is reason e.g invalid sql statement OR command not properly ended. I want to print that actual message.

Similar Messages

  • I have a new macbook pro hooked up to a belkin wireless router. My HP officejet printer is also connected to the router. I cannont get the printer to work from my computer without restarting my computer evertime I want to print. How do I fix this?

    I have a new Macbook Pro hooked up to a new Belkin wireless router. I can connect to the internet without a problem. I have an HP officejet printer hooked up the the router to work wirelessley, The router is reading it as connected. My computer reads it as offline. If I reset my computer it will print whatever the first thing is in the que but nothing else and does not work after that. Is there some sort of setting that I am missing? I am trying to set this printer up to work wirelessly from three mac laptops in my house but I can't even get it to work on one right now. Any help would be awesome

    Mac OS X 10.7 Help: Troubleshoot a network printer

  • How do I take 300 dpi photos with my iPhone 4s? And how do I export them to my MacBook Pro at 300 dpi to use as I want to print photos.

    How do I take 300 dpi photos with my iPhone 4s?
    And how do I export them to my MacBook Pro at 300 dpi to use as I want to print photos.
    I have been using the standard camera on the iPhone and require 300 dpi to create photo books as the photos are resized according the layout.
    Your time and assistance in appreciated.
    Thanks

    Thanks Tonefox!
    After looking at a few of the links I found a mathematical equation that assisted me.
    Inches = Pixels/DPI
    eg: 3 inches = 300 pixels/100 DPI
    Using this equation and the fact that iPhone 4s takes photos that are 3264 x 2448 I was able to work out the largest print I could make with 300 DPI.
    Width 3264 pix/ 300 DPI = 10.88 inches
    Height 2448 pix/ 300 DPI = 8.16 inches
    Therefore, the largest print (with 300DPI) I can make of these photos is 10.88 inches x 8.16 inches.
    Which is great!
    So is it critical for me to change the dpi in say photoshop or does it not matter as long as I don't go above the 10.88 inches x 8.16 inches?
    From what I can gather the smaller I resize the photo the higher the DPI and the bigger I stretch the photo the lower the DPI?
    Further clarification will be much appreciated. Thanks

  • How can I make Address Book print labels how I want, or export to Word?

    I have found a number of serious problems with Address Book, which unless I can overcome them mean it is entirely useless for me. Almost all are to do with creating mailing labels or envelopes:
    1.I can't find any way of defining a sheet format for labels different from those on the pre-defined list. My labels are in 2 columns of 8, on a sheet 12” long by 8” wide, margins 0.5mm top and bottom, and ½” left and right. The labels themselves are 3½” x1½”. Address Book can't do it. It is odd that this is so restrictive, whereas with envelopes one has total flexibility.
    2.Although I can define which address I want to print on each label or envelope, I can't find a way of defining which field should be used for the first (name) line. It always consists of the First and Last names as recorded on each card. This is not what I want. For different mailings, I want to use different first lines, as in many cases each card is the address of a family group, the First and Last names simply recording the names of the parents e.g., John and Mary Smith. But for my Christmas mailing I want to print 'The Smith Family', whereas for my charity mailshots I want to print 'Mrs Mary Smith', as she is the charity supporter, not her husband or children.
    3.The address layout seems to be fixed, with each element on a separate line. This is not how I want to print, as in some cases it makes for too many lines, particularly on labels. I want to put the zip/post-code on the same line as the county or state, separated by about ½”. But I can't see how to dictate the layout at all. On labels there is a further problem, in that I can't define a vertical and/or horizontal off-set for the text.
    4.The Country does not print at all on labels, making the application quite useless for foreign mailings, and I can't find a way of overcoming this. Over half our mailing addresses are affected by this.
    5. And another problem really puts the final cherry on the icing of this cake: There is no way I can find of exporting the data from the address book in a format, e.g. a csv file, that I can bring into a word processor where I could do these mailings how I want them. Not only does the box fail to do what I need, it is also locked.
    I don't understand why, having set up Address Book on the database principle that one should have have to record each contact only once no matter how many ways one needs to use the data, it seems it has then been implemented in a way that prevents it being used in one of the most obvious ways, to print addresses in a format of the user's choice.
    The Applecare adviser tells me the problems I have can't be overcome. Is that right, or is she, and I missing something? Please help.

    noondaywitch wrote:
    "It's Christmas card time again and the fact that Address Book is useless for this purpose is really frustrating."
    While I sympathise with the functionality of Address Book, I'm old-fashioned enough to write my cards and envelopes by hand (shock! horror!) and get quite p***-off to receive bulk-printed stuff.
    Just a thought, peeps.
    It'd be all too easy to follow that up with a cheapshot making reference to how many Christmas cards you have to send, but I'll rise above that and explain that some of us might want to use this for business contacts and have 300+ cards to address.
    It is a shame that the printing feature from Address Book is so close, yet so far from performing this simple task. It is a shame that Pages can run mail merge, but only for one record per page (which is useless for label printing). It is also a shame that MS Word for Mac does proper labels but doesn't recognise Address Book as a datasource.
    These things are all a shame because with Apple's software, you rather expect things to "just work", as per their advertising, and when very simple things don't "just work", it difficult not to feel cheated.

  • When printing a list in Address Book, how can I select more than the default Attributes and keep them selected when I print again? I want to print ALL information for contacts so I have email address, notes, phone, company, title, etc all on one page.

    When printing a list in Address Book, how can I select more than the default Attributes and keep them selected when I print again? I want to print ALL information for contacts so I have email address, notes, phone, company, title, etc all on one page. I don't want to have to check off an additional 5 or 6 attributes each time I print out contact information. Is there a way to change the default setting for printing lists, so it is not just "phone," "photo," and "job title?"

    I have a user who wants to do this same thing. I did not find any way either to default the attributes to anything other than what you see the first time. Seems like such a trivial thing, hard to believe they do not allow it. I did find a program for this called iDress but I can't seem to download it from any links on the Internet. Not sure if it is free or not, but it was recommended by a link on the Mac support site.

  • When I download pictures from my camera they use to also downloan in Cannon's Easy Photo. In my new computer they don't. I want them to. How???  Also how do i edit photos in Photoshop and print 4 to a page?

    When I download pictures from my camera they use to also downloan in Cannon's Easy Photo. In my new computer they don't. I want them to. How???  Also how do i edit photos in Photoshop and print 4 to a page?

    Please study this, then come back with more specific questions
    Learn Photoshop Elements 12 | Adobe TV
    Learn Photoshop Elements | Adobe TV
    Use of the tools is pretty much the same in all versions of the program.
    "Edit" is a menu item in Photoshop Elements Editor. Don't you see this?

  • How do I specify that I just want to print pg 1 to 2 not the rest of doc

    I'm new to apple and not sure how I specify which pages to
    print there doesn't seem to be a print preview in the sense I
    can specify and define what I want to print of a document.
    I found the 'grab' feature/crosshairs to locate on a portion of
    a page so I can print a portion of one page yet doesn't give me
    a range selector to specifically set it to certain no. of pages.
    Even if I have two page document I like to have the control
    to print one page so i can turn page over and print the 2nd
    page of a document versus having a bunch of one sided
    printed pages. Is there a double side print feature? Where do I
    find these settings in the Leopard 10.5 o/sys? Intuitively I'd think
    File print yet I wasn't able to come up with it as yet?

    When the print dialog box comes up, the default looks pretty small. However, there is a button that looks like a triangle next to the pull down menu where it says "Printer:". This will give you some more options, including being able to print pages in a specific range.
    Should say Pages: From # to #.

  • HT4059 Using my iPad 1, viewing a page from a book purchased through iBooks, want to print a page.  Does anyone know how??

    I'm using my iPad 1 and wanting to print a page from a book that I purchased from iBooks.  I can't figure out how to print.  Any suqqetions? Thanks.

    Sorry, but you can't.
    Regards.

  • How to chose either you want to print a picture or document black in white or color?

    How to chose either you want to print a picture or document black in white or color from your computer before printing; regardless of picture being colored or black in white.  
    I bought HP Laserjet Pro 200 Color Mfp m276 yesterday. I am completely new to printers and printing. My question is how to chose either the print out would be color or Black in white. 
    At my school liberary and public liberaries, when i print an image or document, in there printer drop down selection menu, they have the option of Color print or black in white print. I want to make mine same too. I have two printers there which is 
    1.  HP Laserjet Pro 200 Color Mfp PCL6
    2. NPI16FE39 (HP Laserjet Pro 200 Color Mfp m276NW)
    I tried goint to Contol Panel>Drvices and Printers> HP Laserjet Pro 200 Color> printing preferences> and selected "Print in Graystyle"
    than i printed from HP Laserjet Pro 200 Color; by selecting it from drop down menu, but the print out was still coloured..
    PLEASE HELP ME!!
    it may be something to do with printing settings..
    I just want to select between Black in White and color ... before printing the page out (regardless of picture being colored)

    Hi,
    Here's a link to a thread with a similar issue on a different printer that might help.
    "Although I work for HP, I'm speaking for myself and not on behalf of HP"
    "Say "Thanks" by clicking the Kudos Star in the post that helped you.
    --Please mark the post that solves your problem as "Accepted Solution"

  • I replaced my printer. Now Itunes help wants to print to my old printer. How do i change the printer in Itunes?

    I replaced my printer with an newer printer. Now itunes Help wants to print to my old printer.How do I change Itunes to print to my new printer?

    Sorry, It was not Itunes. My laptop had reverted back to my old printer.

  • Have a MacBook Pro with 10.8.1 and want to print wirelessly with HP 3054 610a, currently connected via USB. Router is Apple Extreme without WPS button. How do I enter the said and passphrase to the printer. Can't use the cd install-no Mtn.Lion support

    Have MacBook Pro, Airport Extreme router, Mtn Lion 10.8.1 and want to print wirelessly with HP 3054 610a which was installed 2 days ago via USB. Prefer to set up the printer on the wifi network, but how do I enter ssid and passphrase. On the printer control panel only has WPS option.

    You didn't look far enough .... http://www.hp.com/global/us/en/wireless/printer-setup-help.html
    The next thing is to look in the manual that accompanied the printer for how to use the wireless setup wizard!
    This is specific to your printer ..... http://h10025.www1.hp.com/ewfrf/wc/document?docname=c02217452&lc=en&cc=us&dlc=en &product=5109847#N728

  • HT4356 I have an older HP connected to the usb port of my Time Machine, and have it shared.  I want to print from my iPhone on the network, but it can not be found in airport?  How do I make this work?

    I have an older HP connected to the usb port of my Time Machine, and have it shared.  I want to print from my iPhone on the network, but it can not be found in airport?  How do I make this work?

    AirPrint printers connected to the USB port of the Apple AirPort Base Station or Time Capsules are not supported with AirPrint.
    Read through this for information about Airprint printers and how to use them:
    http://support.apple.com/kb/ht4356

  • I'm trying to print from a full size 30x42 pdf of an AutoCAD file.  I only want to print an 8 1/2 x 11 portion, in scale.  How do I select the window and print in scale on my 8 1/2 x 11 printer?

    I'm trying to print from a full-size, 30x42 pdf of an AutoCAD file.  I only want to print an 8 1/2 x 11 portion, in scale.  How do I select the window and print in scale on my 8 1/2 x 11 printer (Brother MFC-9340CDW)?

    You might be better off contacting an AutoCAD support group.

  • I wanted to print with my Cannon printer but it displayed an error message B200. How do I fix it?

    Yesterday I wanted to print a text with my printer, but it I was getting the error code b200. What's the problem? How to fix it, any help will be appreciated!

    what model?
    how many times does it flash orange when you power up?  or do you get a green light?
    have you upluged at the wall, then left it to sit for a few hours (so with no mains cable in)?
    this apparenntly resets it

  • If I print an email after it's sent, it prints out Subj, from,date,to and text info. I want to print all this info before I send, not just the text. How?

    If I address and compose an email and try to print it before I send it, it only prints the text, not the "Subject," "From, Date," and "To" lines in the email. After I send it, if I go into the sent register and print the same e-mail it prints out all these lines along with the text.
    I want to print the email before I send it and have the print-out contain all these lines along with the text. How do I set Thunderbird to do this all the time?

    You will get the details you want if you print from the draft folder.

Maybe you are looking for

  • Is there a way to invite outlook users to meetings with Ical

    Hello all, I just recently left a firm using MS Exchange with Outlook for Mac 2011 and had been successfully sending meeting requests automatically within my Outlook email. When the recipient accepted, the meeting was added to my calendar. I am now s

  • Example of appraisals report

    Hi can anyone give me example of appraisals report? with real-time scenario? Thanks and points will be rewarded for all helpful answers.

  • My G5 goes to sleep when proccessing

    Does anyone have a problem with there G5 going to sleep in the following situations, while running iDVD, while running Adobe DNG converter, creating a quicktime movie from imovie, anything that seems particularly proccessor intensive and it just goes

  • Images-charts on 9ias R2 are not shown.

    We developped an application with dynamically build charts on 0C4J (stand alone) on linux(suse). The chartsoftware is from Netcharts After we installed the Xvfb-Server it works fine. When we deployed the application on 9ias (suse linux) no charts are

  • Will run in Automator, won't run as Finder plug-in

    Here is my setup: Desktop:Folder A:Folder B I created a simple Automator workflow to: move Folder B to the desktop, copy Folder A to a thumb drive move Folder B back into Folder A (I want to copy Folder A to the thumb drive MINUS Folder B) This scrip