This week's book giveaway is in the Reactive Progamming forum.
We're giving away four copies of Reactive Streams in Java: Concurrency with RxJava, Reactor, and Akka Streams and have Adam Davis on-line!
See this thread for details.
Win a copy of Reactive Streams in Java: Concurrency with RxJava, Reactor, and Akka Streams this week in the Reactive Progamming forum!
    Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Liutauras Vilda
  • Junilu Lacar
  • Jeanne Boyarsky
  • Bear Bibeault
Sheriffs:
  • Knute Snortum
  • Tim Cooke
  • Devaka Cooray
Saloon Keepers:
  • Ron McLeod
  • Stephan van Hulst
  • Tim Moores
  • Tim Holloway
  • Carey Brown
Bartenders:
  • Piet Souris
  • Frits Walraven
  • Ganesh Patekar

Passing an Array to iReport

 
Ranch Hand
Posts: 1948
1
  • Mark post as helpful
  • send pies
  • Report post to moderator
I have an array I need to pass to iReport. I am using JSP to call the report as such:



The parameter on the iReport is "reportArray", Parameter Class Type: java.lang.String[][]

I get the following error in my console when I run this:

[8/31/09 8:07:32:275 CDT] 0000001f SystemOut O net.sf.jasperreports.engine.JRException: Incompatible [[Ljava.lang.String; value assigned to parameter reportArray in the MainScheduleMatrixReportV4 dataset.
 
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
  • Report post to moderator
hey steve..

even i am facing a similar issue..

i.e i am passing an Integer[] as parameter to the .jrxml file .
in my .jrxml i have
<parameter name="id" class="java.lang.Integer"/>

Now its throwing me exception
"JRException: Incompatible [Ljava.lang.Integer; value assigned to parameter"

i m not sure how to resolve this..
 
The problems of the world fade way as you eat a piece of pie. This tiny ad has never known problems:
Java file APIs (DOC, XLS, PDF, and many more)
https://products.aspose.com/total/java
    Bookmark Topic Watch Topic
  • New Topic
Boost this thread!