-->
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 in Code Generation tool [Eclipse 3.3M7, tools 3.2.0b9a]
PostPosted: Fri May 18, 2007 8:35 am 
Newbie

Joined: Fri May 18, 2007 8:21 am
Posts: 2
I get a NullPointerException when I try to use the Code Generation tool in Eclipse.
This is the first time I've used it, I'm connected to the database OK, selected a couple of tables, hit Run and :

Exception while generating code
Reason: java.lang.NullPointerException <No Message>

Hibernate tools version:
Hibernate tools 3.2.0beta9a
Eclipse 3.3M7

Full stack trace of any exception that occurs:
java.lang.NullPointerException
at org.hibernate.eclipse.launch.CodeGenerationLaunchDelegate.getLocation(CodeGenerationLaunchDelegate.java:286)
at org.hibernate.eclipse.launch.CodeGenerationLaunchDelegate.access$0(CodeGenerationLaunchDelegate.java:285)
at org.hibernate.eclipse.launch.CodeGenerationLaunchDelegate$1.execute(CodeGenerationLaunchDelegate.java:232)
at org.hibernate.console.execution.DefaultExecutionContext.execute(DefaultExecutionContext.java:65)
at org.hibernate.console.ConsoleConfiguration.execute(ConsoleConfiguration.java:89)
at org.hibernate.eclipse.launch.CodeGenerationLaunchDelegate.runExporters(CodeGenerationLaunchDelegate.java:228)
at org.hibernate.eclipse.launch.CodeGenerationLaunchDelegate.launch(CodeGenerationLaunchDelegate.java:130)
at org.eclipse.debug.internal.core.LaunchConfiguration.launch(LaunchConfiguration.java:766)
at org.eclipse.debug.internal.core.LaunchConfiguration.launch(LaunchConfiguration.java:608)
at org.eclipse.debug.internal.ui.DebugUIPlugin.buildAndLaunch(DebugUIPlugin.java:899)
at org.eclipse.debug.internal.ui.DebugUIPlugin$7.run(DebugUIPlugin.java:1102)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)


Name and version of the database you are using:
M$ SQLServer 2000

_________________
Regards,
Ed.


Top
 Profile  
 
 Post subject: Re: NPE in Code Generation tool [Eclipse 3.3M7, tools 3.2.0b
PostPosted: Fri May 18, 2007 9:19 am 
Newbie

Joined: Fri May 18, 2007 8:21 am
Posts: 2
Solved it.

The output directory I chose didn't already exist.

There wasn't an option to create a new one under the "Browse..." button dialog, and I'd presumed it would therefore create it if it didn't exist.
But it doesn't and the error isn't caught. I guess that's a minor bug then.

Thanks and sorry for the interruption,

Ed


Top
 Profile  
 
 Post subject:
PostPosted: Sat May 19, 2007 1:11 pm 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 6:10 am
Posts: 8615
Location: Neuchatel, Switzerland (Danish)
fixed in svn.

nice to hear that it runs fine under 3.3M7 - does the editor work too ?

_________________
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.