atlas-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Tom Beerbower (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (ATLAS-296) IllegalArgumentException during hive HiveHookIT integration tests.
Date Wed, 11 Nov 2015 03:44:10 GMT

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

Tom Beerbower commented on ATLAS-296:
-------------------------------------

[~shwethags], could you review the attached patch?

Thanks!


> IllegalArgumentException during hive HiveHookIT integration tests.
> ------------------------------------------------------------------
>
>                 Key: ATLAS-296
>                 URL: https://issues.apache.org/jira/browse/ATLAS-296
>             Project: Atlas
>          Issue Type: Bug
>            Reporter: Tom Beerbower
>            Assignee: Tom Beerbower
>         Attachments: ATLAS-296.patch
>
>
> In the hive-bridge tests (HiveHookIT), the following stacktrace is printed. The tests
succeed though.
> Introduced with patch for entity notification.  ATLAS-158.
> {code}
> 127.0.0.1 - - [10/Nov/2015:04:31:24 +0000] "OPTIONS /api/atlas/entities?user.name=sshivalingamurthy
HTTP/1.1" 200 3317 "-" "Java/1.7.0_79"
> 2015-11-10 10:01:24.622:WARN:oejs.ServletHandler:qtp276244868-27: /api/atlas/entities
> java.lang.IllegalArgumentException: Input String cannot be null cannot be null
>     at org.apache.atlas.ParamChecker.notNull(ParamChecker.java:34)
>     at org.apache.atlas.web.util.Servlets.escapeJsonString(Servlets.java:146)
>     at org.apache.atlas.web.util.Servlets.getErrorResponse(Servlets.java:125)
>     at org.apache.atlas.web.util.Servlets.getErrorResponse(Servlets.java:107)
>     at org.apache.atlas.web.resources.EntityResource.submit(EntityResource.java:136)
>     at sun.reflect.GeneratedMethodAccessor119.invoke(Unknown Source)
>     at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>     at java.lang.reflect.Method.invoke(Method.java:606)
>     at com.sun.jersey.spi.container.JavaMethodInvokerFactory$1.invoke(JavaMethodInvokerFactory.java:60)
>     at com.sun.jersey.server.impl.model.method.dispatch.AbstractResourceMethodDispatchProvider$ResponseOutInvoker._dispatch(AbstractResourceMethodDispatchProvider.java:205)
>     at com.sun.jersey.server.impl.model.method.dispatch.ResourceJavaMethodDispatcher.dispatch(ResourceJavaMethodDispatcher.java:75)
>     at com.sun.jersey.server.impl.uri.rules.HttpMethodRule.accept(HttpMethodRule.java:288)
>     at com.sun.jersey.server.impl.uri.rules.ResourceClassRule.accept(ResourceClassRule.java:108)
>     at com.sun.jersey.server.impl.uri.rules.RightHandPathRule.accept(RightHandPathRule.java:147)
>     at com.sun.jersey.server.impl.uri.rules.RootResourceClassesRule.accept(RootResourceClassesRule.java:84)
>     at com.sun.jersey.server.impl.application.WebApplicationImpl._handleRequest(WebApplicationImpl.java:1469)
>     at com.sun.jersey.server.impl.application.WebApplicationImpl._handleRequest(WebApplicationImpl.java:1400)
>     at com.sun.jersey.server.impl.application.WebApplicationImpl.handleRequest(WebApplicationImpl.java:1349)
>     at com.sun.jersey.server.impl.application.WebApplicationImpl.handleRequest(WebApplicationImpl.java:1339)
>     at com.sun.jersey.spi.container.servlet.WebComponent.service(WebComponent.java:409)
>     at com.sun.jersey.spi.container.servlet.ServletContainer.service(ServletContainer.java:558)
>     at com.sun.jersey.spi.container.servlet.ServletContainer.service(ServletContainer.java:733)
>     at javax.servlet.http.HttpServlet.service(HttpServlet.java:790)
>     at com.google.inject.servlet.ServletDefinition.doServiceImpl(ServletDefinition.java:287)
>     at com.google.inject.servlet.ServletDefinition.doService(ServletDefinition.java:277)
>     at com.google.inject.servlet.ServletDefinition.service(ServletDefinition.java:182)
>     at com.google.inject.servlet.ManagedServletPipeline.service(ManagedServletPipeline.java:91)
>     at org.apache.atlas.web.filters.AuditFilter.doFilter(AuditFilter.java:67)
>     at com.google.inject.servlet.ManagedFilterPipeline.dispatch(ManagedFilterPipeline.java:119)
>     at com.google.inject.servlet.GuiceFilter$1.call(GuiceFilter.java:133)
>     at com.google.inject.servlet.GuiceFilter$1.call(GuiceFilter.java:130)
>     at com.google.inject.servlet.GuiceFilter$Context.call(GuiceFilter.java:203)
>     at com.google.inject.servlet.GuiceFilter.doFilter(GuiceFilter.java:130)
>     at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1652)
>     at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:585)
>     at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:143)
>     at org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:577)
>     at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:223)
>     at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1127)
>     at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:515)
>     at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:185)
>     at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1061)
>     at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:141)
>     at org.eclipse.jetty.server.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:215)
>     at org.eclipse.jetty.server.handler.HandlerCollection.handle(HandlerCollection.java:110)
>     at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:97)
>     at org.eclipse.jetty.server.Server.handle(Server.java:499)
>     at org.eclipse.jetty.server.HttpChannel.handle(HttpChannel.java:310)
>     at org.eclipse.jetty.server.HttpConnection.onFillable(HttpConnection.java:257)
>     at org.eclipse.jetty.io.AbstractConnection$2.run(AbstractConnection.java:540)
>     at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:635)
>     at org.eclipse.jetty.util.thread.QueuedThreadPool$3.run(QueuedThreadPool.java:555)
>     at java.lang.Thread.run(Thread.java:745)
> 127.0.0.1 - - [10/Nov/2015:04:31:24 +0000] "POST /api/atlas/entities HTTP/1.1" 500 4968
"-" "Java/1.7.0_79"
> {code}
> It looks like the serialization code for a Referenceable used by the NotificationEntityChangeListener
can generate a stack overflow if the Referenceable contains a circular reference.
> Using the type system serialization {{InstanceSerialization.toJson(referenceable, true)}}
avoids the circular reference by serializing the referenced Id rather than the entire object.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message