8 Replies Latest reply on Jul 27, 2003 3:27 PM by pepazdepa

    Problem with JSP

    pepazdepa Newbie

      It writes me this exception (On SUN ONE server it works fine). Could someone help me, where could be mistake :/.
      -------------------------------------------------------------
      org.apache.jasper.JasperException: setAttribute: Non-serializable attribute
      at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:248)
      at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:295)
      at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:241)
      at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247)
      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193)
      at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:260)
      at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
      at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
      at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
      at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
      at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
      at org.apache.catalina.valves.CertificatesValve.invoke(CertificatesValve.java:246)
      at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
      at org.jboss.web.catalina.session.ClusteredSessionValve.invoke(ClusteredSessionValve.java:78)
      at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
      at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
      at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
      at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2415)
      at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180)
      at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
      at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:170)
      at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
      at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:172)
      at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
      at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:509)
      at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
      at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
      at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
      at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:174)
      at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
      at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
      at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
      at org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:223)
      at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:432)
      at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:386)
      at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:534)
      at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:530)
      at java.lang.Thread.run(Thread.java:536)


      root cause

      java.lang.IllegalArgumentException: setAttribute: Non-serializable attribute
      at org.jboss.web.catalina.session.ClusteredSession.setAttribute(ClusteredSession.java:1078)
      at org.apache.catalina.session.StandardSessionFacade.setAttribute(StandardSessionFacade.java:191)
      at org.apache.catalina.session.StandardSessionFacade.setAttribute(StandardSessionFacade.java:191)
      at org.apache.jasper.runtime.PageContextImpl.setAttribute(PageContextImpl.java:252)
      at org.apache.jsp.seznam_jsp._jspService(seznam_jsp.java:89)
      at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:137)
      at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
      at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:204)
      at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:295)
      at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:241)
      at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247)
      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193)
      at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:260)
      at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
      at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
      at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
      at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
      at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
      at org.apache.catalina.valves.CertificatesValve.invoke(CertificatesValve.java:246)
      at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
      at org.jboss.web.catalina.session.ClusteredSessionValve.invoke(ClusteredSessionValve.java:78)
      at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
      at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
      at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
      at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2415)
      at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180)
      at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
      at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:170)
      at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
      at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:172)
      at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
      at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:509)
      at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
      at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
      at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
      at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:174)
      at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
      at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
      at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
      at org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:223)
      at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:432)
      at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:386)
      at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:534)
      at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:530)
      at java.lang.Thread.run(Thread.java:536)

        • 1. Re: Problem with JSP
          pepazdepa Newbie

          I forgot on JSP, so the JSP looks like this

          • 2. Re: Problem with JSP
            Jon Barnett Master

            I couldn't find anything in your JSP that set an attribute. However, the clustered session service is complaining that the attribute trying to be set is not serializable - a necessary requirement if stored in session.

            Sorry - that is the best that I can do at the moment. If you have more information that might help or if you could dig a little deeper or point out where you might be setting an attribute - that would help.

            • 3. Re: Problem with JSP
              pepazdepa Newbie

              Hi i send u whole ear file

              • 4. Re: Problem with JSP
                Jon Barnett Master

                I can't actually run your application as I don't have the necessary datasources for binding.

                However, the generated Jasper JSP servlet code for seznam.jsp is:
                Telefony.beany.Seznam seznam = null;
                synchronized (session) {
                seznam = (Telefony.beany.Seznam) pageContext.getAttribute("seznam", PageContext.SESSION_SCOPE);
                if (seznam == null){
                try {
                seznam = (Telefony.beany.Seznam) java.beans.Beans.instantiate(this.getClass().getClassLoader(), "Telefony.beany.Seznam");
                } catch (ClassNotFoundException exc) {
                throw new InstantiationException(exc.getMessage());
                } catch (Exception exc) {
                throw new ServletException("Cannot create bean of class " + "Telefony.beany.Seznam", exc);
                }
                pageContext.setAttribute("seznam", seznam, PageContext.SESSION_SCOPE);
                }

                Line 89 - the one indicated in your original error log for seznam_jsp.java is the pageContext.setAttribute line.

                The problem appears to be trying to store the variable seznam [setAttribute("seznam", sezname ...)] and the complaint from your original error log indicates that it thinks that Telefony.beany.Seznam is not serializable. Is the Seznam class serializable?

                • 5. Re: Problem with JSP
                  pepazdepa Newbie

                  I add to the Seznam.java for class Seznam -
                  implements java.io.Serializable - and now it write this -

                  org.apache.jasper.JasperException
                  at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:248)
                  at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:295)
                  at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:241)
                  at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
                  at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247)
                  at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193)
                  at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:260)
                  at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
                  at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
                  at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
                  at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
                  at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
                  at org.apache.catalina.valves.CertificatesValve.invoke(CertificatesValve.java:246)
                  at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
                  at org.jboss.web.catalina.session.ClusteredSessionValve.invoke(ClusteredSessionValve.java:78)
                  at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
                  at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
                  at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
                  at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2415)
                  at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180)
                  at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
                  at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:170)
                  at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
                  at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:172)
                  at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
                  at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:509)
                  at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
                  at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
                  at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
                  at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:174)
                  at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
                  at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
                  at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
                  at org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:223)
                  at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:432)
                  at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:386)
                  at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:534)
                  at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:530)
                  at java.lang.Thread.run(Thread.java:536)


                  root cause

                  java.lang.NullPointerException
                  at org.apache.jsp.seznam_jsp._jspService(seznam_jsp.java:107)
                  at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:137)
                  at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
                  at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:204)
                  at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:295)
                  at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:241)
                  at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
                  at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247)
                  at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193)
                  at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:260)
                  at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
                  at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
                  at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
                  at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
                  at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
                  at org.apache.catalina.valves.CertificatesValve.invoke(CertificatesValve.java:246)
                  at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
                  at org.jboss.web.catalina.session.ClusteredSessionValve.invoke(ClusteredSessionValve.java:78)
                  at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
                  at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
                  at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
                  at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2415)
                  at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180)
                  at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
                  at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:170)
                  at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
                  at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:172)
                  at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
                  at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:509)
                  at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
                  at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
                  at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
                  at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:174)
                  at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
                  at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
                  at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
                  at org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:223)
                  at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:432)
                  at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:386)
                  at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:534)
                  at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:530)
                  at java.lang.Thread.run(Thread.java:536)


                  --------------------------------------------------------------
                  I sent all the java classes in the previous message - telefony.zip.

                  I think im stupid :( I dont understand why it works on SUN ONE Server, and it didnt work on jboss.

                  • 6. Re: Problem with JSP
                    Jon Barnett Master

                    Well the problem has moved on but you will need to debug it as it is now difficult for anyone else to interpret your code and what it is meant to do. Look in your account's temp directory for Jetty - or for Tomcat, probably in the directory located in the JBoss distribution - when running Windows. The servlet container will create Java source code from your JSP, which it will then compile and execute. For Unix, Jetty will most likely place this in /tmp. I think Tomcat creates it in the JBoss directory structure. It's been a while since I ran Tomcat.

                    So for your JSP called seznam.jsp, search for a file called seznam_jsp.java. When errors occur as you have here, the line numbers refer to the line in the temporary file. As you might appreciate, it becomes a bit difficult for other folks to debug the code as your run-time cannot be reproduced due to configuration, datasource access.

                    However, you should have enough information to check the generated source code and check if there is anything wrong there.

                    As for the operational differences, I have heard that there are some things that are implemented differently because of gaps in the Servlet specs. However, Sun does state that Tomcat is the reference implementation of the spec.

                    I'd start debugging bits of your JSP code - perhaps the datasource bindings are not correct. I'm getting the same error because I don't have the expected datasource implemented.

                    The other thing to note is that JBoss doesn't implement the servlet containers - the servlet containers and implementations come from Apache Tomcat and Mortbay Jetty respectively. JBoss only binds this as a service in the JBoss microkernel. Most specific JSP and servlet questions can be answered by more informed users at their respective forums, as well as by their respective FAQs.

                    Hope it helps you get started with getting your application working.

                    • 7. Re: Problem with JSP
                      pepazdepa Newbie

                      HI thx a lot i try to debug the jsp site.
                      And the problem is in the EJB. When i get out all lines where was called EJB methods it works.

                      Is this EJB reference ok? Could i use it in JSP file?
                      When i deploy the ear it writes that EJB is deployed ok. But when i use cas.vratDen() in jsp it throws exception. it looks like that variable cas is not ok.


                      private Cas cas = null;

                      public void jspInit() {
                      try {
                      Context ictx = new InitialContext();
                      Object objRef = ictx.lookup("ejb/EJBCas");
                      CasHome home = (CasHome)PortableRemoteObject.narrow(objRef, CasHome.class);
                      cas = home.create();
                      } catch (RemoteException ex) {
                      System.out.println("Neni mozne vytvorit bean."+ ex.getMessage());
                      } catch (CreateException ex) {
                      System.out.println("Neni mozne vytvorit bean."+ ex.getMessage());
                      } catch (NamingException ex) {
                      System.out.println("Chyba pri ziskavani EJB home pres JNDI lookup: "+ ex.getMessage());
                      }
                      }

                      public void jspDestroy() {
                      cas = null;
                      }

                      Whole seznam.jsp is in the second post.

                      • 8. Re: Problem with JSP
                        pepazdepa Newbie

                        Ooohh :(((, I dont understand it :(.
                        On the next page it wrote me another mistake.
                        ----------------------------------------------------
                        org.apache.jasper.JasperException
                        at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:248)
                        at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:295)
                        at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:241)
                        at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
                        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247)
                        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193)
                        at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:260)
                        at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
                        at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
                        at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
                        at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
                        at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
                        at org.apache.catalina.valves.CertificatesValve.invoke(CertificatesValve.java:246)
                        at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
                        at org.jboss.web.catalina.session.ClusteredSessionValve.invoke(ClusteredSessionValve.java:78)
                        at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
                        at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
                        at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
                        at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2415)
                        at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180)
                        at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
                        at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:170)
                        at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
                        at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:172)
                        at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
                        at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:509)
                        at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
                        at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
                        at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
                        at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:174)
                        at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
                        at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
                        at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
                        at org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:223)
                        at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:432)
                        at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:386)
                        at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:534)
                        at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:530)
                        at java.lang.Thread.run(Thread.java:536)


                        root cause

                        java.lang.NullPointerException
                        at Telefony.beany.Osoba.UpravOsobu(Unknown Source)
                        at org.apache.jsp.osoba_jsp._jspService(osoba_jsp.java:91)
                        at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:137)
                        at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
                        at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:204)
                        at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:295)
                        at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:241)
                        at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
                        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247)
                        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193)
                        at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:260)
                        at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
                        at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
                        at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
                        at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
                        at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
                        at org.apache.catalina.valves.CertificatesValve.invoke(CertificatesValve.java:246)
                        at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
                        at org.jboss.web.catalina.session.ClusteredSessionValve.invoke(ClusteredSessionValve.java:78)
                        at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
                        at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
                        at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
                        at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2415)
                        at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180)
                        at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
                        at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:170)
                        at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
                        at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:172)
                        at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
                        at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:509)
                        at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
                        at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
                        at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
                        at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:174)
                        at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
                        at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
                        at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
                        at org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:223)
                        at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:432)
                        at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:386)
                        at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:534)
                        at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:530)
                        at java.lang.Thread.run(Thread.java:536)
                        -----------------------------

                        But why it cant find this method, and i can use all other methods from this class correctly?

                        Telefony.beany.Osoba.UpravOsobu

                        as u can see in the Telefony.zip this method is in file osoba.java! :/ Please, what else i should do?