[
https://issues.jboss.org/browse/TEIIDDES-2268?page=com.atlassian.jira.plu...
]
Paul Richardson commented on TEIIDDES-2268:
-------------------------------------------
Hey [~gmackinnon]
I have a theory what the problem may be that you are running into and if I am right, it is
a Designer issue.
From the built plugin jars, can you inflate the contents of
org.teiid.runtime.client and see if it contains the file TeiidDB.xmi?
If so, can you
note the location of the file and what the location reference is to it listed in the
plugin.xml file of the same plugin?
My rationale:
1. Looking at the source of DatabaseDefinitionImpl.java (line 2014):
{code}
return this.databaseVendorDefinition.isAuthorizationIdentifierSupported();
{code}
The most likely culprit for the NPE is the databaseVendorDefinition
2. For this field not to be set when using the teiid driver, its possible that something
in the teiid driver's configuration is not being constructed. The teiidDB.xmi includes
the following:
{code}
<DBDefinition:DatabaseVendorDefinition xmi:version="2.0"
xmlns:xmi="http://www.omg.org/XMI"
xmlns:DBDefinition="http:///org/eclipse/datatools/modelbase/dbdefinition/dbdefinition.ecore"
vendor="Teiid" version="x.x.x" ...
{code}
3. When the teiidDB.xmi was migrated to the runtime.client plugin it was located to
src/org/teiid/runtime/client/database/teiidDB.xmi which gets built to the jar location
org/teiid/runtime/client/database/teiidDB.xmi (note no src) yet the plugin.xml still
references the former path.
I have pushed a
[
commit|https://github.com/phantomjinx/teiid-designer/commit/5aa83e3ccd41e...]
with this change. Would you mind applying it to your source, rebuilding and testing to
see if the same error occurs?
Regards
Paul
NPE An internal error occurred during: "Loading Core
provider".
---------------------------------------------------------------
Key: TEIIDDES-2268
URL:
https://issues.jboss.org/browse/TEIIDDES-2268
Project: Teiid Designer
Issue Type: Bug
Security Level: Public(Everyone can see)
Components: Datatools Integration
Affects Versions: 8.5, 8.6
Environment: windows 7, eclipse kepler 4.3.2, teiid designer 8.5/8.6
Reporter: Greg MacKinnon
Here is a representative stack trace. This had been observed in teiid designer 8.5. I
fetched the 8.6 teiid designer code, built and installed in on eclipse to workaround an
AuthenticationType issue and have observed this NPE there as well.
!ENTRY org.eclipse.core.jobs 4 2 2014-07-24 15:34:22.685
!MESSAGE An internal error occurred during: "Loading Core provider".
!STACK 0
java.lang.NullPointerException
at
org.eclipse.datatools.connectivity.sqm.internal.core.definition.isAuthorizationIdentifierSupported(DatabaseDefinitionImpl.java:2014)
at
org.eclipse.datatools.connectivity.sqm.server.internal.ui.explorer.providers.content.layout.vnode.ServerExplorerVNodeContentProviderNav.displayDatabaseChildren(ServerExplorerVNodeContentProviderNav.java:391)
at
org.eclipse.datatools.connectivity.sqm.server.internal.ui.explorer.providers.content.layout.AbstractOnDemandContentProviderNav.getChildren(AbstractOnDemandContentProviderNav.java:116)
at
org.eclipse.datatools.connectivity.sqm.server.internal.ui.explorer.providers.content.layout.AbstractOnDemandContentProviderNav.getChildren(AbstractOnDemandContentProviderNav.java:239)
at
org.eclipse.datatools.connectivity.sqm.server.internal.ui.explorer.providers.content.layout.AbstractLayoutProviderNav.getChildren(AbstractLayoutProviderNav.java:85)
at
org.eclipse.datatools.connectivity.sqm.server.internal.ui.explorer.providers.content.impl.ServerExplorerContentProviderNav.load(ServerExplorerContentProviderNav.java:153)
at
org.eclipse.datatools.connectivity.sqm.server.internal.ui.explorer.loading.LoadingJob.run(LoadingJob.java:43)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:53)
This occurs right after a call is made to load the definition.
--
This message was sent by Atlassian JIRA
(v6.2.6#6264)