[jbosstools-issues] [JBoss JIRA] Closed: (JBIDE-6594) Validation of removed configuration file property calls NPE in persistence.xml

Jiri Peterka (JIRA) jira-events at lists.jboss.org
Tue Aug 31 03:48:12 EDT 2010


     [ https://jira.jboss.org/browse/JBIDE-6594?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Jiri Peterka closed JBIDE-6594.
-------------------------------

    Assignee: Jiri Peterka  (was: Dmitry Geraskov)


Verified in JBDS 4.0.0.v201008232021N-H413-M2, Linux 64, JDK 1.6

> Validation of removed configuration file property calls NPE in persistence.xml
> ------------------------------------------------------------------------------
>
>                 Key: JBIDE-6594
>                 URL: https://jira.jboss.org/browse/JBIDE-6594
>             Project: Tools (JBoss Tools)
>          Issue Type: Bug
>          Components: Hibernate
>    Affects Versions: 3.1.1
>            Reporter: Dmitry Geraskov
>            Assignee: Jiri Peterka
>             Fix For: 3.2.0.M2
>
>
> To reproduce:
> 1. create jpa project
> 2. set configuration file at Hibernate tab to something
> 3. go to the source and remove the declaration
> 4. Save file
> java.lang.NullPointerException at org.jboss.tools.hibernate.jpt.core.internal.context.HibernatePersistenceUnit.validateHibernateConfigurationFileExists(HibernatePersistenceUnit.java:123)
> 	at org.jboss.tools.hibernate.jpt.core.internal.context.HibernatePersistenceUnit.validate(HibernatePersistenceUnit.java:86)
> 	at org.eclipse.jpt.core.internal.jpa1.context.persistence.GenericPersistence.validatePersistenceUnit(GenericPersistence.java:282)
> 	at org.eclipse.jpt.core.internal.jpa1.context.persistence.GenericPersistence.validate(GenericPersistence.java:234)
> 	at org.eclipse.jpt.core.internal.jpa1.context.persistence.GenericPersistenceXml.validate(GenericPersistenceXml.java:226)
> 	at org.eclipse.jpt.core.internal.jpa1.context.GenericRootContextNode.validate(GenericRootContextNode.java:201)
> 	at org.eclipse.jpt.core.internal.AbstractJpaProject.validate(AbstractJpaProject.java:1303)

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.jboss.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        


More information about the jbosstools-issues mailing list