-->
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.  [ 6 posts ] 
Author Message
 Post subject: Null Pointer during Artifact Generation
PostPosted: Thu Feb 10, 2005 4:43 pm 
Beginner
Beginner

Joined: Fri Mar 05, 2004 1:48 pm
Posts: 28
Read the rules before posting!
http://www.hibernate.org/ForumMailingli ... AskForHelp

Hibernate Tools Version: 3.0 alpha1

jtds1.0.1 Driver for MS SQLServer 2000

Hi, when I run the artifact generation wizard it runs for a while and then quits with a nullpointer exception. I do believe it is getting some of the metadata from the database because I have had other errors associated with table names which I fixed temporarily to get to the point I am at now.

http://forum.hibernate.org/viewtopic.php?t=938689


At any rate to get around the problem mentioned in my other post I deleted one of the tables causing the conflict but now I get the error in the stacktrace below. Does anyone know what would cause this to happen???



!ENTRY org.hibernate.eclipse.console.HibernateConsolePlugin 4 4 2005-02-10 15:21:39.668
!MESSAGE Error under artifact generation
!STACK 0
java.lang.NullPointerException
at org.hibernate.eclipse.console.wizards.ArtifactGeneratorWizard$2.execute(ArtifactGeneratorWizard.java:152)
at org.hibernate.console.ConsoleConfiguration.execute(ConsoleConfiguration.java:76)
at org.hibernate.eclipse.console.wizards.ArtifactGeneratorWizard.doFinish(ArtifactGeneratorWizard.java:150)
at org.hibernate.eclipse.console.wizards.ArtifactGeneratorWizard.access$0(ArtifactGeneratorWizard.java:127)
at org.hibernate.eclipse.console.wizards.ArtifactGeneratorWizard$1.run(ArtifactGeneratorWizard.java:95)
at org.eclipse.jface.operation.ModalContext$ModalContextThread.run(ModalContext.java:105)
!SUBENTRY 1 org.hibernate.eclipse.console.HibernateConsolePlugin 4 4 2005-02-10 15:21:39.668
!MESSAGE <No message>
!STACK 0
java.lang.NullPointerException
at org.hibernate.eclipse.console.wizards.ArtifactGeneratorWizard$2.execute(ArtifactGeneratorWizard.java:152)
at org.hibernate.console.ConsoleConfiguration.execute(ConsoleConfiguration.java:76)
at org.hibernate.eclipse.console.wizards.ArtifactGeneratorWizard.doFinish(ArtifactGeneratorWizard.java:150)
at org.hibernate.eclipse.console.wizards.ArtifactGeneratorWizard.access$0(ArtifactGeneratorWizard.java:127)
at org.hibernate.eclipse.console.wizards.ArtifactGeneratorWizard$1.run(ArtifactGeneratorWizard.java:95)
at org.eclipse.jface.operation.ModalContext$ModalContextThread.run(ModalContext.java:105)
!SUBENTRY 2 org.hibernate.eclipse.console.HibernateConsolePlugin 4 150 2005-02-10 15:21:39.668
!MESSAGE <no message>
!STACK 0
java.lang.NullPointerException
at org.hibernate.eclipse.console.wizards.ArtifactGeneratorWizard$2.execute(ArtifactGeneratorWizard.java:152)
at org.hibernate.console.ConsoleConfiguration.execute(ConsoleConfiguration.java:76)
at org.hibernate.eclipse.console.wizards.ArtifactGeneratorWizard.doFinish(ArtifactGeneratorWizard.java:150)
at org.hibernate.eclipse.console.wizards.ArtifactGeneratorWizard.access$0(ArtifactGeneratorWizard.java:127)
at org.hibernate.eclipse.console.wizards.ArtifactGeneratorWizard$1.run(ArtifactGeneratorWizard.java:95)
at org.eclipse.jface.operation.ModalContext$ModalContextThread.run(ModalContext.java:105)


Top
 Profile  
 
 Post subject: also....
PostPosted: Thu Feb 10, 2005 4:46 pm 
Beginner
Beginner

Joined: Fri Mar 05, 2004 1:48 pm
Posts: 28
NOTHING gets generated at all. It just says its reading metadata and appears to do that for a while and then it quits with the null pointer exception.


Top
 Profile  
 
 Post subject:
PostPosted: Fri Feb 11, 2005 5:48 am 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 6:10 am
Posts: 8615
Location: Neuchatel, Switzerland (Danish)
please put this in the jira.

how "big" is your schema ? How many tables/foreignkeys ?

_________________
Max
Don't forget to rate


Top
 Profile  
 
 Post subject: more.....
PostPosted: Fri Feb 11, 2005 8:31 am 
Beginner
Beginner

Joined: Fri Mar 05, 2004 1:48 pm
Posts: 28
Max,
Thanks for the reply, just now I decided to edit the hibernate.cfg.xml with a line for schema:
Code:
<property name="hibernate.connection.schema">dbo</property>


I guess the artifact generator can see all of the tables without a schema being specified but requires one to get further metadata concerning each table. Maybe a field for schema should be added to the GUI?

At any rate things seem to be working but I am getting an out of memory error, so now I guess I am off to see how to change JVM settings or whatever it is I am going to have to do.


Top
 Profile  
 
 Post subject:
PostPosted: Fri Feb 11, 2005 8:36 am 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 6:10 am
Posts: 8615
Location: Neuchatel, Switzerland (Danish)
the out of memory error might be caused by a connection leak we have. will be fixed.

_________________
Max
Don't forget to rate


Top
 Profile  
 
 Post subject:
PostPosted: Fri Feb 11, 2005 9:58 am 
Beginner
Beginner

Joined: Fri Mar 05, 2004 1:48 pm
Posts: 28
Cool, for now I just started eclipse from commandline with -vmargs and increased the allocated memory to 256M to get it done.


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