savyn Posted January 18, 2012 Share Posted January 18, 2012 Hello, I have Jasper Server 4.1 and had some issue with export to excel field type to string. I found with version 4.5 this is working and would like to upgrade from 4.1 to 4.5. The documentation explain about upgrade from 3.7 to 4.5. My current 4.1 is on MySQL db and i belive 4.5 will be postgres. What proceedure should I follow to upgrade to 4.5 (OS is ubuntu 10.04)Many thanksSavyn Link to comment Share on other sites More sharing options...
mgeise Posted January 24, 2012 Share Posted January 24, 2012 See chapter 8 of the install guide. If you are wanting to go from mysql to postgres, I would recommend using the import-export tool to export the repository from 4.1 and into 4.5. Link to comment Share on other sites More sharing options...
savyn Posted January 25, 2012 Author Share Posted January 25, 2012 Thank you. I actually installed 4.5 in parallel with 4.1 in a seperate directory and exported the repository and reimport into 4.5. So far everything is working well. I only have one error with a report which i am investigating The server has encountered an error. Please excuse the inconvenience.Error Message java.lang.ClassCastException: java.lang.Integer cannot be cast to java.math.BigDecimal Many thanksSavyn Link to comment Share on other sites More sharing options...
chicolinux Posted February 27, 2012 Share Posted February 27, 2012 Hello Jaspersonians,I'm also moving from 4.1 to 4.5 and when I try to import into 4.5 I get the following error:opt/jasperreports-server-cp-4.5.0-bin/buildomatic$ sudo ./js-import.sh --helpUsing CE setup./bin/js-import-export.sh: 64: java: not foundAny ideas???I'm running in paralell 4.1 and 4.5 for testing pourposes!! Best Regards.M GuiraoCode:opt/jasperreports-server-cp-4.5.0-bin/buildomatic$ sudo ./js-import.sh --helpUsing CE setup./bin/js-import-export.sh: 64: java: not found Link to comment Share on other sites More sharing options...
ramnik Posted February 27, 2012 Share Posted February 27, 2012 1. JAVA_HOME should be set before running the commands 2. you can follow the Instruction in install guide to upgrade from 4.1 -> 4.5 -> the simple instruction you can use is js-upgrade-samedb.sh and it should be all good to upgrade to 4.5thanksRamnik KaurLead QA Engineer Link to comment Share on other sites More sharing options...
mgeise Posted February 27, 2012 Share Posted February 27, 2012 Looks like you don't have java in your path. Link to comment Share on other sites More sharing options...
rpoillot Posted March 27, 2012 Share Posted March 27, 2012 I've faced this issue before: In Jasper4.5 you have to change some style expressions, because now it's Java who evaluate this instead of Groovy.In this case, if you take a look at your report you'll probably find expressions like "0", which means "false" in Groovy. Now you'll have to encapsulate this with the expression "new Boolean(a==0)" (for example) in order to make it work. In other words, you'll have to cast all of those kind of expressions.Hope this solve your problem. Greetings. Thank you. I actually installed 4.5 in parallel with 4.1 in a seperate directory and exported the repository and reimport into 4.5. So far everything is working well. I only have one error with a report which i am investigatingThe server has encountered an error. Please excuse the inconvenience.Error Messagejava.lang.ClassCastException: java.lang.Integer cannot be cast to java.math.BigDecimalMany thanksSavynPost Edited by rpoillot at 03/27/2012 20:49 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