Opened 15 years ago

Closed 15 years ago

#1481 closed defect (fixed)

org.hibernate.PropertyAccessException when viewing details of a feature

Reported by: base Owned by: Nicklas Nordborg
Priority: major Milestone: BASE 2.15
Component: core Version: 2.13.1
Keywords: Cc: pawel.sztromwasser@…

Description (last modified by Nicklas Nordborg)

Exception when trying to see feature's details (after clicking link with feature id). Here is the stacktrace and BASE cfg:

Version	BASE 2.13.1 (build #5134; schema #75)
Web server	Apache Tomcat/6.0.20
Database Server	PostgreSQL 8.3.9
Database Dialect	org.hibernate.dialect.PostgreSQLDialect
JDBC Driver	org.postgresql.Driver (version 8.4)
Java runtime	Java(TM) SE Runtime Environment (1.6.0_03-b05), Sun Microsystems Inc.
Operating system	Linux amd64 2.6.9-78.0.22.ELsmp
Memory	Total: 298.4 MB
Free: 60.0 MB
Max: 910.3 MB
Browser	Mozilla/5.0 (X11; U; Linux i686; en-US) AppleWebKit/533.2 (KHTML, like Gecko) Chrome/5.0.342.7 Safari/533.2
Error message	Exception occurred inside getter of net.sf.basedb.core.data.ReporterData.reporterType
Stack trace	
org.hibernate.PropertyAccessException
...at org.hibernate.property.BasicPropertyAccessor$BasicGetter.get(BasicPropertyAccessor.java:172)
...at org.hibernate.tuple.entity.AbstractEntityTuplizer.getPropertyValue(AbstractEntityTuplizer.java:293)
...at org.hibernate.tuple.entity.AbstractEntityTuplizer.getPropertyValue(AbstractEntityTuplizer.java:303)
...at org.hibernate.persister.entity.AbstractEntityPersister.getPropertyValue(AbstractEntityPersister.java:3600)
...at Reporter.getReporterType(Reporter.java:178)
...at org.apache.jsp.lims.arraydesigns.features.view_005ffeature_jsp._jspService(view_005ffeature_jsp.java:420)
...at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
...at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
...at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:374)
...at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:342)
...at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:267)
...at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
...at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
...at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
...at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:646)
...at org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:436)
...at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:374)
...at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:302)
...at org.apache.jasper.runtime.PageContextImpl.doForward(PageContextImpl.java:706)
...at org.apache.jasper.runtime.PageContextImpl.forward(PageContextImpl.java:677)
...at org.apache.jsp.lims.arraydesigns.features.index_jsp._jspService(index_jsp.java:169)
...at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
...at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
...at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:374)
...at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:342)
...at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:267)
...at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
...at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
...at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
...at net.sf.basedb.clients.web.servlet.CharacterEncodingFilter.doFilter(CharacterEncodingFilter.java:70)
...at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
...at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
...at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
...at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
...at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
...at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
...at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
...at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:293)
...at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:849)
...at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)
...at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:454)
...at java.lang.Thread.run(Thread.java:619)

Caused by: java.lang.reflect.InvocationTargetException: null
...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:597)
...at org.hibernate.property.BasicPropertyAccessor$BasicGetter.get(BasicPropertyAccessor.java:169)
...at org.hibernate.tuple.entity.AbstractEntityTuplizer.getPropertyValue(AbstractEntityTuplizer.java:293)
...at org.hibernate.tuple.entity.AbstractEntityTuplizer.getPropertyValue(AbstractEntityTuplizer.java:303)
...at org.hibernate.persister.entity.AbstractEntityPersister.getPropertyValue(AbstractEntityPersister.java:3600)
...at Reporter.getReporterType(Reporter.java:178)
...at org.apache.jsp.lims.arraydesigns.features.view_005ffeature_jsp._jspService(view_005ffeature_jsp.java:420)
...at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
...at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
...at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:374)
...at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:342)
...at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:267)
...at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
...at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
...at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
...at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:646)
...at org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:436)
...at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:374)
...at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:302)
...at org.apache.jasper.runtime.PageContextImpl.doForward(PageContextImpl.java:706)
...at org.apache.jasper.runtime.PageContextImpl.forward(PageContextImpl.java:677)
...at org.apache.jsp.lims.arraydesigns.features.index_jsp._jspService(index_jsp.java:169)
...at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
...at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
...at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:374)
...at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:342)
...at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:267)
...at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
...at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
...at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
...at net.sf.basedb.clients.web.servlet.CharacterEncodingFilter.doFilter(CharacterEncodingFilter.java:70)
...at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
...at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
...at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
...at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
...at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
...at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
...at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
...at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:293)
...at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:849)
...at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)
...at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:454)
...at java.lang.Thread.run(Thread.java:619)

