Hi everybody,
The Exception i got is as below:
java.rmi.ServerException: RemoteException occurred in server
thread; nested exception is:
com.ibm.ejs.container.UncheckedException: ; nested exception is:
java.lang.ClassCastException: Unable to load class: org.omg.stub.scb.ebbs.ecodes.ejb._TransactionCodeEntity_Stub
My code is as follows:
Enumeration enum = transactionMemoEntityHome.findByBatch(new TransactionMemoEntityKey(batchWrapper.transactionBranch,batchWrapper.channelID, batchWrapper.batchEntryDate, batchWrapper.batchNo, null));
Vector vec = new Vector();
while (enum.hasMoreElements()) {
TransactionMemoEntity memoEntity = (TransactionMemoEntity) javax.rmi.PortableRemoteObject.narrow(enum.nextElement(), TransactionMemoEntity.class);
vec.addElement(memoEntity.getWrapper());
}
My actual package structure is scb.ebbs.ebbs.ecodes.ejb. But I dont understand, why my package structure is prefixed with omg.org.stub while trying to type cast. The same segment of code worked fine with WAS3.5 .
It works fine , if i directly typecast without using Enumeration.
Help is needed urgently.
KYLE !!!
Thanks,
Subhash