In your code the debugger is trying to make you aware of a simple java
error, nothing to do with EJB's.
Calling a method named hello on a MyHelloWorldAccessBean object named bAcces
which is null. It would surely throw a NullPointerException.
Have a nice day.
With regards,
Sachin S. Khanna.
www.emailanorder.com

----- Original Message -----
From: DIMINO David <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, March 26, 2001 1:30 PM
Subject: EJB trouble


> hello,
>
> this is my first message to the list, I'm new at Java and I'd like to
> experiment the EJB's.
> I work with VisualAge for Java (IBM) in the Websphere Test Environment.
>
> I've created an EJB group, MyHelloWorldGroup; an EJB (session),
> MyHelloWorldBean and an access Bean,
> MyHelloWorldAccessBean.
>
> I'd like to create a client class "MyHelloWorldClient" to test my EJB.
> Here is the main method of this class:
>
> public static void main(java.lang.String[] args)
>
> {
>      try
>      {
>           String beanResult = null, ch = null;
>           ch = "lalalala";
>           MyHelloWorldAccessBean bAcces = null;
>           beanResult = bAcces.hello(ch);      file://hello(String param)
that
> only returns
>                                          file://param is a remote method
of my
> EJB.
>
>           System.out.println("Retour de Bean Session: " + beanResult);
>      }
>      catch(Exception e)
>      {
>           System.out.println("Erreur: " + e.getMessage());
>      }
> }
>
> This code doesn't work, I don't understand why it opens the debugger with
> the insert:
>
>  beanResult = bAcces.hello(ch (java.lang.String) lalalala);
>
> Could someone help me please...
>
> Thanks.
>
> David.
>
>
===========================================================================
> To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
JSP-INTEREST".
> For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST
DIGEST".
> Some relevant FAQs on JSP/Servlets can be found at:
>
>  http://java.sun.com/products/jsp/faq.html
>  http://www.esperanto.org.nz/jsp/jspfaq.html
>  http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
>  http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
>

===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets

Reply via email to