AnsweredAssumed Answered

Unable to parse date

Question asked by erik.nilsson on Dec 7, 2015
Latest reply on May 30, 2018 by kevin1032020105

Im trying to Get JSON-data from http://opendata-download-warnings.smhi.se/api/alerts.json using the “Poll an External Website for JSON”- connector.

 

But as soon as I start reading data I get an error in the log-files before I even have the possibility to use any processors. The error message looks like this:

 

Unable to parse date: Sat, 05 Dec 2015 21:09:21 GMT. java.text.ParseException: Unparseable date: "Sat, 05 Dec 2015 21:09:21 GMT"  at
java.text.DateFormat.parse(DateFormat.java:357)[:1.7.0_76] at
com.esri.ges.transport.http.LastModifiedToDateFormatter.toDate(LastModifiedToDateFormatter.java:26)[272:com.esri.ges.framework.transport.http-transport:10.3.1] at
com.esri.ges.transport.http.HttpInboundTransport.onReceive(HttpInboundTransport.java:541)[272:com.esri.ges.framework.transport.http-transport:10.3.1] at
com.esri.ges.transport.http.HttpInboundTransport.getData(HttpInboundTransport.java:242)[272:com.esri.ges.framework.transport.http-transport:10.3.1] at
com.esri.ges.transport.http.HttpInboundTransport$WorkerThread.run(HttpInboundTransport.java:127)[272:com.esri.ges.framework.transport.http-transport:10.3.1]

 

The date format I am trying to read is formatted like this: 2015-12-05T21:09:29+01:00

How do I avoid the errors?

 

Im running GeoEvent Exteniosn ver 10.3.1 on Windows Server 2012 R2 Standard.

Outcomes