Would you plz tell me where i am wrong using JasperReports?

Hi everybody!
I use JasperReports to create a simple report
here is the code:
public class TestReport {
     private class TestObject{
          String text = "";
         public TestObject(String text){
              this.text = text;
         public String getText(){
              return this.text;
         public void setText(String text){
              this.text = text;
     public TestReport() {
     public static void main(String[] args) {
          TestReport t = new TestReport();
          HashMap<String, TestObject> myParams = new HashMap<String, TestObject>();
          myParams.put("id", t.new TestObject("id"));
          try{
               JasperReport jasperReport =
                    JasperCompileManager.compileReport("reports/test.xml");
               JasperPrint jasperPrint = JasperFillManager.fillReport(
                         jasperReport,
                         myParams,
                         //new HashMap(),
                         new JREmptyDataSource());
               JasperExportManager.exportReportToPdfFile(jasperPrint,
                         "reports/test.pdf");
          catch (JRException e){
               e.printStackTrace();
          /*String dirname = "d:/temp/";
        String filename = "simple.pdf";
        try {
            Runtime rt=Runtime.getRuntime();
            Process pr=rt.exec("c:/Program Files/Adobe/Acrobat 7.0/Reader/AcroRd32.exe " + "\"" + dirname + filename + "\"" );
        catch (Exception e) {
}

No, it's your job to identify the problem. Are you getting compiler errors? If so, what are they? Or are you getting run-time exceptions? If so, what are they and what does the stack trace say? Or does the code not do what you wanted it to do? If so, what did you want it to do and what does it do instead?
And I believe you will find JasperReports has its own forum where you can ask questions, once you have formulated a question.

Similar Messages

  • I have a defective iphone5 which is under guarantee,but unfortunately there isn't any apple retail store in my country.would you plz help me how can I change it?should I go to near country such as Dubai or Turkey to change it?

    I have a defective iphone5 which is under guarantee,but unfortunately there isn't any apple retail store in my country.would you plz help me how can I change it?should I go to near country such as Dubai or Turkey to change it?

    If the iPhone came from the US, then that is the only place where Apple will service it. If you can't take it there yourself, you would need to send the iPhone to someone you know in the US who could get it serviced and then send it back to you.
    Your only other option will be to find some unauthorized cellphone repair shop to attempt a repair, after which all further support from Apple, in the US or anywhere else, will no longer be available to you.
    Regards.

  • Could you please tell me where can I ask for  the S-User ID and password

    Dear SAP Experts,
    I passed the SAP exam (ABAP with SAP NetWeaver7.0) on August 20,2009
    and receieved the Certificate document from SAP.
    Unfortunately,I didnot do any project on sap.
    Until Last Week,I have the chance to do it.
    so I have to visite SAP sites ,
    but It must use the S-User ID and password.
    Could you please tell me where can I ask for it.
    Best regards,
    LiYing.

    hi,
      after compelting the certiification sap will provide the suser is and password along with sap certificate, generally it will take 4 -5 weeks to get the certificate if u still not received contact sap education locally
    regards,
    ram

  • Hello, I have a question for you. receipt of some Internet providers or notices notifications on the lock screen and I consume the battery on my iPhone 4S. would you please tell me how do I block these ads in blue letters on the screen me? thanks

    hello, I have a question for you. receipt of some Internet providers or notices notifications on the lock screen and I consume the battery on my iPhone 4S. would you please tell me how do I block these ads in blue letters on the screen me? thanks

    Hi demir67,
    Welcome to the Support Communities!
    The articles below will show you how to block text messages from your iPhone:
    iPhone User Guide for iOS 7:
    Send and receive messages - iPhone
    http://help.apple.com/iphone/7/#/iph01ac18d71
    Block unwanted messages. On a contact card, tap Block this Caller. You can see someone’s contact card while viewing a message by tapping Contact, then tap the "i" with the cirle.   You can also block callers in Settings > Phone > Blocked. You will not receive voice calls, FaceTime calls, or text messages from blocked callers.
    iOS 7: Understanding call and message blocking
    http://support.apple.com/kb/HT5845
    Notification Center - iPhone
    http://help.apple.com/iphone/7/#/iph6534c01bc
    Set notification options. Go to Settings > Notification Center. Tap an app to set its notification options. You can also tap Edit to arrange the order of app notifications.
    Cheers,
    Judy

  • Can you please tell me where i find the spellchecker

    == Issue
    ==
    I have another kind of problem with Firefox
    == Description
    ==
    can you please tell me where i find the spellchecker...............if not on here already how do i download it.
    == Firefox version
    ==
    3.6.6
    == Operating system
    ==
    Windows Vista
    == User Agent
    ==
    Mozilla/5.0 (Windows; U; Windows NT 6.0; en-GB; rv:1.9.2.6) Gecko/20100625 Firefox/3.6.6 ( .NET CLR 3.5.30729)
    == Plugins installed
    ==
    *-Default Plug-in
    *Shockwave Flash 10.1 r53
    *Windows Presentation Foundation (WPF) plug-in for Mozilla browsers
    *Google Update

    Dee,
    See [[Using the spell checker]] and make sure you have spellchecking enabled and a dictionary is installed.
    From the [[Options window - Advanced panel]] article:
    * '''Check my spelling as I type''': When this preference is enabled, Firefox will check your spelling and offer possible corrections as you type in web forms. Note that you may need to download a dictionary; to do so, right-click on any text field, enable spellchecking if necessary, and then use the provided Languages menu to download a dictionary.

  • Hi, i had backed up my data and then when i restored my phone with the restore backup option, all the photos, music where there but no apps. Al my apps are disappeared. Can you please tell me where are my apps backed up?

    Hi, i had backed up my data and then when i restored my phone with the restore backup option, all the photos, music where there but no apps. Al my apps are disappeared. Can you please tell me where are my apps backed up?

    Apps (like other synced media like music) are not included in the backup that iTunes makes. Thus, restoring from backup if the apps are not in the iTunes library there are no apps to restore to the iPod.
    Redownload the apps into your iTunes library.
    Downloading past purchases from the App Store, iBookstore, and iTunes Store
    And then restore from backup.
    Make sure that in iTunes>Preferences>Devices the box that say "Prevent iPods..." is checked otherwise when you connect the iPod to the computer the previous backup (with your app data) might be overwritten.

  • Plz tell me which sound file format uses minimum memory of a director file

    plz tell me which sound file format uses minimum memory of a director file. bcoz on adding sound the projector file becomes a large memory file .
    so i am confused that which file format should be used.

    saramultimedia,
    Are you certain that you're asking your question in the right place? This forum is about the Adobe Media Encoder application. Most of the people who answer questions here are familiar with the digital video and audio applications such as After Effects and Premiere Pro.
    If you have a question about Director, it's probably best to ask on the Director forum. But I see that you already know that, since you already have a thread on that forum to ask this question, and it got an answer:
    http://forums.adobe.com/thread/769569

  • Can you plz tell m how to write Design Strategy in the scenario IDoc-- File

    Hi,
    can any body plz tell me how to write Design strategy, Preprocessing logic and post processing logic in the scenario IDoc-->File.
        My idoc is:
                Message Type: ZMMIPORDCHG
                Basic Type  : ORDERS05.
    lookup's are available.

    Hi,
    take a look at this document for an IDOC to IDOC Scenario,
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/cdded790-0201-0010-6db8-beb9bb2b2660
    Use it as a template to design one side of the Interface and also take a look at this blog,
    /people/prateek.shah/blog/2005/06/08/introduction-to-idoc-xi-file-scenario-and-complete-walk-through-for-starters
    Regards,
    Bhavesh

  • AMD 3500 venice stuck at 2.5ghz. Tell me where im going wrong.K8N Diamond

    Im memtest stable(8hours) at 2.6ghz can run superpi  but lock up after about ten mins of prime95 any advice would be appreciated I cant seem to see where im going wrong.....
    Motherboard Model: K8N Diamond
    BIOS Revision:1.8   
    HT Speed:
    HT Multiplier:4
    Reference Clock:
    Memory Lock (1:1 if using none or default settings):
    CPU Multiplier:11
    CPU Speed:.2.6ghz
    CPU Voltage:1.497V
    RAM Voltage:2.8
    Chipset Voltage:1.65
    CPU Model Number:3500 venice
    CPU Stepping:
    CPU Week:
    RAM's rated speed:pc3200 2,2,2,8
    Relevant RAM Timings (such as 1T/2T and CAS latency):2.5,3,3,8 at 2t memory ratio is 1:1
    PSU Wattage:480
    Amps on 12 volt rail:28
    Prime95 Stable for 0 hours
    Memtest Stable :8 hours stable

    You should be working from known data point to unknown data points,  Suggest you first use recommended OEM voltages for CPU and RAM to figure out the MAX Prime 95 stable OC you can reach with your PC.  You can then slowly increase your Vcore and/or Vdimm to find out if it makes a difference or allows you a higher Prime 95 stable OC.
    You should also use other software such as 3Dmark XX, PC Mark XX, Everest, .... to compare the perforance of your different Prime 95 stable OC to figure out which one is best for your system.  The highest OC number will not necessarly be the setup that will provide you with the overall best performance.  Finding the OC sweetspot for any system is a slow and tedious process/
    Good luck,

  • Would someone please tell me where iTunes stores the backups of my iPod on my pc?

    I upgraded to IOS 5 on my iPod touch 3rd gen and all my claendar events were erased for the past year, I need this information, it was not synced from my computer, these were items, appointments, and events I entered by hand to my touch, and I need them back.  I am hoping to use the last backup before updating to IOS 5, but I have no idea where the file is on my computer, I have windows 7, and would really appreciate any help.  Thanks, Cindy

    If you go to Edit>Preferences>Devices, then you can see all the backups on your computer.
    More specifically, the files are located at: \Users\(username)\AppData\Roaming\Apple Computer\MobileSync\Backup\

  • I downloaded my apps from my iPad onto my new iMac, but i cannot find them, can you please tell me where I can access them. I have tried finder, and launchpad but to not avail

    I downloaded all my apps onto my new imac from my ipad, but i cannot access them , i dont know where they are. If I try to download them again, it says already downloaded. Can you help please.

    Hi Tykie,
    If you have transferred or Downloaded iPad Apps on your Mac you will find them in iTunes on your Mac....
    Open iTunes and in iTunes on left hand corner where Music is return you should see a drop down button next to it and once you click on that drop down button you will see Movies/Tv Shows/Applications, you need to select Applications here and you will find all your downloaded iPad Applications. And as they are made only for iOs devices that cannot be run on your Mac.
    Hope this will help you

  • Hi, could you please tell me where do I find iOS4.3 for downloading?

    Hello,
    Where do I find iOS4.3 for downloading to iPOD Touch?

    Why are you asking in the iPhone forums, if you want it for the iPod touch?
    The latest iOS is v4.3.2 and that is what you will get when checking for updates in iTunes with your iPod touch connected. That will start the download process.

  • Would you like tell me the "tp showbuffer sid pf= profile name format?

    Hi, could anybody tell me the format and the means of each column when running command  tp showbuffer <sid> pf=<profile name>) on the SAP ABAP Application Server ?
    Does the columns has any relationships with transport requests via the STMS TCode?

    Thank you,  Marcus.  I want to know all the transport information in the buffer,so i use tp showbuffer to check the buffer.
    The following is output after i execute the "tp showbuffer U06 pf=/usr/sap/trans/bin/TP_DOMAIN_U06.PFL" command
    [u06adm@tivu06 ~]$ tp showbuffer U06 pf=/usr/sap/trans/bin/TP_DOMAIN_U06.PFL
    This is tp version 340.15.06 (release 640, unicode enabled)
    Warning: Parameter DBHOST is no longer used.
    Warning: Parameter DBNAME is no longer used.
    U06 buffer:
    ITMK621_00004U      |                    | |has already been imported completely. \n\r
    TASK                |PROJECT             |P|CMD I |DD Im |Activ |MainI |MC Ac |ADO I |VersF |XPRA  |Gener |UMODE|TAGS
    ---------------+--+--+--+--+--+--+--+-+--
    ITMK621_00003U      |                    | |0004 |0004 |0004 |0004 |      |      |0000 |0004 |*0000 |I    |   
    TV2K900230          |                    | |0000 |0004 |0004 |0000 |      |      |0000 |0000 |*0008 |I    |   
    SAPKLZH640SR1NW04FF0|                    | |has already been imported completely.
    SAPKLZH640SR1NW04FF1|                    | |has already been imported completely.
    SAPKLZH640SR1NW04FF2|                    | |has already been imported completely.
    SAPKLZH640SR1NW04FF3|                    | |has already been imported completely.
    SAPKLZH640SR1NW04FF4|                    | |has already been imported completely.
    SAPKLZH640SR1NW04FF5|                    | |has already been imported completely.
    SAPKLZH640SR1NW04FF6|                    | |has already been imported completely.
    SAPKLZH640SR1NW04FF7|                    | |has already been imported completely.
    SAPKLZH640SR1NW04FF8|                    | |has already been imported completely.
    SAPKLZH640SR1NW04FF9|                    | |has already been imported completely.
    ITMK620_68293U      |                    | |0004 |0004 |0004 |0004 |      |      |0000 |0004 |*0000 |I    |   
    ITMK621_00005U      |                    | |0004 |0004 |0004 |0004 |      |      |0000 |0004 |*0000 |26I  |   
    ITMK621_00005_DELETE|                    | |0000 |0000 |0000 |0000 |      |      |0000 |0000 |*0004 |I    |   
    ITMK621_00006U      |                    | |0004 |0004 |0004 |0004 |      |      |0000 |0004 |*0000 |I    |   
    ITMK610_00133       |                    | |0004 |0004 |0004 |0004 |      |      |0000 |0000 |*0000 |I    |   
    ITMK610_DELETE      |                    | |1     |216   |216   |1     |4     |      |291   |17    |40    |     |   
    ITMK620_00047U      |                    | |has already been imported completely.
    ITMK620_10337U      |                    | |0004 |0004 |0004 |0004 |      |      |0000 |0000 |*0000 |I    |   
    ITMK620_00048U      |                    | |0004 |0004 |0004 |0004 |      |      |0000 |0000 |*0000 |I    |   
    that makes 10 transports to be imported.
    tp finished with return code: 0
    meaning:
      Everything OK
    I want to know the column means in the output as below:
    TASK                |PROJECT             |P|CMD I |DD Im |Activ |MainI |MC Ac |ADO I |VersF |XPRA  |Gener |UMODE|TAGS

  • Plz tell me where we use SP 17

    Hi every one,its first time came accross SP17.I am in BW3.5.Where do we use this SP 17.And wht it does in Bw.Can any one plz forwad some note r documents plz
    [email protected]
    Points will be give .thanks in advance

    Hi sam,
    SP 17 is service pack 17 in sap 3.5.
    service packs are installed by basis team.

  • Would you guys tell me what does it mean error 1015

    i have iphone 3G and i can put him a system so please guys help me what can i do it says error 1015

    It means your phone is jailbroken or was jailbroken in the past. It means you have no warranty and you can not get support, either through Apple or on these forums.

Maybe you are looking for

  • Connected to Domain but can't log in using Actived Directory Credentials

    Hey everyone.  I've been working on this issue for two weeks now, and I don't know what else to try.  I'm connected to my domain but cannot get my Macbooks to log in using Active Directory credenitals both through our wireless network, and hard wired

  • Mail.app continuos crash in Lion

    Mail was very stable. Then, just in Lion, everytime I create a folder in IMAP it does crash. Here is the log. Thanks for any help Process:         Mail [14502] Path:            /Applications/Mail.app/Contents/MacOS/Mail Identifier:      com.apple.mai

  • Database Table where MRP Run results are saved-Urgent

    Hi Gurus i need your help in identifying the database table where the MRP Run results are saved , this is needed for creating a custom report similar to MD45(but for entire plant) where i can look and pull the sum of all the receipts and issues, ATP

  • Import m4a file without metadata

    Using latest itunes 11.0.1. While it is possible to import a wav file without metadata it seems not to be impossible to import a m4a file without metadata. The wav file will be stored under "unknown .." folders and displayed in the itunes windows. No

  • Create custom AMS AMI for Amazon Web Services

    I'm using AMS 5.0.1 on AWS. I would like to create my own customized AMI - I would like to configure the 'stock' AMI to my liking and then create a new AMI from that customized server. I've tried some methods that I found to try to create a new AMI b