Page 1 of 1

java.lang.RuntimeException: spec component provider is null

PostPosted: Mon Jun 15, 2020 11:27 am
by swingman
Hi all,

I'm on Servoy 2020.03, Max OS X latest Catalina, NG-Client

I'm getting the dreaded
Code: Select all
2020-06-15 07:44:31,709 WARN [main] org.sablo.specification.WebComponentSpecProvider - Called WebComponentSpecProvider.getSpecProviderState() on a none initialzed provider, this can be just a problem in startup, returning an empty state [ ]
java.lang.RuntimeException: spec component provider is null


and Developer freezes on startup. I have found that going to my workspace,

.metadata/.plugins/org.eclipse.e4.workbench

and deleting

workbench.xmi

get developer running again. Not sure for how long...
Is this the right way to go about solving the problem?

Symptoms before this happens:
I edit forms, like renaming elements and the new element names are not picked up by the javascript code editor. It still uses the old names.

Re: java.lang.RuntimeException: spec component provider is n

PostPosted: Mon Jun 15, 2020 11:47 am
by swingman
Note sure if this is connected: I do get a warning in Developer that it is failing to read .DS_Store as a package...
Here is my ng_packages directory:
Code: Select all
-rw-r--r--@  1 chrisb  staff     6148 15 Jun 07:48 .DS_Store
-rw-r--r--@  1 chrisb  staff    46076 10 Jun 12:34 12grid.zip
-rw-r--r--@  1 chrisb  staff   177255 10 Jun 12:34 bootstrapcomponents.zip
-rw-r--r--@  1 chrisb  staff    86725 10 Jun 12:34 bootstrapextracomponents.zip
-rw-r--r--@  1 chrisb  staff  1269293 10 Jun 12:34 fontawesome.zip


I had deleted the .DS_Store earlier to get rid of the error message and MacOS seems to have created a new one...

Re: java.lang.RuntimeException: spec component provider is n

PostPosted: Mon Jun 15, 2020 11:48 am
by jcompagner
When it freezes make a stackdump from the admin page
so we can have a look what is going on

Als please test the 2020.06 RC (will release an RC2 soon) to see how it is there.

that warning can be ignored, that is something from the Solution Explorer tree and already is fixed in 2020.06

Re: java.lang.RuntimeException: spec component provider is n

PostPosted: Mon Jun 15, 2020 1:15 pm
by lwjwillemsen
Also please fix the 2020.03 (LTS).

Re: java.lang.RuntimeException: spec component provider is n

PostPosted: Mon Jun 22, 2020 8:48 am
by swingman
Code: Select all
When it freezes make a stackdump from the admin page
so we can have a look what is going on


The Developer is frozen on startup before it has opened any windows so there is no admin page to get a stack trace from...

If I hide the solution inside a folder, Developer opens and creates a new empty folder with the solution name. Then I can switch workspace into some other empty folder, unhide my solution and switch workspace back into my solution. However, the next time I try opening Servoy Developer it freezes again and I have to do the same thing again.

Deleting workbench.xmi clears the issue.

I suspect it will happen again when I add or remove web components from the solution or any of the modules. Yesterday I removed two components that were not needed in a batch processor module -- they were correctly flagged as duplicates.

Re: java.lang.RuntimeException: spec component provider is n

PostPosted: Mon Jun 22, 2020 9:07 am
by jcompagner
Are you sure your admin page doesn't work?
if you wait a bit?
Just go into your browser to localhost:8080 (or if you changed the default port number go to that changed port number)
You don't need a developer UI, it could be that the internal tomcat is already getting up (maybe wait a bit)

Re: java.lang.RuntimeException: spec component provider is n

PostPosted: Mon Jun 22, 2020 3:03 pm
by swingman
localhost:8080 was not running...