[teiid-issues] [JBoss JIRA] (TEIID-4869) Fix endpoint url for the "odata4service-as-a-datasource" in the embedded quickstart

Anu Saji (JIRA) issues at jboss.org
Tue Apr 25 21:20:00 EDT 2017


    [ https://issues.jboss.org/browse/TEIID-4869?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13398033#comment-13398033 ] 

Anu Saji commented on TEIID-4869:
---------------------------------

To access "AddressInfo" from below site ,that which is a "complex type" , what should be the syntax like
http://services.odata.org/TripPinRESTierService/(S(aayfdtyw1m3sewhrmqiklchf))/$metadata

This below SELECT statement works 
SELECT FirstName , LastName , Emails  FROM tripin.People where UserName='scottketchum'",true)
but fails with different options/combination of AddressInfo , Location , City, Address
Kindly advise 

> Fix endpoint url for the "odata4service-as-a-datasource"  in the embedded quickstart
> ------------------------------------------------------------------------------------
>
>                 Key: TEIID-4869
>                 URL: https://issues.jboss.org/browse/TEIID-4869
>             Project: Teiid
>          Issue Type: Bug
>          Components: Quick Starts
>    Affects Versions: 9.2
>         Environment: Additional info.
> - JBDS 9.1
> - translator-odata4-9.2.0.Alpha1.jar
>            Reporter: Anu Saji
>            Assignee: Kylin Soong
>            Priority: Minor
>             Fix For: 9.3
>
>
> The example quickstart  using  Odata4 Service  from emedded  example => 
> https://github.com/teiid/teiid-embedded-examples/tree/master/odata4service-as-a-datasource
> throws NPE [1]
> It currently uses  the endpoint url that is using version =>
> <edmx:Edmx Version="1.0">
> when the required is 
> <edmx:Edmx Version="4.0">
> src code 
> ~~~
> ...
> managedconnectionFactory.setEndPoint("http://services.odata.org/Northwind/Northwind.svc");
> ...
> ~~~
> [1]
> ~~~
> NFO: TEIID40118 VDB NorthwindVDB.1 added to the repository
> Exception in thread "main" java.lang.NullPointerException
> 	at org.teiid.translator.odata4.ODataMetadataProcessor.getMetadata(ODataMetadataProcessor.java:118)
> 	at org.teiid.translator.odata4.ODataMetadataProcessor.process(ODataMetadataProcessor.java:102)
> 	at org.teiid.translator.odata4.ODataExecutionFactory.getMetadata(ODataExecutionFactory.java:112)
> 	at org.teiid.translator.odata4.ODataExecutionFactory.getMetadata(ODataExecutionFactory.java:58)
> 	at org.teiid.query.metadata.NativeMetadataRepository.getMetadata(NativeMetadataRepository.java:96)
> 	at org.teiid.query.metadata.NativeMetadataRepository.loadMetadata(NativeMetadataRepository.java:62)
> 	at org.teiid.query.metadata.ChainingMetadataRepository.loadMetadata(ChainingMetadataRepository.java:55)
> 	at org.teiid.runtime.EmbeddedServer.loadMetadata(EmbeddedServer.java:811)
> 	at org.teiid.runtime.AbstractVDBDeployer.loadMetadata(AbstractVDBDeployer.java:210)
> 	at org.teiid.runtime.EmbeddedServer.deployVDB(EmbeddedServer.java:761)
> 	at org.teiid.runtime.EmbeddedServer.deployVDB(EmbeddedServer.java:702)
> 	at org.teiid.example.TeiidEmbeddedOData4ServiceDataSource.main(TeiidEmbeddedOData4ServiceDataSource.java:50)
> ~~~



--
This message was sent by Atlassian JIRA
(v7.2.3#72005)


More information about the teiid-issues mailing list