java.lang.RuntimeException: spec component provider is null

Discuss all problems you have with Servoy here. It might help to mention the Servoy version and Operating System version you are using

java.lang.RuntimeException: spec component provider is null

Postby swingman » Mon Jun 15, 2020 11:27 am

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.
Christian Batchelor
Certified Servoy Developer
Batchelor Associates Ltd, London, UK
http://www.batchelorassociates.co.uk

http://www.postgresql.org - The world's most advanced open source database.
User avatar
swingman
 
Posts: 1472
Joined: Wed Oct 01, 2003 10:20 am
Location: London

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

Postby swingman » Mon Jun 15, 2020 11:47 am

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...
Christian Batchelor
Certified Servoy Developer
Batchelor Associates Ltd, London, UK
http://www.batchelorassociates.co.uk

http://www.postgresql.org - The world's most advanced open source database.
User avatar
swingman
 
Posts: 1472
Joined: Wed Oct 01, 2003 10:20 am
Location: London

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

Postby jcompagner » Mon Jun 15, 2020 11:48 am

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
Johan Compagner
Servoy
User avatar
jcompagner
 
Posts: 8828
Joined: Tue May 27, 2003 7:26 pm
Location: The Internet

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

Postby lwjwillemsen » Mon Jun 15, 2020 1:15 pm

Also please fix the 2020.03 (LTS).
Lambert Willemsen
Vision Development BV
lwjwillemsen
 
Posts: 680
Joined: Sat Mar 14, 2009 5:39 pm
Location: The Netherlands

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

Postby swingman » Mon Jun 22, 2020 8:48 am

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.
Christian Batchelor
Certified Servoy Developer
Batchelor Associates Ltd, London, UK
http://www.batchelorassociates.co.uk

http://www.postgresql.org - The world's most advanced open source database.
User avatar
swingman
 
Posts: 1472
Joined: Wed Oct 01, 2003 10:20 am
Location: London

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

Postby jcompagner » Mon Jun 22, 2020 9:07 am

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)
Johan Compagner
Servoy
User avatar
jcompagner
 
Posts: 8828
Joined: Tue May 27, 2003 7:26 pm
Location: The Internet

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

Postby swingman » Mon Jun 22, 2020 3:03 pm

localhost:8080 was not running...
Christian Batchelor
Certified Servoy Developer
Batchelor Associates Ltd, London, UK
http://www.batchelorassociates.co.uk

http://www.postgresql.org - The world's most advanced open source database.
User avatar
swingman
 
Posts: 1472
Joined: Wed Oct 01, 2003 10:20 am
Location: London


Return to Discuss possible Issues and Bugs

Who is online

Users browsing this forum: No registered users and 4 guests