Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / JavaBeans / September 2004

Tip: Looking for answers? Try searching our database.

Problem with a simple CMP bean while working on JBoss

Thread view: 
Subra - 21 Sep 2004 11:22 GMT
Problem with a simple CMP bean while working on JBoss

CLIENT :   EmployeeSalInsertClient.java
CMP Jar: emp
------------------------------------------------
Database : MS SQL SERVER
Table Name is : emp
Column names:
eno  -  int
ename - varchar(30)
esal   -  float

It is a simple ejb.........
able to insert the records into the database.............
unable to find records..................

The error is given below

C:\javajava -classpath

.;D:\jboss-3.2.4\server\default\lib\jboss-j2ee.jar;D:\jboss-3.2.4\serv

er\default\lib\jbossall-client.jar;D:\jboss-3.2.4\server\default\lib\jnet.jar;
EmployeeSalInsertClient
Exception in thread "main" javax.ejb.FinderException: Unknown query:
public
abstract emp.Employee
emp.EmployeeHome.findByPrimaryKey(java.lang.Integer)
throws java.rmi.RemoteException,javax.ejb.FinderException
at

sun.rmi.transport.StreamRemoteCall.exceptionReceivedFromServer(StreamRemoteCall.jav
a:245)
 at

sun.rmi.transport.StreamRemoteCall.executeCall(StreamRemoteCall.java:220)
 at sun.rmi.server.UnicastRef.invoke(UnicastRef.java:122)
 at
org.jboss.invocation.jrmp.server.JRMPInvoker_Stub.invoke(Unknown
Source)
 at

org.jboss.invocation.jrmp.interfaces.JRMPInvokerProxy.invoke(JRMPInvokerProxy.java:
135)
 at

org.jboss.invocation.InvokerInterceptor.invoke(InvokerInterceptor.java:96)
 at

org.jboss.proxy.TransactionInterceptor.invoke(TransactionInterceptor.java:46)
 at

org.jboss.proxy.SecurityInterceptor.invoke(SecurityInterceptor.java:53)
 at
org.jboss.proxy.ejb.HomeInterceptor.invoke(HomeInterceptor.java:173)
 at org.jboss.proxy.ClientContainer.invoke(ClientContainer.java:85)
 at $Proxy0.findByPrimaryKey(Unknown Source)
 at
EmployeeSalInsertClient.main(EmployeeSalInssimertClient.java:34)
Tomer Ben-David - 23 Sep 2004 17:14 GMT
> Problem with a simple CMP bean while working on JBoss
>
[quoted text clipped - 55 lines]
>   at
>  EmployeeSalInsertClient.main(EmployeeSalInssimertClient.java:34)

do you have a findByPrimaryKey method in your bean home interface ?


Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.