|
From: Qazi, K. <kq...@ed...> - 2004-11-02 01:51:29
|
I am getting the following exception when accessing a proxy that is set
up as following, I have tested this and it worked when I deployed my ejb
module standalone and used
"SimpleRemoteStatelessSessionProxyFactoryBean" instead of
"LocalStatelessSessionProxyFactoryBean". =20
=20
I pretty much just followed the ref. doc on the spring website. I know
the EJB has been deployed to the container and that the JNDI is working
because the bean I have that is using this "vehicleProxy" is getting it
just fine. Just when I try to call a method on the "vehicleProxy" is
when my exceptions start coming up.=20
=20
I am NOT implementing the interface VehicleServiceProxyI in my
LocalInterface only in my EJB BeanClass.
=20
Any ideas on why I am getting this exception would be greatly
appreciated!!!
=20
<bean id=3D"vehicleProxy" name=3D"vehicleProxy"=20
=20
class=3D"org.springframework.ejb.access.LocalStatelessSessionProxyFactory=
B
ean">
<property
name=3D"jndiName"><value>com.edmunds.common.vehicles.service.VehicleServi=
c
eLocalHome</value></property>
<property
name=3D"businessInterface"><value>com.edmunds.common.vehicles.service.pro=
x
y.VehicleServiceProxyI</value></property>
</bean>
=20
public interface VehicleServiceProxyI extends ServiceProxy{
//Methods are defined here.
}
=20
public class VehicleServiceBean implements SessionBean,
VehicleServiceProxyI {
}
=20
Caused by: java.lang.IllegalArgumentException: object is not an instance
of declaring class
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native
Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.jav
a:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessor
Impl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at
org.springframework.ejb.access.LocalSlsbInvokerInterceptor.invoke(LocalS
lsbInvokerInterceptor.java:60)
at
org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(Ref
lectiveMethodInvocation.java:138)
at
org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAo
pProxy.java:152)
at $Proxy13.getModelByID(Unknown Source)
at
com.edmunds.insideline.web.struts.TestProxyAction.execute(TestProxyActio
n.java:45)
... 16 more
|