Jump to content
We've recently updated our Privacy Statement, available here ×

error: unable to get field value


mtassinari

Recommended Posts

Hi everybody,

I've just encountered this problem: while trying to compile a report I'm getting this error

javax.servlet.ServletException: net.sf.jasperreports.engine.JRException: Unable to get value for field 'data_ultima_revisione' of class 'java.sql.Date'

The strange thing is that nowhere in my report there is a field named "data_ultima_revisione", nor is it present in a query.

Could the problem happen if I have a "SELECT *" in a query, and the field data_ultima_revisione is declared as "date" on the database but has an invalid value? Even if the field is not list in the report fields list?

 

Thanks in advance for your help.

Link to comment
Share on other sites

  • 2 years later...
  • Replies 3
  • Created
  • Last Reply

Top Posters In This Topic

I'm having the same problem, with a date field in a MySQL database.  I filtered out the null values to determine if that was the problem but am still getting the error.  In MySQLWorkbench an example of a value in the problem field is '1962-06-03'.  Why would that be a problem for JasperReports?

Link to comment
Share on other sites

  • 2 weeks later...

mtassinari,

Seems like you answered your own question. The field, data_ultima_revisione, you mentioned does not match a Jasper namespace. Try select the particular fields you need and not "select * " and see if the error goes away.

mmatassa,

You don't have the same problem and should probably post your own question. Riders like this usually don't get good response.

Good Luck to both of you.

Link to comment
Share on other sites

  • 4 years later...

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