Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

getData: parseDateTime returns Invalid format: "" #210

Closed
ghost opened this issue May 6, 2016 · 14 comments
Closed

getData: parseDateTime returns Invalid format: "" #210

ghost opened this issue May 6, 2016 · 14 comments

Comments

@ghost
Copy link

ghost commented May 6, 2016

ICE in a Docker container based on Jon Brouse's image used to work for months but now suddenly displays no graphs. The log shows an exception, similar to Issue 163 but the cause is different. The same happens when using Chrome and Firefox.

Log:

| Error 2016-05-06 09:37:25,018 [http-nio-8080-exec-2] ERROR errors.GrailsExceptionResolver - > IllegalArgumentException occurred when processing request: [POST] /ice/dashboard/getData
Invalid format: "". Stacktrace follows:
Message: Invalid format: ""
Line | Method
->> 945 | parseDateTime in org.joda.time.format.DateTimeFormatter

| 407 | doGetData in com.netflix.ice.DashboardController
| 321 | doCall . . . in com.netflix.ice.DashboardController$_closure11
| 1145 | runWorker in java.util.concurrent.ThreadPoolExecutor
| 615 | run . . . . . in java.util.concurrent.ThreadPoolExecutor$Worker
^ 745 | run in java.lang.Thread
1462527445271
| Error 2016-05-06 09:37:28,771 [http-nio-8080-exec-10] ERROR errors.GrailsExceptionResolver - > IllegalArgumentException occurred when processing request: [POST] /ice/dashboard/getData
Invalid format: "". Stacktrace follows:
Message: Invalid format: ""
Line | Method
->> 945 | parseDateTime in org.joda.time.format.DateTimeFormatter

| 407 | doGetData in com.netflix.ice.DashboardController
| 321 | doCall . . . in com.netflix.ice.DashboardController$_closure11
| 1145 | runWorker in java.util.concurrent.ThreadPoolExecutor
| 615 | run . . . . . in java.util.concurrent.ThreadPoolExecutor$Worker
^ 745 | run in java.lang.Thread
1462527448992

Browser console shows that in the request body of getData, "start" and "end" are empty.
{"isCost":true,"aggregate":"data","groupBy":"Product","consolidate":"monthly","start":"","end":"","breakdown":true,"showsps":false,"factorsps":false}

I'd be glad for any advice.

@rayanimesh
Copy link

Having same issue. Used to work fine till couple of days ago. If you make a POST call with start and end parameters - it works.

@zette
Copy link

zette commented May 6, 2016

I can confirm same behavior at my environment.
Modified POST works. I could not trace, place where start and end should be set in code.

@huit-tvachon
Copy link

It just occurred here too. It was working yesterday, and 18 hours later this is now happening. I think we are tripping something in JS which was lurking

@rayanimesh
Copy link

@huit-tvachon : Might be hightchats JS. Does anybody have this file downloaded for serving over https?

@huit-tvachon
Copy link

I'm trying pinning it to 4.2.1 in my ice.properties now. It was updated this morning to 4.2.2

I am using: https://code.highcharts.com/stock/4.2.1/highstock.js

@huit-tvachon
Copy link

@rayanimesh and @zette that fixed the issue

@rayanimesh
Copy link

@huit-tvachon Yes. Working now.

@ghost
Copy link
Author

ghost commented May 6, 2016

Thanks very much for these pointers. I restarted ICE with the older 4.2.1 and it's working here as well.

@interactivetech
Copy link

This worked for me as well. Thanks...just in time for an important demo!

@jonbrouse
Copy link
Contributor

thank you @jonhadfield I merged the change. There is now a v2.1 image with the change on the docker hub.

@ghaber
Copy link

ghaber commented May 8, 2016

Hi,

With version 4.2.4 of highstocks it is still working, change affecting ICE is 4.2.5, I guess in line 482:

line 482

  • function isNumber(n) {
  •    return typeof n === 'number';
    
  • }
  • var isNumber = Highcharts.isNumber = function isNumber(n) {
  •    return typeof n === 'number' && !isNaN(n);
    
  • };

line 676:
dateFormat = function (format, timestamp, capitalize) {

  •    if (!defined(timestamp) || isNaN(timestamp)) {
    
  •    if (!isNumber(timestamp)) {
         return defaultOptions.lang.invalidDate || '';
     }
     format = pick(format, '%Y-%m-%d %H:%M:%S');`
    

in particular in line 680 where invalidDate is said.

Yo can see whole differences of 4.2.4 and 4.2.5 in link (tab "File Changes" and look for highstock.src.js:

https://github.com/highcharts/highcharts/compare/master@%7B3%20weeks%7D...master#diff-72973c1959312806279557c1b7e06c35L1

A solution for now is to add the following line to ice.properties:

ice.highstockUrl=http://code.highcharts.com/stock/4.2.4/highstock.js

Regards

@liukedong
Copy link

See the same problem this morning. @ghaber thanks for your solution.

@pj-moviestarplanet
Copy link

We also had this problem since last week. Thanks to @ghaber for coming up with a solution that works.

Remember to docker compose rm the containers as a restart wont take into account the ice properties changes.

@pexaorj
Copy link

pexaorj commented May 30, 2016

I have the same problem, solved by @ghaber hotfix :) thanks a lot

@NitriKx NitriKx closed this as completed in 1b0fd8b Jun 7, 2017
NitriKx added a commit that referenced this issue Jun 7, 2017
* integration:
  Ignore the Region-Wide RIs when generating the reservation prices files
  Updated transitive dependencies for aws-java-sdk
  Update SDK to version 1.1.136 + Add org.json as a separate library since it has been removed from the AWS SDK
  Added more temporary build folders in the gitignore (+ OSX and FUSE)
  added initial .gitignore #3
  Added eu-west-2 and ca-central-1 + Fixed ap-south-1 which was not put in regionsByName
  Reverted changed on ap-southeast-* short names + Fixed ap-south-1 short name
  Update Region.java
  Add missing regions and zones
  Adding ap-southeast-2c
  Update aws-sdk to latest version
  Pin highcharts version. Closes #210
  Added region property for billing buckets to reference properly if v4 auth
  Added commons-io dependency
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

9 participants