Hi all

I did 2 tests:

1. Exception thows in the business logic - no problems here
Client does:
EMailManager aEMailManager = (EMailManager) PortableRemoteObject
.narrow(aEMailMNGHome.create(),
EMailManager.class);
aEMailManager.setSMPTServerAddress("living-source.lt");

/**
where implementation of bussiness logic on JBoss server:
*/
public void setSMPTServerAddress(String inHost) throws DialogException
{
log("MailManagerBean::setSMPTServerAddress()",theLogLevel);
throw new DialogException ("A gavai a?");
}

Everythink is ok. Client catches DialogException

2. Exception in ::ejbCreate - PROBLEMS HERE
Client does:
aCenter = (VirtualCallCenter) PortableRemoteObject
.narrow(aVCCHome.create("BMW", "Test BMW VCC "),
VirtualCallCenter.class);

/**
implementation of ::ejbCreate on EBJ server
*/
public VirtualCallCenterPK ejbCreate( String inVCCName,
String inNotes
)
throws RemoteException,
CreateException,
DialogException


{
log("VCCBean::ejbCreate(...)",theLogLevel );
String error = "VCCBean::ejbCreate: Exception test";
throw new DialogException (error);
}

here Server throws:
[VCC] TRANSACTION ROLLBACK EXCEPTION:id may not be null; nested exception is:
java.lang.Error: id may not be null

Why it is so?

I do using JBoss2 - beta 4 ( the same problem was and with beta 3)
WindowsNt4 sp6, Oracle8i

Thanks in advance
Darius Davidavicius

Reply via email to