TreeTable within Panel Collection - 'Expand All' throws error:

JDeveloper Version: 11.1.1.3
A TreeTable is enclosed with in Panel Collection component, and when we are using the 'Expand All' feature available in 'View' Menu option, it throws the following error:
java.lang.UnsupportedOperationException
     at org.apache.myfaces.trinidad.model.RowKeySetTreeImpl$PathIterator.remove(RowKeySetTreeImpl.java:730)
     at java.util.AbstractSet.removeAll(AbstractSet.java:158)
     at org.apache.myfaces.trinidad.model.RowKeySetTreeImpl.removeAll(RowKeySetTreeImpl.java:175)
     at oracle.adfinternal.view.faces.renderkit.rich.TableRendererUtils.queueRowDisclosureEvent(TableRendererUtils.java:1114)
     at oracle.adfinternal.view.faces.renderkit.rich.TreeRendererUtils.decodeDiscloseAllEvent(TreeRendererUtils.java:1145)
     at oracle.adfinternal.view.faces.renderkit.rich.TreeTableRenderer.decodeInternal(TreeTableRenderer.java:573)
     at oracle.adf.view.rich.render.RichRenderer.decode(RichRenderer.java:293)
     at org.apache.myfaces.trinidad.component.UIXComponentBase.__rendererDecode(UIXComponentBase.java:1121)
     at org.apache.myfaces.trinidad.component.UIXComponentBase.decode(UIXComponentBase.java:715)
     at org.apache.myfaces.trinidad.component.UIXTreeTable.decode(UIXTreeTable.java:134)
     at org.apache.myfaces.trinidad.component.UIXCollection.processDecodes(UIXCollection.java:188)
     at org.apache.myfaces.trinidad.component.UIXComponentBase.decodeChildrenImpl(UIXComponentBase.java:1002)
     at org.apache.myfaces.trinidad.component.UIXComponentBase.decodeChildren(UIXComponentBase.java:988)
     at org.apache.myfaces.trinidad.component.UIXComponentBase.processDecodes(UIXComponentBase.java:813)
     at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl$ApplyRequestValuesCallback.invokeContextCallback(LifecycleImpl.java:1175)
     at org.apache.myfaces.trinidad.component.UIXComponentBase.invokeOnNamingContainerComponent(UIXComponentBase.java:1361)
     at org.apache.myfaces.trinidad.component.UIXDecorateCollection.invokeOnComponent(UIXDecorateCollection.java:121)
     at org.apache.myfaces.trinidad.component.UIXComponentBase.invokeOnChildrenComponents(UIXComponentBase.java:1333)
     at org.apache.myfaces.trinidad.component.UIXComponentBase.invokeOnComponent(UIXComponentBase.java:1427)
     at org.apache.myfaces.trinidad.component.UIXComponentBase.invokeOnChildrenComponents(UIXComponentBase.java:1333)
     at org.apache.myfaces.trinidad.component.UIXComponentBase.invokeOnComponent(UIXComponentBase.java:1427)
     at org.apache.myfaces.trinidad.component.UIXComponentBase.invokeOnChildrenComponents(UIXComponentBase.java:1333)
     at org.apache.myfaces.trinidad.component.UIXComponentBase.invokeOnNamingContainerComponent(UIXComponentBase.java:1383)
     at oracle.adf.view.rich.component.fragment.UIXRegion.invokeOnComponent(UIXRegion.java:544)
     at org.apache.myfaces.trinidad.component.UIXComponentBase.invokeOnChildrenComponents(UIXComponentBase.java:1333)
     at org.apache.myfaces.trinidad.component.UIXComponentBase.invokeOnComponent(UIXComponentBase.java:1427)
     at org.apache.myfaces.trinidad.component.UIXComponentBase.invokeOnChildrenComponents(UIXComponentBase.java:1333)
     at org.apache.myfaces.trinidad.component.UIXComponentBase.invokeOnComponent(UIXComponentBase.java:1427)
     at org.apache.myfaces.trinidad.component.UIXComponentBase.invokeOnChildrenComponents(UIXComponentBase.java:1333)
     at org.apache.myfaces.trinidad.component.UIXComponentBase.invokeOnComponent(UIXComponentBase.java:1427)
     at oracle.adf.view.rich.component.rich.RichDocument.invokeOnComponent(RichDocument.java:161)
     at javax.faces.component.UIComponent.invokeOnComponent(UIComponent.java:731)
     at javax.faces.component.UIComponentBase.invokeOnComponent(UIComponentBase.java:675)
     at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl._executePhase(LifecycleImpl.java:313)
     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)
Any ideas.
Thanks,
Navaneeth

