Pessoal, novo probleminha p/ vcs ai...

O que acontece: tenho um server RMI, chamo apartir de um arquivo JSP. No
server acesso BD. Detalhe: Qdo acesso apenas uma vez funciona, mas qdo
acesso em mais de um m�todo da essa mensagem:

==
java.lang.IllegalStateException: Response has already been committed
 at
org.apache.tomcat.core.HttpServletResponseFacade.sendError(HttpServletRespon
seFacade.java:157)
 at
org.apache.jasper.runtime.JspServlet.unknownException(JspServlet.java:299)
==

Esse � meu server RMI

 public discserver() throws RemoteException
 {
  super();

  try
  {
   p.put("user", "borg");
   Class.forName("com.imaginary.sql.msql.MsqlDriver");
   con = DriverManager.getConnection(url,"borg"," ");
  }catch (Exception e) {}
 }

 public Vector retornaDisciplinas() throws RemoteException
 {
  Vector vr = new Vector();

  try
  {
   stmt = con.createStatement();
   rs = stmt.executeQuery("Select * from disciplinas");

   while (rs.next())
   {
    vr.add(rs.getString("disciplina"));
   }

   stmt.close();
   rs.close();
  } catch (Exception e)
  {
   vr.add("BUGGGGGGGGGGG");
  }

  return vr;
 }

 public Vector retornaProfessores() throws RemoteException
 {
  Vector vr = new Vector();

  try
  {
   stmt = con.createStatement();
   rs = stmt.executeQuery("Select * from disciplinas");

   while (rs.next())
   {
    vr.add(rs.getString("professor"));
   }
   stmt.close();
   rs.close();
  } catch (Exception e)
  {
   vr.add("BUGGGGGGGGGGG");
  }

alguem se habilita??

[]'s

Bogo
================================
Luis Henrique Bogo
Prog. P�s-Gradua��o em Eng. Produ��o
Grupo Criativa
UFSC - Florian�polis - Brasil
================================

    --------------------------- LISTA SOUJAVA ---------------------------
    http://www.soujava.org.br  -  Sociedade de Usu�rios Java da Sucesu-SP
    [d�vidas mais comuns: http://www.soujava.org.br/faq.htm]
    [para sair da lista: http://www.soujava.org.br/forum/cadastrados.htm]
    [regras da lista: http://www.soujava.org.br/regras.htm]
    ---------------------------------------------------------------------

Responder a