Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » Java Development Tools (JDT) » Couldn't retain the state of InternalPlatform while using stop() and start()
Couldn't retain the state of InternalPlatform while using stop() and start() [message #1814737] Tue, 17 September 2019 09:14 Go to next message
Harshal Upadhye is currently offline Harshal UpadhyeFriend
Messages: 1
Registered: September 2019
Junior Member
Hi,

We are using stop() and start() methods of InternalPlatform class of eclipse.core.internal.runtime package.

Basically, we need to reset initialized flag for platform, then instantiate some classes and set the flag again.
We are getting NullPointerException while using createResource() in ExtendedResourceSet interface of eclipse.sphinx.emf.resource package.

Below is the trace,

NullPointerException occurred when invoking code from unknown plug-in: null.
java.lang.NullPointerException
at org.eclipse.sphinx.emf.resource.ResourceHandlerRegistry.readRegistry(ResourceHandlerRegistry.java:61)
at org.eclipse.sphinx.emf.resource.ResourceHandlerRegistry.init(ResourceHandlerRegistry.java:54)
at org.eclipse.sphinx.emf.resource.ResourceHandlerRegistry.getDescriptors(ResourceHandlerRegistry.java:84)
at org.eclipse.sphinx.emf.resource.ResourceHandlerRegistry.getHandler(ResourceHandlerRegistry.java:98)
at org.artop.aal.common.resource.impl.AutosarResourceFactoryImpl.installResourceHandler(AutosarResourceFactoryImpl.java:306)
at org.artop.aal.common.resource.impl.AutosarResourceFactoryImpl.initResource(AutosarResourceFactoryImpl.java:172)
at autosar40.util.Autosar40ResourceFactoryImpl.createResource(Autosar40ResourceFactoryImpl.java:121)
at org.eclipse.emf.ecore.resource.impl.ResourceSetImpl.createResource(ResourceSetImpl.java:434)
at org.eclipse.emf.ecore.resource.impl.ResourceSetImpl.createResource(ResourceSetImpl.java:423)
at models.AutosarFile.createFile(AutosarFile.java:63)


Note : we are using some AUTOSAR jars which interacts with emf packages.
Re: Couldn't retain the state of InternalPlatform while using stop() and start() [message #1814775 is a reply to message #1814737] Tue, 17 September 2019 20:37 Go to previous messageGo to next message
Stephan Herrmann is currently offline Stephan HerrmannFriend
Messages: 1853
Registered: July 2009
Senior Member
I don't see JDT in this, perhaps this is an EMF question?
Or is ExtendedResourceSet so specific that only sphinx experts can answer?
Re: Couldn't retain the state of InternalPlatform while using stop() and start() [message #1814779 is a reply to message #1814775] Wed, 18 September 2019 03:48 Go to previous message
Ed Merks is currently offline Ed MerksFriend
Messages: 33264
Registered: July 2009
Senior Member
This seems more of a Sphinx question. That project doesn't seem very active:

https://git.eclipse.org/c/sphinx/org.eclipse.sphinx.git/log/
https://www.eclipse.org/forums/index.php?t=thread&frm_id=171

Also, your stack trace doesn't seem very complete. It appears to croak here:

https://git.eclipse.org/c/sphinx/org.eclipse.sphinx.git/tree/plugins/org.eclipse.sphinx.emf/src/org/eclipse/sphinx/emf/resource/ResourceHandlerRegistry.java#n61

It's impossible to say why org.eclipse.sphinx.emf.Activator.getActivator() would return null. Perhaps this is being called during stop() and that method returns null at that point.

Best to use the debugger and to ask on the Sphinx forum. But if you want a fix, likely you'll need to participate as a committer or sponsor someone to do the work.


Ed Merks
Professional Support: https://www.macromodeling.com/
Previous Topic:Column Mode inter-line tab
Next Topic:Cannot reach Marketplace in Photon
Goto Forum:
  


Current Time: Sat Dec 14 16:53:00 GMT 2024

Powered by FUDForum. Page generated in 0.03424 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top