[
https://issues.jboss.org/browse/TEIID-3672?page=com.atlassian.jira.plugin...
]
RH Bugzilla Integration commented on TEIID-3672:
------------------------------------------------
Juraj Duráni <jdurani(a)redhat.com> changed the Status of [bug
1259592|https://bugzilla.redhat.com/show_bug.cgi?id=1259592] from ON_QA to VERIFIED
Odata - if table does not contain element with required key then
teiid trows NPE
--------------------------------------------------------------------------------
Key: TEIID-3672
URL:
https://issues.jboss.org/browse/TEIID-3672
Project: Teiid
Issue Type: Bug
Affects Versions: 8.7.1.6_2
Reporter: Juraj Duráni
Assignee: Steven Hawkins
Fix For: 8.12
If table does not contain element with primary key defined in URL, then Teiid throws
NPE:
[org.teiid.ODATA] (http-/127.0.0.1:8180-4) TEIID16013 Error occurred producing OData
result.: java.lang.NullPointerException
at org.odata4j.format.xml.AtomEntryFormatWriter.write(AtomEntryFormatWriter.java:51)
[odata-core-0.8.7.redhat-3.jar:0.8.7.redhat-3]
at org.odata4j.format.xml.AtomEntryFormatWriter.write(AtomEntryFormatWriter.java:20)
[odata-core-0.8.7.redhat-3.jar:0.8.7.redhat-3]
at
org.odata4j.producer.resources.EntityRequestResource.getEntityImpl(EntityRequestResource.java:309)
[odata-core-0.8.7.redhat-3.jar:0.8.7.redhat-3]
at
org.odata4j.producer.resources.EntityRequestResource.getEntity(EntityRequestResource.java:273)
[odata-core-0.8.7.redhat-3.jar:0.8.7.redhat-3]
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) [rt.jar:1.8.0_40]
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
[rt.jar:1.8.0_40]
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
[rt.jar:1.8.0_40]
at java.lang.reflect.Method.invoke(Method.java:497) [rt.jar:1.8.0_40]
at org.jboss.resteasy.core.MethodInjectorImpl.invoke(MethodInjectorImpl.java:168)
[resteasy-jaxrs-2.3.12.Final-redhat-1.jar:]
at org.jboss.resteasy.core.ResourceMethod.invokeOnTarget(ResourceMethod.java:269)
[resteasy-jaxrs-2.3.12.Final-redhat-1.jar:]
at org.jboss.resteasy.core.ResourceMethod.invoke(ResourceMethod.java:227)
[resteasy-jaxrs-2.3.12.Final-redhat-1.jar:]
at org.jboss.resteasy.core.ResourceMethod.invoke(ResourceMethod.java:216)
[resteasy-jaxrs-2.3.12.Final-redhat-1.jar:]
at
org.jboss.resteasy.core.SynchronousDispatcher.getResponse(SynchronousDispatcher.java:561)
[resteasy-jaxrs-2.3.12.Final-redhat-1.jar:]
at org.jboss.resteasy.core.SynchronousDispatcher.invoke(SynchronousDispatcher.java:543)
[resteasy-jaxrs-2.3.12.Final-redhat-1.jar:]
at org.jboss.resteasy.core.SynchronousDispatcher.invoke(SynchronousDispatcher.java:128)
[resteasy-jaxrs-2.3.12.Final-redhat-1.jar:]
at
org.teiid.odata.ODataServletContainerDispatcher.service(ODataServletContainerDispatcher.java:118)
[classes:]
at org.teiid.odata.ODataServlet.service(ODataServlet.java:65) [classes:]
at
org.jboss.resteasy.plugins.server.servlet.HttpServletDispatcher.service(HttpServletDispatcher.java:50)
[resteasy-jaxrs-2.3.12.Final-redhat-1.jar:]
at javax.servlet.http.HttpServlet.service(HttpServlet.java:847)
[jboss-servlet-api_3.0_spec-1.0.2.Final-redhat-2.jar:1.0.2.Final-redhat-2]
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:295)
[jbossweb-7.5.10.Final-redhat-1.jar:7.5.10.Final-redhat-1]
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:214)
[jbossweb-7.5.10.Final-redhat-1.jar:7.5.10.Final-redhat-1]
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:231)
[jbossweb-7.5.10.Final-redhat-1.jar:7.5.10.Final-redhat-1]
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:149)
[jbossweb-7.5.10.Final-redhat-1.jar:7.5.10.Final-redhat-1]
at
org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:512)
[jbossweb-7.5.10.Final-redhat-1.jar:7.5.10.Final-redhat-1]
at
org.jboss.as.web.security.SecurityContextAssociationValve.invoke(SecurityContextAssociationValve.java:169)
[jboss-as-web-7.5.3.Final-redhat-2.jar:7.5.3.Final-redhat-2]
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:150)
[jbossweb-7.5.10.Final-redhat-1.jar:7.5.10.Final-redhat-1]
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:97)
[jbossweb-7.5.10.Final-redhat-1.jar:7.5.10.Final-redhat-1]
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:102)
[jbossweb-7.5.10.Final-redhat-1.jar:7.5.10.Final-redhat-1]
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:344)
[jbossweb-7.5.10.Final-redhat-1.jar:7.5.10.Final-redhat-1]
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:854)
[jbossweb-7.5.10.Final-redhat-1.jar:7.5.10.Final-redhat-1]
at
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:653)
[jbossweb-7.5.10.Final-redhat-1.jar:7.5.10.Final-redhat-1]
at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:926)
[jbossweb-7.5.10.Final-redhat-1.jar:7.5.10.Final-redhat-1]
at java.lang.Thread.run(Thread.java:745) [rt.jar:1.8.0_40]
--
This message was sent by Atlassian JIRA
(v6.4.11#64026)