ambari-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Hudson (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (AMBARI-11774) Views : NPE accessing view that includes velocity.
Date Mon, 08 Jun 2015 13:01:01 GMT

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

Hudson commented on AMBARI-11774:
---------------------------------

SUCCESS: Integrated in Ambari-trunk-Commit #2854 (See [https://builds.apache.org/job/Ambari-trunk-Commit/2854/])
AMBARI-11774 - Views : NPE accessing view that includes velocity. (tbeerbower) (tbeerbower:
http://git-wip-us.apache.org/repos/asf?p=ambari.git&a=commit&h=f25834109c3096985631db8490c90a33656ecee9)
* ambari-server/src/main/java/org/apache/ambari/server/view/ViewClassLoader.java
* ambari-server/src/test/java/org/apache/ambari/server/view/ViewClassLoaderTest.java


> Views : NPE accessing view that includes velocity.
> --------------------------------------------------
>
>                 Key: AMBARI-11774
>                 URL: https://issues.apache.org/jira/browse/AMBARI-11774
>             Project: Ambari
>          Issue Type: Bug
>            Reporter: Tom Beerbower
>            Assignee: Tom Beerbower
>             Fix For: 2.1.0
>
>
> Intermittent issue accessing a view that includes a version of the Velocity jar in its
archive.  Shows up as an NPE in the Velocity initialization code.
> Likely related to class loader conflict with the Velocity classes included with Ambari.
> {code}
> java.lang.NullPointerException
> java.lang.NullPointerException
> 	at org.apache.velocity.runtime.RuntimeInstance.parse(RuntimeInstance.java:1198)
> 	at org.apache.velocity.runtime.RuntimeInstance.parse(RuntimeInstance.java:1181)
> 	at org.apache.velocity.runtime.RuntimeInstance.evaluate(RuntimeInstance.java:1297)
> 	at org.apache.velocity.runtime.RuntimeInstance.evaluate(RuntimeInstance.java:1265)
> 	at org.apache.velocity.app.Velocity.evaluate(Velocity.java:180)
> 	at org.apache.ambari.server.view.ViewContextImpl.evaluatePropertyTemplates(ViewContextImpl.java:453)
> 	at org.apache.ambari.server.view.ViewContextImpl.getPropertyValues(ViewContextImpl.java:419)
> 	at org.apache.ambari.server.view.ViewContextImpl.getProperties(ViewContextImpl.java:172)
> 	at org.apache.ambari.view.utils.ambari.AmbariApi.(AmbariApi.java:62)
> 	at org.apache.ambari.view.hive.client.ConnectionFactory.(ConnectionFactory.java:42)
> 	at org.apache.ambari.view.hive.utils.SharedObjectsFactory.(SharedObjectsFactory.java:65)
> 	at org.apache.ambari.view.hive.resources.browser.HiveBrowserService.getConnectionFactory(HiveBrowserService.java:72)
> 	at org.apache.ambari.view.hive.resources.browser.HiveBrowserService.databases(HiveBrowserService.java:93)
> 	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> 	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
> 	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
> 	at java.lang.reflect.Method.invoke(Method.java:497)
> 	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)
> {code}



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

Mime
View raw message