• 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 ...
Marshals:
  • Campbell Ritchie
  • Liutauras Vilda
  • Jeanne Boyarsky
  • Devaka Cooray
  • Paul Clapham
Sheriffs:
  • Tim Cooke
  • Knute Snortum
  • Bear Bibeault
Saloon Keepers:
  • Ron McLeod
  • Tim Moores
  • Stephan van Hulst
  • Piet Souris
  • Ganesh Patekar
Bartenders:
  • Frits Walraven
  • Carey Brown
  • Tim Holloway

CMP Creation prob.

 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi
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));
4props.load(inStream);

//get starting point of JNDI tree
5Context ctx = new InitialContext(props);
6System.out.println("##############");
//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");
10System.out.println("**************");
----------------------
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(Class.java:262)
at com.ibm.rmi.iiop.ReplyMessage._getSystemException(ReplyMessage.java:247)
at com.ibm.rmi.iiop.ReplyMessage.getSystemException(ReplyMessage.java:184)
at com.ibm.rmi.iiop.ClientResponseImpl.getSystemException(ClientResponseImpl.java:138)
at com.ibm.CORBA.iiop.ClientDelegate.intercept(ClientDelegate.java:906)
at com.ibm.CORBA.iiop.ClientDelegate.invoke(ClientDelegate.java:516)
at com.ibm.CORBA.iiop.ClientDelegate.invoke(ClientDelegate.java:713)
at org.omg.CORBA.portable.ObjectImpl._invoke(ObjectImpl.java:258)
at tms.Components._EJSRemoteCMPStoreKeeperBean_StoreKeeperHome_4c0852b3_Stub.create(_EJSRemoteCMPStoreKeeperBean_StoreKeeperHome_4c0852b3_Stub.java:218)
at Client.CCIGDBController.main(CCIGDBController.java:38)
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.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!