Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

gorm-hibernate4-spring-boot-4.0.0.RELEASE - GroovyCastException #62

Closed
zyro23 opened this issue Apr 12, 2015 · 0 comments
Closed

gorm-hibernate4-spring-boot-4.0.0.RELEASE - GroovyCastException #62

zyro23 opened this issue Apr 12, 2015 · 0 comments

Comments

@zyro23
Copy link
Contributor

zyro23 commented Apr 12, 2015

hi,

it looks like commit 2127a9f to grails-datastore-gorm-hibernate4 broke gorm-hibernate4-spring-boot.

here the offending line that adds a cast from BeanDefinitionRegistry to ApplicationContext which (at least for me) seems to be not working with spring-boot-1.2.3:

2127a9f#diff-7e6e3a53a29ccbf9765af128ab264bc9R113

org.codehaus.groovy.runtime.typehandling.GroovyCastException: Cannot cast object 'org.springframework.beans.factory.support.DefaultListableBeanFactory@b9b00e0: defining beans [org.springframework.context.annotation.internalConfigurationAnnotationProcessor,org.springframework.context.annotation.internalAutowiredAnnotationProcessor,org.springframework.context.annotation.internalRequiredAnnotationProcessor,org.springframework.context.annotation.internalCommonAnnotationProcessor,org.springframework.context.annotation.internalPersistenceAnnotationProcessor,gormaloneApplication,org.springframework.context.annotation.ConfigurationClassPostProcessor.importAwareProcessor,org.springframework.context.annotation.ConfigurationClassPostProcessor.enhancedConfigurationProcessor,org.springframework.boot.autoconfigure.AutoConfigurationPackages,grailsApplication]; root of factory hierarchy' with class 'org.springframework.beans.factory.support.DefaultListableBeanFactory' to class 'org.springframework.context.ApplicationContext'
    at org.codehaus.groovy.runtime.typehandling.DefaultTypeTransformation.continueCastOnSAM(DefaultTypeTransformation.java:402)
    at org.codehaus.groovy.runtime.typehandling.DefaultTypeTransformation.continueCastOnNumber(DefaultTypeTransformation.java:316)
    at org.codehaus.groovy.runtime.typehandling.DefaultTypeTransformation.castToType(DefaultTypeTransformation.java:229)
    at org.codehaus.groovy.runtime.ScriptBytecodeAdapter.castToType(ScriptBytecodeAdapter.java:601)
    at grails.orm.bootstrap.HibernateDatastoreSpringInitializer$_getBeanDefinitions_closure1.doCall(HibernateDatastoreSpringInitializer.groovy:114)

and btw: took some time until i figured out that 4.0.0.RELEASE on bintray/grails/grails-core is the latest stable release of gorm-hibernate4-spring-boot. maybe you could link that to jcenter, too?

thanks, zyro

@zyro23 zyro23 changed the title gorm-hibernate4-spring-boot 4.0.0.RELEASE not working gorm-hibernate4-spring-boot-4.0.0.RELEASE - GroovyCastException Apr 12, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants