Win a copy of JDBC Workbook this week in the JDBC and Relational Databases forum
or A Day in Code in the A Day in Code forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
  • Campbell Ritchie
  • Paul Clapham
  • Jeanne Boyarsky
  • Junilu Lacar
  • Henry Wong
  • Ron McLeod
  • Devaka Cooray
  • Tim Cooke
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Frits Walraven
  • Tim Holloway
  • Carey Brown
  • Piet Souris
  • salvin francis
  • fred rosenberger

CMP Creation prob.

Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am using WASAD 5.0.0. Trying to create an CMP entity bean.
My Code is as follows
public class CCIGDBController {

public static void main(String[] argv) throws Exception {
1Properties props = new Properties();
2String szFileName = "c:\\configejbexamples.txt";
3InputStream inStream = new FileInputStream(new File(szFileName));

//get starting point of JNDI tree
5Context ctx = new InitialContext(props);
//get reference to home object
7Object obj = ctx.lookup("ejb/tms/Components/StoreKeeperHome"); //ejb/helloworld/HelloBean");
8StoreKeeperHome home = (StoreKeeperHome) PortableRemoteObject.narrow (obj,StoreKeeperHome.class);
9StoreKeeper crt = home.create("001Jan29");
When I run this code I get the following error.
java.rmi.RemoteException: CORBA UNKNOWN 0x4942fe86 Maybe; nested exception is:
org.omg.CORBA.UNKNOWN: minor code: 4942FE86 completed: Maybe
org.omg.CORBA.UNKNOWN: minor code: 4942FE86 completed: Maybe
at java.lang.Class.newInstance0(Native Method)
at java.lang.Class.newInstance(
at org.omg.CORBA.portable.ObjectImpl._invoke(
at tms.Components._EJSRemoteCMPStoreKeeperBean_StoreKeeperHome_4c0852b3_Stub.create(
at Client.CCIGDBController.main(
Exception in thread "P=389458 =0:CT"
If somebody have come across the same problem or any guessing on why this error is comming. A Solution will be highly appreciated.
I think I'll just lie down here for a second. And ponder this tiny ad:
Devious Experiments for a Truly Passive Greenhouse!
    Bookmark Topic Watch Topic
  • New Topic