[ 
https://issues.apache.org/jira/browse/AMBARI-17691?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Gaurav Nagar updated AMBARI-17691:
----------------------------------
    Status: Patch Available  (was: Open)

> Rerunning View data migration commands throwing exception
> ---------------------------------------------------------
>
>                 Key: AMBARI-17691
>                 URL: https://issues.apache.org/jira/browse/AMBARI-17691
>             Project: Ambari
>          Issue Type: Bug
>          Components: ambari-views
>    Affects Versions: 2.4.0
>            Reporter: Gaurav Nagar
>            Assignee: Gaurav Nagar
>             Fix For: 2.4.0
>
>         Attachments: AMBARI-17691_branch-2.4.patch
>
>
> Error in Ambari log
> {code}
> 5 Jun 2016 07:48:45,035 ERROR [ambari-client-thread-2050] 
> ContainerResponse:419 - The RuntimeException could not be mapped to a 
> response, re-throwing to the HTTP container
> java.lang.NullPointerException
>       at 
> javax.persistence.spi.PersistenceProviderResolverHolder$DefaultPersistenceProviderResolver.getProviderNames(PersistenceProviderResolverHolder.java:197)
>       at 
> javax.persistence.spi.PersistenceProviderResolverHolder$DefaultPersistenceProviderResolver.getPersistenceProviders(PersistenceProviderResolverHolder.java:112)
>       at 
> javax.persistence.Persistence.createEntityManagerFactory(Persistence.java:76)
>       at 
> org.apache.ambari.server.view.persistence.DataStoreModule.getEntityManagerFactory(DataStoreModule.java:116)
>       at 
> org.apache.ambari.server.view.persistence.DataStoreModule.<init>(DataStoreModule.java:79)
>       at 
> org.apache.ambari.server.view.ViewDataMigrationContextImpl.getDataStore(ViewDataMigrationContextImpl.java:92)
>       at 
> org.apache.ambari.server.view.ViewDataMigrationContextImpl.getOriginDataStore(ViewDataMigrationContextImpl.java:109)
>       at 
> org.apache.ambari.server.view.ViewDataMigrationContextImpl.copyAllObjects(ViewDataMigrationContextImpl.java:144)
>       at 
> org.apache.ambari.server.view.ViewDataMigrationContextImpl.copyAllObjects(ViewDataMigrationContextImpl.java:131)
>       at 
> org.apache.ambari.server.view.ViewDataMigrationUtility$CopyAllDataMigrator.migrateEntity(ViewDataMigrationUtility.java:220)
>       at 
> org.apache.ambari.server.view.ViewDataMigrationUtility.migrateData(ViewDataMigrationUtility.java:102)
>       at 
> org.apache.ambari.server.api.services.ViewDataMigrationService.migrateData(ViewDataMigrationService.java:106)
>       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:498)
>       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:302)
>       at 
> com.sun.jersey.server.impl.uri.rules.RightHandPathRule.accept(RightHandPathRule.java:147)
>       at 
> com.sun.jersey.server.impl.uri.rules.SubLocatorRule.accept(SubLocatorRule.java:137)
>       at 
> com.sun.jersey.server.impl.uri.rules.RightHandPathRule.accept(RightHandPathRule.java:147)
>       at 
> com.sun.jersey.server.impl.uri.rules.SubLocatorRule.accept(SubLocatorRule.java:137)
>       at 
> com.sun.jersey.server.impl.uri.rules.RightHandPathRule.accept(RightHandPathRule.java:147)
>       at 
> com.sun.jersey.server.impl.uri.rules.SubLocatorRule.accept(SubLocatorRule.java:137)
>       at 
> com.sun.jersey.server.impl.uri.rules.RightHandPathRule.accept(RightHandPathRule.java:147)
>       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:1542)
>       at 
> com.sun.jersey.server.impl.application.WebApplicationImpl._handleRequest(WebApplicationImpl.java:1473)
>       at 
> com.sun.jersey.server.impl.application.WebApplicationImpl.handleRequest(WebApplicationImpl.java:1419)
>       at 
> com.sun.jersey.server.impl.application.WebApplicationImpl.handleRequest(WebApplicationImpl.java:1409)
> {code}



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

Reply via email to