I am getting the following exception when I am calling findByPrimaryKey() method on home interface in a bean managed entity bean on weblogic server.
The exception is as follows:
java.rmi.RemoteException: ; nested exception is:
weblogic.rmi.ServerError: A RemoteException occurred in the server method
- with nested exception:
[java.lang.NoSuchMethodError:
Start server side stack trace:
java.lang.NoSuchMethodError
at LoginBeanHomeImpl.findByPrimaryKey(LoginBeanHomeImpl.java:57)
at LoginBeanHomeImpl_WLSkel.invoke(LoginBeanHomeImpl_WLSkel.java:88)
at weblogic.rmi.extensions.BasicServerObjectAdapter.invoke(BasicServerObjectAdapter.java:338
)
at weblogic.rmi.extensions.BasicRequestHandler.handleRequest(BasicRequestHandler.java:69)
at weblogic.rmi.internal.BasicExecuteRequest.execute(BasicExecuteRequest.java:15)
at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:120)
End server side stack trace
]
Can anybody explain the reason for this.
Thanks
-
Exception when calling findByPrimaryKey( ) (4 messages)
- Posted by: Ramesh Jain
- Posted on: January 15 2001 20:52 EST
Threaded Messages (4)
- Exception when calling findByPrimaryKey( ) by pooja kapoor on January 15 2001 21:50 EST
- Exception when calling findByPrimaryKey( ) by Ramesh Jain on January 15 2001 21:55 EST
-
Exception when calling findByPrimaryKey( ) by Vel Saran on January 16 2001 12:11 EST
- Exception when calling findByPrimaryKey( ) by Albert Zamus on January 17 2001 11:52 EST
-
Exception when calling findByPrimaryKey( ) by Vel Saran on January 16 2001 12:11 EST
- Exception when calling findByPrimaryKey( ) by Ramesh Jain on January 15 2001 21:55 EST
-
Exception when calling findByPrimaryKey( )[ Go to top ]
- Posted by: pooja kapoor
- Posted on: January 15 2001 21:50 EST
- in response to Ramesh Jain
Hi,
Did u Check that your database connection pool is configured correctly and that the EJB is accessing this connection pool perfectly.
Did U uncomment these lines
weblogic.jdbc.connectionPool.demoPool=\
url=jdbc:cloudscape:demo,\
driver=COM.cloudscape.core.JDBCDriver,\
initialCapacity=1,\
maxCapacity=2,\
capacityIncrement=1,\
props=user=none;password=none;server=none
By the way did u uncommment these lines also weblogic.jdbc.TXDataSource.weblogic.jdbc.jts.demoPool=demoPool
weblogic.jdbc.TXDataSource.demoDataSource=demoPool
weblogic.allow.reserve.weblogic.jdbc.connectionPool.demoPool=everyone
in your weblogic.properties file.
Iam not sure..but this should help u..
Regards
Pooja
-
Exception when calling findByPrimaryKey( )[ Go to top ]
- Posted by: Ramesh Jain
- Posted on: January 15 2001 21:55 EST
- in response to pooja kapoor
I created the connectionpool and registered the datasource.
The bean is working fine when I call create() method and throw exception when I call findByPrimaryKey().
-
Exception when calling findByPrimaryKey( )[ Go to top ]
- Posted by: Vel Saran
- Posted on: January 16 2001 12:11 EST
- in response to Ramesh Jain
Hi,
There will be some problem in u'r primary key class
If possible send the home interface, bean and primary key code..
Saran -
Exception when calling findByPrimaryKey( )[ Go to top ]
- Posted by: Albert Zamus
- Posted on: January 17 2001 11:52 EST
- in response to Vel Saran
In your implementation the method name should be prefixed with ejb which probably you haven't done. So it is ejbFindByPrimaryKey....