Jump to content
Changes to the Jaspersoft community edition download ×

getter for Boolean type


tortois

Recommended Posts

Hello,

 

Running compiled report I got following exception:

 

java.lang.NoSuchMethodException: Property 'localUser' has no getter method

at org.apache.commons.beanutils.PropertyUtils.getSimpleProperty(PropertyUtils.java:1162)

 

localUser is a java.lang.Boolean type field defined in a JavaBean - report uses JavaBean collection data source.

 

Problem is that getters for Boolean type fields in my data model are defined like:

Boolean isLocalUser()

while for the other types it's like:

String getUserName()

Unfortunately I'm not allowed to change Boolean type notation.

 

Anyone seen this problem before?

Any ideas how to solve this problem?

Is there a way to customize org.apache.commons.beanutils so it recognizes 'is' Boolean getters?

Link to comment
Share on other sites

  • Replies 2
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

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