[2.4.0.144] can't edit app code [C7]

I obviously wrote something stupid while coding up a custom app and now none of the app instances will load; getting this error: java.lang.NoClassDefFoundError: Could not initialize class

I think the problem is I was calling a common method from within a @Field static final Map declaration... :man_facepalming:

I managed to remove the app instances by going directly to their status page and hitting remove (note: really missing the old gear icon in the app list for this particular case!).

Is there an equivalent shortcut or endpoint I could use to delete the code from the hub @gopher.ny ? When I try to access the code page, I get a blank screen, so no remove button, no errors in logs

Ok, found it: http://hubip/app/edit/deleteJson/[app_id]

1 Like

App status is still there, it's just the "i" on the far right now. :slight_smile:

Did you try a hub reboot before trying to delete the offending code again? That's helped me when I've gotten myself stuck a few times, though never with the particular problem you're noting, which might very well come back when the app code gets re-initialized on hub reboot...

Otherwise, glad you found a way out!

2 Likes

I'm just an old horse not finding the stable that's been moved over 3ft, apparently. Thanks.

Yeah I did, but no dice. Thanks for the suggestion.

Lesson learned : don't call common methods to initialize a @Field static final Map value...

1 Like

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.