CORBA TRANSACTION_ROLLEDBACK 9998 Maybe

Has anyone every seen this exception? I'm getting it when I try to execute a bean update. Probably just need to redeploy but I had the post it. The 'Maybe' at the end is classic. I'm definitely going to add 'maybe' to all our error messages. "A system error has occured, maybe."

Hi
Maybe you can look at the log-file error.log. It some
times tells you what is wrong if you look at
stacktraces before the TRANSACTION_ROLLEDBACK. This is
exception is thrown when ever another method (create,
ejbCreate, ejbPostCreate, etc) throw what ever. Maybe
it is a new field that does not exists in the database
(if you are using CMP)
Maybe.. ;-)Thanks for the reply. I thought I was rid of it but now it seems to occur on every home.create() call. I tried outputting SQL and there is none occurring. In any event, if this was an SQL error and this is the best error message the app server can give me, that's a problem.

Similar Messages

  • Javax.ejb.CreateException: CORBA TRANSACTION_ROLLEDBACK 9998

    while interacting with the server side bean , i am getting teh following exception.
    exception
    Aug 30, 2007 5:53:12 PM com.sun.enterprise.appclient.MainWithModuleSupport <init>
    WARNING: ACC003: Application threw an exception.
    javax.ejb.CreateException: CORBA TRANSACTION_ROLLEDBACK 9998 Maybe; nested exception is:
    org.omg.CORBA.TRANSACTION_ROLLEDBACK: vmcid: 0x2000 minor code: 1806 completed: Maybe
    at ossj.sa.ri.order.JVTActivationBean.createOrderByValue(JVTActivationBean.java:357)
    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:585)
    at com.sun.enterprise.security.application.EJBSecurityManager.runMethod(EJBSecurityManager.java:1050)
    at com.sun.enterprise.security.SecurityUtil.invoke(SecurityUtil.java:165)
    at com.sun.ejb.containers.BaseContainer.invokeTargetBeanMethod(BaseContainer.java:2766)
    at com.sun.ejb.containers.BaseContainer.intercept(BaseContainer.java:3847)
    at com.sun.ejb.containers.EJBObjectInvocationHandler.invoke(EJBObjectInvocationHandler.java:190)
    at com.sun.ejb.containers.EJBObjectInvocationHandler.invoke(EJBObjectInvocationHandler.java:107)
    at $Proxy23.createOrderByValue(Unknown Source)
    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:585)
    at com.sun.corba.ee.impl.presentation.rmi.ReflectiveTie._invoke(ReflectiveTie.java:121)
    at com.sun.corba.ee.impl.protocol.CorbaServerRequestDispatcherImpl.dispatchToServant(CorbaServerRequestDispatcherImpl.java:650)
    at com.sun.corba.ee.impl.protocol.CorbaServerRequestDispatcherImpl.dispatch(CorbaServerRequestDispatcherImpl.java:193)
    at com.sun.corba.ee.impl.protocol.CorbaMessageMediatorImpl.handleRequestRequest(CorbaMessageMediatorImpl.java:1705)
    at com.sun.corba.ee.impl.protocol.CorbaMessageMediatorImpl.handleRequest(CorbaMessageMediatorImpl.java:1565)
    at com.sun.corba.ee.impl.protocol.CorbaMessageMediatorImpl.handleInput(CorbaMessageMediatorImpl.java:947)
    at com.sun.corba.ee.impl.protocol.giopmsgheaders.RequestMessage_1_2.callback(RequestMessage_1_2.java:178)
    at com.sun.corba.ee.impl.protocol.CorbaMessageMediatorImpl.handleRequest(CorbaMessageMediatorImpl.java:717)
    at com.sun.corba.ee.impl.transport.SocketOrChannelConnectionImpl.dispatch(SocketOrChannelConnectionImpl.java:473)
    at com.sun.corba.ee.impl.transport.SocketOrChannelConnectionImpl.doWork(SocketOrChannelConnectionImpl.java:1270)
    at com.sun.corba.ee.impl.orbutil.threadpool.ThreadPoolImpl$WorkerThread.run(ThreadPoolImpl.java:479)
    Exception in thread "main" java.lang.RuntimeException: java.lang.reflect.InvocationTargetException
    at com.sun.enterprise.appclient.MainWithModuleSupport.<init>(MainWithModuleSupport.java:340)
    at com.sun.enterprise.appclient.Main.main(Main.java:180)
    Caused by: java.lang.reflect.InvocationTargetException
    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:585)
    at com.sun.enterprise.util.Utility.invokeApplicationMain(Utility.java:232)
    at com.sun.enterprise.appclient.MainWithModuleSupport.<init>(MainWithModuleSupport.java:329)
    ... 1 more
    Caused by: javax.ejb.CreateException: CORBA TRANSACTION_ROLLEDBACK 9998 Maybe; nested exception is:
    org.omg.CORBA.TRANSACTION_ROLLEDBACK: vmcid: 0x2000 minor code: 1806 completed: Maybe
    at ossj.sa.ri.order.JVTActivationBean.createOrderByValue(JVTActivationBean.java:357)
    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:585)
    at com.sun.enterprise.security.application.EJBSecurityManager.runMethod(EJBSecurityManager.java:1050)
    at com.sun.enterprise.security.SecurityUtil.invoke(SecurityUtil.java:165)
    at com.sun.ejb.containers.BaseContainer.invokeTargetBeanMethod(BaseContainer.java:2766)
    at com.sun.ejb.containers.BaseContainer.intercept(BaseContainer.java:3847)
    at com.sun.ejb.containers.EJBObjectInvocationHandler.invoke(EJBObjectInvocationHandler.java:190)
    at com.sun.ejb.containers.EJBObjectInvocationHandler.invoke(EJBObjectInvocationHandler.java:107)
    at $Proxy23.createOrderByValue(Unknown Source)
    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:585)
    at com.sun.corba.ee.impl.presentation.rmi.ReflectiveTie._invoke(ReflectiveTie.java:121)
    at com.sun.corba.ee.impl.protocol.CorbaServerRequestDispatcherImpl.dispatchToServant(CorbaServerRequestDispatcherImpl.java:650)
    at com.sun.corba.ee.impl.protocol.CorbaServerRequestDispatcherImpl.dispatch(CorbaServerRequestDispatcherImpl.java:193)
    at com.sun.corba.ee.impl.protocol.CorbaMessageMediatorImpl.handleRequestRequest(CorbaMessageMediatorImpl.java:1705)
    at com.sun.corba.ee.impl.protocol.CorbaMessageMediatorImpl.handleRequest(CorbaMessageMediatorImpl.java:1565)
    at com.sun.corba.ee.impl.protocol.CorbaMessageMediatorImpl.handleInput(CorbaMessageMediatorImpl.java:947)
    at com.sun.corba.ee.impl.protocol.giopmsgheaders.RequestMessage_1_2.callback(RequestMessage_1_2.java:178)
    at com.sun.corba.ee.impl.protocol.CorbaMessageMediatorImpl.handleRequest(CorbaMessageMediatorImpl.java:717)
    at com.sun.corba.ee.impl.transport.SocketOrChannelConnectionImpl.dispatch(SocketOrChannelConnectionImpl.java:473)
    at com.sun.corba.ee.impl.transport.SocketOrChannelConnectionImpl.doWork(SocketOrChannelConnectionImpl.java:1270)
    at com.sun.corba.ee.impl.orbutil.threadpool.ThreadPoolImpl$WorkerThread.run(ThreadPoolImpl.java:479)
    I could not undersatnd waht can be the roblem.
    Please do help me

    check your server log, it may contain some information

  • Must redeploy app or get java.rmi.AccessException: CORBA NO_PERMISSION 9998

    Hello. I'm hoping someone can give me a clue to the source of this problem.
    I have a very simple test application which consists of one EJB which is just a stateless session bean that has a method which return the String "Hello". This method can only be run by a user in the "test" role.
    I have a simple commandline client packaged in the application. I use deploytool to extract the Client.jar and I can run it with appclient - client myClient.jar. This little class connects to the bean in the server (via jndi lookup as per all tutorial example) and calls the sayHello() method. A login dialog appears in order to authenticate the user as it should and everything works perfectly ... BUT ...
    If I stop the server and start it again and try to run the client exactly the same way (appclient - client myClient.jar), I get the error message below. The application is running and I confirm that its there using deploytool and asadmin to list components, etc. The only way I can get it work again is by redeploying the application.
    I've looked around and found nothing about this regarding Sun Java System Application Server Platform Edition 8 2004Q4 Beta (which is what I'm using). I found some vague references to a similar sounding problem from people using Application Server 7, but the work around in those posts references switches and settings in deploytool that dont seem to be there in my version.
    Can anyone suggest a fix? I'd like the application to work upon starting up the server each morning for example without having to redeploy it. I'm glad to provide my test application archives and sources to anyone who would find them useful for solving this problem.
    Thanks!
    Error:
    java.rmi.AccessException: CORBA NO_PERMISSION 9998 Maybe; nested exception is:
    org.omg.CORBA.NO_PERMISSION: ----------BEGIN server-side stack trace----------
    org.omg.CORBA.NO_PERMISSION: vmcid: 0x2000 minor code: 1806 completed: Maybe
    at com.sun.enterprise.iiop.POAProtocolMgr.mapException(POAProtocolMgr.java:179)
    at com.sun.ejb.containers.BaseContainer.authorizeRemoteMethod(BaseContainer.java:908)
    at com.sun.ejb.containers.StatelessSessionContainer.createEJBObjectImpl(StatelessSessionContainer.java:274)
    at com.sun.ejb.containers.EJBHomeImpl.createEJBObjectImpl(EJBHomeImpl.java:89)
    at com.sun.ejb.containers.EJBHomeInvocationHandler.invoke(EJBHomeInvocationHandler.java:140)
    at $Proxy15.create(Unknown Source)
    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 com.sun.corba.ee.impl.presentation.rmi.ReflectiveTie._invoke(ReflectiveTie.java:123)
    at com.sun.corba.ee.impl.protocol.CorbaServerRequestDispatcherImpl.dispatchToServant(CorbaServerRequestDispatcherImpl.java:648)
    at com.sun.corba.ee.impl.protocol.CorbaServerRequestDispatcherImpl.dispatch(CorbaServerRequestDispatcherImpl.java:192)
    at com.sun.corba.ee.impl.protocol.CorbaMessageMediatorImpl.handleRequestRequest(CorbaMessageMediatorImpl.java:1683)
    at com.sun.corba.ee.impl.protocol.CorbaMessageMediatorImpl.handleRequest(CorbaMessageMediatorImpl.java:1543)
    at com.sun.corba.ee.impl.protocol.CorbaMessageMediatorImpl.handleInput(CorbaMessageMediatorImpl.java:925)
    at com.sun.corba.ee.impl.protocol.giopmsgheaders.RequestMessage_1_2.callback(RequestMessage_1_2.java:181)
    at com.sun.corba.ee.impl.protocol.CorbaMessageMediatorImpl.handleRequest(CorbaMessageMediatorImpl.java:697)
    at com.sun.corba.ee.impl.transport.SocketOrChannelConnectionImpl.dispatch(SocketOrChannelConnectionImpl.java:454)
    at com.sun.corba.ee.impl.transport.SocketOrChannelConnectionImpl.doWork(SocketOrChannelConnectionImpl.java:1188)
    at com.sun.corba.ee.impl.orbutil.threadpool.ThreadPoolImpl$WorkerThread.run(ThreadPoolImpl.java:398)
    Caused by: java.rmi.AccessException: Client is not authorized for this invocation.
    at com.sun.ejb.containers.BaseContainer.authorizeRemoteMethod(BaseContainer.java:906)
    ... 19 more
    ----------END server-side stack trace---------- vmcid: 0x2000 minor code: 1806 completed: Maybe
    at com.sun.corba.ee.impl.javax.rmi.CORBA.Util.mapSystemException(Util.java:195)
    at javax.rmi.CORBA.Util.mapSystemException(Util.java:65)
    at com.sun.corba.ee.impl.presentation.rmi.StubInvocationHandlerImpl.invoke(StubInvocationHandlerImpl.java:142)
    at com.sun.corba.ee.impl.presentation.rmi.bcel.BCELStubBase.invoke(Unknown Source)
    at com.dcit.bmj.bmo.interfaces._HelloWorldHome_DynamicStub.create(_HelloWorldHome_DynamicStub.java)
    at com.dcit.bmj.client.WasUpClient.main(WasUpClient.java:35)
    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 com.sun.enterprise.util.Utility.invokeApplicationMain(Utility.java:237)
    at com.sun.enterprise.appclient.Main.<init>(Main.java:423)
    at com.sun.enterprise.appclient.Main.main(Main.java:96)
    Caused by: org.omg.CORBA.NO_PERMISSION: ----------BEGIN server-side stack trace----------
    org.omg.CORBA.NO_PERMISSION: vmcid: 0x2000 minor code: 1806 completed: Maybe
    at com.sun.enterprise.iiop.POAProtocolMgr.mapException(POAProtocolMgr.java:179)
    at com.sun.ejb.containers.BaseContainer.authorizeRemoteMethod(BaseContainer.java:908)
    at com.sun.ejb.containers.StatelessSessionContainer.createEJBObjectImpl(StatelessSessionContainer.java:274)
    at com.sun.ejb.containers.EJBHomeImpl.createEJBObjectImpl(EJBHomeImpl.java:89)
    at com.sun.ejb.containers.EJBHomeInvocationHandler.invoke(EJBHomeInvocationHandler.java:140)
    at $Proxy15.create(Unknown Source)
    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 com.sun.corba.ee.impl.presentation.rmi.ReflectiveTie._invoke(ReflectiveTie.java:123)
    at com.sun.corba.ee.impl.protocol.CorbaServerRequestDispatcherImpl.dispatchToServant(CorbaServerRequestDispatcherImpl.java:648)
    at com.sun.corba.ee.impl.protocol.CorbaServerRequestDispatcherImpl.dispatch(CorbaServerRequestDispatcherImpl.java:192)
    at com.sun.corba.ee.impl.protocol.CorbaMessageMediatorImpl.handleRequestRequest(CorbaMessageMediatorImpl.java:1683)
    at com.sun.corba.ee.impl.protocol.CorbaMessageMediatorImpl.handleRequest(CorbaMessageMediatorImpl.java:1543)
    at com.sun.corba.ee.impl.protocol.CorbaMessageMediatorImpl.handleInput(CorbaMessageMediatorImpl.java:925)
    at com.sun.corba.ee.impl.protocol.giopmsgheaders.RequestMessage_1_2.callback(RequestMessage_1_2.java:181)
    at com.sun.corba.ee.impl.protocol.CorbaMessageMediatorImpl.handleRequest(CorbaMessageMediatorImpl.java:697)
    at com.sun.corba.ee.impl.transport.SocketOrChannelConnectionImpl.dispatch(SocketOrChannelConnectionImpl.java:454)
    at com.sun.corba.ee.impl.transport.SocketOrChannelConnectionImpl.doWork(SocketOrChannelConnectionImpl.java:1188)
    at com.sun.corba.ee.impl.orbutil.threadpool.ThreadPoolImpl$WorkerThread.run(ThreadPoolImpl.java:398)
    Caused by: java.rmi.AccessException: Client is not authorized for this invocation.
    at com.sun.ejb.containers.BaseContainer.authorizeRemoteMethod(BaseContainer.java:906)
    ... 19 more
    ----------END server-side stack trace---------- vmcid: 0x2000 minor code: 1806 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 com.sun.corba.ee.impl.protocol.giopmsgheaders.MessageBase.getSystemException(MessageBase.java:902)
    at com.sun.corba.ee.impl.protocol.giopmsgheaders.ReplyMessage_1_2.getSystemException(ReplyMessage_1_2.java:99)
    at com.sun.corba.ee.impl.protocol.CorbaMessageMediatorImpl.getSystemExceptionReply(CorbaMessageMediatorImpl.java:575)
    at com.sun.corba.ee.impl.protocol.CorbaClientRequestDispatcherImpl.processResponse(CorbaClientRequestDispatcherImpl.java:430)
    at com.sun.corba.ee.impl.protocol.CorbaClientRequestDispatcherImpl.marshalingComplete(CorbaClientRequestDispatcherImpl.java:326)
    at com.sun.corba.ee.impl.protocol.CorbaClientDelegateImpl.invoke(CorbaClientDelegateImpl.java:132)
    at com.sun.corba.ee.impl.presentation.rmi.StubInvocationHandlerImpl.invoke(StubInvocationHandlerImpl.java:129)
    ... 10 more

    Hi Raja.
    So Sorry for the delay. Anyway, I've come back to try to do this now and just cant make the problem happen! I'm tearing my hair out to figure out what has changed. In the meantime, I'm going to just move past this. If it shows up again, I'll be sure to post all related files back in this forum.
    Thanks!

  • Java.rmi.AccessException: CORBA NO_PERMISSION 9998

    Hi, Friends,
    I am using SUN RI and getting:
    java.rmi.AccessException: CORBA NO_PERMISSION 9998
    The bean was successfully deployed and the look up for the reference
    was successful too and returned an instance:
    Object objref = ctx.lookup("ejb/TestConnection");
    home =(TestConnectionHome)PortableRemoteObject.narrow(objref,
    TestConnectionHome.class);
    But when I try to create a bean:
    bean = home.create();
    I am getting an exception:
    Can't create new bean for TestConnection .
    java.rmi.AccessException: CORBA NO_PERMISSION 9998 Maybe; nested
    exception is:
    org.omg.CORBA.NO_PERMISSION: minor code: 9998 completed:
    Maybe
    java.rmi.AccessException: CORBA NO_PERMISSION 9998 Maybe; nested
    exception is:
    org.omg.CORBA.NO_PERMISSION: minor code: 9998 completed:
    Maybe
    org.omg.CORBA.NO_PERMISSION: minor code: 9998 completed: Maybe
    at java.lang.Class.newInstance0(Native Method)
    at java.lang.Class.newInstance(Class.java:237)
    at com.sun.corba.ee.internal.iiop.messages.ReplyMessage_1_2.getSystemExc
    eption(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(GenericPOACli
    entSC.java:136)
    at org.omg.CORBA.portable.ObjectImpl._invoke(ObjectImpl.java:297)
    at com.sap.mw.jco.jra.test._TestConnectionHome_Stub.create(Unknown
    Sourc
    e)
    Does somebody know what is the cause of it?
    (All the bean methods like create() are public, so it should not be
    the problem.)
    I very appreciate any tips,
    Regards,
    Eugen
    PS: I already set Security on "Support Client Choice".

    I got it finally.
    In the Security, I needed to add to the Role Name "Guest" the User Name "guest"

  • CORBA NO_PERMISSION 0 Maybe...

    hello community,
    while trying to connect to the successfully deployed application as a client, the following exception is thrown:
    CORBA NO_PERMISSION 0 Maybe; nested exception is: org.omg.CORBA.NO_PERMISSION:
    vmcid: 0x0 minor code: 0 completed: Maybe
    Keine Verbindung zum MyApp® DataStore:
    currently i do not know how to handle this and/or what do perform.
    can anybody help me once more?
    thanks,
    maik

    hello,
    i have read another post handling this topic. in this post there is ment an error with the wlclient.jar. and they commend to use the weblogic.jar instead of the wlclient.jar or wljmsclient.jar.
    but there are some negative aspects therefor. the first is the size of the weblogic.jar (about 50mb).
    the next is as i tested it with the weblogic.jar there comes a error message dealing with authentication.
    something like 'annonymous user not defined' or sth else.
    regards,
    maik
    #edit 1:
    wondering i guess this is the wrong forum, because the deployment task works perfect...
    Edited by sqlworktask at 11/09/2007 1:39 AM

  • Why the stub throws org.omg.CORBA.TRANSACTION_ROLLEDBACK?

    Hi,
    I have a stateless session bean with a business method createAccount(). In the createAccount() implementation I call create() method on home interface of Account entity bean. I am using IBM Websphere and VisualAge3.5 environment. I have tested the Entity been in Isolation and account is created without any problems but when I try to achieve this via session bean, I get the following error:
    org.omg.CORBA.TRANSACTION_ROLLEDBACK
    Can anyone tell me how to correct this problem?
    Thanks,
    Sanjiv

    it seems you use JTS and database process has problem

  • Help for org.omg.CORBA.TRANSACTION_ROLLEDBACK Exception

    when code like :
    try{...}catch(x){throw new RuntimeException("XX");}Then we can saw the Exception is RuntimeException XX
    when modify the code like
    try{...}catch(x){return;}then Exception is changed as
    org.omg.CORBA.TRANSACTION_ROLLEDBACK: javax.transaction.TransactionRolledbackException: ; nested exception is:
         com.ibm.websphere.csi.CSITransactionRolledbackException: Transaction marked rollbackonly vmcid: 0x0 minor code: 0 completed: No
         >>     
    The code is running in another Server and the exception will be back to the client machine, using EJB to communicate

    it seems you use JTS and database process has problem

  • Javax.transaction.TransactionRolledbackException: CORBA TRANSACTION_ROLLEDB

    Hi!!!
    I have a problem while I'm trying to create CMP Entity Beans. I got these CMP Entity Beans using Netbeans IDE 5.0, getting the beans from an SQL Server 2000 database.
    I got this error:
    HTTP Status 500 -
    type Exception report
    message
    description The server encountered an internal error () that prevented it from fulfilling this request.
    exception
    javax.transaction.TransactionRolledbackException: CORBA TRANSACTION_ROLLEDBACK 9998 Maybe; nested exception is:
         org.omg.CORBA.TRANSACTION_ROLLEDBACK: vmcid: 0x2000 minor code: 1806 completed: Maybe
         com.sun.corba.ee.impl.javax.rmi.CORBA.Util.mapSystemException(Util.java:207)
         com.sun.corba.ee.impl.javax.rmi.CORBA.Util.wrapException(Util.java:651)
         javax.rmi.CORBA.Util.wrapException(Util.java:279)
         com.sun.corba.ee.impl.presentation.rmi.StubInvocationHandlerImpl.invoke(StubInvocationHandlerImpl.java:177)
         com.sun.corba.ee.impl.presentation.rmi.bcel.BCELStubBase.invoke(Unknown Source)
         session._SesionRemote_DynamicStub.getClienteInfo(_SesionRemote_DynamicStub.java)
         web.ClientDetails.processRequest(ClientDetails.java:43)
         web.ClientDetails.doGet(ClientDetails.java:68)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:747)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:860)
         sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
         sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         java.lang.reflect.Method.invoke(Method.java:585)
         org.apache.catalina.security.SecurityUtil$1.run(SecurityUtil.java:249)
         java.security.AccessController.doPrivileged(Native Method)
         javax.security.auth.Subject.doAsPrivileged(Subject.java:517)
         org.apache.catalina.security.SecurityUtil.execute(SecurityUtil.java:282)
         org.apache.catalina.security.SecurityUtil.doAsPrivilege(SecurityUtil.java:165)
    note The full stack trace of the root cause is available in the Sun-Java-System/Application-Server logs.
    And my code is:
    package session;
    import javax.ejb.*;
    * This is the bean class for the SesionBean enterprise bean.
    * Created 26-sep-2006 17:58:35
    * @author DSalvat
    public class SesionBean implements SessionBean, SesionRemoteBusiness {
        private SessionContext context;
        private data.ClientepruebaLocalHome cliente;
        // <editor-fold defaultstate="collapsed" desc="EJB infrastructure methods. Click the + sign on the left to edit the code.">
        // TODO Add code to acquire and use other enterprise resources (DataSource, JMS, enterprise bean, Web services)
        // TODO Add business methods or web service operations
         * @see javax.ejb.SessionBean#setSessionContext(javax.ejb.SessionContext)
        public void setSessionContext(SessionContext aContext) {
            context = aContext;
         * @see javax.ejb.SessionBean#ejbActivate()
        public void ejbActivate() {
         * @see javax.ejb.SessionBean#ejbPassivate()
        public void ejbPassivate() {
         * @see javax.ejb.SessionBean#ejbRemove()
        public void ejbRemove() {
        // </editor-fold>
         * See section 7.10.3 of the EJB 2.0 specification
         * See section 7.11.3 of the EJB 2.1 specification
        public void ejbCreate() {
            // TODO implement ejbCreate if necessary, acquire resources
            // This method has access to the JNDI context so resource aquisition
            // spanning all methods can be performed here such as home interfaces
            // and data sources.
            cliente = lookupClientepruebaBean();
        // Add business logic below. (Right-click in editor and choose
        // "EJB Methods > Add Business Method" or "Web Service > Add Operation")
        private data.ClientepruebaLocalHome lookupClientepruebaBean() {
            try {
                javax.naming.Context c = new javax.naming.InitialContext();
                data.ClientepruebaLocalHome rv = (data.ClientepruebaLocalHome) c.lookup("java:comp/env/ejb/ClientepruebaBean");
                return rv;
            catch(javax.naming.NamingException ne) {
                java.util.logging.Logger.getLogger(getClass().getName()).log(java.util.logging.Level.SEVERE,"exception caught" ,ne);
                throw new RuntimeException(ne);
        public String getClienteInfo(String NIF) throws javax.ejb.FinderException
            data.ClientepruebaLocal cli = cliente.findByPrimaryKey(NIF);
            return cli.getNombre();
        I've seen a lot of posts, but I can't find my error.
    Can you help me?
    Thanks a lot.

    Hello Kranti ...
    We have the same problem, but we haven't found a real solution. I think you need to install some fix pack.
    What we do is restart the Data Base Instance and the WAS.
    Seems that the table is bloked for any reason. Our case is because there are too much transactions with the table.
    Also we reorganize the table indexes to improve the performance... it helps a lot...

  • Problem with cascade delete and remove bean

    I am working with two entity beans that map to two tables that have a foreign key relationship. Table B has a foreign key to A and in the database that foreign key is set for cascaded updates and cascaded deletes.
    The problem occurs when the the sytem first tries to remove bean 1 (mapped to table A) and then remove bean 2 (mapped to B) where bean 2 is associated with bean 1 with a foreign key relationship. The first remove works but then when it tries to remove bean 2 it throws a very ugly "CORBA TRANSACTION_ROLLEDBACK 9998" Maybe exception. My guess is that the reason is because bean 2's reocrd in the database was deleted when bean 1 was removed but the 'bean object' was not removed from the container.
    When I go into our Application Server and look at how it see's the tables, it show the wrong relationship. It shows a restrict delete and a restrict update realationship.
    My question is, am I wrong to think that this is a application server problem or a configuration problem? It seems to me that attempting to remove a non-existant record should not cause an error. It won't cause any SQL exceptions. Is this a flawed viewpoint? As a work around I made sure that the dependent records are deleted first but it kind of defeats the point of cascaded deletes.
    We have a limited number of support calls, should I use one or am I at fault here?

    If the database removes the record from the second
    table, why is the system trying to remove it once
    again? You should try to remove an entity from a
    single place, should it be the database or the
    application. Don't try to remove it twice.
    Regards,
    DimitarI could do this but it is a huge pain in my ass. The problem is that you might want to remove the dependent bean without removing it's parent. The object structure is a little questionable, I'll admit that. It is, as they say, the eleventh hour and I can't really change that now.
    The way this work is that the server gets a list of objects marked either as new, modified, or deleted. It then relates those changes back to the database.
    In this case we have two lists(which makes me realize where the class structure sucks.) In order to do what you suggest I would have to get all the deleted parent objects and then search all the deleted child objects for ones that have the parent's key in them.
    It would be prefferable to fix the class structure but again this is not an option.
    Anyone want to answer the question I asked?

  • Having problems connecting getting results from MySQL

    Hi,
    I'm trying to learn some aspects of J2EE but i'm a bit
    stuck with EJB and i'm not sure what is going wrong so that's why i'm here :)
    What I want to do is very simple.
    I have a working MySQL database "musiccatalog" and I want to query it using any sort of client so to do that
    I create an Entreprise Application using netBeans 4.1
    Then I create a new CMP Bean called Album.
    I need something simple to test on so I have only one CMP Bean.
    My Album CMP Beans contains following CMP fields albumId, artistId, name, releaseDate, insertionTime.
    I also have a bunch of methods for LocalInterface: getters, setters, finders, and create() method.
    I don't need to add anything or write in the code cause it is generated by the IDE (netBeans 4.1)
    So my Album CMP Bean is written and I deploy project to see if all works fine. It works. My EJB-Module and Web-Module are deployed on the server (Sun Application Server 8).
    Next I create a new SessionBean called AlbumFacade that will access my CMP bean.
    I will have to add a lookupAlbumBean() method that will return a LocalHome interface, I also add a private variable of Type AlbumLocalHome. This variable is intialized in ejbCreate() method using the lookAlbumBean() method.
    Now it's time to add a business method to my SessionBean.
    I create a new buisness method public String getAlbumInfo()
    public String getAlbumInfo(int idAlbum) throws javax.ejb.FinderException {
    ejb.AlbumLocal albumL = albumLH.findByPrimaryKey(new Integer(idAlbum));
    return albumL.getAlbumName();
    so in this method i will get a reference to albumL interface and i will ask it to return the albumName of an album.
    So at this moment i'm done with Beans :)
    I redeply the app and it is redeplyed successfully.
    Now to test my beans i write a client. It'll be a servlet.
    What I need to do next is to create a ServiceLocator in my WebModule. This ServiceLocator will be used in the Servlet to lookup the remote interface of the AlbumFacade SessionBean.
    MyServlet will output a form with a textfield and a submit button where the user (me) types a number.
    If the servlet receives albumId parameter it'll look up the remote AlbumFacadeRemote interface and then i'll call the buisness logic of the SessionBean ( getAlbumInfo())
    and at this moment I should reach what I wanted but....
    The Application deploys and after I enter a number I got a vert nice StackTrace like this
    type Exception report
    message
    description The server encountered an internal error () that prevented it from fulfilling this request.
    exception
    javax.transaction.TransactionRolledbackException: CORBA TRANSACTION_ROLLEDBACK 9998 Maybe; nested exception is:
         org.omg.CORBA.TRANSACTION_ROLLEDBACK: vmcid: 0x2000 minor code: 1806 completed: Maybe
         com.sun.corba.ee.impl.javax.rmi.CORBA.Util.mapSystemException(Util.java:207)
         com.sun.corba.ee.impl.javax.rmi.CORBA.Util.wrapException(Util.java:651)
         javax.rmi.CORBA.Util.wrapException(Util.java:279)
         com.sun.corba.ee.impl.presentation.rmi.StubInvocationHandlerImpl.invoke(StubInvocationHandlerImpl.java:177)
         com.sun.corba.ee.impl.presentation.rmi.bcel.BCELStubBase.invoke(Unknown Source)
         ejb._AlbumFacadeRemote_DynamicStub.getAlbumInfo(_AlbumFacadeRemote_DynamicStub.java)
         web.AlbumServlet.processRequest(AlbumServlet.java:55)
         web.AlbumServlet.doPost(AlbumServlet.java:81)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:767)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:860)
         sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
         sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         java.lang.reflect.Method.invoke(Method.java:585)
         org.apache.catalina.security.SecurityUtil$1.run(SecurityUtil.java:249)
         java.security.AccessController.doPrivileged(Native Method)
         javax.security.auth.Subject.doAsPrivileged(Subject.java:517)
         org.apache.catalina.security.SecurityUtil.execute(SecurityUtil.java:282)
         org.apache.catalina.security.SecurityUtil.doAsPrivilege(SecurityUtil.java:165)
         java.security.AccessController.doPrivileged(Native Method)
         org.netbeans.modules.web.monitor.server.MonitorFilter.doFilter(MonitorFilter.java:362)
    note The full stack trace of the root cause is available in the Sun-Java-System/Application-Server logs.
    and it happens when the application queries the database.
    And unfortunately I don't see what may be wrong. If I do the same with a pointbasde sample database everything works fine.
    I tried to connect to MySQL via JConnector and also via jdbc:odbc bridge but i got still the same error.
    It drives me really mad 'coz I don't know what I do wrong.
    I can connect to database. But then something goes wrong.
    Can somebody give me an idea of what maybe wrong?
    Thanks :)

    Hail!!
    In fact, the problem IS in your PHP script.
    $senderEmail = $_POST['eMail'];
    $senderEmail = stripslashes($eMail);
    The last one should be:
    $senderEmail = stripslashes($senderEmail);
    PS:
    Next time, put your code inside formating tags...
    It will be easy for people to read your question and will improve the chances that someone answer it.

  • Help with exception calling cmp entity bean from session bean

    Hi,
    I know someone else posted a very similar problem recently but I think the root of my problem may be different.
    This is the exception that I receive:
    javax.transaction.TransactionRolledbackException: CORBA TRANSACTION_ROLLEDBACK 9998 Maybe; nested exception is:
    org.omg.CORBA.TRANSACTION_ROLLEDBACK: vmcid: 0x2000 minor code: 1806 completed: Maybe
    at com.sun.corba.ee.internal.iiop.ShutdownUtilDelegate.mapSystemException(ShutdownUtilDelegate.java:114)
    at javax.rmi.CORBA.Util.mapSystemException(Util.java:65)
    at itsthes.security._SecurityManager_Stub.findUserRoles(Unknown Source)
    at itsthes.security._SecurityManager_Stub.findUserRoles(Unknown Source)
    at itsthes.security.servlets.SecurityUserListView.processRequest(SecurityUserListView.java:80)
    at itsthes.security.servlets.SecurityUserListView.doGet(SecurityUserListView.java:94)
    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.TRANSACTION_ROLLEDBACK: vmcid: 0x2000 minor code: 1806 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:306)
    at java.lang.Class.newInstance(Class.java:259)
    at com.sun.corba.ee.internal.iiop.messages.ReplyMessage_1_2.getSystemException(ReplyMessage_1_2.java:94)
    at com.sun.corba.ee.internal.iiop.LocalClientResponseImpl.getSystemException(LocalClientResponseImpl.java:120)
    at com.sun.corba.ee.internal.POA.GenericPOAClientSC.invoke(GenericPOAClientSC.java:133)
    at org.omg.CORBA.portable.ObjectImpl._invoke(ObjectImpl.java:457)
    at itsthes.security._SecurityManager_Stub.findUserRoles(Unknown Source)
    ... 17 more
    This is my primary key implementation:
    public final class SecurityUserKey implements java.io.Serializable {
    public java.lang.Integer userId;
    public java.lang.Integer roleId;
    public java.lang.String emailAddress;
         * Creates an empty key for Entity Bean: SecurityUser
         public SecurityUserKey() {
    * @see java.lang.Object#equals(java.lang.Object)
    public boolean equals(java.lang.Object otherOb) {
    if (this == otherOb) {
    return true;
    if (!(otherOb instanceof itsthes.security.entitybeans.SecurityUserKey)) {
    return false;
    itsthes.security.entitybeans.SecurityUserKey other = (itsthes.security.entitybeans.SecurityUserKey) otherOb;
    return (
    (userId==null?other.userId==null:userId.equals(other.userId))
    (roleId==null?other.roleId==null:roleId.equals(other.roleId))
    (emailAddress==null?other.emailAddress==null:emailAddress.equals(other.emailAddress))
    * @see java.lang.Object#hashCode()
    public int hashCode() {
    return (
    (userId==null?0:userId.hashCode())
    ^
    (roleId==null?0:roleId.hashCode())
    ^
    (emailAddress==null?0:emailAddress.hashCode())
    My entity method invocation is this:
    public Collection findUserRoles() {
    Vector userCollection=new Vector();
    try {
    Context jndiContext = new InitialContext();
    LocalSecurityUserHome home = (LocalSecurityUserHome) jndiContext.lookup(this.securityUserBean);
    Iterator i = home.findAll().iterator();
    while ( i.hasNext() ) {
    LocalSecurityUser securityUser = (LocalSecurityUser)i.next();
    SecurityUser sessionBean=mapLocalSecurityUser(securityUser);
    userCollection.add(sessionBean);
    } catch (javax.naming.NamingException e) {
    System.err.println(e);
    } catch (javax.ejb.FinderException e) {
    System.err.println(e);
    return userCollection;
    If anyone could point me in the right direction that would be great.
    thanks,
    William

    Hi,
    The Transaction Rollback exception may be due to the SystemException thrown in your findUserRoles() code which force the container to rollback the transaction. catch the generic exception in your findUserRoles() code and veriy what went wrong.
    i hope this helps.
    -ram

  • URGENT: RAI - AS7.0-beta: Oracle connectivity [796195]

    i had some new requirements and could not find any docs for it.
    How do i create a Connection Pool for a Oracle 8i
    Using the Following Parameters.
    Name= RAiRepositoryPool
    Description=RAiRepositoryPool
    Datasource Classname=oracle.jdbc.driver.OracleDriver
    URL=jdbc:oracle:thin:user/user@ECLIPSE:1521:ECLIPSE
    The following is the snapshot of the Configurations Of
    Connection Pool in Weblogic6.1sp3
    <JDBCConnectionPool DriverName="oracle.jdbc.driver.OracleDriver"
    Name="RAiRepositoryPool" Properties="dll=ocijdbc8;protocol=thin"
    Targets="myserver"
    URL="jdbc:oracle:thin:user/user@ECLIPSE:1521:ECLIPSE"/>
    DataSource in Weblogic6.1sp3
    <JDBCDataSource JNDIName="jdbc/Repository" Name="jdbc/Repository"
    PoolName="RAiRepositoryPool" Targets="myserver"/>
    Please provide some documentation as the JDBC Resource section at
    http://docs.sun.com/source/816-7156-10/agj2eres.html#33267
    says
    (This module is not available for Beta refresh)

    Any pointer on below's cust outcome after trying the following suggestion based on the initial proposal:
    Here's a snippet of a server.xml file that includes a connection pool definition for an Oracle 8.1.x
    client containing your requirement specifics which interacts with an Oracle 8.1.6 server:
    <resources>
    <jdbc-resource enabled="true" pool-name="OraclePool" jndi-name="jdbc/jdbc-simple"/>
    <jdbc-connection-pool steady-pool-size="8" max-pool-size="32" max-wait-time-in-millis="60000"
    pool-resize-quantity="2" idle-timeout-in-seconds="300"
    is-isolation-level-guaranteed="false" is-connection-validation-required="false"
    connection-validation-method="auto-commit" fail-all-connections="false"
    datasource-classname="oracle.jdbc.pool.OracleDataSource" name="RAIRepositoryPool">
    <property value="jdbc:oracle:thin:user/user@ECLIPSE:1521:ECLIPSE" name="URL"/>
    <property value="user" name="user"/>
    <property value="user" name="password"/>
    </jdbc-connection-pool>
    </resources>
    You will then copy the driver JAR file to the <instance_root>/lib/ directory and restart the
    server instance to add the driver to the server instance's classpath.
    Regards,
    Gaetan
    @@@@@@@@@@@@@@@ cust's results @@@@@@@@@@@@@@@@@@@@@@@@@@@
    Here is the stack Trace of the error i get after i use the Jdbc Datasource .
    INFO: CORE3282: stdout: DEBUG [05 Sep 2002 13:03:52] [RAI.RAIID.REPOSITORY]
    [Thread-7] (?:?) - In constructor
    INFO: CORE3282: stdout: DEBUG [05 Sep 2002 13:03:52] [RAI.RAIID.REPOSITORY]
    [Thread-7] (?:?) - in ejbCreate
    INFO: CORE3282: stdout: DEBUG [05 Sep 2002 13:03:52] [RAI.RAIID.REPOSITORY]
    [Thread-7] (?:?) - In constructor
    INFO: CORE3282: stdout: DEBUG [05 Sep 2002 13:03:52] [RAI.RAIID.REPOSITORY]
    [Thread-7] (?:?) - In constructor
    INFO: CORE3282: stdout: DEBUG [05 Sep 2002 13:03:52] [RAI.RAIID.REPOSITORY]
    [Thread-7] (?:?) - In JDBCHandler in initialize
    INFO: CORE3282: stdout: DEBUG [05 Sep 2002 13:03:52] [RAI.RAIID.REPOSITORY]
    [Thread-7] (?:?) - in setDataSourceJndiName jdbc/Repository
    INFO: CORE3282: stdout: DEBUG [05 Sep 2002 13:03:52] [RAI.RAIID.REPOSITORY]
    [Thread-7] (?:?) - in setUserID raiuser
    INFO: CORE3282: stdout: DEBUG [05 Sep 2002 13:03:52] [RAI.RAIID.REPOSITORY]
    [Thread-7] (?:?) - in setPassword raiuser
    INFO: CORE3282: stdout: DEBUG [05 Sep 2002 13:03:52] [RAI.RAIID.REPOSITORY]
    [Thread-7] (?:?) - in setXmlURL /RAI_SUNONE/xml
    INFO: CORE3282: stdout: DEBUG [05 Sep 2002 13:03:52] [RAI.RAIID.REPOSITORY]
    [Thread-7] (?:?) - in setXsdURL /RAI_SUNONE/schema
    WARNING: CORE3283: stderr: java.sql.SQLException: Operation not allowed
    under global transaction context
    INFO: CORE3282: stdout: DEBUG [05 Sep 2002 13:03:52] [RAI.RAIID.REPOSITORY]
    [Thread-7] (?:?) - leaving initialize
    INFO: CORE3282: stdout: DEBUG [05 Sep 2002 13:03:52] [RAI.RAIID.REPOSITORY]
    [Thread-7] (?:?) - In constructor
    INFO: CORE3282: stdout: DEBUG [05 Sep 2002 13:03:52] [RAI.RAIID.REPOSITORY]
    [Thread-7] (?:?) - In constructor
    WARNING: CORE3283: stderr: at
    com.sun.enterprise.resource.JdbcXAConnection$JdbcConnection.setAutoCommit(Un
    known Source)
    WARNING: CORE3283: stderr: at
    com.rai.raiid.repository.JDBCHandler.getConnection(Unknown Source)
    INFO: CORE3282: stdout: DEBUG [05 Sep 2002 13:03:52] [RAI.RAIID.REPOSITORY]
    [Thread-7] (?:?) - In JDBCHandler in initialize
    INFO: CORE3282: stdout: DEBUG [05 Sep 2002 13:03:52] [RAI.RAIID.REPOSITORY]
    [Thread-7] (?:?) - in setDataSourceJndiName jdbc/Repository
    WARNING: CORE3283: stderr: at
    com.rai.raiid.repository.JDBCHandler.getConnection(Unknown Source)
    WARNING: CORE3283: stderr: at
    com.rai.raiid.repository.JDBCBusinessRepositoryHandler.prepareSelectALLSQL(U
    nknown Source)
    INFO: CORE3282: stdout: DEBUG [05 Sep 2002 13:03:52] [RAI.RAIID.REPOSITORY]
    [Thread-7] (?:?) - in setUserID raiuser
    INFO: CORE3282: stdout: DEBUG [05 Sep 2002 13:03:52] [RAI.RAIID.REPOSITORY]
    [Thread-7] (?:?) - in setPassword raiuser
    WARNING: CORE3283: stderr: at
    com.rai.raiid.repository.JDBCBusinessRepositoryHandler.loadAll(Unknown
    Source)
    WARNING: CORE3283: stderr: at
    com.rai.raiid.repository.BusinessRepositoryManagerBean.getAllBusinessReposit
    ories(Unknown Source)
    INFO: CORE3282: stdout: DEBUG [05 Sep 2002 13:03:52] [RAI.RAIID.REPOSITORY]
    [Thread-7] (?:?) - in setXmlURL /RAI_SUNONE/xml
    INFO: CORE3282: stdout: DEBUG [05 Sep 2002 13:03:52] [RAI.RAIID.REPOSITORY]
    [Thread-7] (?:?) - in setXsdURL /RAI_SUNONE/schema
    WARNING: CORE3283: stderr: at
    com.rai.raiid.repository.BusinessRepositoryManagerBean_EJBObjectImpl.getAllB
    usinessRepositories(BusinessRepositoryManagerBean_EJBObjectImpl.java:437)
    WARNING: CORE3283: stderr: at
    com.rai.raiid.repository._BusinessRepositoryManager_Stub.getAllBusinessRepos
    itories(Unknown Source)
    INFO: CORE3282: stdout: DEBUG [05 Sep 2002 13:03:52] [RAI.RAIID.REPOSITORY]
    [Thread-7] (?:?) - leaving initialize
    INFO: CORE3282: stdout: DEBUG [05 Sep 2002 13:03:52] [RAI.RAIID.REPOSITORY]
    [Thread-7] (?:?) - Entering getAllBusinessRepositories
    WARNING: CORE3283: stderr: at
    com.rai.raiid.session.RAISessionManagerBean.getAllBusinessRepositories(Unkno
    wn Source)
    WARNING: CORE3283: stderr: at
    com.rai.raiid.session.RAISessionManagerBean_EJBObjectImpl.getAllBusinessRepo
    sitories(RAISessionManagerBean_EJBObjectImpl.java:1269)
    INFO: CORE3282: stdout: DEBUG [05 Sep 2002 13:03:52] [RAI.RAIID.REPOSITORY]
    [Thread-7] (?:?) - in loadAll
    INFO: CORE3282: stdout: DEBUG [05 Sep 2002 13:03:52] [RAI.RAIID.REPOSITORY]
    [Thread-7] (?:?) - LoadAll Start Time :: Thu Sep 05 13:03:52 PDT 2002
    WARNING: CORE3283: stderr: at
    com.rai.raiid.session._RAISessionManagerBean_EJBObjectImpl_Tie._invoke(Unkno
    wn Source)
    WARNING: CORE3283: stderr: at
    com.sun.corba.ee.internal.POA.GenericPOAServerSC.dispatchToServant(Unknown
    Source)
    INFO: CORE3282: stdout: DEBUG [05 Sep 2002 13:03:52] [RAI.RAIID.REPOSITORY]
    [Thread-7] (?:?) - in prepareSelectALLSQL
    INFO: CORE3282: stdout: DEBUG [05 Sep 2002 13:03:52] [RAI.RAIID.REPOSITORY]
    [Thread-7] (?:?) - in getConnection
    WARNING: CORE3283: stderr: at
    com.sun.corba.ee.internal.POA.GenericPOAServerSC.internalDispatch(Unknown
    Source)
    WARNING: CORE3283: stderr: at
    com.sun.corba.ee.internal.POA.GenericPOAServerSC.dispatch(Unknown Source)
    INFO: CORE3282: stdout: DEBUG [05 Sep 2002 13:03:52] [RAI.RAIID.REPOSITORY]
    [Thread-7] (?:?) - in getConnection(String,String,String)
    INFO: CORE3282: stdout: ERROR [05 Sep 2002 13:03:52] [RAI.RAIID.REPOSITORY]
    [Thread-7] (?:?) - Exception Message is : java.sql.SQLException: Operation
    not allowed under global transaction context
    WARNING: CORE3283: stderr: at
    com.sun.corba.ee.internal.iiop.ORB.process(Unknown Source)
    WARNING: CORE3283: stderr: at
    com.sun.corba.ee.internal.iiop.RequestProcessor.process(Unknown Source)
    INFO: CORE3282: stdout: ERROR [05 Sep 2002 13:03:52] [RAI.RAIID.SESSION]
    [Thread-7] (?:?) - Class RAISessionManagerBean:: Method::
    getAllBusinessRepositories Exception
    javax.transaction.TransactionRolledbackException: CORBA
    TRANSACTION_ROLLEDBACK 9998 Maybe; nested exception is:
    INFO: CORE3282: stdout: org.omg.CORBA.TRANSACTION_ROLLEDBACK:
    vmcid: 0x2000 minor code: 1806 completed: Maybe
    WARNING: CORE3283: stderr: at
    com.iplanet.ias.corba.ee.internal.iiop.ServicableWrapper.service(Unknown
    Source)
    WARNING: CORE3283: stderr: at
    com.iplanet.ias.util.threadpool.FastThreadPool$ThreadPoolThread.run(Unknown
    Source)
    WARNING: CORE3283: stderr: at java.lang.Thread.run(Thread.java:536)
    INFO: CORE3282: stdout: DEBUG [05 Sep 2002 13:03:54] [RAI.RAIID.GUI]
    [Thread-11] (?:?) - tree in brtree handler is null
    Why is java.sql.SQLException: Operation not allowed under global transaction
    context thrown
    - Rajinder
    @@@@@@@@@@@@@@@

  • Problem calling entity bean from session bean using sun one app server

    Hi,
    I am getting the following exception while calling entity bean(bmp) from stateless session(cmp)bean.
    SEVERE: IOP5012: Some runtime exception ocurred in IIOP: [javax.ejb.EJBException: nested exception is: java.lang.RuntimeException: Unable to create reference org.omg.CORBA.OBJ_ADAPTER: vmcid: SUN minor code: 1015 completed: No]
    SEVERE: IOP5013: Unable to create reference: [org.omg.CORBA.OBJ_ADAPTER: vmcid: SUN minor code: 1015 completed: No]
    SEVERE: EJB5029: Exception getting ejb context : [CustomerEJB]
    SEVERE:
    WARNING: CORE3283: stderr: javax.transaction.TransactionRolledbackException: CORBA TRANSACTION_ROLLEDBACK 9998 Maybe; nested exception is:
    WARNING: CORE3283: stderr: org.omg.CORBA.TRANSACTION_ROLLEDBACK: vmcid: 0x2000 minor code: 1806 completed: Maybe
    WARNING: CORE3283: stderr: at com.sun.corba.ee.internal.iiop.ShutdownUtilDelegate.mapSystemException(ShutdownUtilDelegate.java:114)
    WARNING: CORE3283: stderr: at com.sun.corba.ee.internal.javax.rmi.CORBA.Util.wrapException(Util.java:358)
    WARNING: CORE3283: stderr: at javax.rmi.CORBA.Util.wrapException(Util.java:277)
    WARNING: CORE3283: stderr:
    My primary key implementation is
    public class CustomerEJBKey implements java.io.Serializable {
    static final long serialVersionUID = 3206093459760846163L;
    public String customerId;
    public DBConfigBean dbConfigBean;
    * Creates an empty key for Entity Bean: CustomerEJB
    /*public CustomerEJBKey() {
    public CustomerEJBKey(String customerId,DBConfigBean dbConfigBean){
    this.customerId = customerId;
    this.dbConfigBean = dbConfigBean;
    public String getCustomer(){
    return customerId;
    public DBConfigBean getDBConfigBean(){
    return dbConfigBean;
    * Returns true if both keys are equal.
    public boolean equals(Object key) {
    if(key instanceof CustomerEJBKey)
    return this.customerId.equals(((CustomerEJBKey)key).customerId) &&
    this.dbConfigBean.equals(((CustomerEJBKey)key).dbConfigBean);
    else
    return false;
    * Returns the hash code for the key.
    public int hashCode() {
    return customerId.hashCode() + dbConfigBean.hashCode();
    and entity bean method invocation is,
    homeFactory = EJBHomeFactory.getInstance();
    home = (CustomerEJBHome) homeFactory.lookup(CustomerEJBHome.class);
    remote = (CustomerEJB) PortableRemoteObject.narrow( home.findByPrimaryKey(new CustomerEJBKey(customerId,dbBean)), CustomerEJB.class);
    This works fine in Websphere and JBoss. Do you have any idea why I am getting this exception?
    Appreciate your response.
    Regards,
    Sankar.

    My suggestion is to put some System.out.println() statements and see if the output helps in any way in debugging. I can't think of anything on the top of my head although I have been working lightly on SunONE.
    By the way, you referred the stateless bean as CMP. Just wanted to tell you that you are wrong. The terms CMP and BMP refer to persistence, which is applied to Database tables and not to stateless/stateful session beans which are written for some specific purpose independent of underlying database.

  • How to cast back and use a retrieved Session Bean reference in a servlet?

    Please help!
    1. I invoke a Session Bean from a servlet :
    travelagent = home.create();
    2. I store the travelagent reference in the HTTP Session :
    session.setAttribute( "travelagent" , travelagent );------------------------------------------------------------------------------------------------------------------
    Now, in another servlet, I have to retrieve the reference to the EJB from the HTTPSession.
    I then have to use this reference to call a business method in the EJB Session Bean.
    I have tried two ways to retrieve the reference and cast it before calling the business method. I get errors in both forms of casting.
    The Values you will see below in the code:
    EJB Remote Interface : TravelAgent (TravelAgent.java)
    Business Method : listItineraries( )
    Servlet which calls the above method : ListItinerary.java
    Line 46 of ListItinerary.java : ArrayList itineraries = traveler.listItineraries();------------------------------------------------------------------------------------------------------------------
    The two ways along with the error I get on the servlet page in the browser are :
    (A)
    TravelAgent traveler = (TravelAgent)session.getAttribute("travelagent");The error I get is :
    java.rmi.NoSuchObjectException: CORBA OBJECT_NOT_EXIST 9998 Maybe; nested exception is:
         org.omg.CORBA.OBJECT_NOT_EXIST: vmcid: 0x2000 minor code: 1806 completed: Maybe
    com.sun.corba.ee.impl.javax.rmi.CORBA.Util.mapSystemException(Util.java:208)
         com.sun.corba.ee.impl.javax.rmi.CORBA.Util.wrapException(Util.java:591)
         javax.rmi.CORBA.Util.wrapException(Util.java:277)
         source.traveler.ejb._TravelAgent_Stub.listItineraries(Unknown Source)
         source.traveler.servlet.ListItinerary.processRequest(ListItinerary.java:46)
    (B)
    TravelAgent traveler  =
    (TravelAgent)PortableRemoteObject.narrow(session.getAttribute("travelagent"), TravelAgent.class);The error I get is :
    java.rmi.ServerException: RemoteException occurred in server thread; nested exception is:
         java.rmi.RemoteException
         com.sun.corba.ee.impl.javax.rmi.CORBA.Util.wrapException(Util.java:597)
         javax.rmi.CORBA.Util.wrapException(Util.java:277)
         source.traveler.ejb._TravelAgent_Stub.listItineraries(Unknown Source)
         source.traveler.servlet.ListItinerary.processRequest(ListItinerary.java:46)
    Could someone advice on how to retrieve and cast the EJBObject's reference from the servlet so that I may use it to call the business method?
    Thanks!

    Thanks guys! It worked.
    1.. I should have used the handle. Got to coding without going deep in the concepts.
    2.. I dont know if I could have used the EJB Reference directly (instead of the handle).
    3.. The error was due to me not mapping the servlets with the EJBs that they could use. I continued to get the same error even after using the handle. Once I put the mapping to the EJBs correctly, everything fell in place.
    Thanks a lot!
    Henry

  • Java.rmi.NoSuchObjectException

    HI all
    Can anyone help regrding the following error.
    java.rmi.NoSuchObjectException: CORBA OBJECT_NOT_EXIST 9998 Maybe; nested exception is:
    INFO: CORE3282: stdout: org.omg.CORBA.OBJECT_NOT_EXIST: vmcid: 0x2000 minor code: 1806 completed: Maybe
    I got this exception when I am trying to access the bean.
    Thanks in advance..

    Hi,
    This exception is thrown when you invoke a method on an object that no longer exists in the remote virtual machine.
    I think the bean has been removed and hence you get the exception when the client tries to access it.
    Seting the log level to fine could help you in getting more detailed exceptions.
    -Amol

Maybe you are looking for