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

SOAP Schedule request - java.lang.NumberFormatException: Invalid date/time


gillett.bob

Recommended Posts

Hi

Jasper server 4.7.1 comercial, Oracle 11g, on Windows 7

I 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/time

I 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.000Z

I have even wondered if there is a tag I am missing?

XML SOAP request included as attactment.

Cheers

Bob

 

Link to comment
Share on other sites

  • 3 weeks later...
  • Replies 5
  • Created
  • Last Reply

Top Posters In This Topic

  • 2 weeks later...

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

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

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

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