[hibernate-issues] [Hibernate-JIRA] Commented: (ANN-678) NPE when using JBoss 4.2 and @OneToOne annotation

Emmanuel Bernard (JIRA) noreply at atlassian.com
Thu Nov 15 04:47:30 EST 2007


    [ http://opensource.atlassian.com/projects/hibernate/browse/ANN-678?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_28837 ] 

Emmanuel Bernard commented on ANN-678:
--------------------------------------

you forgot to add hibernate-commons-annotations.jar in the classpath next to hibernate-annotations.jar
Some components of Hibernate annotations have be factored out.

> NPE when using JBoss 4.2 and @OneToOne annotation
> -------------------------------------------------
>
>                 Key: ANN-678
>                 URL: http://opensource.atlassian.com/projects/hibernate/browse/ANN-678
>             Project: Hibernate Annotations
>          Issue Type: Bug
>          Components: binder
>    Affects Versions: 3.2.1
>         Environment: Annotations 3.2.1.ga , Hibernate 3.2.3.ga, entity-manager 3.2.1.ga. JDK 1.5, JBoss 4.2.0, Ubuntu, MySQL 5, SVN, Maven 2
>            Reporter: Yuval
>            Assignee: Emmanuel Bernard
>
> As former posts of this same problem, when we use bidirectional OneToOne relations
> We get NullPointerException.
> It is quite an odd problem since this problem is not consistent. 
> I built my sources and had this problem consistently, then when I changed the name of the folder I checked out the code to,
> built again and then deployed on JBoss, it worked OK. Meaning the mappedBy text and the rest of the annotation setup is ok.
> I saw this issue is supposed to be resolved in 3.3.1 BUT Jboss 4.2 does not work with 3.3.1 due to backward incompatibility issues.
> So a fix for 3.2.1 is necessary.
> I can past the stack trace but it is exactly the same to former posts on this same issue.

-- 
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