Could not resolve beanClass method from proxy call
Hello,
I test some stuff with ejb 3.0. It works fine, but with one method I get some exceptions...
Here is hole exception:
Exception in thread"main" java.lang.RuntimeException: Could not resolve beanClass method from proxy call
at org.jboss.ejb3.stateless.StatelessContainer.dynamicInvoke(StatelessContainer.java:234)
at org.jboss.aop.Dispatcher.invoke(Dispatcher.java:106)
at org.jboss.aspects.remoting.AOPRemotingInvocationHandler.invoke(AOPRemotingInvocationHandler.java:82)
at org.jboss.remoting.ServerInvoker.invoke(ServerInvoker.java:828)
at org.jboss.remoting.ServerInvoker.invoke(ServerInvoker.java:681)
at org.jboss.remoting.transport.socket.ServerThread.processInvocation(ServerThread.java:358)
at org.jboss.remoting.transport.socket.ServerThread.dorun(ServerThread.java:412)
at org.jboss.remoting.transport.socket.ServerThread.run(ServerThread.java:239)
at org.jboss.remoting.RemoteClientInvoker.invoke(RemoteClientInvoker.java:190)
at org.jboss.remoting.Client.invoke(Client.java:525)
at org.jboss.remoting.Client.invoke(Client.java:488)
at org.jboss.aspects.remoting.InvokeRemoteInterceptor.invoke(InvokeRemoteInterceptor.java:55)
at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
at org.jboss.aspects.tx.ClientTxPropagationInterceptor.invoke(ClientTxPropagationInterceptor.java:61)
at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
at org.jboss.aspects.security.SecurityClientInterceptor.invoke(SecurityClientInterceptor.java:53)
at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
at org.jboss.ejb3.remoting.IsLocalInterceptor.invoke(IsLocalInterceptor.java:77)
at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
at org.jboss.ejb3.stateless.StatelessRemoteProxy.invoke(StatelessRemoteProxy.java:102)
at $Proxy0.deleteNewsByObject(Unknown Source)
at TestClient.main(TestClient.java:64)
Here the code:
verwaltung.deleteNewsByObject(tmp);
Method in the stateless bean:
publicvoid deleteNewsByObject(NewsVO news){
}
But this method in the same stateless bean works correctly:
publicvoid deleteNews(Integer newsId){
NewsVO beanRef = getNews(newsId);
if(beanRef !=null){
log.info("News would be delete.\t\t\n" + beanRef);
manager.remove(beanRef);
}else{
log.info("News could not delete cause not found.");
}
}
The Remote Interface is correct in the Jboss deployt:
@Remote
publicinterface NewsVerwaltungRemote{
/*
* Get News methods...
*/
public NewsVO getNews(Integer newsId);
public Vector<NewsVO> getNews();
/*
* Set News methods...
*/
publicvoid saveNews(NewsVO news);
publicvoid updateNews(NewsVO news);
publicvoid refreshNews(NewsVO news);
/*
* Delete News methods...
*/
publicvoid deleteNewsByObject(NewsVO news);
publicvoid deleteNews(Integer newsId);
}
Can anybody help me?

