[JBoss JIRA] Deleted: (EJBTHREE-638) CLONE -Error using SequenceGenerator annotation: org.hibernate.AnnotationException: Unknown Id.generator
by Dimitris Andreadis (JIRA)
[ http://jira.jboss.com/jira/browse/EJBTHREE-638?page=all ]
Dimitris Andreadis deleted EJBTHREE-638:
----------------------------------------
> CLONE -Error using SequenceGenerator annotation: org.hibernate.AnnotationException: Unknown Id.generator
> --------------------------------------------------------------------------------------------------------
>
> Key: EJBTHREE-638
> URL: http://jira.jboss.com/jira/browse/EJBTHREE-638
> Project: EJB 3.0
> Issue Type: Bug
> Environment: Windows XP SP2; J2SE Development Kit 5.0 Update 2; JBoss-4.0.1sp1; Preview 5
> Reporter: Daniel Dyer
>
> Using @javax.persistence.SequenceGenerator(
> name="SEQ_STORE",
> sequenceName="my_sequence")
> annotation at class level and referencing it in the @Id annotation of a sequence generated column
> @Id(generate=GeneratorType.SEQUENCE, generator="SEQ_STORE")
> leads to an error during deplpoyment (for error message see below)
> -------------------------------------------
> Source Code from sourceforge testsuite: http://cvs.sourceforge.net/viewcvs.py/hibernate/HibernateExt/metadata/tes...
> //$Id: Store.java,v 1.1 2005/03/05 20:48:15 epbernard Exp $
> package org.hibernate.test.annotations.id;
> import javax.persistence.Entity;
> import javax.persistence.GeneratorType;
> import javax.persistence.Id;
> import java.io.Serializable;
> /**
> * Sample of class generator
> * @author Emmanuel Bernard
> */
> @Entity
> @javax.persistence.SequenceGenerator(
> name="SEQ_STORE",
> sequenceName="my_sequence"
> )
> public class Store implements Serializable {
> private Long id;
>
> @Id(generate=GeneratorType.SEQUENCE, generator="SEQ_STORE")
> public Long getId() {
> return id;
> }
> public void setId(Long long1) {
> id = long1;
> }
> }
> -----------------------
> error message:
>
> 15:06:14,364 ERROR [Ejb3Module] Starting failed jboss.j2ee:service=EJB3,module=tutorial.ejb3
> org.hibernate.AnnotationException: Unknown Id.generator: SEQ_STORE
> at org.hibernate.cfg.AnnotationBinder.bindId(AnnotationBinder.java:1113)
> at org.hibernate.cfg.AnnotationBinder.processElementAnnotations(AnnotationBinder.java:699)
> at org.hibernate.cfg.AnnotationBinder.processElementsOfAClass(AnnotationBinder.java:573)
> at org.hibernate.cfg.AnnotationBinder.bindClass(AnnotationBinder.java:436)
> at org.hibernate.cfg.AnnotationConfiguration.addAnnotatedClass(AnnotationConfiguration.java:94)
> at org.hibernate.cfg.AnnotationConfiguration.addAnnotatedClasses(AnnotationConfiguration.java:62)
> at org.jboss.ejb3.entity.HibernateSessionFactory.createSessionFactory(HibernateSessionFactory.java:196)
> at org.jboss.ejb3.Ejb3Module.createHibernateSessionFactory(Ejb3Module.java:256)
> at org.jboss.ejb3.Ejb3Module.startService(Ejb3Module.java:263)
> at org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupport.java:272)
> at org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMBeanSupport.java:222)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
> at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
> at java.lang.reflect.Method.invoke(Method.java:585)
> at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:144)
> at org.jboss.mx.server.Invocation.dispatch(Invocation.java:80)
> at org.jboss.mx.server.Invocation.invoke(Invocation.java:72)
> at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:249)
> at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:642)
> at org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:891)
> at $Proxy0.start(Unknown Source)
> at org.jboss.system.ServiceController.start(ServiceController.java:416)
> at sun.reflect.GeneratedMethodAccessor9.invoke(Unknown Source)
> at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
> at java.lang.reflect.Method.invoke(Method.java:585)
> at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:144)
> at org.jboss.mx.server.Invocation.dispatch(Invocation.java:80)
> at org.jboss.mx.server.Invocation.invoke(Invocation.java:72)
> at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:249)
> at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:642)
> at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:177)
> at $Proxy16.start(Unknown Source)
> at org.jboss.ejb3.EJB3Deployer.start(EJB3Deployer.java:166)
> at org.jboss.deployment.MainDeployer.start(MainDeployer.java:964)
> at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:775)
> at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:738)
> at sun.reflect.GeneratedMethodAccessor42.invoke(Unknown Source)
> at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
> at java.lang.reflect.Method.invoke(Method.java:585)
> at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:144)
> at org.jboss.mx.server.Invocation.dispatch(Invocation.java:80)
> at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:122)
> at org.jboss.mx.server.Invocation.invoke(Invocation.java:74)
> at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:131)
> at org.jboss.mx.server.Invocation.invoke(Invocation.java:74)
> at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:249)
> at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:642)
> at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:177)
> at $Proxy8.deploy(Unknown Source)
> at org.jboss.deployment.scanner.URLDeploymentScanner.deploy(URLDeploymentScanner.java:305)
> at org.jboss.deployment.scanner.URLDeploymentScanner.scan(URLDeploymentScanner.java:463)
> at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.doScan(AbstractDeploymentScanner.java:204)
> at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.loop(AbstractDeploymentScanner.java:215)
> at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.run(AbstractDeploymentScanner.java:194)
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
17 years, 9 months
[JBoss JIRA] Commented: (EJBTHREE-638) CLONE -Error using SequenceGenerator annotation: org.hibernate.AnnotationException: Unknown Id.generator
by Dimitris Andreadis (JIRA)
[ http://jira.jboss.com/jira/browse/EJBTHREE-638?page=comments#action_12348226 ]
Dimitris Andreadis commented on EJBTHREE-638:
---------------------------------------------
Please re-open (don't clone the original issue), without setting the fix version.
> CLONE -Error using SequenceGenerator annotation: org.hibernate.AnnotationException: Unknown Id.generator
> --------------------------------------------------------------------------------------------------------
>
> Key: EJBTHREE-638
> URL: http://jira.jboss.com/jira/browse/EJBTHREE-638
> Project: EJB 3.0
> Issue Type: Bug
> Environment: Windows XP SP2; J2SE Development Kit 5.0 Update 2; JBoss-4.0.1sp1; Preview 5
> Reporter: Daniel Dyer
>
> Using @javax.persistence.SequenceGenerator(
> name="SEQ_STORE",
> sequenceName="my_sequence")
> annotation at class level and referencing it in the @Id annotation of a sequence generated column
> @Id(generate=GeneratorType.SEQUENCE, generator="SEQ_STORE")
> leads to an error during deplpoyment (for error message see below)
> -------------------------------------------
> Source Code from sourceforge testsuite: http://cvs.sourceforge.net/viewcvs.py/hibernate/HibernateExt/metadata/tes...
> //$Id: Store.java,v 1.1 2005/03/05 20:48:15 epbernard Exp $
> package org.hibernate.test.annotations.id;
> import javax.persistence.Entity;
> import javax.persistence.GeneratorType;
> import javax.persistence.Id;
> import java.io.Serializable;
> /**
> * Sample of class generator
> * @author Emmanuel Bernard
> */
> @Entity
> @javax.persistence.SequenceGenerator(
> name="SEQ_STORE",
> sequenceName="my_sequence"
> )
> public class Store implements Serializable {
> private Long id;
>
> @Id(generate=GeneratorType.SEQUENCE, generator="SEQ_STORE")
> public Long getId() {
> return id;
> }
> public void setId(Long long1) {
> id = long1;
> }
> }
> -----------------------
> error message:
>
> 15:06:14,364 ERROR [Ejb3Module] Starting failed jboss.j2ee:service=EJB3,module=tutorial.ejb3
> org.hibernate.AnnotationException: Unknown Id.generator: SEQ_STORE
> at org.hibernate.cfg.AnnotationBinder.bindId(AnnotationBinder.java:1113)
> at org.hibernate.cfg.AnnotationBinder.processElementAnnotations(AnnotationBinder.java:699)
> at org.hibernate.cfg.AnnotationBinder.processElementsOfAClass(AnnotationBinder.java:573)
> at org.hibernate.cfg.AnnotationBinder.bindClass(AnnotationBinder.java:436)
> at org.hibernate.cfg.AnnotationConfiguration.addAnnotatedClass(AnnotationConfiguration.java:94)
> at org.hibernate.cfg.AnnotationConfiguration.addAnnotatedClasses(AnnotationConfiguration.java:62)
> at org.jboss.ejb3.entity.HibernateSessionFactory.createSessionFactory(HibernateSessionFactory.java:196)
> at org.jboss.ejb3.Ejb3Module.createHibernateSessionFactory(Ejb3Module.java:256)
> at org.jboss.ejb3.Ejb3Module.startService(Ejb3Module.java:263)
> at org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupport.java:272)
> at org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMBeanSupport.java:222)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
> at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
> at java.lang.reflect.Method.invoke(Method.java:585)
> at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:144)
> at org.jboss.mx.server.Invocation.dispatch(Invocation.java:80)
> at org.jboss.mx.server.Invocation.invoke(Invocation.java:72)
> at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:249)
> at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:642)
> at org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:891)
> at $Proxy0.start(Unknown Source)
> at org.jboss.system.ServiceController.start(ServiceController.java:416)
> at sun.reflect.GeneratedMethodAccessor9.invoke(Unknown Source)
> at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
> at java.lang.reflect.Method.invoke(Method.java:585)
> at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:144)
> at org.jboss.mx.server.Invocation.dispatch(Invocation.java:80)
> at org.jboss.mx.server.Invocation.invoke(Invocation.java:72)
> at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:249)
> at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:642)
> at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:177)
> at $Proxy16.start(Unknown Source)
> at org.jboss.ejb3.EJB3Deployer.start(EJB3Deployer.java:166)
> at org.jboss.deployment.MainDeployer.start(MainDeployer.java:964)
> at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:775)
> at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:738)
> at sun.reflect.GeneratedMethodAccessor42.invoke(Unknown Source)
> at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
> at java.lang.reflect.Method.invoke(Method.java:585)
> at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:144)
> at org.jboss.mx.server.Invocation.dispatch(Invocation.java:80)
> at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:122)
> at org.jboss.mx.server.Invocation.invoke(Invocation.java:74)
> at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:131)
> at org.jboss.mx.server.Invocation.invoke(Invocation.java:74)
> at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:249)
> at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:642)
> at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:177)
> at $Proxy8.deploy(Unknown Source)
> at org.jboss.deployment.scanner.URLDeploymentScanner.deploy(URLDeploymentScanner.java:305)
> at org.jboss.deployment.scanner.URLDeploymentScanner.scan(URLDeploymentScanner.java:463)
> at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.doScan(AbstractDeploymentScanner.java:204)
> at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.loop(AbstractDeploymentScanner.java:215)
> at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.run(AbstractDeploymentScanner.java:194)
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
17 years, 9 months
[JBoss JIRA] Updated: (EJBTHREE-638) CLONE -Error using SequenceGenerator annotation: org.hibernate.AnnotationException: Unknown Id.generator
by Dimitris Andreadis (JIRA)
[ http://jira.jboss.com/jira/browse/EJBTHREE-638?page=all ]
Dimitris Andreadis updated EJBTHREE-638:
----------------------------------------
Resolution: Done
Fix Version/s: (was: EJB 3.0 RC10 - FD)
> CLONE -Error using SequenceGenerator annotation: org.hibernate.AnnotationException: Unknown Id.generator
> --------------------------------------------------------------------------------------------------------
>
> Key: EJBTHREE-638
> URL: http://jira.jboss.com/jira/browse/EJBTHREE-638
> Project: EJB 3.0
> Issue Type: Bug
> Affects Versions: Preview 5
> Environment: Windows XP SP2; J2SE Development Kit 5.0 Update 2; JBoss-4.0.1sp1; Preview 5
> Reporter: Daniel Dyer
> Fix For: EJB 3.0 Beta 1
>
>
> Using @javax.persistence.SequenceGenerator(
> name="SEQ_STORE",
> sequenceName="my_sequence")
> annotation at class level and referencing it in the @Id annotation of a sequence generated column
> @Id(generate=GeneratorType.SEQUENCE, generator="SEQ_STORE")
> leads to an error during deplpoyment (for error message see below)
> -------------------------------------------
> Source Code from sourceforge testsuite: http://cvs.sourceforge.net/viewcvs.py/hibernate/HibernateExt/metadata/tes...
> //$Id: Store.java,v 1.1 2005/03/05 20:48:15 epbernard Exp $
> package org.hibernate.test.annotations.id;
> import javax.persistence.Entity;
> import javax.persistence.GeneratorType;
> import javax.persistence.Id;
> import java.io.Serializable;
> /**
> * Sample of class generator
> * @author Emmanuel Bernard
> */
> @Entity
> @javax.persistence.SequenceGenerator(
> name="SEQ_STORE",
> sequenceName="my_sequence"
> )
> public class Store implements Serializable {
> private Long id;
>
> @Id(generate=GeneratorType.SEQUENCE, generator="SEQ_STORE")
> public Long getId() {
> return id;
> }
> public void setId(Long long1) {
> id = long1;
> }
> }
> -----------------------
> error message:
>
> 15:06:14,364 ERROR [Ejb3Module] Starting failed jboss.j2ee:service=EJB3,module=tutorial.ejb3
> org.hibernate.AnnotationException: Unknown Id.generator: SEQ_STORE
> at org.hibernate.cfg.AnnotationBinder.bindId(AnnotationBinder.java:1113)
> at org.hibernate.cfg.AnnotationBinder.processElementAnnotations(AnnotationBinder.java:699)
> at org.hibernate.cfg.AnnotationBinder.processElementsOfAClass(AnnotationBinder.java:573)
> at org.hibernate.cfg.AnnotationBinder.bindClass(AnnotationBinder.java:436)
> at org.hibernate.cfg.AnnotationConfiguration.addAnnotatedClass(AnnotationConfiguration.java:94)
> at org.hibernate.cfg.AnnotationConfiguration.addAnnotatedClasses(AnnotationConfiguration.java:62)
> at org.jboss.ejb3.entity.HibernateSessionFactory.createSessionFactory(HibernateSessionFactory.java:196)
> at org.jboss.ejb3.Ejb3Module.createHibernateSessionFactory(Ejb3Module.java:256)
> at org.jboss.ejb3.Ejb3Module.startService(Ejb3Module.java:263)
> at org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupport.java:272)
> at org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMBeanSupport.java:222)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
> at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
> at java.lang.reflect.Method.invoke(Method.java:585)
> at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:144)
> at org.jboss.mx.server.Invocation.dispatch(Invocation.java:80)
> at org.jboss.mx.server.Invocation.invoke(Invocation.java:72)
> at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:249)
> at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:642)
> at org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:891)
> at $Proxy0.start(Unknown Source)
> at org.jboss.system.ServiceController.start(ServiceController.java:416)
> at sun.reflect.GeneratedMethodAccessor9.invoke(Unknown Source)
> at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
> at java.lang.reflect.Method.invoke(Method.java:585)
> at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:144)
> at org.jboss.mx.server.Invocation.dispatch(Invocation.java:80)
> at org.jboss.mx.server.Invocation.invoke(Invocation.java:72)
> at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:249)
> at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:642)
> at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:177)
> at $Proxy16.start(Unknown Source)
> at org.jboss.ejb3.EJB3Deployer.start(EJB3Deployer.java:166)
> at org.jboss.deployment.MainDeployer.start(MainDeployer.java:964)
> at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:775)
> at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:738)
> at sun.reflect.GeneratedMethodAccessor42.invoke(Unknown Source)
> at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
> at java.lang.reflect.Method.invoke(Method.java:585)
> at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:144)
> at org.jboss.mx.server.Invocation.dispatch(Invocation.java:80)
> at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:122)
> at org.jboss.mx.server.Invocation.invoke(Invocation.java:74)
> at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:131)
> at org.jboss.mx.server.Invocation.invoke(Invocation.java:74)
> at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:249)
> at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:642)
> at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:177)
> at $Proxy8.deploy(Unknown Source)
> at org.jboss.deployment.scanner.URLDeploymentScanner.deploy(URLDeploymentScanner.java:305)
> at org.jboss.deployment.scanner.URLDeploymentScanner.scan(URLDeploymentScanner.java:463)
> at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.doScan(AbstractDeploymentScanner.java:204)
> at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.loop(AbstractDeploymentScanner.java:215)
> at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.run(AbstractDeploymentScanner.java:194)
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
17 years, 9 months