-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 3 posts ] 
Author Message
 Post subject: NotSerializableException using named query with list parm
PostPosted: Sat Sep 27, 2003 11:57 pm 
Beginner
Beginner

Joined: Tue Sep 09, 2003 5:20 pm
Posts: 43
I am getting the above exceptin when I do a query.iterate() on my named query.

First off, I'm a little confused why the exception message is "org.apache.commons.logging.impl.Log4JLogger". This happends whether or not I have enabled "sf.net.hibernate=DEBUG" in my log4j.properties file.

Anyway, here is the query, the exception is further below (sorry - its large):

Code:
* @hibernate.query name="PoStudent.potential.enrollees.for.class.exclude.active.enrolled"
*   query="  select s.id,
*                   s.personName.lastName,
*                   s.personName.firstName,
*                   s.personName.middleInitial,
*                   s.personId
*              from com.ltoj.persistence.base.PoStudent s
*             where s.owner.id in (:ownerList)
*               and s.status.id in (:status_id)
*               and s.gender in (:genderList)
*               and s.gradeLevel.id >= (:minGradeLevel_id)
*               and s.gradeLevel.id <= (:maxGradeLevel_id)
*               and s.id not in (:activeEnrolledList)
*          order by s.personName.lastName,
*                   s.personName.firstName,
*                   s.personName.middleInitial,
*                   s.personId"


I have similar queries that work. The only thing different about this is the clause "s.id not in (:activeEnrolledList)". I am using the following statement to set the list parameter to an ArrayList of Longs that are the ids I want to exclude.
Code:
queryPotentialEnrollees.setParameterList("activeEnrolledList", activeEnrolleeIds);


Any ideas on what the problem is or how to solve it are appreciated.

Thank you - Richard


Code:
20:37:25,980 DEBUG EnrollmentAction:573 - getPotentialEnrollees - using query to iterate
20:37:25,980 DEBUG SessionImpl:1405 - iterate:
             select s.id, s.personName.lastName, s.personName.firstName, s.personName.middleInitial, s.personId from com.ltoj.persistence.base.PoStudent s where s.owner.id in (:ownerList0_, :ownerList1_, :ownerList2_, :ownerList3_) and s.status.id in (:status_id) and s.gender in (:genderList0_, :genderList1_) and s.gradeLevel.id >= (:minGradeLevel_id) and s.gradeLevel.id <= (:maxGradeLevel_id) and s.id not in (:activeEnrolledList0_, :activeEnrolledList1_, :activeEnrolledList2_, :activeEnrolledList3_, :activeEnrolledList4_, :activeEnrolledList5_) order by s.personName.lastName, s.personName.firstName, s.personName.middleInitial, s.personId
       
