olingo-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "rafiqkattangere (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (OLINGO-861) MetaDataParser unable to build EdmProvider from Edmx files with references
Date Wed, 08 Mar 2017 18:25:38 GMT

    [ https://issues.apache.org/jira/browse/OLINGO-861?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15901714#comment-15901714
] 

rafiqkattangere commented on OLINGO-861:
----------------------------------------

The problem is the recursive loop isn't able to come out. Even if the schema is loaded, it
loads again, since the schema are added to provider only when the recursive loop breaks out
with successful creation of refProvider.

This is the stack..
2017-03-08 11:36:34.840:WARN:oejs.ServletHandler:Error for /root.svc/$metadata
java.lang.StackOverflowError
	at java.lang.String.endsWith(String.java:1449)
	at java.io.FilePermission$1.run(FilePermission.java:207)
	at java.io.FilePermission$1.run(FilePermission.java:203)
	at java.security.AccessController.doPrivileged(Native Method)
	at java.io.FilePermission.init(FilePermission.java:203)
	at java.io.FilePermission.<init>(FilePermission.java:277)
	at sun.net.www.protocol.file.FileURLConnection.getPermission(FileURLConnection.java:228)
	at sun.net.www.protocol.jar.JarFileFactory.getPermission(JarFileFactory.java:166)
	at sun.net.www.protocol.jar.JarFileFactory.getCachedJarFile(JarFileFactory.java:136)
	at sun.net.www.protocol.jar.JarFileFactory.get(JarFileFactory.java:91)
	at sun.net.www.protocol.jar.JarURLConnection.connect(JarURLConnection.java:122)
	at sun.net.www.protocol.jar.JarURLConnection.getInputStream(JarURLConnection.java:150)
	at java.net.URL.openStream(URL.java:1045)
	at java.util.ServiceLoader.parse(ServiceLoader.java:304)
	at java.util.ServiceLoader.access$200(ServiceLoader.java:185)
	at java.util.ServiceLoader$LazyIterator.hasNextService(ServiceLoader.java:357)
	at java.util.ServiceLoader$LazyIterator.hasNext(ServiceLoader.java:393)
	at java.util.ServiceLoader$1.hasNext(ServiceLoader.java:474)
	at javax.xml.stream.FactoryFinder$1.run(FactoryFinder.java:352)
	at java.security.AccessController.doPrivileged(Native Method)
	at javax.xml.stream.FactoryFinder.findServiceProvider(FactoryFinder.java:341)
	at javax.xml.stream.FactoryFinder.find(FactoryFinder.java:313)
	at javax.xml.stream.FactoryFinder.find(FactoryFinder.java:227)
	at javax.xml.stream.XMLInputFactory.newInstance(XMLInputFactory.java:154)
	at org.apache.olingo.server.core.MetadataParser.buildEdmProvider(MetadataParser.java:171)
	at org.apache.olingo.server.core.MetadataParser.loadReferencesSchemas(MetadataParser.java:251)
	at org.apache.olingo.server.core.MetadataParser.buildEdmProvider(MetadataParser.java:218)
	at org.apache.olingo.server.core.MetadataParser.buildEdmProvider(MetadataParser.java:173)
	at org.apache.olingo.server.core.MetadataParser.loadReferencesSchemas(MetadataParser.java:251)
	at org.apache.olingo.server.core.MetadataParser.buildEdmProvider(MetadataParser.java:218)
	at org.apache.olingo.server.core.MetadataParser.buildEdmProvider(MetadataParser.java:173)
	at org.apache.olingo.server.core.MetadataParser.loadReferencesSchemas(MetadataParser.java:251)
	at org.apache.olingo.server.core.MetadataParser.buildEdmProvider(MetadataParser.java:218)
	at org.apache.olingo.server.core.MetadataParser.buildEdmProvider(MetadataParser.java:173)
	at org.apache.olingo.server.core.MetadataParser.loadReferencesSchemas(MetadataParser.java:251)
	at org.apache.olingo.server.core.MetadataParser.buildEdmProvider(MetadataParser.java:218)
	at org.apache.olingo.server.core.MetadataParser.buildEdmProvider(MetadataParser.java:173)
	at org.apache.olingo.server.core.MetadataParser.loadReferencesSchemas(MetadataParser.java:251)
	at org.apache.olingo.server.core.MetadataParser.buildEdmProvider(MetadataParser.java:218)
	at org.apache.olingo.server.core.MetadataParser.buildEdmProvider(MetadataParser.java:173)
	at org.apache.olingo.server.core.MetadataParser.loadReferencesSchemas(MetadataParser.java:251)


> MetaDataParser unable to build EdmProvider from Edmx files with references
> --------------------------------------------------------------------------
>
>                 Key: OLINGO-861
>                 URL: https://issues.apache.org/jira/browse/OLINGO-861
>             Project: Olingo
>          Issue Type: Bug
>          Components: odata4-server
>    Affects Versions: (Java) V4 4.1.0
>            Reporter: VIJAYASIMHA R NAGA
>            Assignee: Ramesh Reddy
>             Fix For: (Java) V4 4.2.0
>
>         Attachments: MyODataDemoService.zip, ServiceRoot.xml
>
>
> Unable to build an EdmProvider from Edmx files with references to external name spaces,
(Method "readReference" in MetaDataParser.java from server-core-ext library has a TODO remark
to deal with this)
>  Ex: Having the below reference included in an Edmx file <edmx:Reference Uri="http://docs.oasis-open.org/odata/odata/v4.0/cs01/vocabularies/Org.OData.Core.V1.xml">
<edmx:Include Namespace="Org.OData.Core.V1" Alias="OData"/> </edmx:Reference>



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

Mime
View raw message