JDeveloper Version: 11.1.1.3
A TreeTable is enclosed with in Panel Collection component, and when we are using the 'Expand All' feature available in 'View' Menu option, it throws the following error:
java.lang.UnsupportedOperationException
     at org.apache.myfaces.trinidad.model.RowKeySetTreeImpl$PathIterator.remove(RowKeySetTreeImpl.java:730)
     at java.util.AbstractSet.removeAll(AbstractSet.java:158)
     at org.apache.myfaces.trinidad.model.RowKeySetTreeImpl.removeAll(RowKeySetTreeImpl.java:175)
     at oracle.adfinternal.view.faces.renderkit.rich.TableRendererUtils.queueRowDisclosureEvent(TableRendererUtils.java:1114)
     at oracle.adfinternal.view.faces.renderkit.rich.TreeRendererUtils.decodeDiscloseAllEvent(TreeRendererUtils.java:1145)
     at oracle.adfinternal.view.faces.renderkit.rich.TreeTableRenderer.decodeInternal(TreeTableRenderer.java:573)
     at oracle.adf.view.rich.render.RichRenderer.decode(RichRenderer.java:293)
     at org.apache.myfaces.trinidad.component.UIXComponentBase.__rendererDecode(UIXComponentBase.java:1121)
     at org.apache.myfaces.trinidad.component.UIXComponentBase.decode(UIXComponentBase.java:715)
     at org.apache.myfaces.trinidad.component.UIXTreeTable.decode(UIXTreeTable.java:134)
     at org.apache.myfaces.trinidad.component.UIXCollection.processDecodes(UIXCollection.java:188)
     at org.apache.myfaces.trinidad.component.UIXComponentBase.decodeChildrenImpl(UIXComponentBase.java:1002)
     at org.apache.myfaces.trinidad.component.UIXComponentBase.decodeChildren(UIXComponentBase.java:988)
     at org.apache.myfaces.trinidad.component.UIXComponentBase.processDecodes(UIXComponentBase.java:813)
     at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl$ApplyRequestValuesCallback.invokeContextCallback(LifecycleImpl.java:1175)
     at org.apache.myfaces.trinidad.component.UIXComponentBase.invokeOnNamingContainerComponent(UIXComponentBase.java:1361)
     at org.apache.myfaces.trinidad.component.UIXDecorateCollection.invokeOnComponent(UIXDecorateCollection.java:121)
     at org.apache.myfaces.trinidad.component.UIXComponentBase.invokeOnChildrenComponents(UIXComponentBase.java:1333)
     at org.apache.myfaces.trinidad.component.UIXComponentBase.invokeOnComponent(UIXComponentBase.java:1427)
     at org.apache.myfaces.trinidad.component.UIXComponentBase.invokeOnChildrenComponents(UIXComponentBase.java:1333)
     at org.apache.myfaces.trinidad.component.UIXComponentBase.invokeOnComponent(UIXComponentBase.java:1427)
     at org.apache.myfaces.trinidad.component.UIXComponentBase.invokeOnChildrenComponents(UIXComponentBase.java:1333)
     at org.apache.myfaces.trinidad.component.UIXComponentBase.invokeOnNamingContainerComponent(UIXComponentBase.java:1383)
     at oracle.adf.view.rich.component.fragment.UIXRegion.invokeOnComponent(UIXRegion.java:544)
     at org.apache.myfaces.trinidad.component.UIXComponentBase.invokeOnChildrenComponents(UIXComponentBase.java:1333)
     at org.apache.myfaces.trinidad.component.UIXComponentBase.invokeOnComponent(UIXComponentBase.java:1427)
     at org.apache.myfaces.trinidad.component.UIXComponentBase.invokeOnChildrenComponents(UIXComponentBase.java:1333)
     at org.apache.myfaces.trinidad.component.UIXComponentBase.invokeOnComponent(UIXComponentBase.java:1427)
     at org.apache.myfaces.trinidad.component.UIXComponentBase.invokeOnChildrenComponents(UIXComponentBase.java:1333)
     at org.apache.myfaces.trinidad.component.UIXComponentBase.invokeOnComponent(UIXComponentBase.java:1427)
     at oracle.adf.view.rich.component.rich.RichDocument.invokeOnComponent(RichDocument.java:161)
     at javax.faces.component.UIComponent.invokeOnComponent(UIComponent.java:731)
     at javax.faces.component.UIComponentBase.invokeOnComponent(UIComponentBase.java:675)
     at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl._executePhase(LifecycleImpl.java:313)
     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)
Any ideas.
Thanks,
Navaneeth

