CORBA.BAD_OPERATION

I am getting this error and don't understand why. I'm a relative novice to CORBA. I am using JDK 1.4.1_05 on XP.
I generate my IDL files using idlj -fall and idlj -fallTIE.
I get the standard generated files -
_ImageSessionStub.java, ImageSession.java, ImageSessionHelper.java, ImageSessionHolder.java, ImageSessionOperations.java, ImageSessionPOA.java, and ImageSessionPOATIE.java
I am trying to call the getImageServiceDM method. That method is present in the _imageSessionStub, ImageSessionOperations, ImageSessionPOA, and ImageSessionPOATIE files.
Here is the code I use. The variables "orb" and "poa" are already initialized. The "orb" is the one created in my server. The "poa" is the RootPOA.
ImageSessionImpl extends IMAGE_SESSION_POA and has the method getImageServiceDM defined.
org.omg.CORBA.Object obj = orb.resolve_initial_references("NameService"); 
NamingContextExt ncRef = NamingContextExtHelper.narrow(obj);
ImageSessionImpl imageSessionImpl = new ImageSessionImpl();
ImageSessionPOATie tie = new ImageSessionPOATie(imageSessionImpl, poa);
Image Session ImageSession il_href = tie._this(orb);          At this point, il_href is a _ImageSessionStub object.
The CORBA.BAD_OPERATION exception occurs if I then issue:
RRISImageServiceDM rIsImageServiceDM =
         il_href.getImageServiceDM();I can see it goes into the stub but it dies in the _invoke method.
I didn't know if I needed the following code but I commented out the above statement but I had the same outcome.
NameComponent[] il_nc = ncRef.to_name( imageSessionImpl.getName());
ncRef.rebind(il_nc, il_href);
imageSession = ImageSessionHelper.narrow(
                                     ncRef.resolve_str(imageSessionImpl.getName()) );
Again, the CORBA.BAD_OPERATION occurs here:
RRISImageServiceDM rIsImageServiceDM =
         imageSession.getImageServiceDM();Again, imageSession is a _ImageSessionStub object.
Any suggestion/ideas would be appreciated. I know I must be missing something basic.
Thanks

I think minor codes are vendor specific. Last time I needed to know this information, I had to go look at the source...

