ibatis-user-java mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jeff Butler <jeffgbut...@gmail.com>
Subject Re: abator java.lang.NullPointerException
Date Fri, 16 Dec 2005 22:32:10 GMT
If you open the eclipse error log view, you should be able to see more
detail. (Window>Show View>Error Log).  Can you see a stack trace there?

Also, your generatedKey element should specify identity="false", your
sqlStatment makes it clear that the ID column is not an identity field.


Jeff Butler




On 12/16/05, NandoXXX <christianalcantara@yahoo.com> wrote:
>
> Hello:
>
> I'm trying to use Abator by fist time from eclipse but
> i'm getting:
>
> Unexpected error while running Abator.
> java.lang.NullPointerException
>
> There is some posibility of get a trace from error(
> i'm new to eclipse ). I'm trying to check the
> workspace/.metadata/.log, but doesn't show anything.
>
> My Database is SQL Server 2000
> I'm using JTDS 1.2 JDBC drivers
> eclipse 3.1
>
> Thanks
>
> This is my configuration file:
>
> <?xml version="1.0" encoding="utf-8"?>
> <!DOCTYPE abatorConfiguration PUBLIC "-//Apache
> Software Foundation//DTD Abator for iBATIS
> Configuration 1.0//EN"
> "http://ibatis.apache.org/dtd/abator-config_1_0.dtd">
> <abatorConfiguration>
>    <abatorContext id="sqlServer">
> <!-- TODO: Add Database Connection Information -->
>        <jdbcConnection
> driverClass="net.sourceforge.jtds.jdbc.Driver"
> connectionURL="jdbc:jtds:
> sqlserver://192.168.1.8:1433/nintranet;TDS=8.0;namedPipe=true"
>        userId="user" password="password">
>            <classPathEntry
> location="D:\jakarta\jtds-1.2\jtds-1.2.jar" />
>        </jdbcConnection>
>        <javaModelGenerator
> targetPackage="pe.gob.model" targetProject="model">
>            <property name="enableSubPackages"
> value="true" />
>            <property name="trimStrings" value="true"
> />
>        </javaModelGenerator>
>        <sqlMapGenerator targetPackage="pe.gob.maps"
> targetProject="model">
>            <property name="enableSubPackages"
> value="true" />
>            <property name="trimStrings" value="true"
> />
>        </sqlMapGenerator>
>        <daoGenerator type="IBATIS"
> targetPackage="pe.gob.dao" targetProject="model">
>            <property name="enableSubPackages"
> value="true" />
>            <property name="trimStrings" value="true"
> />
>        </daoGenerator>
>        <table tableName="GEN_MAE_ZONAL"
> domainObjectName="Zonal">
>            <property name="useActualColumnNames"
> value="true" />
>            <generatedKey column="ID"
> sqlStatement="select max(cod_zonal)+1 from
> dbo.GEN_MAE_ZONAL" identity="true" />
>        </table>
>    </abatorContext>
> </abatorConfiguration>
>
> __________________________________________________
> Do You Yahoo!?
> Tired of spam?  Yahoo! Mail has the best spam protection around
> http://mail.yahoo.com
>

Mime
View raw message