Jump to content
We've recently updated our Privacy Statement, available here ×

maartenstachanov.com

Members
  • Posts

    32
  • Joined

  • Last visited

 Content Type 

Profiles

Forum

Events

Featured Visualizations

Knowledge Base

Documentation (PDF Downloads)

Blog

Documentation (Test Area)

Documentation

Dr. Jaspersoft Webinar Series

Security Advisories

Downloads

Posts posted by maartenstachanov.com

  1. After I follow the installation procedure for the war file, the war file and the mysql-connector are in the deployments folder.

    When I start the jboss server (7) standalone mode I get the error below, does anybody know a work around?

    (I already filed a bug report)

    ----

    17:48:47,049 INFO [org.jboss.as.server.deployment] (MSC service thread 1-7) JBAS015876: Starting deployment of "jasperserver.war"
    17:48:53,295 WARN [org.jboss.as.server.deployment] (MSC service thread 1-7) Class Path entry avalon-framework-4.2.0.jar in "/home/maarten/apps/jboss7/standalone/deployments/jasperserver.war/WEB-INF/lib/fop-0.95.jar" does not point to a valid jar for a Class-Path reference.
    17:48:53,303 WARN [org.jboss.as.server.deployment] (MSC service thread 1-7) Class Path entry batik-all-1.7.jar in "/home/maarten/apps/jboss7/standalone/deployments/jasperserver.war/WEB-INF/lib/fop-0.95.jar" does not point to a valid jar for a Class-Path reference.
    17:48:53,312 WARN [org.jboss.as.server.deployment] (MSC service thread 1-7) Class Path entry commons-io-1.3.1.jar in "/home/maarten/apps/jboss7/standalone/deployments/jasperserver.war/WEB-INF/lib/fop-0.95.jar" does not point to a valid jar for a Class-Path reference.
    17:48:53,320 WARN [org.jboss.as.server.deployment] (MSC service thread 1-7) Class Path entry serializer-2.7.0.jar in "/home/maarten/apps/jboss7/standalone/deployments/jasperserver.war/WEB-INF/lib/fop-0.95.jar" does not point to a valid jar for a Class-Path reference.
    17:48:53,329 WARN [org.jboss.as.server.deployment] (MSC service thread 1-7) Class Path entry servlet-2.2.jar in "/home/maarten/apps/jboss7/standalone/deployments/jasperserver.war/WEB-INF/lib/fop-0.95.jar" does not point to a valid jar for a Class-Path reference.

  2. From the log I see that it says that the recipient or the sender is not correctly filled.

    solution: correct the validation regexp.

    Did you try sending using a single e-mail address (if I glance over the regexp I see it does not match a ",")

    Code:


    Post Edited by maartenalbers at 03/15/2012 10:54
  3. shivasgk
    Wrote:

    I am using below syntax for getting records when user will not enter anything in prompt input ,total information to be displayed

     

    select*from mysql.responsetable where Response=$P{Please select response} or 1=1;

     

    Please suggest me that would be great help

    You could replace "=" with "LIKE"  and have a default value for the $P{Please select response} = "%"

     

    Disadvantage people can also write stuff like "Lon%" which would result in other cities that start with "Lon" aswell.

  4. I have a subreport that returns a value (to a variable) and a group sum on that variable in a different variable:

     

    When the last detail band report returns null it sums correctly

    subreport v1 = 10

    subreport v1 = null

    subreport v1 = 20

    subreport v1 = null

    sum(subreport v1) = 30

     

    but when I have the last row not null it will not add it to the sum.

    subreport v1 = 10

    subreport v1 = null

    subreport v1 = null

    subreport v1 = 20

    I will get:

    sum(subreport v1) = 10

     

    How can I fix this?


    How to solve:

    1. Create a subtotal variable $V{subtotal} in the main report
      1. Set it to calculation type: System
      2. set the resettype to the correct value (report, group)
    2. Add another return value to the report (select the subreport, in the properties add a new Return Value)
    3. Assign the return value $V{v1} from the subreport to $V{subtotal}
    4. Calculation type: "Sum"

     

     

     



    Post Edited by maartenalbers at 02/17/2012 16:28
  5. wrong forum I think: this is the iReport forum.

    In iReport there is a icon right beside the preview button in the "designer" mode (three discs stacked with an arrow)

    [Design]

     [preview] | <database icon> and others...

    then you will get the "harsh" sql and there is a button "Query designer"



    Post Edited by maartenalbers at 02/13/2012 10:56
  6. in the sub report

    - create a variable V set to the value you want to return

    - remember the type and name of that variable

     

    in the main report

    - create a variable V2 with the same type of V in the sub report.

    - select the subreport in the main report and go to the properties of the subreport

    - at the bottom there is something called Return Values click [...] button

    - click "add"

    - Subreport variable: type name of V

    - Local destination var: select V2

    - Calculation type: system

    ok

  7. I create the report, and the subreport correct: if I press preview in the iReport it works correctly.

    But when I upload it to the server using the server repository it fails: I don't get the dialog "replace this by that " (${dir} +subreport.jasper" with "repo:subreport.jrxml" instead I get an exception displaying: "Message: (Null)"

    I even tried manually inserting the repo:subreport.jrxml in the main jrxml.

    I've tried the following:

    1. create subreport
    2. create main report
    3. open repository
    4. go to folder
    5. "add new JasperReport"
    6. select the main report
    7. select database source on the repository that works (verified by using a simple report)
    8. uploading starts <note: here I would expect the dialog to replace the paths>
    9. "Message: (NULL)"
    10. refresh repository (Main.jrxml is there, but not the subreport)
    11. add the subreport.jrxml in the resources folder
    12. download Main.jrxml edit the jrxml variables to refer to: "repo:subreport.jrxml" and upload again
    13. run report: exception is displaying that it cannot find the resource "path/to/subreport.jasper".

    I also tried to edit the mainreport.jrxml to have the right "repo:subreport.jrxml" and upload the subreport manually but that also fails.

    Greets,

    Maarten

×
×
  • Create New...