Spring 4 wrap all hibernate exception in NPE -


i have strange error.

i use spring4 (4.1.6.release) , hibernate4 (4.3.10.final).

when break annotation in entity this:

@joincolumn(referencedcolumnname = "nonexistfieldname") 

i catch npe springframework when entitymanagerfactory bean created.

this exception throws in

org.springframework.beans.factory.support.abstractautowirecapablebeanfactory#initializebean(java.lang.string, java.lang.object, org.springframework.beans.factory.support.rootbeandefinition) 

it's very, strange. because hibernate throws

throw new annotationexception( "unable map collection " + collectionentity.getclassname() + "." + property.getname(), ex ); 

in

hibernate-core-4.3.10.final-sources.jar!/org/hibernate/cfg/annotations/collectionbinder.java:1461  

but in abstractautowirecapablebeanfactory.java:1572

catch(throwable ex) 

already nullpointerexception

full stack trace: http://pastebin.com/1nsznqyg

why strange?


Comments

Popular posts from this blog

python - No exponential form of the z-axis in matplotlib-3D-plots -

php - Best Light server (Linux + Web server + Database) for Raspberry Pi -

c# - "Newtonsoft.Json.JsonSerializationException unable to find constructor to use for types" error when deserializing class -