[Prévia] [Próxima] [Prévia por assunto] [Próxima por assunto]
[Índice cronológico] [Índice de assunto]

CORBA.BAD_INV_ORDER (fwd da lista antiga)



---------- Forwarded message ----------
Date: Wed, 28 Apr 2004 14:23:39 -0300
From: Gustavo André Nunes Ferreira
Subject: CORBA.BAD_INV_ORDER

    O código abaixo:

            public Biblio.Livro pegaLivro(String isbn)
                throws Biblio.LivroInexistente
            {
                LivroImpl temp = new LivroImpl();
                int i;
                for(i=0;i<=livros.size();i++) {
                    temp = (LivroImpl)livros.elementAt(i);
                    if( temp.isbn() == isbn )
                          break;
                    else if( i == livros.size() )
                        throw new LivroInexistente(isbn);
                }
                return temp._this();
            }

está retornando a seguinte erro:

org.omg.CORBA.BAD_INV_ORDER: The Servant has not been associated with an
ORBinstance

    Alguém tem alguma dica?