How i can print the Stacktrace

hii..
i want to print the stacktrace for my program below..
package Langpack;
import java.io.*;
import java.sql.*;
import java.util.*;
public class LanguageFunctions extends Databaseclass
     public LanguageFunctions()
     super();
     LanguageDetails getDetails(String X)
          LanguageDetails objLanguageDetails=null;
          try
          Statement st=con.createStatement();
          ResultSet result=st.executeQuery("Select languageName From LanguageMast Where           
          languageNo='"+ X +"';");
          objLanguageDetails=new LanguageDetails();
          objLanguageDetails.languageName=result.getString("languageName");
          objLanguageDetails.languageNo=result.getString("languageNo");
          catch(Exception e)
          System.out.println("Cant Get Details");
          return objLanguageDetails;
     LanguageDetails getAllDetails()
          int i=0;
          LanguageDetails vArray[]=null;
          LanguageDetails objLanguageDetails=null;
          try
          Statement st=con.createStatement();
          ResultSet result=st.executeQuery("Select * From LanguageMast;");
          while(result.next())
          objLanguageDetails=new LanguageDetails();          
          objLanguageDetails.languageName=result.getString("languageName");
          objLanguageDetails.languageNo=result.getString("languageNo");
          vArray=objLanguageDetails;
          i++;          
          objLanguageDetails=null;
          catch(Exception e){
          System.out.println("Cant Get All the Details");
          return objLanguageDetails;
     boolean saveDetails(Vector X)
          LanguageDetails objLanguageDetails=null;
          Vector objVector=null;
          objVector=X;     
          String vlanguageName;
          String vlanguageNo;
          try
               objLanguageDetails=new LanguageDetails();
               objLanguageDetails=(LanguageDetails)objVector.elementAt(0);
               vlanguageName=objLanguageDetails.languageName;
               vlanguageNo=objLanguageDetails.languageNo;
               Statement st=con.createStatement();          
ResultSet rls=st.executeQuery("SELECT * FROM LanguageMast WHERE languageNo='"+vlanguageNo +"'");
               if (rls.getRow()==0)
               rls.moveToInsertRow();
               rls.updateString(vlanguageName,"languageName");
               rls.updateString(vlanguageNo,"languageNo");
               rls.insertRow();
               else
               rls.updateString(vlanguageName,"languageName");
               rls.updateRow();     
               return false;               
          catch(Exception e)
          System.out.println("Cant SAVE the Details");
          return true;          
     public static void main(String as[])
          Vector Y=new Vector();
          LanguageFunctions.saveDetails(Y);
so tell me..what is the solution for this and hw do i get the Stack trace..waiting for ur replies
Take care.
Rahul.

Do you want to print the stack trace of the exception being thrown?
Use: Throwable.printStackTrace()

Similar Messages

  • How i can print the smartform directly

    hi,
    my requirement is i have to print the smartform directly by skiping the dialog window.
    i am using the following code but in that i have press the Print push button again .
    DATA: output_options TYPE ssfcompop.
      output_options-tdimmed = 'X'.
      output_options-tddest = 'LOCL'.

    Trty something like
    *   Print parameters
        ssfcompop-tddest = tddest.
        ssfcompop-tdimmed = 'X'.
        ssfcompop-tdnewid = 'X'.
        ssfcompop-tddelete = 'X'.
    *   Control parameters
        ssfctrlop-device = 'PRINTER'.
        ssfctrlop-no_dialog = 'X'.
    * Call driver
        CALL FUNCTION fm_name
             EXPORTING
                  control_parameters = ssfctrlop
                  output_options     = ssfcompop
    Regards

  • HT2486 How can you put same contact in a Group multiple times so that you can print the same mailing label multiple times?

    How can you put same contact in a Group multiple times so that you can print the same mailing label multiple times?

    Hello,
    Avery...
    https://discussions.apple.com/thread/2588943?start=0&tstart=0
    Or...
    http://www.belightsoft.com/products/labelsaddresses/overview.php

  • When I print out Yahoo! Finance web page, the interactive chart (Flash Player 10) part is printed blank. Internet Explorer can print the same page, no problem. How can I print it correctly?

    I cannot print out Flash Player 10's interactive chart in FireFox.
    IE can print the same page.
    http://finance.yahoo.com/echarts?s=C+Interactive#chart1:symbol=c;range=5y;indicator=volume;charttype=line;crosshair=on;ohlcvalues=0;logscale=on;source=undefined
    My boss told me that he doesn't like Microsoft, so I must find a solution.

    I did not have the HP printer software for Mac OSX installed properly. Once installed the problem went away.

  • HT201272 can someone help me with this chat session.Font Size You are chatting with an Advisor now. This chat will be recorded. At the end of the session, you can print the transcript or request a copy via email. Privacy Policy Advisor [4:49 p.m.]: Hi, my

    Font Size
    You are chatting with an Advisor now. This chat will be recorded. At the end of the session, you can print the transcript or request a copy via email.
    Privacy Policy
    Advisor [4:49 p.m.]:
    Hi, my name is Jacob. It'll be just a moment while I review the comments you provided.
    Advisor [4:49 p.m.]:
    Hello Machelle, how may I assist you today?
    Customer [4:51 p.m.]:
    Can you please help me recover the new testament of the bible from media group. The have vanished.
    Customer [4:52 p.m.]:
    I need to recover the lost purchases I made from media group. I had all of the new testament.
    Advisor [4:53 p.m.]:
    Thank you for this information, I understand that you are missing some purchases. I do want to apologize for this inconvenience. I will be more then happy to look into  this for you.
    Advisor [4:53 p.m.]:
    Would you be able to provide your Apple ID? This is the email used to sign into the iTunes store.
    Customer [4:54 p.m.]:
    [email protected]
    Advisor [4:54 p.m.]:
    Thank you, one moment please.
    Advisor [4:56 p.m.]:
    Were these individual purchases? If so could you provide the name for each individual purchase?
    Customer [4:57 p.m.]:
    yes it the new testament books of the bible
    Customer [4:57 p.m.]:
    genesis etc...
    Advisor [4:58 p.m.]:
    I apologize, but I am not exactly familiar with the New Testament. Would you be able to provide these names for me so I can locate them on my end?
    Customer [4:59 p.m.]:
    Genisis Mark Matthew Luke John
    Customer [4:59 p.m.]:
    Exodus Levitus Numbers
    Advisor [5:00 p.m.]:
    Just a quick question, were these all audiobooks?
    Customer [5:00 p.m.]:
    Duetoronomy
    Customer [5:00 p.m.]:
    Yes from media group
    Advisor [5:00 p.m.]:
    Okay, are you currently on a computer with iTunes installed?
    Customer [5:01 p.m.]:
    yes
    Advisor [5:02 p.m.]:
    Unfortunately, audiobooks and ringtones are the only items on the iTunes store unavailable for re-download through iTunes in the Cloud. What I can go ahead and do is try and re-add these audiobooks back to your download queue for re-download. Please note if they have been removed or modified on the iTunes store they may not be available for re-download. Would this be okay?
    Customer [5:03 p.m.]:
    yes thank you!
    Advisor [5:03 p.m.]:
    Excellent, one moment please.
    Advisor [5:05 p.m.]:
    I apologize but after reviewing your account, it looks like we have already issued 3 exceptions for you to re-download your audiobooks in the past. Back on 02/23/2013. I apologize but we will be unable to do another exception for you. 
    Customer [5:06 p.m.]:
    that down load did include the new books of the bible that I had.
    Customer [5:07 p.m.]:
    that down load did not have the new testament books of the bible that I had
    Advisor [5:07 p.m.]:
    While reviewing the notes, this was issued to add all available audiobooks bought on your account. I again apologize but I will be unable to issue another exception to you. As the previous advisor did inform you to make sure to back up your files.
    Customer [5:08 p.m.]:
    the other advisor did not down load the new testament books. The advisor did not restore all of the books that I had originally brought.
    Advisor [5:10 p.m.]:
    While looking closer, the books that you are missing are no longer available to be re-downloaded. This is the reason why they were not added back to your download queue when he issued them. Unfortunately, as we do not handle the content on the iTunes store you will need to get in contact with the publisher of the content as they were the ones two remove or modify these books on the iTunes store. If you would like I can provide a link to their support site.
    Customer [5:11 p.m.]:
    yes they are I saw them.
    Advisor [5:11 p.m.]:
    They may have been modified by the content owner. This will be the reason why they were not added. As Apple does not control 3rd party content on the iTunes store. You will need to get in contact with them as we are unable to re-add this content back to your download queue.
    Customer [5:12 p.m.]:
    it is I just looked at it in the itunes store
    Customer [5:13 p.m.]:
    the material is still the same. The store does have it.
    Advisor [5:13 p.m.]:
    Machelle, if the items have been modified since you bought them, they will be unavailable for us to issue them back to you. You will need to get in contact with the providers for these books as they are the content owners and we do not have access to issue these back to you.
    Customer [5:14 p.m.]:
    the are still the same bible books that I purchased at the store.
    Customer [5:14 p.m.]:
    The audio books are the same. When I buy it again nothing will be different.
    Advisor [5:14 p.m.]:
    Machelle, I understand this. This is what our records are showing. When the previous advisor tried to re-issue them to you they were unable to as they have been modified on the iTunes store.
    Advisor [5:15 p.m.]:
    In order to receive further support for this issue you will need to get in contact with Media Group as they are the content providers for these audiobooks.
    Customer [5:15 p.m.]:
    I will buy them from another source. Don't say they have changed. The books are the same books I brought. They are at the store.
    Advisor [5:16 p.m.]:
    Machelle, Apple does not handle the content for 3rd party publishers on the iTune

    MoonSwan wrote:I've never heard of a validating editor but I was recently wondering what exists that could help me.  Aside from emacs, what should I search for to find one of these validating editors?
    You can use whatever tool you prefer - for someone already using emacs, emacs is a natural choice. Simple, easy to use online tools exist e.g. http://schneegans.de/sv/
    Just upload the file in question ('Validate by file upload' option) and click 'Validate':
    The '=' character cannot be included in a name. (723:10)
    <Terminal="Terminal">
    ^
    Googling 'xml validation' should give you some more tools / services if this one is not good enough.

  • How we can print directly a report without preview to a local printer in web

    How we can print directly a report without preview to a local printer in web-environment, whith Oracle 9ias Report server release 6i patch 11.
    The user want to print ticket, built by Oracle Report, without previuw on PDF format, in a web three-tier environment.
    Please supply my documentation in detail and sample code if you can.

    Hello,
    Take a look to the example provided in the note :
    Note.253881.1 How to Create a Report With a Frame Only on the Last Page at a Fixed Position
    Regards

  • How do I print the Outline view only?

    How do I print the black and white Outline view only? I pasted the Outline to a new layer, hid all other layers, but the color Preview view still printed.

    Clifford Peterson wrote:
    Re my cropping, I do have one problem.
    When I try to create multiple rectangles to define my cropping areas, 
    the rectangle I just made disappears when I make another one.
    I can only make one rectangle at a time.
    You've probably got your stroke and fill both set to none or to.... enable at least one of them... in a colour other than white

  • How do I print the file name of a PDF file?

    How do I print the file name of a PDF file?

    In the print dialog under Advanced you can specify this.

  • How I can print sortet contacts

    Hallo,
    how i can print my contacts sortet as List? I only can print my contact sortet as labels.
    In the Mac OS 10.7 i coudent print this. Also the pic from the contacts.
    Can someone help me.
    Thanks.

    Hallo mende,
    I know how i print a List. But the contacts will not be sortet in the ABC. And the pic i saved in the contacts also will not be printet.

  • How i can print on bouth side???hp officejet6​500aplus

    i need print book on bouth side, but in my manuel i don't have any information..so please help me to find how i can print on bouth side automaticaly???

    Hi,
    PLease follow the decument below to use the Duplex Accessory:
    http://h10025.www1.hp.com/ewfrf/wc/document?docnam​e=c01909142&cc=us&dlc=en&lc=en&product=4083977&tmp​...
    Say thanks by clicking the Kudos thumb up in the post.
    If my post resolve your problem please mark it as an Accepted Solution

  • How i can print a pdf???

    How i can print a pdf from Java or from a DOS script???
    Thanks for your help.

    from a Java application you can try to open up Adobe Reader. then just print from program. to do this look into the Runtime class. Something like:
    Runtime runtimeRef = Runtime.getRuntime();
    String pathToEXE = �C:\\MyFolderPath\adobeReader.exe�;
    Process adobeReaderProcess = runtimeRef.exec(pathToEXE);
    This will create a separate process which willl open up the Adobe Acrobat Reader program (assuming you have it and path is set up correctly).

  • How one can print a page to pocket printer from handset of nokia 40 series/

    how one can print a page to pocket printer from handset of nokia 40 series/60series/80 series
    if u have any information regarding these two question the pls send me the link

    I came across something similar recently where it printed the left hand side only!
    If I want to print an email, instead of File > Print  ( does not print properly ) I click on the print icon on my email webpage ( do not use applemail and access gmail direct) which then takes me to print preview showing the complete email which prints ok.
    Some webpages ( File>Print) do not print properly and some do. Those that do not generally have their own printer icon (path) that needs to be clicked on.
    Maybe something to do with encryption but don't know.
    Hope this helps in some way.

  • How do I print the entries in my Music Library, i.e., a list of my albums?

    How do I print the entries in my Music Library, i.e., a list of my albums?

    If you go to your library view and right click on library, you should be given th option to export a song list as a .txt file.
    It is not very nice to work with, but it will import in to a spreadsheet such as Excel where you can play around with it.
    Added: Oops I misread your question, what I said lists tracks not albums!

  • Here's a dumb ? I'm trying to find out how I can print from my ipad. I read about air streaming printers. so is a wireless printer considered an air streaming printer. i have 1 pc, my mac

    here's a dumb ? I'm trying to find out how I can print from my ipad. I read about air streaming printers. so is a wireless printer considered an air streaming printer. i have 1 pc, my mac

    If you already have a printer, you can probable use a program like, printopia to let your mac share your printer with the iOS device like your iPad. The catch being your computer has to be on, and not asleep, for the printer to work with your iPad.
    If you need a printer that is airprint ready, you can find a list on AirPrint, wireless printing straight from your iPad. Check out the bottom of the page where it says works with airprint enabled printers. There are even links on the page so you can buy the printers right from Apple's website.

  • How i can print from my iPad with airport expres

    How i can print from my iPad with airport expres

    Hi - you would need to purchase a printer that is enabled to print from an iPad, iPhone or iPod - these would include ePrint, iPrint and AirPrint printers - you would then install the appropriate app on you iPad and be able to print - the installation setup for each type of printer would enable you to do this.

Maybe you are looking for