Opened 16 years ago

Closed 16 years ago

#100 closed defect (fixed)

IllegalArgumentException occurred calling getter of net.sf.basedb.core.data.BasicData.id

Reported by: Nicklas Nordborg Owned by: Nicklas Nordborg
Priority: blocker Milestone: BASE 2.0 RC1
Component: core Version:
Keywords: Cc:

Description

Happens on the View / Files page. Seems to be related to Hibernate 3.1.2 since it goes away if Hibernate 3.1.rc1 is used.

Could be a problem with how FileUtil?.getDirectoryTree binds parent ID:s to the query. It seems like Hibernate expects an entity but get's an int.

Full stack trace: IllegalArgumentException? occurred calling getter of net.sf.basedb.core.data.BasicData?.id

...at HibernateUtil?.loadList(HibernateUtil?.java:1293) ...at ItemQuery?.list(ItemQuery?.java:93) ...at net.sf.basedb.util.FileUtil?.getDirectoryTree(FileUtil?.java:130) ...at org.apache.jsp.filemanager.directories.list_005fdirectories_jsp._jspService(list_005fdirectories_jsp.java:145)

...at org.apache.jasper.runtime.HttpJspBase?.service(HttpJspBase?.java:99) ...at javax.servlet.http.HttpServlet?.service(HttpServlet?.java:802) ...at org.apache.jasper.servlet.JspServletWrapper?.service(JspServletWrapper?.java:325) ...at org.apache.jasper.servlet.JspServlet?.serviceJspFile(JspServlet?.java:295) ...at org.apache.jasper.servlet.JspServlet?.service(JspServlet?.java:245) ...at javax.servlet.http.HttpServlet?.service(HttpServlet?.java:802) ...at org.apache.catalina.core.ApplicationFilterChain?.internalDoFilter(ApplicationFilterChain?.java:252) ...at org.apache.catalina.core.ApplicationFilterChain?.doFilter(ApplicationFilterChain?.java:173) ...at net.sf.basedb.clients.web.servlet.CharacterEncodingFilter?.doFilter(CharacterEncodingFilter?.java:72) ...at org.apache.catalina.core.ApplicationFilterChain?.internalDoFilter(ApplicationFilterChain?.java:202) ...at org.apache.catalina.core.ApplicationFilterChain?.doFilter(ApplicationFilterChain?.java:173) ...at org.apache.catalina.core.StandardWrapperValve?.invoke(StandardWrapperValve?.java:214) ...at org.apache.catalina.core.StandardContextValve?.invoke(StandardContextValve?.java:178) ...at org.apache.catalina.core.StandardHostValve?.invoke(StandardHostValve?.java:126) ...at org.apache.catalina.valves.ErrorReportValve?.invoke(ErrorReportValve?.java:105) ...at org.apache.catalina.core.StandardEngineValve?.invoke(StandardEngineValve?.java:107) ...at org.apache.catalina.connector.CoyoteAdapter?.service(CoyoteAdapter?.java:148) ...at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:825) ...at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:738) ...at org.apache.tomcat.util.net.PoolTcpEndpoint?.processSocket(PoolTcpEndpoint?.java:526) ...at org.apache.tomcat.util.net.LeaderFollowerWorkerThread?.runIt(LeaderFollowerWorkerThread?.java:80) ...at org.apache.tomcat.util.threads.ThreadPool?$ControlRunnable?.run(ThreadPool?.java:684) ...at java.lang.Thread.run(Thread.java:595)

