Printing report that has a parameter with multiple values crashes jvm

I am using BOE XI 4.0 as an unmanaged RAS.
I am able to preview a report that has a string discrete parameter that can have multiple values.  If I give it a single value.  It previews fine.  If I give it an empty string it prints all values which is fine.  If I give it two discrete values, it displays just those two.
However, if I try printing the report to a printer:
1 parameter value - prints fine.
2 parameter values - crashes jvm
empty string parameter value - crashes jvm
I would appreciate some direction on how to do this.  It works in crystal reports for eclipse.
The test jsp I am using is based off of the samples.  The print test jsp is the same as the preview test with the exception of the following code differences.:
preview report.jsp code
// Create a Viewer object
CrystalReportViewer viewer = new CrystalReportViewer();
// Set the report source for the  viewer to the ReportClientDocument's report source
viewer.setReportSource(clientDoc.getReportSource());
// Process the http request to view the report
viewer.processHttpRequest(request, response, getServletConfig().getServletContext(), out);
// Dispose of the viewer object
viewer.dispose();
print report jsp code
  PrintReportOptions printOptions = new PrintReportOptions();
  printOptions.setPrinterName("DELL");
  try {
      clientDoc.getPrintOutputController().printReport(printOptions);
  } catch (ReportSDKException ex1) {
      System.out.println("Message - " + ex1.getLocalizedMessage());
  } catch (Exception ex2) {
      System.out.println("Message - " + ex2.getLocalizedMessage());
  clientDoc.close();

I am using BOE XI 4.0 as an unmanaged RAS.
I am able to preview a report that has a string discrete parameter that can have multiple values.  If I give it a single value.  It previews fine.  If I give it an empty string it prints all values which is fine.  If I give it two discrete values, it displays just those two.
However, if I try printing the report to a printer:
1 parameter value - prints fine.
2 parameter values - crashes jvm
empty string parameter value - crashes jvm
I would appreciate some direction on how to do this.  It works in crystal reports for eclipse.
The test jsp I am using is based off of the samples.  The print test jsp is the same as the preview test with the exception of the following code differences.:
preview report.jsp code
// Create a Viewer object
CrystalReportViewer viewer = new CrystalReportViewer();
// Set the report source for the  viewer to the ReportClientDocument's report source
viewer.setReportSource(clientDoc.getReportSource());
// Process the http request to view the report
viewer.processHttpRequest(request, response, getServletConfig().getServletContext(), out);
// Dispose of the viewer object
viewer.dispose();
print report jsp code
  PrintReportOptions printOptions = new PrintReportOptions();
  printOptions.setPrinterName("DELL");
  try {
      clientDoc.getPrintOutputController().printReport(printOptions);
  } catch (ReportSDKException ex1) {
      System.out.println("Message - " + ex1.getLocalizedMessage());
  } catch (Exception ex2) {
      System.out.println("Message - " + ex2.getLocalizedMessage());
  clientDoc.close();

Similar Messages

  • How do i create a report that has drill-down with class?

    How do I create a report that has drill-down levels so that I can have summary information at the top level but then view specific records at a more detailed level?

    can i know ur email address.
    this is my other one coding
    but problem is very very slow when i 1 see my output
    TABLES: proj, coep.
    *&            TYPES DECLARATION                                        *
    *TYPES: BEGIN OF tb_coep,
             wtgbtr TYPE coep-wtgbtr,
          END OF tb_coep.
    DATA : int_proj TYPE proj OCCURS 0 WITH HEADER LINE.
    DATA : int_coep TYPE coep OCCURS 0 WITH HEADER LINE.
    DATA : gd_date(10). " FIELD TO STORE OUTPUT DATE
    TYPES : BEGIN OF t_date,
              year(4)  TYPE n,
              month(2) TYPE n,
              day(2)   TYPE n,
           END OF t_date.
    *&            SELECTION-SCREEN                                         *
    SELECTION-SCREEN BEGIN OF BLOCK b01 WITH FRAME TITLE text-001.
    SELECT-OPTIONS: so_pspnr FOR proj-pspnr OBLIGATORY.
    SELECTION-SCREEN ULINE.
    SELECTION-SCREEN END OF BLOCK b01.
    *&            TOP-OF-PAGE                                              *
    *&            fetch the data for the list                              *
    SELECT * INTO int_proj FROM proj where
             pspnr in so_pspnr.
    append int_proj.
    CLEAR int_proj.
    ENDSELECT.
    SELECT * into int_coep FROM coep WHERE
             wtgbtr in so_pspnr.
    append int_coep.
    CLEAR int_coep.
    ENDSELECT.
    LOOP at int_proj.
      write : / int_proj-pspnr, int_proj-post1.
    ENDLOOP.
    LOOP at int_coep.
      write : int_coep-wtgbtr.
    ENDLOOP.
    Edited by: Dickson on Jul 10, 2009 10:53 AM

  • Report script - using substitution variable with multiple values

    Hi All,
    Substitution variable with multiple values is not working correctly with Report scripts. Can you please let me know what is the syntax to assign multiple values to a sub variable using maxl:
    alter database samp.samp set variable 'ExtractQuarter' 'Q1,Q2,Q3,Q4';
    alter database Samp.Samp set variable 'ExtractQuarter' 'Q1:Q4';
    I tried both of the above but they are errored out with the below error:
    Error: 1001005 - Unknown Member [Q1:Q4] in Report.
    my requirement is different for both Actual and forecast data extract so i would like to make use of this variable to extract whole year data for Forecast and current quarter data for Actual with out duplicating the report scripts for both processes.
    Thanks,
    PRaveen

    Hi,
    Please refer following thread,
    range of months in report script?
    Hope it helps.
    Regards

  • How to make input parameter with multiple values in function module?

    Dear Experts,
    I want to add BUKRS as import field to a FM, what is the best way of of making it accept multiple enteries.
    Regards,
    Kiran

    hI kiran,
    The simple way is to create a data element & domain with value range where u provide set of fixed values or provide a check table to it.
    Use that data element in a table <ztable>.
    Code:
    Parameters:
          p_burks like <ztable>-dataelement.
    Call Function <function_name>
    exporting
    p_burks = p_burks,

  • Need to print a report that has two pages but based on condition

    Hi
    Can someone help me. I have a report that has 2 pages and I need print it but not boths pages at the sametime.
    I have code ( the conditions)like this
    If (A=Y) then
    print Page 2
    else print page 1
    end if;
    Note: Where would I put the code. Please
    Thank you

    Some folks have written JavaScripts for such needs, but for only 6 pages I would simply do the following. 1. Crop all pages to show 1 and 4. Then print to a new PDF (not optimum, but will do the job). 2. Repeat for 2 and 5. 3. Repeat for 3 and 6. Now open one of them in Acrobat and the use insert pages to insert the other two files. Now rearrange the pages using the Pages display and save. That should do the job.

  • Faxing a Crystal Report that has been exported to a PDF

    Hi. I am having a problem trying to fax a Crystal Report that has been exported to a PDF. I am using Windows XP Pro SP3, VB.Net 2008 and the Crystal Reports that came with it. The report exports to a PDF with no problem.  Generally, I can fax a document by putting <TOFAXNUM:12481234567><NOCOVER><DELETE><FINE> at the beginning of a document and send it to my fax printer.  The fax printer requires the <embedded code> to be in a printer font rather than a true type font. I put the embedded code as a report header on the report using Courier font, but it has a problem when it converts my font. I'm pretty sure the problem has to do with converting my font before it sends it to the printer.  Is there a solution in Crystal Reports to convert the font to printer font?

    I am using Table Adapters to filter my data from multiple Sql tables and processing the data using VB.net 2008. Once I have the data, I write it to temporary tables which are the data source for my Crystal Report. The Sql queries are not part of the Crystal Report designer. Within the VB.net , I export the report to a stream in PDF format. The VB.net code is done. I'm looking for a way to fax the report without having to re write my entire code. I don't think the report can be exported thru the designer the way I have my data sources set up.

  • How to print an excel file (2010 version) with multiple tabs into a pdf file with bookmarks (acrobat 9). I was able to do this easily using excel (2007 version).

    Recently I got a new laptop, with excel 2010 version and acrobat 9 standard.
    I could no longer print (save as) an excel file with multiple tabs into a pdf file with bookmarks.
    My old computer has excel 2007 version and acrobat 9 standard.
    Print an excel file into pdf with bookmarks was a piece of cake.
    Both machine has the same add-in -- Acrobat PDFMaker Office COM addin
    Thanks if anyone could help me with this.
        Tom

    You need to upgrade Acrobat to a newer version.
    On Thu, Oct 30, 2014 at 4:12 PM, excel-pdf-bookmarks <

  • We run an iMac 3.4 GHz I7 for our church worship service; we haven't upgraded to Mavericks because we heard about issues with multiple screens crashing.  Has this issue been resolved?  Thank you!

    We run an iMac 3.4 GHz I7 in our church worship service; we have front screens and a stage display monitor ; we haven't upgraded to Mavericks because we heard about issues with multiple screens crashing.  Has this issue been resolved?  Now that we are 2 upgrades behind, I'm getting little concerned.  Thank you!

    Oh, well that was a whole other kettle of fish:
    Oh the G4 I attempted to install iLife '08 before Lepoard was available. About the only thing that installed cleanly was iPhoto. I ended up reinstalling everything back to iLife '06, and then upgrading back to the current stable version of the iLife '06 version. I didn't attempt a reinstall until after I upgraded to Leopard.
    When I did reinstall, I made a iLife '06 folder, copied all iLife apps into it, and upgraded. Seemed to work, except for the part where iMovie gets left behind and iDVD is only mostly functional.
    When I installed on the other 2 machines, it was after installing Leopard and all upgrades. On those 2 machines, I didn't bother with the copy, I just moved everything to the iLife '06 folder I created, and did a fresh install.
    I didn't have to do anything with the iPhoto Libraries, that I can recall.
    I always do an upgrade, never an archive and install. I've never had a problem with this back to 10.1 or 10.2.

  • I have a 13.5 month old Ipad2, wifi only that has had problems with wifi com from the beginning. I am learning that this is not unusual for apple. Any suggestions?

    I have a 13.5 month old Ipad2, wifi only that has had problems with wifi com from the beginning. I am learning that this is not unusual for apple. Any suggestions?
    ronald1094

    Try #5.
    Some things to try first:
    1. Turn Off your iPad. Then turn Off (disconnect power cord for 30 seconds or longer) the wireless router & then back On. Now boot your iPad. Hopefully it will see the WiFi.
    2. Go to Settings>Wi-Fi and turn Off. Then while at Settings>Wi-Fi, turn back On and chose a Network.
    3. Change the channel on your wireless router (Auto or Channel 6 is best). Instructions at http://macintoshhowto.com/advanced/how-to-get-a-good-range-on-your-wireless-netw ork.html
    4. Go into your router security settings and change from WEP to WPA with AES.
    5.  Renew IP Address: (especially if you are droping internet connection)
        •    Launch Settings app
        •    Tap on Wi-Fi
        •    Tap on the blue arrow of the Wi-Fi network that you connect to from the list
        •    In the window that opens, tap on the Renew Lease button
    ~~~~~~~~~~~~~~~~~~~~~~~~~
    iOS 6 Wifi Problems/Fixes
    How To: Workaround iPad Wi-Fi Issues
    http://www.theipadfan.com/workaround-ipad-wifi-issues/
    Another Fix For iOS 6 WiFi Problems
    http://tabletcrunch.com/2012/10/27/fix-ios-6-wifi-problems-ssid/
    Wifi Doesn't Connect After Waking From Sleep - Sometimes increasing screen brightness prevents the failure to reconnect after waking from sleep. According to Apple, “If brightness is at lowest level, increase it by moving the slider to the right and set auto brightness to off.”
    Fix For iOS 6 WiFi Problems?
    http://tabletcrunch.com/2012/09/27/fix-ios-6-wifi-problems/
    Did iOS 6 Screw Your Wi-Fi? Here’s How to Fix It
    http://gizmodo.com/5944761/does-ios-6-have-a-wi+fi-bug
    How To Fix Wi-Fi Connectivity Issue After Upgrading To iOS 6
    http://www.iphonehacks.com/2012/09/fix-wi-fi-connectivity-issue-after-upgrading- to-ios-6.html
    iOS 6 iPad 3 wi-fi "connection fix" for netgear router
    http://www.youtube.com/watch?v=XsWS4ha-dn0
    Apple's iOS 6 Wi-Fi problems
    http://www.zdnet.com/apples-ios-6-wi-fi-problems-linger-on-7000004799/
    ~~~~~~~~~~~~~~~~~~~~~~~
    How to Fix a Poor Wi-Fi Signal on Your iPad
    http://ipad.about.com/od/iPad_Troubleshooting/a/How-To-Fix-A-Poor-Wi-Fi-Signal-O n-Your-iPad.htm
    iOS Troubleshooting Wi-Fi networks and connections  http://support.apple.com/kb/TS1398
    iPad: Issues connecting to Wi-Fi networks  http://support.apple.com/kb/ts3304
    WiFi Connecting/Troubleshooting http://www.apple.com/support/ipad/wifi/
    How to Fix: My iPad Won't Connect to WiFi
    http://ipad.about.com/od/iPad_Troubleshooting/ss/How-To-Fix-My-Ipad-Wont-Connect -To-Wi-Fi.htm
    iOS: Connecting to the Internet http://support.apple.com/kb/HT1695
    iOS: Recommended settings for Wi-Fi routers and access points  http://support.apple.com/kb/HT4199
    How to Quickly Fix iPad 3 Wi-Fi Reception Problems
    http://osxdaily.com/2012/03/21/fix-new-ipad-3-wi-fi-reception-problems/
    iPad Wi-Fi Problems: Comprehensive List of Fixes
    http://appletoolbox.com/2010/04/ipad-wi-fi-problems-comprehensive-list-of-fixes/
    Connect iPad to Wi-Fi (with troubleshooting info)
    http://thehowto.wikidot.com/wifi-connect-ipad
    Fix iPad Wifi Connection and Signal Issues  http://www.youtube.com/watch?v=uwWtIG5jUxE
    Fix Slow WiFi Issue https://discussions.apple.com/thread/2398063?start=60&tstart=0
    How To Fix iPhone, iPad, iPod Touch Wi-Fi Connectivity Issue http://tinyurl.com/7nvxbmz
    Unable to Connect After iOS Update - saw this solution on another post.
    https://discussions.apple.com/thread/4010130
    Note - When troubleshooting wifi connection problems, don't hold your iPad by hand. There have been a few reports that holding the iPad by hand, seems to attenuate the wifi signal.
    ~~~~~~~~~~~~~~~
    If any of the above solutions work, please post back what solved your problem. It will help others with the same problem.
     Cheers, Tom

  • Hello! I lost my iphone like a month ago, well I reported that phone as lost with my icloud account, now I got a new iphone and I would like to know if I can use that same icloud account with this new phone? The old one will stay reported?

    Hello! I lost my iphone like a month ago, well I reported that phone as lost with my icloud account, now I got a new iphone and I would like to know if I can use that same icloud account with this new phone? The old one will stay reported?

    Thank you.  The old one will stay reported?

  • Can I backup to an external hard drive that has been formatted with windows?

    Hi, I am fairly new to mac.  I was wondering if I can backup my mac book pro using time machine to an external hard drive that has been formatted with windows.  Time machine is saying it must erase to the hard drive in order to do a backup? Please help. 

    No it has to be formatted for OS X. Mac Extended (Journaled).

  • HT1212 how can i restore a ipod that has been disabled with a different computer

    how can i restore a ipod touch that has been disabled with a different computer

    Restore it in Recovery Mode: http://support.apple.com/kb/HT1808

  • How to create parameter with multiple selection in a query (SQ02) ?

    Hi Exports
    Do you know how to create parameter with multiple selection in a query (transaction SQ02)?
    thanks.

    Hi
    i know how to create user parameter at SQ02,
    the question is how to create multiple selection parameter?

  • I have loaded and reloaded Reader 9.  I cannot open a pfd document.      I can save it to desk top then open it via a drop down box that has a "open with Adobe Reader 9".  How can I avoid having to do this?

    I have loaded and reloaded Reader 9.  I cannot open a pfd document.      I can save it to desk top then open it via a drop down box that has a "open with Adobe Reader 9".  How can I avoid having to do this?

    Hello Michael,
    Thank you for your response.  My operating system is XP.  When I try to open a pfd document I just get a series of letters and symbols in a dialog box.  The top of the box says "select the encoding that makes your document readable".  I can choose Windows, MS-Dos, or other (there is a long list to choose from).  None seem to make a difference.  If I save the document to my desk top I can right click on it and choose an option "Open with  AdobeReader 9" and it opens fine.
    Thank you,
    Rick 
    New Edge Technologies
    6525 Peninsula Dr.
    Traverse City, MI 49686
    231.620.2521
    231.941.1284 (fax)
    [email protected]
    Date: Wed, 8 Jul 2009 06:22:51 -0600
    From: [email protected]
    To: [email protected]
    Subject: I have loaded and reloaded Reader 9.  I cannot open a pfd document.      I can save it to desk top then open it via a drop down box that has a "open with Adobe Reader 9".  How can I avoid having to do this?
    Hello:
    What operating system does your computer use? What happens when you attempt to open a PDF document rather than saving it first? Please include any/all error messages. Also, have you tried opening documents from other locations or just one in particular?
    Thanks,
         Michael
    >

  • SCCM 2012 Report that shows the users with specific software installed

    Hi,
    Is there a report in SCCM 2012 that shows the users with specific software installed? The report should show username, machine name and the software name. I am looking for a report that shows the users with the following softwares installed:
    1. Adobe(all versions)
    2. Photoshop(all versions)
    3. MS Project(all versions)
    4. MS Vision(all versions)
    Regards, Lorin Davis

    Take a look at the Asset Intelligence reports in the software section. You may get a list of computers with a product installed, and you might have to use that list to find the primary users based on user device affinity.

Maybe you are looking for

  • Auto PO - Free Item

    When we are creating SO, an auto PO is being triggered.  However, the free item in SO is not being copied to PO.  Instead it is being saved as a regular item. Any idea how to fix this? Thanks.

  • Arch is roughly twice as good as XP...

    ...when it comes to my laptop's battery life! It is fairly old and worn down and has a maximum capacity of 25%. In Windows it would last, literally, 10 minutes or less. I have been operating without the power cable plugged in for about 20 minutes now

  • Unable to create outlook profile manually

    Hello, I have two Exchange 2013 Servers with combined roles with DAG configured. I am not using any cas server load balancer. I created manual entries of AutoDiscover pointing to one of the Exchange server. Now I am able to create Outlook 2013 profil

  • Where can i download ios 5 from?

    I have an iphone 3GS which does not have IOS 5 on it. Where can I download IOS 5 from ? Thanks

  • How to secure publishing of live streams

    Hi, I have installed Flash Media Server on our server.  When I load up the application home page, I see the demo video of a train. Then I click on the "Interactive" tab on the right hand side.  I was SHOCKED to see that I can create a live stream fro