EntityImpl, Propogating Exceptions

Hi,
Suppose that I have three entities, EntityA, EntityB and EntityC with Attribute Level and entity Level validation Rules. When I update EntityA I also update EntityB and EntityB triggers update of EntityC. When I remove EntityA, I remove EntityB and this triggers Update of EntityC. When I create EntityA, I also create EntityB and this triggers update of EntityC. If EntityC fails validation it does not throw the exception to the originating entities. But it tries to validate itself ten times and fails again. I can see a lot of validation messages on the screen. I wish that the failing entity throws that exception to its originating entity and so on. When no validation rule is broken everything works fine. When I implement validation rule of entityC on entityA via entity associations I get the desired behaviour. For updates and inserts I trigger change on prepareForDML method, sometimes use postChanges method to remove child entities and post its changes before parent. I appreciate your helps.
Best Regards,

NEVER CATCH AN EXCEPTION TO THROW ANOTHER EXCEPTIONThis depends on what you mean by Exception. If you mean never catch a java.lang.Exception just to throw another java.lang.Exception, then yes, I tend to agree.
If you mean never catch an exception just to throw another one, then I dont agree at all.
This is, in fact, good practise to provide implementation 'layers'.
E.g, if I have an data interface, and provide XML, SQL and flat file implementations, I certainly cant go throwing SQLExceptions thru the interface. Likewise, I dont want to throw just 'java.lang.Exception'.
So, I make an Exception type which has meaning at the interface level ('StorageException' for example).
In my SQL implementation, for example, I might then do this:
  try {
    someStatement.execute();
  } catch(SQLException e) {
    throw new StorageException("Failed to update customer", e);
  }

