Hi Andrew,

I ran into this problem once after making a large number of changes to my
bean code.
Essentially the problem was that the bean could not be loaded by the JVM
because the bean referenced classes that did not exist on the server
machine.  I am unclear exactly how this results in the "method not found"
error.

Here are the details...
My beans used to reference classes in a particular package,
com.whatever.package1 for instance.
After making a large # of changes to the code I had renamed
com.whatever.package1 to com.whatever.package2 but I still had some
references to com.whatever.package1 in my bean code.
On my development machine the bean still worked fine because I had not
deleted the .class files for com.whatever.package1.
I redeployed my bean on my server machine which did not have the .class
files for com.whatever.package1.
Jonas appeared to start up OK.
I got the "method not found" when a client tried to invoke a bean method.
After deleting all .class files on my development machine I discovered my
error because my bean code would no longer compile.
I fixed all compile problems and redeployed the bean and everything was
fine.

Hope that helps.
ted stockwell

----- Original Message -----
From: Andrew Gray <[EMAIL PROTECTED]>
To: 'JOnAS Users' <[EMAIL PROTECTED]>; 'JOnAS Developers'
<[EMAIL PROTECTED]>
Sent: Wednesday, December 15, 1999 6:58 AM
Subject: Server access error


> Hi,
>
> I have a problem with JOnAS v1.5. Our client programs have problems
> accessing Beans on the Server. All the clients have the same up to date
stub
> classes but we still get the error:
>
> java.rmi.ServerError: Error occurred in server thread; nested exception
is:
> java.lang.NoSuchMethodError: org.objectweb.jonas.container.JBeanSession:
> method preinvoke(I)Lorg/objectweb/jonas/container/SessionContextImpl; not
> found
> java.lang.NoSuchMethodError: org.objectweb.jonas.container.JBeanSession:
> method preinvoke(I)Lorg/objectweb/jonas/container/SessionContextImpl; not
> found
> at
>
sun.rmi.transport.StreamRemoteCall.exceptionReceivedFromServer(StreamRemoteC
> all.java:246)
> at sun.rmi.transport.StreamRemoteCall.executeCall(Compiled Code)
> at sun.rmi.server.UnicastRef.invoke(Compiled Code)
> at org.objectweb.jonas.rmifilters.RemoteStub.invoke(Compiled Code)
> at
>
adelaide.nw.server.Penfold.JOnASServerPagePreprocessorBeanServerPagePreproce
>
ssor_Stub.requestPage(JOnASServerPagePreprocessorBeanServerPagePreprocessor_
> Stub.java:243)
> at adelaide.nw.server.Penfold.Test2.main(Test2.java:29)
>
> This seems to be a JOnAS problem rather than one of our Beans. Everything
> was working properly yesterday and the only thing that appears to have
> changed is that the server has been restarted. We have searched the
archives
> and have found no mention of this error previously.
>
> Can anyone help? Thanks in advance.
>
> Cheers,
>
> Andy G.
>
> Andrew Gray
> Development Manager
> Arclight Strategy Systems
>
> To unsubscribe, send email to [EMAIL PROTECTED] and
> include in the body of the message "unsubscribe jonas-dev".
> For general help, send email to [EMAIL PROTECTED] and
> include in the body of the message "help".

Reply via email to