Bugs item #472046, was opened at 2001-10-17 05:24
You can respond by visiting: 
http://sourceforge.net/tracker/?func=detail&atid=376685&aid=472046&group_id=22866

Category: JBossServer
Group: v2.4 (stable)
Status: Open
Resolution: None
Priority: 5
Submitted By: Nobody/Anonymous (nobody)
Assigned to: Andreas Schaefer (schaefera)
Summary: NoSuchMethod-Error calling create

Initial Comment:
If the business-interface of a stateless session bean 
(I just checked ssbs) extends another interface that 
itself extends another one, it seems as if no create 
method is generated on deployment. => 
NoSuchMethodError is thrown creating an instance of 
the bean.

SMALL EXAMPLE:
public interface RemoteTest extends EJBObject, Test
{...}
public interface Test extends TestAccessOne
{...}public interface TestAccessOne
{
  void foo() throws RemoteException;
}

public interface TestHome extends EJBHome
{
  public RemoteTest create() throws CreateException, 
RemoteException;
}

public class TestImpl implements Test, SessionBean
{
  ....
  public void ejbCreate() {}
  
  public void foo() throws RemoteException
  {
    System.out.println("foo");
  }
}

Accessing the bean from a client as in:

Object objref = ctx.lookup("Test");
TestHome th = (TestHome)
javax.rmi.PortableRemoteObject.narrow(objref, 
TestHome.class);
Test test = th.create();

throws the NoSuchMethodError. The important part of 
the stack trace is
"java.lang.NoSuchMethodError
      RemoteTest $Proxy0.create()"


I checked the bug against
-JBoss 2.2.2
-JBoss 2.4.3
both versions produced the same problem
JDK was 1.3.1_01

Moving the contents of interface TestAccessOne into 
interface Test solves the technical problem!!!!!!
But the technical implementation should not interfere  
the business decision to move the methods to another 
interface.

Cheers,
Christian Elsen

----------------------------------------------------------------------

>Comment By: Andreas Schaefer (schaefera)
Date: 2001-11-02 15:09

Message:
Logged In: YES 
user_id=70434

Both ways works for me but the ZIP file is the best. Just 
use the "Upload and Attach File" boxes below !.

Andy

----------------------------------------------------------------------

Comment By: Christian Elsen (celsen)
Date: 2001-10-31 06:13

Message:
Logged In: YES 
user_id=364055

Do you want the descriptors and code as a comment? Or is it possible to attach a zip 
file?

----------------------------------------------------------------------

Comment By: Andreas Schaefer (schaefera)
Date: 2001-10-30 10:31

Message:
Logged In: YES 
user_id=70434

I need some more informations about this. Please provide 
the descriptors and maybe the code as well, would you ?

----------------------------------------------------------------------

Comment By: Andreas Schaefer (schaefera)
Date: 2001-10-30 10:30

Message:
Logged In: YES 
user_id=70434

I need some more informations about this. Please provide 
the descriptors and maybe the code as well, would you ?

----------------------------------------------------------------------

Comment By: Andreas Schaefer (schaefera)
Date: 2001-10-30 10:28

Message:
Logged In: YES 
user_id=70434

I need some more informations about this. Please provide 
the descriptors and maybe the code as well, would you ?

----------------------------------------------------------------------

Comment By: Charles Chan (charles_chan)
Date: 2001-10-25 08:22

Message:
Logged In: YES 
user_id=198061

I just checked the supplied sample against JBoss in CVS and
I couldn't reproduce the problem.

----------------------------------------------------------------------

You can respond by visiting: 
http://sourceforge.net/tracker/?func=detail&atid=376685&aid=472046&group_id=22866

_______________________________________________
Jboss-development mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-development

Reply via email to