Caused by: org.hibernate.SessionException: proxies cannot be fetched by a stateless session
...at org.hibernate.impl.StatelessSessionImpl.immediateLoad(StatelessSessionImpl.java:240)
...at org.hibernate.proxy.AbstractLazyInitializer.initialize(AbstractLazyInitializer.java:141)
...at org.hibernate.proxy.AbstractLazyInitializer.getImplementation(AbstractLazyInitializer.java:174)
...at org.hibernate.proxy.pojo.javassist.JavassistLazyInitializer.invoke(JavassistLazyInitializer.java:190)
...at data.ReporterData_$$_javassist_35.getReporterType(ReporterData_$$_javassist_35.java)
...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:597)
...at org.hibernate.property.BasicPropertyAccessor$BasicGetter.get(BasicPropertyAccessor.java:169)
...at org.hibernate.tuple.entity.AbstractEntityTuplizer.getPropertyValue(AbstractEntityTuplizer.java:293)
...at org.hibernate.tuple.entity.AbstractEntityTuplizer.getPropertyValue(AbstractEntityTuplizer.java:303)
...at org.hibernate.persister.entity.AbstractEntityPersister.getPropertyValue(AbstractEntityPersister.java:3600)
...at Reporter.getReporterType(Reporter.java:178)
...at org.apache.jsp.lims.arraydesigns.features.view_005ffeature_jsp._jspService(view_005ffeature_jsp.java:420)
...at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
...at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
...at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:374)
...at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:342)
...at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:267)
...at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
...at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
...at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
...at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:646)
...at org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:436)
...at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:374)
...at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:302)
...at org.apache.jasper.runtime.PageContextImpl.doForward(PageContextImpl.java:706)
...at org.apache.jasper.runtime.PageContextImpl.forward(PageContextImpl.java:677)
...at org.apache.jsp.lims.arraydesigns.features.index_jsp._jspService(index_jsp.java:169)
...at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
...at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
...at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:374)
...at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:342)
...at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:267)
...at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
...at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
...at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
...at net.sf.basedb.clients.web.servlet.CharacterEncodingFilter.doFilter(CharacterEncodingFilter.java:70)
...at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
...at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
...at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
...at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
...at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
...at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
...at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
...at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:293)
...at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:849)
...at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)
...at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:454)
...at java.lang.Thread.run(Thread.java:619)

Change History (3)

comment:1 by Nicklas Nordborg, 15 years ago

Component: webcore
Description: modified (diff)
Milestone: BASE 2.15

I can verify this problem and also an identical issue when trying to view raw data information from a raw bioassay.

This is more or less the same problem as #1356 which was caused by #1350. The root cause is that an unitialized proxy is no longer associated with a session. In this case it is because a stateless session is used to load the feature information.

comment:2 by Nicklas Nordborg, 15 years ago

Owner: changed from everyone to Nicklas Nordborg
Status: newassigned

comment:3 by Nicklas Nordborg, 15 years ago

Resolution: fixed
Status: assignedclosed

(In [5311]) Fixes #1481: org.hibernate.PropertyAccessException when viewing details of a feature

Note: See TracTickets for help on using tickets.