Eclipe Plugin

0

I'm using the Jaspersoft Studio Elipse plugin version 1.0.4.  When I go to preview a report, 9 times out of 10 it fails with the errors shown below.  What is strange, is if I keep clicking between design view and preview view, eventually the error will stop and the preview will load correctly.  I tried to uninstall and reinstall the plugin, but that didn't work.  I'm not really sure what to try.  Has anyone else seen this?

 

11/25/11 11:19 AM - Start
11/25/11 11:19 AM - Start compiling
11/25/11 11:19 AM - Errors were encountered when compiling report expressions class file:
org.codehaus.groovy.control.MultipleCompilationErrorsException: startup failed:
calculator_Blank32A4_1322237975082_786391: 18: unable to resolve class JREvaluator
 @ line 18, column 1.

[last line repeated like 200 times]

calculator_Blank32A4_1322237975082_786391: 218: unable to resolve class JRFillVariable
 @ line 218, column 31.
157 errors

net.sf.jasperreports.engine.JRException: Errors were encountered when compiling report expressions class file:
org.codehaus.groovy.control.MultipleCompilationErrorsException: startup failed:
calculator_Blank32A4_1322237975082_786391: 18: unable to resolve class JREvaluator

kstevens715's picture
Joined: Nov 16 2011 - 11:42am
Last seen: 6 years 5 months ago

2 Answers:

0

I was using Ubuntu 11.10 when I originally posted this problem.  This weekend I installed Arch Linux and I'm getting the same exact error.  I've tried OpenJDK and Oracle Java, different builds of Eclipse and a bunch of little random things... still can't get past this error.  If I install Jaspersoft Studio standalone, everything works fine.  But it would be so much nicer to work from within Eclipse.  I'm sure it's something small.

kstevens715's picture
Joined: Nov 16 2011 - 11:42am
Last seen: 6 years 5 months ago
0

Well, I was able to get the previewer to work 100% of the time by switching the definition of the report to use Java instead of Groovy.  I spent three days trying to fix it, and it was this simple lol.  Although, it would still be really nice to get it working using Groovy, but at this point I don't really care as I'm at least just starting out with Jasper so I don't have much work that will need to be changed at this point.

<jasperReport xmlns="http://jasperreports.sourceforge.net/jasperreports" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://jasperreports.sourceforge.net/jasperreports http://jasperreports.sourceforge.net/xsd/jasperreport.xsd" name="Blank A4" language="groovy" pageWidth="595" pageHeight="842" columnWidth="555" leftMargin="20" rightMargin="20" topMargin="20" bottomMargin="20">

to

<jasperReport xmlns="http://jasperreports.sourceforge.net/jasperreports" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://jasperreports.sourceforge.net/jasperreports http://jasperreports.sourceforge.net/xsd/jasperreport.xsd" name="Blank A4" language="java" pageWidth="595" pageHeight="842" columnWidth="555" leftMargin="20" rightMargin="20" topMargin="20" bottomMargin="20">

kstevens715's picture
Joined: Nov 16 2011 - 11:42am
Last seen: 6 years 5 months ago
Feedback
randomness