What do the mutator methods look like?

If they follow the bean spec then you should be fine.

On 9/13/06, Salman Khattak <[EMAIL PROTECTED]> wrote:

Strangely enough some legacy code here has underscore in property names like
ministry_Code. IBatis mapping does not like this. Any help would be
appreciated.

This is the stack trace:


org.springframework.jdbc.UncategorizedSQLException: SqlMapClient operation;
uncategorized SQLException for SQL []; SQL state [null]; error code [0];
--- The error occurred in com.xxxxxx/dao/ibatis/maps/Oxxxxing.xml.
--- The error occurred while applying a result map.
--- Check the Oxxxxing.minimalResultMap.
--- The error happened while setting a property on the result object.
--- Cause: com.ibatis.common.exception.NestedRuntimeException: Error setting
properties of '[EMAIL PROTECTED]'.  Cause:
java.lang.NullPointerException
Caused by: java.lang.NullPointerException; nested exception is
com.ibatis.common.jdbc.exception.NestedSQLException:
--- The error occurred in com.xxxxxx/dao/ibatis/maps/Oxxxxing.xml.
--- The error occurred while applying a result map.
--- Check the Oxxxxing.minimalResultMap.
--- The error happened while setting a property on the result object.
--- Cause: com.ibatis.common.exception.NestedRuntimeException: Error setting
properties of '[EMAIL PROTECTED]'.  Cause:
java.lang.NullPointerException
Caused by: java.lang.NullPointerException
Caused by: com.ibatis.common.exception.NestedRuntimeException: Error setting
properties of '[EMAIL PROTECTED]'.  Cause:
java.lang.NullPointerException
Caused by: java.lang.NullPointerException
Caused by: com.ibatis.common.jdbc.exception.NestedSQLException:
--- The error occurred in com.xxxxxx/dao/ibatis/maps/Oxxxxing.xml.
--- The error occurred while applying a result map.
--- Check the Oxxxxing.minimalResultMap.
--- The error happened while setting a property on the result object.
--- Cause: com.ibatis.common.exception.NestedRuntimeException: Error setting
properties of '[EMAIL PROTECTED]'.  Cause:
java.lang.NullPointerException
Caused by: java.lang.NullPointerException
Caused by: com.ibatis.common.exception.NestedRuntimeException: Error setting
properties of '[EMAIL PROTECTED]'.  Cause:
java.lang.NullPointerException
Caused by: java.lang.NullPointerException
        at
com.ibatis.sqlmap.engine.mapping.statement.GeneralStatement.executeQueryWithCallback(GeneralStatement.java:188)
        at
com.ibatis.sqlmap.engine.mapping.statement.GeneralStatement.executeQueryForList(GeneralStatement.java:123)
        at
com.ibatis.sqlmap.engine.impl.SqlMapExecutorDelegate.queryForList(SqlMapExecutorDelegate.java:610)
        at
com.ibatis.sqlmap.engine.impl.SqlMapExecutorDelegate.queryForList(SqlMapExecutorDelegate.java:584)
        at
com.ibatis.sqlmap.engine.impl.SqlMapSessionImpl.queryForList(SqlMapSessionImpl.java:101)
        at
org.springframework.orm.ibatis.SqlMapClientTemplate$3.doInSqlMapClient(SqlMapClientTemplate.java:255)
        at
org.springframework.orm.ibatis.SqlMapClientTemplate.execute(SqlMapClientTemplate.java:188)
        at
org.springframework.orm.ibatis.SqlMapClientTemplate.executeWithListResult(SqlMapClientTemplate.java:214)
        at
org.springframework.orm.ibatis.SqlMapClientTemplate.queryForList(SqlMapClientTemplate.java:253)
        at
com.xxxxxx.dao.ibatis.event.SqlMapOxxxxingDAO.getOxxxxingListByCriteria(SqlMapOxxxxingDAO.java:43)
        at
