[hibernate-issues] [Hibernate-JIRA] Resolved: (HHH-5125) The annotations @Entity and @MappedSuperclass used in one class produce a nullpointerexception
Emmanuel Bernard (JIRA)
noreply at atlassian.com
Fri Apr 16 06:14:01 EDT 2010
[ http://opensource.atlassian.com/projects/hibernate/browse/HHH-5125?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Emmanuel Bernard resolved HHH-5125.
-----------------------------------
Assignee: Emmanuel Bernard
Resolution: Fixed
Fix Version/s: 3.5.x
Thanks,
I raise a proper exception with meaningful context now.
> The annotations @Entity and @MappedSuperclass used in one class produce a nullpointerexception
> ----------------------------------------------------------------------------------------------
>
> Key: HHH-5125
> URL: http://opensource.atlassian.com/projects/hibernate/browse/HHH-5125
> Project: Hibernate Core
> Issue Type: Bug
> Components: annotations
> Affects Versions: 3.5.1
> Environment: MS SQL Server
> Reporter: Simone Rodenbach
> Assignee: Emmanuel Bernard
> Priority: Critical
> Fix For: 3.5.x
>
>
> Caused by: java.lang.NullPointerException
> at org.hibernate.cfg.ClassPropertyHolder.addPropertyToMappedSuperclass(ClassPropertyHolder.java:133)
> at org.hibernate.cfg.ClassPropertyHolder.addPropertyToPersistentClass(ClassPropertyHolder.java:118)
> at org.hibernate.cfg.ClassPropertyHolder.addProperty(ClassPropertyHolder.java:98)
> at org.hibernate.cfg.ClassPropertyHolder.addProperty(ClassPropertyHolder.java:81)
> at org.hibernate.cfg.annotations.PropertyBinder.bind(PropertyBinder.java:246)
> at org.hibernate.cfg.annotations.PropertyBinder.makePropertyValueAndBind(PropertyBinder.java:200)
> at org.hibernate.cfg.AnnotationBinder.processElementAnnotations(AnnotationBinder.java:1979)
> at org.hibernate.cfg.AnnotationBinder.processIdPropertiesIfNotAlready(AnnotationBinder.java:762)
> at org.hibernate.cfg.AnnotationBinder.bindClass(AnnotationBinder.java:726)
> at org.hibernate.cfg.AnnotationConfiguration.processArtifactsOfType(AnnotationConfiguration.java:636)
> at org.hibernate.cfg.AnnotationConfiguration.secondPassCompile(AnnotationConfiguration.java:359)
> at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1377)
> at org.hibernate.cfg.AnnotationConfiguration.buildSessionFactory(AnnotationConfiguration.java:954)
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://opensource.atlassian.com/projects/hibernate/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the hibernate-issues
mailing list