"There was a problem loading the dashboard data...."


#1

Things were fine the last time I logged into webCore (several months ago) but today I received “There was a problem loading the dashboard data. The data shown below may be outdated; please log out if this problem persists.” after updating to the latest webCore from within IDE, making sure my IOS app is the latest, etc. If I login from my phone I can briefly see my pistons before the interface nags me multiple times for my password but after accepting it i get kicked out again after trying to open a piston. If I login from a PC I can’t see any pistons.

I rebooted my hub and have tried logging in from Chrome, IE, directly on my phone, and through the IOS app itself but still no luck. I also did a “Clean up and rebuild pistons” but no help.

Any ideas?


webCORE Dashboard Completely Broken. Please Help [UndeclaredThrowableException]
webCoRE Update v0.3.108.20180906 - restore pistons from backup file, bug fixes
#2

Log into ide, update WC smartapp, then try again


#3

Updating everything in the IDE was the first thing I did… I have a ton of hours in my pistons and now I can’t get to them.

WC version info:

  • Version history
    /
    public static String version() { return “v0.3.106.20180731” }
    /
  • 07/31/2018 >>> v0.3.106.20180731 - BETA M3 - Contact Book removal support

#4

Are you getting an error in the logs in the IDE on the webCoRE instance? Can you post those logs?


#5

So if I setup Live Logging within the IDE and then immediately get a code from the app and login via a PC web browser this is what I get:

540ad7cb-17cd-4b09-9532-3439ba42a62e 6:32:52 PM: error java.lang.NullPointerException: Cannot invoke method sort() on null object @line 2941 (getRoutineOptions)
540ad7cb-17cd-4b09-9532-3439ba42a62e 6:32:52 PM: error Dashboard: Authentication failed due to an invalid token
7a70f765-85b0-49a9-abb5-ded1cecc5122 6:32:47 PM: warn ║ Kill switch is active, aborting piston execution.
7a70f765-85b0-49a9-abb5-ded1cecc5122 6:32:47 PM: error ║ Error while getting runtime data: java.lang.NullPointerException: Cannot invoke method sort() on null object @line 2941 (getRoutineOptions)
59f6a2e6-c135-4831-8943-ab5a624429a0 6:32:47 PM: warn ║ Kill switch is active, aborting piston execution.
59f6a2e6-c135-4831-8943-ab5a624429a0 6:32:47 PM: error ║ Error while getting runtime data: java.lang.NullPointerException: Cannot invoke method sort() on null object @line 2941 (getRoutineOptions)
387307eb-4942-4978-aeb4-86bdf280a535 6:32:47 PM: warn ║ Kill switch is active, aborting piston execution.
387307eb-4942-4978-aeb4-86bdf280a535 6:32:47 PM: error ║ Error while getting runtime data: java.lang.NullPointerException: Cannot invoke method sort() on null object @line 2941 (getRoutineOptions)
540ad7cb-17cd-4b09-9532-3439ba42a62e 6:32:47 PM: error Dashboard: Authentication failed due to an invalid token

If I then clear the log then try to login through the IOS app directly I get these log entries;

540ad7cb-17cd-4b09-9532-3439ba42a62e 6:34:40 PM: error java.lang.NullPointerException: Cannot invoke method sort() on null object @line 2941 (getRoutineOptions)
540ad7cb-17cd-4b09-9532-3439ba42a62e 6:34:31 PM: debug getChildDevices(false), children=1
387307eb-4942-4978-aeb4-86bdf280a535 6:34:30 PM: warn ║ Kill switch is active, aborting piston execution.
387307eb-4942-4978-aeb4-86bdf280a535 6:34:30 PM: error ║ Error while getting runtime data: java.lang.NullPointerException: Cannot invoke method sort() on null object @line 2941 (getRoutineOptions)
7a70f765-85b0-49a9-abb5-ded1cecc5122 6:34:30 PM: warn ║ Kill switch is active, aborting piston execution.
7a70f765-85b0-49a9-abb5-ded1cecc5122 6:34:30 PM: error ║ Error while getting runtime data: java.lang.NullPointerException: Cannot invoke method sort() on null object @line 2941 (getRoutineOptions)
59f6a2e6-c135-4831-8943-ab5a624429a0 6:34:30 PM: warn ║ Kill switch is active, aborting piston execution.
59f6a2e6-c135-4831-8943-ab5a624429a0 6:34:30 PM: error ║ Error while getting runtime data: java.lang.NullPointerException: Cannot invoke method sort() on null object @line 2941 (getRoutineOptions)
540ad7cb-17cd-4b09-9532-3439ba42a62e 6:34:30 PM: error java.lang.NullPointerException: Cannot invoke method sort() on null object @line 2941 (getRoutineOptions)
540ad7cb-17cd-4b09-9532-3439ba42a62e 6:34:29 PM: debug getChildDevices(false), children=1

Doesn’t matter which web browser or fresh computer I login from that was never logged in before.


#6

Try going in to the SmartThings app and add at least one routine on the Automation tab. The error shown is a bit of code that expects to load your routines but it seems you may not have any. If that is the case I’ll fix this in the next release so that others do not hit the same error.


#7

I never created a routine under the Automation tab so I just tried to hit the “Add a Routine” button.

At the top of the App I get “An unexpected error occurred” in red. Now that’s even stranger… Isn’t that a smart things feature / issue? Nothing shows in the IDE log when the error occurs. It errors / is repeatable 100% of the time. Do I have a ST bug / problem now?

Thanks again,

Domenic


#8

Yikes! I can give you a patch for the routine issue in webCoRE but I’m afraid this will be something to contact SmartThings for a look at your account. They should be able to identify any root causes or other issues on your account. I believe everyone starts out with a few default routines so it’s strange to not have any.


#9

I just called Samsung and I got a real good tech that said he is a webCore user!

He instantly noticed something weird in that as we discovered I had no Automation routines. After about five seconds he did something on his end that corrected that issue but unfortunately didn’t fix my webCore problem.

He was monitoring the IDE logging when I tried to login to my webCore and the below set of errors were thrown. He said that just as the logs say the problem is with authentication failing due to an invalid token but doesn’t know why / how webCore is no longer able to talk to my account. He suggested that if I could somehow “reset” my authentication through webCore and get a new initial handshake to re-establish proper token & security exchange that would probably fix everything.

So how do we do that?

540ad7cb-17cd-4b09-9532-3439ba42a62e 5:36:53 PM: error java.lang.NullPointerException: Cannot invoke method sort() on null object @line 2941 (getRoutineOptions)
540ad7cb-17cd-4b09-9532-3439ba42a62e 5:36:53 PM: error Dashboard: Authentication failed due to an invalid token
59f6a2e6-c135-4831-8943-ab5a624429a0 5:36:47 PM: warn ║ Kill switch is active, aborting piston execution.
59f6a2e6-c135-4831-8943-ab5a624429a0 5:36:47 PM: error ║ Error while getting runtime data: java.lang.NullPointerException: Cannot invoke method sort() on null object @line 2941 (getRoutineOptions)
7a70f765-85b0-49a9-abb5-ded1cecc5122 5:36:47 PM: warn ║ Kill switch is active, aborting piston execution.
7a70f765-85b0-49a9-abb5-ded1cecc5122 5:36:47 PM: error ║ Error while getting runtime data: java.lang.NullPointerException: Cannot invoke method sort() on null object @line 2941 (getRoutineOptions)
387307eb-4942-4978-aeb4-86bdf280a535 5:36:47 PM: warn ║ Kill switch is active, aborting piston execution.
387307eb-4942-4978-aeb4-86bdf280a535 5:36:47 PM: error ║ Error while getting runtime data: java.lang.NullPointerException: Cannot invoke method sort() on null object @line 2941 (getRoutineOptions)
540ad7cb-17cd-4b09-9532-3439ba42a62e 5:36:47 PM: error Dashboard: Authentication failed due to an invalid token


Problem Loading Dashboard Data
#10

Regarding the Kill switch is active part, check your webCoRE smartapp inside the ST app, Go to Settings, scroll down and make sure Disable all pistons is not enabled.


#11

SmartThings Classic app and the new Samsung app cannot have the same password. Change your password in the Classic app then log into the IDE with the new password. You will notice that there are now two IDE’s. One for classic and one for the new Samsung. if you open up another tab you can sign into both at the same time as long as the passwords are different


#12

My “webcCore password” (i.e. anytime the webCore app or HTML page asks for a password) is the SAME as my ST IDE password allays - right? With this question in mind here is what just changed / is happening now.

I went into the ST classic app and changed my ST password & verified it was changed by also logging into the web based IDE (I don’t use the new app and don’t completely understand what they are doing with the two although I have the app on my phone - just never logged into it or set it up).

I then brought up the IDE logging page while I fired up the webCore IOS app. When prompted for my password within the app I first entered my NEW IDE password and got these REDUCED number of errors in the log after being rejected for login and bouncing back to the password prompt;

