I'm on macOS Ventura and made a fonts-extension.jar with Jaspersoft Studio 6.20.5. Then I put this jar into the jdbc folder of JasperStarter 3.6.2. Running a report yields an error: Exception in thread "main" java.lang.ClassCastException: class jdk.internal.loader.ClassLoaders$AppClassLoader cannot be cast to class java.net.URLClassLoader (jdk.internal.loader.ClassLoaders$AppClassLoader and java.net.URLClassLoader are in module java.base of loader 'bootstrap') at de.cenote.tools.classpath.ApplicationClasspath.add(ApplicationClasspath.java:75)...
Ok thanks.
There is already a new release adressing this issues.
Apparently there is a vulnerability for 1.2.X. Does Jasperstarter use jmsappender? CVE-2021-4104 involves an untrusted deserialization flaw affecting Log4j version 1.2 (No fix available; Upgrade to version 2.17.0). This issue only affects Log4j 1.2 when specifically configured to use JMSAppender, which is not the default. Apache Log4j 1.2 reached end of life in August 2015. Users should upgrade to Log4j 2 as it addresses numerous other issues from the previous versions. The impact to confidentiality,...
Release notes - JasperStarter - Version 3.6.1 ** Bug * JAS-160 log4j 2.16.0 is vulnerable to CVE-2021-45105 Release notes - JasperStarter - Version 3.5.2-java7 ** Bug * JAS-160 log4j 2.16.0 is vulnerable to CVE-2021-45105
Release notes - JasperStarter - Version 3.6.0 ** Bug CVE-2019-17571 - Included in Log4j 1.2 is a SocketServer class that is vulnerable to deserialization of untrusted data which can be exploited to remotely execute arbitrary code when combined with a deserialization gadget when listening to untrusted network traffic for log data. This affects Log4j versions up to 1.2 up to 1.2.17. [JAS-158] Jasperstarter contains an old log4j-1.2.17 which is affected by CVE-2019-17571 [JAS-146] mvn: Could not resolve...
Also is Jasperstarter vulnerable to the log4j shell vulnerability.
Do you know if it is using any other versions of log4j by default. I'm investigating http://cve.mitre.org/cgi-bin/cvename.cgi?name=2021-44228 thanks.
The same driver is not loading right here I think its the same situation on both sides but the solution is not looking usable in my software.
The same driver is not loading right here I think its the same situation on both sides but the solution is not looking usable in my software.
Hi, I'm trying to compile a .jrxml file that use a import class of a custom jar, I tried some ways to add the custom jar to classpath but when I execute jasperstarter compile myreport.jrxml always throw the error: 1. Only a type can be imported. conversionscriplet.ConversionScriplet resolves to a package import conversionscriplet.ConversionScriplet; Partial code of the report: ... <property name="ireport.x" value="0"/> <property name="ireport.y" value="0"/> <import value="conversionscriplet.ConversionScriplet"/>...
Hi, I'm trying to compile a .jrxml file that use a import class of a custom jar, I tried some ways to add the custom jar to classpath but when I execute jasperstarter compile myreport.jrxml always throw the error: 1. Only a type can be imported. conversionscriplet.ConversionScriplet resolves to a package import conversionscriplet.ConversionScriplet; Partial code of the report: ... <property name="ireport.x" value="0"/> <property name="ireport.y" value="0"/> <import value="conversionscriplet.ConversionScriplet"/>...
Hi, I'm trying to compile a .jrxml file that use a import class of a custom jar, I tried some ways to add the custom jar to classpath but when I execute jasperstarter compile myreport.jrxml always throw the error: 1. Only a type can be imported. conversionscriplet.ConversionScriplet resolves to a package import conversionscriplet.ConversionScriplet; Partial code of the report: ... <property name="ireport.x" value="0"/> <property name="ireport.y" value="0"/> <import value="conversionscriplet.ConversionScriplet"/>...
Hallo, I updated java on my Debian 10 to following: openjdk version "11.0.12" 2021-07-20 OpenJDK Runtime Environment (build 11.0.12+7-post-Debian-2deb10u1) OpenJDK 64-Bit Server VM (build 11.0.12+7-post-Debian-2deb10u1, mixed mode, sharing) I get the following error: WARNING: An illegal reflective access operation has occurred WARNING: Illegal reflective access by de.cenote.tools.classpath.ApplicationClasspath (.../lib/jasperstarter.jar) to field java.lang.ClassLoader.scl WARNING: Please consider...
Hallo, I updated java on my Debian 10 to following: openjdk version "11.0.12" 2021-07-20 OpenJDK Runtime Environment (build 11.0.12+7-post-Debian-2deb10u1) OpenJDK 64-Bit Server VM (build 11.0.12+7-post-Debian-2deb10u1, mixed mode, sharing) I get the following error: WARNING: An illegal reflective access operation has occurred WARNING: Illegal reflective access by de.cenote.tools.classpath.ApplicationClasspath (.../lib/jasperstarter.jar) to field java.lang.ClassLoader.scl WARNING: Please consider...
Hallo, I updated java on my Debian 10 to following: openjdk version "11.0.12" 2021-07-20 OpenJDK Runtime Environment (build 11.0.12+7-post-Debian-2deb10u1) OpenJDK 64-Bit Server VM (build 11.0.12+7-post-Debian-2deb10u1, mixed mode, sharing) I get the following error: WARNING: An illegal reflective access operation has occurred WARNING: Illegal reflective access by de.cenote.tools.classpath.ApplicationClasspath (.../lib/jasperstarter.jar) to field java.lang.ClassLoader.scl WARNING: Please consider...
I am using it from a year and never faced any issue but you can click on the link here where you will find some error that they mentioned in it.
I am using it from a year and never faced any issue but you can click on the link here where you will find some error that they mentioned in it.
I have this command but the response is param -H not found ./jasperstarter --locale es process "/var/www/html/trastienda/public/PlantillasJasper/Volumenes.jasper" -o "/var/www/html/trastienda/public/PlantillasJasper/informesgenerados/InformeVolumenes" -f xlsx -P FechaIni="01-01-2021" FechaFin="23-08-2021" Agencia="" Pais="" -t generic -u user1 -p password --db-driver com.microsoft.sqlserver.jdbc.SQLServerDriver --db-url jdbc:sqlserver://prefactorydb.hof-factory.interno:1433;databaseName=PRE_AlbumDigital...
To troubleshoot, I created and complied a simple Java software to see if I ought to correctly load the motive force and connect with my DB page. I turned into a success so I don't think the issue is with my system.
Hello I get strange problem: I try run it by command line: -First i set -o ~/ . Full cmd line java -Xmx4g -XX:+UseG1GC -jar lib/jasperstarter.jar --locale ru pr ~/1.jrxml -f xlsx -F ~/param.xml -t generic -u xxx -p xxx -o ~/ --db-driver oracle.jdbc.driver.OracleDriver --db-url jdbc:oracle:thin:@//some_ora_server:1521/someSID Ok i get xlsx file . It looks like good enough . Excel open this 1.xlsx well. Second i run again with -o - Full cmd line java -Xmx4g -XX:+UseG1GC -jar lib/jasperstarter.jar --locale...
Is there any plan to integrate latest JasperReports Library into JasperStarter so that it can work seamlessly with JasperReports from latest jaspersoftStudio? Thanks in advance, Chirag
Oh yeeeh! Thanks William! It work!
Alexey, In order for me to get it to work, I had to use type generic instead of oracle. This is the options setup for phpjasper. $options = [ 'format' => [$format], 'db_connection' => 'driver' => 'generic', 'username' => 'midtier_proxy['.$network_id.'', 'password' => '*', 'host' => 'mydbserver', 'database' => 'mydb', 'jdbc_driver' => 'oracle.jdbc.OracleDriver', 'jdbc_url' => 'jdbc:oracle:thin:@//mydbserver:1521/myservice', 'port' => '1521' ] I posted about problems with using the native Oracle driver...
Hello I have problem with connect via JasperStarter: I have RIGHT jdbc url like this : jdbc:oracle:thin:@YYY-SCAN.ZZZ.XX:1521/YYYY.XX.PROD As you see jdbc has slash / . And i have SERVICE_NAME! Not a SID So i try to connect via JasperStarter by this command with verbose option: java -jar ../lib/jasperstarter.jar -v pr someReport.jrxml -f xls -P pRefDateFrom=2021-03-11 pRefDateTo=2021-03-12 pIDAcc=148612290 pDocType= pCancelled=1 -t oracle -u SomeUser -p SomePassword -o - --db-driver oracle.jdbc.driver.OracleDriver...
Hello I have problem with connect via JasperStarter: I have RIGHT jdbc url like this : jdbc:oracle:thin:@YYY-SCAN.ZZZ.XX:1521/YYYY.XX.PROD As you see jdbc has slash / . And i have SERVICE_NAME! Not a SID So i try to connect via JasperStarter by this command with verbose option: java -jar ../lib/jasperstarter.jar -v pr someReport.jrxml -f xls -P pRefDateFrom=2021-03-11 pRefDateTo=2021-03-12 pIDAcc=148612290 pDocType= pCancelled=1 -t oracle -u SomeUser -p SomePassword -o - --db-driver oracle.jdbc.driver.OracleDriver...
I’m able to successfully connect to the database using the generic type, but I need to be able to use the native oracle driver in order to specify the encryption settings, mutual authentication, and use an Oracle wallet for connecting. The problem is that the use of db-sid is obsolete. It was replaced by db-service some time ago. I’ve already rebuilt the project using Apache Maven, in order to update the jasper library to the latest version. I’ve been trying to find where the jasperstarter command...
Thanks I was facing same issue but now it is resolved issue was in this CCTV project
Thank you for this hint. It worked! I was so desperate that I was looking for an alternative to jasperstarter. But once it works with this solution, I can at least solve the biggest problems this way! Many Thanks!
I have opened a ticket.
Hello, I am running into the same problem. With Jasper Studio 6.11 the "Stretch with Overflow" property got changed to "textAdjust". Have a look to source. JasperStarter seems to work with the old property up to now. That's why it is not working. Workaround: I have used Studio 6.6, deleted the "textAdjust" attributes from jrxml and compliled then. This is working. Let's hope Jasperstarter will be updated, the last update is from 2019.
Hello everybody, I use JasperStarter within a software. There I can define my own reports for evaluations. If a field is too small, I have the following problem: the text is cut off. The problem: If I generate the report with JasperReportstudio, it is correct. When I call the report from the software with Jasperstater there is the problem. JasperStudio JasperStarter Settings of the field: I got the tip that it might be because of the font. Therefore I created my own font (according to the instructions:...
Hi all, I am trying to generate report with data adapter but instead I get error like this: xception in thread "main" java.lang.NoClassDefFoundError: org/apache/http/conn/HttpClientConnectionManager at net.sf.jasperreports.data.BuiltinDataFileServiceFactory.createService(BuiltinDataFileServiceFactory.java:57) at net.sf.jasperreports.data.DataFileResolver.getService(DataFileResolver.java:57) at net.sf.jasperreports.data.DataFileUtils.createConnection(DataFileUtils.java:70) at net.sf.jasperreports.data.DataFileUtils.getDataStream(DataFileUtils.java:78)...
I have created a branch with my changes in it and this works with Open JDK 15 https://openjdk.java.net/projects/jdk/15/ The code is available at https://bitbucket.org/dlehrian/jasperstarter/branch/fix_for_URLClassLoader It requires that you pass -Djava.system.class.loader=org.update4j.DynamicClassLoader to the Java VM and, if you want to use Launch4j on Windows, set the environment variable JAVA_HOME. I was trying to use the VM in the PATH but I was having an issue with Launch4j crashing when the...
Hey there, So I found myself up against this same issue. Long story short, I need a reporting solution for a Python web app and I used JasperReport extensively back in my Java days. I found pyreportjasper but it wouldn't install because it required Java 1.8.x because it relies on JasperStarter. As I am using the latest Java 15 community edition I decided to look into fixing this. So by combining informaiton I gleaned from a variety of sources I believe I have a working solution. I don't know if it...
For what it is worth, I originally wrote about using jpy to bind JasperStarter directly into Python-based logic, and our use of JasperStarter in a server context is something we are pleased with. Unfortunately, we don't use printing so I don't have anything useful to suggest. That said, we moved from jpy to JPype1 because it seems actively supported whereas jpy's authors are unresponsive, even to offers to help (no disrespect intended, just a statement of fact). OTOH, we are experiencing some issues...
For what it is worth, although I originally wrote about using jpy to bind JasperStarter directly into Python-based logic, and our use of JasperStarter in a server context is something we are pleased with. Unfortunately, we don't use printing so I don't have anything useful to suggest. That said, we moved from jpy to JPype1 because it seems actively supported whereas jpy's authors are unresponsive, even to offers to help (no disrespect intended, just a statement of fact). OTOH, we are experiencing...
When calling JasperStarter as a standalone application, it needs several seconds and a lot of cpu before it will print. That is ok, because the Java JVM will be loaded with every call. My goal was to write a socket server, which is loading the jpy java bridge when starting it and serving a calling socket client (with is sending the jrxml data) with the output That is working in general. But the direct print function from the Report.class of JasperStarter is not working, Because the print function...
I can also confirm it works fine on Debian Buster with this Java version: openjdk version "11.0.7" 2020-04-14 OpenJDK Runtime Environment (build 11.0.7+10-post-Debian-3deb10u1) OpenJDK 64-Bit Server VM (build 11.0.7+10-post-Debian-3deb10u1, mixed mode, sharing) Thank you very much!
Hello. im also facing the same problem.did you find any solutuon for it
In jaspersoft studio I can specify yyyy-MM-dd'T'HH:mm:ssZ as the date pattern for my adapter but jasperstarter doesn't seems to accept that format. Any way to specify the pattern on the command line or to make jasperstarter use my adapter? I get: Error filling reportUnable to get value for JSON field "timestamp" of class java.sql.Timestamp.
To troubleshoot, I created and complied a simple Java program to see if I could successfully load the driver and connect to my DB. I was successful so I don't think the issue is with my system. I reviewed the jasperstarter source code and found the exact line where the error occurs in Db.java file, line 198: Class.forName(driver); The variable driver is properly defined as 'org.postgresql.Driver'. I tried a direct java command line to see if I could troubleshoot. No success. I ran java directly from...
jasperstarter verbose output: Command line: -v process test2.jrxml -f pdf -o test -t postgres -n energy2 -H looks_corrrect.rds.amazonaws.com -u xxxxx -p xxxxx Original input file: /home/ec2-user/test2.jrxml Using input file: /home/ec2-user/test2.jrxml Input absolute : /home/ec2-user/test2.jrxml Input canonical: /home/ec2-user/test2.jrxml Input: test2.jrxml Input basename: test2 OutputParam: test Output: /home/ec2-user/test Output canonical: /home/ec2-user/test JDBC driver: org.postgresql.Driver Connectstring:...
I realized that I needed a JDBC 2 driver so I tried postgresql-8.1-415.jdbc2.jar but I got the same result. ls -l jasperstarter/jdbc/ total 368 -rw-r--r-- 1 root root 368749 Jan 19 18:20 postgresql-8.1-415.jdbc2.jar
I have JasperStarter running with a simple report with no DB connection. I have moved on to trying to get a JDBC connection to my Postgres database with a simple query. I am running a clean Amazon Linux EC2 instance for testing. Command line: jasperstarter process test.jrxml -f pdf -o test -t postgres -n energy2 -H aws.rds.instance -u xxxxx -p xxxxx Result: Unable to load driver: org.postgresql.Driver I seems as if it can't even load the JDBC driver. What could be the issue? Any help would be appreciated....
I have JasperSarter running with a simple report with no DB connection. I have moved on to trying to get a JDBC connection to my Postgres database with a simple query. I am running a clean Amazon Linux EC2 instance for testing. Command line: jasperstarter process test.jrxml -f pdf -o test -t postgres -n energy2 -H aws.rds.instance -u xxxxx -p xxxxx Result: Unable to load driver: org.postgresql.Driver I seems as if it can't even load the JDBC driver. What could be the issue? Any help would be appreciated....
Hello, is it possible to use the "MongoDB Connection"? If so ... how do I include it in the "jasperstarter" and what are the parameters? Greetings Stephan F.
The snapshot works fine on Debian Buster with this Java version: openjdk version "11.0.5" 2019-10-15 OpenJDK Runtime Environment (build 11.0.5+10-post-Debian-1deb10u1) OpenJDK 64-Bit Server VM (build 11.0.5+10-post-Debian-1deb10u1, mixed mode, sharing)
Any comments or suggestions?
Thanks I actually discovered it was a reference issue to where the resource was it was trying to pull to present the output
the following works for me: cd example jasperstarter pr CancelAck.jrxml -f html -t xml --xml-xpath /CancelResponse/CancelResult/ID --data-file CancelAck.xml
a snapshot build is available here: https://sourceforge.net/projects/jasperstarter/files/snapshots/
pushed new branch jas_98_add_to_classpath for testing...
In the end, any library like byte-buddy can only use the Java API. If the Java API don't provide a valid method, any solution is a hack. So there is no benefit using that library. I could read and test the code from the video. It seems to work, but is a hack like the old solution before too. So it can functioning for some years or will be broken after next Java release. I will push a branch so you can test.
The video quality is very slow. I cannot see even the code. We can try to use the byte-buddy to load jars dynamically at runtime.
The video quality is very slow. I cannot see even the code. We cat try to use the byte-buddy to load jars dynamically at runtime.
You can subscribe to that issue to get informed on changes. Till now I found only one hack https://www.youtube.com/watch?v=Ho9b_0kvN3o which does not promise to run for a long time... Any help is very welcome.
Thanks to Rafael pointing this out. There is an old issue https://cenote-issues.atlassian.net/browse/JAS-98 ... now in progress. I don't know when it stopped working on Java10/11 but I manualy tested it... but was a long time ago.
This error is in the ApplicationClasspath.add(URL: url). The error happens when it reach the following code: URLClassLoader systemClassLoader = (URLClassLoader) ClassLoader.getSystemClassLoader(); Java 9 and the module system improved the platform’s class loading strategy, which is implemented in a new type and in Java 11 the application class loader is of that type. That means it is not a URLClassLoader, anymore, so the occasional (URLClassLoader) getClass().getClassLoader() or (URLClassLoader)...
I get the error on following environment (default Debian 10 Buster) openjdk version "11.0.3" 2019-04-16 OpenJDK Runtime Environment (build 11.0.3+7-post-Debian-5) OpenJDK 64-Bit Server VM (build 11.0.3+7-post-Debian-5, mixed mode, sharing) In order to run the reports successfully I have to install Java 8 on the machine which includes using repositories for previous Debian releases as Buster does not include version 8 in the repo. Thanks
Hello boys, I have the same problem with openJDK11, Version is: java -version openjdk version "11.0.5" 2019-10-15 OpenJDK Runtime Environment AdoptOpenJDK (build 11.0.5+10) Eclipse OpenJ9 VM AdoptOpenJDK (build openj9-0.17.0, JRE 11 Linux amd64-64-Bit Compressed References 20191016_358 (JIT enabled, AOT enabled) OpenJ9 - 77c1cf708 OMR - 20db4fbc JCL - 2a7af5674b based on jdk-11.0.5+10) Debian 8 the error is: Exception in thread "main" java.lang.ClassCastException: jdk.internal.loader.ClassLoaders$AppClassLoader...
Hi, Which Java version are you having this exeption? Best regards, Rafael Reuber
Hallo, I would like to report a bug. The Jasper Report is running fine with Java 8 but I get the following exception message when running the report with higher Java version: Exception in thread "main" java.lang.ClassCastException: class jdk.internal.loader.ClassLoaders$AppClassLoader cannot be cast to class java.net.URLClassLoader (jdk.internal.loader.ClassLoaders$AppClassLoader and java.net.URLClassLoader are in module java.base of loader 'bootstrap') at de.cenote.tools.classpath.ApplicationClasspath.add(ApplicationClasspath.java:72)...
When running my jasperstarter command, the produced html file is blank that is output. If I choose xlsx, docx, pdf, etc. there are no issues, however I need to export in html format. I am using a jrxml with a jdbc connection to pull some data into a dashboard. I am using a docker container in a linux environment. Is this a known issue?
Thank you so very much. I have them and will do. Kind Regards Tony White On Sun, 21 Jul 2019, 15:42 "Volker Voßkämper", vosskaem@users.sourceforge.net wrote: Hi Toni, Java files are sourcecode and not usefull for you. You need the .jar files of all extension you use. Put this files into the ./jdbc directory inside the JasperStarter directory structure. All .jar files there are added to the classpath. Volker Java addins https://sourceforge.net/p/jasperstarter/discussion/general/thread/fdfb773bfc/?limit=25#22e4...
Hi Toni, Java files are sourcecode and not usefull for you. You need the .jar files of all extension you use. Put this files into the ./jdbc directory inside the JasperStarter directory structure. All .jar files there are added to the classpath. Volker
Hello Volker, Here's the video : https://drive.google.com/open?id=1fYcwjgbCvhfDCK-RUyuTHzeUpcjfjGx3 have a nice weekend, Sam
Hi Volker, Please help a relative java newbie :-) I am writing a process to compile and test the performance/rendering of hundreds of Jasperreports in a batch process (with logging and performance stats). This is for a large migration project. The issue is that the reports work fine in JasperStudio Pro but gag on an addin in JasperStarter. The reports are using FusionCharts and really don't like the reference to the Fusion xsd. I have the .java files (can probably find the .jar too) and a pom.xml....
Hi Sam, I hope your talk was a success. Are there any documents written or video from your talk? Best Regards Volker
sorry, you can use http://jasperstarter.cenote.de/usage.html#Command_files