geronimo-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From axiez <>
Subject client throwing exception
Date Tue, 03 Feb 2009 06:55:41 GMT

I have an entity and stateless session bean in one JVM and client (code given
below) calling from another JVM.
import javax.naming.Context;
import javax.naming.InitialContext;
import java.util.Properties;
import java.util.*;
import javax.ejb.EJBException;
public class BankClient {
    public static void main(String[] args) {
        try {
            Properties p = new Properties();
            p.load(new FileInputStream(""));
            InitialContext ctx = new InitialContext(p);
            Account a = (Account) ctx.lookup("AccountBeanRemote");
            AccountNtt a34 = a.find("3833");
            System.out.println(a34.ownerName+"    "+a34.accountType+"   
"+a34.accountNumber+"    "+a34.balance);
        catch(Exception ex) {
            System.err.println("Caught an unexpected exception!");
a.createAccount method is throwing exception: Caught an unexpected
exception! javax.ejb.EJBException: The bean encountered a non-application
exception. is business interface implemented by and
AccountNtt is an entity.
View this message in context:
Sent from the Apache Geronimo - Users mailing list archive at

View raw message