[
https://issues.jboss.org/browse/TEIID-2678?page=com.atlassian.jira.plugin...
]
Ramesh Reddy resolved TEIID-2678.
---------------------------------
Labels: alpha1 (was: )
Fix Version/s: 8.4.1
8.6
Resolution: Done
1) The metadata building correctly constructed now from runtime metadata. Moved the EDM
metadata builder from teiid-odata project into odata-translator project.
2) in the metadata captured the original entity type, so that responses can be parsed
correctly from feed.
3) Added name space qualifier for OData specific metadata proeprties
4) Apache CXF was returning headers in ArrayList, previously with original http transport
it was returning String, fixed
5) Added new "ComplexType" and "ColumnGroup" metadata properties to
represent the embedded tables, instead of complex use "EntityType" leading to
confusion. This streamlined logic dealing with 1-1 matches where content is embedded in
the parent table
6) Key column matching code was using positional matches, rather than keys on whole.
Fixed.
7) Added returning 404 as no content available on odata request. Previously to accommodate
for this the code was swallowing any other errors
8) SAP Netweaver Gateway does not work CAPITAL logical operators (AND,OR) fixed to always
be lower case. Same with NULL. This is not part of odata spec, just idiosyncrasy with SAP
Gateway
9) Added unit tests for most of the above
Query against OData source throwing java.lang.NullPointerException
------------------------------------------------------------------
Key: TEIID-2678
URL:
https://issues.jboss.org/browse/TEIID-2678
Project: Teiid
Issue Type: Bug
Components: Misc. Connectors
Affects Versions: 8.4.1
Reporter: Van Halbert
Assignee: Ramesh Reddy
Priority: Critical
Labels: alpha1
Fix For: 8.4.1, 8.6
Queries against a deployed vdb (using odata translator) are throwing
java.lang.NullPointerException. The vdb is connecting to NetWeaver Flight test site .
Full log is attached along with vdb. Resource-adapter can be provided if needed. This
failure has been verified by two different users.
12:47:16,401 ERROR [org.teiid.CONNECTOR] (Worker1_QueryProcessorQueue13) Connector worker
process failed for atomic-request=t53q6HQwO5Rs.6.0.0: java.lang.NullPointerException
at
org.odata4j.format.xml.AtomFeedFormatParser.getEntitySet(AtomFeedFormatParser.java:304)
at org.odata4j.format.xml.AtomFeedFormatParser.parse(AtomFeedFormatParser.java:156)
at org.odata4j.format.xml.AtomFeedFormatParser.parse(AtomFeedFormatParser.java:44)
at org.teiid.translator.odata.BaseQueryExecution.parse(BaseQueryExecution.java:93)
at
org.teiid.translator.odata.BaseQueryExecution.executeWithReturnEntity(BaseQueryExecution.java:124)
at org.teiid.translator.odata.ODataQueryExecution.execute(ODataQueryExecution.java:108)
at org.teiid.dqp.internal.datamgr.ConnectorWorkItem.execute(ConnectorWorkItem.java:254)
[teiid-engine-8.4.1-redhat-2.jar:8.4.1-redhat-2]
It should also be noted that when previewing FlightCollection in Designer the following
error was produced. Not sure if it is related to the server NullPointer situation.
2:46:00,788 INFO [org.teiid.PROCESSOR] (Worker2_QueryProcessorQueue12) TEIID31105
Returing warning to client: TEIID17013 Wrong response from source with status 404 code
005056A509B11EE1B9A8FEC11C21D78E and message Resource not found for the segment
'flightDetails_distanceUnit'.
--
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:
http://www.atlassian.com/software/jira