-->
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.  [ 2 posts ] 
Author Message
 Post subject: exception happens at Middlegen with SQL2005 ?
PostPosted: Wed Mar 14, 2007 11:02 pm 
Newbie

Joined: Tue Mar 13, 2007 9:49 pm
Posts: 8
Hi all,

I had use middlegen 2.2 with Oracle, it works fine and perfect.

But when I change it into SQL2005 , a Nullpointer exception occurs.

By the way, I try to find the latest version of middlegen (version 3), the link doesn't contain any files inside (http://dist.codehaus.org/middlegen/)

The exception is like that:

[middlegen] log4j:WARN No appenders could be found for logger (middlegen.Middlegen).
[middlegen] log4j:WARN Please initialize the log4j system properly.
[middlegen] Database URL:"bla bla bla"
[middlegen] java.lang.NullPointerException
[middlegen] at com.microsoft.sqlserver.jdbc.SQLServerStatement.clearColumnsValues(Unknown Source)
[middlegen] at com.microsoft.sqlserver.jdbc.SQLServerResultSet.cancelUpdates(Unknown Source)
[middlegen] at com.microsoft.sqlserver.jdbc.SQLServerResultSet.next(Unknown Source)
[middlegen] at middlegen.MiddlegenPopulator.populateTableElement(MiddlegenPopulator.java:1082)
[middlegen] at middlegen.MiddlegenPopulator.addTables(MiddlegenPopulator.java:1042)
[middlegen] at middlegen.MiddlegenPopulator.populate(MiddlegenPopulator.java:195)
[middlegen] at middlegen.MiddlegenTask.execute(MiddlegenTask.java:400)
[middlegen] at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)
[middlegen] at org.apache.tools.ant.Task.perform(Task.java:364)
[middlegen] at org.apache.tools.ant.Target.execute(Target.java:341)
[middlegen] at org.apache.tools.ant.Target.performTasks(Target.java:369)
[middlegen] at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1216)
[middlegen] at org.apache.tools.ant.Project.executeTarget(Project.java:1185)
[middlegen] at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:40)
[middlegen] at org.eclipse.ant.internal.ui.antsupport.EclipseDefaultExecutor.executeTargets(EclipseDefaultExecutor.java:32)
[middlegen] at org.apache.tools.ant.Project.executeTargets(Project.java:1068)
[middlegen] at org.eclipse.ant.internal.ui.antsupport.InternalAntRunner.run(InternalAntRunner.java:423)
[middlegen] at org.eclipse.ant.internal.ui.antsupport.InternalAntRunner.main(InternalAntRunner.java:137)


Top
 Profile  
 
 Post subject:
PostPosted: Sat Mar 17, 2007 5:27 pm 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 7:19 pm
Posts: 2364
Location: Brisbane, Australia
I have never tried SQL server 2005 as yet.
I would try another JDBC driver - I have liked jTDS and I am using it for 2000.

BTW: Middlegen 3.0 is a dead project - forget it. 2.2 dev in CVS is the latest version. One day I might get around to releasing it - not a priority for me though.


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