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

jtsai

Members
  • Posts

    7
  • Joined

  • Last visited

 Content Type 

Profiles

Forum

Events

Featured Visualizations

Knowledge Base

Documentation (PDF Downloads)

Blog

Documentation (Test Area)

Documentation

Dr. Jaspersoft Webinar Series

Downloads

Everything posted by jtsai

  1. fail with "Category series name is null" This error show up when something wrong with Chart definition. Make sure you put the "values" not "variables" at the definitions. e.g. (of my case) 1. Series expression: "Category1" 2. Category expression: $V{MMDD} 3. Value expression: $V{RTN1}
  2. Hi Alex, In my case, the "Detail_1 section" of master report need to receive 3 return variables from a sub_report. And then show these values on "Line Chart" at "Summary section" of master report. My original problem is that the return variables(RTN1,RTN2,RTN3)show data correctly at Detail_1 section. But the "Line Chart" show nothing at Summary section. Finally, it works. Two properties of RTNx need to be set as: 1. Evaluation Time : Band 2. Text Field Expression : $V{RTN1}
  3. It works. Since I put $V{RTN1} at property "Variable Expression" of the variable RTN1. And also variable RTN2, RTN3. Thanks J.T.
  4. It works. Since I put $V{RTN1} at property "Variable Expression" of the variable RTN1. And also variable RTN2, RTN3. Thanks J.T.
  5. I put a subreport at "Detail1" section, and also display 3 return values (RTN1, RTN2, RTN3) at " Detail1" (with Evaluation time="Band"). It seems showing all RTN1~3 value at every row just fine. But when I put a "Line Chart" at "Summery" section to show those RTN1,RTN2,RTN3 data, it allway shows empty at the chart. Could anyone tall me why & how?? Thanks J.T.
  6. I fond that it just need to put the required jar files into physical WEB-INF/lib directory. You can not use symbolic link instead. after I do this: rm myAps/WEB-INF/lib # remove my symbolic linkmkdir myAps/WEB-INF/libcp ../myJarLib/*.jar myAps/WEB-INF/lib/ restart tomcat It works fine now. Thanks
  7. Hi experts,I am new at iReport develop., and I wrote a sample jsp for iReport in Windows+tomcat+iReport environment, the report shows fine.But when I put the same report at Ubuntu linux server with tomcat+iReport , I get error all the time. Can any one knows why? pleas advise., how to fix it?/**************** get error message *********************/HTTP Status 500 -type Exception reportmessagedescription The server encountered an internal error () that prevented it from fulfilling this request.exceptionorg.apache.jasper.JasperException: Unable to compile class for JSP: An error occurred at line: 1 in the generated java fileThe type net.sf.jasperreports.engine.JasperReport cannot be resolved. It is indirectly referenced from required .class filesAn error occurred at line: 1 in the generated java fileThe type net.sf.jasperreports.engine.JasperPrint cannot be resolved. It is indirectly referenced from required .class filesAn error occurred at line: 21 in the jsp file: /CustomerInvoicesReport.jspJasperReport cannot be resolved to a type18: JasperReportsWrapper wrapper = new JasperReportsWrapper();19: wrapper.connect2DB(wrapper.dbServerAdd, wrapper.dbServerPort,20: wrapper.dbName, wrapper.dbUser, wrapper.dbPass);21: JasperReport jasperReport =22: wrapper.compileJRXMLFile(path2JRXMLFile);23: JasperPrint jasperPrint =24: wrapper.fillReport(jasperReport, Code:my code <CustomerInvoicesReport.jsp >=========><html><head><meta http-equiv="Content-Type" content="text/html; charset=UTF8"><title> JasperReports Web SAMPLE</title></head><body><%@ page language="java" session="false" %><%@ page import="net.sf.jasperreports.engine.*" %><%@ page import="net.sf.jasperreports.engine.export.*" %><%@ page import="com.JasperReportsWrapper" %><%try{String path2JRXMLFile =getServletContext().getRealPath("MonthlyCustomerInvoices.jrxml");// Connect to DBJasperReportsWrapper wrapper = new JasperReportsWrapper();wrapper.connect2DB(wrapper.dbServerAdd, wrapper.dbServerPort,wrapper.dbName, wrapper.dbUser, wrapper.dbPass);JasperReport jasperReport =wrapper.compileJRXMLFile(path2JRXMLFile);JasperPrint jasperPrint = wrapper.fillReport(jasperReport,null, wrapper.getConnection()); // Set response content typeresponse.setContentType("application/pdf");// Create and export PDF to browser windowJRPdfExporter exporter = new JRPdfExporter();exporter.setParameter(JRExporterParameter.JASPER_PRINT, jasperPrint);exporter.setParameter(JRExporterParameter.OUTPUT_STREAM,response.getOutputStream());exporter.exportReport();}catch (Exception e){ e.printStackTrace();}%></body></html>
×
×
  • Create New...