Scott,here is going the piece of code that contains the line 97:
62> public void doGet(final HttpServletRequest request, final HttpServletResponse response)
63> throws IOException, ServletException{
64> final HttpSession session = request.getSession(true);
65> final Context context = (Context)session.getValue("context");
66> if (session.getValue("pessoaSelecionada") == null){
67> response.sendRedirect("SelecionarPessoa");
68> }
69> try {
70> //lookup the bean and sets its pessoa as a request variable which can be
71> //displayed by the JSP.
72> final PessoaHome home = (PessoaHome)context.lookup("webpersonnel.PessoaHome");
73> final Pessoa pessoa = home.create(Integer.parseInt((String)session.getValue("pessoaSelecionada")));
74>
75> request.setAttribute( "empresaCodigo" ,checkNull(pessoa.getEmpresa().getCodigo()) );
76> request.setAttribute( "empresa" ,checkNull(pessoa.getEmpresa().getDescricao()) );
77> request.setAttribute( "chapa" ,checkNull(pessoa.getChapa()) );
78> request.setAttribute( "nome" ,checkNull(pessoa.getNome()) );
79> request.setAttribute( "admissao" ,checkNull(pessoa.getAdmissao()) );
80> request.setAttribute( "diasExperiencia" ,checkNull(pessoa.getDiasExperiencia()) );
81> request.setAttribute( "fimExperiencia" ,checkNull(pessoa.getFimExperiencia()) );
82> request.setAttribute( "filialCodigo" ,checkNull(pessoa.getFilial().getCodigo()) );
83> request.setAttribute( "filial" ,checkNull(pessoa.getFilial().getDescricao()) );
84> request.setAttribute( "areaCodigo" ,checkNull(pessoa.getArea().getCodigo()) );
85> request.setAttribute( "area" ,checkNull(pessoa.getArea().getDescricao()) );
86> request.setAttribute( "categoriaCodigo" ,checkNull(pessoa.getCategoria().getCodigo()) );
87> request.setAttribute( "categoria" ,checkNull(pessoa.getCategoria().getDescricao()) );
88> request.setAttribute( "cargoCodigo" ,checkNull(pessoa.getCargo().getCodigo()) );
89> request.setAttribute( "cargo" ,checkNull(pessoa.getCargo().getDescricao()) );
90> request.setAttribute( "nivelSalarialCodigo" ,checkNull(pessoa.getNivelSalarial().getCodigo()) );
91> request.setAttribute( "nivelSalarial" ,checkNull(pessoa.getNivelSalarial().getDescricao()));
92> request.setAttribute( "vinculoCodigo" ,checkNull(pessoa.getVinculo().getCodigo()) );
93> request.setAttribute( "vinculo" ,checkNull(pessoa.getVinculo().getDescricao()) );
94> request.setAttribute( "salario" ,checkNull(pessoa.getSalario()) );
95> }
96> catch (final Exception server) {
97> throw new ServletException(server);
98> }
99> //use a JSP page to display the pessoa form to the user.
100> request.getRequestDispatcher("pessoa.jsp").forward(request, response);
101> }
102> private String checkNull(String s){
103> return (s == null ? "" : s);
104> } //end checkNull method
thank's
Marcelo Bellezo
Scott Stirling wrote:
Well, it's your servlet. If it was SnoopServlet I could tell you what it's
doing, but it's your servlet. So what could your PessoaServlet be doing at line
97?Scott Stirling
-----Original Message-----
From: Marcelo Bellezo [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, July 12, 2000 3:28 PM
To: '[EMAIL PROTECTED] '
Cc: Scott Stirling
Subject: error caught by container--------------48515816AB4EF1E5191E62A8
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bitHi,
I'm running my application at JRun 3.0 for development. When I'm testing
the application, some time I got the following error:
500 Internal Server Error
/webpersonnel/pessoa:javax.servlet.ServletException: System exception/error caught by
container; nested exception is:
java.lang.SecurityException: Access disallowed
javax.servlet.ServletException: System exception/error caught by
container; nested exception is:
java.lang.SecurityException: Access disallowed
at PessoaServlet.doGet(PessoaServlet.java:97)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
at PessoaServlet.service(PessoaServlet.java:48)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:865)
at allaire.jrun.servlet.JRunSE.service(JRunSE.java:1013)
at allaire.jrun.servlet.JRunSE.runServlet(JRunSE.java:925)
at
allaire.jrun.servlet.JRunRequestDispatcher.forward(JRunRequestDispatcher.java:88
)at allaire.jrun.servlet.JRunSE.service(JRunSE.java:1131)
at allaire.jrun.servlet.JvmContext.dispatch(JvmContext.java:330)
at allaire.jrun.jrpp.ProxyEndpoint.run(ProxyEndpoint.java:354)
at allaire.jrun.ThreadPool.run(ThreadPool.java:267)
at allaire.jrun.WorkerThread.run(WorkerThread.java:74)If I close the application and call the login servlet again, the
application return to run with no problems.Anyone ?
thanks
Marcelo
------------------------------------------------------------------------------
Archives: http://www.egroups.com/group/jrun-interest/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/jrun_talk
or send a message to [EMAIL PROTECTED] with 'unsubscribe' in the body.
