[EJB 3.0] - Required info on Session attribute event listener threw exce
by sumit.malik@redalkemi.com
Hi Everyone !!
Previously i have posted a query and now i can make out where exactly the problem is lying...
Please refer http://www.jboss.com/index.html?module=bb&op=viewtopic&t=96839
Here is actual log trace from server.log file
|
| ERROR [org.apache.catalina.core.ContainerBase.[jboss.web].[localhost].[/test]] Session attribute event listener threw exception
|
| java.lang.RuntimeException: Could not resolve beanClass method from proxy call: public abstract void javax.ejb.EJBLocalObject.remove() throws javax.ejb.RemoveException,javax.ejb.EJBException
| at org.jboss.ejb3.stateful.StatefulContainer.localInvoke(StatefulContainer.java:169)
| at org.jboss.ejb3.stateful.StatefulLocalProxy.invoke(StatefulLocalProxy.java:98)
| at $Proxy128.remove(Unknown Source)
| at net.java.dev.strutsejb.web.SessionRemover.attributeRemoved(SessionRemover.java:39)
| at org.apache.catalina.session.StandardSession.removeAttributeInternal(StandardSession.java:1623)
| at org.apache.catalina.session.StandardSession.removeAttribute(StandardSession.java:1179)
| at org.apache.catalina.session.StandardSession.removeAttribute(StandardSession.java:1151)
| at org.apache.catalina.session.StandardSession.setAttribute(StandardSession.java:1234)
| at org.apache.catalina.session.StandardSessionFacade.setAttribute(StandardSessionFacade.java:129)
| at org.apache.jsp.update2AppTrans_jsp._jspService(update2AppTrans_jsp.java:85)
| at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97)
| at javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
| at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:332)
| at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)
| at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)
| at javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
| at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
| at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
| at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
| 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:213)
| at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
| at org.jboss.web.tomcat.security.CustomPrincipalValve.invoke(CustomPrincipalValve.java:54)
| at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:174)
| at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:74)
| 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:869)
| at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:664) at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
| at org.apache.tomcat.util.net.MasterSlaveWorkerThread.run(MasterSlaveWorkerThread.java:112)
| at java.lang.Thread.run(Thread.java:595)
|
|
Here i have found that there its the tomcat instance running with EJB3 deployer which is invalidation the session. I haven't got much assistance in this regard.
Please assist on this regard because here i m just stuck up with session bean funcationality. Message driven and stateless session bean are running smooth fashion but just session invalidate problem from tomcat is creatin the problem.
Any suggestion would be a great help for me....
Looking forward for you responses...
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3992799#3992799
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3992799
19 years, 4 months
[JBoss Seam] - EntityQuery pagination
by rsmol
Hello, I'm quite new to JSF and Seam. I've followed docs and using seam-gen I've managed to generate entities and frontend for them. Now I have class LogsList that extends EntityQuery. It works fine, however I would like provide user with possibility to change the results per page.
Generated class has method getMaxResults() and hard coded 25 in it. It seems that EntityQuery is stateless? After changing set/get methods for maxResults I do not know how to provide initial value (there are 1M+ entries in DB). I can't do that as there is @Create annotated method validate and this one is used every time I refresh results. When I Override the method it seems that
| if(getMaxResults() == null) {setMaxResults(25)}
|
condition always pass. In the LogsList.xhtml (section tableControl) I've provided:
| <h:selectOneMenu value="#{logsList.maxResults}" id="maxResults">
| <f:selectItem itemLabel="5" itemValue="5"/>
| <f:selectItem itemLabel="10" itemValue="10"/>
| <f:selectItem itemLabel="20" itemValue="20"/>
| </h:selectOneMenu>
|
And I though that when I click next page, the currently selected valued is assigned to logsList and then proper number of records should be displayed. What am I missing? Or shall I uses statefull object like "settings" to store such an information?
I've managed to achieve this using Statefull EJB, but I'would love to use this EntityQuery object. I've digged through the source code of examples (great way of inspiration) but they either use Statefull EJB or functionality is not provided. I would also like to restrict search with some restrictions.
Can anybody give me any hints? I might be confused of when to use @In and when/how use setters of property.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3992792#3992792
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3992792
19 years, 4 months