1 Reply Latest reply on Dec 1, 2003 2:41 PM by Francisco Reverbel

    Problem returning a transfer object

    sepali Newbie

      I'm trying to develop a Session EJB which will be used for invocations over IIOP. I have set up a test client and have managed to call a method that returns a String object. However, when i try to call a method that returns a transfer object i.e. an obejct that is an implementation of the Transfer object pattern, i get the following error:
      java.rmi.RemoteException: CORBA UNKNOWN 0 No; nested exception is:
      org.omg.CORBA.UNKNOWN: org.omg.CORBA.portable.UnknownException vmcid: 0x0 minor code: 0 completed: No
      at com.sun.corba.se.internal.iiop.ShutdownUtilDelegate.mapSystemException(ShutdownUtilDelegate.java:134)
      at javax.rmi.CORBA.Util.mapSystemException(Util.java:65)
      at org.jboss.proxy.ejb.DynamicIIOPStub.invoke(DynamicIIOPStub.java:138)
      at se.teligent.tsp.folder.ejb.session._FolderFacadeRemote_Stub.findFolder(Unknown Source)
      at se.teligent.tsp.folder.ejb.test.FolderIIOPTest.testCallFolderFacade(FolderIIOPTest.java:80)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      at java.lang.reflect.Method.invoke(Method.java:324)
      at junit.framework.TestCase.runTest(TestCase.java:166)
      at junit.framework.TestCase.runBare(TestCase.java:140)
      at junit.framework.TestResult$1.protect(TestResult.java:106)
      at junit.framework.TestResult.runProtected(TestResult.java:124)
      at junit.framework.TestResult.run(TestResult.java:109)
      at junit.framework.TestCase.run(TestCase.java:131)
      at junit.framework.TestSuite.runTest(TestSuite.java:173)
      at junit.framework.TestSuite.run(TestSuite.java:168)
      at junit.textui.TestRunner.doRun(TestRunner.java:74)
      at junit.textui.TestRunner.run(TestRunner.java:200)
      at se.teligent.tsp.folder.ejb.test.FolderIIOPTest.main(FolderIIOPTest.java:52)
      Caused by: org.omg.CORBA.UNKNOWN: org.omg.CORBA.portable.UnknownException vmcid: 0x0 minor code: 0 completed: No
      at org.jacorb.orb.SystemExceptionHelper.read(Unknown Source)
      at org.jacorb.orb.ReplyReceiver.getReply(Unknown Source)
      at org.jacorb.orb.Delegate.invoke_internal(Unknown Source)
      at org.jacorb.orb.Delegate.invoke(Unknown Source)
      at org.omg.CORBA.portable.ObjectImpl._invoke(ObjectImpl.java:457)
      at org.jboss.proxy.ejb.DynamicIIOPStub.invoke(DynamicIIOPStub.java:113)
      ... 17 more

      Here are the two different methods that I use.
      // This one works fine
      public String getFolderName(long id)
      throws RemoteException, FinderException;
      // This one results in an exception
      public Folder findFolder(long eid)
      throws RemoteException, FinderException;

      The client is started as follows:
      c:/java/j2sdk1.4.2/bin/javaw.exe -classpath c:/tsp/src/components/folder/build/classes;c:/tsp/src/components/sequence/build/lib/sequence-client.jar;c:/tsp/src/components/servicelocator/build/classes;c:/tsp/src/components/tree/build/classes;c:/tsp/src/components/folder/src/se/teligent/tsp/folder/ejb/test;c:/tsp/src/components/eventlog/build/classes;c:/jboss-3.2.2/client/jacorb.jar;c:/jboss-3.2.2/client/jboss-client.jar;c:/jboss-3.2.2/client/jboss-common-client.jar;c:/jboss-3.2.2/client/jboss-iiop-client.jar;c:/jboss-3.2.2/client/jboss-j2ee.jar;c:/jboss-3.2.2/client/jboss-j2ee.jar;c:/jboss-3.2.2/client/log4j.jar;c:/tsp/3rdParty/junit/junit3.7/junit.jar -Dorg.omg.CORBA.ORBClass=org.jacorb.orb.ORB -Dorg.omg.CORBA.ORBSingletonClass=org.jacorb.orb.ORBSingleton -Djava.security.manager= -Djava.security.policy=./client.policy -Xdebug -Xrunjdwp:transport=dt_shmem,address=javadebug,server=y,suspend=n se.teligent.tsp.folder.ejb.test.FolderIIOPTest