com.xxxxxx.bo.event.EventBOImpl.getOxxxxingListByCriteria(EventBOImpl.java:58)
        at
com.xxxxxx.lis.actions.ManageOxxxxingsAction.search(ManageOxxxxingsAction.java:177)
        at
com.xxxxxx.lis.actions.ManageOxxxxingsAction.doSecureAction(ManageOxxxxingsAction.java:42)
        at
com.xxxxxx.lis.cecal.actions.SecureLoginAction.doPerform(SecureLoginAction.java:111)
        at com.xxxxxx.lis.cecal.actions.BaseAction.doExecute(BaseAction.java:63)
        at
com.xxxxxx.web.struts.XxxxxxAction.doNonTransaction(XxxxxxAction.java:203)
        at com.xxxxxx.web.struts.XxxxxxAction.doExecute(XxxxxxAction.java:113)
        at
com.xxxxxx.web.struts.BaseXxxxxxAction.execute(BaseXxxxxxAction.java:120)
        at
org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:431)
        at
org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:236)
        at 
org.apache.struts.action.ActionServlet.process(ActionServlet.java:1196)
        at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:432)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:763)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java(Compiled 
Code))
        at
com.ibm.ws.webcontainer.servlet.ServletWrapper.service(ServletWrapper.java(Compiled
Code))
        at
com.ibm.ws.webcontainer.servlet.ServletWrapper.service(ServletWrapper.java(Compiled
Code))
        at
com.ibm.ws.webcontainer.filter.WebAppFilterChain.doFilter(WebAppFilterChain.java(Compiled
Code))
        at org.ajaxanywhere.AAFilter.doFilter(AAFilter.java:46)
        at
com.ibm.ws.webcontainer.filter.FilterInstanceWrapper.doFilter(FilterInstanceWrapper.java:142)
        at
com.ibm.ws.webcontainer.filter.WebAppFilterChain.doFilter(WebAppFilterChain.java(Compiled
Code))
        at
org.displaytag.filter.ResponseOverrideFilter.doFilter(ResponseOverrideFilter.java:125)
        at
com.ibm.ws.webcontainer.filter.FilterInstanceWrapper.doFilter(FilterInstanceWrapper.java:142)
        at
com.ibm.ws.webcontainer.filter.WebAppFilterChain.doFilter(WebAppFilterChain.java(Compiled
Code))
        at
com.ibm.ws.webcontainer.filter.WebAppFilterChain._doFilter(WebAppFilterChain.java(Compiled
Code))
        at
com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java(Compiled
Code))
        at
com.ibm.ws.webcontainer.servlet.CacheServletWrapper.handleRequest(CacheServletWrapper.java:80)
        at
com.ibm.ws.webcontainer.WebContainer.handleRequest(WebContainer.java:1802)
        at
com.ibm.ws.webcontainer.channel.WCChannelLink.ready(WCChannelLink.java:84)
        at
com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleDiscrimination(HttpInboundLink.java:469)
        at
com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleNewInformation(HttpInboundLink.java:408)
        at
com.ibm.ws.http.channel.inbound.impl.HttpICLReadCallback.complete(HttpICLReadCallback.java:101)
        at
com.ibm.ws.tcp.channel.impl.WorkQueueManager.requestComplete(WorkQueueManager.java:566)
        at
com.ibm.ws.tcp.channel.impl.WorkQueueManager.attemptIO(WorkQueueManager.java(Compiled
Code))
        at
com.ibm.ws.tcp.channel.impl.WorkQueueManager.workerRun(WorkQueueManager.java:952)
        at
com.ibm.ws.tcp.channel.impl.WorkQueueManager$Worker.run(WorkQueueManager.java:1039)
        at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java(Compiled Code))

--
View this message in context: 
http://www.nabble.com/underscore-in-java-bean-property-tf2267661.html#a6293413
Sent from the iBATIS - User - Java forum at Nabble.com.


Reply via email to