540ad7cb-17cd-4b09-9532-3439ba42a62e 7:26:54 PM: error Dashboard: Authentication failed due to an invalid PIN
540ad7cb-17cd-4b09-9532-3439ba42a62e 7:26:54 PM: error Dashboard: Authentication failed due to an invalid token

I then tried my OLD IDE password and get this slightly different two errors.

540ad7cb-17cd-4b09-9532-3439ba42a62e 7:27:30 PM: error java.lang.NullPointerException: Cannot invoke method sort() on null object @line 2941 (getRoutineOptions)
540ad7cb-17cd-4b09-9532-3439ba42a62e 7:27:30 PM: error Dashboard: Authentication failed due to an invalid token

Any other ideas on what is going on?

UPDATE:
I also just tried to login to webCore through Chrome on my PC and BEFORE being prompted for a password got these errors;

59f6a2e6-c135-4831-8943-ab5a624429a0 7:41:37 PM: warn ║ Kill switch is active, aborting piston execution.
59f6a2e6-c135-4831-8943-ab5a624429a0 7:41:37 PM: error ║ Error while getting runtime data: java.lang.NullPointerException: Cannot invoke method sort() on null object @line 2941 (getRoutineOptions)
387307eb-4942-4978-aeb4-86bdf280a535 7:41:37 PM: warn ║ Kill switch is active, aborting piston execution.
387307eb-4942-4978-aeb4-86bdf280a535 7:41:37 PM: error ║ Error while getting runtime data: java.lang.NullPointerException: Cannot invoke method sort() on null object @line 2941 (getRoutineOptions)
7a70f765-85b0-49a9-abb5-ded1cecc5122 7:41:37 PM: warn ║ Kill switch is active, aborting piston execution.
7a70f765-85b0-49a9-abb5-ded1cecc5122 7:41:37 PM: error ║ Error while getting runtime data: java.lang.NullPointerException: Cannot invoke method sort() on null object @line 2941 (getRoutineOptions)
540ad7cb-17cd-4b09-9532-3439ba42a62e 7:41:37 PM: error Dashboard: Authentication failed due to an invalid token

When then entering my NEW / CURRENT password these additional errors were then returned;

387307eb-4942-4978-aeb4-86bdf280a535 7:42:18 PM: warn ║ Kill switch is active, aborting piston execution.
387307eb-4942-4978-aeb4-86bdf280a535 7:42:18 PM: error ║ Error while getting runtime data: java.lang.NullPointerException: Cannot invoke method sort() on null object @line 2941 (getRoutineOptions)
540ad7cb-17cd-4b09-9532-3439ba42a62e 7:42:18 PM: error Dashboard: Authentication failed due to an invalid PIN
540ad7cb-17cd-4b09-9532-3439ba42a62e 7:42:18 PM: error Dashboard: Authentication failed due to an invalid toke

Lastly I checked the webCore settings within the ST app and no - Disable all pistons isn’t activated. I do recall however I had a single piston disabled back when I could get in to see anything.


Cannot load dashbord after updating
There was a problem loading the dashboard data.... Unable to load webcore dashboard
#13

The webcore security password and the IDE password are two completely separate passwords. You can reset the webcore password in the ST app in Automation: your webcore instance: settings: security.


#14

All fixed!

Changed my webCore password after also changing the ST pw. This plus whatever magic Samsung tech support did fixed everything.

Many thanks to everyone for all of the help.

Domenic


#15

A workaround for this NullPointerException was just released in v0.3.108.20180906


#16

I don’t understand the solution to the dashboard issue?

I’ve had no problems over the past year, but upon updating via the IDE (v0.3.104.20180323) all my pistons started acting up. When I try to log in, I get the problem loading the dashboard error and I’m kicked back out.

I’ve changed my webcore password. I’ve added a single routine.

This is the error from the log:

11:07:58 AM: error groovy.lang.MissingMethodException: No signature of method: script_app_49daeabc5486a6bee0b384533eb113d04c959b4c86c3685fad580ad41d39e497.listAvailableContacts() is applicable for argument types: (java.lang.Boolean) values: [false] @line 1743 (listAvailableContacts)

Edit: I just ended up wiping it out and re-installing from scratch. All set.


#17

I am getting the same “There was a problem loading the dashboard data” error. I have been a Webcore user for a few years. I recently switched from an android to iphone and wanted to update my pistons that have a presence dependency to my new phone and I cant get in.

This is the screen I get stuck on… It says \ loading… in the top left forever.

Here is a snapshot from the IDE. I am not sure if these errors are webcore related or not but the occur around the same time I was registering a browser and authenticating.


#18

Please see