akthar.itzme Posted April 17, 2015 Share Posted April 17, 2015 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 More sharing options...
akthar.itzme Posted April 17, 2015 Author Share Posted April 17, 2015 Kindly help me as soon as possible. Link to comment Share on other sites More sharing options...
tchen Posted April 17, 2015 Share Posted April 17, 2015 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 More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now