You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ambari.apache.org by "Hudson (JIRA)" <ji...@apache.org> on 2014/09/07 12:30:28 UTC

[jira] [Commented] (AMBARI-7189) Views: failed to create view instance

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

Hudson commented on AMBARI-7189:
--------------------------------

FAILURE: Integrated in Ambari-trunk-Commit #164 (See [https://builds.apache.org/job/Ambari-trunk-Commit/164/])
AMBARI-7189 - Views: failed to create view instance (tbeerbower: http://git-wip-us.apache.org/repos/asf?p=ambari.git&a=commit&h=42a07f94cb1eec9a05ac82100c2ac73ffe263ab1)
* ambari-server/src/main/java/org/apache/ambari/server/orm/entities/ViewEntity.java


> Views: failed to create view instance
> -------------------------------------
>
>                 Key: AMBARI-7189
>                 URL: https://issues.apache.org/jira/browse/AMBARI-7189
>             Project: Ambari
>          Issue Type: Bug
>            Reporter: Tom Beerbower
>            Assignee: Tom Beerbower
>             Fix For: 1.7.0
>
>
> STR:
> * Deployed a view (in this case, Capacity Scheduler view)
> * Created an instance of the view.
> * Deleted the view instance
> * Removed the view jar file and work directory from /var/lib/ambari-server/resources/views
> * Restart ambari-server.  API shows that the view is no longer registered (expected)
> * Deploy the same view again
> * Try to create another instance.  This fails.
> {noformat}
> 16:25:20,636 ERROR [qtp918820051-27] BaseManagementHandler:66 - Caught a runtime exception while attempting to create a resource
> javax.persistence.NonUniqueResultException: More than one result was returned from Query.getSingleResult()
>         at org.eclipse.persistence.internal.jpa.QueryImpl.throwNonUniqueResultException(QueryImpl.java:870)
>         at org.eclipse.persistence.internal.jpa.QueryImpl.getSingleResult(QueryImpl.java:450)
>         at org.eclipse.persistence.internal.jpa.EJBQueryImpl.getSingleResult(EJBQueryImpl.java:382)
>         at org.apache.ambari.server.orm.dao.DaoUtils.selectSingle(DaoUtils.java:61)
>         at org.apache.ambari.server.orm.dao.ResourceTypeDAO.findByName(ResourceTypeDAO.java:69)
>         at org.apache.ambari.server.orm.AmbariLocalSessionInterceptor.invoke(AmbariLocalSessionInterceptor.java:53)
>         at org.apache.ambari.server.view.ViewRegistry.installViewInstance(ViewRegistry.java:511)
>         at org.apache.ambari.server.controller.internal.ViewInstanceResourceProvider$1.invoke(ViewInstanceResourceProvider.java:342)
>         at org.apache.ambari.server.controller.internal.ViewInstanceResourceProvider$1.invoke(ViewInstanceResourceProvider.java:332)
>         at org.apache.ambari.server.controller.internal.AbstractResourceProvider.createResources(AbstractResourceProvider.java:270)
>         at org.apache.ambari.server.controller.internal.ViewInstanceResourceProvider.createResources(ViewInstanceResourceProvider.java:121)
>         at org.apache.ambari.server.controller.internal.ClusterControllerImpl.createResources(ClusterControllerImpl.java:274)
>         at org.apache.ambari.server.api.services.persistence.PersistenceManagerImpl.create(PersistenceManagerImpl.java:75)
>         at org.apache.ambari.server.api.handlers.CreateHandler.persist(CreateHandler.java:36)
>         at org.apache.ambari.server.api.handlers.BaseManagementHandler.handleRequest(BaseManagementHandler.java:72)
>         at org.apache.ambari.server.api.services.BaseRequest.process(BaseRequest.java:135)
>         at org.apache.ambari.server.api.services.BaseService.handleRequest(BaseService.java:103)
>         at org.apache.ambari.server.api.services.BaseService.handleRequest(BaseService.java:72)
>         at org.apache.ambari.server.api.services.ViewInstanceService.createService(ViewInstanceService.java:135)
>         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
>         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.RightHandPathRule.accept(RightHandPathRule.java:147)
> {noformat}
> See the attached ambari-server.log.



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