[#11116] - Getting Error while accessing JRXML from Java

Category:
Bug report
Priority:
Urgent
Status:
New
Project: Severity:
Minor
Resolution:
Open
Component: Reproducibility:
Always
Assigned to:
0

Hi Jasper Community Team,

I am getting following Error1 form java side, while calling JRXL in my java code. JRXML file i designed in iReport(attached is my JRXML - just Helloworld). Following are some possibilities i tried.

1. Added commons-javaflow.java(v-20060411) and removed Jasperreport.jar.
2. Included both jars(javaflow and jasperreport)

My Environment is
Java Version : 1.7
ioReport : 3.6.2
jars included in my prj :commons-beanutils 1.9.0, commons-collections-3.2.1, commons-digested-2.1, commons-logging 1.1.1, itextpdf-5.5, itext-pdfa-5.5,
jasperreport-6.0.0, groovy-all-2.0.1, commons-javaflow-20060411.

I tried to access respective jasper from java at the time i'm getting MalformedByteSequenceException: Invalid byte 1 of 1-byte UTF-8 sequence exception.
So please suggest on above.

Error1 : Exception in thread "main" java.lang.ExceptionInInitializerError
at org.codehaus.groovy.classgen.Verifier.<clinit>(Verifier.java:55)
at org.codehaus.groovy.control.CompilationUnit.<init>(CompilationUnit.java:148)
at org.codehaus.groovy.control.CompilationUnit.<init>(CompilationUnit.java:117)
at org.codehaus.groovy.control.CompilationUnit.<init>(CompilationUnit.java:109)
at net.sf.jasperreports.compilers.JRGroovyCompiler.compileUnits(JRGroovyCompiler.java:90)
at net.sf.jasperreports.engine.design.JRAbstractCompiler.compileReport(JRAbstractCompiler.java:201)
at net.sf.jasperreports.engine.JasperCompileManager.compile(JasperCompileManager.java:354)
at net.sf.jasperreports.engine.JasperCompileManager.compile(JasperCompileManager.java:340)
at net.sf.jasperreports.engine.JasperCompileManager.compileReport(JasperCompileManager.java:605)
at core.practice.swings.JasperHelloWorld.main(JasperHelloWorld.java:40)
Caused by: java.lang.NullPointerException
at org.codehaus.groovy.ast.ClassHelper.makeCached(ClassHelper.java:128)
at org.codehaus.groovy.ast.ClassHelper.<clinit>(ClassHelper.java:62)
... 10 more

AttachmentSize
Binary Data firstreport.jrxml1.58 KB
v3.6.2
iReport Designer
venkat.chindukuri's picture
Joined: Aug 19 2018 - 6:16am
Last seen: 7 months 3 days ago
Feedback
randomness