Foros del Web » Programación para mayores de 30 ;) » Java »

Error Grails

Estas en el tema de Error Grails en el foro de Java en Foros del Web. Buenas, estoy trabajando con Groovy & Grails en Netbeans 6.8, iba todo bien hasta que una de las veces que he refrescado el explorador para ...
  #1 (permalink)  
Antiguo 10/06/2010, 10:06
 
Fecha de Ingreso: junio-2010
Mensajes: 3
Antigüedad: 13 años, 10 meses
Puntos: 0
Error Grails

Buenas, estoy trabajando con Groovy & Grails en Netbeans 6.8, iba todo bien hasta que una de las veces que he refrescado el explorador para comprobar lo que había hecho, me ha petado y ha dejado de funcionar. He recuperado el código de la aplicación antes de que dejara de funcionar y no hay manera. La salida de Netbeans me da el siguiente error:


Cita:
ERROR context.ContextLoader - Context initialization failed
org.springframework.beans.factory.BeanCreationExce ption: Error creating bean with name 'messageSource': Initialization of bean failed; nested exception is org.springframework.beans.factory.BeanCreationExce ption: Error creating bean with name 'transactionManager': Cannot resolve reference to bean 'sessionFactory' while setting bean property 'sessionFactory'; nested exception is org.springframework.beans.factory.BeanCreationExce ption: Error creating bean with name 'sessionFactory': Invocation of init method failed; nested exception is org.hibernate.MappingException: Type [null] is not a basic type or a domain class and cannot be mapped. Either specify a type within the [mapping] block or use a basic type (String, Integer etc.)
at java.security.AccessController.doPrivileged(Native Method)
at grails.web.container.EmbeddableServer$start.call(U nknown Source)
at _GrailsRun_groovy$_run_closure5_closure11.doCall(_ GrailsRun_groovy:145)
at _GrailsRun_groovy$_run_closure5_closure11.doCall(_ GrailsRun_groovy)
at _GrailsSettings_groovy$_run_closure10.doCall(_Grai lsSettings_groovy:274)
at _GrailsSettings_groovy$_run_closure10.call(_Grails Settings_groovy)
at _GrailsRun_groovy$_run_closure5.doCall(_GrailsRun_ groovy:137)
at _GrailsRun_groovy$_run_closure5.call(_GrailsRun_gr oovy)
at _GrailsRun_groovy.runInline(_GrailsRun_groovy:104)
at _GrailsRun_groovy.this$4$runInline(_GrailsRun_groo vy)
at _GrailsRun_groovy$_run_closure1.doCall(_GrailsRun_ groovy:58)
at RunApp$_run_closure1.doCall(RunApp.groovy:33)
at gant.Gant$_dispatch_closure4.doCall(Gant.groovy:32 4)
at gant.Gant$_dispatch_closure6.doCall(Gant.groovy:33 4)
at gant.Gant$_dispatch_closure6.doCall(Gant.groovy)
at gant.Gant.withBuildListeners(Gant.groovy:344)
at gant.Gant.this$2$withBuildListeners(Gant.groovy)
at gant.Gant$this$2$withBuildListeners.callCurrent(Un known Source)
at gant.Gant.dispatch(Gant.groovy:334)
at gant.Gant.this$2$dispatch(Gant.groovy)
at gant.Gant.invokeMethod(Gant.groovy)
at gant.Gant.processTargets(Gant.groovy:495)
at gant.Gant.processTargets(Gant.groovy:480)
Caused by: org.springframework.beans.factory.BeanCreationExce ption: Error creating bean with name 'transactionManager': Cannot resolve reference to bean 'sessionFactory' while setting bean property 'sessionFactory'; nested exception is org.springframework.beans.factory.BeanCreationExce ption: Error creating bean with name 'sessionFactory': Invocation of init method failed; nested exception is org.hibernate.MappingException: Type [null] is not a basic type or a domain class and cannot be mapped. Either specify a type within the [mapping] block or use a basic type (String, Integer etc.)
at java.security.AccessController.doPrivileged(Native Method)
... 23 more
Caused by: org.springframework.beans.factory.BeanCreationExce ption: Error creating bean with name 'sessionFactory': Invocation of init method failed; nested exception is org.hibernate.MappingException: Type [null] is not a basic type or a domain class and cannot be mapped. Either specify a type within the [mapping] block or use a basic type (String, Integer etc.)
at java.security.AccessController.doPrivileged(Native Method)
... 24 more
Caused by: org.hibernate.MappingException: Type [null] is not a basic type or a domain class and cannot be mapped. Either specify a type within the [mapping] block or use a basic type (String, Integer etc.)
... 25 more
2010-06-10 17:51:36,911 [main] ERROR mortbay.log - Failed startup of context org.mortbay.jetty.webapp.WebAppContext@381172c5{/ntsi,/Volumes/HUZEBIO/NTSI/ntsi/web-app}
org.springframework.beans.factory.BeanCreationExce ption: Error creating bean with name 'messageSource': Initialization of bean failed; nested exception is org.springframework.beans.factory.BeanCreationExce ption: Error creating bean with name 'transactionManager': Cannot resolve reference to bean 'sessionFactory' while setting bean property 'sessionFactory'; nested exception is org.springframework.beans.factory.BeanCreationExce ption: Error creating bean with name 'sessionFactory': Invocation of init method failed; nested exception is org.hibernate.MappingException: Type [null] is not a basic type or a domain class and cannot be mapped. Either specify a type within the [mapping] block or use a basic type (String, Integer etc.)
at java.security.AccessController.doPrivileged(Native Method)
at grails.web.container.EmbeddableServer$start.call(U nknown Source)
at _GrailsRun_groovy$_run_closure5_closure11.doCall(_ GrailsRun_groovy:145)
at _GrailsRun_groovy$_run_closure5_closure11.doCall(_ GrailsRun_groovy)
at _GrailsSettings_groovy$_run_closure10.doCall(_Grai lsSettings_groovy:274)
at _GrailsSettings_groovy$_run_closure10.call(_Grails Settings_groovy)
at _GrailsRun_groovy$_run_closure5.doCall(_GrailsRun_ groovy:137)
at _GrailsRun_groovy$_run_closure5.call(_GrailsRun_gr oovy)
at _GrailsRun_groovy.runInline(_GrailsRun_groovy:104)
at _GrailsRun_groovy.this$4$runInline(_GrailsRun_groo vy)
at _GrailsRun_groovy$_run_closure1.doCall(_GrailsRun_ groovy:58)
at RunApp$_run_closure1.doCall(RunApp.groovy:33)
at gant.Gant$_dispatch_closure4.doCall(Gant.groovy:32 4)
at gant.Gant$_dispatch_closure6.doCall(Gant.groovy:33 4)
at gant.Gant$_dispatch_closure6.doCall(Gant.groovy)
at gant.Gant.withBuildListeners(Gant.groovy:344)
at gant.Gant.this$2$withBuildListeners(Gant.groovy)
at gant.Gant$this$2$withBuildListeners.callCurrent(Un known Source)
at gant.Gant.dispatch(Gant.groovy:334)
at gant.Gant.this$2$dispatch(Gant.groovy)
at gant.Gant.invokeMethod(Gant.groovy)
at gant.Gant.processTargets(Gant.groovy:495)
at gant.Gant.processTargets(Gant.groovy:480)