Caused by: org.hibernate.PropertyAccessException? ...at org.hibernate.property.BasicPropertyAccessor?$BasicGetter?.get(BasicPropertyAccessor?.java:171) ...at org.hibernate.tuple.AbstractEntityTuplizer?.getIdentifier(AbstractEntityTuplizer?.java:176) ...at org.hibernate.persister.entity.AbstractEntityPersister?.getIdentifier(AbstractEntityPersister?.java:3257) ...at org.hibernate.persister.entity.AbstractEntityPersister?.isTransient(AbstractEntityPersister?.java:2983) ...at org.hibernate.engine.ForeignKeys?.isTransient(ForeignKeys?.java:181) ...at org.hibernate.engine.ForeignKeys?.getEntityIdentifierIfNotUnsaved(ForeignKeys?.java:215) ...at org.hibernate.type.EntityType?.getIdentifier(EntityType?.java:108) ...at org.hibernate.type.ManyToOneType?.nullSafeSet(ManyToOneType?.java:77) ...at org.hibernate.loader.hql.QueryLoader?.bindNamedParameters(QueryLoader?.java:491) ...at org.hibernate.loader.Loader.prepareQueryStatement(Loader.java:1577) ...at org.hibernate.loader.Loader.doQuery(Loader.java:661) ...at org.hibernate.loader.Loader.doQueryAndInitializeNonLazyCollections(Loader.java:224) ...at org.hibernate.loader.Loader.doList(Loader.java:2145) ...at org.hibernate.loader.Loader.listIgnoreQueryCache(Loader.java:2029) ...at org.hibernate.loader.Loader.list(Loader.java:2024) ...at org.hibernate.loader.hql.QueryLoader?.list(QueryLoader?.java:375) ...at org.hibernate.hql.ast.QueryTranslatorImpl?.list(QueryTranslatorImpl?.java:308) ...at org.hibernate.engine.query.HQLQueryPlan.performList(HQLQueryPlan.java:153) ...at org.hibernate.impl.SessionImpl?.list(SessionImpl?.java:1129) ...at org.hibernate.impl.QueryImpl?.list(QueryImpl?.java:79) ...at HibernateUtil?.loadList(HibernateUtil?.java:1289) ...at ItemQuery?.list(ItemQuery?.java:93) ...at net.sf.basedb.util.FileUtil?.getDirectoryTree(FileUtil?.java:130) ...at org.apache.jsp.filemanager.directories.list_005fdirectories_jsp._jspService(list_005fdirectories_jsp.java:145) ...at org.apache.jasper.runtime.HttpJspBase?.service(HttpJspBase?.java:99) ...at javax.servlet.http.HttpServlet?.service(HttpServlet?.java:802) ...at org.apache.jasper.servlet.JspServletWrapper?.service(JspServletWrapper?.java:325) ...at org.apache.jasper.servlet.JspServlet?.serviceJspFile(JspServlet?.java:295) ...at org.apache.jasper.servlet.JspServlet?.service(JspServlet?.java:245) ...at javax.servlet.http.HttpServlet?.service(HttpServlet?.java:802) ...at org.apache.catalina.core.ApplicationFilterChain?.internalDoFilter(ApplicationFilterChain?.java:252) ...at org.apache.catalina.core.ApplicationFilterChain?.doFilter(ApplicationFilterChain?.java:173) ...at net.sf.basedb.clients.web.servlet.CharacterEncodingFilter?.doFilter(CharacterEncodingFilter?.java:72) ...at org.apache.catalina.core.ApplicationFilterChain?.internalDoFilter(ApplicationFilterChain?.java:202) ...at org.apache.catalina.core.ApplicationFilterChain?.doFilter(ApplicationFilterChain?.java:173) ...at org.apache.catalina.core.StandardWrapperValve?.invoke(StandardWrapperValve?.java:214) ...at org.apache.catalina.core.StandardContextValve?.invoke(StandardContextValve?.java:178) ...at org.apache.catalina.core.StandardHostValve?.invoke(StandardHostValve?.java:126) ...at org.apache.catalina.valves.ErrorReportValve?.invoke(ErrorReportValve?.java:105) ...at org.apache.catalina.core.StandardEngineValve?.invoke(StandardEngineValve?.java:107) ...at org.apache.catalina.connector.CoyoteAdapter?.service(CoyoteAdapter?.java:148) ...at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:825) ...at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:738) ...at org.apache.tomcat.util.net.PoolTcpEndpoint?.processSocket(PoolTcpEndpoint?.java:526) ...at org.apache.tomcat.util.net.LeaderFollowerWorkerThread?.runIt(LeaderFollowerWorkerThread?.java:80) ...at org.apache.tomcat.util.threads.ThreadPool?$ControlRunnable?.run(ThreadPool?.java:684) ...at java.lang.Thread.run(Thread.java:595)

