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

kkonyaev

Members
  • Posts

    9
  • 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 kkonyaev

  1. Ladies and getlemen! I made an application that works with Jasper in runtime. When it works under Idea it works properly, But when I try to start java application from command line I have next error: net.sf.jasperreports.engine.JRException: Error loading byte data : D:sourcesja va-webapp-samplerunimagebuffer_1233659969818_70070.class at net.sf.jasperreports.engine.util.JRLoader.loadBytes(JRLoader.java:297 ) at net.sf.jasperreports.engine.design.JRAbstractClassCompiler.compileUni ts(JRAbstractClassCompiler.java:73) at net.sf.jasperreports.engine.design.JRAbstractCompiler.compileReport(J RAbstractCompiler.java:190) at net.sf.jasperreports.engine.JasperCompileManager.compileReport(Jasper CompileManager.java:219) at net.sf.jasperreports.engine.JasperCompileManager.compileReport(Jasper CompileManager.java:205) at com.stinscoman.reports.listprint.SQLToJasper.getReport(SQLToJasper.ja va:54) at com.stinscoman.RunQuery.main(RunQuery.java:81) Caused by: java.io.FileNotFoundException: D:sourcesjava-webapp-samplerunimage buffer_1233659969818_70070.class (â•Ñ… єфрхЄё ÑрщЄш єърчрÑÑ√щ Їрщы) at java.io.FileInputStream.open(Native Method) at java.io.FileInputStream.<init>(Unknown Source) at net.sf.jasperreports.engine.util.JRLoader.loadBytes(JRLoader.java:283 ) ... 6 more What jar(s) should I note in classpath to fix? Or how can I customize jasper compiler ? This is my code: final InputStream isTmp = new ByteArrayInputStream(sReportTemplate.getBytes()); final JasperReport report = JasperCompileManager.compileReport(isTmp); //(DIR_NAME+REPORT_NAME+".jrxml"); System.out.println("compiled"); final InputStream isData = new ByteArrayInputStream(sReportData.getBytes()); final JRXmlDataSource ds = new JRXmlDataSource(isData, XPATH_JASPER); // ds.setLocale(new Locale("WINDOWS-1251")); return JasperFillManager.fillReport(report, new HashMap(), ds); With regards Kkonyaev
  2. Thank you sir. I see you fixed the bug with NPE? How can I download the fixed JAPER jars? I don't wanna rebuild jasper. Konstantin
  3. Good day ladies and gentlemen. I use xml as datasource in my reports. I am russian (WINDOWS-1251) and I need use cyrillc symbols. When the xml contains russian symbols in string values or contains floating-point numeric data - I have a problem when loading data: java.lang.NullPointerException at org.apache.commons.beanutils.locale.LocaleConvertUtilsBean.convert(LocaleConvertUtilsBean.java:235) .... - when I use floating point data or date/timestamp net.sf.jasperreports.engine.JRException: Failed to parse the xml document at net.sf.jasperreports.engine.util.JRXmlUtils.parse(JRXmlUtils.java:74) at net.sf.jasperreports.engine.data.JRXmlDataSource.<init>(JRXmlDataSource.java:200) - when I use cyrillic stings So how can I localize the xml? With regards. Konstantin
  4. Happy New Year ladies and gentlemen! I read how use XML as a datasource in Jasper Reports. I made this report in run-time, but I could not make it in IReport. So I have questions: 1.How can I make it? 2.How can I create XML datasource in Jasper SERVER? With best wishes K. Konyaev This is my program code: JasperReport jasperReport = JasperCompileManager.compileReport(strFileName); JRXmlDataSource xmlDataSource = new JRXmlDataSource(new File("D:/jasperReports/buffer/test.xml"), "/DATA/ROW"); JasperPrint jasperPrint = JasperFillManager.fillReport(jasperReport, params, xmlDataSource); JasperExportManager.exportReportToHtmlFile (jasperPrint, strFileNameHTML); This is content of XML file, that is used as the datasource (D:/jasperReports/buffer/test.xml) <?xml version="1.0" encoding="UTF-8"?> <DATA> <ROW> <NAME>JOHN SMITH</NAME> <AGE>41</AGE> <SALARY>410.0</SALARY> </ROW> <ROW> <NAME>JAMES KITTY</NAME> <AGE>20</AGE> <SALARY>4850.0</SALARY> </ROW> </DATA>
  5. Happy New Year ladies and gentlemen! I read how use XML as a datasource in Jasper Reports. How can I create XML datasource in Jasper SERVER? With best wishes K. Konyaev
  6. Ladies and gentlemen! I made a report where every report group starts from a new page but these groups can have size more then one page. So I need make a table of contents where a page identifier is a some field|variable from the group. Is there a common way to do it or how you an idea to do it? With best wishes
  7. Gentlemen! I have a line-chart where X line is dates and Y line is amounts-by-this-dates. Dates should be displayed DAILY - it is an important condition. But if I draw this chart from whole month I have a poor result - date's labels are overrides. I want to customize it, for example, Mondays should be drown month and day and another days - only day, f.e '20.10', '21', '22','23','24', '25','26','27.10','28'... How can I do it? I tried to use LABEL but it doesn't work... Thank you.
  8. Hi all. Our program works with JasperServer (JS) throw its web-service. We need get PDF-report. I set PDF font name: repo:/Config/Fonts/arial.ttf - and I have an error: cannot load pdf font. BUT when I use standart web user interface that JS provides - there is no problem, it works well. Moreover after I execute report and export it to PDF throw web user interface - I have bo problems even when I use web-service. What is it mean? How can I get PDF report JUST throw web-service without web user interface? BR Konstantin
  9. Hello all. As an expample I have a task to make some common-view reports. They have same query and analogous formats. Would I write it on Java - I should make one base class and some descedants. Cause I use jasper xml - I can use xsl-transformations. If I use simple jasperreports instruments in my own code I can write the transforms directly and I will put self-made xml to JasperComplier. Is there way to make something like this using JasperServer? Best regards Konstantin
×
×
  • Create New...