IReports
We are using ireports in our web project. When I am calling a report with subreport in it , report is coming with out the sub report. Any body who can help me to solve this problem.
Even I am also new to this ireports. We are using this for the last 2 months. When the compilation is being done to the bcm extension, it takes only the master reports jrxml and jasper files. Can anyone tell me how to take the subreports also into this master's bcm file?
Similar Messages
-
How to open my Ireport in new browser tab window
hi
I'm using Jdev v 11.1.2.3.0
Isucced in conneting and calling (ireport) generated report from my adf application in pdf file format
All what I want to do now is to call or open the report in browser tab window
I can call it in the same tab window
using this line code
response.setHeader("Cache-Control", "max-age=0");
or
make attachment download
using this line code
response.setHeader("Content-Disposition", "attachment; filename=\"report.pdf\"");
please help me in this last setp
here is my code to call ireport
after adding nessesary jar files and Datasource in wedlojic
maybe it help others
============
import java.io.ByteArrayOutputStream;
import java.io.InputStream;
import java.sql.Connection;
import java.util.HashMap;
import java.util.Map;
import javax.faces.context.FacesContext;
import javax.naming.Context;
import javax.naming.InitialContext;
import javax.servlet.ServletContext;
import javax.servlet.ServletOutputStream;
import javax.servlet.http.HttpServletResponse;
import javax.sql.DataSource;
import net.sf.jasperreports.engine.JasperExportManager;
import net.sf.jasperreports.engine.JasperFillManager;
import net.sf.jasperreports.engine.JasperPrint;
import net.sf.jasperreports.engine.JasperReport;
import net.sf.jasperreports.engine.type.WhenNoDataTypeEnum;
import net.sf.jasperreports.engine.util.JRLoader;
import oracle.adf.model.BindingContext;
import oracle.adf.view.rich.component.rich.input.RichInputText;
import oracle.binding.BindingContainer;
//import oracle.adf.model.binding.DCIteratorBinding;
public class mainNew {
private RichInputText copyFrom;
private RichInputText copyTo;
public mainNew() {
public void setCopyFrom(RichInputText copyFrom) {
this.copyFrom = copyFrom;
public RichInputText getCopyFrom() {
return copyFrom;
public void setCopyTo(RichInputText copyTo) {
this.copyTo = copyTo;
public RichInputText getCopyTo() {
return copyTo;
public String cb3_action() {
String s =(String)copyFrom.getValue();
String d =(String)copyTo.getValue();
// copyTo.setValue(s);
// DCIteratorBinding empIter = (DCIteratorBinding) getBindings().get("Employees1Iterator");
// String empId = empIter.getCurrentRow().getAttribute("DepartmentId").toString();
Map m = new HashMap();
System.out.println(s) ;
System.out.println(d) ;
// m.put("eployeeId", copyFrom.getValue() );
if (s!=null) {
m.put("whr", "Where department_id ="+s); }
if (d!=null) {
m.put("whr", "Where employee_id= "+d);}
if (s != null & d==null)
{ m.put("whr", "Where department_id ="+s);
if (s==null & d!=null) {
m.put("whr", "Where employee_id= "+d);}
if (s!=null & d!=null) {
m.put("whr", "Where department_id ="+s +" and employee_id="+d);}
if (s==null & d==null) {
m.put("whr", "Where 1=2");}
try
// runReport("empRep2.jasper", m);
runReport("empsDyn.jasper", m);
catch (Exception e)
return null;
public BindingContainer getBindings()
return BindingContext.getCurrent().getCurrentBindingsEntry();
public Connection getDataSourceConnection(String dataSourceName)
throws Exception
Context ctx = new InitialContext();
DataSource ds = (DataSource)ctx.lookup(dataSourceName);
return ds.getConnection();
private Connection getConnection() throws Exception
return getDataSourceConnection("hrDS");
public ServletContext getContext()
return (ServletContext)getFacesContext().getExternalContext().getContext();
public HttpServletResponse getResponse()
return (HttpServletResponse)getFacesContext().getExternalContext().getResponse();
public static FacesContext getFacesContext()
return FacesContext.getCurrentInstance();
public void runReport(String repPath, java.util.Map param) throws Exception
Connection conn = null;
try
HttpServletResponse response = getResponse();
ServletOutputStream out = response.getOutputStream();
/// response.setHeader("Cache-Control", "max-age=0"); // opens in same page
response.setHeader("Content-Disposition", "attachment; filename=\"report.pdf\""); // genreat adownload file
// response.setHeader("Content-Disposition", "inline; filename=\"" + "Report.pdf\"");//opens in same page
response.setContentType("application/pdf");
ServletContext context = getContext();
InputStream fs = context.getResourceAsStream("/reports/" + repPath);
JasperReport template = (JasperReport) JRLoader.loadObject(fs);
template.setWhenNoDataType(WhenNoDataTypeEnum.ALL_SECTIONS_NO_DETAIL);
conn = getConnection();
JasperPrint print = JasperFillManager.fillReport(template, param, conn);
ByteArrayOutputStream baos = new ByteArrayOutputStream();
JasperExportManager.exportReportToPdfStream(print, baos);
out.write(baos.toByteArray());
out.flush();
out.close();
FacesContext.getCurrentInstance().responseComplete();
catch (Exception jex)
jex.printStackTrace();
finally
close(conn);
public void close(Connection con)
if (con != null)
try
con.close();
catch (Exception e)
}One solution would be to generate the report via an servlet which you then call with an af:golink with an target frame set to blank.
For a sample how to do this check out http://tompeez.wordpress.com/2011/12/16/jdev11-1-2-1-0-handling-imagesfiles-in-adf-part-3/
Timo -
Trying to call Jasper iReport through portlet & getting error
Hi,
I have written the following code which is linked to a button in my portlet.
package com.ext.portlet.drpdwn.action;
import com.liferay.portal.struts.PortletAction;
import com.liferay.portal.util.Constants;
import javax.portlet.WindowState;
import javax.servlet.jsp.PageContext;
import javax.portlet.ActionRequest;
import javax.portlet.ActionResponse;
import javax.portlet.PortletConfig;
import javax.portlet.RenderRequest;
import javax.portlet.RenderResponse;
import org.apache.struts.action.ActionForm;
import org.apache.struts.action.ActionForward;
import org.apache.struts.action.ActionMapping;
import java.io.IOException;
import java.io.PrintWriter;
import java.io.StringWriter;
import java.util.HashMap;
import java.util.Map;
import java.sql.*;
import javax.portlet.PortletException;
import net.sf.jasperreports.engine.*;
import net.sf.jasperreports.engine.design.JasperDesign;
import net.sf.jasperreports.engine.xml.JRXmlLoader;
import net.sf.jasperreports.engine.export.*;
public class QualityReportAction extends PortletAction
public void processAction(ActionMapping mapping, ActionForm form,PortletConfig config,ActionRequest req, ActionResponse res)
throws Exception
String typeofreport_val = req.getParameter("types_of_reports").trim();
System.out.println("Report Name is:" +typeofreport_val);
JasperReport jasperReport;
JasperPrint jasperPrint;
JasperDesign jasperDesign;
Connection connection = null;
if ( null == typeofreport_val || "".equals("typeofreport_val"))
setForward(req,"portlet.ext.drpdwn.error");
else
try
Class.forName("org.postgresql.Driver");
String url = "jdbc:postgresql://10.10.33.39:5432/globus_db?user=postgres&password=marines@123";
connection = DriverManager.getConnection(url);
// load JasperDesign from XML and compile it into JasperReport
jasperDesign = JRXmlLoader.load("C:/testRep/CCQR.jrxml");
jasperReport = JasperCompileManager.compileReport(jasperDesign);
// fill JasperPrint using fillReport() method
jasperPrint = JasperFillManager.fillReport(jasperReport,null,connection);
JasperExportManager.exportReportToPdfFile(jasperPrint,"C:/testRep/ccqr.pdf");
catch (SQLException ex)
setForward(req,"portlet.ext.drpdwn.error");
System.out.println("-------------------------------------------");
while (ex != null)
ex.printStackTrace();
ex = ex.getNextException();
System.out.println("-------------------------------------------");
catch(Exception e)
System.out.println("-------------------------------------------");
System.out.println("Exception is --> "+e);
System.out.println("-------------------------------------------");
setForward(req,"portlet.ext.drpdwn.success");
public ActionForward render(ActionMapping mapping,ActionForm form,PortletConfig config, RenderRequest req,RenderResponse res) throws Exception
if (getForward(req) != null && !getForward(req).equals(""))
return mapping.findForward(getForward(req));
else
return
mapping.findForward("portlet.ext.drpdwn.view");
}When I try to run this code I get the following error:
exception javax.servlet.ServletException: Servlet execution threw an exception
com.liferay.filters.secure.SecureFilter.doFilter(SecureFilter.java:144)
com.liferay.portal.servlet.filters.virtualhost.VirtualHostFilter.doFilter(VirtualHostFilter.java:136)
com.liferay.portal.servlet.FriendlyURLServlet.service(FriendlyURLServlet.java:126)
javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
com.liferay.filters.strip.StripFilter.doFilter(StripFilter.java:95)
com.liferay.filters.secure.SecureFilter.doFilter(SecureFilter.java:144)
com.liferay.filters.compression.CompressionFilter.doFilter(CompressionFilter.java:116)
com.liferay.filters.doubleclick.DoubleClickFilter.doFilter(DoubleClickFilter.java:138)
com.liferay.portal.servlet.filters.layoutcache.LayoutCacheFilter.doFilter(LayoutCacheFilter.java:170)
com.liferay.portal.servlet.filters.autologin.AutoLoginFilter.doFilter(AutoLoginFilter.java:106)
com.liferay.portal.servlet.filters.virtualhost.VirtualHostFilter.doFilter(VirtualHostFilter.java:136)
root cause java.lang.NoClassDefFoundError: net/sf/jasperreports/engine/xml/JRXmlLoader com.ext.portlet.drpdwn.action.QualityReportAction.processAction(QualityReportAction.java:59)I have the following necessary files in my class path:
itext-1.3.1.jar
iReport.jar
commons-logging-1.0.2.jar
commons-javaflow-20060411.jar
commons-digester-1.7.jar
commons-collections-2.1.jar
commons-beanutils-1.7.jar
jasperreports-2.0.2.jar
jdt-compiler-3.1.1.jar
log4j-1.2.15.jar
xercesImpl.jar Please suggest me where I am going wrong.
Thanks & Regards
Saurabh.
Edited by: Saurabh.J on Nov 27, 2007 2:33 PMDisable your anti-virus, install the update, turn you anti-virus back on
-
Creating a Calender report in iReport/Jasper
I've searched the forum and see several threads about creating a calendar report using jasper/iReport but no samples or hints or best way to accomplish it.
Does anyone have a sample or an idea for the best approach or point me in the right direction?Hi,
There really isn't any problem with creating reports directly on production. It is often done since development and quality assurance environments often don't have the correct data to really test a query while creating it. It is however a good idea to allways have a copy on dev or qas in case you want to edit the query while it is already in use or just in case someone deletes it by mistake. We often create reports on production and, once finished, transport it to qas for this purpose.
Hope it helps.
Kind regards,
Alex -
How to pass the parameter of a stored procedure to iReport
Hi... i don't know how to pass the parameter of the stored procedure to the iReport.
In the Report Query, i tried
1. sp_storedprocedure ' value'
2. sp_storedprocedure +''''+$P{parameter}+''''+
3. sp_storedprocedure +$V+$P{parameter}++$F($F is a variable having a value of ' (a single quote))may you enlighten us please? thank youFor M$ SQL server I find that it only works when U use the fully qualified name...
e.g. catalod.dbo.my_procedure_name 'variable'
My full query in the Report Query window is something like this:
EXEC arc.dbo.jasper_Invoice 1000
Note that you may find that selecting from VIEWS / TABLES fails for no apparent reason and iReport will prompt you with the usual very unhelpful (we have what we "pay" for) prompt, stating that "The document is empty".
To work around this issue, where a statement like "SELECT * FROM arc.dbo.acc_invoices WHERE Invoice_id=1000" does not work, simply create a PROC, something like:
CREATE PROC jasper_MyProc (@my_rec_id integer) AS
SELECT * FROM arc.dbo.acc_invoices WHERE Invoice_id= @my_rec_id integer
...to wrap your SELECT statement, then call the PROC
Edited by: Sylinsr on Apr 22, 2008 4:23 PM -
Custom report-problm in implementng IReport
hi all,
Im creating a custom report for reporting empty files..
in the code i implements IReport..but i got the error as
IReport not a valid super interface..can any one tell me a remedy for this one..
Regards,VinothVinoth,
can you post here the exact error message? Also, please check that you have imported the correct IReport interface from com.sapportals.wcm.service.reporting.
Best Regards,
Stefan -
Change query string in ireport xml file?
greetings all
iam newbie to xml
first i want to add the xml file to a packge named first,how to do that?
second i want to change the query string to be
"select * from report where month= "+textfield.getText()
here's the code:
<?xml version="1.0" encoding="UTF-8" ?>
<!-- Created with iReport - A designer for JasperReports -->
<!DOCTYPE jasperReport PUBLIC "//JasperReports//DTD Report Design//EN" "http://jasperreports.sourceforge.net/dtds/jasperreport.dtd">
<jasperReport
name="Untitled_report_2"
columnCount="1"
printOrder="Vertical"
orientation="Portrait"
pageWidth="595"
pageHeight="842"
columnWidth="535"
columnSpacing="0"
leftMargin="30"
rightMargin="30"
topMargin="20"
bottomMargin="20"
whenNoDataType="NoPages"
isTitleNewPage="false"
isSummaryNewPage="false">
<property name="ireport.scriptlethandling" value="0" />
<property name="ireport.encoding" value="UTF-8" />
<import value="java.util.*" />
<import value="net.sf.jasperreports.engine.*" />
<import value="net.sf.jasperreports.engine.data.*" />
<queryString><![CDATA[SELECT * FROM report]]></queryString>
<field name="category" class="java.lang.String"/>
<field name="values" class="java.lang.Integer"/>
<field name="series" class="java.lang.String"/>
<background>
<band height="0" isSplitAllowed="true" >
</band>
</background>
<title>
<band height="0" isSplitAllowed="true" >
</band>
</title>
<pageHeader>
<band height="0" isSplitAllowed="true" >
</band>
</pageHeader>
<columnHeader>
<band height="0" isSplitAllowed="true" >
</band>
</columnHeader>
<detail>
<band height="201" isSplitAllowed="true" >
<stackedBar3DChart>
<chart hyperlinkTarget="Self" >
<reportElement
x="32"
y="21"
width="394"
height="144"
key="element-1"/>
<box></box>
<chartLegend textColor="#000000" backgroundColor="#FFFFFF" >
</chartLegend>
</chart>
<categoryDataset>
<dataset >
</dataset>
<categorySeries>
<seriesExpression><![CDATA[$F{series}]]></seriesExpression>
<categoryExpression><![CDATA[$F{category}]]></categoryExpression>
<valueExpression><![CDATA[$F{values}]]></valueExpression>
<itemHyperlink >
</itemHyperlink>
</categorySeries>
</categoryDataset>
<bar3DPlot >
<plot />
<categoryAxisFormat>
<axisFormat >
</axisFormat>
</categoryAxisFormat>
<valueAxisFormat>
<axisFormat >
</axisFormat>
</valueAxisFormat>
</bar3DPlot>
</stackedBar3DChart>
</band>
</detail>
<columnFooter>
<band height="3" isSplitAllowed="true" >
</band>
</columnFooter>
<pageFooter>
<band height="0" isSplitAllowed="true" >
</band>
</pageFooter>
<summary>
<band height="0" isSplitAllowed="true" >
</band>
</summary>
</jasperReport>the xml file
<?xml version="1.0" encoding="UTF-8" ?>
<!-- Created with iReport - A designer for JasperReports -->
<!DOCTYPE jasperReport PUBLIC "//JasperReports//DTD Report Design//EN" "http://jasperreports.sourceforge.net/dtds/jasperreport.dtd">
<jasperReport
name="test"
columnCount="1"
printOrder="Vertical"
orientation="Portrait"
pageWidth="595"
pageHeight="842"
columnWidth="535"
columnSpacing="0"
leftMargin="30"
rightMargin="30"
topMargin="20"
bottomMargin="20"
whenNoDataType="NoPages"
isTitleNewPage="false"
isSummaryNewPage="false">
<property name="ireport.scriptlethandling" value="0" />
<property name="ireport.encoding" value="UTF-8" />
<import value="java.util.*" />
<import value="net.sf.jasperreports.engine.*" />
<import value="net.sf.jasperreports.engine.data.*" />
<queryString><![CDATA[SELECT * FROM report WHERE category BETWEEN 'week1' AND 'week4']]></queryString>
<field name="category" class="java.lang.String"/>
<field name="values" class="java.lang.Integer"/>
<field name="series" class="java.lang.String"/>
<background>
<band height="0" isSplitAllowed="true" >
</band>
</background>
<title>
<band height="50" isSplitAllowed="true" >
<staticText>
<reportElement
x="158"
y="7"
width="183"
height="37"
key="staticText-1"/>
<box></box>
<textElement>
<font size="14"/>
</textElement>
<text><![CDATA[ Report]]></text>
</staticText>
</band>
</title>
<pageHeader>
<band height="50" isSplitAllowed="true" >
</band>
</pageHeader>
<columnHeader>
<band height="30" isSplitAllowed="true" >
</band>
</columnHeader>
<detail>
<band height="4" isSplitAllowed="true" >
</band>
</detail>
<columnFooter>
<band height="2" isSplitAllowed="true" >
</band>
</columnFooter>
<pageFooter>
<band height="0" isSplitAllowed="true" >
</band>
</pageFooter>
<summary>
<band height="194" isSplitAllowed="true" >
<stackedBar3DChart>
<chart hyperlinkTarget="Self" >
<reportElement
x="49"
y="-6"
width="369"
height="200"
key="element-1"/>
<box></box>
<chartLegend textColor="#000000" backgroundColor="#FFFFFF" >
</chartLegend>
</chart>
<categoryDataset>
<dataset >
</dataset>
<categorySeries>
<seriesExpression><![CDATA[$F{series}]]></seriesExpression>
<categoryExpression><![CDATA[$F{category}]]></categoryExpression>
<valueExpression><![CDATA[$F{values}]]></valueExpression>
<itemHyperlink >
</itemHyperlink>
</categorySeries>
</categoryDataset>
<bar3DPlot >
<plot />
<categoryAxisFormat>
<axisFormat >
</axisFormat>
</categoryAxisFormat>
<valueAxisFormat>
<axisFormat >
</axisFormat>
</valueAxisFormat>
</bar3DPlot>
</stackedBar3DChart>
</band>
</summary>
</jasperReport>the java code:
import java.sql.*;
import net.sf.jasperreports.view.JasperViewer;
import net.sf.jasperreports.engine.xml.JRXmlLoader;
import net.sf.jasperreports.engine.JasperCompileManager;
import net.sf.jasperreports.engine.JasperFillManager;
import net.sf.jasperreports.engine.JasperPrint;
import net.sf.jasperreports.engine.design.JasperDesign;
import net.sf.jasperreports.engine.JasperReport;
import java.io.OutputStream;
import javax.swing.*;
import java.awt.*;
import java.awt.event.*;
class ReportDriver {
public static void createAndShowGUI(){
Object[]obj={"1","2"};
JComboBox combo=new JComboBox(obj);
JFrame frame=new JFrame("Test");
JButton button=new JButton("Show Report");
frame.setLayout(new FlowLayout());
frame.setLocationRelativeTo(null);
frame.add(combo);
frame.add(button);
frame.setSize(150,100);
frame.setVisible(true);
button.addActionListener(new ActionListener(){
public void actionPerformed(ActionEvent e){
show_report();
public static void show_report(){
try{
Class.forName("com.mysql.jdbc.Driver");
Connection c = DriverManager.getConnection("jdbc:mysql://localhost/library", "root", "");
}catch(Exception ex) {ex.printStackTrace();}
try{
JasperDesign jasperDesign = JRXmlLoader.load("F:\\Program Files\\Xinox Software\\JCreatorV4\\MyProjects\\chart2\\src\\report.xml");
JasperReport jasperReport = JasperCompileManager.compileReport(jasperDesign);
Connection c = DriverManager.getConnection("jdbc:mysql://localhost/library", "root", "");
JasperPrint jasperPrint = JasperFillManager.fillReport(jasperReport, null, c);
JasperViewer.viewReport(jasperPrint);
}catch(Exception ex) {
String connectMsg = "Could not create the report " + ex.getMessage() + " " + ex.getLocalizedMessage();
System.out.println(connectMsg);
public static void main(String[] args) {
createAndShowGUI();
}the problem is i want when the user selects 2 from the combobox and presses the button
the where clause in the xml file is changed to BETWEEN 'week5' AND 'week8',how to do that? -
I have designed a report using IReport tool with some text as BOLD, which generates report in PDF format. when i open the file with Adobe Reader IX it opens perfectly.
but the problem is when i open the same file in mozilla add-on "Adobe Reader 11.0.3.37" and in previous versions it does not displaying the bold fonts.Is there a non-confidential example of this PDF that we could view?
-
Error when running ireport xml on apex using pL-JRxml2pdf
Hi,
I have created a report and it runs successfully on Jasper ireport but when I copied the xml to the apex in pL-JRxml2pdf and tried to preview it it gave me the error below:
ORA-06502: PL/SQL: numeric or value error: dbms_sql.describe_columns overflow, col_name_len=35. Use describe_columns2
Please assist.Mr.Andreas I've already sent my question before to post it there but no one replied to me.
the xml which is working fine on ireport:
<?xml version="1.0" encoding="UTF-8"?>
<jasperReport xmlns="http://jasperreports.sourceforge.net/jasperreports" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://jasperreports.sourceforge.net/jasperreports http://jasperreports.sourceforge.net/xsd/jasperreport.xsd" name="pharmacy2014" language="groovy" pageWidth="595" pageHeight="842" columnWidth="555" leftMargin="20" rightMargin="20" topMargin="20" bottomMargin="20" uuid="dd1428eb-8306-47c8-881c-1b53b576b8b6">
<property name="ireport.zoom" value="1.0"/>
<property name="ireport.x" value="0"/>
<property name="ireport.y" value="60"/>
<queryString>
<![CDATA[select pare.mmr,pare.FIRSTNAME||' '||pare.FAMILYNAME,ep.EPISODEID,ep.admission,ep.DISCHARGE,pade.packagename,inor.orderid,inor.QUANTITY,orit.DESCRIPTION,orit.PRICE
from PATIENTSREGISTRATION pare inner join EPISODE ep on (pare.mmr = ep.mmr)
full join PACKAGEDEAL pade on (pade.PACKAGEID = ep.PACKAGE)
full join INPATIENTORDER inor on(inor.EPISODEID = ep.EPISODEID)
full join ORDERITEMS orit on (orit.ORDERID = inor.ORDERID)
where ep.episodeid=2046]]>
</queryString>
<field name="MMR" class="java.math.BigDecimal"/>
<field name="PARE.FIRSTNAME||''||PARE.FAMILYNAME" class="java.lang.String"/>
<field name="EPISODEID" class="java.math.BigDecimal"/>
<field name="ADMISSION" class="java.sql.Timestamp"/>
<field name="DISCHARGE" class="java.sql.Timestamp"/>
<field name="PACKAGENAME" class="java.lang.String"/>
<field name="ORDERID" class="java.lang.String"/>
<field name="QUANTITY" class="java.math.BigDecimal"/>
<field name="DESCRIPTION" class="java.lang.String"/>
<field name="PRICE" class="java.math.BigDecimal"/>
<variable name="TotalPerItem" class="java.lang.Double">
<variableExpression><![CDATA[$F{QUANTITY}*$F{PRICE}]]></variableExpression>
</variable>
<variable name="TotalDue" class="java.lang.Double" calculation="Sum">
<variableExpression><![CDATA[$V{TotalPerItem}]]></variableExpression>
</variable>
<background>
<band splitType="Stretch"/>
</background>
<title>
<band height="126" splitType="Stretch">
<staticText>
<reportElement uuid="33d865d1-eefd-4151-816e-5a43563072ed" x="101" y="0" width="351" height="48"/>
<textElement textAlignment="Center">
<font fontName="Monospaced" size="28" isBold="true" isUnderline="false"/>
</textElement>
<text><![CDATA[Pharmacy Report]]></text>
</staticText>
<staticText>
<reportElement uuid="abc684c0-fdcc-4bda-b87c-46f2ec871fe1" x="0" y="83" width="87" height="20"/>
<textElement/>
<text><![CDATA[Report Date:]]></text>
</staticText>
<staticText>
<reportElement uuid="a1ec3467-dbda-415a-80f3-597d422fb6fb" x="0" y="103" width="87" height="20"/>
<textElement/>
<text><![CDATA[Admission Date:]]></text>
</staticText>
<staticText>
<reportElement uuid="d3cf4575-0255-4a57-ba6f-d8fe73205b1c" x="351" y="82" width="87" height="20"/>
<textElement/>
<text><![CDATA[Discharge Date:]]></text>
</staticText>
<textField pattern="dd/MM/yyyy h.mm a">
<reportElement uuid="9f649db1-8fee-4aa5-a719-2b6930f3b434" x="87" y="84" width="100" height="20"/>
<textElement/>
<textFieldExpression><![CDATA[new java.util.Date()]]></textFieldExpression>
</textField>
<textField>
<reportElement uuid="64de1f0d-f5ef-4142-bdde-42926376ad3c" x="87" y="104" width="100" height="20"/>
<textElement/>
<textFieldExpression><![CDATA[$F{ADMISSION}]]></textFieldExpression>
</textField>
<textField>
<reportElement uuid="f4f3d6cb-7442-486b-8738-5c427e819909" x="438" y="82" width="100" height="20"/>
<textElement/>
<textFieldExpression><![CDATA[$F{DISCHARGE}]]></textFieldExpression>
</textField>
</band>
</title>
<pageHeader>
<band height="55" splitType="Stretch">
<staticText>
<reportElement uuid="e420994a-235d-4530-8360-e876c8ae40b6" x="0" y="8" width="100" height="20"/>
<textElement>
<font size="10" isBold="true" isItalic="false"/>
</textElement>
<text><![CDATA[MMR NO.]]></text>
</staticText>
<staticText>
<reportElement uuid="1978f81a-f9a5-4675-8628-7c0ceb48e9d2" x="0" y="29" width="100" height="20"/>
<textElement>
<font size="10" isBold="true" isItalic="false"/>
</textElement>
<text><![CDATA[PATIENT NAME]]></text>
</staticText>
<textField>
<reportElement uuid="ae113a7d-51c3-49a2-b79c-94d57e078f7f" x="101" y="9" width="285" height="20"/>
<textElement/>
<textFieldExpression><![CDATA[$F{MMR}]]></textFieldExpression>
</textField>
<textField>
<reportElement uuid="fbdf24b3-4dd4-4c8b-b766-2d5f5fb65f84" x="100" y="29" width="288" height="20"/>
<textElement/>
<textFieldExpression><![CDATA[$F{PARE.FIRSTNAME||''||PARE.FAMILYNAME}]]></textFieldExpression>
</textField>
<line>
<reportElement uuid="0a11e615-f74d-404d-8a8c-542db62ea786" x="1" y="49" width="554" height="1"/>
</line>
</band>
</pageHeader>
<columnHeader>
<band height="50" splitType="Stretch">
<staticText>
<reportElement uuid="c4d62eda-bc1d-42cf-888f-60da313ed021" x="469" y="30" width="64" height="19" forecolor="#000000" backcolor="#CCCCCC"/>
<textElement textAlignment="Left">
<font isBold="true" isUnderline="true"/>
</textElement>
<text><![CDATA[Total]]></text>
</staticText>
<staticText>
<reportElement uuid="d9df5da5-eab5-4c65-9265-9133f9e720ab" x="305" y="31" width="100" height="19" forecolor="#000000" backcolor="#CCCCCC"/>
<textElement textAlignment="Left">
<font isBold="true" isUnderline="true"/>
</textElement>
<text><![CDATA[QTY]]></text>
</staticText>
<staticText>
<reportElement uuid="01dc4561-b521-4ab9-aa23-bdc9bc4ff870" x="0" y="30" width="212" height="20" forecolor="#000000" backcolor="#CCCCCC"/>
<textElement textAlignment="Left">
<font isBold="true" isUnderline="true"/>
</textElement>
<text><![CDATA[Description]]></text>
</staticText>
<staticText>
<reportElement uuid="3bd3288c-40d9-4ab3-abab-19196f6112c5" x="405" y="31" width="64" height="19" forecolor="#000000" backcolor="#CCCCCC"/>
<textElement textAlignment="Left">
<font isBold="true" isUnderline="true"/>
</textElement>
<text><![CDATA[Price]]></text>
</staticText>
<staticText>
<reportElement uuid="be12f0d4-1cfd-48ac-b207-b58cd22267d1" x="0" y="0" width="79" height="20" forecolor="#000000" backcolor="#CCCCCC"/>
<textElement textAlignment="Left">
<font isBold="true" isUnderline="true"/>
</textElement>
<text><![CDATA[Package Name:]]></text>
</staticText>
<textField>
<reportElement uuid="29994cd4-59a9-4d7e-b7d0-56114e0bb198" x="79" y="0" width="430" height="20"/>
<textElement/>
<textFieldExpression><![CDATA[$F{PACKAGENAME}]]></textFieldExpression>
</textField>
</band>
</columnHeader>
<detail>
<band height="29" splitType="Stretch">
<textField>
<reportElement uuid="fea937c7-db92-4d99-9ba2-ba5973fe80e9" x="0" y="0" width="305" height="28"/>
<textElement/>
<textFieldExpression><![CDATA[$F{DESCRIPTION}]]></textFieldExpression>
</textField>
<textField>
<reportElement uuid="8a46e1b4-01fb-45ad-96d8-e23ecbb5d0c7" x="305" y="0" width="100" height="28"/>
<textElement/>
<textFieldExpression><![CDATA[$F{QUANTITY}]]></textFieldExpression>
</textField>
<textField>
<reportElement uuid="f27bd251-ac0e-407e-8778-fe09eb91bfb5" x="405" y="0" width="64" height="28"/>
<textElement/>
<textFieldExpression><![CDATA[$F{PRICE}]]></textFieldExpression>
</textField>
<textField>
<reportElement uuid="fad53b1c-cb81-470c-bb2c-de490b5f981d" x="469" y="0" width="64" height="28"/>
<textElement/>
<textFieldExpression><![CDATA[$V{TotalPerItem}]]></textFieldExpression>
</textField>
</band>
</detail>
<columnFooter>
<band height="80" splitType="Stretch">
<staticText>
<reportElement uuid="1aec00ca-e067-4616-888f-abcbee0e5e51" x="398" y="30" width="157" height="50"/>
<textElement textAlignment="Right">
<font size="8"/>
</textElement>
<text><![CDATA[PO BOX Jeddah 21353
Saudi Arabia
Tel: +966 - 2 - 2292222
Fax: + 966 - 2 2292222
www.almashfa.com]]></text>
</staticText>
<rectangle>
<reportElement uuid="9d0a82c5-625a-466d-8691-49e9114b69cf" x="80" y="1" width="337" height="20" forecolor="#999999" backcolor="#999999"/>
</rectangle>
<staticText>
<reportElement uuid="71445699-fc2d-4fa0-bab1-1098eba756cf" x="101" y="1" width="299" height="20" backcolor="#999999"/>
<textElement textAlignment="Center" verticalAlignment="Middle">
<font size="11" isBold="true" isItalic="false"/>
</textElement>
<text><![CDATA[We Value Your Health ]]></text>
</staticText>
</band>
</columnFooter>
<summary>
<band height="22" splitType="Stretch">
<staticText>
<reportElement uuid="597004a3-0ae9-43a0-beaf-5bdd9103db52" x="405" y="0" width="64" height="20"/>
<textElement>
<font isUnderline="true"/>
</textElement>
<text><![CDATA[TOTAL DUE:]]></text>
</staticText>
<textField pattern="###0.00;(###0.00)" isBlankWhenNull="true">
<reportElement uuid="1f7381a9-fea6-4af9-be01-fb01e9d7aa96" x="469" y="0" width="86" height="20"/>
<textElement/>
<textFieldExpression><![CDATA[$V{TotalDue}]]></textFieldExpression>
</textField>
</band>
</summary>
</jasperReport> -
How to call SP containing Temp table in IReport
hi folks
i m trynig to call a stored procedure using IReport and there is no
problem with that and the procedure gets called ....
but if that procedure has a temporary table then I cannot get the records in my Report....
So if any one of you have tried the same plz let me knowHi
I am facing problem in calling the stored procedure in IReport. I have prepared a procedure in Oracle and in Ireport i am calling it in report query as
call TEST('001')
exec TEST('001')
also TEST('001')
In all three scenarios i got Invalid SQL. I am using IReport ver 1.2.2
Please let me know what is the exact way of calling stored procedure. Please help me ..i am in greate need of it.
Bhaskar -
Problems setting up iReport for SLM development
Hi!
I've been trying to set up Eclipse and iReport so that I can create
some custom reports for SLM, but this has proven difficult. I'll explain
what I've done and where it fails:
1) I've followed all instructions on this page:
'Sentinel Development Environment'
(http://www.novell.com/developer/sent...vironment.html)
I get the following error in step 4 in the section entitled
"Enabling Previewing
Reports That Query The Sentinel Log Manager Event Store"
Exception in thread "main" 05.jan.2011 14:37:12
esecurity.base.error.SentinelErrorCodes <clinit>
INFO: There are 71 defined error codes.
esecurity.base.exceptions.RemoteException:
at
esecurity.db.object.IndexedLogSearchServiceRemoteI mpl.startSearch(Ind
exedLogSearchServiceRemoteImpl.java:54)
at
com.novell.reports.jasper.data.event.EventDataSour ce.nextEvent(EventD
ataSource.java:156)
at
com.novell.reports.jasper.data.event.EventDataSour ce.next(EventDataSo
urce.java:145)
at
com.novell.reports.jasper.data.event.ConnectionChe ck.main(ConnectionC
heck.java:66)
Caused by: esecurity.base.exceptions.RemoteException:
at
esecurity.base.datamodel.method.MethodResult.setEx ception(MethodResul
t.java:55)
at
esecurity.base.ccs.comp.BaseRemoteObjectTask.execu te(BaseRemoteObject
Task.java:120)
at
esecurity.base.ccs.comp.GenericRemoteObjectTask.pr ocessRequest(Generi
cRemoteObjectTask.java:86)
at
esecurity.base.ccs.comp.GenericTask.process(Generi cTask.java:91)
at
esecurity.base.ccs.comp.GenericTask.process(Generi cTask.java:65)
at esecurity.base.ccs.comp.BaseTask.run(BaseTask.java :52)
at
esecurity.base.ccs.comp.threadpool.TaskThreadPool$ RunWrapper.run(Task
ThreadPool.java:89)
at
EDU.oswego.cs.dl.util.concurrent.PooledExecutor$Wo rker.run(PooledExec
utor.java:732)
at java.lang.Thread.run(Thread.java:619)
Caused by: java.lang.reflect.InvocationTargetException
at sun.reflect.NativeMethodAccessorImpl.invoke0(Nativ e Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(Native MethodAccessorImpl.
java:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(De legatingMethodAcces
sorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at
esecurity.base.ccs.comp.BaseRemoteObjectTask.execu te(BaseRemoteObject
Task.java:113)
... 7 more
Caused by: java.lang.RuntimeException: No param auditInfo for method id
= _start
Search_,name = startSearch
param=startTime, type=java.util.Date, value=nullparam=limit, type=long,
value=1p
aram=sortFields, type=java.util.List, value=nullparam=searchString,
type=String,
value=sev:[9 TO 9] MAXCOUNT=1param=pageSize, type=integer,
value=10000param=end
Time, type=java.util.Date, value=nullparam=user, type=String,
value=admin
at
esecurity.base.datamodel.method.ObjMethod.getParam (ObjMethod.java:250
at
esecurity.base.datamodel.method.ObjMethod.getDataO bjectValue(ObjMetho
d.java:107)
at
esecurity.db.object.IndexedLogSearchServiceServerS tub._startSearch_(I
ndexedLogSearchServiceServerStub.java:66)
... 12 more
I noticed another thread on this error, but as you can see from the
configuration.xml file I am using the system user so rights shouldn't be
the cause here:
<strategy active="yes" id="sentinel_client"
location="com.esecurity.common.communication.strat egy.jmsstrategy.activemq.ActiveMQStrategyFactory"
name="ActiveMQ">
<jms
brokerURL="ssl://x.x.x.x:61616??wireFormat.maxInactivityDuration=0"
interceptors="compression"
keystore="C:\\Users\\ragsto\\Development\\Sentinel
SDK\\content\\dev\\sdk\\build\\config\\.activemqcl ientkeystore.jks"
keystorePassword="password" password="832f515a51412dec5ec22dfa756693ab"
username="system"/>
</strategy>
I decided test the reports even with this error, but whenever I open a
TemplateReport.jrxml I immediately get the following error:
net.sf.jasperreports.engine.JRRuntimeException:
net.sf.jasperreports.engine.JRException: Class
com.novell.reports.jasper.data.event.LuceneEventQu eryExecutorFactory not
found.
In the DOS window where I started iReport from, I get the following
error:
Can't find the translation for key =
gui.elementpropertiessheet.sheetProperty.re
nderType: using default (Render type)
Can't find the translation for key =
gui.elementpropertiessheet.sheetProperty.re
nderType: using default (Render type)
End event threw exception
java.lang.reflect.InvocationTargetException
at sun.reflect.NativeMethodAccessorImpl.invoke0(Nativ e Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknow n Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Un known
Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at
org.apache.commons.beanutils.MethodUtils.invokeMet hod(MethodUtils.jav
a:216)
at
org.apache.commons.digester.SetNextRule.end(SetNex tRule.java:216)
at org.apache.commons.digester.Rule.end(Rule.java:230 )
at
org.apache.commons.digester.Digester.endElement(Di gester.java:1130)
at
it.businesslogic.ireport.compiler.xml.SourceTraceD igester.endElement(
SourceTraceDigester.java:159)
at
org.apache.xerces.parsers.AbstractSAXParser.endEle ment(Unknown Source
at
org.apache.xerces.impl.dtd.XMLDTDValidator.endName spaceScope(Unknown
Source)
at
org.apache.xerces.impl.dtd.XMLDTDValidator.handleE ndElement(Unknown S
ource)
at
org.apache.xerces.impl.dtd.XMLDTDValidator.endElem ent(Unknown Source)
at
org.apache.xerces.impl.XMLDocumentFragmentScannerI mpl.scanEndElement(
Unknown Source)
at
org.apache.xerces.impl.XMLDocumentFragmentScannerI mpl$FragmentContent
Dispatcher.dispatch(Unknown Source)
at
org.apache.xerces.impl.XMLDocumentFragmentScannerI mpl.scanDocument(Un
known Source)
at org.apache.xerces.parsers.XML11Configuration.parse (Unknown
Source)
at org.apache.xerces.parsers.XML11Configuration.parse (Unknown
Source)
at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
at org.apache.xerces.parsers.AbstractSAXParser.parse( Unknown
Source)
at
org.apache.xerces.jaxp.SAXParserImpl$JAXPSAXParser .parse(Unknown Sour
ce)
at
org.apache.commons.digester.Digester.parse(Digeste r.java:1647)
at
net.sf.jasperreports.engine.xml.JRXmlLoader.loadXM L(JRXmlLoader.java:
239)
at
net.sf.jasperreports.engine.xml.JRXmlLoader.loadXM L(JRXmlLoader.java:
226)
at
it.businesslogic.ireport.IReportCompiler.loadJaspe rDesign(IReportComp
iler.java:2125)
at
it.businesslogic.ireport.DesignVerifyerThread.veri fyDesign(DesignVeri
fyerThread.java:145)
at
it.businesslogic.ireport.DesignVerifyerThread.run( DesignVerifyerThrea
d.java:92)
at java.lang.Thread.run(Unknown Source)
Caused by: net.sf.jasperreports.engine.JRRuntimeException:
net.sf.jasperreports.
engine.JRException: Class
com.novell.reports.jasper.data.event.LuceneEventQu eryE
xecutorFactory not found.
at
net.sf.jasperreports.engine.design.JRDesignDataset .queryLanguageChang
ed(JRDesignDataset.java:914)
at
net.sf.jasperreports.engine.design.JRDesignDataset .setQuery(JRDesignD
ataset.java:448)
at
net.sf.jasperreports.engine.design.JasperDesign.se tQuery(JasperDesign
.java:806)
... 28 more
Caused by: net.sf.jasperreports.engine.JRException: Class
com.novell.reports.jas
per.data.event.LuceneEventQueryExecutorFactory not found.
at
net.sf.jasperreports.engine.util.JRSingletonCache. createInstance(JRSi
ngletonCache.java:98)
at
net.sf.jasperreports.engine.util.JRSingletonCache. getCachedInstance(J
RSingletonCache.java:78)
at
net.sf.jasperreports.engine.util.JRQueryExecuterUt ils.getQueryExecute
rFactory(JRQueryExecuterUtils.java:60)
at
net.sf.jasperreports.engine.design.JRDesignDataset .queryLanguageChang
ed(JRDesignDataset.java:903)
... 30 more
Caused by: java.lang.ClassNotFoundException:
com.novell.reports.jasper.data.even
t.LuceneEventQueryExecutorFactory
at java.net.URLClassLoader$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Unknown Source)
at
net.sf.jasperreports.engine.util.JRClassLoader.loa dClassForRealName(J
RClassLoader.java:179)
at
net.sf.jasperreports.engine.util.JRClassLoader.loa dClassForName(JRCla
ssLoader.java:119)
at
net.sf.jasperreports.engine.util.JRSingletonCache. createInstance(JRSi
ngletonCache.java:88)
... 33 more
locationFileName does not exisit
It looks to me like there's a problem with the Lucene connection, but
the connection test works..?
When I try to compile the report, I get the following errors:
The method DatePrepare(String, String, String) is undefined for the
type TemplateReportScriptlet
The method DatePrepare(String, String, String) is undefined for the
type TemplateReportScriptlet
The method getKeyColors() is undefined for the type
TemplateReportScriptlet
The method getKeyColors() is undefined for the type
TemplateReportScriptlet
The method DatePrepare(String, String, String) is undefined for the
type TemplateReportScriptlet
This is similar to another users error, but I wasn't able to solve my
problem by compiling in iReport 3.7.6 - I just get different errors.
Since I am not very familiar with Java, I have no idea on how to
troubleshoot this. Can anyone assist, please?
Ragnar Storstrm
rstorstrom
rstorstrom's Profile: http://forums.novell.com/member.php?userid=5064
View this thread: http://forums.novell.com/showthread.php?t=429304That fixed the problem with the connection check - thank you! But I
still have two problems left:
1) When I create a new report in Eclipse and try to compile it in
iReport I get the following error:
Compiling to file... C:\proj\content\dev\reports\Testing\Test av
rapportlaging\6.1\TemplateReport.jasper ->
C:\proj\content\dev\reports\Testing\Test av
rapportlaging\6.1\TemplateReport.java
net.sf.jasperreports.engine.design.J...va.lang.ClassNotFoundException:*TemplateReportClass
Line:*21,*Column:*36*JRXML*Element:*/jasperReport
Exception*in*thread*"AWT-EventQueue-0"*java.lang.ArrayIndexOutOfBoundsException:*2*>=* 2
****at*java.util.Vector.elementAt(Unknown*Source)
****at*javax.swing.plaf.basic.BasicTabbedPaneUI.ge tTextViewForTab(Unknown*Source)
****at*javax.swing.plaf.basic.BasicTabbedPaneUI.ca lculateTabHeight(Unknown*Source)
****at*javax.swing.plaf.basic.BasicTabbedPaneUI.ca lculateMaxTabHeight(Unknown*Source)
****at*javax.swing.plaf.basic.BasicTabbedPaneUI$Ta bbedPaneLayout.calculateTabRects(Unknown*Source)
****at*javax.swing.plaf.basic.BasicTabbedPaneUI$Ta bbedPaneLayout.calculateLayoutInfo(Unknown*Source)
****at*javax.swing.plaf.basic.BasicTabbedPaneUI$Ta bbedPaneLayout.layoutContainer(Unknown*Source)
****at*java.awt.Container.layout(Unknown*Source)
****at*java.awt.Container.doLayout(Unknown*Source)
****at*java.awt.Container.validateTree(Unknown*Sou rce)
****at*java.awt.Container.validateTree(Unknown*Sou rce)
****at*java.awt.Container.validateTree(Unknown*Sou rce)
****at*java.awt.Container.validateTree(Unknown*Sou rce)
****at*java.awt.Container.validateTree(Unknown*Sou rce)
****at*java.awt.Container.validateTree(Unknown*Sou rce)
****at*java.awt.Container.validateTree(Unknown*Sou rce)
****at*java.awt.Container.validate(Unknown*Source)
****at*javax.swing.RepaintManager.validateInvalidC omponents(Unknown*Source)
****at*javax.swing.SystemEventQueueUtilities$Compo nentWorkRequest.run(Unknown*Source)
****at*java.awt.event.InvocationEvent.dispatch(Unk nown*Source)
****at*java.awt.EventQueue.dispatchEvent(Unknown*S ource)
****at*java.awt.EventDispatchThread.pumpOneEventFo rFilters(Unknown*Source)
****at*java.awt.EventDispatchThread.pumpEventsForF ilter(Unknown*Source)
****at*java.awt.EventDispatchThread.pumpEventsForH ierarchy(Unknown*Source)
****at*java.awt.EventDispatchThread.pumpEvents(Unk nown*Source)
****at*java.awt.EventDispatchThread.pumpEvents(Unk nown*Source)
****at*java.awt.EventDispatchThread.run(Unknown*So urce)
Exception*in*thread*"AWT-EventQueue-0"*java.lang.ArrayIndexOutOfBoundsException:*2*>=* 2
****at*java.util.Vector.elementAt(Unknown*Source)
****at*javax.swing.plaf.basic.BasicTabbedPaneUI.ge tTextViewForTab(Unknown*Source)
****at*javax.swing.plaf.basic.BasicTabbedPaneUI.ca lculateTabHeight(Unknown*Source)
****at*javax.swing.plaf.basic.BasicTabbedPaneUI.ca lculateMaxTabHeight(Unknown*Source)
****at*javax.swing.plaf.basic.BasicTabbedPaneUI$Ta bbedPaneLayout.calculateTabRects(Unknown*Source)
****at*javax.swing.plaf.basic.BasicTabbedPaneUI$Ta bbedPaneLayout.calculateLayoutInfo(Unknown*Source)
****at*javax.swing.plaf.basic.BasicTabbedPaneUI$Ta bbedPaneLayout.layoutContainer(Unknown*Source)
****at*java.awt.Container.layout(Unknown*Source)
****at*java.awt.Container.doLayout(Unknown*Source)
****at*java.awt.Container.validateTree(Unknown*Sou rce)
****at*java.awt.Container.validateTree(Unknown*Sou rce)
****at*java.awt.Container.validateTree(Unknown*Sou rce)
****at*java.awt.Container.validateTree(Unknown*Sou rce)
****at*java.awt.Container.validateTree(Unknown*Sou rce)
****at*java.awt.Container.validateTree(Unknown*Sou rce)
****at*java.awt.Container.validateTree(Unknown*Sou rce)
****at*java.awt.Container.validate(Unknown*Source)
****at*javax.swing.RepaintManager.validateInvalidC omponents(Unknown*Source)
****at*javax.swing.SystemEventQueueUtilities$Compo nentWorkRequest.run(Unknown*Source)
****at*java.awt.event.InvocationEvent.dispatch(Unk nown*Source)
****at*java.awt.EventQueue.dispatchEvent(Unknown*S ource)
****at*java.awt.EventDispatchThread.pumpOneEventFo rFilters(Unknown*Source)
****at*java.awt.EventDispatchThread.pumpEventsForF ilter(Unknown*Source)
****at*java.awt.EventDispatchThread.pumpEventsForH ierarchy(Unknown*Source)
****at*java.awt.EventDispatchThread.pumpEvents(Unk nown*Source)
****at*java.awt.EventDispatchThread.pumpEvents(Unk nown*Source)
****at*java.awt.EventDispatchThread.run(Unknown*So urce)
net.sf.jasperreports.engine.design.JRValidationExc eption:*Report*design*not*valid*:*
*****1.*java.lang.ClassNotFoundException:*Template ReportClass
****at*net.sf.jasperreports.engine.design.JRAbstra ctCompiler.verifyDesign(JRAbstractCompiler.java:26 0)
****at*net.sf.jasperreports.engine.design.JRAbstra ctCompiler.compileReport(JRAbstractCompiler.java:1 44)
****at*it.businesslogic.ireport.IReportCompiler.ru n(IReportCompiler.java:591)
****at*java.lang.Thread.run(Unknown*Source)
In Ant I see the following:
Buildfile: C:\proj\content\dev\reports\Testing\Test av
rapportlaging\6.1\build.xml
_checkrelease:
[echo]
[echo] The current release of this plug-in is version:
[echo] "1" --> (Testing Test av rapportlaging_6.1r1)
[echo] Do you want to increment the release number and create a
new release?
_newrelease:
_init:
[echo] Author information loaded from
C:\proj\content/dev/dev.properties
_typeInit:
scrub:
build-release:
_build-checks:
_init:
[echo] Author information loaded from
C:\proj\content/dev/dev.properties
_typeInit:
build-zip:
[delete] Deleting directory
C:\proj\content\build\Testing_Test-av-rapportlaging_6.1r1
_copy-plugin:
[copy] Copying 1 file to
C:\proj\content\build\Testing_Test-av-rapportlaging_6.1r1\plugin
[copy] Copying 1 file to
C:\proj\content\build\Testing_Test-av-rapportlaging_6.1r1\tmp
[copy] Copying 9 files to
C:\proj\content\build\Testing_Test-av-rapportlaging_6.1r1\plugin
[copy] Copying 6 files to
C:\proj\content\build\Testing_Test-av-rapportlaging_6.1r1\plugin
[copy] Copying 2 files to
C:\proj\content\build\Testing_Test-av-rapportlaging_6.1r1\plugin
[copy] Copying 1 file to
C:\proj\content\build\Testing_Test-av-rapportlaging_6.1r1\plugin
[copy] Copying 1 file to
C:\proj\content\build\Testing_Test-av-rapportlaging_6.1r1\plugin
[move] Moving 1 file to
C:\proj\content\build\Testing_Test-av-rapportlaging_6.1r1\plugin
[javac] Compiling 1 source file to
C:\proj\content\build\Testing_Test-av-rapportlaging_6.1r1\plugin
[javac] C:\proj\content\dev\reports\Testing\Test av
rapportlaging\6.1\TemplateReportScriptlet.java:4: package
it.businesslogic.ireport does not exist
[javac] public class TemplateReportScriptlet extends
it.businesslogic.ireport.IReportScriptlet {
[javac]
^
[javac] C:\proj\content\dev\reports\Testing\Test av
rapportlaging\6.1\TemplateReportScriptlet.java:24: cannot find symbol
[javac] symbol : variable super
[javac] location: class TemplateReportScriptlet
[javac] super.beforeColumnInit();
[javac] ^
[javac] C:\proj\content\dev\reports\Testing\Test av
rapportlaging\6.1\TemplateReportScriptlet.java:30: cannot find symbol
[javac] symbol : variable super
[javac] location: class TemplateReportScriptlet
[javac] super.afterDetailEval();
[javac] ^
[javac] C:\proj\content\dev\reports\Testing\Test av
rapportlaging\6.1\TemplateReportScriptlet.java:36: cannot find symbol
[javac] symbol : variable super
[javac] location: class TemplateReportScriptlet
[javac] super.afterGroupInit(groupName);
[javac] ^
[javac] C:\proj\content\dev\reports\Testing\Test av
rapportlaging\6.1\TemplateReportScriptlet.java:42: cannot find symbol
[javac] symbol : variable super
[javac] location: class TemplateReportScriptlet
[javac] super.afterPageInit();
[javac] ^
[javac] 5 errors
As I recall, I can fix this by adding the right .JAR file to the dev
directory of the report, so it's not a huge problem.
2) When I try to preview a report with an active connection I get the
following error:
net.sf.jasperreports.engine.JRRuntimeException:
net.sf.jasperreports.engine.JRException: Class
com.novell.jasper.data.event.LuceneEventQueryExecu torFactory not found
This is something I haven't found a fix for, unfortunately. Any ideas?
PS:
My apologies for the late reply - I was on holiday last week and was
swamped both before going and once I got back.
Ragnar Storstrm
rstorstrom
rstorstrom's Profile: http://forums.novell.com/member.php?userid=5064
View this thread: http://forums.novell.com/showthread.php?t=429304 -
Troubles with JRE 1.4.2 and iReport (with db2 connection)
Hello everyone. My company is developing a product, and the client is working with JRE 1.4.2 . They (the client) are using db2 Database. We are using iReport to generate the product reports, but we encounter a problem with it - the report will compile and report (in any format) only once - afterwards, iReport will suddenly freeze and will stop to respond.
Trying the same thing with JRE 5.0 worked perfectly, with not troubles at all (but we cannot ask our client to upgrade to JRE 5.0, of course)
Anyone has any idea about how to fix this problem? perhaps there's a patch or something of the sort?
I forgot to mention, there's no error message at all, and if any, it's a javaw.exe application hang.
Any idea's?
Thanks,
Matt.Have you tried this on another machine?Yes ... actually this has happened on a few workstations here ... all of them are Pentium IV based dell workstations running Windows 2000.
What exact version of 1.4.2 did you download?Java(TM) Plug-in: Version 1.4.2_04
Using JRE version 1.4.2_04 Java HotSpot(TM) Client VM
Have you searched the bug database? This one could be related to yours:
http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=4673572
This sounds similar but the difference is its not just the app that feezes up (so that you could do an alt+ctrl+del and kill it)..... the OS freezes up and you can move the mouse around still the system even queu e is not full and eventuall all I hear is the beeping. At this point I've to power cycle.
Is there any way you could post the code or is it too big? Or, have you tried just creating a very small >application or applet that just shows one dialog, and if so, does that show the same problem? (What I'm >trying to get at here is - is it something in your code that is causing this, or something in the JRE, or >perhaps something to do with your machine's configuration/OS?)Unfortunately I cannot post the code ... its company rules and regulations. I've tried creating a very small app and it appears to work ok .... but randomly causes this freeze up. There is no definate pattern (except that it happens when you move around a JDialog or a JInternalFrame) . It could freeze up some time and work perfectly fine at other times. It has actually happened on other applications too (Netbeans, JEdit etc). That's why I suspect this might be a obscure bug in the JRE.
I'll try to find a pattern so that it can be re-produced by everyone.
Thanks for the help. -
CROSSTAB from an XML file with iReport / Jasper Report
Hi all,
I need to create a report using crosstab with an XML file. The iReport guide doesn't answer to my problem.
The XML file contents one tag called "HEADERS" with "NAME-HEADERS" corresponding to all column names and different tags called "LINE-DATAS" with corresponding values.
I want to feed column groups with NAME-HEADERS and details with LINE-DATAS.
How can I describe this in a crosstab ?
Thans for your answers.
Richard.Read this:
http://swforum.sun.com/jive/thread.jspa?forumID=122&threadID=62130
Also there are a lot of stuff at JasperReports forums:
http://sourceforge.net/forum/?group_id=36382 -
Hi,
Below are my project environment:-
JDK 1.3.1
Tomcat 4.1
Jasperreports 0.6.1
iReport 0.5.1
I manage to compile and generate the report in iReport. However when i write these code to export the jrprint temporary file to PDF file, the following error stack is displayed. My suspect is jdk library class imcompatible because I used jdk 1.5 to compile the jasper report while jdk 1.3 to compile my project which is built on top of struts 1.0.2
javax.servlet.ServletException: Error loading object from file : C:\iReport-0.5.1\jasper\monthlyRoomBookingByVenue.jasper
at org.apache.struts.action.RequestProcessor.processException(RequestProcessor.java:507)
at org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:448)
at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:266)
at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1292)
at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:510)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:256)
at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2415)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180)
at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:171)
at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:172)
at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:174)
at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:223)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:594)
at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:392)
at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:565)
at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:619)
at java.lang.Thread.run(Thread.java:595)
root cause
java.io.InvalidClassException: net.sf.jasperreports.engine.base.JRBaseReport; local class incompatible: stream classdesc serialVersionUID = 10001, local class serialVersionUID = 601
at java.io.ObjectStreamClass.initNonProxy(ObjectStreamClass.java:546)
at java.io.ObjectInputStream.readNonProxyDesc(ObjectInputStream.java:1552)
at java.io.ObjectInputStream.readClassDesc(ObjectInputStream.java:1466)
at java.io.ObjectInputStream.readNonProxyDesc(ObjectInputStream.java:1552)
at java.io.ObjectInputStream.readClassDesc(ObjectInputStream.java:1466)
at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1699)
at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1305)
at java.io.ObjectInputStream.readObject(ObjectInputStream.java:348)
at net.sf.jasperreports.engine.util.JRLoader.loadObject(JRLoader.java:129)
at net.sf.jasperreports.engine.JasperFillManager.fillReport(JasperFillManager.java:160)
at my.com.cni.mrbs.dao.ReportDAO.genPdfReport(ReportDAO.java:43)
at my.com.cni.mrbs.report.action.ReportingAction.monthlybyvenue(ReportingAction.java:123)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at org.apache.struts.actions.DispatchAction.dispatchMethod(DispatchAction.java:280)
at my.com.cni.mrbs.base.BaseAction.execute(BaseAction.java:72)
at org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:446)
at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:266)
at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1292)
at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:510)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:256)
at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2415)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180)
at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:171)
at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:172)
at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:174)
at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:223)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:594)
at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:392)
at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:565)
at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:619)
at java.lang.Thread.run(Thread.java:595)
NESTED BY :
net.sf.jasperreports.engine.JRException: Error loading object from file : C:\iReport-0.5.1\jasper\monthlyRoomBookingByVenue.jasper
at net.sf.jasperreports.engine.util.JRLoader.loadObject(JRLoader.java:133)
at net.sf.jasperreports.engine.JasperFillManager.fillReport(JasperFillManager.java:160)
at my.com.cni.mrbs.dao.ReportDAO.genPdfReport(ReportDAO.java:43)
at my.com.cni.mrbs.report.action.ReportingAction.monthlybyvenue(ReportingAction.java:123)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at org.apache.struts.actions.DispatchAction.dispatchMethod(DispatchAction.java:280)
at my.com.cni.mrbs.base.BaseAction.execute(BaseAction.java:72)
at org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:446)
at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:266)
at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1292)
at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:510)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:256)
at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2415)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180)
at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:171)
at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:172)
at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:174)
at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:223)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:594)
at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:392)
at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:565)
at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:619)
at java.lang.Thread.run(Thread.java:595)
Caused by: java.io.InvalidClassException: net.sf.jasperreports.engine.base.JRBaseReport; local class incompatible: stream classdesc serialVersionUID = 10001, local class serialVersionUID = 601
at java.io.ObjectStreamClass.initNonProxy(ObjectStreamClass.java:546)
at java.io.ObjectInputStream.readNonProxyDesc(ObjectInputStream.java:1552)
at java.io.ObjectInputStream.readClassDesc(ObjectInputStream.java:1466)
at java.io.ObjectInputStream.readNonProxyDesc(ObjectInputStream.java:1552)
at java.io.ObjectInputStream.readClassDesc(ObjectInputStream.java:1466)
at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1699)
at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1305)
at java.io.ObjectInputStream.readObject(ObjectInputStream.java:348)
at net.sf.jasperreports.engine.util.JRLoader.loadObject(JRLoader.java:129)
... 44 moreHi,
Below are my project environment:-
JDK 1.3.1
Tomcat 4.1
Jasperreports 0.6.1
iReport 0.5.1
I manage to compile and generate the report in iReport. However when i write these code to export the jrprint temporary file to PDF file, the following error stack is displayed. My suspect is jdk library class imcompatible because I used jdk 1.5 to compile the jasper report while jdk 1.3 to compile my project which is built on top of struts 1.0.2
javax.servlet.ServletException: Error loading object from file : C:\iReport-0.5.1\jasper\monthlyRoomBookingByVenue.jasper
at org.apache.struts.action.RequestProcessor.processException(RequestProcessor.java:507)
at org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:448)
at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:266)
at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1292)
at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:510)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:256)
at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2415)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180)
at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:171)
at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:172)
at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:174)
at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:223)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:594)
at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:392)
at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:565)
at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:619)
at java.lang.Thread.run(Thread.java:595)
root cause
java.io.InvalidClassException: net.sf.jasperreports.engine.base.JRBaseReport; local class incompatible: stream classdesc serialVersionUID = 10001, local class serialVersionUID = 601
at java.io.ObjectStreamClass.initNonProxy(ObjectStreamClass.java:546)
at java.io.ObjectInputStream.readNonProxyDesc(ObjectInputStream.java:1552)
at java.io.ObjectInputStream.readClassDesc(ObjectInputStream.java:1466)
at java.io.ObjectInputStream.readNonProxyDesc(ObjectInputStream.java:1552)
at java.io.ObjectInputStream.readClassDesc(ObjectInputStream.java:1466)
at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1699)
at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1305)
at java.io.ObjectInputStream.readObject(ObjectInputStream.java:348)
at net.sf.jasperreports.engine.util.JRLoader.loadObject(JRLoader.java:129)
at net.sf.jasperreports.engine.JasperFillManager.fillReport(JasperFillManager.java:160)
at my.com.cni.mrbs.dao.ReportDAO.genPdfReport(ReportDAO.java:43)
at my.com.cni.mrbs.report.action.ReportingAction.monthlybyvenue(ReportingAction.java:123)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at org.apache.struts.actions.DispatchAction.dispatchMethod(DispatchAction.java:280)
at my.com.cni.mrbs.base.BaseAction.execute(BaseAction.java:72)
at org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:446)
at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:266)
at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1292)
at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:510)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:256)
at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2415)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180)
at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:171)
at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:172)
at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:174)
at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:223)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:594)
at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:392)
at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:565)
at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:619)
at java.lang.Thread.run(Thread.java:595)
NESTED BY :
net.sf.jasperreports.engine.JRException: Error loading object from file : C:\iReport-0.5.1\jasper\monthlyRoomBookingByVenue.jasper
at net.sf.jasperreports.engine.util.JRLoader.loadObject(JRLoader.java:133)
at net.sf.jasperreports.engine.JasperFillManager.fillReport(JasperFillManager.java:160)
at my.com.cni.mrbs.dao.ReportDAO.genPdfReport(ReportDAO.java:43)
at my.com.cni.mrbs.report.action.ReportingAction.monthlybyvenue(ReportingAction.java:123)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at org.apache.struts.actions.DispatchAction.dispatchMethod(DispatchAction.java:280)
at my.com.cni.mrbs.base.BaseAction.execute(BaseAction.java:72)
at org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:446)
at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:266)
at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1292)
at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:510)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:256)
at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2415)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180)
at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:171)
at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:172)
at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:174)
at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:223)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:594)
at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:392)
at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:565)
at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:619)
at java.lang.Thread.run(Thread.java:595)
Caused by: java.io.InvalidClassException: net.sf.jasperreports.engine.base.JRBaseReport; local class incompatible: stream classdesc serialVersionUID = 10001, local class serialVersionUID = 601
at java.io.ObjectStreamClass.initNonProxy(ObjectStreamClass.java:546)
at java.io.ObjectInputStream.readNonProxyDesc(ObjectInputStream.java:1552)
at java.io.ObjectInputStream.readClassDesc(ObjectInputStream.java:1466)
at java.io.ObjectInputStream.readNonProxyDesc(ObjectInputStream.java:1552)
at java.io.ObjectInputStream.readClassDesc(ObjectInputStream.java:1466)
at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1699)
at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1305)
at java.io.ObjectInputStream.readObject(ObjectInputStream.java:348)
at net.sf.jasperreports.engine.util.JRLoader.loadObject(JRLoader.java:129)
... 44 more -
IReport and JRHtmlExporter : Problem in reloading images
Hello
I have created the report with IReport and exported to the HTML format.
The problem is when i reload my webpage , in backend error is shown that "Cannot write to image files".
Does that mean when i refresh the page stream is still writing the images.
If any one have any clue, plz reply....
Thanks.hi professor
i tried formatting my MMC card after taking the back up.the pop msg said that all data would be lost and then i pressed yes to it.but even after that all the data is still there in the card and i m not able to delete the images and video from there.
secondly i changed my camera settings and instead of saving the images and video in the MMC card i changed the setting to phone memory and this time the image got saved easily and i can preview it also...
so i think the MMC card is gone...but its only 1 month since i had been using this cell...wat a pitty
cheers
sid
Maybe you are looking for
-
Camera is not working in the iPhone 4
Hello All, I have implemented the camera work in my application and this is working perfectly in the iPhone 3 and 3GS but not working in iPhone 4. Its crashed and says "Thread 0 crashed with ARM Thread State". I am sending the code snippet below. -(I
-
Hi Anybody , i am getting an error 'Statement is not accessible' REPORT ZZDEMO_EXPORT. TABLEs : NAST. DATA : i_vbeln TYPE VBAK-VBELN. DATA: lf_fm_name TYPE rs38l_fnam. DATA: lf_formname TYPE tdsfname. DATA: XSCREEN(1) TYPE C
-
WRP1 P.O splitting problem.
Hi all, Haavent gone through the details, however if anyone has faced this problem before then plz suggest. Whats happening here is when we schedule wrp1 in the background the some of the pos created for the same vendor from the same site are splitti
-
Sorting the year without affecting the tracks
How do I sort the year from most recent to oldest without affecting the order of the tracks?
-
I cannot find where to amend the repository location for the AI clients, as a route out to oracle is not available. I have updated the default.xml file and the ai_manifest.xml file whre else is this parameter stored? It also exists withn the AI iso f