Jump to content
  • JRC Ant Task breaks with Groovy 1.5


    johnsonb
    Assigned User teodord
    CategoryBug report
    PriorityHigh
    ReproducibilityAlways
    ResolutionFixed
    SeverityMajor
    StatusClosed

    I just upgraded to the latest stable groovy revision (1.5) and began having problems with the JRC no longer compiling JRXML where Groovy has been chosen as the scripting language. The actual error message is:

     

    java.lang.NoSuchMethodError: org.codehaus.groovy.control.CompilerConfiguration.setUseNewGroovy(Z)V

     

    I dug deep enough to discover that while the method existed in Groovy 1.0, it no longer exists in Groovy 1.5.



    User Feedback

    Recommended Comments

    Hi,

     

    I think Groovy has a reputation of changing API very often and without warning.

    I don\'t think we are going to upgrade to newer Groovy soon, so the solution for you is to create a new report compiler by making a copy of the one in JR.

    You then make the required fix so that is compatible with the Groovy version you want and then register it with all reports that have groovy as expression language, by modifying the "net.sf.jasperreports.compiler.groovy" in the jasperreports.properties file.

     

    This way you can use the Groovy you want, while still being able to upgrade to newer JR and keep your enhancement in place.

     

    I hope this helps.

    Teodor

     

    Link to comment
    Share on other sites

    Hi,

     

    We upgraded to Groovy 1.5.5 on SVN.

    Now let\'s keep our fingers crossed and hope it will work.

    With Groovy you never know what changed.

     

    Please provide early feedback if you can.

     

    Thanks,

    Teodor

     

    Link to comment
    Share on other sites

    Teodor,

     

    I checked out the latest SVN trunk, and it seems to work. The problem is I was really hoping to have a stable point revision release that I could incorporate into our project. Is there a TAG out there that I can go and get that has the change?

     

    Thanks for your help.

     

    -Benjamin

    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...