Jump to content

How to pass parameter for Timestamp field through rest service?


Recommended Posts

Hi,

  I am trying to pass value for the parameter of type java.sql.Timestamp through Rest service. If i check the jasper server log it throws error as 

 "Caused by: java.lang.ClassCastException: java.lang.Long cannot be cast to java.sql.Timestamp"

 How to pass the value? I am using JSON string in PUT option.

 

Link to comment
Share on other sites

  • Replies 2
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

Please refer to JasperReports Server Web Services Guide

"Both date-only and timestamp fields are given in the ISO date-time format such as 1997-01-01T04:05:06+02:00.

"For database columns that store a time and date that includes a time zone, such as “timestamp with time zone” in PostgreSQL, the result is not guaranteed to be in the same timezone as stored in the database. These dates and times are converted to the server’s time zone."

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