|
Hello, All!
I just test a EJB component,I found one of the functions
execute will
throw UndeclaredThrowableException Exception,I have no idea about it
.I
checked my remote interface,and beans I found nothing wrong, and the
deploying is well. I use log4j to record the return value of the
function,there is no error,that's the Fucntion in the bean is well
formed
,when I execute client test code,the error appears, on the server there
is
nothing erorr. I catch the UndeclaredThrowableException Exception and
call
the "getUndeclaredThrowable" function,the error is
"java.lang.ClassNotFoundException:
org.jboss.ejb.plugins.local.EntityProxy
(no se
curity manager: RMI class loader disabled) "
What's on earth? Help......... (online wait)
-- Initializing bean access.
-- Succeeded initializing bean access.
-- Execution time: 3204 ms.
-- Calling create()
-- Succeeded: create()
-- Execution time: 261 ms.
-- Return value from create():
QryServDetailByServIdSession:Stateless.
java.lang.ClassNotFoundException:
org.jboss.ejb.plugins.local.EntityProxy
(no se
curity manager: RMI class loader disabled)
java.lang.reflect.UndeclaredThrowableException
at
$Proxy1.QryServDetailByServId(Unknown Source)
at
com.cattsoft.web.test.QryServDetailByServIdSessionTestClient1.QryServ
DetailByServId(QryServDetailByServIdSessionTestClient1.java:94)
at
com.cattsoft.web.test.QryServDetailByServIdSessionTestClient1.main(Qr
yServDetailByServIdSessionTestClient1.java:127)
Caused by: java.lang.ClassNotFoundException:
org.jboss.ejb.plugins.local.EntityP
roxy (no security manager: RMI class loader disabled)
at
sun.rmi.server.LoaderHandler.loadClass(LoaderHandler.java:368)
at
sun.rmi.server.LoaderHandler.loadClass(LoaderHandler.java:159)
at
java.rmi.server.RMIClassLoader$2.loadClass(RMIClassLoader.java:631)
at
java.rmi.server.RMIClassLoader.loadClass(RMIClassLoader.java:257)
at
sun.rmi.server.MarshalInputStream.resolveClass(MarshalInputStream.jav
a:200)
at
java.io.ObjectInputStream.readNonProxyDesc(ObjectInputStream.java:151
3)
at
java.io.ObjectInputStream.readClassDesc(ObjectInputStream.java:1435)
at
java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1
626)
at
java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1274)
at
java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:18
45)
at
java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1769)
at
java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1
646)
at
java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1274)
at
java.io.ObjectInputStream.readObject(ObjectInputStream.java:324)
at
java.util.Hashtable.readObject(Hashtable.java:837)
at
sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
java:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:25)
at
java.lang.reflect.Method.invoke(Method.java:324)
at
java.io.ObjectStreamClass.invokeReadObject(ObjectStreamClass.java:824
)
at
java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1746)
at
java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1
646)
at
java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1274)
at
java.io.ObjectInputStream.readObject(ObjectInputStream.java:324)
at
java.rmi.MarshalledObject.get(MarshalledObject.java:135)
at
org.jboss.invocation.jrmp.interfaces.JRMPInvokerProxy.invoke(JRMPInvo
kerProxy.java:139)
at
org.jboss.invocation.InvokerInterceptor.invoke(InvokerInterceptor.jav
a:108)
at
org.jboss.proxy.TransactionInterceptor.invoke(TransactionInterceptor.
java:77)
at
org.jboss.proxy.SecurityInterceptor.invoke(SecurityInterceptor.java:8
0)
at
org.jboss.proxy.ejb.StatelessSessionInterceptor.invoke(StatelessSessi
onInterceptor.java:111)
at
org.jboss.proxy.ClientContainer.invoke(ClientContainer.java:76)
... 3 more
With best regards, zxc. E-mail: [EMAIL PROTECTED] |
