BorlandTalk.com Forum Index BorlandTalk.com
Borland discussion newsgroups
 
Archives   FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Remote interface can not be called on EJB

 
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> JBuilder Enterprise
View previous topic :: View next topic  
Author Message
Danny Wang
Guest





PostPosted: Wed Sep 24, 2003 12:23 am    Post subject: Remote interface can not be called on EJB Reply with quote



My first EJB program seems to have a trouble. Sad
Following the "Tutorial: Developing Session Bean with EJB designer" in
the help file, I created a EBJ module that contains a simple session
bean called Item, which, in turn, has only one remote method:
AddItem(...)
When I tried to test it in the clientTest.java, it always fails on
calling this method. Following is the client test code in
clientTest.java
....
try {
cart = home.create(cardHolderName, creditCardNumber,
expirationDate);
} catch (Exception e) {
System.out.println("Could not create Cart session beann" + e);
}
if(cart!=null)
{
Item kassemBook = new Item("J2EE Blueprints", 39.99f, "Book");
// kassemBook has successfully been created
try {
cart.addItem(kassemBook); //failed on this line
} catch (Exception e) {
System.out.println("Could not add book (J2EE blutprints) to
the cartn" + e);
}
Following are the error messages:
org.omg.CORBA.BAD_OPERATION: minor code: 0 completed: No

at java.lang.Class.newInstance0(Native Method)

at java.lang.Class.newInstance(Class.java:237)

at com.inprise.vbroker.orb.SE.read(SE.java:28)

at com.inprise.vbroker.orb.DelegateImpl.handleReply(DelegateImpl.java:776)

at com.inprise.vbroker.orb.DelegateImpl.invoke(DelegateImpl.java:662)

at org.omg.CORBA.portable.ObjectImpl._invoke(ObjectImpl.java:459)

at testbean._ItemSession_Stub.addItem(_ItemSession_Stub.java:227)

at testbean.ItemSessionTestClient1.main(ItemSessionTestClient1.java:59)
Could not add book (J2EE blutprints) to the cart
java.rmi.RemoteException: org.omg.CORBA.BAD_OPERATION: minor code: 0
completed: No

The server is set to Borland Application Server 5.02 in JBuilder 7.
The server VM paramters is set to "-Dvbroker.agent.port=14000
-Dvbroker.security.disable=false" and the client VM paramter is set to
"-Dvbroker.agent.port=14000"

One thing worth to mention is that the statistic shows the session
bean is properly created in memory.
Any hint will be appreciated.
Danny
Back to top
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> JBuilder Enterprise All times are GMT
Page 1 of 1

 
 


Powered by phpBB © 2001, 2006 phpBB Group
.