1.7->1.7.1 Upgrade Statement printing error
Submitted by Ben_Charlton on Fri, 23/09/2016 - 13:13
I am doing a move for a client from Home -> Ec2
I thought I would be nice and throw in an upgrade from 1.7 - 1.7.1
However is anyone aware of issues that might cause a some xpath strings in jrxml files to fail in particular in statements:
This is hte printexpression they used on the subreport...it works in 1.7
new Boolean($F{shortName}.contains("customerAccountCharges") && !$F{shortName}.contains("customerAccountChargesCounter"))
Under 1.7.1
<exception> <type>org.openvpms.report.ReportException</type> <message>Failed to create report: Errors were encountered when compiling report expressions class file: 1. The type java.lang.CharSequence cannot be resolved. It is indirectly referenced from required .class files value = (java.lang.Boolean)(new Boolean(((java.lang.String)field_shortName.getValue()).contains("customerAccountCharges") && !((java.lang.String)field_shortName.getValue()).contains("customerAccountChargesCounter"))); //$JR_EXPR_ID=28$ <-------------------------------------------------------------------------------> 1 errors </message>
Re: 1.7->1.7.1 Upgrade Statement printing error
Incidently when I removed this expression the next error was:
The reason given was no item node..
Did we change something here in 1.7.1?
Re: 1.7->1.7.1 Upgrade Statement printing error
Invoice and Receipt printing works fine ...
Re: 1.7->1.7.1 Upgrade Statement printing error
Sorted its the Java 8 bug come back to bite me - I forgot 1.7 wasnt compatible