2 Replies Latest reply on Oct 1, 2006 10:52 AM by Knut Klünker

    Problems with Duke-Clustering example

    Knut Klünker Newbie

      Hi all,
      i have deployed the duke bank clustering application without any errors, but after logging in I got the following error:
      2006-10-01 15:12:29,600 DEBUG [org.jboss.security.auth.spi.UsersRolesLoginModule] Loaded properties, users=[200]
      2006-10-01 15:12:29,603 DEBUG [org.jboss.security.auth.spi.UsersRolesLoginModule] Loaded properties, users=[200]
      2006-10-01 15:12:30,443 INFO [STDOUT] Debug: Creating bean manager.
      2006-10-01 15:12:30,930 INFO [STDOUT] Debug: Unable to lookup home: java:comp/env/ejb/customerControllerCould not dereference object
      2006-10-01 15:12:30,951 INFO [STDOUT] Debug: Unable to lookup home: java:comp/env/ejb/accountControllerCould not dereference object
      2006-10-01 15:12:31,010 INFO [STDOUT] Debug: Unable to lookup home: java:comp/env/ejb/txControllerCould not dereference object
      2006-10-01 15:12:31,011 INFO [STDOUT] Debug: /main
      2006-10-01 15:12:31,011 INFO [STDOUT] Debug: Forwarding to template.
      2006-10-01 15:12:31,307 INFO [STDOUT] Debug: Unable to lookup home: java:comp/env/ejb/customerControllerCould not dereference object
      2006-10-01 15:12:31,328 INFO [STDOUT] Debug: Unable to lookup home: java:comp/env/ejb/accountControllerCould not dereference object
      2006-10-01 15:12:31,350 INFO [STDOUT] Debug: Unable to lookup home: java:comp/env/ejb/txControllerCould not dereference object
      2006-10-01 15:12:31,605 ERROR [org.apache.catalina.core.ContainerBase.[jboss.web].[localhost].[/bank].[jsp]] Servlet.service() for servlet jsp threw exception
      java.lang.NullPointerException
      at com.sun.ebank.web.CustomerBean.getAccounts(CustomerBean.java:113)
      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:585)
      at org.apache.commons.el.ArraySuffix.evaluate(ArraySuffix.java:314)
      at org.apache.commons.el.ComplexValue.evaluate(ComplexValue.java:145)
      at org.apache.commons.el.ExpressionEvaluatorImpl.evaluate(ExpressionEvaluatorImpl.java:263)
      at org.apache.commons.el.ExpressionEvaluatorImpl.evaluate(ExpressionEvaluatorImpl.java:190)
      at org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate(PageContextImpl.java:922)
      at org.apache.jsp.template.links_jsp._jspx_meth_c_set_0(org.apache.jsp.template.links_jsp:161)
      at org.apache.jsp.template.links_jsp._jspService(org.apache.jsp.template.links_jsp:84)
      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:322)
      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.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:672)
      at org.apache.catalina.core.ApplicationDispatcher.doInclude(ApplicationDispatcher.java:574)
      at org.apache.catalina.core.ApplicationDispatcher.include(ApplicationDispatcher.java:499)
      at org.apache.jasper.runtime.JspRuntimeLibrary.include(JspRuntimeLibrary.java:966)
      at org.apache.jasper.runtime.PageContextImpl.include(PageContextImpl.java:604)
      at com.sun.ebank.web.template.InsertTag.doTag(InsertTag.java:82)
      at org.apache.jsp.template.template_jsp._jspx_meth_tt_insert_2(org.apache.jsp.template.template_jsp:897)
      at org.apache.jsp.template.template_jsp._jspService(org.apache.jsp.template.template_jsp:87)
      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:322)
      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.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:672)
      at org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:463)
      at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:398)
      at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:301)
      at com.sun.ebank.web.Dispatcher.doGet(Dispatcher.java:91)
      at javax.servlet.http.HttpServlet.service(HttpServlet.java:697)
      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:81)
      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:39)
      at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:159)
      at org.jboss.web.tomcat.tc5.session.ClusteredSessionValve.invoke(ClusteredSessionValve.java:81)
      at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:482)
      at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:59)
      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:856)
      at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:744)
      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)
      2006-10-01 15:12:31,741 DEBUG [org.jboss.web.tomcat.tc5.session.JBossCacheManager] check to see if needs to store and replicate session with id v1nYLs1NXcXEceWMgfrGig**
      2006-10-01 15:12:31,741 DEBUG [org.jboss.web.tomcat.tc5.session.ClusteredSession] processSessionRepl(): session is dirty. Will increment version from: 3 and replicate.
      2006-10-01 15:12:31,757 INFO [STDOUT] java.io.NotSerializableException: com.sun.ebank.web.BeanManager
      2006-10-01 15:12:31,759 INFO [STDOUT] at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1081)
      2006-10-01 15:12:31,760 INFO [STDOUT] at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:302)
      2006-10-01 15:12:31,761 INFO [STDOUT] at java.util.HashMap.writeObject(HashMap.java:1039)
      2006-10-01 15:12:31,762 INFO [STDOUT] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      2006-10-01 15:12:31,763 INFO [STDOUT] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      2006-10-01 15:12:31,764 INFO [STDOUT] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      2006-10-01 15:12:31,764 INFO [STDOUT] at java.lang.reflect.Method.invoke(Method.java:585)
      2006-10-01 15:12:31,764 INFO [STDOUT] at java.io.ObjectStreamClass.invokeWriteObject(ObjectStreamClass.java:917)
      2006-10-01 15:12:31,765 INFO [STDOUT] at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1339)
      2006-10-01 15:12:31,765 INFO [STDOUT] at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1290)
      2006-10-01 15:12:31,765 INFO [STDOUT] at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1079)
      2006-10-01 15:12:31,765 INFO [STDOUT] at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:302)
      2006-10-01 15:12:31,766 INFO [STDOUT] at org.jboss.web.tomcat.tc5.session.SessionBasedClusteredSession.writeExternal(SessionBasedClusteredSession.java:288)
      2006-10-01 15:12:31,766 INFO [STDOUT] at org.jboss.web.tomcat.tc5.session.JBossCacheService.externalizeSession(JBossCacheService.java:771)
      2006-10-01 15:12:31,766 INFO [STDOUT] at org.jboss.web.tomcat.tc5.session.JBossCacheService.putSession(JBossCacheService.java:229)
      2006-10-01 15:12:31,766 INFO [STDOUT] at org.jboss.web.tomcat.tc5.session.SessionBasedClusteredSession.processSessionRepl(SessionBasedClusteredSession.java:165)
      2006-10-01 15:12:31,767 INFO [STDOUT] at org.jboss.web.tomcat.tc5.session.JBossCacheManager.processSessionRepl(JBossCacheManager.java:606)
      2006-10-01 15:12:31,767 INFO [STDOUT] at org.jboss.web.tomcat.tc5.session.JBossCacheManager.storeSession(JBossCacheManager.java:375)
      2006-10-01 15:12:31,767 INFO [STDOUT] at org.jboss.web.tomcat.tc5.session.InstantSnapshotManager.snapshot(InstantSnapshotManager.java:38)
      2006-10-01 15:12:31,768 INFO [STDOUT] at org.jboss.web.tomcat.tc5.session.ClusteredSessionValve.invoke(ClusteredSessionValve.java:91)
      2006-10-01 15:12:31,768 INFO [STDOUT] at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:482)
      2006-10-01 15:12:31,773 INFO [STDOUT] at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:59)
      2006-10-01 15:12:31,774 INFO [STDOUT] at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
      2006-10-01 15:12:31,775 INFO [STDOUT] at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
      2006-10-01 15:12:31,776 INFO [STDOUT] at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
      2006-10-01 15:12:31,776 INFO [STDOUT] at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
      2006-10-01 15:12:31,776 INFO [STDOUT] at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:856)
      2006-10-01 15:12:31,776 INFO [STDOUT] at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:744)
      2006-10-01 15:12:31,777 INFO [STDOUT] at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
      2006-10-01 15:12:31,777 INFO [STDOUT] at org.apache.tomcat.util.net.MasterSlaveWorkerThread.run(MasterSlaveWorkerThread.java:112)
      2006-10-01 15:12:31,777 INFO [STDOUT] at java.lang.Thread.run(Thread.java:595)
      Can somebody help me?
      thanxs
      delta296