-->
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.  [ 5 posts ] 
Author Message
 Post subject: Null pointer exception when trying to initialize a console
PostPosted: Fri Jan 26, 2007 1:33 pm 
Beginner
Beginner

Joined: Wed Oct 29, 2003 10:43 am
Posts: 38
Location: Chicago
I get the following when trying to initialize a console:
Error fetching children
reason NUllPointerException
http://safari.oreilly.com/library

the following is my conguration file:
<?xml version='1.0' encoding='utf-8'?>
<!DOCTYPE hibernate-configuration PUBLIC
"-//Hibernate/Hibernate Configuration DTD//EN"
"http://hibernate.sourceforge.net/hibernate-configuration-3.0.dtd">

<hibernate-configuration>

<!-- a SessionFactory instance listed as /jndi/name -->
<session-factory>
<property name="hibernate.dialect">org.hibernate.dialect.SQLServerDialect</property>
<property name="hibernate.connection.driver_class">net.sourceforge.jtds.jdbc.Driver</property>
<property name="hibernate.connection.url">jdbc:jtds:sqlserver://Nobelium:1433/GAINSGEORGE;sendStringParametersAsUnicode=false</property>
<property name="hibernate.connection.username">GAINSBATCH</property>
<property name="hibernate.connection.password">GAINSBATCH</property>
<property name="hibernate.c3p0.min_size">5</property>
<property name="hibernate.c3p0.max_size">40</property>
<property name="hibernate.c3p0.timeout">1800</property>
<mapping resource="net/gainsystems/common/clientserverbatch/hibernate/alias/Aliases.hbm.xml"/>
<mapping resource="net/gainsystems/common/clientserverbatch/hibernate/skul/Department.hbm.xml"/>
<mapping resource="net/gainsystems/common/clientserverbatch/hibernate/user/FooterUserAliases.hbm.xml"/>
<mapping resource="net/gainsystems/common/clientserverbatch/hibernate/user/FootersUsers.hbm.xml"/>
<mapping resource="net/gainsystems/common/clientserverbatch/hibernate/GcsControl.hbm.xml"/>
<mapping resource="net/gainsystems/common/clientserverbatch/hibernate/skul/Group.hbm.xml"/>
<mapping resource="net/gainsystems/common/clientserverbatch/hibernate/sku/optimization/InferredBom.hbm.xml"/>
<mapping resource="net/gainsystems/common/clientserverbatch/hibernate/skul/Location.hbm.xml"/>
<mapping resource="net/gainsystems/common/clientserverbatch/hibernate/skul/LocationByItemNumberAndStockIndicatorNotEqualN.hbm.xml"/>
<mapping resource="net/gainsystems/common/clientserverbatch/hibernate/purchase/order/common/PoControl.hbm.xml"/>
<mapping resource="net/gainsystems/common/clientserverbatch/hibernate/purchase/order/quote/PoDetailQuote.hbm.xml"/>
<mapping resource="net/gainsystems/common/clientserverbatch/hibernate/purchase/order/quote/PoDetailQuoteExtra.hbm.xml"/>
<mapping resource="net/gainsystems/common/clientserverbatch/hibernate/purchase/order/quote/PoDetailQuoteField.hbm.xml"/>
<mapping resource="net/gainsystems/common/clientserverbatch/hibernate/purchase/order/quote/PoHeaderQuote.hbm.xml"/>
<mapping resource="net/gainsystems/common/clientserverbatch/hibernate/purchase/order/quote/PoHeaderQuoteVendor.hbm.xml"/>
<mapping resource="net/gainsystems/common/clientserverbatch/hibernate/purchase/order/quote/PoQuoteVendor.hbm.xml"/>
<mapping resource="net/gainsystems/common/clientserverbatch/hibernate/purchase/order/common/PoStandardInstruction.hbm.xml"/>
<mapping resource="net/gainsystems/common/clientserverbatch/hibernate/purchase/order/common/PoUser.hbm.xml"/>
<mapping resource="net/gainsystems/common/clientserverbatch/hibernate/purchase/order/common/PoVendor.hbm.xml"/>
<mapping resource="net/gainsystems/common/clientserverbatch/hibernate/purchase/order/common/PoVendorInstruction.hbm.xml"/>
<mapping resource="net/gainsystems/common/clientserverbatch/hibernate/replenishment/ReplenishmentGuideOne.hbm.xml"/>
<mapping resource="net/gainsystems/common/clientserverbatch/hibernate/replenishment/ReplenishmentGuideTwo.hbm.xml"/>
<mapping resource="net/gainsystems/common/clientserverbatch/hibernate/replenishment/ReplenishmentSummary.hbm.xml"/>
<mapping resource="net/gainsystems/common/clientserverbatch/hibernate/skul/Skul.hbm.xml"/>
<mapping resource="net/gainsystems/common/clientserverbatch/hibernate/skul/SkulExtra.hbm.xml"/>
<mapping resource="net/gainsystems/common/clientserverbatch/hibernate/sku/optimization/SkulOptimizedResults.hbm.xml"/>
<mapping resource="net/gainsystems/common/clientserverbatch/hibernate/skul/Skul2.hbm.xml"/>
<mapping resource="net/gainsystems/common/clientserverbatch/hibernate/skul/Supplier.hbm.xml"/>
<mapping resource="net/gainsystems/common/clientserverbatch/hibernate/skul/SupplyVariability.hbm.xml"/>
<mapping resource="net/gainsystems/common/clientserverbatch/hibernate/sku/optimization/UserSkulOptimizedResults.hbm.xml"/>
<mapping resource="net/gainsystems/common/clientserverbatch/hibernate/user/Users.hbm.xml"/>
<mapping resource="net/gainsystems/common/clientserverbatch/hibernate/user/UsersAliasPermission.hbm.xml"/>
<mapping resource="net/gainsystems/common/clientserverbatch/hibernate/user/UsersDesktop.hbm.xml"/>
<mapping resource="net/gainsystems/common/clientserverbatch/hibernate/user/UsersQuery.hbm.xml"/>
<mapping resource="net/gainsystems/common/clientserverbatch/hibernate/user/UsersScreenPermission.hbm.xml"/>

<!-- <property name="hibernate.c3p0.max_statements">50</property> -->


<event type="pre-insert">
<listener class="net.gainsystems.common.serverbatch.hibernate.replenishment.ReplenishmentSummaryEventListener"/>
</event>

<event type="pre-update">
<listener class="net.gainsystems.common.serverbatch.hibernate.replenishment.ReplenishmentSummaryEventListener"/>
</event>

</session-factory>
</hibernate-configuration>


Is there a secondary log file?
does anyone know what this could be refering to?

_________________
LET IT BE :)


Top
 Profile  
 
 Post subject: Sorry orielly link should be the following
PostPosted: Fri Jan 26, 2007 1:34 pm 
Beginner
Beginner

Joined: Wed Oct 29, 2003 10:43 am
Posts: 38
Location: Chicago
java.lang.NullPointerException
<No message>

_________________
LET IT BE :)


Top
 Profile  
 
 Post subject: The same error occurs with the following file
PostPosted: Fri Jan 26, 2007 1:50 pm 
Beginner
Beginner

Joined: Wed Oct 29, 2003 10:43 am
Posts: 38
Location: Chicago
<?xml version='1.0' encoding='utf-8'?>
<!DOCTYPE hibernate-configuration PUBLIC
"-//Hibernate/Hibernate Configuration DTD//EN"
"http://hibernate.sourceforge.net/hibernate-configuration-3.0.dtd">

<hibernate-configuration>

<!-- a SessionFactory instance listed as /jndi/name -->
<session-factory>
<property name="hibernate.dialect">org.hibernate.dialect.SQLServerDialect</property>
<property name="hibernate.connection.driver_class">net.sourceforge.jtds.jdbc.Driver</property>
<property name="hibernate.connection.url">jdbc:jtds:sqlserver://Nobelium:1433/GAINSGEORGE;sendStringParametersAsUnicode=false</property>
<property name="hibernate.connection.username">GAINSBATCH</property>
<property name="hibernate.connection.password">GAINSBATCH</property>
<property name="hibernate.c3p0.min_size">5</property>
<property name="hibernate.c3p0.max_size">40</property>
<property name="hibernate.c3p0.timeout">1800</property>

<!-- <property name="hibernate.c3p0.max_statements">50</property> -->



</session-factory>
</hibernate-configuration>


Please note that the above files run in our application

_________________
LET IT BE :)


Top
 Profile  
 
 Post subject:
PostPosted: Sat Jan 27, 2007 5:03 am 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 6:10 am
Posts: 8615
Location: Neuchatel, Switzerland (Danish)
there should be some error message in the Error Log View..and it should also list the full stacktrace (if you dbl-click on them)

_________________
Max
Don't forget to rate


Top
 Profile  
 
 Post subject:
PostPosted: Tue Jan 30, 2007 2:02 pm 
Beginner
Beginner

Joined: Wed Oct 29, 2003 10:43 am
Posts: 38
Location: Chicago
Thanks max. I upgraded to the nightly build and the issue went away.
I am now working on shema generation for indivual tables and a 3rd meta data table we use internally(ie a seperate exporter).

_________________
LET IT BE :)


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 5 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.