Jump to content

JS 3.7 CE - Report Error 'keepTogether'


manshack_one

Recommended Posts

I'm using keepTogether in iReport to keep a group from splitting on the first page.  It works perfectly and I get exactly what I need but the following error occurs if I try and run it on JS.  It compiles just fine in iReport 3.7.

java.lang.Exception: 1 - org.xml.sax.SAXParseException: cvc-complex-type.3.2.2: Attribute 'keepTogether' is not allowed to appear in element 'group'. 
    at com.jaspersoft.ireport.jasperserver.ws.WSClient.runReport(WSClient.java:403) 
    at com.jaspersoft.ireport.jasperserver.ws.WSClient.runReport(WSClient.java:320) 
    at com.jaspersoft.ireport.jasperserver.ReportRunner.run(ReportRunner.java:70) 
    at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:572) 
    at org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:997) 

Link to comment
Share on other sites

  • Replies 7
  • Created
  • Last Reply

Top Posters In This Topic

How can they be different versions?  I'm using iReport 3.7 and JS 3.7.  Here's a jdbc info report that might help. 

$P{REPORT_CONNECTION}.getMetaData().getDriverVersion() http://10.16.200.51:8081/jasperserver/reportimage?jrprint=27833405_1267626545716&image=px
http://10.16.200.51:8081/jasperserver/reportimage?jrprint=27833405_1267626545716&image=px
http://10.16.200.51:8081/jasperserver/reportimage?jrprint=27833405_1267626545716&image=px mysql-connector-java-5.1.5 ( Revision: ${svn.Revision} ) http://10.16.200.51:8081/jasperserver/reportimage?jrprint=27833405_1267626545716&image=px
http://10.16.200.51:8081/jasperserver/reportimage?jrprint=27833405_1267626545716&image=px
http://10.16.200.51:8081/jasperserver/reportimage?jrprint=27833405_1267626545716&image=px net.sf.jasperreports.engine.JasperReport.class.getPackage(). http://10.16.200.51:8081/jasperserver/reportimage?jrprint=27833405_1267626545716&image=px
http://10.16.200.51:8081/jasperserver/reportimage?jrprint=27833405_1267626545716&image=px 3.6.2-SNAPSHOT http://10.16.200.51:8081/jasperserver/reportimage?jrprint=27833405_1267626545716&image=px
http://10.16.200.51:8081/jasperserver/reportimage?jrprint=27833405_1267626545716&image=px
http://10.16.200.51:8081/jasperserver/reportimage?jrprint=27833405_1267626545716&image=px getClass().getResource("/com/mysql/jdbc/Driver.class").toString() http://10.16.200.51:8081/jasperserver/reportimage?jrprint=27833405_1267626545716&image=px
http://10.16.200.51:8081/jasperserver/reportimage?jrprint=27833405_1267626545716&image=px
http://10.16.200.51:8081/jasperserver/reportimage?jrprint=27833405_1267626545716&image=px jar:file:/opt/jasperserver-ce-3.7.0/apache-tomcat/webapps/jasperserver/WEB-
INF/lib/mysql-connector-java-5.1.5.jar!/com/mysql/jdbc/Driver.class
Link to comment
Share on other sites

If you have trouble with the upgrade, please start a new thread (as you already suggested).

The process should be easy:

  • Run js-export on the old system
  • Install the new one
  • Run js-import on the new system

That will indeed keep all of your reports, datasources, input controls, etc.

As a quick-fix you can simply replace the old jasperreports*.jar files in WEB-INF/lib with the newer ones. But the full upgrade would be better so that you're on a standard release.

Regards,
Matt

Link to comment
Share on other sites

Yes, you can drop the old repository database called "jasperserver" and let the installer create a new one. But I generally leave the old database as it is and create a new one. For example call it "jasperserver37". That makes it easy to quickly refer back to the old one just in case. The .war file install makes it easy to configure the name of the repository database.

Regards,
Matt

Link to comment
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now

×
×
  • Create New...