mulcamd Posted July 20, 2011 Share Posted July 20, 2011 Hi I started fresh with JasperSoft Studio.I follow the installation guide for installing the Eclipse plug-in, see jasperforge.org/website/ireportwebsite/JSS%20Website/plugin_install.htmlVia the Help -> Install New Software I added the JasperSoft Studio plug-in and made my first report.Also I tested a report a made before with iReport, yet I get the same errors.I am using Indigo.=================So I thought, this could be because I use the plug-in installation method. So next I downloaded the complete installation package. But there I get the same error.Btw, I use a SQLite database. In the datasource I added the JAR file for SQLite at the bottom of the datasource dialog, where it says: "Jar Files Path". Code: Post Edited by mulcamd at 07/20/2011 20:25 Link to comment Share on other sites More sharing options...
jroberge Posted August 5, 2011 Share Posted August 5, 2011 Hello,On Ubuntu 10.04 LTS, I get the same error on both Jasper Studio standalone and the Eclipse plugin.On Windows, Jasper Studio standalone works out of the box.What is missing on Ubuntu?Thanks,José Link to comment Share on other sites More sharing options...
Giulio Toffoli Posted August 5, 2011 Share Posted August 5, 2011 May you post your jrxml? Thanks Giulio Link to comment Share on other sites More sharing options...
jroberge Posted August 5, 2011 Share Posted August 5, 2011 Here is a report created with Jasper Studio's wizard.Code:<?xml version="1.0" encoding="UTF-8"?><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="Cherry" language="groovy" pageWidth="595" pageHeight="842" columnWidth="535" leftMargin="20" rightMargin="20" topMargin="20" bottomMargin="20"> <style name="Title" forecolor="#FFFFFF" fontName="Times New Roman" fontSize="50" isBold="false" pdfFontName="Times-Bold"/> <style name="SubTitle" forecolor="#CCCCCC" fontName="Times New Roman" fontSize="18" isBold="false" pdfFontName="Times-Roman"/> <style name="Column header" forecolor="#666666" fontName="Times New Roman" fontSize="14" isBold="true" pdfFontName="Times-Roman"/> <style name="Detail" mode="Transparent" fontName="Times New Roman" pdfFontName="Times-Roman"/> <style name="Row" mode="Transparent" fontName="Times New Roman" pdfFontName="Times-Roman"> <conditionalStyle> <conditionExpression><![CDATA[$V{REPORT_COUNT}%2 == 0]]></conditionExpression> <style mode="Opaque" backcolor="#F0EFEF"/> </conditionalStyle> </style> <queryString language="SQL"> <![CDATA[select * from account_account]]> </queryString> <field name="name" class="java.lang.String"/> <field name="code" class="java.lang.String"> <fieldDescription><![CDATA[Code]]></fieldDescription> </field> <background> <band splitType="Stretch"/> </background> <title> <band height="132" splitType="Stretch"> <image> <reportElement x="456" y="0" width="99" height="132"/> <imageExpression><![CDATA["cherry.jpg"]]></imageExpression> </image> <frame> <reportElement mode="Opaque" x="0" y="0" width="451" height="95" backcolor="#000000"/> <staticText> <reportElement style="Title" x="0" y="0" width="370" height="66"/> <textElement> <font isBold="false"/> </textElement> <text><![CDATA[Cherry Title]]></text> </staticText> <staticText> <reportElement style="SubTitle" x="157" y="66" width="249" height="29"/> <textElement> <font size="22" isBold="false"/> </textElement> <text><![CDATA[Cherry SubTitle]]></text> </staticText> </frame> <frame> <reportElement mode="Opaque" x="0" y="100" width="451" height="32" forecolor="#000000" backcolor="#CC0000"/> <textField pattern="EEEEE dd MMMMM yyyy"> <reportElement x="307" y="12" width="144" height="20" forecolor="#FFFFFF"/> <textElement textAlignment="Right"> <font size="12"/> </textElement> <textFieldExpression><![CDATA[new java.util.Date()]]></textFieldExpression> </textField> </frame> </band> </title> <pageHeader> <band splitType="Stretch"/> </pageHeader> <columnHeader> <band height="26" splitType="Stretch"> <staticText> <reportElement style="Column header" x="0" y="7" width="277" height="18" forecolor="#000000"/> <textElement> <font isBold="false"/> </textElement> <text><![CDATA[name]]></text> </staticText> <staticText> <reportElement style="Column header" x="277" y="7" width="277" height="18" forecolor="#000000"/> <textElement> <font isBold="false"/> </textElement> <text><![CDATA[code]]></text> </staticText> </band> </columnHeader> <detail> <band height="18" splitType="Stretch"> <frame> <reportElement style="Row" mode="Opaque" x="0" y="0" width="555" height="18"/> <textField isStretchWithOverflow="true"> <reportElement style="Detail" positionType="Float" x="0" y="0" width="277" height="18"/> <textElement> <font size="14"/> </textElement> <textFieldExpression><![CDATA[$F{name}]]></textFieldExpression> </textField> <textField isStretchWithOverflow="true"> <reportElement style="Detail" positionType="Float" x="277" y="0" width="277" height="18"/> <textElement> <font size="14"/> </textElement> <textFieldExpression><![CDATA[$F{code}]]></textFieldExpression> </textField> </frame> </band> </detail> <columnFooter> <band height="7" splitType="Stretch"> <line> <reportElement positionType="FixRelativeToBottom" x="0" y="3" width="555" height="1"/> <graphicElement> <pen lineWidth="0.5" lineColor="#999999"/> </graphicElement> </line> </band> </columnFooter> <pageFooter> <band height="25" splitType="Stretch"> <frame> <reportElement mode="Opaque" x="0" y="1" width="555" height="24" forecolor="#D0B48E" backcolor="#000000"/> <textField evaluationTime="Report"> <reportElement style="Column header" x="513" y="0" width="40" height="20" forecolor="#FFFFFF"/> <textElement verticalAlignment="Middle"> <font size="10" isBold="false"/> </textElement> <textFieldExpression><![CDATA[" " + $V{PAGE_NUMBER}]]></textFieldExpression> </textField> <textField> <reportElement style="Column header" x="433" y="0" width="80" height="20" forecolor="#FFFFFF"/> <textElement textAlignment="Right" verticalAlignment="Middle"> <font size="10" isBold="false"/> </textElement> <textFieldExpression><![CDATA["Page "+$V{PAGE_NUMBER}+" of"]]></textFieldExpression> </textField> <textField pattern="EEEEE dd MMMMM yyyy"> <reportElement style="Column header" x="2" y="1" width="197" height="20" forecolor="#FFFFFF"/> <textElement verticalAlignment="Middle"> <font size="10" isBold="false"/> </textElement> <textFieldExpression><![CDATA[new java.util.Date()]]></textFieldExpression> </textField> </frame> </band> </pageFooter> <summary> <band splitType="Stretch"/> </summary></jasperReport> Link to comment Share on other sites More sharing options...
Giulio Toffoli Posted August 5, 2011 Share Posted August 5, 2011 jroberge, your file seems to work well on my Ubuntu. Are you using Jaspersoft Studio as plugin?Since the problem looks like a Groovy issue, could it be possible that you have some sort of classpath issue?The next week we will release JSS 1.0.1. You may try with it if the problem persists, or try the standalone version if you are using the plugin. This will help to isolate the problem Giulio Link to comment Share on other sites More sharing options...
jroberge Posted August 5, 2011 Share Posted August 5, 2011 Hello Giulio,I tried both the eclipse plugin and the standalone version. They both react the same. It does indeed seem to be a Groovy issue. I am not however a Java expert. How can I find if I have a classpath issue? Would you set it in /etc/environment? If yes, could you provide me with an example?Thanks. Link to comment Share on other sites More sharing options...
jroberge Posted August 6, 2011 Share Posted August 6, 2011 Giulio,Here is a summary of my latest efforts.I am runngin Ubuntu 10.04 LTS. On the official version of EcIipse (Version: 3.5.2) I tried installing the Groovy Plugin in order to try solving the "org.codehouse.groovy.control.MultipleCompilatonErrorsException: startup failed:" The plugin refuses to install because of a dependency issue.I downloaded the latest version of Eclipse (Version: 3.7.0) and tried installing the Groovy plugin. It did work. But I still get the same error message when I ask for a preview.Thanks for looking into the matter. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now