Jump to content
  • USer Defined Functions and code not recognized


    avernon
    Assigned User Massimo Rabbi
    CategoryBug report
    PriorityLow
    ReproducibilityNot Attempted
    ResolutionUnable to Reproduce
    SeverityMajor
    StatusClosed

    I have defined (correctly) a user defined function that is referred to in a JRXML file. IT works fine when I first create it.

    I also define some DSPs etc to fill the report. When I first create these, it is all fine.

    I exit Jaspersoft Studio and then restart it and for some reason JasperSoft Studio does not recognize my Java classes. I get errors like "The method xXxxxx is indefined for the time XXXXx". If I try to run a subreport with a specific DSP then it reports ClassNotFoundException.

    Magically if I go and play with the config files, I can trick Jaspersoft Studio into rebuilding the app and things start working again.

    I have not figured out however which particular configuration file I need to touch to make this happen.


    Attachments: issueDetails.zip

    User Feedback

    Recommended Comments

    Changed Status from New to Feedback Requested

    Changed Assigned User from - to @mrabbi


    Hi,do you have the "Build Automatically" option enabled? In order to let JSS see all the modifications that you perform during development you should re-compile the project/ws. So hit CTRL+B if this option is disabled, otherwise it is fine, cause the incremental build mechanism will take care of this.I gave a look to your error log and I found this occurrence: !MESSAGE Unable to create the function 'WEEK_COMMENCING' from class 'au.com.wp.corp.sys.corporate.mytime.report.MyTime'. See full stacktrace.!STACK 0java.util.MissingResourceException: Can't find resource for bundle java.util.PropertyResourceBundle, key Week.name at java.util.ResourceBundle.getObject(Unknown Source) at java.util.ResourceBundle.getString(Unknown Source) ....Can you verify that you have the related key in jasperreports_messages.properties?Regards,Massimo.P.S: If it's possible please attach the JRXML and accessory file/classes so we can further debug.
    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...