mestihudson / acuteauto

Automatically exported from code.google.com/p/acuteauto
0 stars 0 forks source link

Details vehicle pages displayes error +Null pointer exception #31

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
A null pointer exception is thrown once clicking on car details.
What steps will reproduce the problem?
1.Navigate to acuteauto.com
2.click on search.
3.wait 5-6 minutes until session is destroyed.
4-click on details button

What is the expected output? 
vehicle details pages is displayed
What do you see instead?
error page with bad data. see attachment.
======================================================
INFO: No Session found for this request: 
/Details/2006_Dodge_Avenger_Express_Sedan_4D/9
Oct 15, 2012 6:23:34 PM com.acminds.acuteauto.ui.converter.EntityConverter 
getAsObject
SEVERE: Exception while converting to an Entity: 9
java.lang.IllegalStateException: getAttribute: Session already invalidated
    at org.apache.catalina.session.StandardSession.getAttribute(StandardSession.java:1175)
    at org.apache.catalina.session.StandardSessionFacade.getAttribute(StandardSessionFacade.java:122)
    at com.acminds.acuteauto.ui.WebPersistenceManager.getCurrentEntityManager(WebPersistenceManager.java:62)
    at com.acminds.acuteauto.persistence.PersistenceManager.getEntityManager(PersistenceManager.java:54)
    at com.acminds.acuteauto.persistence.BaseDAO.get(BaseDAO.java:32)
    at com.acminds.acuteauto.ui.converter.EntityConverter.getAsObject(EntityConverter.java:46)
    at com.sun.faces.renderkit.html_basic.HtmlBasicInputRenderer.getConvertedValue(HtmlBasicInputRenderer.java:171)
    at javax.faces.component.UIViewParameter.getConvertedValue(UIViewParameter.java:394)
    at javax.faces.component.UIInput.validate(UIInput.java:960)
    at javax.faces.component.UIInput.executeValidate(UIInput.java:1233)
    at javax.faces.component.UIInput.processValidators(UIInput.java:698)
    at javax.faces.component.UIViewParameter.processValidators(UIViewParameter.java:273)
    at javax.faces.component.UIComponentBase.processValidators(UIComponentBase.java:1214)
    at javax.faces.component.UIComponentBase.processValidators(UIComponentBase.java:1214)
    at javax.faces.component.UIViewRoot.processValidators(UIViewRoot.java:1172)
    at com.sun.faces.lifecycle.ProcessValidationsPhase.execute(ProcessValidationsPhase.java:76)
    at com.sun.faces.lifecycle.Phase.doPhase(Phase.java:101)
    at com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:118)
    at javax.faces.webapp.FacesServlet.service(FacesServlet.java:593)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:305)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
    at com.acminds.acuteauto.ui.filter.SecurityFilter.doFilter(SecurityFilter.java:82)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
    at com.ocpsoft.pretty.PrettyFilter.doFilter(PrettyFilter.java:145)

Original issue reported on code.google.com by abid...@gmail.com on 15 Oct 2012 at 10:34

Attachments:

GoogleCodeExporter commented 8 years ago
Not able to reproduce this issue. Looks like the current code in SVN handles 
this scenario already. Not sure if the test was made on an older version of 
war. 

Need to retest this defect and let me know if it still exists.

Original comment by Mansur...@gmail.com on 4 Nov 2012 at 7:45

GoogleCodeExporter commented 8 years ago
Finally, reproduced this issue, and fix has been committed to SVN.

Original comment by Mansur...@gmail.com on 4 Nov 2012 at 10:41