Hi,
i'm really new to ejb so someone could think my question is very stupid, but i'm trying to test my ejb simply with a main:
public static void main(String[] args) {
Ejb1 one = null;
Ejb2 two = null;
EjbP p = new EjbP();
try{
one.ejbCreate(p);
two.ejbCreate(p);
}catch(javax.ejb.CreateException _e){
_e.printStackTrace();
System.out.println( _e.getMessage) );
}
}
what's wrong with it?
the error is nullpointer exception
Thanks and happy Xmas
-
the simplest test (1 messages)
- Posted by: Francesco Mele
- Posted on: December 23 2002 11:00 EST
Threaded Messages (1)
- the simplest test by Web Master on December 23 2002 15:00 EST
-
the simplest test[ Go to top ]
- Posted by: Web Master
- Posted on: December 23 2002 15:00 EST
- in response to Francesco Mele
you should pickup a book on ejb's before moving any further...
to answer your question:
one and two ARE null. you never initialized them.