voyager1
Members-
Posts
11 -
Joined
-
Last visited
Recent Profile Visitors
The recent visitors block is disabled and is not being shown to other users.
voyager1's Achievements
-
Hello, We need to reset the UUIDs for all our reports. Currently, this can only be done by right-clicking on each or multiple reports in the project folder in Jaspersoft Studio, selecting "JasperReports," and then choosing "Reset UUID." Since we have over a thousand reports for various clients, this approach is not feasible for our support team. Is it possible to write a Java batch file or another method to reset or regenerate these UUIDs so that we can integrate this function into our program? In particular, older reports, which were created with Designer 4.5.1 and do not yet have UUIDs, need to be assigned one for the first time. Best regards Is there an option for this in Jaspersoft Library 7.0.0?
-
I tried this way, but it doesn't work like opening it manually in Jaspersoft Studio and saving it. I always get the error: unable to load report... /** * Thread: resave... */ public void runResave() { String reportDir = fileService.getReportTemplatesDir().getPath(); File dir = new File(reportDir); FileFilter jrxmlFilter = file -> file.getName().endsWith(".jrxml"); File[] files = dir.listFiles(jrxmlFilter); if (files != null) { for (File file : files) { try { JasperDesign jasperDesign = JRXmlLoader.load(file); JRXmlWriter.writeReport(jasperDesign, file.getAbsolutePath(), "UTF-8"); Log.info("Resaved: " + file.getName()); } catch (Exception e) { Log.error("Failed to resave: " + file.getName()); Log.error("Error message: " + e.getMessage()); } } } else { Log.error("No .jrxml files found in the directory."); } }
-
Dear Jaspersoft Community, since upgrading to Jaspersoft version 7.0.0, my reports no longer load. I receive the following error message: 2024.07.18 12:33:44,852 ERROR [http-nio-80-exec-11] [ReportUtilsService] - Error compiling XML-File D:\Clinixx\live\network\networklive\reports\definition\Wahlleistungen.jrxml net.sf.jasperreports.engine.JRException: Errors were encountered when compiling report expressions class file: D:\util\apache-tomcat-9.0.80\bin\Wahlleistung_2490e8c6fada0754b89a1760f5165f69149c8c52632a895ac976b888441244cb.java:15: error: package com.amc.mim.reportbeans does not exist import com.amc.mim.reportbeans.ReportSiteDTO; ^ D:\util\apache-tomcat-9.0.80\bin\Wahlleistung_2490e8c6fada0754b89a1760f5165f69149c8c52632a895ac976b888441244cb.java:22: error: cannot find symbol public class Wahlleistung_2490e8c6fada0754b89a1760f5165f69149c8c52632a895ac976b888441244cb extends JREvaluator ^ symbol: class JREvaluator D:\util\apache-tomcat-9.0.80\bin\Wahlleistung_2490e8c6fada0754b89a1760f5165f69149c8c52632a895ac976b888441244cb.java:29: error: cannot find symbol private JRFillParameter parameter_ImagesDir = null; ^ symbol: class JRFillParameter location: class Wahlleistung_2490e8c6fada0754b89a1760f5165f69149c8c52632a895ac976b888441244cb D:\util\apache-tomcat-9.0.80\bin\Wahlleistung_2490e8c6fada0754b89a1760f5165f69149c8c52632a895ac976b888441244cb.java:30: error: cannot find symbol private JRFillParameter parameter_VOLLSTAENDIGER_VOR_NACHNAME_PATIENT = null; ^ 100 errors only showing the first 100 errors, of 127 total; use -Xmaxerrs if you would like to see more . at net.sf.jasperreports.engine.design.JRAbstractCompiler.compileReport(JRAbstractCompiler.java:234) at net.sf.jasperreports.engine.JasperCompileManager.compile(JasperCompileManager.java:350) at net.sf.jasperreports.engine.JasperCompileManager.compileToFile(JasperCompileManager.java:266) at net.sf.jasperreports.engine.JasperCompileManager.compileToFile(JasperCompileManager.java:248) at net.sf.jasperreports.engine.JasperCompileManager.compileReportToFile(JasperCompileManager.java:547) at com.amc.mim.util.ReportUtilsService.createReport(ReportUtilsService.java:69) at com.amc.mim.report.CommonReport.buildJasperPrints(CommonReport.java:735) at com.amc.mim.report.CommonReport.build(CommonReport.java:233) at com.amc.mim.actions.reportlabelfactory.ProcessFormsAndLabelsOverviewAction.execute(ProcessFormsAndLabelsOverviewAction.java:198) at org.apache.struts.chain.commands.servlet.ExecuteAction.execute(ExecuteAction.java:58) at org.apache.struts.chain.commands.AbstractExecuteAction.execute(AbstractExecuteAction.java:67) at org.apache.struts.chain.commands.ActionCommandBase.execute(ActionCommandBase.java:51) at org.apache.commons.chain.impl.ChainBase.execute(ChainBase.java:191) at org.apache.commons.chain.generic.LookupCommand.execute(LookupCommand.java:305) at org.apache.commons.chain.impl.ChainBase.execute(ChainBase.java:191) at org.apache.struts.chain.ComposableRequestProcessor.process(ComposableRequestProcessor.java:283) at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1913) at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:462) at javax.servlet.http.HttpServlet.service(HttpServlet.java:555) at javax.servlet.http.HttpServlet.service(HttpServlet.java:623) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:209) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:153) at com.amc.mim.servlet.CharacterEncodingFilter.doFilter(CharacterEncodingFilter.java:31) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:178) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:153) at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:51) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:178) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:153) at de.clinixx.filter.LoginFilter.doFilter(LoginFilter.java:58) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:178) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:153) at org.springframework.web.filter.RequestContextFilter.doFilterInternal(RequestContextFilter.java:100) at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:117) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:178) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:153) at org.springframework.web.filter.FormContentFilter.doFilterInternal(FormContentFilter.java:93) at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:117) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:178) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:153) at org.springframework.boot.web.servlet.support.ErrorPageFilter.doFilter(ErrorPageFilter.java:126) at org.springframework.boot.web.servlet.support.ErrorPageFilter.access$000(ErrorPageFilter.java:64) at org.springframework.boot.web.servlet.support.ErrorPageFilter$1.doFilterInternal(ErrorPageFilter.java:101) at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:117) at org.springframework.boot.web.servlet.support.ErrorPageFilter.doFilter(ErrorPageFilter.java:119) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:178) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:153) at org.springframework.web.filter.CharacterEncodingFilter.doFilterInternal(CharacterEncodingFilter.java:201) at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:117) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:178) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:153) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:168) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:90) at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:481) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:130) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:93) at org.apache.catalina.valves.AbstractAccessLogValve.invoke(AbstractAccessLogValve.java:670) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:74) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:343) at org.apache.coyote.http11.Http11Processor.service(Http11Processor.java:390) at org.apache.coyote.AbstractProcessorLight.process(AbstractProcessorLight.java:63) at org.apache.coyote.AbstractProtocol$ConnectionHandler.process(AbstractProtocol.java:926) at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1790) at org.apache.tomcat.util.net.SocketProcessorBase.run(SocketProcessorBase.java:52) at org.apache.tomcat.util.threads.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1191) at org.apache.tomcat.util.threads.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:659) at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61) at java.base/java.lang.Thread.run(Thread.java:833) I have included the following dependencies: <dependency> <groupId>net.sf.jasperreports</groupId> <artifactId>jasperreports-fonts</artifactId> <version>7.0.0</version> </dependency> <dependency> <groupId>net.sf.jasperreports</groupId> <artifactId>jasperreports-functions</artifactId> <version>7.0.0</version> </dependency> <dependency> <groupId>net.sf.jasperreports</groupId> <artifactId>jasperreports-javaflow</artifactId> <version>7.0.0</version> </dependency> <dependency> <groupId>net.sf.jasperreports</groupId> <artifactId>jasperreports-metadata</artifactId> <version>7.0.0</version> </dependency> <dependency> <groupId>net.sf.jasperreports</groupId> <artifactId>jasperreports-pdf</artifactId> <version>7.0.0</version> </dependency> <dependency> <groupId>xalan</groupId> <artifactId>xalan</artifactId> <version>2.7.3</version> </dependency> <dependency> <groupId>com.itextpdf</groupId> <artifactId>itextpdf</artifactId> <version>5.5.13.4</version> </dependency> <dependency> <groupId>com.itextpdf</groupId> <artifactId>itext-pdfa</artifactId> <version>5.5.13.4</version> </dependency> <dependency> <groupId>commons-digester</groupId> <artifactId>commons-digester</artifactId> <version>2.1</version> </dependency> <dependency> <groupId>jfree</groupId> <artifactId>jfreechart</artifactId> <version>1.0.13</version> </dependency> <dependency> <groupId>com.adobe.xmp</groupId> <artifactId>xmpcore</artifactId> <version>6.1.11</version> </dependency> <dependency> <groupId>tomcat-jasper</groupId> <artifactId>jasper-compiler-jdt</artifactId> <version>5.5.23</version> </dependency> <dependency> <groupId>org.eclipse.jdt.core.compiler</groupId> <artifactId>ecj</artifactId> <version>4.6.1</version> </dependency> Unfortunately, other forums could not help me either. The reports I am trying to generate were originally created in Designer 4.5.1. This worked flawlessly with library 6.21.3. I am looking forward to your responses. Best regards,
-
Good day, I would like to update the old library to the new library 7.0.0. The functions for the JRGraphics2DExporter appear to be deprecated. How are the parameters set in the new library? This is my methode: private Image printPageToImage(int pageIndex, float zoom) throws JRException { Image pageImage = new BufferedImage((int) (jasperPrint.getPageWidth() * zoom) + 1, (int) (jasperPrint.getPageHeight() * zoom) + 1, BufferedImage.TYPE_INT_RGB); JRGraphics2DExporter exporter = new JRGraphics2DExporter(); exporter.setParameter(JRExporterParameter.JASPER_PRINT, this.jasperPrint); exporter.setParameter(JRGraphics2DExporterParameter.GRAPHICS_2D, pageImage.getGraphics()); exporter.setParameter(JRExporterParameter.PAGE_INDEX, pageIndex); exporter.setParameter(JRGraphics2DExporterParameter.ZOOM_RATIO, zoom); exporter.exportReport(); return pageImage; }
-
Hello, I'm trying to update my Java classes to the latest Libary version 7.0.0. How do I have to change the code below? The JRPdfExporter and JRExporterParameter are probably deprecated. JRPdfExporter exporter = new JRPdfExporter(); exporter.setParameter(JRExporterParameter.JASPER_PRINT_LIST, jasperPrintList); exporter.setParameter(JRExporterParameter.OUTPUT_FILE_NAME, pdfFileName.getAbsolutePath()); exporter.setParameter(JRPdfExporterParameter.IS_CREATING_BATCH_MODE_BOOKMARKS, Boolean.TRUE); exporter.exportReport();
-
Hello, we have been using Jaspersoft iReport Designer 4.5.1 for numerous reports in our company. Now, we would like to upgrade to a new version without having to recreate all the reports we made back then. Is this possible? We've heard about issues with main and subreports, as well as installing older compiler versions. What do we need to consider when transitioning to a new version, and how could we integrate the new version into our project structure?