[
https://jira.jboss.org/browse/TEIID-1109?page=com.atlassian.jira.plugin.s...
]
Ramesh Reddy resolved TEIID-1109.
---------------------------------
Resolution: Rejected
There isn't anything we can do about this. This is how data sources are designed. You
as the user need to *know* what properties that a data source requires to make a
connection. The JBoss AS template does not help either. If the template system was smart,
it could have reflectively looked up the setters in the data source and offered as data
source properties, but that is not the way they implemented the xa-template, nor does JOPR
supports that currently.
NPE Connecting to a Teiid DataSource (XA) Without Setting Expected
Properties
------------------------------------------------------------------------------
Key: TEIID-1109
URL:
https://jira.jboss.org/browse/TEIID-1109
Project: Teiid
Issue Type: Bug
Components: JDBC Driver
Reporter: Ted Jones
Assignee: Steve Hawkins
Fix For: 7.0
I created a datasource for a VDB with XA sources underlying. I didn't add any of the
required custom properties (server, host, etc) just used the default properties provided
by the datasource template. This resulted in the following when I tried to connect:
Caused by: java.lang.NullPointerException
at java.util.Hashtable.put(Hashtable.java:394)
at java.util.Properties.setProperty(Properties.java:143)
at org.teiid.jdbc.BaseDataSource.buildProperties(BaseDataSource.java:194)
at org.teiid.jdbc.TeiidDataSource.buildProperties(TeiidDataSource.java:106)
at org.teiid.jdbc.TeiidDataSource.buildEmbeddedProperties(TeiidDataSource.java:228)
at org.teiid.jdbc.TeiidDataSource.getConnection(TeiidDataSource.java:215)
at org.teiid.jdbc.BaseDataSource$1.createConnection(BaseDataSource.java:340)
at org.teiid.jdbc.XAConnectionImpl.getMMConnection(XAConnectionImpl.java:110)
at org.teiid.jdbc.XAConnectionImpl.getConnection(XAConnectionImpl.java:96)
at
org.jboss.resource.adapter.jdbc.xa.XAManagedConnection.<init>(XAManagedConnection.java:56)
at
org.jboss.resource.adapter.jdbc.xa.XAManagedConnectionFactory.newXAManagedConnection(XAManagedConnectionFactory.java:475)
at
org.jboss.resource.adapter.jdbc.xa.XAManagedConnectionFactory.getXAManagedConnection(XAManagedConnectionFactory.java:453)
... 32 more
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
https://jira.jboss.org/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira