-->
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.  [ 19 posts ]  Go to page 1, 2  Next
Author Message
 Post subject: NullPointerException during DB revers
PostPosted: Thu Oct 06, 2005 9:37 am 
Beginner
Beginner

Joined: Fri Sep 09, 2005 5:16 am
Posts: 22
Hibernate version: 3.0.5

Name and version of the database you are using: hsql 1.7

[b]Hibernate tools version: 3.1 alpha5


I have the error :

Error under artifact generation

java.lang.NullPointerException
at org.hibernate.eclipse.console.wizards.ArtifactGeneratorWizard$2.execute(ArtifactGeneratorWizard.java:170)
at org.hibernate.console.execution.DefaultExecutionContext.execute(DefaultExecutionContext.java:35)
at org.hibernate.console.ConsoleConfiguration.execute(ConsoleConfiguration.java:71)
at org.hibernate.eclipse.console.wizards.ArtifactGeneratorWizard.doFinish(ArtifactGeneratorWizard.java:168)
at org.hibernate.eclipse.console.wizards.ArtifactGeneratorWizard.access$0(ArtifactGeneratorWizard.java:133)
at org.hibernate.eclipse.console.wizards.ArtifactGeneratorWizard$1.run(ArtifactGeneratorWizard.java:99)
at org.eclipse.jface.operation.ModalContext$ModalContextThread.run(ModalContext.java:113)


I'm trying to reverse 4 small datastores of my hsql db...


Top
 Profile  
 
 Post subject:
PostPosted: Thu Oct 06, 2005 9:49 am 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 6:10 am
Posts: 8615
Location: Neuchatel, Switzerland (Danish)
dont know for sure - but this might be when you dont specify a reveng.xml - there were a NPE at some point around there...

workaround: point to an empty but valid reveng.xml or use CVS :) (release is coming soon too)

_________________
Max
Don't forget to rate


Top
 Profile  
 
 Post subject:
PostPosted: Thu Oct 06, 2005 12:00 pm 
Beginner
Beginner

Joined: Fri Sep 09, 2005 5:16 am
Posts: 22
max wrote:
dont know for sure - but this might be when you dont specify a reveng.xml - there were a NPE at some point around there...


Yes I know that and I have a reveng.xml specified


Top
 Profile  
 
 Post subject:
PostPosted: Thu Oct 06, 2005 1:55 pm 
Expert
Expert

Joined: Sat Jun 12, 2004 4:49 pm
Posts: 915
check egzistence for outputdir templatedir and reveng.xml