(... sigue en el siguiente mensaje ...)


A ver si alguien me da una idea de cómo solucionarlo.
Muchas gracias!!
  #2 (permalink)  
Antiguo 10/06/2010, 10:06
 
Fecha de Ingreso: junio-2010
Mensajes: 3
Antigüedad: 13 años, 10 meses
Puntos: 0
Respuesta: Error Grails

Cita:

(... viene de arriba...)

Caused by: org.springframework.beans.factory.BeanCreationExce ption: Error creating bean with name 'transactionManager': Cannot resolve reference to bean 'sessionFactory' while setting bean property 'sessionFactory'; nested exception is org.springframework.beans.factory.BeanCreationExce ption: Error creating bean with name 'sessionFactory': Invocation of init method failed; nested exception is org.hibernate.MappingException: Type [null] is not a basic type or a domain class and cannot be mapped. Either specify a type within the [mapping] block or use a basic type (String, Integer etc.)
at java.security.AccessController.doPrivileged(Native Method)
... 23 more
Caused by: org.springframework.beans.factory.BeanCreationExce ption: Error creating bean with name 'sessionFactory': Invocation of init method failed; nested exception is org.hibernate.MappingException: Type [null] is not a basic type or a domain class and cannot be mapped. Either specify a type within the [mapping] block or use a basic type (String, Integer etc.)
at java.security.AccessController.doPrivileged(Native Method)
... 24 more
Caused by: org.hibernate.MappingException: Type [null] is not a basic type or a domain class and cannot be mapped. Either specify a type within the [mapping] block or use a basic type (String, Integer etc.)
... 25 more
2010-06-10 17:51:36,912 [main] ERROR mortbay.log - Nested in org.springframework.beans.factory.BeanCreationExce ption: Error creating bean with name 'messageSource': Initialization of bean failed; nested exception is org.springframework.beans.factory.BeanCreationExce ption: Error creating bean with name 'transactionManager': Cannot resolve reference to bean 'sessionFactory' while setting bean property 'sessionFactory'; nested exception is org.springframework.beans.factory.BeanCreationExce ption: Error creating bean with name 'sessionFactory': Invocation of init method failed; nested exception is org.hibernate.MappingException: Type [null] is not a basic type or a domain class and cannot be mapped. Either specify a type within the [mapping] block or use a basic type (String, Integer etc.):
org.hibernate.MappingException: Type [null] is not a basic type or a domain class and cannot be mapped. Either specify a type within the [mapping] block or use a basic type (String, Integer etc.)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.AccessController.doPrivileged(Native Method)
at grails.web.container.EmbeddableServer$start.call(U nknown Source)
at _GrailsRun_groovy$_run_closure5_closure11.doCall(_ GrailsRun_groovy:145)
at _GrailsRun_groovy$_run_closure5_closure11.doCall(_ GrailsRun_groovy)
at _GrailsSettings_groovy$_run_closure10.doCall(_Grai lsSettings_groovy:274)
at _GrailsSettings_groovy$_run_closure10.call(_Grails Settings_groovy)
at _GrailsRun_groovy$_run_closure5.doCall(_GrailsRun_ groovy:137)
at _GrailsRun_groovy$_run_closure5.call(_GrailsRun_gr oovy)
at _GrailsRun_groovy.runInline(_GrailsRun_groovy:104)
at _GrailsRun_groovy.this$4$runInline(_GrailsRun_groo vy)
at _GrailsRun_groovy$_run_closure1.doCall(_GrailsRun_ groovy:58)
at RunApp$_run_closure1.doCall(RunApp.groovy:33)
at gant.Gant$_dispatch_closure4.doCall(Gant.groovy:32 4)
at gant.Gant$_dispatch_closure6.doCall(Gant.groovy:33 4)
at gant.Gant$_dispatch_closure6.doCall(Gant.groovy)
at gant.Gant.withBuildListeners(Gant.groovy:344)
at gant.Gant.this$2$withBuildListeners(Gant.groovy)
at gant.Gant$this$2$withBuildListeners.callCurrent(Un known Source)
at gant.Gant.dispatch(Gant.groovy:334)
at gant.Gant.this$2$dispatch(Gant.groovy)
at gant.Gant.invokeMethod(Gant.groovy)
at gant.Gant.processTargets(Gant.groovy:495)
at gant.Gant.processTargets(Gant.groovy:480)

Perdón por el tocho de texto.
  #3 (permalink)  
Antiguo 11/06/2010, 02:40
 
Fecha de Ingreso: junio-2010
Mensajes: 3
Antigüedad: 13 años, 10 meses
Puntos: 0
Respuesta: Error Grails

Vale, lo he conseguido solucionar. Por si a alguien más le pasa... Netbeans me estaba ejecutando desde archivos temporales que se me habían guardado en el pen. Los he borrado todos desde terminal y ahora ya funciona.

FUCK!

Etiquetas: grails
Atención: Estás leyendo un tema que no tiene actividad desde hace más de 6 MESES, te recomendamos abrir un Nuevo tema en lugar de responder al actual.
Respuesta




La zona horaria es GMT -6. Ahora son las 07:11.