I have written a simple CMP Entity Bean,While Running the Client I am getting 
the Exception,I have included all jars needed.

EXCEPTION IS
--------------------------------------------------------------------------------------

err in HomeCreatejava.rmi.ServerException: RemoteException occurred in server 
thread; nested exception is:
java.rmi.ServerException: Could not instantiate bean; nested exception is:
java.lang.InstantiationException; nested exception is:
java.rmi.ServerException: Could not instantiate bean; nested exception is:
java.lang.InstantiationException
java.rmi.ServerException: RemoteException occurred in server thread; nested 
exception is:
java.rmi.ServerException: Could not instantiate bean; nested exception is:
java.lang.InstantiationException; nested exception is:
java.rmi.ServerException: Could not instantiate bean; nested exception is:
java.lang.InstantiationException
at sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:287)
at sun.rmi.transport.Transport$1.run(Transport.java:151)
at java.security.AccessController.doPrivileged(Native Method)
at sun.rmi.transport.Transport.serviceCall(Transport.java:147)
at sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:463)
at 
sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:704)
at java.lang.Thread.run(Thread.java:539)
at 
sun.rmi.transport.StreamRemoteCall.exceptionReceivedFromServer(StreamRemoteCall 
.java:250)
at sun.rmi.transport.StreamRemoteCall.executeCall(StreamRemoteCall.java:226)
at sun.rmi.server.UnicastRef.invoke(UnicastRef.java:136)
at org.jboss.invocation.jrmp.server.JRMPInvoker_Stub.invoke(Unknown Source)
at 
org.jboss.invocation.jrmp.interfaces.JRMPInvokerProxy.invoke(JRMPInvokerProxy.j 
ava:128)
at org.jboss.invocation.InvokerInterceptor.invoke(InvokerInterceptor.java:108)
at org.jboss.proxy.TransactionInterceptor.invoke(TransactionInterceptor.java:73)
at org.jboss.proxy.SecurityInterceptor.invoke(SecurityInterceptor.java:76)
at org.jboss.proxy.ejb.HomeInterceptor.invoke(HomeInterceptor.java:185)
at org.jboss.proxy.ClientContainer.invoke(ClientContainer.java:76)
at $Proxy0.create(Unknown Source)
at StudentClient.main(StudentClient.java:39)
Caused by: java.rmi.ServerException: Could not instantiate bean; nested 
exception is:
java.lang.InstantiationException; nested exception is:
java.rmi.ServerException: Could not instantiate bean; nested exception is:
java.lang.InstantiationException
at 
org.jboss.ejb.plugins.AbstractTxInterceptor.invokeNext(AbstractTxInterceptor.ja 
va:140)
at 
org.jboss.ejb.plugins.TxInterceptorCMT.runWithTransactions(TxInterceptorCMT.jav 
a:167)
at org.jboss.ejb.plugins.TxInterceptorCMT.invokeHome(TxInterceptorCMT.java:52)
at 
org.jboss.ejb.plugins.SecurityInterceptor.invokeHome(SecurityInterceptor.java:1 
04)
at org.jboss.ejb.plugins.LogInterceptor.invokeHome(LogInterceptor.java:109)
at org.jboss.ejb.EntityContainer.invokeHome(EntityContainer.java:487)
at org.jboss.ejb.Container.invoke(Container.java:726)
at org.jboss.ejb.EntityContainer.invoke(EntityContainer.java:1055)
at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:491)
at org.jboss.invocation.jrmp.server.JRMPInvoker.invoke(JRMPInvoker.java:362)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:42)
at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.ja 
va:28)
at java.lang.reflect.Method.invoke(Method.java:313)
at sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:256)
at sun.rmi.transport.Transport$1.run(Transport.java:151)
at java.security.AccessController.doPrivileged(Native Method)
at sun.rmi.transport.Transport.serviceCall(Transport.java:147)
at sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:463)
at 
sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:704)
at java.lang.Thread.run(Thread.java:539)
Caused by: java.rmi.ServerException: Could not instantiate bean; nested 
exception is:
java.lang.InstantiationException
at org.jboss.ejb.plugins.AbstractInstancePool.get(AbstractInstancePool.java:211)
at 
org.jboss.ejb.plugins.EntityInstanceInterceptor.invokeHome(EntityInstanceInterc 
eptor.java:122)
at 
org.jboss.ejb.plugins.EntityLockInterceptor.invokeHome(EntityLockInterceptor.ja 
va:79)
at 
org.jboss.ejb.plugins.EntityCreationInterceptor.invokeHome(EntityCreationInterc 
eptor.java:44)
at 
org.jboss.ejb.plugins.AbstractTxInterceptor.invokeNext(AbstractTxInterceptor.ja 
va:98)
... 20 more
Caused by: java.lang.InstantiationException
at 
sun.reflect.InstantiationExceptionConstructorAccessorImpl.newInstance(Instantia 
tionExceptionConstructorAccessorImpl.java:33)
at java.lang.reflect.Constructor.newInstance(Constructor.java:263)
at java.lang.Class.newInstance0(Class.java:301)
at java.lang.Class.newInstance(Class.java:254)
at 
org.jboss.ejb.plugins.BMPPersistenceManager.createBeanClassInstance(BMPPersiste 
nceManager.java:145)
at 
org.jboss.resource.connectionmanager.CachedConnectionInterceptor.createBeanClas 
sInstance(CachedConnectionInterceptor.java:251)
at 
org.jboss.ejb.EntityContainer.createBeanClassInstance(EntityContainer.java:294)
at org.jboss.ejb.plugins.AbstractInstancePool.get(AbstractInstancePool.java:208)
... 24 more
------------------------------------------------------------------------------- 
------

Pls explain what can i do now.


regards,
NaveenBabu.A





View the original post : 
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3859402#3859402

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3859402


-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now. 
http://productguide.itmanagersjournal.com/
_______________________________________________
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to