That's it- thank you!
Dan Turkenkopf wrote: > > You're probably running into a bug that requires the DAOGenerator to be > included. It's been fixed in Subversion, so you can build from source or > just uncomment your DAOGenerator and then ignore the generated classes. > > See this thread: > http://mail-archives.apache.org/mod_mbox/ibatis-user-java/200901.mbox/%[email protected]%3e > > Hope this helps. > > Dan Turkenkopf > > On Fri, Jun 12, 2009 at 7:35 AM, andig <[email protected]> wrote: > >> >> I'm trying to run Ibator on Eclipse seeing this error: >> >> >> !ENTRY org.apache.ibatis.ibator.eclipse.ui 4 4 2009-06-12 13:30:57.656 >> !MESSAGE Unexpected error while running Ibator. >> !STACK 0 >> java.lang.NullPointerException >> at >> >> org.apache.ibatis.ibator.api.IntrospectedTable.calculateDAOImplementationPackage(IntrospectedTable.java:508) >> at >> >> org.apache.ibatis.ibator.api.IntrospectedTable.initialize(IntrospectedTable.java:479) >> at >> >> org.apache.ibatis.ibator.config.IbatorContext.generateFiles(IbatorContext.java:493) >> at org.apache.ibatis.ibator.api.Ibator.generate(Ibator.java:219) >> at org.apache.ibatis.ibator.api.Ibator.generate(Ibator.java:126) >> at >> >> org.apache.ibatis.ibator.eclipse.ui.actions.RunIbatorThread.run(RunIbatorThread.java:80) >> at >> org.eclipse.core.internal.resources.Workspace.run(Workspace.java:1800) >> at >> org.eclipse.core.internal.resources.Workspace.run(Workspace.java:1782) >> at >> >> org.apache.ibatis.ibator.eclipse.ui.actions.RunIbatorAction$IbatorRunner.run(RunIbatorAction.java:137) >> at >> >> org.eclipse.jface.operation.ModalContext$ModalContextThread.run(ModalContext.java:121) >> >> With this config and sqlite: >> >> <?xml version="1.0" encoding="UTF-8" ?> >> <!DOCTYPE ibatorConfiguration PUBLIC "-//Apache Software Foundation//DTD >> Apache iBATIS Ibator Configuration 1.0//EN" >> "http://ibatis.apache.org/dtd/ibator-config_1_0.dtd" > >> <ibatorConfiguration> >> <classPathEntry location="c:/workspace/lib/sqlitejdbc-v056.jar" /> >> >> <ibatorContext id="context1"> >> >> <jdbcConnection driverClass="org.sqlite.JDBC" >> >> >> connectionURL="jdbc:sqlite:/c:/workspace/de.cpuidle.addressbook/peopledirectory.db3" >> userId="" password=""> >> </jdbcConnection> >> >> <javaModelGenerator >> targetPackage="de.cpuidle.addressbook.model" >> targetProject="de.cpuidle.addressbook" /> >> >> <sqlMapGenerator >> targetPackage="de.cpuidle.addressbook.model" >> targetProject="de.cpuidle.addressbook" /> >> <!-- >> daoGenerator >> targetPackage="de.cpuidle.addressbook.model" >> targetProject="de.cpuidle.addressbook" >> type="GENERIC-CI" /> >> --> >> >> <table schema="" tableName="contacts" >> domainObjectName="Contact2"> >> <!-- >> <columnOverride column="???" property="???" /> >> --> >> </table> >> >> </ibatorContext> >> </ibatorConfiguration> >> >> Any ideas where I could poke in? Not really giving much insight in what >> might be wrong... >> >> Best regards, >> Andreas >> >> -- >> View this message in context: >> http://www.nabble.com/Unexpected-error-while-running-Ibator-NPE-tp23997236p23997236.html >> Sent from the iBATIS - User - Java mailing list archive at Nabble.com. >> >> > > -- View this message in context: http://www.nabble.com/Unexpected-error-while-running-Ibator-NPE-tp23997236p23999035.html Sent from the iBATIS - User - Java mailing list archive at Nabble.com.
