You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ibatis.apache.org by "Andy Kriger (JIRA)" <ib...@incubator.apache.org> on 2009/06/15 17:56:07 UTC
[jira] Created: (IBATIS-607) iBator throws an NPE when there is no
daoGenerator specified
iBator throws an NPE when there is no daoGenerator specified
------------------------------------------------------------
Key: IBATIS-607
URL: https://issues.apache.org/jira/browse/IBATIS-607
Project: iBatis for Java
Issue Type: Bug
Affects Versions: 2.3.4
Reporter: Andy Kriger
According to this page of the docs
http://ibatis.apache.org/docs/tools/ibator/configreference/daoGenerator.html
<daoGenerator> is a optional child element of the <ibatorContext> element. If you do not specify this element, then Ibator will not generate DAO interfaces and classes.
However, when <daoGenerator> was not specified, iBator threw a NullPointerException
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.ant.IbatorAntTask.execute(IbatorAntTask.java:145)
at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:288)
at sun.reflect.GeneratedMethodAccessor2.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Closed: (IBATIS-607) iBator throws an NPE when there is no
daoGenerator specified
Posted by "Jeff Butler (JIRA)" <ib...@incubator.apache.org>.
[ https://issues.apache.org/jira/browse/IBATIS-607?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Jeff Butler closed IBATIS-607.
------------------------------
Resolution: Fixed
This has been fixed in SVN for some time.
> iBator throws an NPE when there is no daoGenerator specified
> ------------------------------------------------------------
>
> Key: IBATIS-607
> URL: https://issues.apache.org/jira/browse/IBATIS-607
> Project: iBatis for Java
> Issue Type: Bug
> Affects Versions: 2.3.4
> Reporter: Andy Kriger
>
> According to this page of the docs
> http://ibatis.apache.org/docs/tools/ibator/configreference/daoGenerator.html
> <daoGenerator> is a optional child element of the <ibatorContext> element. If you do not specify this element, then Ibator will not generate DAO interfaces and classes.
> However, when <daoGenerator> was not specified, iBator threw a NullPointerException
> 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.ant.IbatorAntTask.execute(IbatorAntTask.java:145)
> at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:288)
> at sun.reflect.GeneratedMethodAccessor2.invoke(Unknown Source)
> at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
> at java.lang.reflect.Method.invoke(Method.java:597)
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.