]
Barry LaFond resolved TEIIDDES-1526.
------------------------------------
Resolution: Done
Problem was the profile listener was being notified at the time the JDBC sources were
being requested. Because the
profile listener called "reload" the JDBC manager was shutdown and restarted
during the request for sources. Changed
so that start and shutdown are only called one time and reload just refreshes the sources
and drivers.
NPE In JdbcManagerImpl Starting With Clean Workspace And Running JDBC
Importer
------------------------------------------------------------------------------
Key: TEIIDDES-1526
URL:
https://issues.jboss.org/browse/TEIIDDES-1526
Project: Teiid Designer
Issue Type: Bug
Components: Import/Export
Affects Versions: 7.8
Environment: OS X 10.8.2, Designer teiid-8.x-upgrade branch
Reporter: Dan Florian
Assignee: Dan Florian
Fix For: 8.0
1. start Eclipse with a new workspace
2. open Designer perspective
3. create a model project
4. Import... -> Teiid Designer -> JDBC
5. Click Next and get this error
java.lang.NullPointerException
at org.teiid.designer.jdbc.JdbcManagerImpl.getJdbcSources(JdbcManagerImpl.java:322)
Turns out JdbcManagerImpl is being called by a different thread:
JdbcManagerImpl.shutdown() line: 668
JdbcManagerImpl.reload(IProgressMonitor) line: 596
JdbcManagerImpl$ProfileListener.profileAdded(IConnectionProfile) line: 696
InternalProfileManager.fireProfileAdded(IConnectionProfile) line: 1207
InternalProfileManager.addProfile(IConnectionProfile, boolean) line: 783
InternalProfileManager.addProfile(IConnectionProfile) line: 737
InternalProfileManager.createProfile(String, String, String, Properties, String,
boolean) line: 633
ProfileManager.createProfile(String, String, String, Properties, String, boolean)
line: 214
InternalProfileManager.getProfileInstance(String, String, Properties, List) line: 1588
InternalProfileManager.enableLocalDatabase(IConfigurationElement[], String, String,
String, String, String) line: 1426
InternalProfileManager.loadLocalRegisteredDatabases() line: 1363
InternalProfileManager.loadProfiles() line: 1070
InternalProfileManager.getProfiles(boolean) line: 150
InternalProfileManager.getProfilesByCategory(String, boolean) line: 200
ProfileManager.getProfilesByCategory(String) line: 88
JdbcManagerImpl.getJdbcSources() line: 318
JdbcSourceSelectionPage.createControl(Composite) line: 209
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: