-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 3 posts ] 
Author Message
 Post subject: NPE while generating java code using hibernate tools 3.1b1
PostPosted: Thu Oct 20, 2005 9:05 am 
Newbie

Joined: Thu Apr 21, 2005 4:59 am
Posts: 15
With Hibernate tools version 3.1 beta 1 I got the following error trying to generate java from mapping.
I will try to isolate the relevant mapping
Quote:
Error 2005-10-20 14:58:52.701 java.lang.NullPointerException: <no message>
java.lang.NullPointerException
at org.hibernate.tool.hbm2x.Cfg2JavaTool.getMetaAsString(Cfg2JavaTool.java:71)
at org.hibernate.tool.hbm2x.Cfg2JavaTool.getJavaTypeName(Cfg2JavaTool.java:160)
at org.hibernate.tool.hbm2x.Cfg2JavaTool.getJavaTypeName(Cfg2JavaTool.java:149)
at sun.reflect.GeneratedMethodAccessor47.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at org.apache.velocity.util.introspection.UberspectImpl$VelMethodImpl.invoke(UberspectImpl.java:267)
at org.apache.velocity.runtime.parser.node.ASTMethod.execute(ASTMethod.java:197)
at org.apache.velocity.runtime.parser.node.ASTReference.execute(ASTReference.java:175)
at org.apache.velocity.runtime.parser.node.ASTReference.value(ASTReference.java:327)
at org.apache.velocity.runtime.parser.node.ASTMethod.execute(ASTMethod.java:144)
at org.apache.velocity.runtime.parser.node.ASTReference.execute(ASTReference.java:175)
at org.apache.velocity.runtime.parser.node.ASTReference.render(ASTReference.java:220)
at org.apache.velocity.runtime.parser.node.ASTBlock.render(ASTBlock.java:55)
at org.apache.velocity.runtime.parser.node.SimpleNode.render(SimpleNode.java:230)
at org.apache.velocity.runtime.parser.node.ASTIfStatement.render(ASTIfStatement.java:89)
at org.apache.velocity.runtime.parser.node.SimpleNode.render(SimpleNode.java:230)
at org.apache.velocity.Template.merge(Template.java:256)
at org.apache.velocity.app.VelocityEngine.mergeTemplate(VelocityEngine.java:450)
at org.apache.velocity.app.VelocityEngine.mergeTemplate(VelocityEngine.java:419)
at org.hibernate.tool.hbm2x.TemplateHelper.processTemplate(TemplateHelper.java:128)
at org.hibernate.tool.hbm2x.VelocityProducer.firstPass(VelocityProducer.java:72)
at org.hibernate.tool.hbm2x.VelocityProducer.produce(VelocityProducer.java:27)
at org.hibernate.tool.hbm2x.VelocityProducer.produce(VelocityProducer.java:104)
at org.hibernate.tool.hbm2x.GenericExporter.exportPOJO(GenericExporter.java:112)
at org.hibernate.tool.hbm2x.GenericExporter.exportPersistentClass(GenericExporter.java:100)
at org.hibernate.tool.hbm2x.GenericExporter.exportClasses(GenericExporter.java:83)
at org.hibernate.tool.hbm2x.GenericExporter.doStart(GenericExporter.java:68)
at org.hibernate.tool.hbm2x.AbstractExporter.start(AbstractExporter.java:90)
at org.hibernate.tool.hbm2x.GenericExporter.start(GenericExporter.java:58)
at org.hibernate.eclipse.console.wizards.ArtifactGeneratorWizard$2.execute(Unknown Source)
at org.hibernate.console.execution.DefaultExecutionContext.execute(Unknown Source)
at org.hibernate.console.ConsoleConfiguration.execute(Unknown Source)
at org.hibernate.eclipse.console.wizards.ArtifactGeneratorWizard.doFinish(Unknown Source)
at org.hibernate.eclipse.console.wizards.ArtifactGeneratorWizard.access$0(Unknown Source)
at org.hibernate.eclipse.console.wizards.ArtifactGeneratorWizard$1.run(Unknown Source)
at org.eclipse.jface.operation.ModalContext$ModalContextThread.run(ModalContext.java:113)


Top
 Profile  
 
 Post subject: This appears with <dynamic-component>
PostPosted: Thu Oct 20, 2005 10:13 am 
Newbie

Joined: Thu Apr 21, 2005 4:59 am
Posts: 15
The problem occurs when I add a dynamic-component (even an empty one) :
Code:
<class ...
    <dynamic-component name="aName">
    </dynamic-component>
</class>


Top
 Profile  
 
 Post subject:
PostPosted: Thu Oct 20, 2005 11:29 am 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 6:10 am
Posts: 8615
Location: Neuchatel, Switzerland (Danish)
put it in jira - thank you.

_________________
Max
Don't forget to rate


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 3 posts ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.