I've successfully built the application using the spring-basic archetype
(version 2.0.2) and now I want to create java class files from my Hibernate
Mapping files.  I've added the hbm2java component to the
hibernate3-maven-plugin configuration and I've tried several ways to invoke
it.  For now, I'm using mvn appfuse:gen-model.
The problem is that it crashes with a null pointer exception.  I've looked
in the obvious places (codehaus, appfuse, maven, hibernate sites but haven't
found anything matching the problem).  Indeed, this may be more of
hibernate3 maven plugin problem than an AppFuse problem.
The pom file is here:  http://www.rubecula.com/psd/pom.xml pom.xml .


The hibernate mapping files can be found in this directory: 
http://www.rubecula.com/psd/src/main/resources/ resources .

The traceback is here:


java.lang.NullPointerException
        at java.util.Hashtable.put(Hashtable.java:394)
        at java.util.Hashtable.putAll(Hashtable.java:466)
        at
org.codehaus.mojo.hibernate3.HibernateExporterMojo.configureExporter(
HibernateExporterMojo.java:185)
        at
org.codehaus.mojo.hibernate3.exporter.Hbm2JavaGeneratorMojo.configure
Exporter(Hbm2JavaGeneratorMojo.java:69)
        at
org.codehaus.mojo.hibernate3.HibernateExporterMojo.doExecute(Hibernat
eExporterMojo.java:268)
        at
org.codehaus.mojo.hibernate3.HibernateExporterMojo.execute(HibernateE
xporterMojo.java:140)
        at
org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPlugi
nManager.java:451)
        at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(Defa
ultLifecycleExecutor.java:558)
        at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLi
fecycle(DefaultLifecycleExecutor.java:499)
        at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.forkProjectLifecy
cle(DefaultLifecycleExecutor.java:924)
        at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.forkLifecycle(Def
aultLifecycleExecutor.java:767)
        at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(Defa
ultLifecycleExecutor.java:529)
        at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeStandalone
Goal(DefaultLifecycleExecutor.java:512)
        at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(Defau
ltLifecycleExecutor.java:482)
        at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHan
dleFailures(DefaultLifecycleExecutor.java:330)
        at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegmen
ts(DefaultLifecycleExecutor.java:291)
        at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLi
fecycleExecutor.java:142)
        at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:336)
        at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:129)
        at org.apache.maven.cli.MavenCli.main(MavenCli.java:287)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
java:39)
        at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:597)
        at
org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)
        at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
        at
org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)

        at org.codehaus.classworlds.Launcher.main(Launcher.java:375)


Help greatly appreciated.

-- 
View this message in context: 
http://www.nabble.com/NPE-when-running-hbm2java-tp20920781s2369p20920781.html
Sent from the AppFuse - User mailing list archive at Nabble.com.

Reply via email to