(I think that outputdir haven't to exists, but templatedir and reveng must)

Do you set own templatedir ? Maybe you check this and don't set dir


Top
 Profile  
 
 Post subject:
PostPosted: Thu Oct 06, 2005 1:57 pm 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 6:10 am
Posts: 8615
Location: Neuchatel, Switzerland (Danish)
similar bugs have been fixed now.

_________________
Max
Don't forget to rate


Top
 Profile  
 
 Post subject:
PostPosted: Fri Oct 07, 2005 5:37 am 
Beginner
Beginner

Joined: Fri Sep 09, 2005 5:16 am
Posts: 22
snpesnpe wrote:
check egzistence for outputdir templatedir and reveng.xml

(I think that outputdir haven't to exists, but templatedir and reveng must)

Do you set own templatedir ? Maybe you check this and don't set dir



I have checked reveng.xml and it was ok.
I didn't check templatedir so it cannot be that.

I have tryed to uncheck artifact options but I have same problem...

Is it possible this error occurs when output dir is the project itself ?


Top
 Profile  
 
 Post subject:
PostPosted: Fri Oct 07, 2005 7:08 am 
Expert
Expert

Joined: Sat Jun 12, 2004 4:49 pm
Posts: 915
Quote:
Is it possible this error occurs when output dir is the project itself ?

no, i do in project , too

It is template dir probably, bu I don't know your case - try build plugin from cvs
Max say that similar bug is resolved


Top
 Profile  
 
 Post subject:
PostPosted: Fri Oct 07, 2005 8:56 am 
Beginner
Beginner

Joined: Fri Sep 09, 2005 5:16 am
Posts: 22
snpesnpe wrote:
Quote:
Is it possible this error occurs when output dir is the project itself ?

no, i do in project , too

It is template dir probably, bu I don't know your case - try build plugin from cvs
Max say that similar bug is resolved


I'm going to try from cvs if I find it.
I don't think it is caused by the template dir, I havn't checked "Use custom templates" ...


Top
 Profile  
 
 Post subject:
PostPosted: Fri Oct 07, 2005 9:18 am 
Beginner
Beginner

Joined: Fri Sep 09, 2005 5:16 am
Posts: 22
arrggg !!! I connot access cvs : IOException ....


Top
 Profile  
 
 Post subject:
PostPosted: Fri Oct 07, 2005 10:52 am 
Expert
Expert

Joined: Sat Jun 12, 2004 4:49 pm
Posts: 915
wait new release, Max promise it soon


Top
 Profile  
 
 Post subject:
PostPosted: Fri Oct 07, 2005 12:13 pm 
Beginner
Beginner

Joined: Fri Sep 09, 2005 5:16 am
Posts: 22
snpesnpe wrote:
wait new release, Max promise it soon


Promises, promises... ; )


Top
 Profile  
 
 Post subject:
PostPosted: Fri Oct 07, 2005 12:49 pm 
Expert
Expert

Joined: Sat Jun 12, 2004 4:49 pm
Posts: 915
What is true your exception with cvs and what is OS ?

I work fine with cvs (on linux - it isn't important, but linux have cvs in base system)


Top
 Profile  
 
 Post subject:
PostPosted: Fri Oct 07, 2005 12:57 pm 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 6:10 am
Posts: 8615
Location: Neuchatel, Switzerland (Danish)
Trust me....

the only thing right now preventing me from releaseing this is timeouts at SF.net

_________________
Max
Don't forget to rate


Top
 Profile  
 
 Post subject:
PostPosted: Fri Oct 07, 2005 3:03 pm 
Beginner
Beginner

Joined: Fri Sep 09, 2005 5:16 am
Posts: 22
snpesnpe wrote:
What is true your exception with cvs and what is OS ?

I work fine with cvs (on linux - it isn't important, but linux have cvs in base system)


I don't know why it didn't work at office but it is ok at home... perhaps a sourceforge's server maintenance ?...

However, many thanks for your help !


Top
 Profile  
 
 Post subject:
PostPosted: Tue Oct 11, 2005 7:33 am 
Beginner
Beginner

Joined: Fri Sep 09, 2005 5:16 am
Posts: 22
max wrote:
Trust me....

the only thing right now preventing me from releaseing this is timeouts at SF.net


I have just downloaded hibernate tools plugin from the nightly build : N200510102148

And I have a similar error during artifact generation :

java.lang.NullPointerException
at org.hibernate.eclipse.console.wizards.ArtifactGeneratorWizard$2.execute(Unknown Source)
at org.hibernate.console.execution.DefaultExecutionContext.execute(Unknown Source)
at org.hibernate.console.ConsoleConfiguration.execute(Unknown Source)
at org.hibernate.eclipse.console.wizards.ArtifactGeneratorWizard.doFinish(Unknown Source)
at org.hibernate.eclipse.console.wizards.ArtifactGeneratorWizard.access$0(Unknown Source)
at org.hibernate.eclipse.console.wizards.ArtifactGeneratorWizard$1.run(Unknown Source)
at org.eclipse.jface.operation.ModalContext$ModalContextThread.run(ModalContext.java:113)


Are these bugs present into the ANT part of the plugin ?


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 19 posts ]  Go to page 1, 2  Next

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.