Caused by: java.lang.IllegalArgumentException? ...at sun.reflect.GeneratedMethodAccessor53.invoke(Unknown Source) ...at sun.reflect.DelegatingMethodAccessorImpl?.invoke(DelegatingMethodAccessorImpl?.java:25) ...at java.lang.reflect.Method.invoke(Method.java:585) ...at org.hibernate.property.BasicPropertyAccessor?$BasicGetter?.get(BasicPropertyAccessor?.java:145) ...at org.hibernate.tuple.AbstractEntityTuplizer?.getIdentifier(AbstractEntityTuplizer?.java:176) ...at org.hibernate.persister.entity.AbstractEntityPersister?.getIdentifier(AbstractEntityPersister?.java:3257) ...at org.hibernate.persister.entity.AbstractEntityPersister?.isTransient(AbstractEntityPersister?.java:2983) ...at org.hibernate.engine.ForeignKeys?.isTransient(ForeignKeys?.java:181) ...at org.hibernate.engine.ForeignKeys?.getEntityIdentifierIfNotUnsaved(ForeignKeys?.java:215) ...at org.hibernate.type.EntityType?.getIdentifier(EntityType?.java:108) ...at org.hibernate.type.ManyToOneType?.nullSafeSet(ManyToOneType?.java:77) ...at org.hibernate.loader.hql.QueryLoader?.bindNamedParameters(QueryLoader?.java:491) ...at org.hibernate.loader.Loader.prepareQueryStatement(Loader.java:1577) ...at org.hibernate.loader.Loader.doQuery(Loader.java:661) ...at org.hibernate.loader.Loader.doQueryAndInitializeNonLazyCollections(Loader.java:224) ...at org.hibernate.loader.Loader.doList(Loader.java:2145) ...at org.hibernate.loader.Loader.listIgnoreQueryCache(Loader.java:2029) ...at org.hibernate.loader.Loader.list(Loader.java:2024) ...at org.hibernate.loader.hql.QueryLoader?.list(QueryLoader?.java:375) ...at org.hibernate.hql.ast.QueryTranslatorImpl?.list(QueryTranslatorImpl?.java:308) ...at org.hibernate.engine.query.HQLQueryPlan.performList(HQLQueryPlan.java:153) ...at org.hibernate.impl.SessionImpl?.list(SessionImpl?.java:1129) ...at org.hibernate.impl.QueryImpl?.list(QueryImpl?.java:79) ...at HibernateUtil?.loadList(HibernateUtil?.java:1289) ...at ItemQuery?.list(ItemQuery?.java:93) ...at net.sf.basedb.util.FileUtil?.getDirectoryTree(FileUtil?.java:130) ...at org.apache.jsp.filemanager.directories.list_005fdirectories_jsp._jspService(list_005fdirectories_jsp.java:145) ...at org.apache.jasper.runtime.HttpJspBase?.service(HttpJspBase?.java:99) ...at javax.servlet.http.HttpServlet?.service(HttpServlet?.java:802) ...at org.apache.jasper.servlet.JspServletWrapper?.service(JspServletWrapper?.java:325) ...at org.apache.jasper.servlet.JspServlet?.serviceJspFile(JspServlet?.java:295) ...at org.apache.jasper.servlet.JspServlet?.service(JspServlet?.java:245) ...at javax.servlet.http.HttpServlet?.service(HttpServlet?.java:802) ...at org.apache.catalina.core.ApplicationFilterChain?.internalDoFilter(ApplicationFilterChain?.java:252) ...at org.apache.catalina.core.ApplicationFilterChain?.doFilter(ApplicationFilterChain?.java:173) ...at net.sf.basedb.clients.web.servlet.CharacterEncodingFilter?.doFilter(CharacterEncodingFilter?.java:72) ...at org.apache.catalina.core.ApplicationFilterChain?.internalDoFilter(ApplicationFilterChain?.java:202) ...at org.apache.catalina.core.ApplicationFilterChain?.doFilter(ApplicationFilterChain?.java:173) ...at org.apache.catalina.core.StandardWrapperValve?.invoke(StandardWrapperValve?.java:214) ...at org.apache.catalina.core.StandardContextValve?.invoke(StandardContextValve?.java:178) ...at org.apache.catalina.core.StandardHostValve?.invoke(StandardHostValve?.java:126) ...at org.apache.catalina.valves.ErrorReportValve?.invoke(ErrorReportValve?.java:105) ...at org.apache.catalina.core.StandardEngineValve?.invoke(StandardEngineValve?.java:107) ...at org.apache.catalina.connector.CoyoteAdapter?.service(CoyoteAdapter?.java:148) ...at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:825) ...at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:738) ...at org.apache.tomcat.util.net.PoolTcpEndpoint?.processSocket(PoolTcpEndpoint?.java:526) ...at org.apache.tomcat.util.net.LeaderFollowerWorkerThread?.runIt(LeaderFollowerWorkerThread?.java:80) ...at org.apache.tomcat.util.threads.ThreadPool?$ControlRunnable?.run(ThreadPool?.java:684) ...at java.lang.Thread.run(Thread.java:595)

Change History (1)

comment:1 Changed 16 years ago by Nicklas Nordborg

Resolution: fixed
Status: newclosed
Note: See TracTickets for help on using tickets.