Ejb

Olá pessoal,

Estou tentando rodar um serviço e esta dando o seguinte erro:

org.jboss.invocation.JBossLazyUnmarshallingException: getArguments failed

Seguem os códigos:

public SAlocacaoEJB getTesteEJB()
{
try
{
Object obj = super.getRemoteContext( TesteEJBHome.JNDI_NAME );
TesteEJBHome home = ( SAlocacaoEJBHome ) PortableRemoteObject.narrow( obj, TesteEJBHome.class );
TesteEJB bean = home.create();
return bean;
}
catch( Exception e )
{
throw new CreditoRuntimeException( e );
}
}

chamada no meu teste:

public class Teste_IntegrationTest extends MockObjectTestCase{

public void test_Sucesso(){
	
	try{
		VOcliente cliente = new VOcliente();
		cliente.setCdcliente(42902);
		
		CBVSCreditoLocator.getInstance().getTesteEJB().preAlocarCliente(cliente);
		
	}catch(Exception e){
		fail("Não deveria lancar excecao");
	}
}

}

Se alguém puder me dar um help!

Obrigada!

Sempre coloque seu código entre as tags code, assim fica mais legível e facilita as pessoas que querem ajudar.

exemplo:

public static void main(String args[]){}