gillett.bob Posted January 26, 2013 Share Posted January 26, 2013 HiJasper server 4.7.1 comercial, Oracle 11g, on Windows 7I am trying to schedule a job using SOAP. I have copied the example from the JasperReports-Server-Web-Services_guide with a couple of modifications. I am running it from SoapUI but I always get the same error whatever I do. The returned error is:-java.lang.NumberFormatException: Invalid date/timeI did wonder if this was a local issue so I ran getAllJobs and copied a return date from it (Note: this is the only service I have managed to make work!!!) but it is teh same as the one I am using.The date format in use is:- 2013-02-20T23:00:00.000ZI have even wondered if there is a tag I am missing?XML SOAP request included as attactment.CheersBob Link to comment Share on other sites More sharing options...
stasal Posted February 15, 2013 Share Posted February 15, 2013 Faced the same issue today. You need to use start date along with timezone (which should not be null and is to be set explicitly if startDate is specified). Or just omit timezone, start and end dates. Link to comment Share on other sites More sharing options...
gillett.bob Posted February 24, 2013 Author Share Posted February 24, 2013 Thanks for the reply, but I still cannot make it work. I've tried adding a timezone from another JS example:- Europe/Minsk I've tried setting the start time to nil and I've tried removing the simpletrigger, now of which results in a success! Any chance you could publish here the soap message that worked for you please? Thanks Bob Link to comment Share on other sites More sharing options...
gillett.bob Posted February 24, 2013 Author Share Posted February 24, 2013 I just tried to download and look at my example and it failed, so I am posting the code here:- <?xml version="1.0" encoding="UTF-8"?> /organizations/organization_1/performance/reports/sqlFrequency Label 3 Description 3 2013-02-20T23:00:00.000Z 1 Sales3 PDF /organizations/organization_1/performance/reports false false Link to comment Share on other sites More sharing options...
stasal Posted February 26, 2013 Share Posted February 26, 2013 Sure, this code works for me: http://pastebin.com/8C1i2EHW where reportUnitName is a valid report unit URI. Or, this version: http://pastebin.com/DmuHAv7F with timezone, start and end dates skipped works just fine too Link to comment Share on other sites More sharing options...
gillett.bob Posted February 26, 2013 Author Share Posted February 26, 2013 It seems it is actually that the server does not like fields set to nil, by commenting out several lines we got the thing to work. Below is the example I ran in SOAP UI, so if you are stuck try this!Bob <?xml version="1.0" encoding="UTF-8"?>/organizations/organization_1/performance/reports/sqlFrequencyLabel 5Description 41Sales7PDF/organizations/organization_1/performance/reportstruetrue[/code][/code] 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