-->
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.  [ 1 post ] 
Author Message
 Post subject: NullPointerException on schema export
PostPosted: Thu Jun 10, 2004 1:21 pm 
Newbie

Joined: Fri Jun 04, 2004 11:03 am
Posts: 3
Location: Montreal
Hello,

I keep getting a NullPointerException while trying to generate the schema, I've tried commenting out each property (reference | collection) to isolate the problem without any results. Any help would be much appreciated.

I'm using 2.1.4 against postgres 7.3 building with maven. I included the mapping file and stacktrace.

Cheers,

David

Code:
<hibernate-mapping>
    <class
        name="ca.nusers.philantrope.Contribution"
    >

        <id
            name="id"
            column="ID"
            type="java.lang.Long"
        >
            <generator class="native">
            </generator>
        </id>

        <property
            name="dateDebut"
            type="date"
            column="dateDebut"
        />

        <property
            name="dateFin"
            type="date"
            column="dateFin"
        />

        <!--
        <many-to-one
            name="contribuable"
            class="ca.nusers.philantrope.Contribuable"
            cascade="none"
            outer-join="auto"
            column="IDCONTRIBUABLE"
        />
        -->

        <bag
            role="contributions"
            lazy="true"
            readonly="false"
            cascade="all"
        >

              <key
                  column="ID"
              >
              </key>

              <one-to-many
                  class="ca.nusers.philantrope.DonAbstrait"
              />
        </bag>
    </class>



Quote:
Could not configure datastore from file: /home/dubbed/Documents/Work/nUsers/philantrope/target/classes/ca/nusers/philantrope/Contribution.hbm.xml
java.lang.NullPointerException
at net.sf.hibernate.util.StringHelper.qualify(StringHelper.java:241)
at net.sf.hibernate.cfg.Binder.bindCollection(Binder.java:498)
at net.sf.hibernate.cfg.Binder$4.create(Binder.java:1435)
at net.sf.hibernate.cfg.Binder.propertiesFromXML(Binder.java:1017)
at net.sf.hibernate.cfg.Binder.bindRootClass(Binder.java:361)
at net.sf.hibernate.cfg.Binder.bindRoot(Binder.java:1243)
at net.sf.hibernate.cfg.Configuration.add(Configuration.java:249)
at net.sf.hibernate.cfg.Configuration.addFile(Configuration.java:171)
at org.apache.maven.hibernate.beans.SchemaExportBean.getConfiguration(SchemaExportBean.java:319)
at org.apache.maven.hibernate.beans.SchemaExportBean.execute(SchemaExportBean.java:246)
at org.apache.maven.hibernate.jelly.SchemaExportTag.execute(SchemaExportTag.java:45)
at org.apache.maven.hibernate.jelly.SchemaExportTag.doTag(SchemaExportTag.java:60)
at org.apache.commons.jelly.impl.TagScript.run(TagScript.java:279)
at org.apache.commons.jelly.impl.ScriptBlock.run(ScriptBlock.java:135)
at org.apache.maven.jelly.tags.werkz.MavenGoalTag.runBodyTag(MavenGoalTag.java:79)
at org.apache.maven.jelly.tags.werkz.MavenGoalTag$MavenGoalAction.performAction(MavenGoalTag.java:110)
at com.werken.werkz.Goal.fire(Goal.java:639)
at com.werken.werkz.Goal.attain(Goal.java:575)
at com.werken.werkz.WerkzProject.attainGoal(WerkzProject.java:193)
at org.apache.maven.plugin.PluginManager.attainGoals(PluginManager.java:610)
at org.apache.maven.MavenSession.attainGoals(MavenSession.java:266)
at org.apache.maven.cli.App.doMain(App.java:485)
at org.apache.maven.cli.App.main(App.java:1214)
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.werken.forehead.Forehead.run(Forehead.java:551)
at com.werken.forehead.Forehead.main(Forehead.java:581)




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

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.