Skip to main content



      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 05:14 Go to next message
Eclipse UserFriend
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 16:37 Go to previous messageGo to next message
Eclipse UserFriend
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] Tue, 17 September 2019 23:48 Go to previous message
Eclipse UserFriend
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.
Previous Topic:Column Mode inter-line tab
Next Topic:Cannot reach Marketplace in Photon
Goto Forum:
  


Current Time: Mon Jul 14 10:47:33 EDT 2025

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

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

Back to the top