Details
-
Type:
Bug
-
Status:
Closed
-
Priority:
Blocker
-
Resolution: Fixed
-
Affects Version/s: 1.0.2
-
Fix Version/s: 1.0.3
-
Component/s: Persistence
-
Labels:None
-
Environment:XP Dev Machine
Description
Domain classes such as this one:
class Person {
Person creator
}
cause grails hibernate to crash with an NPE error.
error at end of stack trace:
2008-03-20 16:22:52.460::WARN: Nested in org.springframework.beans.factory.Bean
CreationException: Error creating bean with name 'transactionManager': Cannot re
solve reference to bean 'sessionFactory' while setting bean property 'sessionFac
tory'; nested exception is org.springframework.beans.factory.BeanCreationExcepti
on: Error creating bean with name 'sessionFactory': Invocation of init method fa
iled; nested exception is java.lang.NullPointerException:
java.lang.NullPointerException
at java.security.AccessController.doPrivileged(Native Method)
at java.security.AccessController.doPrivileged(Native Method)
at RunApp_groovy$_run_closure2_closure7.doCall(RunApp_groovy:68)
at RunApp_groovy$_run_closure2_closure7.doCall(RunApp_groovy)
at Init_groovy$_run_closure6.doCall(Init_groovy:128)
at RunApp_groovy$_run_closure2.doCall(RunApp_groovy:67)
at RunApp_groovy$_run_closure2.doCall(RunApp_groovy)
at RunApp_groovy$_run_closure1.doCall(RunApp_groovy:59)
at RunApp_groovy$_run_closure1.doCall(RunApp_groovy)
at gant.Gant.dispatch(Gant.groovy:271)
at gant.Gant.this$2$dispatch(Gant.groovy)
at gant.Gant.invokeMethod(Gant.groovy)
at gant.Gant.processTargets(Gant.groovy:436)
at gant.Gant.processArgs(Gant.groovy:372)
Attachments
Issue Links
| This issue is duplicated by: | ||||
| GRAILS-2713 | NPE in GrailsDomainConfigurationUtil.isCandidateForOtherSide() |
|
|
|
| GRAILS-2933 | Self-referencing domain class throws nullpointer exception |
|
|
|
| GRAILS-2754 | Self-relationship throws exception and causes HTTP error 503 (server unavailable) |
|
|
|
| GRAILS-2733 | recursive GORM relationship causes NPE |
|
|
|
| GRAILS-2885 | confusing NullPointerException |
|
|
|
| GRAILS-2710 | grails-samples 's bookmarks can not run in Grails 1.0.2 |
|
|
|
I've got a patch. All tests passed. But I think we need a new test for circular referencing regression.