Hi,
I have a problem when using MapGenerator. I run:
Code:
java MapGenerator --output=Musteri.hbm.xml satis.Musteri
The trace of the exception:
Code:
java.lang.NullPointerException
at net.sf.hibernate.tool.class2hbm.ReflectedComponent.getXMLas(ReflectedComponent.java:120)
at net.sf.hibernate.tool.class2hbm.ReflectedComponent.getXML(ReflectedComponent.java:107)
at net.sf.hibernate.tool.class2hbm.ReflectedClass.getXMLasSubclass(ReflectedClass.java:187)
at net.sf.hibernate.tool.class2hbm.ReflectedClass.getXML(ReflectedClass.java:159)
at net.sf.hibernate.tool.class2hbm.MapGenerator.getXML(MapGenerator.java:490)
at net.sf.hibernate.tool.class2hbm.MapGenerator.writeXML(MapGenerator.java:139)
at net.sf.hibernate.tool.class2hbm.MapGenerator.main(MapGenerator.java:134)
at util.CodeGenerator.main(CodeGenerator.java:25)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at com.intellij.rt.execution.application.AppMain.main(Unknown Source)
I debugged the code, the null pointer occurs there:
Code:
private void getXMLas( int level, boolean isComposite ) {
if( component != null ) {
Integer x = (Integer )map.cycleBuster.get( component );
cycleBuster is a null reference.
Does anybody know, why might cycleBuster be null? Or do you have any other suggestion?
Thanks...