Similar Messages

  • Exception propogating password to iPlanet

    Hi,
    My user has a iPlanet resource provisioned by reconciliation. I am trying to test whether password change made in OIM should get reflected in DS which it should do out of the box I believe. When I try to change my password by logging in as the user, I am getting the following exception. Can anyone please tell me what might be causing the exception?
    Running USEXLORG
    Target Class = java.lang.String
    Running ISSSL
    Target Class = java.lang.String
    Running Get Attr Mapping
    DEBUG,13 Jan 2011 12:12:56,226,[XL_INTG.SJSDS],com.thortech.xl.integration.iplanet.util.tcUtilAttributeNameMap : getTargetAttrMapping():: STARTED
    DEBUG,13 Jan 2011 12:12:56,226,[XL_INTG.SJSDS],com.thortech.xl.integration.iplanet.util.tcUtilAttributeNameMap : getTargetAttrMapping() : Variables passed are: pLookupCode = [AttrName.Prov.Map.iPlanet]
    DEBUG,13 Jan 2011 12:12:56,238,[XL_INTG.SJSDS],com.thortech.xl.integration.iplanet.util.tcUtilAttributeNameMap : getTargetAttrMapping():: STARTED
    DEBUG,13 Jan 2011 12:12:56,238,[XL_INTG.SJSDS],com.thortech.xl.integration.iplanet.util.tcUtilAttributeNameMap : getTargetAttrMapping() : tcResultSet is Thor.API.tcMetaDataSet@9ff762e
    DEBUG,13 Jan 2011 12:12:56,238,[XL_INTG.SJSDS],com.thortech.xl.integration.iplanet.util.tcUtilAttributeNameMap : getTargetAttrMapping():: FINISHED
    DEBUG,13 Jan 2011 12:12:56,238,[XL_INTG.SJSDS],com.thortech.xl.integration.iplanet.util.tcUtilAttributeNameMap : getTargetAttrMapping():: STARTED
    Running IPNT Get Lookup Values
    DEBUG,13 Jan 2011 12:12:56,238,[XL_INTG.SJSDS],com.thortech.xl.integration.iplanet.util.tcUtilAttributeNameMap : getTargetAttrMapping():: STARTED
    DEBUG,13 Jan 2011 12:12:56,238,[XL_INTG.SJSDS],com.thortech.xl.integration.iplanet.util.tcUtilAttributeNameMap : getTargetAttrMapping() : Variables passed are: pLookupCode = [Lookup.iPlanet.Configuration]
    DEBUG,13 Jan 2011 12:12:56,242,[XL_INTG.SJSDS],com.thortech.xl.integration.iplanet.util.tcUtilAttributeNameMap : getTargetAttrMapping():: STARTED
    DEBUG,13 Jan 2011 12:12:56,242,[XL_INTG.SJSDS],com.thortech.xl.integration.iplanet.util.tcUtilAttributeNameMap : getTargetAttrMapping() : tcResultSet is Thor.API.tcMetaDataSet@9ffe6dd
    DEBUG,13 Jan 2011 12:12:56,243,[XL_INTG.SJSDS],com.thortech.xl.integration.iplanet.util.tcUtilAttributeNameMap : getTargetAttrMapping():: FINISHED
    DEBUG,13 Jan 2011 12:12:56,243,[XL_INTG.SJSDS],com.thortech.xl.integration.iplanet.util.tcUtilAttributeNameMap : getTargetAttrMapping():: STARTED
    Running MODIFYUSER
    Target Class = com.thortech.xl.integration.iplanet.tcUtilIPlanetUserOperations
    DEBUG,13 Jan 2011 12:12:56,243,[XL_INTG.SJSDS],com.thortech.xl.integration.iplanet.tcUtilIPlanetUserOperations : tcUtilIPlanetUserOperations():: STARTED
    DEBUG,13 Jan 2011 12:12:56,243,[XL_INTG.SJSDS],com.thortech.xl.integration.iplanet.tcUtilIPlanetUserOperations : tcUtilIPlanetUserOperations() : Parameter Variables passed are: pServerName = [servername], pPort = [port], pRootContext = [dc=company,dc=com], pPrincipalDN = [cn=admin,dc=company,dc=com], pPrincipalPwd = [************], oAttributeMap = [{loginDisabled=nsaccountlock, Telephone=telephonenumber, Password=userpassword, Location=l, Middle Name=initials, User ID=uid, Title=title, Email=mail, Entry DN=entrydn, Common Name=cn, Communication Language=preferredlanguage, NsuniqueID=nsuniqueid, Department=departmentnumber, Last Name=sn, First Name=givenname}], oUdfMap = [null], sslFlag = [false]
    DEBUG,13 Jan 2011 12:12:56,243,[XL_INTG.SJSDS],com.thortech.xl.integration.iplanet.util.tcUtilAttributeNameMap : tcUtilAttributeNameMap():: STARTED
    DEBUG,13 Jan 2011 12:12:56,243,[XL_INTG.SJSDS],com.thortech.xl.integration.iplanet.util.tcUtilAttributeNameMap : tcUtilAttributeNameMap():: FINISHED
    DEBUG,13 Jan 2011 12:12:56,243,[XL_INTG.SJSDS],com.thortech.xl.integration.iplanet.util.tcUtilAttributeNameMap : getIntegrationAttributes:: STARTED
    DEBUG,13 Jan 2011 12:12:56,248,[XL_INTG.SJSDS],com.thortech.xl.integration.iplanet.util.tcUtilAttributeNameMap : getIntegrationAttributes:: FINISHED
    DEBUG,13 Jan 2011 12:12:56,248,[XL_INTG.SJSDS],com.thortech.xl.integration.iplanet.tcUtilIPlanetUserOperations : setLDAPInternalAttributes() : ldapObjectClass****************objectclass
    DEBUG,13 Jan 2011 12:12:56,248,[XL_INTG.SJSDS],com.thortech.xl.integration.iplanet.tcUtilIPlanetUserOperations : setLDAPInternalAttributes() : ldapUserObjectClass****************inetorgperson|ceCustomObject|inetuser
    DEBUG,13 Jan 2011 12:12:56,248,[XL_INTG.SJSDS],com.thortech.xl.integration.iplanet.tcUtilIPlanetUserOperations : setLDAPInternalAttributes() : ldapUserDNPrefix****************uid
    DEBUG,13 Jan 2011 12:12:56,248,[XL_INTG.SJSDS],com.thortech.xl.integration.iplanet.tcUtilIPlanetUserOperations : setLDAPInternalAttributes() : ldapOrgObjectClass****************Organization
    DEBUG,13 Jan 2011 12:12:56,248,[XL_INTG.SJSDS],com.thortech.xl.integration.iplanet.tcUtilIPlanetUserOperations : setLDAPInternalAttributes() : ldapUserDisableAttr****************nsaccountlock
    DEBUG,13 Jan 2011 12:12:56,248,[XL_INTG.SJSDS],com.thortech.xl.integration.iplanet.tcUtilIPlanetUserOperations : setLDAPInternalAttributes() : ldapGroupObjectClass****************groupOfUniqueNames
    DEBUG,13 Jan 2011 12:12:56,248,[XL_INTG.SJSDS],com.thortech.xl.integration.iplanet.tcUtilIPlanetUserOperations : setLDAPInternalAttributes() : ldapGroupDNPrefix****************cn
    DEBUG,13 Jan 2011 12:12:56,248,[XL_INTG.SJSDS],com.thortech.xl.integration.iplanet.tcUtilIPlanetUserOperations : setLDAPInternalAttributes() : ldapGroupMemberAttr****************uniquemember
    DEBUG,13 Jan 2011 12:12:56,248,[XL_INTG.SJSDS],com.thortech.xl.integration.iplanet.tcUtilIPlanetUserOperations : setLDAPInternalAttributes() : ldapFirstName****************givenname
    DEBUG,13 Jan 2011 12:12:56,248,[XL_INTG.SJSDS],com.thortech.xl.integration.iplanet.tcUtilIPlanetUserOperations : setLDAPInternalAttributes() : ldapLastName****************sn
    DEBUG,13 Jan 2011 12:12:56,248,[XL_INTG.SJSDS],com.thortech.xl.integration.iplanet.tcUtilIPlanetUserOperations : setLDAPInternalAttributes() : ldapCommonName****************cn
    DEBUG,13 Jan 2011 12:12:56,248,[XL_INTG.SJSDS],com.thortech.xl.integration.iplanet.tcUtilIPlanetUserOperations : setLDAPInternalAttributes() : ldapPassword************************
    ERROR,13 Jan 2011 12:12:56,248,[XL_INTG.SJSDS],====================================================
    ERROR,13 Jan 2011 12:12:56,248,[XL_INTG.SJSDS],com.thortech.xl.integration.iplanet.tcUtilIPlanetUserOperations : tcUtilIPlanetUserOperations() : Error while getting tcUtilLDAPOperations instance. tcUtilLDAPDirectory Standard Attribute Map Not Complete
    ERROR,13 Jan 2011 12:12:56,248,[XL_INTG.SJSDS],====================================================
    java.lang.Exception: tcUtilLDAPDirectory Standard Attribute Map Not Complete
         at com.thortech.xl.integration.iplanet.tcUtilIPlanetUserOperations.<init>(Unknown Source)
         at com.thortech.xl.integration.iplanet.tcUtilIPlanetUserOperations.<init>(Unknown Source)
         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:513)
    java.lang.reflect.InvocationTargetException
         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:513)
    Caused by: java.lang.Exception: java.lang.Exception: tcUtilLDAPDirectory Standard Attribute Map Not Complete
    BTW, I am getting the same error when I am trying to provision a user as well. Any idea whats wrong?
    Thanks,
    Supreetha
    Edited by: Supreetha on Jan 14, 2011 4:00 AM

    Did you update the iPLanet Directory Server schema to include the oracle specific object class and attributes and/or also mapped the oracle to iplanet fields if they don't have the same name?

  • Bundled Exceptions in EntityImpl.BeforeCommit()

    Hi Im trying to issue a registerAttributeException call inside a beforeCommit() method of an Entity object class.
    The problem is, I don't see any exceptions thrown at all. Is this expected behavior? Is this because the framework is finished executing the validate() method and therefore don't really bundle the execption anymore?
    Please confirm.

    I have the same problem. I solved this (its only workaround) by forcing setAttribute call for each input field. This is done in focusLost event.
    Example:
    private void passwordTextField_focusLost(FocusEvent e) {
    JUIteratorBinding viewIterator = panelBinding.findIterBinding(masterIterName);
    viewIterator.getCurrentRow().setAttribute("Upwd", passwordTextField.getPassword());
    A better solution would be appreciated.
    Regards,
    Prokop

  • How can i get the error message from the thrown/raised exception?

    DB version:10gR2
    Examples for this thread taken from
    Want Stored Procs to get exectuted regardless of preceeding SPs Success or
    I have a package with several functions and procedures inside.I created a caller procedure called callProcs, which will execute various procedures within the package in the appropriate order.
    In the below example i cannot get the error message thrown from line 20
    create or replace package body mypackage
    is
    variable_proc1 number;
    variable_proc2 number;
    variable_proc3 number;
    v_result       number;
    my_exception   exception;
    procedure proc1
    is
    begin
    select 8/0 into variable_proc1 from dual;
    exception
              when others
              then raise my_exception; ----line 20
    end;
    procedure proc2
    is
    begin
    select 1 into variable_proc2 from dual;
    exception
              when others
              then
                   null;
    end;
    procedure proc3
    is
    begin
    select 3 into variable_proc3 from dual;
    exception
              when others
              then
                   null;
    end;
    Procedure caller_proc
    is
    begin
    proc1;
    proc2;
    proc3;
    v_result:=variable_proc2+variable_proc3;
    dbms_output.put_line('The output is '||v_result);
    exception
              when my_exception
              then
    dbms_output.put_line('Heyyyyy the error is '||SQLERRM); -- exception caught at line 64 of caller proc
    end;
    end mypackage;
    When i try executing the caller proc, i don't get the error. Instead i get the text User-Defined Exception as shown below
    set serveroutput on
    exec mypackage.caller_proc;
    Heyyyyy the error is User-Defined Exception
    PL/SQL procedure successfully completed.Edited by: user10633418 on Mar 10, 2009 11:30 PM

    Thank you justin.
    Sorry my earlier post was a bit ambiguous.
    I wanted the error generated at proc1 to be captured at caller proc's Exception handling section (line 64) so that i could log the error to an ERR_LOG table.
    I can actually log this error at proc1 itself like
    exception
    when others
    THEN
    error_message :='My custom message for the particular proc '||SQLERRM;
    dbms_output.put_line(error_message);
    logerror(error_message); --an autonomous error logging proc
    raise;But there is a RAISE statement in proc1's exception handling, so the exception gets propogated to caller proc's exception handling section {color:#ff0000}*and another redundant row will be created at ERR_LOG table for the same error because there is a*{color}
    logerror(error_message);--an autonomous error logging proc
    in the WHEN OTHERS section of exception handling section of the caller proc
    I want to avoid the creation of this redundant row in ERR_LOG table.

  • How to customize the foreign key constraint exception

    Hi All,
    I have two table, A and B.
    B.ref is foreign key references to A.id in database.
    Now I want to delete a row of table A in screen, error messages are :
    "Constraint "xxx.xxxx_S_FK1" is violated during post operation "Delete" using SQL statement "DELETE FROM xxxxxx WHERE xxxxxxxxx" and "ORA-02292: integrity constraint (xxx.xxxx_S_FK1) violated - child record found"
    How do I customize this error message? Is it possible to do it in EO Validation?
    Thank you!

    You can override the DoDML() method in EntityImpl something like follows
    @Override
    protected void doDML(int i, TransactionEvent transactionEvent) {
    try
    super.doDML(i, transactionEvent);
    catch(DMLConstraintException _ex) {
    if(_ex.getErrorCode().equals("26048") ) {
    // handle your exception
    sid

  • Thrown validation exception not being showed in jspx page

    Hi,
    I have a page with af:table which uses one view object.That view object is using one entity object. In one of the method of the EntityImpl class of my entity object i throw ValidationException.I debugged the application and i saw that it is throwing the exception.But it is not being shown in the page. What might be wrong here?
    try{
    setAttributeInternal(BANKTYPE, value);
    catch(TooManyObjectsException e) {
    e.printStackTrace();
    throw new ValidationException ("You are trying to add existing record");
    My jspx page is having *<af:messages id="m1"/>*
    Does the jspx page need any configuration to show the thrown exception in a popup?
    Regards,
    Priya.

    Hi vinod,
    I tried it and it worked.Thanks a lot :). Can you please tell me why it was not happening with the ValidationException?
    Regards,
    Priya.

  • ADF Faces: Exception Handler activity ain't reraised

    Hi there!
    I'm using a Studio Edition Version 11.1.1.3.0 (Build JDEVADF_11.1.1.3.PS2_GENERIC_100408.2356.5660).
    I've done this:
    1. created a bounded task flow flow1 and added to it:
    1.1 a vew activity view1 (the default activity) - shows an inputText field for a db column, for which there is a constraint;
    1.2 a method call activity method1 - calls commit;
    1.3 a view activity view2 - has an ouputText depicting an attribute's value for the same collection as that of inputText in view1;
    1.4 a view activity errorView (marked as an exception handler) - displays a localizedMessage from the currentViewPort;
    1.5 created for the view activities page fragments (with necessary fields and buttons).
    2. linked them as follows:
    2.1 view1 -*-> method1 -*-> view2;
    2.2 errorView -*-> view1.
    3. in the default unbounded task flow created a view activity main, a page file for it, and dropped onto the latter the flow1 as a region;
    4. launched the app (as the table contains some data, the view1 displays first row in a row set);
    5. entered into the view1 's field a non-violating value;
    6. pressed a button (which has just an action property set to move to the method1 ) - everything's fine, we get to the view2;
    6. rerun the app;
    7. entered incorrect value, pressed the button - flow goes, as expected, to the errorView, which informs us the exception's details (JBO-...);
    8. on the errorView page fragment pressed a button - we are now on the view1 page again;
    9. left the wrong (violating) value (or changed it to another incorrect value, doesn't matter) and pressed the button again;
    10. wow, we reached the view2, but, I guess, we hadn't to. Why so?
    One must note, that in clauses 7 and 9, after pressing the button, there apears a popup, which advises us about an ORA-... error, that is, in step 9 the ADF Faces does receive the exception, but why it doesn't reraise the errorView, that's the question.
    Though, when I change the method1 so, that it calls a bean's method, which always throws an IllegalArgumentException, then everything works as should to - we get to the infinite loop - view1 -> method1 -> errorView -> view1.
    Or, when I extract view2 from flow1, and instead of the former insert return activity with End Transaction set to commit, and then wrap (i.e call) flow1 from a newly created bounded task flow flow2, and in main 's page replace flow1 with flow2 region, the result is quite different. The aforesaid popup with ORA- error arises, until one enters a non-violating value. That is in this case everything is good, except, that control never flows into the errorView.
    And there is one more thing to note yet. When I've, namely method1, been calling a bean with the ever exception throwing method, the Integrated WLS's log was silent, but when the method1 was calling commit, then in the log we can see this twice:
    <Utils><buildFacesMessage> ADF: Adding the following JSF error message: ORA-02290: check constraint CHECK(THE_USER.THE_CONSTRAINT) violated
    java.sql.SQLIntegrityConstraintViolationException: ORA-02290: check constraint CHECK(THE_USER.THE_CONSTRAINT) violated
         at oracle.jdbc.driver.SQLStateMapping.newSQLException(SQLStateMapping.java:85)
         at oracle.jdbc.driver.DatabaseError.newSQLException(DatabaseError.java:133)
         at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:206)
         at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:455)
         at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:413)
         at oracle.jdbc.driver.T4C8Oall.receive(T4C8Oall.java:1035)
         at oracle.jdbc.driver.T4CPreparedStatement.doOall8(T4CPreparedStatement.java:194)
         at oracle.jdbc.driver.T4CPreparedStatement.executeForRows(T4CPreparedStatement.java:953)
         at oracle.jdbc.driver.OracleStatement.doExecuteWithTimeout(OracleStatement.java:1224)
         at oracle.jdbc.driver.OraclePreparedStatement.executeInternal(OraclePreparedStatement.java:3386)
         at oracle.jdbc.driver.OraclePreparedStatement.executeUpdate(OraclePreparedStatement.java:3467)
         at oracle.jdbc.driver.OraclePreparedStatementWrapper.executeUpdate(OraclePreparedStatementWrapper.java:1350)
         at oracle.jbo.server.OracleSQLBuilderImpl.doEntityDML(OracleSQLBuilderImpl.java:429)
         at oracle.jbo.server.EntityImpl.doDML(EntityImpl.java:8044)
         at oracle.jbo.server.EntityImpl.postChanges(EntityImpl.java:6373)
         at oracle.jbo.server.DBTransactionImpl.doPostTransactionListeners(DBTransactionImpl.java:3172)
         at oracle.jbo.server.DBTransactionImpl.postChanges(DBTransactionImpl.java:2980)
         at oracle.jbo.server.DBTransactionImpl.commitInternal(DBTransactionImpl.java:2018)
         at oracle.jbo.server.DBTransactionImpl.commit(DBTransactionImpl.java:2277)
         at oracle.adf.model.bc4j.DCJboDataControl.commitTransaction(DCJboDataControl.java:1577)
         at oracle.adf.model.binding.DCDataControl.callCommitTransaction(DCDataControl.java:1404)
         at oracle.jbo.uicli.binding.JUCtrlActionBinding.doIt(JUCtrlActionBinding.java:1427)
         at oracle.adf.model.binding.DCDataControl.invokeOperation(DCDataControl.java:2141)
         at oracle.jbo.uicli.binding.JUCtrlActionBinding.invoke(JUCtrlActionBinding.java:730)
         at oracle.adf.controller.v2.lifecycle.PageLifecycleImpl.executeEvent(PageLifecycleImpl.java:394)
         at oracle.adfinternal.view.faces.model.binding.FacesCtrlActionBinding._execute(FacesCtrlActionBinding.java:252)
         at oracle.adfinternal.view.faces.model.binding.FacesCtrlActionBinding.execute(FacesCtrlActionBinding.java:210)
         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:597)
         at com.sun.el.parser.AstValue.invoke(AstValue.java:157)
         at com.sun.el.MethodExpressionImpl.invoke(MethodExpressionImpl.java:283)
         at oracle.adf.controller.internal.util.ELInterfaceImpl.invokeMethod(ELInterfaceImpl.java:168)
         at oracle.adfinternal.controller.activity.MethodCallActivityLogic.execute(MethodCallActivityLogic.java:161)
         at oracle.adfinternal.controller.engine.ControlFlowEngine.executeActivity(ControlFlowEngine.java:989)
         at oracle.adfinternal.controller.engine.ControlFlowEngine.doRouting(ControlFlowEngine.java:878)
         at oracle.adfinternal.controller.engine.ControlFlowEngine.doRouting(ControlFlowEngine.java:777)
         at oracle.adfinternal.controller.engine.ControlFlowEngine.routeFromActivity(ControlFlowEngine.java:551)
         at oracle.adfinternal.controller.engine.ControlFlowEngine.performControlFlow(ControlFlowEngine.java:147)
         at oracle.adfinternal.controller.application.NavigationHandlerImpl.handleAdfcNavigation(NavigationHandlerImpl.java:109)
         at oracle.adfinternal.controller.application.NavigationHandlerImpl.handleNavigation(NavigationHandlerImpl.java:78)
         at com.sun.faces.application.ActionListenerImpl.processAction(ActionListenerImpl.java:130)
         at org.apache.myfaces.trinidad.component.UIXCommand.broadcast(UIXCommand.java:190)
         at oracle.adf.view.rich.component.fragment.UIXRegion.broadcast(UIXRegion.java:148)
         at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl.broadcastEvents(LifecycleImpl.java:812)
         at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl._executePhase(LifecycleImpl.java:292)
         at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:177)
         at javax.faces.webapp.FacesServlet.service(FacesServlet.java:265)
         at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:227)
         at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:125)
         at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:300)
         at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:26)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at oracle.adf.model.servlet.ADFBindingFilter.doFilter(ADFBindingFilter.java:191)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at oracle.adfinternal.view.faces.webapp.rich.RegistrationFilter.doFilter(RegistrationFilter.java:97)
         at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl$FilterListChain.doFilter(TrinidadFilterImpl.java:420)
         at oracle.adfinternal.view.faces.activedata.AdsFilter.doFilter(AdsFilter.java:60)
         at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl$FilterListChain.doFilter(TrinidadFilterImpl.java:420)
         at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl._doFilterImpl(TrinidadFilterImpl.java:247)
         at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl.doFilter(TrinidadFilterImpl.java:157)
         at org.apache.myfaces.trinidad.webapp.TrinidadFilter.doFilter(TrinidadFilter.java:92)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at oracle.security.jps.ee.http.JpsAbsFilter$1.run(JpsAbsFilter.java:94)
         at java.security.AccessController.doPrivileged(Native Method)
         at oracle.security.jps.util.JpsSubject.doAsPrivileged(JpsSubject.java:313)
         at oracle.security.jps.ee.util.JpsPlatformUtil.runJaasMode(JpsPlatformUtil.java:414)
         at oracle.security.jps.ee.http.JpsAbsFilter.doFilter(JpsAbsFilter.java:138)
         at oracle.security.jps.ee.http.JpsFilter.doFilter(JpsFilter.java:71)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at oracle.adf.library.webapp.LibraryFilter.doFilter(LibraryFilter.java:159)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at oracle.dms.wls.DMSServletFilter.doFilter(DMSServletFilter.java:330)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at weblogic.servlet.internal.RequestEventsFilter.doFilter(RequestEventsFilter.java:27)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.doIt(WebAppServletContext.java:3684)
         at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3650)
         at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
         at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:121)
         at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2268)
         at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2174)
         at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1446)
         at weblogic.work.ExecuteThread.execute(ExecuteThread.java:201)
         at weblogic.work.ExecuteThread.run(ExecuteThread.java:173)What I'm doing wrong? And how can I dismiss that popup, as it duplicates errorView and does not get messages from a custom message bundle?
    Thanks in advance for any comments.
    Yerzhan.

    Hi there!
    I'm using a Studio Edition Version 11.1.1.3.0 (Build JDEVADF_11.1.1.3.PS2_GENERIC_100408.2356.5660).
    I've done this:
    1. created a bounded task flow flow1 and added to it:
    1.1 a vew activity view1 (the default activity) - shows an inputText field for a db column, for which there is a constraint;
    1.2 a method call activity method1 - calls commit;
    1.3 a view activity view2 - has an ouputText depicting an attribute's value for the same collection as that of inputText in view1;
    1.4 a view activity errorView (marked as an exception handler) - displays a localizedMessage from the currentViewPort;
    1.5 created for the view activities page fragments (with necessary fields and buttons).
    2. linked them as follows:
    2.1 view1 -*-> method1 -*-> view2;
    2.2 errorView -*-> view1.
    3. in the default unbounded task flow created a view activity main, a page file for it, and dropped onto the latter the flow1 as a region;
    4. launched the app (as the table contains some data, the view1 displays first row in a row set);
    5. entered into the view1 's field a non-violating value;
    6. pressed a button (which has just an action property set to move to the method1 ) - everything's fine, we get to the view2;
    6. rerun the app;
    7. entered incorrect value, pressed the button - flow goes, as expected, to the errorView, which informs us the exception's details (JBO-...);
    8. on the errorView page fragment pressed a button - we are now on the view1 page again;
    9. left the wrong (violating) value (or changed it to another incorrect value, doesn't matter) and pressed the button again;
    10. wow, we reached the view2, but, I guess, we hadn't to. Why so?
    One must note, that in clauses 7 and 9, after pressing the button, there apears a popup, which advises us about an ORA-... error, that is, in step 9 the ADF Faces does receive the exception, but why it doesn't reraise the errorView, that's the question.
    Though, when I change the method1 so, that it calls a bean's method, which always throws an IllegalArgumentException, then everything works as should to - we get to the infinite loop - view1 -> method1 -> errorView -> view1.
    Or, when I extract view2 from flow1, and instead of the former insert return activity with End Transaction set to commit, and then wrap (i.e call) flow1 from a newly created bounded task flow flow2, and in main 's page replace flow1 with flow2 region, the result is quite different. The aforesaid popup with ORA- error arises, until one enters a non-violating value. That is in this case everything is good, except, that control never flows into the errorView.
    And there is one more thing to note yet. When I've, namely method1, been calling a bean with the ever exception throwing method, the Integrated WLS's log was silent, but when the method1 was calling commit, then in the log we can see this twice:
    <Utils><buildFacesMessage> ADF: Adding the following JSF error message: ORA-02290: check constraint CHECK(THE_USER.THE_CONSTRAINT) violated
    java.sql.SQLIntegrityConstraintViolationException: ORA-02290: check constraint CHECK(THE_USER.THE_CONSTRAINT) violated
         at oracle.jdbc.driver.SQLStateMapping.newSQLException(SQLStateMapping.java:85)
         at oracle.jdbc.driver.DatabaseError.newSQLException(DatabaseError.java:133)
         at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:206)
         at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:455)
         at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:413)
         at oracle.jdbc.driver.T4C8Oall.receive(T4C8Oall.java:1035)
         at oracle.jdbc.driver.T4CPreparedStatement.doOall8(T4CPreparedStatement.java:194)
         at oracle.jdbc.driver.T4CPreparedStatement.executeForRows(T4CPreparedStatement.java:953)
         at oracle.jdbc.driver.OracleStatement.doExecuteWithTimeout(OracleStatement.java:1224)
         at oracle.jdbc.driver.OraclePreparedStatement.executeInternal(OraclePreparedStatement.java:3386)
         at oracle.jdbc.driver.OraclePreparedStatement.executeUpdate(OraclePreparedStatement.java:3467)
         at oracle.jdbc.driver.OraclePreparedStatementWrapper.executeUpdate(OraclePreparedStatementWrapper.java:1350)
         at oracle.jbo.server.OracleSQLBuilderImpl.doEntityDML(OracleSQLBuilderImpl.java:429)
         at oracle.jbo.server.EntityImpl.doDML(EntityImpl.java:8044)
         at oracle.jbo.server.EntityImpl.postChanges(EntityImpl.java:6373)
         at oracle.jbo.server.DBTransactionImpl.doPostTransactionListeners(DBTransactionImpl.java:3172)
         at oracle.jbo.server.DBTransactionImpl.postChanges(DBTransactionImpl.java:2980)
         at oracle.jbo.server.DBTransactionImpl.commitInternal(DBTransactionImpl.java:2018)
         at oracle.jbo.server.DBTransactionImpl.commit(DBTransactionImpl.java:2277)
         at oracle.adf.model.bc4j.DCJboDataControl.commitTransaction(DCJboDataControl.java:1577)
         at oracle.adf.model.binding.DCDataControl.callCommitTransaction(DCDataControl.java:1404)
         at oracle.jbo.uicli.binding.JUCtrlActionBinding.doIt(JUCtrlActionBinding.java:1427)
         at oracle.adf.model.binding.DCDataControl.invokeOperation(DCDataControl.java:2141)
         at oracle.jbo.uicli.binding.JUCtrlActionBinding.invoke(JUCtrlActionBinding.java:730)
         at oracle.adf.controller.v2.lifecycle.PageLifecycleImpl.executeEvent(PageLifecycleImpl.java:394)
         at oracle.adfinternal.view.faces.model.binding.FacesCtrlActionBinding._execute(FacesCtrlActionBinding.java:252)
         at oracle.adfinternal.view.faces.model.binding.FacesCtrlActionBinding.execute(FacesCtrlActionBinding.java:210)
         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:597)
         at com.sun.el.parser.AstValue.invoke(AstValue.java:157)
         at com.sun.el.MethodExpressionImpl.invoke(MethodExpressionImpl.java:283)
         at oracle.adf.controller.internal.util.ELInterfaceImpl.invokeMethod(ELInterfaceImpl.java:168)
         at oracle.adfinternal.controller.activity.MethodCallActivityLogic.execute(MethodCallActivityLogic.java:161)
         at oracle.adfinternal.controller.engine.ControlFlowEngine.executeActivity(ControlFlowEngine.java:989)
         at oracle.adfinternal.controller.engine.ControlFlowEngine.doRouting(ControlFlowEngine.java:878)
         at oracle.adfinternal.controller.engine.ControlFlowEngine.doRouting(ControlFlowEngine.java:777)
         at oracle.adfinternal.controller.engine.ControlFlowEngine.routeFromActivity(ControlFlowEngine.java:551)
         at oracle.adfinternal.controller.engine.ControlFlowEngine.performControlFlow(ControlFlowEngine.java:147)
         at oracle.adfinternal.controller.application.NavigationHandlerImpl.handleAdfcNavigation(NavigationHandlerImpl.java:109)
         at oracle.adfinternal.controller.application.NavigationHandlerImpl.handleNavigation(NavigationHandlerImpl.java:78)
         at com.sun.faces.application.ActionListenerImpl.processAction(ActionListenerImpl.java:130)
         at org.apache.myfaces.trinidad.component.UIXCommand.broadcast(UIXCommand.java:190)
         at oracle.adf.view.rich.component.fragment.UIXRegion.broadcast(UIXRegion.java:148)
         at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl.broadcastEvents(LifecycleImpl.java:812)
         at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl._executePhase(LifecycleImpl.java:292)
         at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:177)
         at javax.faces.webapp.FacesServlet.service(FacesServlet.java:265)
         at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:227)
         at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:125)
         at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:300)
         at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:26)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at oracle.adf.model.servlet.ADFBindingFilter.doFilter(ADFBindingFilter.java:191)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at oracle.adfinternal.view.faces.webapp.rich.RegistrationFilter.doFilter(RegistrationFilter.java:97)
         at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl$FilterListChain.doFilter(TrinidadFilterImpl.java:420)
         at oracle.adfinternal.view.faces.activedata.AdsFilter.doFilter(AdsFilter.java:60)
         at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl$FilterListChain.doFilter(TrinidadFilterImpl.java:420)
         at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl._doFilterImpl(TrinidadFilterImpl.java:247)
         at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl.doFilter(TrinidadFilterImpl.java:157)
         at org.apache.myfaces.trinidad.webapp.TrinidadFilter.doFilter(TrinidadFilter.java:92)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at oracle.security.jps.ee.http.JpsAbsFilter$1.run(JpsAbsFilter.java:94)
         at java.security.AccessController.doPrivileged(Native Method)
         at oracle.security.jps.util.JpsSubject.doAsPrivileged(JpsSubject.java:313)
         at oracle.security.jps.ee.util.JpsPlatformUtil.runJaasMode(JpsPlatformUtil.java:414)
         at oracle.security.jps.ee.http.JpsAbsFilter.doFilter(JpsAbsFilter.java:138)
         at oracle.security.jps.ee.http.JpsFilter.doFilter(JpsFilter.java:71)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at oracle.adf.library.webapp.LibraryFilter.doFilter(LibraryFilter.java:159)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at oracle.dms.wls.DMSServletFilter.doFilter(DMSServletFilter.java:330)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at weblogic.servlet.internal.RequestEventsFilter.doFilter(RequestEventsFilter.java:27)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.doIt(WebAppServletContext.java:3684)
         at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3650)
         at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
         at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:121)
         at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2268)
         at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2174)
         at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1446)
         at weblogic.work.ExecuteThread.execute(ExecuteThread.java:201)
         at weblogic.work.ExecuteThread.run(ExecuteThread.java:173)What I'm doing wrong? And how can I dismiss that popup, as it duplicates errorView and does not get messages from a custom message bundle?
    Thanks in advance for any comments.
    Yerzhan.

  • Problem in catching Exception

    I am using servlets. In my program after a particular point I am not able to catch an Exception if it occurs.
    And after this point whatever Exception occurs that is not coming to catch block and its getting printed in webserver logs.
    Can someone help me
    Thanks

    Two possibilities:
    -First you might be catching checked exceptions but not unchecked exceptions. You can catch all types of exceptions by using a catch(Throwable) rather, or in addition to, a catch(Exception)
    -Second, you might be able to catch the exception at the top level and will have to instead add it to many of your methods instead. The reason is that your code might be called in an application server thread. And exceptions are not propogated out of a thread. But if you didn't create it you have no control over it. So your only choice is to add exception/thowable catches in many of your methods.

  • 9.3.3 Upgrade, null pointer exception when accessing business rules and mac

    Hello,
    We upgraded from 9.3.1 to 9.3.3. In the Essbase Administration Services Console, when I attempt to access business rules or macros from a client PC, we get a null pointer exception. The message does not tell us much, but I cannot find more.
    I can access business rules and macros using EAS Console from the server. Do I have a bad installation, or have I missed a step?
    Thank you,

    Hi,
    You might have to re-organize your application module hierarchy to place your common code.
    If your intension is to auto populate the primary key for your Entity Objects., I would suggest below common practice.
    1). Create a Base Entity Impl class for your project that extends oracle.jbo.server.EntityImpl
    2). Code your getDbSequence() method inside this base entity impl class
    3). Make sure that all your Entity Objects extend your base entity impl class
    4). Use EL expression to call this method for auto-generating primary key attribute of your Entity Object.
    e.g., adf.object.getDbSequence("sequenceName")
    Regards,
    Eshwar

  • ADF BC: Exception when using an association accessor  in polymorphic EOs

    Hi,
    I have generated a classic Dept-Emp ADF BC project. Since I need inheritance for my business logic, I created a new EO Manager which extends Employee. Attribute Job is the discriminator with a default value 'MANAGER'. The Employee VO uses polymorphic EOs. When I try to get the department of an employee in a method like Employee.getSal() the ClassCastException is thrown.
      public Number getSal() {
        DepartmentImpl d = (DepartmentImpl) getDepartment(); // Exception!
        // process business logic
        return aValue;
    java.lang.ClassCastException: oracle.jbo.domain.Number
         at oracle.jbo.server.RowFilterKey.<init>(RowFilterKey.java:47)
         at oracle.jbo.server.ViewObjectImpl.buildRowFilter(ViewObjectImpl.java:4527)
         at oracle.jbo.server.ViewRowSetImpl.getRowFilter(ViewRowSetImpl.java:419)
         at oracle.jbo.server.ViewRowSetImpl.getRowFilter(ViewRowSetImpl.java:370)
         at oracle.jbo.server.ViewRowSetImpl.ensureStorage(ViewRowSetImpl.java:4632)
         at oracle.jbo.server.EntityRowSetImpl.<init>(EntityRowSetImpl.java:80)
         at oracle.jbo.server.EntityImpl.createAssociationAccessorRS(EntityImpl.java:7610)
         at oracle.jbo.server.AssociationDefImpl.get(AssociationDefImpl.java:329)
         at oracle.jbo.server.AssociationDefImpl.get(AssociationDefImpl.java:274)
         at oracle.jbo.server.EntityImpl.getAttributeInternal(EntityImpl.java:2144)
         at com.trivadis.adf.inheritance.model.eo.EmployeeImpl.getDepartment(EmployeeImpl.java:186)
         at com.trivadis.adf.inheritance.model.eo.EmployeeImpl.getSal(EmployeeImpl.java:103)
         at com.trivadis.adf.inheritance.model.eo.EmployeeImpl.getAttrInvokeAccessor(EmployeeImpl.java:141)
         at com.trivadis.adf.inheritance.model.eo.ManagerImpl.getAttrInvokeAccessor(ManagerImpl.java:76)
         at oracle.jbo.server.EntityImpl.getAttribute(EntityImpl.java:784)Is it a known bug? or not allowed to use associations with EO Inheritance? Something else?
    Any hints are welcome!
    Thanks,
    Markus

    I have the same problem.
    I'm using the RowIterator of an association to create a new Entity.
    The exception is thrown when fetching the RowIterator before the createRow method is used.
    java.lang.ClassCastException: oracle.jbo.domain.Number
         at oracle.jbo.server.RowFilterKey.<init>(RowFilterKey.java:47)
         at oracle.jbo.server.ViewObjectImpl.buildRowFilter(ViewObjectImpl.java:4527)
         at oracle.jbo.server.ViewRowSetImpl.getRowFilter(ViewRowSetImpl.java:419)
         at oracle.jbo.server.ViewRowSetImpl.getRowFilter(ViewRowSetImpl.java:370)
         at oracle.jbo.server.ViewRowSetImpl.ensureStorage(ViewRowSetImpl.java:4632)
         at oracle.jbo.server.EntityRowSetImpl.<init>(EntityRowSetImpl.java:80)
         at oracle.jbo.server.EntityImpl.createAssociationAccessorRS(EntityImpl.java:7610)
         at oracle.jbo.server.AssociationDefImpl.get(AssociationDefImpl.java:329)
         at oracle.jbo.server.AssociationDefImpl.get(AssociationDefImpl.java:274)
         at oracle.jbo.server.EntityImpl.getAttributeInternal(EntityImpl.java:2144)
         at com.photoswing.model.web.AccountImpl.getAccountExcludedPhotoAccount(AccountImpl.java:2283)
         at com.photoswing.model.web.WeventEditVORowImpl.registerNewEventFile(WeventEditVORowImpl.java:480)Thanks
    Fred

  • Exception Propagation - Best Practises

    Hello,
    I was thinking what is the best practise for exception propogation.
    The way I know and have been doing is to specify an error page in my web.xml and in that I get a request paramater from the sesion ( which I populate in the catch blocks across the various classes) and display it to the user and ask him to contact the admin. Ofcourse I log them using log4j.
    I was wondering if there are other ways people do this (other than just displaying a "Sorry, Application Error" page and what do you think should be the best practise of exception handling and more importantly exception propagation.
    Thanks in advance for your time
    rgds,

    Sarvananda wrote:
    ...what do you think should be the best practise of exception handling and more importantly exception propagation.The very best practice is to always handle the exception, that is to say: never use empty "catch blocks".
    As already stated there are many correct ways to handle exceptions depending largely on the result you desire according to the exception. If you want feedback for debugging: I've made the errors descriptive... class/method and exception/error included in the message to the end user. This almost never works, since they never read it and if they report it, they just say: "I got this error thingy and it said to call you..." I got smarter the second time around and put the errors in logs, so when they actually called, then I could have them look up the error for me, or even better, just send me the log so I could see any other problems they didn't bother to report.
    It sounds like you are doing web development, one thing I have done in the past is to just pop up an e-mail ready to go with all the info in it. All the end user had to do is hit send.

  • Fusion.FND_Session_MGNT  Exception in JDev 11.1.1.5.0

    Hi ..
    I am working with ADF and Jdev. I created an EO from a table and setting a column as the history column 'Created by' , threw me the following exception, but the stack trace with the error on getting the user id. I unchecked the history column for that table. Now it is throwing the same error on fetching the language details. I think the following error is something other than the history column/language. I am not able to get the source of the error. It would be great if anyone can point me to the source of the issue. The exception is as follows..
    oracle.jbo.JboException: JBO-29000: Unexpected exception caught: java.sql.SQLException, msg=ORA-20001: APPLCORE--20001: Invalid session B41C3E46A17718FCE040449830F179B3 specified in attach to ap6059fems:ems7689
    ORA-06512: at "FUSION.FND_SESSION_MGMT", line 865
    ORA-06512: at line 1
         at oracle.apps.fnd.applcore.common.ApplSession.attachSession(ApplSession.java:2506)
         at oracle.apps.fnd.applcore.common.ApplSession.attachSession(ApplSession.java:2540)
         at oracle.apps.fnd.applcore.common.ApplSession.getConnection(ApplSession.java:464)
         at oracle.apps.fnd.applcore.common.ApplSessionNamespace.getNamespace(ApplSessionNamespace.java:250)
         at oracle.apps.fnd.applcore.common.ApplSession.getSessionNamespace(ApplSession.java:1560)
         at oracle.apps.fnd.applcore.common.ApplSession.getSessionNamespace(ApplSession.java:1588)
         at oracle.apps.fnd.applcore.common.ApplSession.getSessionNamespace(ApplSession.java:1671)
         at oracle.apps.fnd.applcore.common.ApplSession.getNamespaceAttribute(ApplSession.java:1766)
         at oracle.apps.fnd.applcore.common.ApplSession.getNLSLang(ApplSession.java:931)
         at oracle.apps.fnd.applcore.common.ApplSessionUtil.getNLSLang(ApplSessionUtil.java:1359)
         at oracle.apps.fnd.applcore.oaext.model.OAEntityImpl.getCurrentLanguage(OAEntityImpl.java:3781)
         at oracle.apps.fnd.applcore.oaext.model.OAEntityImpl.createTranslatedRow(OAEntityImpl.java:2044)
         at oracle.apps.fnd.applcore.oaext.model.OAEntityImpl.createTranslated(OAEntityImpl.java:2035)
         at oracle.apps.fnd.applcore.oaext.model.OAEntityImpl.create(OAEntityImpl.java:2216)
         at oracle.jbo.server.EntityImpl.callCreate(EntityImpl.java:1163)
         at oracle.jbo.server.ViewRowStorage.create(ViewRowStorage.java:1151)
         at oracle.jbo.server.ViewRowImpl.create(ViewRowImpl.java:472)
         at oracle.apps.fnd.applcore.oaext.model.OAViewRowImpl.create(OAViewRowImpl.java:851)
         at oracle.jbo.server.ViewRowImpl.callCreate(ViewRowImpl.java:489)
         at oracle.jbo.server.ViewObjectImpl.createInstance(ViewObjectImpl.java:5568)
         at oracle.jbo.server.QueryCollection.createRowWithEntities(QueryCollection.java:1937)
         at oracle.jbo.server.ViewRowSetImpl.createRowWithEntities(ViewRowSetImpl.java:2458)
         at oracle.jbo.server.ViewRowSetImpl.doCreateAndInitRow(ViewRowSetImpl.java:2499)
         at oracle.jbo.server.ViewRowSetImpl.createAndInitRow(ViewRowSetImpl.java:2464)
         at oracle.jbo.server.ViewObjectImpl.createAndInitRow(ViewObjectImpl.java:10820)
         at oracle.jbo.jbotester.NavigationBar.doInsertAction(NavigationBar.java:136)
         at oracle.jbo.jbotester.NavigationBar.doAction(NavigationBar.java:109)
         at oracle.jbo.uicli.controls.JUNavigationBar$NavButton.actionPerformed(JUNavigationBar.java:118)
         at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1995)
         at javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2318)
         at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:387)
         at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:242)
         at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonListener.java:236)
         at java.awt.AWTEventMulticaster.mouseReleased(AWTEventMulticaster.java:272)
         at java.awt.Component.processMouseEvent(Component.java:6134)
         at javax.swing.JComponent.processMouseEvent(JComponent.java:3265)
         at java.awt.Component.processEvent(Component.java:5899)
         at java.awt.Container.processEvent(Container.java:2023)
         at java.awt.Component.dispatchEventImpl(Component.java:4501)
         at java.awt.Container.dispatchEventImpl(Container.java:2081)
         at java.awt.Component.dispatchEvent(Component.java:4331)
         at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4301)
         at java.awt.LightweightDispatcher.processMouseEvent(Container.java:3965)
         at java.awt.LightweightDispatcher.dispatchEvent(Container.java:3895)
         at java.awt.Container.dispatchEventImpl(Container.java:2067)
         at java.awt.Window.dispatchEventImpl(Window.java:2458)
         at java.awt.Component.dispatchEvent(Component.java:4331)
         at java.awt.EventQueue.dispatchEvent(EventQueue.java:599)
         at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:269)
         at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:184)
         at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:174)
         at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:169)
         at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:161)
         at java.awt.EventDispatchThread.run(EventDispatchThread.java:122)
    Thanks,
    Priya.R

    Hi,
    I got the same issue in my application. I debugged into this and found the following reason for this issue..
    In my application, the sessionid id getting created in one Database and the application DB is connected to someother. When multiple databases are involved, then this issue came for me.
    I did the following to fix this issue and it worked for me.
    Goto AM and right click on it and then click on configurations.
    Then a new window will open up and in that Window, select AMLocal and then click on edit button. A new window will open up. Here select the Connection Type as JDBC Url and select the Application DB url in the connection Name.
    This change resolved my issue as it will create the session id in the ApplicationDB itself..
    Cheers,
    Srikanth Ande

  • Exception while accessing the DB Custom table

    hi All,
    i am going to insert a data into custom table(XXCUR_TRADE_CUSTOMER_DETAILS),i have enter the data in the page and i click on the APLLY Button.
    After clicking on the APLLY Button,i got the Below excetion.
    i have created a custom table in xxcurnx custom schema and i have create a synonym to that custom table in APPS Schema i give the apps/apps username/password. when creating EO i select the table wirh schema.table name,But still i got this this exception.
    could you please,anyone can give the best solution for this.
    Exception Details.
    oracle.apps.fnd.framework.OAException: oracle.jbo.DMLException: JBO-26041: Failed to post data to database during "Insert": SQL Statement "BEGIN INSERT INTO XXCUR_TRADE_CUSTOMER_DETAILS(CUSTOMER_ID,BILLING_FREQUENCY,CONSOLIDATION_LEVEL,LAST_UPDATE_LOGIN,LAST_UPDATE_DATE,CREATED_BY,LAST_UPDATED_BY,CREATION_DATE) VALUES (?,?,?,?,?,?,?,?) RETURNING ROWID INTO ?; END;".
         at oracle.apps.fnd.framework.OAException.wrapperException(Unknown Source)
         at oracle.apps.fnd.framework.server.OADBTransactionImpl.commit(Unknown Source)
         at dem.oracle.apps.ont.wen.server.DemoAMImpl.saveTransaction(DemoAMImpl.java:44)
         at dem.oracle.apps.ont.wen.webui.SetmynewCO.processFormRequest(SetmynewCO.java:47)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequest(Unknown Source)
         at oracle.apps.fnd.framework.webui.OAWebBeanContainerHelper.processFormRequest(Unknown Source)
         at oracle.apps.fnd.framework.webui.OAPageLayoutHelper.processFormRequest(Unknown Source)
         at oracle.apps.fnd.framework.webui.beans.layout.OAPageLayoutBean.processFormRequest(Unknown Source)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequestChildren(Unknown Source)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequestChildren(Unknown Source)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequest(Unknown Source)
         at oracle.apps.fnd.framework.webui.OAWebBeanContainerHelper.processFormRequest(Unknown Source)
         at oracle.apps.fnd.framework.webui.beans.form.OAFormBean.processFormRequest(Unknown Source)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequestChildren(Unknown Source)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequestChildren(Unknown Source)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequest(Unknown Source)
         at oracle.apps.fnd.framework.webui.OAWebBeanContainerHelper.processFormRequest(Unknown Source)
         at oracle.apps.fnd.framework.webui.beans.OABodyBean.processFormRequest(Unknown Source)
         at oracle.apps.fnd.framework.webui.OAPageBean.processFormRequest(Unknown Source)
         at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(Unknown Source)
         at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(Unknown Source)
         at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(Unknown Source)
         at OA.jspService(_OA.java:71)
         at com.orionserver.http.OrionHttpJspPage.service(OrionHttpJspPage.java:59)
         at oracle.jsp.runtimev2.JspPageTable.service(JspPageTable.java:462)
         at oracle.jsp.runtimev2.JspServlet.internalService(JspServlet.java:594)
         at oracle.jsp.runtimev2.JspServlet.service(JspServlet.java:518)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
         at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:713)
         at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:370)
         at com.evermind.server.http.HttpRequestHandler.doProcessRequest(HttpRequestHandler.java:871)
         at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:453)
         at com.evermind.server.http.HttpRequestHandler.serveOneRequest(HttpRequestHandler.java:221)
         at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:122)
         at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:111)
         at oracle.oc4j.network.ServerSocketReadHandler$SafeRunnable.run(ServerSocketReadHandler.java:260)
         at oracle.oc4j.network.ServerSocketAcceptHandler.procClientSocket(ServerSocketAcceptHandler.java:239)
         at oracle.oc4j.network.ServerSocketAcceptHandler.access$700(ServerSocketAcceptHandler.java:34)
         at oracle.oc4j.network.ServerSocketAcceptHandler$AcceptHandlerHorse.run(ServerSocketAcceptHandler.java:880)
         at com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:303)
         at java.lang.Thread.run(Thread.java:595)
    ## Detail 0 ##
    java.sql.SQLException: ORA-06550: line 1, column 19:
    PL/SQL: ORA-00942: table or view does not exist
    ORA-06550: line 1, column 7:
    PL/SQL: SQL Statement ignored
         at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:138)
         at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:316)
         at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:282)
         at oracle.jdbc.driver.T4C8Oall.receive(T4C8Oall.java:639)
         at oracle.jdbc.driver.T4CCallableStatement.doOall8(T4CCallableStatement.java:184)
         at oracle.jdbc.driver.T4CCallableStatement.execute_for_rows(T4CCallableStatement.java:873)
         at oracle.jdbc.driver.OracleStatement.doExecuteWithTimeout(OracleStatement.java:1161)
         at oracle.jdbc.driver.OraclePreparedStatement.executeInternal(OraclePreparedStatement.java:3001)
         at oracle.jdbc.driver.OraclePreparedStatement.executeUpdate(OraclePreparedStatement.java:3074)
         at oracle.jdbc.driver.OracleCallableStatement.executeUpdate(OracleCallableStatement.java:4309)
         at oracle.jbo.server.OracleSQLBuilderImpl.doEntityDML(OracleSQLBuilderImpl.java:427)
         at oracle.jbo.server.EntityImpl.doDML(EntityImpl.java:5740)
         at oracle.jbo.server.EntityImpl.postChanges(EntityImpl.java:4539)
         at oracle.apps.fnd.framework.server.OAEntityImpl.postChanges(Unknown Source)
         at oracle.jbo.server.DBTransactionImpl.doPostTransactionListeners(DBTransactionImpl.java:2996)
         at oracle.jbo.server.DBTransactionImpl.postChanges(DBTransactionImpl.java:2807)
         at oracle.jbo.server.DBTransactionImpl.commitInternal(DBTransactionImpl.java:1971)
         at oracle.jbo.server.DBTransactionImpl.commit(DBTransactionImpl.java:2173)
         at oracle.apps.fnd.framework.server.OADBTransactionImpl.commit(Unknown Source)
         at dem.oracle.apps.ont.wen.server.DemoAMImpl.saveTransaction(DemoAMImpl.java:44)
         at dem.oracle.apps.ont.wen.webui.SetmynewCO.processFormRequest(SetmynewCO.java:47)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequest(Unknown Source)
         at oracle.apps.fnd.framework.webui.OAWebBeanContainerHelper.processFormRequest(Unknown Source)
         at oracle.apps.fnd.framework.webui.OAPageLayoutHelper.processFormRequest(Unknown Source)
         at oracle.apps.fnd.framework.webui.beans.layout.OAPageLayoutBean.processFormRequest(Unknown Source)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequestChildren(Unknown Source)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequestChildren(Unknown Source)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequest(Unknown Source)
         at oracle.apps.fnd.framework.webui.OAWebBeanContainerHelper.processFormRequest(Unknown Source)
         at oracle.apps.fnd.framework.webui.beans.form.OAFormBean.processFormRequest(Unknown Source)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequestChildren(Unknown Source)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequestChildren(Unknown Source)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequest(Unknown Source)
         at oracle.apps.fnd.framework.webui.OAWebBeanContainerHelper.processFormRequest(Unknown Source)
         at oracle.apps.fnd.framework.webui.beans.OABodyBean.processFormRequest(Unknown Source)
         at oracle.apps.fnd.framework.webui.OAPageBean.processFormRequest(Unknown Source)
         at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(Unknown Source)
         at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(Unknown Source)
         at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(Unknown Source)
         at OA.jspService(_OA.java:71)
         at com.orionserver.http.OrionHttpJspPage.service(OrionHttpJspPage.java:59)
         at oracle.jsp.runtimev2.JspPageTable.service(JspPageTable.java:462)
         at oracle.jsp.runtimev2.JspServlet.internalService(JspServlet.java:594)
         at oracle.jsp.runtimev2.JspServlet.service(JspServlet.java:518)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
         at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:713)
         at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:370)
         at com.evermind.server.http.HttpRequestHandler.doProcessRequest(HttpRequestHandler.java:871)
         at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:453)
         at com.evermind.server.http.HttpRequestHandler.serveOneRequest(HttpRequestHandler.java:221)
         at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:122)
         at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:111)
         at oracle.oc4j.network.ServerSocketReadHandler$SafeRunnable.run(ServerSocketReadHandler.java:260)
         at oracle.oc4j.network.ServerSocketAcceptHandler.procClientSocket(ServerSocketAcceptHandler.java:239)
         at oracle.oc4j.network.ServerSocketAcceptHandler.access$700(ServerSocketAcceptHandler.java:34)
         at oracle.oc4j.network.ServerSocketAcceptHandler$AcceptHandlerHorse.run(ServerSocketAcceptHandler.java:880)
         at com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:303)
         at java.lang.Thread.run(Thread.java:595)
    java.sql.SQLException: ORA-06550: line 1, column 19:
    PL/SQL: ORA-00942: table or view does not exist
    ORA-06550: line 1, column 7:
    PL/SQL: SQL Statement ignored
         at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:138)
         at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:316)
         at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:282)
         at oracle.jdbc.driver.T4C8Oall.receive(T4C8Oall.java:639)
         at oracle.jdbc.driver.T4CCallableStatement.doOall8(T4CCallableStatement.java:184)
         at oracle.jdbc.driver.T4CCallableStatement.execute_for_rows(T4CCallableStatement.java:873)
         at oracle.jdbc.driver.OracleStatement.doExecuteWithTimeout(OracleStatement.java:1161)
         at oracle.jdbc.driver.OraclePreparedStatement.executeInternal(OraclePreparedStatement.java:3001)
         at oracle.jdbc.driver.OraclePreparedStatement.executeUpdate(OraclePreparedStatement.java:3074)
         at oracle.jdbc.driver.OracleCallableStatement.executeUpdate(OracleCallableStatement.java:4309)
         at oracle.jbo.server.OracleSQLBuilderImpl.doEntityDML(OracleSQLBuilderImpl.java:427)
         at oracle.jbo.server.EntityImpl.doDML(EntityImpl.java:5740)
         at oracle.jbo.server.EntityImpl.postChanges(EntityImpl.java:4539)
         at oracle.apps.fnd.framework.server.OAEntityImpl.postChanges(Unknown Source)
         at oracle.jbo.server.DBTransactionImpl.doPostTransactionListeners(DBTransactionImpl.java:2996)
         at oracle.jbo.server.DBTransactionImpl.postChanges(DBTransactionImpl.java:2807)
         at oracle.jbo.server.DBTransactionImpl.commitInternal(DBTransactionImpl.java:1971)
         at oracle.jbo.server.DBTransactionImpl.commit(DBTransactionImpl.java:2173)
         at oracle.apps.fnd.framework.server.OADBTransactionImpl.commit(Unknown Source)
         at dem.oracle.apps.ont.wen.server.DemoAMImpl.saveTransaction(DemoAMImpl.java:44)
         at dem.oracle.apps.ont.wen.webui.SetmynewCO.processFormRequest(SetmynewCO.java:47)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequest(Unknown Source)
         at oracle.apps.fnd.framework.webui.OAWebBeanContainerHelper.processFormRequest(Unknown Source)
         at oracle.apps.fnd.framework.webui.OAPageLayoutHelper.processFormRequest(Unknown Source)
         at oracle.apps.fnd.framework.webui.beans.layout.OAPageLayoutBean.processFormRequest(Unknown Source)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequestChildren(Unknown Source)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequestChildren(Unknown Source)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequest(Unknown Source)
         at oracle.apps.fnd.framework.webui.OAWebBeanContainerHelper.processFormRequest(Unknown Source)
         at oracle.apps.fnd.framework.webui.beans.form.OAFormBean.processFormRequest(Unknown Source)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequestChildren(Unknown Source)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequestChildren(Unknown Source)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequest(Unknown Source)
         at oracle.apps.fnd.framework.webui.OAWebBeanContainerHelper.processFormRequest(Unknown Source)
         at oracle.apps.fnd.framework.webui.beans.OABodyBean.processFormRequest(Unknown Source)
         at oracle.apps.fnd.framework.webui.OAPageBean.processFormRequest(Unknown Source)
         at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(Unknown Source)
         at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(Unknown Source)
         at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(Unknown Source)
         at OA.jspService(_OA.java:71)
         at com.orionserver.http.OrionHttpJspPage.service(OrionHttpJspPage.java:59)
         at oracle.jsp.runtimev2.JspPageTable.service(JspPageTable.java:462)
         at oracle.jsp.runtimev2.JspServlet.internalService(JspServlet.java:594)
         at oracle.jsp.runtimev2.JspServlet.service(JspServlet.java:518)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
         at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:713)
         at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:370)
         at com.evermind.server.http.HttpRequestHandler.doProcessRequest(HttpRequestHandler.java:871)
         at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:453)
         at com.evermind.server.http.HttpRequestHandler.serveOneRequest(HttpRequestHandler.java:221)
         at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:122)
         at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:111)
         at oracle.oc4j.network.ServerSocketReadHandler$SafeRunnable.run(ServerSocketReadHandler.java:260)
         at oracle.oc4j.network.ServerSocketAcceptHandler.procClientSocket(ServerSocketAcceptHandler.java:239)
         at oracle.oc4j.network.ServerSocketAcceptHandler.access$700(ServerSocketAcceptHandler.java:34)
         at oracle.oc4j.network.ServerSocketAcceptHandler$AcceptHandlerHorse.run(ServerSocketAcceptHandler.java:880)
         at com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:303)
         at java.lang.Thread.run(Thread.java:595)
    Thanks,
    Mallikarjuna

    Mallikarjuna,
    PL/SQL: ORA-00942: table or view does not exist
    ORA-06550: line 1, column 7:As the error message specifies.. table XXCUR_TRADE_CUSTOMER_DETAILS doesnt exists.
    Create a synonyms for this table in apps schema with all the grants.
    Regards,
    Gyan

  • EntityImpl.lock() - intended behavior or bug?

    Hi all,
    For once, someone's complaining that they get too few RowInconsistentExceptions. I've run into what strikes me as odd behavior in EntityImpl.lock(). To me, it looks like a bug, but maybe it's intended in some way I'm missing, so I wanted to check here before going to metalink.
    Steps to reproduce (with 10.1.3.4):
    # Create a very simple BC project. All you really need is an application module with a single entity-based view object instance.
    # Set locking mode to "optimistic".
    # Run two separate instances of the BC tester. I'll call them instance A and B.
    # In both instances, open the view object so that its query is executed.
    # In instance A, change an attribute value and commit.
    # In instance B, on the same row, change an attribute value and try to commit. You'll get a RowInconsistentException, as expected.
    # Ignore the exception and try to commit instance B again. This time, the commit will go through, overwriting A's data change!
    So far as I can tell (after a fair bit of debugging and popping back) the problem isn't with entity state or anything similar; it's with how lock() acquuires a DB lock. This is what seems to be happening, starting with step 6 above:
    # Instance B requests a commit.
    # lock() is called on the appropriate EntityImpl.
    # lock() acquires a DB lock.
    # lock() checks whether there is data inconsistency. There is, so it throws a RowInconsistentException.
    # Instance B requests a commit again.
    # lock() is called on the appropriate EntityImpl.
    # The row is already locked in the DB, so lock() is effectively a no-op.
    # The commit proceeds.
    IMO, steps 3 and 4 are backwards. lock() shouldn't attempt to acquire a DB lock until after the consistency check has already happened. Either that, or it needs to re-check consistency even if a DB lock has already been acquired.
    Thoughts? If this is a bug, is there a workaround? If not, why is this behavior desired? Is there a way to turn it off?
    Thanks much,
    Avrom
    Edited by: Avrom on Sep 5, 2008 12:57 PM
    trying the post again

    OK. Hmm, a workaround would really be nice, for those cases where you might try programmatically to fix the problem but are not sure your fixes succeeded.
    (See, e.g., http://www.avromroyfaderman.com/2008/05/bring-back-the-hobgoblin-dealing-with-rowinconsistentexception/.)

  • JBO-25030 Exception

    Hi,
    I'm generating a JSP application with JHeadstart10.1.2.2 build13.
    I have defined in the JAG one basegroup with 6 detail groups. If I create a new record in one of the detail groups, at one detail group this is working fine, but at the other ones I get a exception:
    JBO-25030: Kan entiteit met eigenaarsrechten niet vinden of ongeldig maken
    The associations and viewlinks look all the same (No composite constructions in the association). I have just generated the pages and made no custom changes to the code.
    Does anyone have an idea how I can solve this?

    Here is some more info referring to this issue:
    Of course I have used JHeadstart build 32 and not 13.
    I'm getting the exception also when trying to create some rows programmatically for a new master row. The complete stacktrace is at the end of this post.
    The strange thing is that if I create the master row also programmatically and then call my custom method to create the child records it works fine. But when I create the master row in my generated screen and my custom method is called by the ADF framework, it gives me the JBO-25030 exception.
    Possible causes for this problem are more then welcome :-)
    The stacktrace:
    oracle.jbo.InvalidOwnerException: JBO-25030: Kan entiteit met eigenaarsrechten niet vinden of ongeldig maken.
            at oracle.jbo.server.EntityImpl.internalCreate(EntityImpl.java:528)
            at oracle.jbo.server.EntityImpl.create(EntityImpl.java:395)
            at logicacmg.adf.model.businessobjects.ResultEntityImpl.create(ResultEntityImpl.java:127)
            at oracle.jbo.server.EntityImpl.callCreate(EntityImpl.java:413)
            at oracle.jbo.server.ViewRowStorage.create(ViewRowStorage.java:849)
            at oracle.jbo.server.ViewRowImpl.create(ViewRowImpl.java:336)
            at oracle.jbo.server.ViewRowImpl.callCreate(ViewRowImpl.java:353)
            at oracle.jbo.server.ViewObjectImpl.createInstance(ViewObjectImpl.java:2549)
            at oracle.jbo.server.QueryCollection.createRowWithEntities(QueryCollection.java:1048)
            at oracle.jbo.server.ViewRowSetImpl.createRowWithEntities(ViewRowSetImpl.java:1724)
            at oracle.jbo.server.ViewRowSetImpl.doCreateAndInitRow(ViewRowSetImpl.java:1766)
            at oracle.jbo.server.ViewRowSetImpl.createRow(ViewRowSetImpl.java:1746)
            at com.hbr.rbs.referentie.model.service.RbsReferentieServiceImpl.initRbsEigenschappenView(RbsReferentieServiceImpl.java:271)
            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 oracle.adf.model.binding.DCInvokeMethodDef.invokeMethod(DCInvokeMethodDef.java:275)
            at oracle.adf.model.binding.DCDataControl.invokeMethod(DCDataControl.java:1609)
            at oracle.adf.model.binding.DCInvokeMethodDef.callMethod(DCInvokeMethodDef.java:169)
            at oracle.jbo.uicli.binding.JUCtrlActionBinding.doIt(JUCtrlActionBinding.java:1054)
            at oracle.adf.controller.struts.actions.StrutsPageLifecycle.invokeCustomMethod(StrutsPageLifecycle.java:364)
            at oracle.adf.controller.struts.actions.DataAction.invokeCustomMethod(DataAction.java:352)
            at oracle.jheadstart.controller.strutsadf.action.JhsDataAction.invokeCustomMethod(JhsDataAction.java:3833)
            at oracle.adf.controller.struts.actions.DataAction.invokeCustomMethod(DataAction.java:542)
            at oracle.adf.controller.lifecycle.PageLifecycle.handleLifecycle(PageLifecycle.java:134)
            at oracle.adf.controller.struts.actions.DataAction.handleLifecycle(DataAction.java:222)
            at oracle.jheadstart.controller.strutsadf.action.JhsDataAction.handleLifecycle(JhsDataAction.java:506)
            at logicacmg.adf.controller.strutsadf.action.ResultJhsDataAction.handleLifecycle(ResultJhsDataAction.java:180)
            at oracle.adf.controller.struts.actions.DataAction.execute(DataAction.java:153)
            at org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:484)
            at oracle.jheadstart.controller.strutsadf.JhsRequestProcessor.processActionPerform(JhsRequestProcessor.java:118)
            at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:274)
            at oracle.jheadstart.controller.strutsadf.JhsRequestProcessor.process(JhsRequestProcessor.java:385)
            at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1482)
            at oracle.jheadstart.controller.strutsadf.JhsActionServlet.process(JhsActionServlet.java:130)
            at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:525)
            at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
            at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
            at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:765)
            at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:317)
            at com.evermind.server.http.ServletRequestDispatcher.forward(ServletRequestDispatcher.java:220)
            at org.apache.struts.action.RequestProcessor.doForward(RequestProcessor.java:1069)
            at org.apache.struts.tiles.TilesRequestProcessor.doForward(TilesRequestProcessor.java:274)
            at org.apache.struts.action.RequestProcessor.processForwardConfig(RequestProcessor.java:455)
            at org.apache.struts.tiles.TilesRequestProcessor.processForwardConfig(TilesRequestProcessor.java:320)
            at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:279)
            at oracle.jheadstart.controller.strutsadf.JhsRequestProcessor.process(JhsRequestProcessor.java:385)
            at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1482)
            at oracle.jheadstart.controller.strutsadf.JhsActionServlet.process(JhsActionServlet.java:130)
            at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:525)
            at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
            at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
            at com.evermind.server.http.ResourceFilterChain.doFilter(ResourceFilterChain.java:65)
            at oracle.jheadstart.controller.CharacterEncodingFilter.doFilter(CharacterEncodingFilter.java:176)
            at com.evermind.server.http.EvermindFilterChain.doFilter(EvermindFilterChain.java:16)
            at oracle.adf.model.servlet.ADFBindingFilter.doFilter(ADFBindingFilter.java:239)
            at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:600)
            at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:317)
            at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:790)
            at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:270)
            at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:112)
            at com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:192)
            at java.lang.Thread.run(Thread.java:534)Here the piece of code that create the child records:
    (RbsGseStoffenView is the master view and RbsGseEigenschappenView is the detail view)
            Row currentRow = getRbsGseStoffenView().getCurrentRow();
            /* If current row is found ... */
            if (!hasPendingDataPosts() && currentRow != null)
             _log.debug("Creating new GsfEigenschappenView row for GseId " +          currentRow.getAttribute("Id"));
                        // ... create row with current GseId
                        // note: Row gets created on middle-tier, not in database.
                        Row newRow = ((RbsGseStoffenViewRowImpl) currentRow)
                                      .getRbsGseEigenschappenView()
                                      .createRow();
                        newRow.setAttribute("RijIdEgp", egpRows.getAttribute("RijId"));
    ((RbsGseStoffenViewRowImpl) currentRow).getRbsGseEigenschappenView().insertRow(newRow);

Maybe you are looking for

  • Transport sequence order 7.0

    Hello friends, First time transport in BI 7.0 and needed your help. I would like to know in wht order should my BI transports be in so that i can also have my datasource replica included: 1) InfoObjects 2) Datasource (my custom datasource) 3)Transfor

  • Referencing a char column in another query

    HI I have 2 queries. My child query returns char data which needs to be referenced in the main query. Is it possible to access this data from my main query. I know its possible with numbers using summary cols. TIA TIM

  • HR Letters Forms

    Hi Gurus,    Please help me regarding in this issue. This is my first Abap HR programs and I have the requirement that i need to develop the letters like confirmation in promotion, offer letter like this. I need to develop a script for this. Please t

  • Cannot remember admin password

    Won't let me use my apple id. Please help

  • AK Loader file Upload Error

    Hi, I am facing problem at the time of patching on 11.5.10 system. ==========AD Worker ERROR================= Calling /u2/oracle/prodcomn/util/java/1.4/j2sdk1.4.2_04/bin/java ... Start of Core Modules - AK Loader file Upload Session. TUE 01 08 2013 1