Similar Messages

  • Org.omg.CORBA.BAD_OPERATION:   vmcid: 0x2000  minor code: 2049  completed:

    Hi,
    I have a stupid CORBA error, can someone please help me to have a clue why this client gives me a hart time?
    Properties props = new Properties();
    props.put("org.omg.CORBA.ORBInitialPort", "1570");
    props.put("org.omg.CORBA.ORBInitialHost", "192.168.10.44");
    ORB orb = ORB.init(args, props);
    org.omg.CORBA.Object obj = orb.resolve_initial_references("NameService");
    NamingContextExt ctx = NamingContextExtHelper.narrow(obj);
    org.omg.CORBA.BAD_OPERATION: vmcid: 0x2000 minor code: 2049 completed: No
         at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
         at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)
         at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)
         at java.lang.reflect.Constructor.newInstance(Unknown Source)
         at java.lang.Class.newInstance0(Unknown Source)
         at java.lang.Class.newInstance(Unknown Source)
         at com.sun.corba.se.impl.protocol.giopmsgheaders.MessageBase.getSystemException(Unknown Source)
         at com.sun.corba.se.impl.protocol.giopmsgheaders.ReplyMessage_1_0.getSystemException(Unknown Source)
         at com.sun.corba.se.impl.protocol.CorbaMessageMediatorImpl.getSystemExceptionReply(Unknown Source)
         at com.sun.corba.se.impl.protocol.CorbaClientRequestDispatcherImpl.processResponse(Unknown Source)
         at com.sun.corba.se.impl.protocol.CorbaClientRequestDispatcherImpl.marshalingComplete(Unknown Source)
         at com.sun.corba.se.impl.protocol.CorbaClientDelegateImpl.invoke(Unknown Source)
         at com.sun.corba.se.impl.resolver.BootstrapResolverImpl.invoke(Unknown Source)
         at com.sun.corba.se.impl.resolver.BootstrapResolverImpl.resolve(Unknown Source)
         at com.sun.corba.se.impl.resolver.CompositeResolverImpl.resolve(Unknown Source)
         at com.sun.corba.se.impl.resolver.CompositeResolverImpl.resolve(Unknown Source)
         at com.sun.corba.se.impl.resolver.CompositeResolverImpl.resolve(Unknown Source)
         at com.sun.corba.se.impl.orb.ORBImpl.resolve_initial_references(Unknown Source)

    I too have the same error my friend.
    I am trying to call a remote method of an entity bean when I get the same org.omg.CORBA.BAD_OPERATION message.

  • Exception CORBA BAD_OPERATION

    Hi,
    I'm receiving this exception when accessing a stateful session EJB from a servlet after a reloading action (modifying .reload file).
    I have the session store activated into files, and the servlet works correctly, but after reloading another application, when it tries to use the ejb hanlde, receives this exception:
    Type: Exception Report
    Message: Internal Server Error
    Exception
    java.rmi.RemoteException: CORBA BAD_OPERATION 0 No; nested exception is:
         org.omg.CORBA.BAD_OPERATION: The delegate has not been set! vmcid: 0x0 minor code: 0 completed: No
         at com.sun.corba.ee.internal.iiop.ShutdownUtilDelegate.mapSystemException(ShutdownUtilDelegate.java:141)
         at javax.rmi.CORBA.Util.mapSystemException(Util.java:65)
         at com.sun.corba.ee.internal.iiop.ShutdownUtilDelegate.isLocal(ShutdownUtilDelegate.java:48)
         at javax.rmi.CORBA.Util.isLocal(Util.java:262)
         at pruebas.s1as.ejb._sumaUno_Stub.suma1(Unknown Source)
         at pruebas.s1as.servlet.accesoStateful.processRequest(accesoStateful.java:92)
         at pruebas.s1as.servlet.accesoStateful.doGet(accesoStateful.java:119)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at org.apache.catalina.core.StandardWrapperValve.invokeServletService(StandardWrapperValve.java:720)
         at org.apache.catalina.core.StandardWrapperValve.access$000(StandardWrapperValve.java:118)
         at org.apache.catalina.core.StandardWrapperValve$1.run(StandardWrapperValve.java:278)
         at java.security.AccessController.doPrivileged(Native Method)
         at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:274)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:505)
         at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:212)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:505)
         at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:203)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:505)
         at com.iplanet.ias.web.connector.nsapi.NSAPIProcessor.process(NSAPIProcessor.java:157)
         at com.iplanet.ias.web.WebContainer.service(WebContainer.java:598)
    Caused by: org.omg.CORBA.BAD_OPERATION: The delegate has not been set! vmcid: 0x0 minor code: 0 completed: No
         at org.omg.CORBA.portable.ObjectImpl._get_delegate(ObjectImpl.java:53)
         at com.sun.corba.ee.internal.iiop.ShutdownUtilDelegate.isLocal(ShutdownUtilDelegate.java:42)
         ... 18 more
    Has anyone seen this?
    Thanks
    Juan

    Hi again,
    Problem solved. It was just that i inserted the remote ejb in the session instead of inserting the ejb handle. Using the handle it's solved.
    Thanks
    Juan

  • Org.omg.CORBA.BAD_OPERATION:   minor code: 1414878249 completed: Maybe

    Hello everybody,
    does somebody know something about this minor code we receive in WLE
    5.1. At the same time, we get an ulog entry of an
    java.lang.OutOfMemoryError. Those two things seem to be related, but
    without knowing the meaning of this minor code, it is difficult to
    understand what really happened. Every help is appreciated, thank you!
    Best regards, Werner Koch

    Finally, after some investigation, we found out that the minor code 1414878249 relates
    to null values in Strings or sequences passed in CORBA structures. According to the
    spec, you should initialize those attributes with empty values, but not pass a null
    value. As an example, instead of a null String pass a new String() and for a sequence
    pass an empty array.
    For a good article on the subject, look at
    CORBA
    programming: Storage management responsibilities for arguments
    HTH
    Kostas
    Werner Koch <[email protected]> wrote:
    Hello everybody,
    does somebody know something about this minor code we receive in WLE
    5.1. At the same time, we get an ulog entry of an
    java.lang.OutOfMemoryError. Those two things seem to be related, but
    without knowing the meaning of this minor code, it is difficult to
    understand what really happened. Every help is appreciated, thank you!
    Best regards, Werner Koch

  • CORBA problem after migration to JDK 1.5.0_05

    Hi,
    I faced some errors with CORBA, after performing migration from JDK 1.4.1 to JDK 1.5.0_02
    on Solaris 8 2/02 (SPARC version).
    I've spend few days on digging in java.sun.com bug database and google archive,
    but haven't found similar case.
    The problem occurs in a web application launched on Tomcat 5.5.7, if JDK 1.5.0_02 is used and trying to connect with CORBA server.
    If using JDK 1.4.1 the CORBA stuff works fine.
    I isolated the problem code and found out, that Tomcat
    can not cause the error, because i receive the same error while invoking test class from command line.
    I use IOR file for obtaining the object reference and default JDK Orb.
    The stacktrace(see below) goes through new package in JDK 1.5 com.sun.corba.se.impl.* and java.lang.Class which was
    rewriten in JDK 1.5 in order to use generics. Is it possible that the bug lies somewhere in this classes?
    I've already spent few days on searching cause of the bug, and found no clues.
    Is this a known issue? Does anyone have a workaround?
    Have you seen some similiar behavior associated with migration to JDK 1.5.0 ?
    I'm running out of ideas, on debugging this stuff, any help or suggestion could be helpful.
    Thanks In Advance, Kuba
    PS. I attach the received stack trace below:
    org.omg.CORBA.BAD_OPERATION:   vmcid: 0x0  minor code: 0 completed: Maybe
            at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
            at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
            at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
            at java.lang.reflect.Constructor.newInstance(Constructor.java:494)
            at java.lang.Class.newInstance0(Class.java:350)
            at java.lang.Class.newInstance(Class.java:303)
            at com.sun.corba.se.impl.protocol.giopmsgheaders.MessageBase.getSystemException(MessageBase.java:897)
            at com.sun.corba.se.impl.protocol.giopmsgheaders.ReplyMessage_1_2.getSystemException(ReplyMessage_1_2.java:99)
            at com.sun.corba.se.impl.protocol.CorbaMessageMediatorImpl.getSystemExceptionReply(CorbaMessageMediatorImpl.java:572)
            at com.sun.corba.se.impl.protocol.CorbaClientRequestDispatcherImpl.processResponse(CorbaClientRequestDispatcherImpl.java:430)
            at com.sun.corba.se.impl.protocol.CorbaClientRequestDispatcherImpl.marshalingComplete(CorbaClientRequestDispatcherImpl.java:326)
            at com.sun.corba.se.impl.protocol.CorbaClientDelegateImpl.invoke(CorbaClientDelegateImpl.java:129)
            at org.omg.CORBA.portable.ObjectImpl._invoke(ObjectImpl.java:457)
            at generated.from.idl.package._ServerFactoryStub.FindServer(_ServerFactoryStub.java:25)

    Hi,
    I replying to my own post for persons who, have a similar problem.
    I've used external ORB implementation, and the stuff started working properly.
    www.jacorb.org.

  • Stateless EJB as CORBA callback objects

    I am trying to have an EJB working as a client of an external CORBA system that provides
    an asynchronous interface. This means the EJB has to provide the CORBA server with
    a Callback object implementing a particular CORBA interface. I'd like to have the
    EJB directly implement that interface, and use a reference to its remote interface
    as the object I pass in the method call: is it possible in some way? Right now I've
    tried passing context.getEJBObject()and I receive the following exception:
    java.rmi.RemoteException: EJB Exception: ; nested exception is: org.omg.CORBA.BAD_OPERATION:
    The delegate has not been set! minor code: 0 completed: No
    org.omg.CORBA.BAD_OPERATION: The delegate has not been set! minor code: 0 completed:
    No
    at org.omg.CORBA.portable.ObjectImpl._get_delegate(ObjectImpl.java:55)
    at com.inprise.vbroker.orb.ORB.getDelegate(ORB.java:1328)
    at com.inprise.vbroker.orb.CDROutputStream.write_Object(CDROutputStream.java:1494)
    at weblogic.iiop.UtilDelegateImpl.writeRemoteObject(UtilDelegateImpl.java:326)
    at javax.rmi.CORBA.Util.writeRemoteObject(Util.java:110)
    at Bank._AccountStub.balanceAndCallback(_AccountStub.java:87)
    at it.altoprofilo.mcss.prove.CorbaClient1EJB.getBalanceWithCallback(CorbaClient1EJB.java:99)
    at it.altoprofilo.mcss.prove.CorbaClient1EJB_4jr201_EOImpl.getBalanceWithCallback(CorbaClient1EJB_4jr201_EOImpl.java:78)
    at java.lang.reflect.Method.invoke(Native Method)
    at com.sun.forte4j.j2ee.ejbtest.webtest.InvocableMethod$MethodIM.invoke(InvocableMethod.java:232)
    at com.sun.forte4j.j2ee.ejbtest.webtest.EjbInvoker.getInvocationResults(EjbInvoker.java:97)
    at com.sun.forte4j.j2ee.ejbtest.webtest.DispatchHelper.getForward(DispatchHelper.java:190)
    at jsp_servlet.__dispatch._jspService(__dispatch.java:116) at weblogic.servlet.jsp.JspBase.service(JspBase.java:27)
    at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:265)
    at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:200)
    at weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServletContext.java:2495)
    at weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.java:2204)
    at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:139) at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:120)

    Perhaps you can find the resolution for your problem
    in these documents:
    http://download-east.oracle.com/docs/cd/B10501_01/java.920/a96656.pdf
    http://download-east.oracle.com/docs/cd/B10501_01/java.920/a96659.pdf
    [email protected]
    Joel P�rez

  • CORBA client server issue

    Hi,
    I am making a client server architecture implementing CORBA.
    On the server side there are two classes ChargingManager and Charging.The client first calls a method createChargingSession() on ChargingManager class which in turn returns a reference of the Charging class back to the client.But when the client call a method debitAmount() on Charging reference it throws an exception showing that the call instead to be initiated to Charging class actually goes to ChargingManager class where it throws methodNotFound exception.
    But in a separate scenario if instead of sending back the Charging reference to client I create an IOR file of Charging class as similar to that of ChargingManager and once the client resolves the object reference of Charging class from this IOR file and calls the method debitAmount() it performs well....I am not able to figure it out..Please help me out...Attached are the exception...
    org.omg.CORBA.BAD_OPERATION: ----------BEGIN server-side stack trace----------
    org.omg.CORBA.BAD_OPERATION: vmcid: 0x0 minor code: 0 completed: Maybe at org.csapi.cs.IpChargingManagerPOA._invoke(IpChargingManagerPOA.java:35)
    at com.sun.corba.se.impl.protocol.CorbaServerRequestDispatcherImpl.dispatchToServant(CorbaServerRequestDispatcherImpl.java:637)
         at com.sun.corba.se.impl.protocol.CorbaServerRequestDispatcherImpl.dispatch(CorbaServerRequestDispatcherImpl.java:189)
         at com.sun.corba.se.impl.protocol.CorbaMessageMediatorImpl.handleRequestRequest(CorbaMessageMediatorImpl.java:1680)
         at com.sun.corba.se.impl.protocol.CorbaMessageMediatorImpl.handleRequest(CorbaMessageMediatorImpl.java:1540)
         at com.sun.corba.se.impl.protocol.CorbaMessageMediatorImpl.handleInput(CorbaMessageMediatorImpl.java:922)
         at com.sun.corba.se.impl.protocol.giopmsgheaders.RequestMessage_1_2.callback(RequestMessage_1_2.java:181)
         at com.sun.corba.se.impl.protocol.CorbaMessageMediatorImpl.handleRequest(CorbaMessageMediatorImpl.java:694)
         at com.sun.corba.se.impl.transport.SocketOrChannelConnectionImpl.dispatch(SocketOrChannelConnectionImpl.java:451)
         at com.sun.corba.se.impl.transport.SocketOrChannelConnectionImpl.doWork(SocketOrChannelConnectionImpl.java:1187)
         at com.sun.corba.se.impl.orbutil.threadpool.ThreadPoolImpl$WorkerThread.run(ThreadPoolImpl.java:417)
    ----------END server-side stack trace---------- vmcid: 0x0 minor code: 0 completed: Maybe
         at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
         at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
         at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
         at java.lang.reflect.Constructor.newInstance(Constructor.java:494)
         at com.sun.corba.se.impl.protocol.giopmsgheaders.MessageBase.getSystemException(MessageBase.java:902)
         at com.sun.corba.se.impl.protocol.giopmsgheaders.ReplyMessage_1_2.getSystemException(ReplyMessage_1_2.java:99)
         at com.sun.corba.se.impl.protocol.CorbaMessageMediatorImpl.getSystemExceptionReply(CorbaMessageMediatorImpl.java:572)
         at com.sun.corba.se.impl.protocol.CorbaClientRequestDispatcherImpl.processResponse(CorbaClientRequestDispatcherImpl.java:430)
         at com.sun.corba.se.impl.protocol.CorbaClientRequestDispatcherImpl.marshalingComplete(CorbaClientRequestDispatcherImpl.java:326)
         at com.sun.corba.se.impl.protocol.CorbaClientDelegateImpl.invoke(CorbaClientDelegateImpl.java:129)
         at org.omg.CORBA.portable.ObjectImpl._invoke(ObjectImpl.java:457)
         at org.csapi.cs._IpChargingSessionStub.directDebitAmountReq(_IpChargingSessionStub.java:222)
         at com.handler.OsaCharging.charge(OsaCharging.java:331)
         at com.handler.OsaCharging.main(OsaCharging.java:513)
    Does sending back the reference in CORBA changes the reference definition..

    I've got exactly the same problem... I use a SessionFactory to create a Session, and when I try to call session.open(); I actually call sessionFactory.open();
    Don't have an idea why is that... If you solved it, please do tell how.
    Thanks

  • Urgent, BAD_OPERATION

    I have a Server and a client both written in Java & using Sun's ORB, the java version being J2SE1.4.0-b92 .I could bind an object to the NamingService(INS) on the Server Side. On my Client side ,I am able to retrieve the same object perfectly. But when I try to invoke functions on that object, I get the BAD_OPERATION exception. The fact is I am binding this object during the runtime of the application.
    org.omg.CORBA.BAD_OPERATION: vmcid: 0x0 minor code: 0 completed: Maybe
    at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
    at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
    at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
    at java.lang.reflect.Constructor.newInstance(Constructor.java:274)
    at java.lang.Class.newInstance0(Class.java:296)
    at java.lang.Class.newInstance(Class.java:249)
    at com.sun.corba.se.internal.iiop.messages.ReplyMessage_1_2.getSystemException(ReplyMessage_1_2.java:90)
    at com.sun.corba.se.internal.iiop.ClientResponseImpl.getSystemException(ClientResponseImpl.java:105)
    at com.sun.corba.se.internal.POA.GenericPOAClientSC.invoke(GenericPOAClientSC.java:129)
    at org.omg.CORBA.portable.ObjectImpl._invoke(ObjectImpl.java:457)
    at EmsGuiIntf._EmsGuiInterfaceStub.getAllSdpGroupIds(_EmsGuiInterfaceStub.java:2251)
    But if I bind the same object during the initialisation time, there won't be any exceptions on the client side. Any help is greatly appreciated.
    Thanks.

    I have the same problem. I have found a workaround for it: instantiate the servant in a separate thread. This make me suspect a synchronization problem in the Java ORB.

  • Unknown CORBA minor code in CORBA Exception

    If this is not the best forum for this Q, please advise.
    I've been using the JDK ORB to do some CORBA programming for some time with no problems. I added a new operation to a server side object, rant the client side stuff througn idlj again, and am getting a CORBA BAD_OPERATION
    exception when invoking this operation. I'm not sure if the source of the exception in on the server side or the client side. The exception major code is
    0x4f490000, and minor code is 387.
    The server ORB and naming service are both from ORB Express 2.6.3 from
    Object Interface (www.ois.com). I am using JDK 1.5.0_05 running on
    Windows XP Professional with Service Pack 2.
    I'm seeking information regarding the meaning of minor code 387. Any help or advice will be appreciated. The full stack trace information is given
    below. Thank you.
    Dennis Newbold
    ==========================================================
    Tst exception: org.omg.CORBA.BAD_OPERATION: vmcid: 0x4f490000 minor code: 387
    completed: No
    org.omg.CORBA.BAD_OPERATION: vmcid: 0x4f490000 minor code: 387 completed: No
    at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
    at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstruct
    orAccessorImpl.java:39)
    at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingC
    onstructorAccessorImpl.java:27)
    at java.lang.reflect.Constructor.newInstance(Constructor.java:494)
    at java.lang.Class.newInstance0(Class.java:350)
    at java.lang.Class.newInstance(Class.java:303)
    at com.sun.corba.se.impl.protocol.giopmsgheaders.MessageBase.getSystemEx
    ception(MessageBase.java:897)
    at com.sun.corba.se.impl.protocol.giopmsgheaders.ReplyMessage_1_0.getSys
    temException(ReplyMessage_1_0.java:94)
    at com.sun.corba.se.impl.protocol.CorbaMessageMediatorImpl.getSystemExce
    ptionReply(CorbaMessageMediatorImpl.java:572)
    at com.sun.corba.se.impl.protocol.CorbaClientRequestDispatcherImpl.proce
    ssResponse(CorbaClientRequestDispatcherImpl.java:430)
    at com.sun.corba.se.impl.protocol.CorbaClientRequestDispatcherImpl.marsh
    alingComplete(CorbaClientRequestDispatcherImpl.java:326)
    at com.sun.corba.se.impl.protocol.CorbaClientDelegateImpl.invoke(CorbaCl
    ientDelegateImpl.java:129)
    at org.omg.CORBA.portable.ObjectImpl._invoke(ObjectImpl.java:457)
    at VehicleNVM._VehicleNVMAccessStub.readProtectedNVM(_VehicleNVMAccessSt
    ub.java:169)
    at JVehicleNVMDevice.readProtectedNVM(JVehicleNVMDevice.java:193)
    at TestSuite.test6(DoTests.java:463)
    at TestSuite.runTests(DoTests.java:477)
    at DoTests.main(DoTests.java:492)

    It looks like it's coming from the server in a ServerException so it is probably an ORB Express code.

  • URGENT! BAD_OPERATION exception

    i'm using JDK 1.4.0b92. the following IDL is defined:
    interface Account
    string getName();
    interface Bank
    void pint();
    Account open( in string name);
    I can successfully bind to the Bank instance and invoke Bank::ping() and open(). When i try to invoke account::getName() i get the following trace:
    org.omg.CORBA.BAD_OPERATION: vmcid: 0x0 minor code: 0 completed: Maybe
    at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
    at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstruct
    orAccessorImpl.java:39)
    at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingC
    onstructorAccessorImpl.java:27)
    at java.lang.reflect.Constructor.newInstance(Constructor.java:274)
    at java.lang.Class.newInstance0(Class.java:296)
    at java.lang.Class.newInstance(Class.java:249)
    at com.sun.corba.se.internal.iiop.messages.ReplyMessage_1_2.getSystemExc
    eption(ReplyMessage_1_2.java:90)
    at com.sun.corba.se.internal.iiop.ClientResponseImpl.getSystemException(
    ClientResponseImpl.java:105)
    at com.sun.corba.se.internal.POA.GenericPOAClientSC.invoke(GenericPOACli
    entSC.java:129)
    at org.omg.CORBA.portable.ObjectImpl._invoke(ObjectImpl.java:457)
    raised by Account_Stub.
    If i run the client and server in the same process, everything works (the client code goes to the NameService and resolves the object reference for Bank, etc.)
    Any points on how i can go on debugging this would be really appreciated.
    Thanks in advance (please reply to [email protected]).
    -- ramy

    It turns out that it is trying to invoke the getName() on the BankPOA object and not AccountPOA.
    Weird!!! any clues?

  • OSA PArley CORBA charging implementation

    I am making a client-server model using OSA Parley standard API's for charging of mobile VAS services implementing CORBA.<br>On the server end there are two classes:<br> 1.ChargingManager which extends from IpChargingManagerPOA and 2.Charging which extends from IpChargingSessionPOA.<br>
    Now when the client is hitting the server for setting callback and creating the charging session on the ChargingManager everything is fine and it successfully returns a reference of Charging class to the client.
    Now when the client calls an API 'debitRequest()' of Charging reference the client throws an exception which shows that the call instead to be forwarded to IpCHargingSessionPOA is delegated to IpChargingManagerPOA where it throws 'BAD_OPERATION'(no method found)...Please help me out ..I am attaching the required code snippets....<br>
    /*<br>
    * Setting callback for charging<br>
    **/<br>
    try {<br> IpChargingManager.setCallback(mChargeListener._this(orb));<br>
    }catch (Exception ex){<br>
    log.error("Charging Callback setting failure",ex);<br>
    }<br>
    .................<br>
    /**<br>
    * Creating a new charging Session<br>
    */<br>
    try {<br>
    tpChargingSessionId = IpChargingManager.createChargingSession(this.mChargeListener._this(orb),sessionDesc,tpMerchantAccountId,tpAddress,tpCorrelationId);<br>
    }catch (Exception ex) {<br>
    log.error("IpChargingManager exception",ex);<br>
    }<br>
    This tpChargingSessionId gives back the reference of the Charging class as:<br>
    mIpChargingSession = tpChargingSessionId.ChargingSessionReference;<br>
    but the problem occurs when the following code is executed:<br>
    try {
    mIpChargingSession.directDebitAmountReq(sessionId,tpAppDesc,tpChgParamArray,tpChargingPrice,requestNumber);<br>
    }catch (Exception ex) {<br>
    log.error("IpChargingSession exception",ex);<br>
    }<br>
    The exception is ::<br>
    org.omg.CORBA.BAD_OPERATION: ----------BEGIN server-side stack trace----------
    org.omg.CORBA.BAD_OPERATION: vmcid: 0x0 minor code: 0 completed: Maybe<br>
         at org.csapi.cs.IpChargingManagerPOA._invoke(IpChargingManagerPOA.java:35)<br>
         at com.sun.corba.se.impl.protocol.CorbaServerRequestDispatcherImpl.dispatchToServant(CorbaServerRequestDispatcherImpl.java:637)<br>
         at com.sun.corba.se.impl.protocol.CorbaServerRequestDispatcherImpl.dispatch(CorbaServerRequestDispatcherImpl.java:189)<br>
         at com.sun.corba.se.impl.protocol.CorbaMessageMediatorImpl.handleRequestRequest(CorbaMessageMediatorImpl.java:1680)<br>
         at com.sun.corba.se.impl.protocol.CorbaMessageMediatorImpl.handleRequest(CorbaMessageMediatorImpl.java:1540)<br>
         at com.sun.corba.se.impl.protocol.CorbaMessageMediatorImpl.handleInput(CorbaMessageMediatorImpl.java:922)<br>
         at com.sun.corba.se.impl.protocol.giopmsgheaders.RequestMessage_1_2.callback(RequestMessage_1_2.java:181)<br>
         at com.sun.corba.se.impl.protocol.CorbaMessageMediatorImpl.handleRequest(CorbaMessageMediatorImpl.java:694)<br>
         at com.sun.corba.se.impl.transport.SocketOrChannelConnectionImpl.dispatch(SocketOrChannelConnectionImpl.java:451)<br>
         at com.sun.corba.se.impl.transport.SocketOrChannelConnectionImpl.doWork(SocketOrChannelConnectionImpl.java:1187)<br>
         at com.sun.corba.se.impl.orbutil.threadpool.ThreadPoolImpl$WorkerThread.run(ThreadPoolImpl.java:417)<br>
    ----------END server-side stack trace---------- vmcid: 0x0 minor code: 0 completed: Maybe<br>
         at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)<br>
         at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)<br>
         at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)<br>
         at java.lang.reflect.Constructor.newInstance(Constructor.java:494)<br>
         at com.sun.corba.se.impl.protocol.giopmsgheaders.MessageBase.getSystemException(MessageBase.java:902)<br>
         at com.sun.corba.se.impl.protocol.giopmsgheaders.ReplyMessage_1_2.getSystemException(ReplyMessage_1_2.java:99)<br>
         at com.sun.corba.se.impl.protocol.CorbaMessageMediatorImpl.getSystemExceptionReply(CorbaMessageMediatorImpl.java:572)<br>
         at com.sun.corba.se.impl.protocol.CorbaClientRequestDispatcherImpl.processResponse(CorbaClientRequestDispatcherImpl.java:430)<br>
         at com.sun.corba.se.impl.protocol.CorbaClientRequestDispatcherImpl.marshalingComplete(CorbaClientRequestDispatcherImpl.java:326)<br>
         at com.sun.corba.se.impl.protocol.CorbaClientDelegateImpl.invoke(CorbaClientDelegateImpl.java:129)<br>
         at org.omg.CORBA.portable.ObjectImpl._invoke(ObjectImpl.java:457)<br>
         at org.csapi.cs._IpChargingSessionStub.directDebitAmountReq(_IpChargingSessionStub.java:222)<br>
         at com.handler.client.charge(client.java:309)<br>
    Edited by: manJava on Jan 21, 2008 10:04 PM

    A sidenote: housekeeping chores are better done inside a finally block.

  • Read symbols in textframes via Java CORBA

    Hello @ all!
    System:  Mac OS X
    I have a problem with reading a symbol or special character, e.g. (c) in an textframe of an InDesign CS3 Document.
    (The symbol was insertet via InDesign --> Type --> Special Character etc.)
    Read out the content of an textframe crashes, in the debug mode of eclipse you get a notice: "source not found ..." in an compiled release
    you get the notice:
    "Exception in thread "Task" org.omg.CORBA.BAD_OPERATION:   vmcid: 0x0  minor code: 0  completed: No
        at com.adobe.ids.VariableType.verifyasString(Unknown Source)"
    Here is my CodeSnippet:
    (j is an Index running through the TextStyleRange)
    VariableType vtCHContent = paragraph.getNthChildTextStyleRange(j).getContents();
    Thanks for your Help!

    Hello to myself :)
    I am just looking for people who had the similar problem and also found a solution.
    Cheers!

  • Error while running a EJB client

    Hi All,
    I am trying to execute a Hello World Prgram using EJB's. I have Deployed a Stateless Session bean in J2EE 1.3 deploytool.I am also able to compile my Client, but when i a executing the Client i am getting this error.
    =========================
    java.rmi.RemoteException: CORBA BAD_OPERATION 0 No; nested exception is: org.omg.CORBA.BAD_OPERATION: vmcid: 0x0 minor code: 0 completed: No at com.sun.corba.ee.internal.iiop.ShutdownUtilDelegate.mapSystemException(ShutdownUtilDeleg ate.java:137) at javax.rmi.CORBA.Util.mapSystemException(Util.java:65) at headfirst._Advice_Stub.getAdvice(Unknown Source) at AdviceClient.go(AdviceClient.java:21) at AdviceClient.main(AdviceClient.java:11) Caused by: org.omg.CORBA.BAD_OPERATION: vmcid: 0x0 minor code: 0 completed: No at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java :39) at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorI mpl.java:27) at java.lang.reflect.Constructor.newInstance(Constructor.java:274) at java.lang.Class.newInstance0(Class.java:296) at java.lang.Class.newInstance(Class.java:249) at com.sun.corba.ee.internal.iiop.messages.ReplyMessage_1_2.getSystemException(ReplyMessage _1_2.java:93) at com.sun.corba.ee.internal.iiop.ClientResponseImpl.getSystemException(ClientResponseImpl. java:108) at com.sun.corba.ee.internal.POA.GenericPOAClientSC.invoke(GenericPOAClientSC.java:132) at org.omg.CORBA.portable.ObjectImpl._invoke(ObjectImpl.java:457) at headfirst._Advice_Stub.getAdvice(Unknown Source) ... 2 more ===============================
    I have undeployed and redeployed couple of time but i am still getting the same problem. I am using J2EE 1.3 deploytool for deploying the EJB.
    Can anyone please help me in figuring out the problem.
    Thanks in Advance.
    ~Ravi.

    You are having network-related errors to the client.
    Let me see your Remote interface

  • ' is not a valid XML character.

    Hi All,
    May be an XML Expert can help me in understanding this XML Exception.
    I am trying to expose a EJB as webservice using AXIS 1.2 Final. When
    deployed my ear/ejb on WAS 4.0 on HP-UX operation system and trying
    to consume the web service using AXIS 1.2 generated stubs I am getting below error on the server side.
    [9/12/05 8:17:55:260 MST] ed128 WebGroup X Servlet Error: The
    char &#39;0x0&#39; in &#39;java.rmi.RemoteException: CORBA
    BAD_OPERATION 0 No&#59; nested exception is:
    org.omg.CORBA.BAD_OPERATION: minor code: 0 completed: No
    at com.amla.as.cameron.ejb._EJSRemoteStatelessCS_146c46e9_Tie._invoke&#40;_EJSRemoteStatelessCS_146c46e9_Tie.java:340&#41;
    at com.ibm.CORBA.iiop.ExtendedServerDelegate.dispatch&#40;ExtendedServerDelegate.java:532&#41;
    at com.ibm.CORBA.iiop.ORB.process&#40;ORB.java:2450&#41;
    at com.ibm.CORBA.iiop.OrbWorker.run&#40;OrbWorker.java:186&#41;
    at com.ibm.ejs.oa.pool.ThreadPool$PooledWorker.run&#40;ThreadPool.java:104&#41;
    at com.ibm.ws.util.CachedThread.run&#40;ThreadPool.java:144&#41;
    minor code: 0 completed: No&#39; is not a valid XML character.:
    java.lang.IllegalArgumentException: The char '0x0' in
    'java.rmi.RemoteException: CORBA BAD_OPERATION 0 No; nested exception
    is:
    org.omg.CORBA.BAD_OPERATION: minor code: 0 completed: No
    at com.amla.as.cameron.ejb._EJSRemoteStatelessCS_146c46e9_Tie._invoke(_EJSRemoteStatelessCS_146c46e9_Tie.java:340)
    at com.ibm.CORBA.iiop.ExtendedServerDelegate.dispatch(ExtendedServerDelegate.java:532)
    at com.ibm.CORBA.iiop.ORB.process(ORB.java:2450)
    at com.ibm.CORBA.iiop.OrbWorker.run(OrbWorker.java:186)
    at com.ibm.ejs.oa.pool.ThreadPool$PooledWorker.run(ThreadPool.java:104)
    at com.ibm.ws.util.CachedThread.run(ThreadPool.java:144)
    minor code: 0 completed: No' is not a valid XML character.
    at org.apache.axis.components.encoding.AbstractXMLEncoder.encode(AbstractXMLEncoder.java:110)
    at org.apache.axis.utils.XMLUtils.xmlEncodeString(XMLUtils.java:117)
    at org.apache.axis.AxisFault.dumpToString(AxisFault.java:366)
    at org.apache.axis.AxisFault.printStackTrace(AxisFault.java:796)
    at org.apache.commons.logging.impl.SimpleLog.log(SimpleLog.java:338)
    at org.apache.commons.logging.impl.SimpleLog.warn(SimpleLog.java:446)
    at org.apache.axis.attachments.AttachmentsImpl.getAttachmentCount(AttachmentsImpl.java:523)
    at org.apache.axis.Message.getContentType(Message.java:475)
    at org.apache.axis.transport.http.AxisServlet.doPost(AxisServlet.java:713)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
    at org.apache.axis.transport.http.AxisServletBase.service(AxisServletBase.java:301)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
    at com.ibm.servlet.engine.webapp.StrictServletInstance.doService(ServletManager.java:827)
    at com.ibm.servlet.engine.webapp.StrictLifecycleServlet._service(StrictLifecycleServlet.java:167)
    at com.ibm.servlet.engine.webapp.IdleServletState.service(StrictLifecycleServlet.java:297)
    at com.ibm.servlet.engine.webapp.StrictLifecycleServlet.service(StrictLifecycleServlet.java:110)
    at com.ibm.servlet.engine.webapp.ServletInstance.service(ServletManager.java:472)
    at com.ibm.servlet.engine.webapp.ValidServletReferenceState.dispatch(ServletManager.java:1012)
    at com.ibm.servlet.engine.webapp.ServletInstanceReference.dispatch(ServletManager.java:913)
    at com.ibm.servlet.engine.webapp.WebAppRequestDispatcher.handleWebAppDispatch(WebAppRequestDispatcher.java:721)
    at com.ibm.servlet.engine.webapp.WebAppRequestDispatcher.dispatch(WebAppRequestDispatcher.java:374)
    at com.ibm.servlet.engine.webapp.WebAppRequestDispatcher.forward(WebAppRequestDispatcher.java:118)
    at com.ibm.servlet.engine.srt.WebAppInvoker.doForward(WebAppInvoker.java:134)
    at com.ibm.servlet.engine.srt.WebAppInvoker.handleInvocationHook(WebAppInvoker.java:239)
    at com.ibm.servlet.engine.invocation.CachedInvocation.handleInvocation(CachedInvocation.java:67)
    at com.ibm.servlet.engine.srp.ServletRequestProcessor.dispatchByURI(ServletRequestProcessor.java:151)
    at com.ibm.servlet.engine.oselistener.OSEListenerDispatcher.service(OSEListener.java:317)
    at com.ibm.servlet.engine.http11.HttpConnection.handleRequest(HttpConnection.java:60)
    at com.ibm.ws.http.HttpConnection.readAndHandleRequest(HttpConnection.java:477)
    at com.ibm.ws.http.HttpConnection.run(HttpConnection.java:341)
    at com.ibm.ws.util.CachedThread.run(ThreadPool.java:144)
    Can anyone please suggest under what cases we get this error.
    When I monitor the request soap message using AXIS handlers, the soap
    message seems to be valid and well-formed. The EJB deployment on WAS
    4.0 is successfully and it can be successfully accessed by a ejb
    client :
    Thanks & Regards,
    bab.

    I am having similar problem. Did you find the solution for this
    thanks

  • Jconsole no longer works with Java 6.0, it did with 5.0

    Hello,
    We are having a very important issue. We have reproduced the situation in 10 out of 10 computers, all with the same result, even in fresh installations.
    Using jconsole, we are connecting to the following service (BEA weblogic 10): service:jmx:rmi:///jndi/iiop://host:7001/weblogic.management.mbeanservers.runtime
    In the jconsole provided in any revision of Java 5.0 (1.5) it works, that is to say, it is able to connect to the service.
    On the other hand, there is no way to accomplish this using Java 6.0. The connection fails with the following error:
    Nov 6, 2007 10:27:56 AM com.sun.corba.se.impl.orb.ORBImpl checkShutdownState
    WARNING: "IOP01210228: (BAD_OPERATION) This ORB instance has been destroyed, so no operations can be performed on it"
    org.omg.CORBA.BAD_OPERATION: vmcid: SUN minor code: 228 completed: No
         at com.sun.corba.se.impl.logging.ORBUtilSystemException.orbDestroyed(ORBUtilSystemException.java:586)
         at com.sun.corba.se.impl.logging.ORBUtilSystemException.orbDestroyed(ORBUtilSystemException.java:608)
         at com.sun.corba.se.impl.orb.ORBImpl.checkShutdownState(ORBImpl.java:1289)
         at com.sun.corba.se.impl.orb.ORBImpl.create_any(ORBImpl.java:1078)
         at com.sun.corba.se.impl.javax.rmi.CORBA.Util.writeAny(Util.java:296)
         at javax.rmi.CORBA.Util.writeAny(Util.java:80)
         at org.omg.stub.javax.management.remote.rmi._RMIServer_Stub.newClient(Unknown Source)
         at javax.management.remote.rmi.RMIConnector.getConnection(RMIConnector.java:2309)
         at javax.management.remote.rmi.RMIConnector.connect(RMIConnector.java:277)
         at javax.management.remote.JMXConnectorFactory.connect(JMXConnectorFactory.java:248)
         at sun.tools.jconsole.ProxyClient.tryConnect(ProxyClient.java:361)
         at sun.tools.jconsole.ProxyClient.connect(ProxyClient.java:297)
         at sun.tools.jconsole.VMPanel$2.run(VMPanel.java:279)
    We have also create our own application to do this and although the same piece of code compiles under both JDKs, it fails to run with exactly the same error under Java 6.0.
    Does anyone know why this is happening and if there is a way to work around it?
    TIA.

    Hi, I faced similar problems access MBeans to Weblogic Server 10 from client under JDK(JRE) 6.0
    , but my way of workaround may be helpful:
    Do not use jmx support jar files from Weblogic Server10, use that from 9 instead. Here I use
    weblogic.jar & webservices.jar
    and it works fine.
    the following is my test program (looks ugly, but only for test)
    public class MyConnection {
        private static MBeanServerConnection connection;
        private static JMXConnector connector;
        public static void initConnection(String hostname, String portString,
                String username, String password) throws IOException,
                MalformedURLException {
            String protocol = "t3";
            Integer portInteger = Integer.valueOf(portString);
            int port = portInteger.intValue();
            String jndiroot = "/jndi/";
            String mserver = "weblogic.management.mbeanservers.domainruntime";
            JMXServiceURL serviceURL = new JMXServiceURL(protocol, hostname, port,
                    jndiroot + mserver);
            Hashtable h = new Hashtable();
            h.put(Context.SECURITY_PRINCIPAL, username);
            h.put(Context.SECURITY_CREDENTIALS, password);
            h.put(JMXConnectorFactory.PROTOCOL_PROVIDER_PACKAGES,
                "weblogic.management.remote");
            connector = JMXConnectorFactory.connect(serviceURL, h);
            connection = connector.getMBeanServerConnection();
        public static void getComplidatedObject() throws Exception {
            //String name = "com.bea:Location=examplesServer,Name=examplesServer,ServerRuntime=examplesServer,Type=JDBCServiceRuntime";\
            String name = "com.bea:Name=DomainRuntimeService,Type=weblogic.management.mbeanservers.domainruntime.DomainRuntimeServiceMBean";
            String attribute = "ServerRuntimes";
            ObjectName on = new ObjectName(name);
            Object obj = connection.getAttribute(on, attribute);
            //Method m = obj.getClass().getMethod("getState", new Class[] {});
            //Object result = m.invoke(obj, null);
            //System.out.println(result);
            System.out.println(obj.getClass().isArray());
            System.out.println(obj);
        public static void discovery() throws Exception {
            String mbeanType = "*:*";
            ObjectName patialObjectName = new ObjectName(mbeanType);
            Set mbeans = connection.queryNames(patialObjectName, null);
            long overallTime = System.currentTimeMillis();
            for (Iterator itr = mbeans.iterator(); itr.hasNext();) {
                ObjectName mbean = (ObjectName) itr.next();
                String sMBeanFullName = mbean.getCanonicalName();
                MBeanInfo mbeanInfo = connection.getMBeanInfo(mbean);
                MBeanAttributeInfo mbeanAttrInfoArray[] = mbeanInfo.getAttributes();
                if (mbeanAttrInfoArray == null) {
                    continue;
                String sMBeanDescription = mbeanInfo.getDescription();
                String s = mbeanInfo.getClassName();
                System.out.println("====================");
                System.out.println(sMBeanFullName);
                for (int i = 0; i < mbeanAttrInfoArray.length; i++) {
                    MBeanAttributeInfo attrInfo = mbeanAttrInfoArray;
    if (attrInfo.isReadable()) {
    //If attribute datatype is supported, add it to the list for this mbean
    String sAttrDataType = attrInfo.getType();
    String sAttrName = attrInfo.getName();
    String sAttrDescription = attrInfo.getDescription();
    System.out.println("Name:" + sAttrName + "\nType:" + sAttrDataType + "\nDesc:" + sAttrDescription);
    } //end if
    public static void main(String[] args) throws Exception {
    String hostname = "192.168.1.24";
    String portString = "7001";
    String username = "weblogic";
    String password = "weblogic";
    MyConnection c = new MyConnection();
    initConnection(hostname, portString, username, password);
    c.printNameAndState();
    c.discovery();
    c.getComplidatedObject();
    c.printNameAndState();
    connector.close();
    public static ObjectName[] getServerRuntimes() throws Exception {
    ObjectName service = new ObjectName(
    "com.bea:Name=DomainRuntimeService,Type=weblogic.management.mbeanservers.domainruntime.DomainRuntimeServiceMBean");
    return (ObjectName[]) connection.getAttribute(service, "ServerRuntimes");
    public void printNameAndState() throws Exception {
    ObjectName[] serverRT = getServerRuntimes();
    System.out.println("got server runtimes");
    int length = (int) serverRT.length;
    for (int i = 0; i < length; i++) {
    MBeanInfo mb = connection.getMBeanInfo(serverRT[i]);
    System.out.println(mb.getClassName());
    String name = (String) connection.getAttribute(serverRT[i], "Name");
    String state = (String) connection.getAttribute(serverRT[i],
    "State");
    System.out.println("Server name: " + name + ". Server state: " + state);

Maybe you are looking for