javax.persistence.PersistenceException: org.hibernate.HibernateException: Errors in named queries: user.isEmailInUse, user.byEmail

hivmr.com | 7 months ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    db:: 3.61::Does Arquillian Alpha 5 work with TestNG and GFE? Can't get CDI working. dk

    hivmr.com | 7 months ago
    javax.persistence.PersistenceException: org.hibernate.HibernateException: Errors in named queries: user.isEmailInUse, user.byEmail

    Root Cause Analysis

    1. org.hibernate.HibernateException

      Errors in named queries: user.byEmail

      at org.hibernate.impl.SessionFactoryImpl.init()
    2. Hibernate
      SessionFactoryImpl.init
      1. org.hibernate.impl.SessionFactoryImpl.init(SessionFactoryImpl.java:364)
      1 frame
    3. Hibernate
      Configuration.buildSessionFactory
      1. org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1291)
      1 frame
    4. Hibernate EJB
      HibernatePersistence.createContainerEntityManagerFactory
      1. org.hibernate.ejb.Ejb3Configuration.buildEntityManagerFactory(Ejb3Configuration.java:691)
      2. org.hibernate.ejb.HibernatePersistence.createContainerEntityManagerFactory(HibernatePersistence.java:127)
      2 frames
    5. org.jboss.ejb3
      PersistenceUnitDeployment.start
      1. org.jboss.ejb3.entity.PersistenceUnitDeployment.start(PersistenceUnitDeployment.java:246)
      1 frame
    6. Java RT
      Method.invoke
      1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      2. sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      3. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      4. java.lang.reflect.Method.invoke(Method.java:597)
      4 frames
    7. JBoss Reflection
      BasicMethodJoinPoint.dispatch
      1. org.jboss.reflect.plugins.introspection.ReflectionUtils.invoke(ReflectionUtils.java:55)
      2. org.jboss.reflect.plugins.introspection.ReflectMethodInfoImpl.invoke(ReflectMethodInfoImpl.java:108)
      3. org.jboss.joinpoint.plugins.BasicMethodJoinPoint.dispatch(BasicMethodJoinPoint.java:66)
      3 frames
    8. JBoss Microcontainer Kernel
      KernelControllerContextAction.install
      1. org.jboss.kernel.plugins.dependency.KernelControllerContextAction.dispatchJoinPoint(KernelControllerContextAction.java:103)
      2. org.jboss.kernel.plugins.dependency.LifecycleAction.installActionInternal(LifecycleAction.java:145)
      3. org.jboss.kernel.plugins.dependency.KernelControllerContextAction.installAction(KernelControllerContextAction.java:197)
      4. org.jboss.kernel.plugins.dependency.KernelControllerContextAction.install(KernelControllerContextAction.java:136)
      4 frames
    9. JBoss Microcontainer Dependency
      AbstractController.install
      1. org.jboss.dependency.plugins.AbstractControllerContextActions.install(AbstractControllerContextActions.java:51)
      2. org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerContext.java:233)
      3. org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:724)
      4. org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:445)
      5. org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:555)
      6. org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:489)
      7. org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:289)
      8. org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:192)
      8 frames
    10. JBoss Microcontainer Kernel
      AbstractKernelController.install
      1. org.jboss.kernel.plugins.dependency.AbstractKernelController.install(AbstractKernelController.java:84)
      2. org.jboss.kernel.plugins.dependency.AbstractKernelController.install(AbstractKernelController.java:78)
      2 frames
    11. org.jboss.ejb3
      Ejb3Deployment.start
      1. org.jboss.ejb3.MCKernelAbstraction.install(MCKernelAbstraction.java:141)
      2. org.jboss.ejb3.Ejb3Deployment.startPersistenceUnits(Ejb3Deployment.java:519)
      3. org.jboss.ejb3.Ejb3Deployment.start(Ejb3Deployment.java:324)
      3 frames
    12. JBoss Application Server EJB3
      EJBStage2Deployer.deploy
      1. org.jboss.ejb3.deployers.EJBStage2Deployer.deploy(EJBStage2Deployer.java:54)
      1 frame
    13. org.jboss.deployers
      MainDeployerImpl.process
      1. org.jboss.deployers.plugins.deployer.AbstractSimpleDeployer.commitDeploy(AbstractSimpleDeployer.java:52)
      2. org.jboss.deployers.plugins.deployer.DeployerWrapper.commitDeploy(DeployerWrapper.java:170)
      3. org.jboss.deployers.plugins.deployment.MainDeployerImpl.commitDeploy(MainDeployerImpl.java:592)
      4. org.jboss.deployers.plugins.deployment.MainDeployerImpl.process(MainDeployerImpl.java:476)
      5. org.jboss.deployers.plugins.deployment.MainDeployerImpl.process(MainDeployerImpl.java:406)
      5 frames
    14. org.jboss.embedded
      Bootstrap.deployResourceBases
      1. org.jboss.embedded.DeploymentGroup.process(DeploymentGroup.java:128)
      2. org.jboss.embedded.Bootstrap.deployResourceBases(Bootstrap.java:307)
      2 frames
    15. org.jboss.seam
      SeamTest.init
      1. org.jboss.seam.mock.EmbeddedBootstrap.startAndDeployResources(EmbeddedBootstrap.java:14)
      2. org.jboss.seam.mock.BaseSeamTest.startJbossEmbeddedIfNecessary(BaseSeamTest.java:1006)
      3. org.jboss.seam.mock.BaseSeamTest.init(BaseSeamTest.java:931)
      4. org.jboss.seam.mock.SeamTest.init(SeamTest.java:42)
      4 frames
    16. Java RT
      Method.invoke
      1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      2. sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      3. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      4. java.lang.reflect.Method.invoke(Method.java:597)
      4 frames
    17. TestNG
      TestNG.main
      1. org.testng.internal.MethodHelper.invokeMethod(MethodHelper.java:604)
      2. org.testng.internal.Invoker.invokeConfigurationMethod(Invoker.java:394)
      3. org.testng.internal.Invoker.invokeConfigurations(Invoker.java:142)
      4. org.testng.internal.Invoker.invokeConfigurations(Invoker.java:79)
      5. org.testng.internal.TestMethodWorker.invokeBeforeClassMethods(TestMethodWorker.java:165)
      6. org.testng.internal.TestMethodWorker.run(TestMethodWorker.java:103)
      7. org.testng.TestRunner.runWorkers(TestRunner.java:678)
      8. org.testng.TestRunner.privateRun(TestRunner.java:624)
      9. org.testng.TestRunner.run(TestRunner.java:495)
      10. org.testng.SuiteRunner.runTest(SuiteRunner.java:300)
      11. org.testng.SuiteRunner.runSequentially(SuiteRunner.java:295)
      12. org.testng.SuiteRunner.privateRun(SuiteRunner.java:275)
      13. org.testng.SuiteRunner.run(SuiteRunner.java:190)
      14. org.testng.TestNG.createAndRunSuiteRunners(TestNG.java:792)
      15. org.testng.TestNG.runSuitesLocally(TestNG.java:765)
      16. org.testng.TestNG.run(TestNG.java:699)
      17. org.testng.TestNG.privateMain(TestNG.java:824)
      18. org.testng.TestNG.main(TestNG.java:802)
      18 frames