Similar Messages

  • Collections - Delete Entry Throws Error

    I'm using four collections on a form. When the user updates the form by selecting the "blank" at the top of the select list one entry in one of the collections, the user gets an integrity constraint error - parent key not found. The collection uses a select list from an LOV. I suspect the item in the collection is displaying the blank but not really getting dropped? When I created these collections EONS ago, I created '-None-' as an item in the LOV as a work-around so the user could choose when deleting the item. We are now finally going live and I want to clean this up.
    Any ideas?
    Thanks and have a great weekend!
    Alexandra

    Sorry - don't know why 'code' '/code' didn't work...
    Hi Peter - I get an integrity constraint error, I think because though I'm deleting the display of the item in the collection, it's not really being deleted???
    code
    ORA-02291: integrity constraint (SPICE_HUNTER1.DOC_SUBJECT_REF_FK1) violated - parent key not found
    /code
    First of all, I have a getID process setup Before Header to dump the parent ID into the form so that the collections have an ID on which to link to the main form. The form has a bunch of fields above the collections and there are four collections at the bottom of the page, and is used to catalog documents. Sooooo the main part of the form above has fields for the form number, title, type, etc. and then each collection at the bottom of the form holds specfic references. The example below holds subject references. The other three hold lists of who's responsible, associated documents to the main form, and to whom the document is distributed. The collections work beautifully except when the user needs to delete one of the items. I set these up a long time ago and I'm now sure for the reason of this error, I just added 'None' to LOV's of each collection so that if the user needed to delete an entry, '-None-' could be selected. I tried using '%'||'null' in the LOV when creating the form, but couldn't get it to work, but I'm thinking this may be close to what I need to do?
    And now that I think about it, if there are five items in the list and the user deletes the third item, it would be great if the list could refresh so there's not a hole in the list, i.e., One, Two, BLANK, Four, Five.
    Thanks for your help!
    code
    ORA-02291: integrity constraint (SPICE_HUNTER1.DOC_SUBJECT_REF_FK1) violated - parent key not found
    /code
    Here's how I have each collection set up:
    Create the Dataset Process - After Header
    code
    apex_collection.create_or_truncate_collection
    (p_collection_name => 'MY_SUBJECT_COLL');
    DECLARE
    v_id NUMBER;
    var1 NUMBER;
    var2 NUMBER;
    var3 NUMBER;
    rw_ct INTEGER;
    cursor c_prepop is
    select subject_ref_id, doc_info_id, docno_id, subject_id
    from DOC_SUBJECT_REF
    where DOCNO_ID = :P3_DOCNO_ID
    ORDER BY 1;
    i NUMBER;
    cntr NUMBER := 15;
    BEGIN
    select COUNT(*) into rw_ct from DOC_SUBJECT_REF
    where DOCNO_ID = :P3_DOCNO_ID
    ORDER BY 1;
    cntr := cntr - rw_ct;
    OPEN c_prepop;
    LOOP
    FETCH c_prepop into v_id, var1, var2, var3;
    EXIT WHEN c_prepop%NOTFOUND;
    APEX_COLLECTION.ADD_MEMBER(
    p_collection_name => 'MY_SUBJECT_COLL',
    p_c001 => v_id,
    p_c002 => var1,
    p_c003 => var2,
    p_c004 => var3
    END LOOP;
    CLOSE c_prepop;
    for i in 1..cntr loop
    APEX_COLLECTION.ADD_MEMBER(
    p_collection_name => 'MY_SUBJECT_COLL',
    p_c001 => 0, --subject_ref_id
    p_c002 => :P3_DOC_INFO_ID,
    p_c003 => :P3_DOCNO_ID,
    p_c004 => 0
    end loop;
    END;
    /code
    Create the Form
    code
    SELECT APEX_ITEM.SELECT_LIST_FROM_LOV(4, c004,'SUBJECT', NULL,'YES', 0, '') SUBJECT
    FROM APEX_COLLECTIONS
    WHERE COLLECTION_NAME = 'MY_SUBJECT_COLL'
    /code
    Capture the Data
    code
    declare
    j pls_integer :=0;
    begin
    for j1 in(
    select seq_id from apex_collections
    where collection_name = 'MY_SUBJECT_COLL'
    order by seq_id)loop
    j:=j+1;
    apex_collection.update_member_attribute(p_collection_name=>'MY_SUBJECT_COLL', p_seq=>j1.seq_id,p_attr_number=>4,p_attr_value=>wwv_flow.g_f04(j));
    end loop;
    end;
    /code
    Write data to the DB
    code
    declare
    begin
    for y in (select TO_NUMBER(c001) x_key, TO_NUMBER(c002) x_1, TO_NUMBER(c003) x_2, TO_NUMBER(c004) x_3
    FROM APEX_COLLECTIONS
    WHERE COLLECTION_NAME = 'MY_SUBJECT_COLL' AND c004 IS NOT NULL ORDER BY x_key) loop -- Updated
    --WHERE COLLECTION_NAME = 'MY_SUBJECT_COLL' ORDER BY x_key) loop
    if y.x_key = 0 and y.x_3 > 0
    THEN
    insert into DOC_SUBJECT_REF(subject_ref_id, doc_info_id, docno_id, subject_id)
    values(DOC_SUBJECT_REF_SEQ.nextval, y.x_1, y.x_2, y.x_3);
    elsif y.x_key > 0 then
    update DOC_SUBJECT_REF
    set
    doc_info_id = y.x_1,
    docno_id = y.x_2,
    subject_id = y.x_3
    where subject_ref_id = y.x_key;
    else
    DBMS_OUTPUT.PUT_LINE ('There’s an error.');
    end if;
    end loop;
    end;
    /code
    Edited by: userRRRYB on Apr 11, 2011 3:03 PM

  • Air apps all throw errors in iOS simulator with Flash Feb Update

    None of my app run correctly on the February update for Flash CC. I get type 1009 errors on new and existing apps.
    Anyone else have this problem?
    Craig

    Seems like a permission repair and reboot did the trick.....

  • Tree table-initially expand all nodes raises error when closing a node 11g

    Hello,
    Frank Nimphius posted a blog entry about how to initially display all the nodes in a tree or table here:
    [http://thepeninsulasedge.com/frank_nimphius/2007/12/19/adf-faces-rc-initially-expanding-all-nodes-in-a-tree-or-tree-table/|http://thepeninsulasedge.com/frank_nimphius/2007/12/19/adf-faces-rc-initially-expanding-all-nodes-in-a-tree-or-tree-table/]
    This works very well. However, when the user tries to close a node, a NullPointerException is thrown.
    Below is the stacktrace.
    Does anyone know how to work around that issue?
    java.lang.NullPointerException
         at org.apache.myfaces.trinidad.model.RowKeySetTreeImpl$Search.find(RowKeySetTreeImpl.java:608)
         at org.apache.myfaces.trinidad.model.RowKeySetTreeImpl._setContained(RowKeySetTreeImpl.java:496)
         at org.apache.myfaces.trinidad.model.RowKeySetTreeImpl.add(RowKeySetTreeImpl.java:97)
         at oracle.adfinternal.view.faces.renderkit.rich.TableRendererUtils.decodeDisclosedRowKeys(TableRendererUtils.java:774)
         at oracle.adfinternal.view.faces.renderkit.rich.table.BaseTableRenderer.decodeIncompatiblePropertyKey(BaseTableRenderer.java:198)
         at oracle.adf.view.rich.render.RichRenderer.decode(RichRenderer.java:203)
         at org.apache.myfaces.trinidad.component.UIXComponentBase.__rendererDecode(UIXComponentBase.java:1089)
         at org.apache.myfaces.trinidad.component.UIXComponentBase.decode(UIXComponentBase.java:714)
         at org.apache.myfaces.trinidad.component.UIXTreeTable.decode(UIXTreeTable.java:133)
         at org.apache.myfaces.trinidad.component.UIXCollection.processDecodes(UIXCollection.java:193)
         at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl$ApplyRequestValuesCallback.invokeContextCallback(LifecycleImpl.java:1113)
         at org.apache.myfaces.trinidad.component.UIXCollection.invokeOnComponent(UIXCollection.java:1030)
         at javax.faces.component.UIComponent.invokeOnComponent(UIComponent.java:731)
         at javax.faces.component.UIComponent.invokeOnComponent(UIComponent.java:731)
         at oracle.adf.view.rich.component.fragment.ContextSwitchingComponent.invokeOnComponent(ContextSwitchingComponent.java:153)
         at javax.faces.component.UIComponent.invokeOnComponent(UIComponent.java:731)
         at javax.faces.component.UIComponent.invokeOnComponent(UIComponent.java:731)
         at javax.faces.component.UIComponent.invokeOnComponent(UIComponent.java:731)
         at oracle.adf.view.rich.component.fragment.ContextSwitchingComponent.invokeOnComponent(ContextSwitchingComponent.java:153)
         at oracle.adf.view.rich.component.fragment.UIXPageTemplate.invokeOnComponent(UIXPageTemplate.java:208)
         at javax.faces.component.UIComponent.invokeOnComponent(UIComponent.java:731)
         at javax.faces.component.UIComponent.invokeOnComponent(UIComponent.java:731)
         at javax.faces.component.UIComponent.invokeOnComponent(UIComponent.java:731)
         at javax.faces.component.UIComponentBase.invokeOnComponent(UIComponentBase.java:664)
         at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl._executePhase(LifecycleImpl.java:303)
         at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:175)
         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:292)
         at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:26)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:42)
         at oracle.adf.model.servlet.ADFBindingFilter.doFilter(ADFBindingFilter.java:181)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:42)
         at oracle.adfinternal.view.faces.webapp.rich.RegistrationFilter.doFilter(RegistrationFilter.java:85)
         at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl$FilterListChain.doFilter(TrinidadFilterImpl.java:279)
         at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl._invokeDoFilter(TrinidadFilterImpl.java:239)
         at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl._doFilterImpl(TrinidadFilterImpl.java:196)
         at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl.doFilter(TrinidadFilterImpl.java:139)
         at org.apache.myfaces.trinidad.webapp.TrinidadFilter.doFilter(TrinidadFilter.java:92)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:42)
         at edu.wisc.csa.web.ApplicationSessionExpiryFilter.doFilter(ApplicationSessionExpiryFilter.java:66)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:42)
         at edu.wisc.csa.web.ResponseHeaderFilter.doFilter(ResponseHeaderFilter.java:36)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:42)
         at oracle.security.jps.wls.JpsWlsFilter$1.run(JpsWlsFilter.java:85)
         at java.security.AccessController.doPrivileged(Native Method)
         at oracle.security.jps.util.JpsSubject.doAsPrivileged(JpsSubject.java:257)
         at oracle.security.jps.wls.JpsWlsSubjectResolver.runJaasMode(JpsWlsSubjectResolver.java:250)
         at oracle.security.jps.wls.JpsWlsFilter.doFilter(JpsWlsFilter.java:100)
         at oracle.security.jps.ee.http.JpsFilter.doFilter(JpsFilter.java:65)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:42)
         at weblogic.servlet.internal.RequestEventsFilter.doFilter(RequestEventsFilter.java:27)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:42)
         at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3496)
         at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
         at weblogic.security.service.SecurityManager.runAs(Unknown Source)
         at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2180)
         at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2086)
         at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1406)
         at weblogic.work.ExecuteThread.execute(ExecuteThread.java:201)
         at weblogic.work.ExecuteThread.run(ExecuteThread.java:173)

    OK I have tried Frank's suggestion about the 2 entries in the managed bean and it works but I cannot collapse my child node !
    I have a Master-Detail-Detail setup.
    In the Grandparent I have this :
    RowKeySet rks = new RowKeySet(true);
    table1.setDisclosureState(rks);
    this.grandParentTable = table1;
    and in my Parent table I have this :
    RowKeySet rks = new RowKeySet(true);
    table2.setDisclosureState(rks);
    this.parentTable = table2;
    ie the same.
    In my child I have nothing just the default accessors.
    The collapse works OK for the Grandparent but when I click Hide for the Parent it does not do anything - no error message either.
    cheers

  • Tree error, after Expand All, then collapsing any node, ORA-6502/6512

    Has anyone seen this problem with the Tree?
    Normal Tree mode works great, can expand and collapse nodes with no problem.
    I can Expand All, Collapse All, and Reset Tree without problems.
    However, if I select Expand All, and then try to collapse any node, I get this error.
    Unexpected error ORA-06502: PL/SQL: numeric or value error: character string buffer too small ORA-06512: at line 1
    My database is 9.2.0.4, and there are 1,138 records in my tree table, with id NUMBER(8), pid NUMBER(8), and name VARCHAR2(100).
    my tree query is:
    select "ID" id,
    "PID" pid,
    "NAME" name,
    'f?p=150:2:&SESSION.::NO::P2_PARAM_ID:'||"ID" link,
    null a1,
    null a2
    from "#OWNER#"."PARAM_TREE"
    order by 3
    My root tree query is:select "ID" id, "PID" pid, "NAME" name, null link, null a1, null a2 from "#OWNER#"."PARAM_TREE" where id=0
    I checked the link to collapse, it was the same in normal mode or Expand All:http://umbriel.xxx.com:7777/pls/EDIWS_GUI_DEV/f?p=150:1:9757663040679228582:CONTRACT,69
    Any ideas, I searched in the forum, saw something on 9.2.0.6 that sounded similar, but it was specific to 9.2.0.6, not 9.2.0.4..
    Thanks, Joe

    Hi all,
    I have created a tree with over 20000 entries but I dont know how many nodes there are. I am using APEX 3.0.1.
    Whenever EXPAND ALL ist pressed I am getting this error:
    Unexpected error ORA-06502: PL/SQL: numeric or value error: character string buffer too small.
    I am also using DIV together with javascript in the tree region so that the selected node is always on top of the page.
    like you mentioned. Does this seem like a bug too you?
    Regards,
    Denise

  • Alerts - All Metrics Errors - Health Check - Collection Failure

    I have database instances with Health Check - Collection Failures.
    These errors are almost 30 days old. I originally received the Health Check errors because the credentials were not set properly. I then set them but the errors have not aged out.
    Does anyone know how can I clear out the Health Check errors?
    When I look at All Metrics, Health Check for one of these databases, the Last Upload date is very old.
    Maybe I can I force a re-collection?

    Hi ,
    I had the same problem and posted the same ...question...
    So , the link will help you to solve the problem
    Clear the Alert list
    unless somebody else has another idea...!!!!!!!!!!!
    Regards and hope this will help,
    Simon

  • Collapse all below and expand all below

    hi,
    Expand all below & collapse all below action are not working for <af:treeTable/> UI component which are provide by <af:panelCollection/> component by default (we dont have control over them). But Action 'expand all below' on selected row is just expanding itself (selected one.)
    Here is the code of implement of treeTable
    <af:panelAccordion inlineStyle="width:100%;" discloseMany="true"
    discloseNone="true" id="regional_panel1">
    <af:panelCollection
    inlineStyle="width:100%;height:100%"
    id="regional_collection_table_tags">
    <af:treeTable rowSelection="single" contextMenuId="treeTableMenu"
    rowBandingInterval="1" inlineStyle="width:100%;"
    columnStretching="last"
    value="#{bindings.result.treeModel}" var="node"
    id="TagTree"
    binding="#{pageFlowScope.TagHelper.tagTree}"
    selectionListener="#{pageFlowScope.TagHelper.tableSelectionListener}">
    <f:facet name="nodeStamp">
    <af:column headerText="#{bundle.TAG_NAME}">
    <af:outputText value="#{node.name}"/>
    </af:column>
    </f:facet>
    <af:column headerText="#{bundle.DESCRIPTION}">
    <af:outputText value="#{node.description}"/>
    </af:column>
    </af:treeTable>
    </af:panelCollection
    >
    </af:panelAccordion>
    Note: Collapse All & Expand All actions are working fine which are also provide by <af:panelCollection/> component.
    Please provide me any info to fix this.
    kind revert me for more info.
    Thank
    KSB

    Hi,
    your panel accordion does not have a showDetail item as a child containing the panelCollection, The IDE should have flagged this as an error. Your problem doesn't reproduce for me
    Frank
    Ps.: component ID should be kept short (less than 7 characters) because they add to the download size and thus contribute to performance degradation

  • Order by the names in hashMaps which are contained within a collection

    Hi All,
    Is there a way to order by the names in hashMaps which are contained within a collection?
    Collection-->hmp1(nrPerson1, nameB);
    hmp2(nrPerson2, nameC);
    hmp3(nrPerson3, nameA);
    Now what i need to display is (nrPerson3,nameA), (nrPerson1,nameB), (nrPerson2, nameC)...
    Any suggestion will be greatly appreciated!
    Shuaibing

    I just set the TreeSet with the values as you suggested, but the results seems to the same as usual, Can you check the following codes? I think I need have to give a initial parameter for the TreeSet constructor, but I do not know how to write the Comparator.
    public String getIntermediaryCO(){
    Contact contact=new Contact();
              Collection colnNrContactsInterCo=contact.getAllIntermediaryCompany();
              //test
              TreeSet treeSet=new TreeSet();
              HashMap hmpForOrder=new HashMap();
              if(colnNrContactsInterCo!=null && !colnNrContactsInterCo.isEmpty()){
                   Iterator iter=colnNrContactsInterCo.iterator();
                   while(iter.hasNext()){
                           HashMap hmp=(HashMap)iter.next();
                           hmpForOrder.put(hmp.get("name"),hmp.get("nrContact"));
              treeSet.add(hmpForOrder.keySet());
              //print the ordered, unique set
            Iterator iterator = treeSet.iterator();
            while( iterator.hasNext() ) {           
                System.out.println( "the list of sorted intermediary companies' names="+iterator.next() );
              //test
    public Collection getAllIntermediaryCompany(){
               Collection colnContacts=new ArrayList();
               ContactCov contactCov=new ContactCov();
             try{
                    String sql="SELECT DISTINCT NR_CONTACT from CONTACT_TYPE where CD_CONTACT_TYPE=5";
                    jdbc = new JDBCConnection("1");
                    rs=jdbc.executeQuery(sql);
                    if(rs!=null){
                         while(rs.next()){
                                   String nrContact=rs.getString("NR_CONTACT");
                                   VOContact voContact=contactCov.getContactByNrContact(nrContact);
                                   if(voContact!=null){
                                        HashMap hmp=new HashMap();
                                        hmp.put("name",voContact.getName());
                                        hmp.put("nrContact",nrContact);
                                        colnContacts.add(hmp);
                  }catch(Exception e){
                      logger.error(e.toString());
                   }finally{
                       try{
                            if(rs!=null)rs.close();
                            if(jdbc!=null)jdbc.close();
                       }catch(Exception e){}
               return colnContacts;     
            }     

  • Getting objects on panel to expand proportionatel

    Hey there.
    I was wondering what I have to do in order to get the various components on my panel to expand in similar proportions when maximised or dragged to a larger frame size.
    Thanks
    Dane

    I seem to have had that problem as well, and I also seem to have sorted it using a variety of layouts, but the problem is that I don't know how exactly I sorted it out. It is very confusing as I would like to know . Here is my code if anyone can possibly decipher it!
    public class OcrGUI extends JFrame implements ActionListener {
        // declaration of various instance variables
        private JTextArea area;
        private JLabel label;
        private JEditorPane URLpane;
        private JButton browseButton, generateButton;
        private JTextField fileField;
        private JLabel inputFileLabel;
        private JScrollPane scrollPane1, scrollPane2;
        private JMenuBar menuBar;
        private JMenu menuFile;
        private JMenuItem open,quitProg;
        private JFileChooser Chooser;
        private String inputType = null;
        public void actionPerformed(ActionEvent ae) {
            if (ae.getSource() == open) {
                this.browseFile();
            if (ae.getSource() == browseButton) {
                this.browseFile();
            if (ae.getSource() == quitProg) {
                this.quitProgram();
        private void quitProgram() {
            String s1 = "Yes";
            String s2 = "Cancel";
            Object[] options1 =
            { s1, s2};
            int n = JOptionPane.showOptionDialog(this,
            "Are you sure you want to quit?", "Quit",
            JOptionPane.YES_NO_OPTION, JOptionPane.QUESTION_MESSAGE, null,
            options1, s2);
            if (n == JOptionPane.YES_OPTION) {
                System.exit(0);
        private void browseFile() {
            Chooser = new JFileChooser();
            if (Chooser.showOpenDialog(null) == JFileChooser.APPROVE_OPTION) {
                File inF = Chooser.getSelectedFile();
                try {
                    int x =1;
                catch (Exception e) {
                    e.printStackTrace();
                    JOptionPane.showMessageDialog(this, "Invalid file format",
                    "Error", JOptionPane.ERROR_MESSAGE);
        public void insertImage() throws MalformedURLException {
            URL url = new URL("http://taxonomy.zoology.gla.ac.uk/~rdmp1c/teaching/Msc_IT/big.gif");
            JLabel label = new JLabel(new ImageIcon(url));
        public OcrGUI() {
            this.setDefaultCloseOperation(EXIT_ON_CLOSE);
            this.myLayout();
            this.initLayout();
        private void myLayout() {
            menuBar = new javax.swing.JMenuBar();
            menuFile = new javax.swing.JMenu();
            menuFile.setText("File");
            menuBar.add(menuFile);
            open = new JMenuItem("Open");
            quitProg = new JMenuItem("Quit");
            open.addActionListener(this);
            quitProg.addActionListener(this);
            menuFile.add(open);
            menuFile.addSeparator();
            menuFile.add(quitProg);
            setJMenuBar(menuBar);
            Container pane = this.getContentPane();
            this.getContentPane().setLayout(new BorderLayout());
            //top
            JPanel one = new JPanel();
            one.setLayout(new BorderLayout());
    //        label = new JLabel("                                                                                                                                                                                                      ");
            try {
                URL url = new URL("http://taxonomy.zoology.gla.ac.uk/~rdmp1c/teaching/Msc_IT/big.gif");
                label = new JLabel(new ImageIcon(url));
            } catch (Throwable t)
            {t.printStackTrace();}       
            scrollPane1 = new JScrollPane(label);
            scrollPane1.setHorizontalScrollBarPolicy(javax.swing.JScrollPane.HORIZONTAL_SCROLLBAR_AS_NEEDED);
            scrollPane1. setVerticalScrollBarPolicy(javax.swing.JScrollPane.VERTICAL_SCROLLBAR_ALWAYS);
            one.add(scrollPane1);
            pane.add(one, "Center");
            //middle
            JPanel two = new JPanel();
            two.setLayout(new GridLayout(2,1));
            JPanel filler2 = new JPanel();
            FlowLayout inputPanelLayout = new java.awt.FlowLayout();
            filler2.setLayout(inputPanelLayout);
            inputPanelLayout.setHgap(50);
            inputPanelLayout.setVgap(10);
            inputFileLabel = new JLabel("Input File:", JLabel.LEFT);
            fileField = new JTextField();
            fileField.setColumns(30);
            browseButton = new JButton("Browse");
            browseButton.addActionListener(this);
            fileField.setToolTipText("Let's you input a file");
            browseButton.setToolTipText("Browse here");
            Border loweredetched;
            loweredetched = BorderFactory.createEtchedBorder(EtchedBorder.LOWERED);
            TitledBorder border = BorderFactory.createTitledBorder(loweredetched, "Input File Selection");
            border.setTitleJustification(TitledBorder.LEFT);
            border.setTitlePosition(TitledBorder.DEFAULT_POSITION);
            filler2.setBorder(border);
            filler2.add(inputFileLabel);
            filler2.add(fileField);
            filler2.add(browseButton);
            //bottom
            JPanel filler3 = new JPanel();
            filler3.setLayout(new java.awt.FlowLayout());
            generateButton = new JButton("Generate");
            generateButton.setToolTipText("Generates Output");
            filler3.add(generateButton);
            two.add(filler2);
            two.add(filler3);
            pane.add(two, "South");
        private void initLayout() {
            this.setTitle("OCR");
            this.setSize(700, 500);

  • Create Custom tree table panel collection toolbar buttons

    Dear all
    i have a tree table inside panel collection,inside the toolbar there is some buttons like show as top ,show top, expand all ....etc
    what i want to do is i want to call it from custom button not from the toolbar button.
    any suggestions
    Regards

    Hi,
    yes, it is. Its fixed in a the current build and should be fixed in TP4 (upcoming)
    Frank

  • How can I put all output error message into a String Variable ??

    Dear Sir:
    I have following code, When I run it and I press overflow radio button, It outputs following message:
    Caught RuntimeException: java.lang.NullPointerException
    java.lang.NullPointerException
         at ExceptionHandling.ExceptTest.actionPerformed(ExceptTest.java:72)
         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.JToggleButton$ToggleButtonModel.setPressed(JToggleButton.java:291)
         at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonListener.java:236)
         at java.awt.Component.processMouseEvent(Component.java:6038)
         at javax.swing.JComponent.processMouseEvent(JComponent.java:3260)
         at java.awt.Component.processEvent(Component.java:5803)
         at java.awt.Container.processEvent(Container.java:2058)
         at java.awt.Component.dispatchEventImpl(Component.java:4410)
         at java.awt.Container.dispatchEventImpl(Container.java:2116)
         at java.awt.Component.dispatchEvent(Component.java:4240)
         at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4322)
         at java.awt.LightweightDispatcher.processMouseEvent(Container.java:3986)
         at java.awt.LightweightDispatcher.dispatchEvent(Container.java:3916)
         at java.awt.Container.dispatchEventImpl(Container.java:2102)
         at java.awt.Window.dispatchEventImpl(Window.java:2429)
         at java.awt.Component.dispatchEvent(Component.java:4240)
         at java.awt.EventQueue.dispatchEvent(EventQueue.java:599)
         at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:273)Caught RuntimeException: java.lang.NullPointerException
         at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:183)
         at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:173)
         at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:168)
         at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:160)
         at java.awt.EventDispatchThread.run(EventDispatchThread.java:121)I hope to catch all these error message into a String Variable such as StrErrorMsg, then I can use System.out.println(StrErrorMsg) to print it out or store somewhere, not only display at runtime,
    How can I do this??
    Thanks a lot,
    See code below.
    import java.awt.Frame;
    import java.awt.GridLayout;
    import java.awt.event.ActionEvent;
    import java.awt.event.ActionListener;
    import java.awt.event.WindowAdapter;
    import java.awt.event.WindowEvent;
    import java.io.FileInputStream;
    import javax.swing.ButtonGroup;
    import javax.swing.JFrame;
    import javax.swing.JPanel;
    import javax.swing.JRadioButton;
    public class ExceptTest extends JFrame implements ActionListener {
        private double[] a;
      private JRadioButton divideByZeroButton;
      private JRadioButton badCastButton;
      private JRadioButton arrayBoundsButton;
      private JRadioButton nullPointerButton;
      private JRadioButton negSqrtButton;
      private JRadioButton overflowButton;
      private JRadioButton noSuchFileButton;
      private JRadioButton throwUnknownButton;
      public ExceptTest() {
        JPanel p = new JPanel();
        ButtonGroup g = new ButtonGroup();
        p.setLayout(new GridLayout(8, 1));
        divideByZeroButton = addRadioButton("Divide by zero", g, p);
        badCastButton = addRadioButton("Bad cast", g, p);
        arrayBoundsButton = addRadioButton("Array bounds", g, p);
        nullPointerButton = addRadioButton("Null pointer", g, p);
        negSqrtButton = addRadioButton("sqrt(-1)", g, p);
        overflowButton = addRadioButton("Overflow", g, p);
        noSuchFileButton = addRadioButton("No such file", g, p);
        throwUnknownButton = addRadioButton("Throw unknown", g, p);
        getContentPane().add(p);
      private JRadioButton addRadioButton(String s, ButtonGroup g, JPanel p) {
        JRadioButton button = new JRadioButton(s, false);
        button.addActionListener(this);
        g.add(button);
        p.add(button);
        return button;
      public void actionPerformed(ActionEvent evt) {
        try {
          Object source = evt.getSource();
          if (source == divideByZeroButton) {
            a[1] = a[1] / a[1] - a[1];
          } else if (source == badCastButton) {
            Frame f = (Frame) evt.getSource();
          } else if (source == arrayBoundsButton) {
            a[1] = a[10];
          } else if (source == nullPointerButton) {
            Frame f = null;
            f.setSize(200, 200);
          } else if (source == negSqrtButton) {
            a[1] = Math.sqrt(-1);
          } else if (source == overflowButton) {
            a[1] = 1000 * 1000 * 1000 * 1000;
            int n = (int) a[1];
          } else if (source == noSuchFileButton) {
            FileInputStream is = new FileInputStream("Java Source and Support");
          } else if (source == throwUnknownButton) {
            throw new UnknownError();
        } catch (RuntimeException e) {
          System.out.println("Caught RuntimeException: " + e);
          e.printStackTrace();
          System.out.println("Caught RuntimeException: " + e);
        } catch (Exception e) {
          System.out.println("Caught Exception: " + e);
      public static void main(String[] args) {
        JFrame frame = new ExceptTest();
        frame.setSize(150, 200);
        frame.addWindowListener(new WindowAdapter() {
          public void windowClosing(WindowEvent e) {
            System.exit(0);
        frame.show();
    }

    yes, I update as follows,
    but not looks good.
    import java.io.*;
    public class UncaughtLogger implements Thread.UncaughtExceptionHandler {
        private File file;
        private static String errorMessage;
        public UncaughtLogger(File file) {
            this.file = file;
            //Thread.setDefaultUncaughtExceptionHandler(this);
        public UncaughtLogger(String str) {
            this.errorMessage = str;
            Thread.setDefaultUncaughtExceptionHandler(this);
        //@Override()
        public void uncaughtException(Thread t, Throwable e){
            try {
                log(e);
            } catch (Throwable throwable) {
                System.err.println("error in logging:");
                throwable.printStackTrace();
        private void log(Throwable e) throws IOException {
            PrintWriter out = new PrintWriter(new FileWriter(file, true));
            try {
                e.printStackTrace(out);
            } finally {
                out.close();
        private static UncaughtLogger logger = new UncaughtLogger(new File("C:/temp/log.txt"));
        private static UncaughtLogger logger2 = new UncaughtLogger(errorMessage);
        public static void main(String[] args) {
                String s1 = "Hello World!";
                s1 = null;
                String s2 = s1.getClass().getName();
                System.out.println(s1);
                System.out.println(s2);
                System.out.println("errorMessage =" + errorMessage);
    }

  • I am using report generation toolkit 1.1 with Labview 7.0 and Office 2003 profession​al. The create new report VI opens Excel but throws error (-21471672​62- from automation open VI) when I try to open MS word. please help...

    I am using report generation toolkit 1.1 with Labview 7.0 and Office 2003 professional. The create new report VI opens Excel but throws error (-2147167262- from automation open VI) when I try to open MS word. please help...

    Hi Leo22,
    Does this error occur if you use any of the example programs that come shipped with LabVIEW? I would try opening one of the examples that write data to Word and see if those give you an error. Also, have you tried just putting down a New Report.VI and change the report type to Word? If this simple vi (that's all you need to open Word) breaks, I would check to see if there are any instances of Word still open. Check the task manager to see if any word processes are still open. There should not be a problem accessing Word 2003 from LabVIEW 7.0. If neither of these solutions work, please give some more detail about your application and we can research further. Thanks!
    Jeremy L.
    National Instruments
    Jeremy L.
    National Instruments

  • Solution to iCloud control panel 4 sign-in server error under windows 8.1x64

    Potential solution for icloud 3.1 and 4.0 installation and iTune store sign-in, all showing errors or sign-in errors due to server error.
    My setup is Iphone 4S upgraded to ios8, ipad Air still on 7.1.2, windows PC on Win8.1x64 and with icloud 3.1 working fine till I tried to
    upgrade/install/re-install 4.0 icloud control panel after upgrade to ios8. See end of message for other alternatives I had tried.
    This worked for me.
    There seem to be some programmes that is conflicting with Apple's, so download this free program autoruns suggested by Apple software on Windows: May see performance issues and blank iTunes Store
    Run the program and choose the the "Winsock Providers", any other programme that shows up here except Bonjour (which is used by Apple) may be conflicting with the sign-in.
    Uninstall those potentially conflicting programs
    Inside autoruns->Winsock Provider, right click on the conflicting programs and choose delete. This would stop the conflicting program to start up
    again. Reboot the computer
    Install icloud control panel, sign in
    If works, reinstall those conflicting programs again and all back to normal, with iCloud control panel working
    If doesn't work, my mojo not strong enough and you need to google for more help.
    Other activities I googled, tried and failed
    a) Adding Apple icloud program and services into the windows firewall
    b) Uninstall version 4.0, re-install 3.1 (about 10 times)
    c) create a new Apple ID to sign in
    d) Sign out of icloud from my devices (iphone and ipad)
    e) switch to Android devices

    You need to edit the MSI installer and change the Launch Condition to allow iCloud Control Panel 3.1 to be installed on Windows Server 2008 R2.
    First, download Orca, an MSI editor. You can get it from the Windows SDK. (Download and only check the box for "Development Tools" under Native components during installation, then go to C:\Program Files\Microsoft SDKs\Windows\v7.1\Bin and install Orca.msi)
    Launch Orca and then find the iCloud(64).msi to edit.
    If using Apple Software Update, browse to C:\Users\<username>\AppData\Local\Apple\Apple Software Update and open iCloud(64).msi in Orca.
    Or download iCloudSetup.exe and use a zip program (7-zip) to extract the MSI from the exe and open it in Orca.
    In Orca, select the LaunchCondition table and look for the condition "(VersionNT >= 601) AND (MsiNTProductType = 1)". Change the number 1 to a number 3 so the condition should read "(VersionNT >= 601) AND (MsiNTProductType = 3)". Save and exit Orca.
    Then double click on the msi and it should install successfully now.

  • SSRS dataset throws error when another stored procedure is called inside dataset stored procedure

    Hello;
    I am using Report Build 3.0, I have a simple report which gets data using dataset which is created from a Stored Procedure. I have another stored procedure which updates the data in the table which is used for the report. I want to get the live data on report everytime
    the report is run so that I call that stored procedure (sp_updatedata) inside my report dataset stored procedure and here where my report fails as it throws error while creating dataset.
    Here is sample:
    sp_updatedata (this only returns "Command(s) completed successfully"
    Create Proce sp_getReportData
    As
    Begin
    Exec sp_updatedata -- I call it to update the data before it displays on the report
    Select * from customers
    End
    If I remove this line it works.
    Exec sp_updatedata -- I call it to update the data before it displays on the report
    Thanks
    Essa Mughal

    Hi MESSA,
    According to your description, you create a dataset based on a stored procedure. In this procedure, it calls another procedure. Now it throws error when creating dataset. Right?
    In Reporting Services, when creating dataset, all the query or stored procedure will be executed in SSMS. So if the procedure can be executed in SSMS, it supposed to be working in SSRS. However, it has a limitation in SSRS. In a dataset, it can only return
    one result set.
    In this scenario, I don't think it's the issue of calling other procedure inside of procedure. Because we tested in our local environment, it works fine. I guess the sp_updatedata returns a result set, and the "select * from customers" returns
    another result set. This might be the reason cause the error.
    Reference:
    Query Design Tools in Report Designer SQL Server Data Tools (SSRS)
    Reporting Services Query Designers
    If you still have any question, please post the error message and the store procedure (sp_updatedata).
    Best Regards,
    Simon Hou

  • Excel is throwing error when it click print : 'No printers are installed. To install a printer click the File tab, and then click Print. Click No Printers Installed, and then click Add Printer. Follow the instructions in the Add Printer dialog box'

    Excel is throwing error when it click print : 'No printers are installed. To install a printer click the File tab, and then click Print. Click No Printers Installed, and then click Add Printer. Follow the instructions in the Add Printer dialog box'
    Word, and powerpoint application are working fine.  
    Environment :  Windows 7 64-bit, MS Office 2013 64-bit
    Steps to recreate
    (i)  Create new user account and add to any group ( do not log on using this
     account)
      (ii)  runas /user:<new user account>  <fullpath>\excel.exe
       it will ask password so enter on command prompt
    (iii)  open any excel document  and click File->Print
      (iv)  verify result  (it is failing) it pop ups below error
     Error:`Microsoft Excel
     No printers are installed. To install a printer click the File tab, and then click
     Print. Click No Printers Installed, and then click Add Printer. Follow the
     instructions in the Add Printer dialog box.                                                                                                               

    Sorry for late reply i was not at work
    I have a default set excel is still throwing error. Interestingly winword , powerpoint and publisher are working fine. I am able to print from all office applications except Excel.
     Probably excel behaves differently from other office applications.
     Probably it is a bug in excel
    Workaround : Log on to a system once using newly created account then runas excel using this account then print works fine.
    It means something in user profile should be configure to run excel print operation. Could you please somebody help what I need to configure in user profile that makes print operation success?

Maybe you are looking for

  • How may I eliminate all of iTunes from Windows XP Home Edition before making a "clean" installation of iTunes?

    Hello.  I found that in Windows XP Home Edition that I had two subdirectories of iTunes: C:\Program Files\iTunes and C:\Program Files\iTunes(2).  I assume this situation has arisen by me not properly updating iTunes in the past.  When it came time to

  • Navigating away form adf task flow causes validation to activated in WebCenter

    Experts, We are using WebCenter 11g.  We have created a task flow with a form on the first page.  There are a few fields that are required on the form.  We deployed the taskflow and are running it within WebCenter Portal.  There are three tabs:  "Hom

  • Web Photo Gallery Descriptions

    I have just started playing with Web Photo Gallery. I built one with the Slideshow. I couldn't figure out where the descriptions were supposed to come from, I thought I could enter them in Bridge somewhere, but didn't figure that out. So, I opened th

  • Cannot stream Spotify through Apple TV

    Hello, I cannot seem to be able to stream Spotify via Apple TV from my iMac.  I have tried selecting Apple TV speakers and also mirroring but there is no sound.  When I mirror the screen works fine mirroring only TV set, but there is no sound coming

  • Rendering ResourceList with layout set

    Hi, in a custom program I get a list of resources, which i want to display to the user. At the moment I display the list with hard coded HTMLB elements, which is not really flexible regarding layout issues and also not very comfortable. So I want to