20:37:25,995 DEBUG QueryTranslator:143 - compiling query
20:37:26,011 DEBUG SessionImpl:2023 - flushing session
20:37:26,011 DEBUG Cascades:301 - processing cascades for: com.ltoj.persistence.base.PoOrganization
20:37:26,011 DEBUG Cascades:308 - done processing cascades for: com.ltoj.persistence.base.PoOrganization
20:37:26,011 DEBUG Cascades:301 - processing cascades for: com.ltoj.persistence.base.PoUser
20:37:26,011 DEBUG Cascades:253 - cascading to collection: com.ltoj.persistence.base.PoUser.userRoles
20:37:26,011 DEBUG Cascades:80 - cascading to saveOrUpdate()
20:37:26,011 DEBUG SessionImpl:1195 - saveOrUpdate() persistent instance
20:37:26,011 DEBUG Cascades:308 - done processing cascades for: com.ltoj.persistence.base.PoUser
20:37:26,011 DEBUG Cascades:301 - processing cascades for: com.ltoj.persistence.base.PoClass
20:37:26,011 DEBUG Cascades:308 - done processing cascades for: com.ltoj.persistence.base.PoClass
20:37:26,011 DEBUG Cascades:301 - processing cascades for: com.ltoj.persistence.base.PoOrganization
20:37:26,011 DEBUG Cascades:308 - done processing cascades for: com.ltoj.persistence.base.PoOrganization
20:37:26,011 DEBUG Cascades:301 - processing cascades for: com.ltoj.persistence.base.PoOrganization
20:37:26,011 DEBUG Cascades:308 - done processing cascades for: com.ltoj.persistence.base.PoOrganization
20:37:26,011 DEBUG Cascades:301 - processing cascades for: com.ltoj.persistence.base.PoUser
20:37:26,026 DEBUG Cascades:253 - cascading to collection: com.ltoj.persistence.base.PoUser.userRoles
20:37:26,026 DEBUG Cascades:80 - cascading to saveOrUpdate()
20:37:26,026 DEBUG SessionImpl:1195 - saveOrUpdate() persistent instance
20:37:26,026 DEBUG Cascades:308 - done processing cascades for: com.ltoj.persistence.base.PoUser
20:37:26,026 DEBUG Cascades:301 - processing cascades for: com.ltoj.persistence.base.PoUser
20:37:26,026 DEBUG Cascades:253 - cascading to collection: com.ltoj.persistence.base.PoUser.userRoles
20:37:26,026 DEBUG Cascades:80 - cascading to saveOrUpdate()
20:37:26,026 DEBUG SessionImpl:1195 - saveOrUpdate() persistent instance
20:37:26,026 DEBUG Cascades:308 - done processing cascades for: com.ltoj.persistence.base.PoUser
20:37:26,026 DEBUG Cascades:301 - processing cascades for: com.ltoj.persistence.base.PoOrganization
20:37:26,026 DEBUG Cascades:308 - done processing cascades for: com.ltoj.persistence.base.PoOrganization
20:37:26,026 DEBUG SessionImpl:2114 - Flushing entities and processing referenced collections
20:37:26,026 DEBUG SessionImpl:2536 - Collection found: [com.ltoj.persistence.base.PoAssociate.addresses#4], was: [com.ltoj.persistence.base.PoAssociate.addresses#4]
20:37:26,026 DEBUG SessionImpl:2536 - Collection found: [com.ltoj.persistence.base.PoAssociate.phoneNumbers#4], was: [com.ltoj.persistence.base.PoAssociate.phoneNumbers#4]
20:37:26,042 DEBUG SessionImpl:2536 - Collection found: [com.ltoj.persistence.base.PoUser.classes#189], was: [com.ltoj.persistence.base.PoUser.classes#189]
20:37:26,042 DEBUG SessionImpl:2536 - Collection found: [com.ltoj.persistence.base.PoUser.userClassMeasurements#189], was: [com.ltoj.persistence.base.PoUser.userClassMeasurements#189]
20:37:26,042 DEBUG SessionImpl:2536 - Collection found: [com.ltoj.persistence.base.PoUser.userRoles#189], was: [com.ltoj.persistence.base.PoUser.userRoles#189]
20:37:26,042 DEBUG SessionImpl:2536 - Collection found: [com.ltoj.persistence.base.PoAssociate.addresses#189], was: [com.ltoj.persistence.base.PoAssociate.addresses#189]
20:37:26,042 DEBUG SessionImpl:2536 - Collection found: [com.ltoj.persistence.base.PoAssociate.phoneNumbers#189], was: [com.ltoj.persistence.base.PoAssociate.phoneNumbers#189]
20:37:26,042 DEBUG SessionImpl:2536 - Collection found: [com.ltoj.persistence.base.PoClass.classMeasurements#6], was: [com.ltoj.persistence.base.PoClass.classMeasurements#6]
20:37:26,042 DEBUG SessionImpl:2536 - Collection found: [com.ltoj.persistence.base.PoClass.enrollment#6], was: [com.ltoj.persistence.base.PoClass.enrollment#6]
20:37:26,042 DEBUG SessionImpl:2536 - Collection found: [com.ltoj.persistence.base.PoClass.enrollmentActive#6], was: [com.ltoj.persistence.base.PoClass.enrollmentActive#6]
20:37:26,042 DEBUG SessionImpl:2536 - Collection found: [com.ltoj.persistence.base.PoClass.enrollmentInactive#6], was: [com.ltoj.persistence.base.PoClass.enrollmentInactive#6]
20:37:26,042 DEBUG SessionImpl:2536 - Collection found: [com.ltoj.persistence.base.PoAssociate.addresses#2], was: [com.ltoj.persistence.base.PoAssociate.addresses#2]
20:37:26,042 DEBUG SessionImpl:2536 - Collection found: [com.ltoj.persistence.base.PoAssociate.phoneNumbers#2], was: [com.ltoj.persistence.base.PoAssociate.phoneNumbers#2]
20:37:26,042 DEBUG SessionImpl:2536 - Collection found: [com.ltoj.persistence.base.PoAssociate.addresses#7], was: [com.ltoj.persistence.base.PoAssociate.addresses#7]
20:37:26,042 DEBUG SessionImpl:2536 - Collection found: [com.ltoj.persistence.base.PoAssociate.phoneNumbers#7], was: [com.ltoj.persistence.base.PoAssociate.phoneNumbers#7]
20:37:26,042 DEBUG SessionImpl:2536 - Collection found: [com.ltoj.persistence.base.PoUser.classes#1], was: [com.ltoj.persistence.base.PoUser.classes#1]
20:37:26,042 DEBUG SessionImpl:2536 - Collection found: [com.ltoj.persistence.base.PoUser.userClassMeasurements#1], was: [com.ltoj.persistence.base.PoUser.userClassMeasurements#1]
20:37:26,042 DEBUG SessionImpl:2536 - Collection found: [com.ltoj.persistence.base.PoUser.userRoles#1], was: [com.ltoj.persistence.base.PoUser.userRoles#1]
20:37:26,042 DEBUG SessionImpl:2536 - Collection found: [com.ltoj.persistence.base.PoAssociate.addresses#1], was: [com.ltoj.persistence.base.PoAssociate.addresses#1]
20:37:26,058 DEBUG SessionImpl:2536 - Collection found: [com.ltoj.persistence.base.PoAssociate.phoneNumbers#1], was: [com.ltoj.persistence.base.PoAssociate.phoneNumbers#1]
20:37:26,058 DEBUG SessionImpl:2536 - Collection found: [com.ltoj.persistence.base.PoUser.classes#6], was: [com.ltoj.persistence.base.PoUser.classes#6]
20:37:26,058 DEBUG SessionImpl:2536 - Collection found: [com.ltoj.persistence.base.PoUser.userClassMeasurements#6], was: [com.ltoj.persistence.base.PoUser.userClassMeasurements#6]
20:37:26,058 DEBUG SessionImpl:2536 - Collection found: [com.ltoj.persistence.base.PoUser.userRoles#6], was: [com.ltoj.persistence.base.PoUser.userRoles#6]
20:37:26,058 DEBUG SessionImpl:2536 - Collection found: [com.ltoj.persistence.base.PoAssociate.addresses#6], was: [com.ltoj.persistence.base.PoAssociate.addresses#6]
20:37:26,058 DEBUG SessionImpl:2536 - Collection found: [com.ltoj.persistence.base.PoAssociate.phoneNumbers#6], was: [com.ltoj.persistence.base.PoAssociate.phoneNumbers#6]
20:37:26,058 DEBUG SessionImpl:2536 - Collection found: [com.ltoj.persistence.base.PoAssociate.addresses#3], was: [com.ltoj.persistence.base.PoAssociate.addresses#3]
20:37:26,058 DEBUG SessionImpl:2536 - Collection found: [com.ltoj.persistence.base.PoAssociate.phoneNumbers#3], was: [com.ltoj.persistence.base.PoAssociate.phoneNumbers#3]
20:37:26,058 DEBUG SessionImpl:2373 - Processing unreferenced collections
20:37:26,073 DEBUG SessionImpl:2384 - Scheduling collection removes/(re)creates/updates
20:37:26,073 DEBUG SessionImpl:2035 - Flushed: 0 insertions, 0 updates, 0 deletions to 21 objects
20:37:26,073 DEBUG SessionImpl:2040 - Flushed: 0 (re)creations, 0 updates, 0 removals to 27 collections
20:37:26,073 DEBUG SessionImpl:1586 - Dont need to execute flush
20:37:26,073 DEBUG QueryTranslator:199 - HQL:
             select s.id, s.personName.lastName, s.personName.firstName, s.personName.middleInitial, s.personId from com.ltoj.persistence.base.PoStudent s where s.owner.id in (:ownerList0_, :ownerList1_, :ownerList2_, :ownerList3_) and s.status.id in (:status_id) and s.gender in (:genderList0_, :genderList1_) and s.gradeLevel.id >= (:minGradeLevel_id) and s.gradeLevel.id <= (:maxGradeLevel_id) and s.id not in (:activeEnrolledList0_, :activeEnrolledList1_, :activeEnrolledList2_, :activeEnrolledList3_, :activeEnrolledList4_, :activeEnrolledList5_) order by s.personName.lastName, s.personName.firstName, s.personName.middleInitial, s.personId
       
20:37:26,073 DEBUG QueryTranslator:200 - SQL: select postuden0_.id as x0_0_, postuden0_.lastName as x1_0_, postuden0_.firstName as x2_0_, postuden0_.middleInitial as x3_0_, postuden0_.personId as x4_0_ from PoAssociate postuden0_ where postuden0_.class='PoStudent' and ((postuden0_.owner in(? , ? , ? , ?))and(postuden0_.status in(?))and(postuden0_.gender in(? , ?))and(postuden0_.gradeLevel>=(?))and(postuden0_.gradeLevel<=(?))and(postuden0_.id not in(? , ? , ? , ? , ? , ?))) order by  postuden0_.lastName , postuden0_.firstName , postuden0_.middleInitial , postuden0_.personId
20:37:26,073 DEBUG BatcherImpl:157 - about to open: 0 open PreparedStatements, 0 open ResultSets
20:37:26,073 DEBUG SessionFactoryImpl:547 - prepared statement get: select postuden0_.id as x0_0_, postuden0_.lastName as x1_0_, postuden0_.firstName as x2_0_, postuden0_.middleInitial as x3_0_, postuden0_.personId as x4_0_ from PoAssociate postuden0_ where postuden0_.class='PoStudent' and ((postuden0_.owner in(? , ? , ? , ?))and(postuden0_.status in(?))and(postuden0_.gender in(? , ?))and(postuden0_.gradeLevel>=(?))and(postuden0_.gradeLevel<=(?))and(postuden0_.id not in(? , ? , ? , ? , ? , ?))) order by  postuden0_.lastName , postuden0_.firstName , postuden0_.middleInitial , postuden0_.personId
20:37:26,073 DEBUG SessionFactoryImpl:557 - preparing statement
20:37:26,073 DEBUG StringType:44 - binding 'M' to parameter: 7
20:37:26,073 DEBUG LongType:44 - binding '2' to parameter: 4
20:37:26,104 DEBUG BatcherImpl:164 - done closing: 0 open PreparedStatements, 0 open ResultSets
20:37:26,104 DEBUG SessionFactoryImpl:575 - closing statement
20:37:26,104 DEBUG EnrollmentAction:576 - getPotentialEnrollees - exception iterating
java.io.NotSerializableException: org.apache.commons.logging.impl.Log4JLogger
        at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1054)
        at java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1330)
        at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1302)
        at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1245)
        at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1052)
        at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:278)
        at org.apache.commons.lang.SerializationUtils.serialize(SerializationUtils.java:122)
        at org.apache.commons.lang.SerializationUtils.serialize(SerializationUtils.java:146)
        at net.sf.hibernate.type.SerializableType.toBytes(SerializableType.java:63)
        at net.sf.hibernate.type.SerializableType.toXML(SerializableType.java:50)
        at net.sf.hibernate.type.NullableType.nullSafeSet(NullableType.java:44)
        at net.sf.hibernate.type.NullableType.nullSafeSet(NullableType.java:31)
        at net.sf.hibernate.hql.QueryTranslator.bindNamedParameters(QueryTranslator.java:773)
        at net.sf.hibernate.loader.Loader.prepareQueryStatement(Loader.java:490)
        at net.sf.hibernate.hql.QueryTranslator.iterate(QueryTranslator.java:785)
        at net.sf.hibernate.impl.SessionImpl.iterate(SessionImpl.java:1422)
        at net.sf.hibernate.impl.QueryImpl.iterate(QueryImpl.java:64)
        at com.ltoj.webapp.action.EnrollmentAction.getPotentialEnrollees(EnrollmentAction.java:574)
        at com.ltoj.webapp.action.EnrollmentAction.refresh(EnrollmentAction.java:247)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:324)
        at org.apache.struts.actions.DispatchAction.dispatchMethod(DispatchAction.java:280)
        at com.ltoj.webapp.action.BaseAction.execute(BaseAction.java:158)
        at org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:484)
        at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:274)
        at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1482)
        at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:525)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247)
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193)
        at com.atlassian.util.profiling.filters.ProfilingFilter.doFilter(ProfilingFilter.java:132)
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:213)
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193)
        at com.ltoj.webapp.filter.BreadCrumbFilter.doFilter(BreadCrumbFilter.java:94)
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:213)
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193)
        at com.ltoj.webapp.filter.ActionFilter.doFilter(ActionFilter.java:312)
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:213)
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193)
        at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:256)
        at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
        at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
        at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
        at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
        at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
        at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:551)
        at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
        at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
        at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
        at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2415)
        at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180)
        at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
        at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:171)
        at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
        at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:172)
        at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
        at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:509)
        at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
        at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
        at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
        at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:174)
        at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
        at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
        at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
        at org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:223)
        at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:594)
        at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:392)
        at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:565)
        at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:619)
        at java.lang.Thread.run(Thread.java:536)
