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)