Hi,

I had the following problem when trying to render a page based on this java:

...
else if (getCustomer() == null){
setTrafficMonitorThresholds(getTrafficMonitorThres holdService().fetchByReseller(getWebUtils().getCur rentReseller()));}
...

ERROR [uk.co.intersoftsolutions.bobo.logging.ErrorLogger] - <java.lang.IllegalArgumentException
sun.reflect.NativeMethodAccessorImpl.invoke0(Nativ e Method)
sun.reflect.NativeMethodAccessorImpl.invoke(Native MethodAccessorImpl.java:39)
sun.reflect.DelegatingMethodAccessorImpl.invoke(De legatingMethodAccessorImpl.java:25)
java.lang.reflect.Method.invoke(Method.java:597)
org.hibernate.property.BasicPropertyAccessor$Basic Setter.set(BasicPropertyAccessor.java:66)
org.hibernate.tuple.entity.AbstractEntityTuplizer. setPropertyValues(AbstractEntityTuplizer.java:360)
org.hibernate.tuple.entity.PojoEntityTuplizer.setP ropertyValues(PojoEntityTuplizer.java:221)
org.hibernate.persister.entity.AbstractEntityPersi ster.setPropertyValues(AbstractEntityPersister.jav a:3594)
org.hibernate.engine.TwoPhaseLoad.initializeEntity (TwoPhaseLoad.java:152)
org.hibernate.loader.Loader.initializeEntitiesAndC ollections(Loader.java:877)
org.hibernate.loader.Loader.doQuery(Loader.java:75 2)
org.hibernate.loader.Loader.doQueryAndInitializeNo nLazyCollections(Loader.java:259)
org.hibernate.loader.Loader.doList(Loader.java:222 8)
org.hibernate.loader.Loader.listIgnoreQueryCache(L oader.java:2125)
org.hibernate.loader.Loader.list(Loader.java:2120)
org.hibernate.loader.hql.QueryLoader.list(QueryLoa der.java:401)
org.hibernate.hql.ast.QueryTranslatorImpl.list(Que ryTranslatorImpl.java:361)
org.hibernate.engine.query.HQLQueryPlan.performLis t(HQLQueryPlan.java:196)
org.hibernate.impl.SessionImpl.list(SessionImpl.ja va:1148)
org.hibernate.impl.QueryImpl.list(QueryImpl.java:1 02)
org.springframework.orm.hibernate3.HibernateTempla te$33.doInHibernate(HibernateTemplate.java:993)
org.springframework.orm.hibernate3.HibernateTempla te.doExecute(HibernateTemplate.java:419)
org.springframework.orm.hibernate3.HibernateTempla te.executeWithNativeSession(HibernateTemplate.java :374)
org.springframework.orm.hibernate3.HibernateTempla te.findByNamedQuery(HibernateTemplate.java:984)
org.springframework.orm.hibernate3.HibernateTempla te.findByNamedQuery(HibernateTemplate.java:980)
uk.co.intersoftsolutions.bobo.dao.hibernate.Hibern ateTrafficMonitorThresholdDao.fetchByReseller(Hibe rnateTrafficMonitorThresholdDao.java:176)
uk.co.intersoftsolutions.bobo.service.TrafficMonit orThresholdDaoService.fetchByReseller(TrafficMonit orThresholdDaoService.java:83)
sun.reflect.NativeMethodAccessorImpl.invoke0(Nativ e Method)
sun.reflect.NativeMethodAccessorImpl.invoke(Native MethodAccessorImpl.java:39)
sun.reflect.DelegatingMethodAccessorImpl.invoke(De legatingMethodAccessorImpl.java:25)
java.lang.reflect.Method.invoke(Method.java:597)
org.springframework.aop.support.AopUtils.invokeJoi npointUsingReflection(AopUtils.java:310)
org.springframework.aop.framework.ReflectiveMethod Invocation.invokeJoinpoint(ReflectiveMethodInvocat ion.java:182)
org.springframework.aop.framework.ReflectiveMethod Invocation.proceed(ReflectiveMethodInvocation.java :149)
org.springframework.security.intercept.method.aopa lliance.MethodSecurityInterceptor.invoke(MethodSec urityInterceptor.java:66)
org.springframework.aop.framework.ReflectiveMethod Invocation.proceed(ReflectiveMethodInvocation.java :171)
org.springframework.aop.interceptor.CustomizableTr aceInterceptor.invokeUnderTrace(CustomizableTraceI nterceptor.java:255)
org.springframework.aop.interceptor.AbstractTraceI nterceptor.invoke(AbstractTraceInterceptor.java:11 0)
org.springframework.aop.framework.ReflectiveMethod Invocation.proceed(ReflectiveMethodInvocation.java :171)
org.springframework.aop.interceptor.ExposeInvocati onInterceptor.invoke(ExposeInvocationInterceptor.j ava:89)
org.springframework.aop.framework.ReflectiveMethod Invocation.proceed(ReflectiveMethodInvocation.java :171)
org.springframework.aop.framework.JdkDynamicAopPro xy.invoke(JdkDynamicAopProxy.java:204)
$Proxy77.fetchByReseller(Unknown Source)
uk.co.intersoftsolutions.bobo.tapestry.page.Search ThresholdPage.pageBeginRender(SearchThresholdPage. java:140)
org.apache.tapestry.AbstractPage.firePageBeginRend er(AbstractPage.java:409)
org.apache.tapestry.AbstractPage.renderPage(Abstra ctPage.java:244)
org.apache.tapestry.engine.RequestCycle.renderPage (RequestCycle.java:400)
org.apache.tapestry.services.impl.DefaultResponseB uilder.renderResponse(DefaultResponseBuilder.java: 159)
org.apache.tapestry.services.impl.ResponseRenderer Impl.renderResponse(ResponseRendererImpl.java:33)
$ResponseRenderer_1356e327e6e.renderResponse($Resp onseRenderer_1356e327e6e.java)
org.apache.tapestry.engine.PageService.service(Pag eService.java:68)
$IEngineService_1356e327ee6.service($IEngineServic e_1356e327ee6.java)
org.apache.tapestry.services.impl.EngineServiceOut erProxy.service(EngineServiceOuterProxy.java:72)
org.apache.tapestry.engine.AbstractEngine.service( AbstractEngine.java:241)
org.apache.tapestry.services.impl.InvokeEngineTerm inator.service(InvokeEngineTerminator.java:54)
$WebRequestServicer_1356e327ec4.service($WebReques tServicer_1356e327ec4.java)
$WebRequestServicer_1356e327ec0.service($WebReques tServicer_1356e327ec0.java)
org.apache.tapestry.services.impl.WebRequestServic erPipelineBridge.service(WebRequestServicerPipelin eBridge.java:61)
$ServletRequestServicer_1356e327ea6.service($Servl etRequestServicer_1356e327ea6.java)
org.apache.tapestry.request.DecodedRequestInjector .service(DecodedRequestInjector.java:55)
$ServletRequestServicerFilter_1356e327ea2.service( $ServletRequestServicerFilter_1356e327ea2.java)
$ServletRequestServicer_1356e327ea8.service($Servl etRequestServicer_1356e327ea8.java)
org.apache.tapestry.multipart.MultipartDecoderFilt er.service(MultipartDecoderFilter.java:52)
$ServletRequestServicerFilter_1356e327ea0.service( $ServletRequestServicerFilter_1356e327ea0.java)
$ServletRequestServicer_1356e327ea8.service($Servl etRequestServicer_1356e327ea8.java)
org.apache.tapestry.services.impl.SetupRequestEnco ding.service(SetupRequestEncoding.java:53)
$ServletRequestServicerFilter_1356e327ea4.service( $ServletRequestServicerFilter_1356e327ea4.java)
$ServletRequestServicer_1356e327ea8.service($Servl etRequestServicer_1356e327ea8.java)
$ServletRequestServicer_1356e327e9a.service($Servl etRequestServicer_1356e327e9a.java)
org.apache.tapestry.ApplicationServlet.doService(A pplicationServlet.java:126)
org.apache.tapestry.ApplicationServlet.doGet(Appli cationServlet.java:103)
javax.servlet.http.HttpServlet.service(HttpServlet .java:617)
javax.servlet.http.HttpServlet.service(HttpServlet .java:717)
org.apache.catalina.core.ApplicationFilterChain.in ternalDoFilter(ApplicationFilterChain.java:290)
org.apache.catalina.core.ApplicationFilterChain.do Filter(ApplicationFilterChain.java:206)
org.springframework.security.util.FilterChainProxy $VirtualFilterChain.doFilter(FilterChainProxy.java :378)
uk.co.intersoftsolutions.bobo.logging.UserLoggingF ilter.doFilter(UserLoggingFilter.java:36)
org.springframework.security.util.FilterChainProxy $VirtualFilterChain.doFilter(FilterChainProxy.java :390)
org.springframework.security.ui.switchuser.SwitchU serProcessingFilter.doFilterHttp(SwitchUserProcess ingFilter.java:299)
org.springframework.security.ui.SpringSecurityFilt er.doFilter(SpringSecurityFilter.java:53)
org.springframework.security.util.FilterChainProxy $VirtualFilterChain.doFilter(FilterChainProxy.java :390)
org.springframework.security.intercept.web.FilterS ecurityInterceptor.invoke(FilterSecurityIntercepto r.java:109)
org.springframework.security.intercept.web.FilterS ecurityInterceptor.doFilter(FilterSecurityIntercep tor.java:83)
org.springframework.security.util.FilterChainProxy $VirtualFilterChain.doFilter(FilterChainProxy.java :390)
org.springframework.security.ui.SessionFixationPro tectionFilter.doFilterHttp(SessionFixationProtecti onFilter.java:67)
org.springframework.security.ui.SpringSecurityFilt er.doFilter(SpringSecurityFilter.java:53)
org.springframework.security.util.FilterChainProxy $VirtualFilterChain.doFilter(FilterChainProxy.java :390)
org.springframework.security.ui.ExceptionTranslati onFilter.doFilterHttp(ExceptionTranslationFilter.j ava:101)
org.springframework.security.ui.SpringSecurityFilt er.doFilter(SpringSecurityFilter.java:53)
org.springframework.security.util.FilterChainProxy $VirtualFilterChain.doFilter(FilterChainProxy.java :390)
org.springframework.se>

This page also is used dependent on another render of a collection which works however this one doesnt :S

The place that it is erroring after debugging and stepping through is:


public void setIdentifier(Identifier identifier) {
this.identifier = identifier;
}

<many-to-one
name="identifier"
class="Identifier"
cascade="none"
access="property"
column="identifierid"
/>

The result set is comming from this hibernate query:

<query name="searchByResellerForThreshold">
<![CDATA[
from TrafficMonitorThreshold
where reseller = ?
]]>
</query>

And called this hibernateDAO

@SuppressWarnings("unchecked")
public List<TrafficMonitorThreshold> fetchByReseller(Reseller reseller)
{
return getHibernateTemplate().findByNamedQuery("searchByR esellerForThreshold",reseller);
}

and this DAO Service

public List<TrafficMonitorThreshold> fetchByReseller(Reseller reseller){
return this.trafficMonitorThresholdDao.fetchByReseller(re seller);
}