rethrown as org.apache.commons.lang.SerializationException: org.apache.commons.logging.impl.Log4JLogger
        at org.apache.commons.lang.SerializationUtils.serialize(SerializationUtils.java:125)
        at org.apache.commons.lang.SerializationUtils.serialize(SerializationUtils.java:146)
        at net.sf.hibernate.type.SerializableType.toBytes(SerializableType.java:63)
        at net.sf.hibernate.type.SerializableType.toXML(SerializableType.java:50)
        at net.sf.hibernate.type.NullableType.nullSafeSet(NullableType.java:44)
        at net.sf.hibernate.type.NullableType.nullSafeSet(NullableType.java:31)
        at net.sf.hibernate.hql.QueryTranslator.bindNamedParameters(QueryTranslator.java:773)
        at net.sf.hibernate.loader.Loader.prepareQueryStatement(Loader.java:490)
        at net.sf.hibernate.hql.QueryTranslator.iterate(QueryTranslator.java:785)
        at net.sf.hibernate.impl.SessionImpl.iterate(SessionImpl.java:1422)
        at net.sf.hibernate.impl.QueryImpl.iterate(QueryImpl.java:64)
        at com.ltoj.webapp.action.EnrollmentAction.getPotentialEnrollees(EnrollmentAction.java:574)
        at com.ltoj.webapp.action.EnrollmentAction.refresh(EnrollmentAction.java:247)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:324)
        at org.apache.struts.actions.DispatchAction.dispatchMethod(DispatchAction.java:280)
        at com.ltoj.webapp.action.BaseAction.execute(BaseAction.java:158)
        at org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:484)
        at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:274)
        at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1482)
        at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:525)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247)
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193)
        at com.atlassian.util.profiling.filters.ProfilingFilter.doFilter(ProfilingFilter.java:132)
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:213)
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193)
        at com.ltoj.webapp.filter.BreadCrumbFilter.doFilter(BreadCrumbFilter.java:94)
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:213)
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193)
        at com.ltoj.webapp.filter.ActionFilter.doFilter(ActionFilter.java:312)
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:213)
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193)
        at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:256)
        at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
        at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
        at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
        at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
        at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
        at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:551)
        at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
        at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
        at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
        at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2415)
        at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180)
        at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
        at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:171)
        at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
        at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:172)
        at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
        at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:509)
        at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
        at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
        at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
        at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:174)
        at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
        at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
        at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
        at org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:223)
        at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:594)
        at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:392)
        at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:565)
        at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:619)
        at java.lang.Thread.run(Thread.java:536)
