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