ambari-dev mailing list archives

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

             Summary: 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