Caused by: java.io.NotSerializableException: org.apache.commons.logging.impl.Log4JLogger
        at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1054)
        at java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1330)
        at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1302)
        at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1245)
        at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1052)
        at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:278)
        at org.apache.commons.lang.SerializationUtils.serialize(SerializationUtils.java:122)
        ... 66 more
rethrown as net.sf.hibernate.type.SerializationException: Could not serialize a serializable property: : org.apache.commons.logging.impl.Log4JLogger
        at net.sf.hibernate.type.SerializableType.toBytes(SerializableType.java:66)
        at net.sf.hibernate.type.SerializableType.toXML(SerializableType.java:50)
        at net.sf.hibernate.type.NullableType.nullSafeSet(NullableType.java:44)
        at net.sf.hibernate.type.NullableType.nullSafeSet(NullableType.java:31)
        at net.sf.hibernate.hql.QueryTranslator.bindNamedParameters(QueryTranslator.java:773)
        at net.sf.hibernate.loader.Loader.prepareQueryStatement(Loader.java:490)
        at net.sf.hibernate.hql.QueryTranslator.iterate(QueryTranslator.java:785)
        at net.sf.hibernate.impl.SessionImpl.iterate(SessionImpl.java:1422)
        at net.sf.hibernate.impl.QueryImpl.iterate(QueryImpl.java:64)
        at com.ltoj.webapp.action.EnrollmentAction.getPotentialEnrollees(EnrollmentAction.java:574)
        at com.ltoj.webapp.action.EnrollmentAction.refresh(EnrollmentAction.java:247)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:324)
        at org.apache.struts.actions.DispatchAction.dispatchMethod(DispatchAction.java:280)
        at com.ltoj.webapp.action.BaseAction.execute(BaseAction.java:158)
        at org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:484)
        at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:274)
        at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1482)
        at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:525)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247)
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193)
        at com.atlassian.util.profiling.filters.ProfilingFilter.doFilter(ProfilingFilter.java:132)
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:213)
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193)
        at com.ltoj.webapp.filter.BreadCrumbFilter.doFilter(BreadCrumbFilter.java:94)
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:213)
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193)
        at com.ltoj.webapp.filter.ActionFilter.doFilter(ActionFilter.java:312)
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:213)
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193)
        at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:256)
        at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
        at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
        at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
        at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
        at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
        at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:551)
        at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
        at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
        at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
        at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2415)
        at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180)
        at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
        at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:171)
        at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
        at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:172)
        at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
        at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:509)
        at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
        at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
        at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
        at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:174)
        at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
        at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
        at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
        at org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:223)
        at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:594)
        at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:392)
        at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:565)
        at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:619)
        at java.lang.Thread.run(Thread.java:536)
Caused by: org.apache.commons.lang.SerializationException: org.apache.commons.logging.impl.Log4JLogger
        at org.apache.commons.lang.SerializationUtils.serialize(SerializationUtils.java:125)
        at org.apache.commons.lang.SerializationUtils.serialize(SerializationUtils.java:146)
        at net.sf.hibernate.type.SerializableType.toBytes(SerializableType.java:63)
        ... 64 more
Caused by: java.io.NotSerializableException: org.apache.commons.logging.impl.Log4JLogger
        at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1054)
        at java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1330)
        at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1302)
        at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1245)
        at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1052)
        at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:278)
        at org.apache.commons.lang.SerializationUtils.serialize(SerializationUtils.java:122)
        ... 66 more




Top
 Profile  
 
 Post subject:
PostPosted: Sun Sep 28, 2003 4:30 am 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 12:50 pm
Posts: 5130
Location: Melbourne, Australia
Looks like you use setParameter for binding an object that Hibernate cant guess the Type for. So Hibernate guesses it is a serializable type. Use an explicit type when binding.


Top
 Profile  
 
 Post subject:
PostPosted: Sun Sep 28, 2003 11:44 am 
Beginner
Beginner

Joined: Tue Sep 09, 2003 5:20 pm
Posts: 43
That did it! I was passing in a collection of entities instead of just their ids.
Thanks!


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 3 posts ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.