Expand collection in GroupAggregator?

Let's say I have an object in my cache with this method declared on it:
    public Collection getListOfStuff() { . . . }If I do this:
    GroupAggregator groupBy = GroupAggregator.createInstance("getListOfStuff", new Count());
    Map results = (Map) cache.aggregate((Filter) null, groupBy);I'll get counts of how many time each combination of stuff in the collection returned by getListOfStuff appears.
What if I want to break out the individual elements in the collection before counting it? E.g., If I have two objects, one where getListOfStuff returns {noformat}["foo", "bar"]{noformat} and the other where it returns {noformat}["bar", "batz"]{noformat}
I'd like to get the result:
"foo" = 1;
"bar" = 2;
"batz" = 1;
instead of:
["foo", "bar"] = 1;
["bar", "batz"] = 1;
I don't see an easy way to do this. Is there one?
Thanks.

Hi timberwolf,
You can write your own:
import com.tangosol.net.CacheFactory;
import com.tangosol.net.NamedCache;
import com.tangosol.util.Base;
import com.tangosol.util.Filter;
import com.tangosol.util.InvocableMap;
import com.tangosol.util.ValueExtractor;
import com.tangosol.util.extractor.IdentityExtractor;
import com.tangosol.util.extractor.ReflectionExtractor;
import java.util.ArrayList;
import java.util.Collection;
import java.util.HashMap;
import java.util.Iterator;
import java.util.Map;
import java.util.Set;
* dimitri
public class Main extends Base
    public static class MyAggregator implements InvocableMap.ParallelAwareAggregator
        public MyAggregator(String sMethodName)
            this(new ReflectionExtractor(sMethodName));
        public MyAggregator(ValueExtractor extractor)
            m_extractor = extractor;
        public InvocableMap.EntryAggregator getParallelAggregator()
            return this;
        public Object aggregateResults(Collection collResults)
            Map mapResult = new HashMap();
            for (Iterator iter = collResults.iterator(); iter.hasNext(); )
                Map mapPartial = (Map) iter.next();
                for (Iterator iterPartial = mapPartial.entrySet().iterator(); iterPartial.hasNext(); )
                    Map.Entry entry      = (Map.Entry) iterPartial.next();
                    Object    oKey       = entry.getKey();
                    int       cIncrement = ((Integer)entry.getValue()).intValue();
                    mapIncrement(mapResult, oKey, cIncrement);
            return mapResult;
        public Object aggregate(Set setEntries)
            Map            mapResults = new HashMap();
            ValueExtractor extractor  = m_extractor;
            for (Iterator iter = setEntries.iterator(); iter.hasNext(); )
                InvocableMap.Entry entry = (InvocableMap.Entry) iter.next();
                if (entry.isPresent())
                    Collection coll = (Collection) entry.extract(extractor);
                    for (Iterator iterExtracted = coll.iterator(); iterExtracted.hasNext(); )
                        mapIncrement(mapResults, iterExtracted.next(), 1);
            return mapResults;
        void mapIncrement(Map map, Object oKey, int cIncrement)
            Integer iValue = (Integer)map.get(oKey);
            iValue = iValue == null ? makeInteger(cIncrement) : makeInteger(iValue.intValue() + cIncrement);
            map.put(oKey, iValue);
        ValueExtractor m_extractor;
    public static void main(String[] asArg)
        try
            NamedCache cache = CacheFactory.getCache("test");
            cache.addIndex(IdentityExtractor.INSTANCE, false, null);
            Collection coll  = new ArrayList();
            coll.add("foo");
            coll.add("bar");
            cache.put("a", coll);
            coll.clear();
            coll.add("bar");
            coll.add("batz");
            cache.put("b", coll);
            Map  mapResult = (Map) cache.aggregate((Filter)null, new MyAggregator(IdentityExtractor.INSTANCE));
            System.out.println(mapResult);
        catch (Throwable oops)
            err(oops);
        finally
            CacheFactory.shutdown();
    }Regards,
Dimitri

Similar Messages

  • Error while transport a transformation

    Dear Experts,
    While I am going to transport a transformation from DEV to QAS system, the below error occurs.
    Object TRFN 0HEJ73SSI9ZSSHKB8K4BZ67VQJOLWAI6 needs object UOMT ; the latter does not exist
    I checked cube. there is no routine included. Is it something related to unit of meature/currency conversion?
    I couldn't find any issue on while activating the above transformation and cube.
    But only when it is transporting to QAS this error comes.
    Please advice.
    Thanks,
    Thilini

    Hi,
    All objetcs need to be stored in custom package.
    at Dev system, Have you loaded data to cube without any issue?
    if yes then again collect your transformations into new Transport thru RSA1-->transport connection.
    Use grouping option as only necessary obejcts.
    Once you drag your TRFN from middle pane to right  pane,
    Expand collected transformations at right side screen and select below objects which are part of your transformations like formulas/routines.
    Cross check whether your transport request have any issues or not thru program - RSO_TLOGO_CHECK_REQUEST .
    Later release and import to Qua.
    Later

  • Checkboxes in custom panels/boolean XMP properties

    I have a large and expanding collection of photos, the majority of which are either (a) gig photos or (b) photos of railway signalling. The latter include a 'legacy' collection of some 2,000 35mm slides which I am slowly but steadily digitising using a film scanner. I make a lot of use of Adobe Photoshop CS2.
    To assist in cataloguing my collections, I have created two custom XMP metadata panels, one for the gig photos and the other for the railway ones. I have installed both of these in the appropriate directory on my PC and they work very well, with the exception of the one small issue described below. Can anyone help me with that?
    As I built up my railway slide collection, I adopted a system of numbering and categorising the slides which I have now incorporated into my custom panel and its underlying XMP extension schema. One of the properties within my system is a boolean setting, so I incorporated this as a check_box control within the custom panel for the railway photos.
    What I am now finding, however, is that whenever I update the metadata of
    any image on my PC, the default value of false is inserted for this property regardless of whether or not I have set any of the other properties defined in the custom railway photo metadata panel. I would prefer for this property to remain unset unless I specifically set it via the dialogue box. Is there anything I can do to achieve this?
    For reference, the check box definition from my railway photo custom panel is:
    check_box(name: '$$$/RailwayPhotos/item=Substitution ',
    hotizontal: align_right, xmp_ns_prefix: 'RailPhoto',
    xmp_namespace: 'http://www.roscalen.com/RailwayPhotos/1.0/',
    xmp_path: 'substituted');
    TIA
    Adie

    OK, this is what I have done.
    The swf file is named generic.swf
    I made a text doc and put this path in the text
    C:\Users\Chyron\AppData\Roaming\Adobe\XMP\Custom File Info Panels\4.0\panels\Athletes (US)\bin\
    then saved it and renamed the .txt to .cfg and then created folders like you said above because they did not exist.
    and put the file there.
    C:\Users\chyron\AppData\Roaming\Macromedia\Flash Player\#Security\FlashPlayerTrust
    and still does not work

  • Tracing code

    We have a replicated DBEntityMgr that has lately been running out of memory. We start the partitions (we have 3 replicates of this DB Service Object) with 8MB minimum & 40 MB max for memory parms.
    We turned on trace flags trc:os:1:1 and trc:os:5:5.
    After a while (sometimes an hour, sometimes half a day) we suddenly start getting Collect Generation, Collect Stable, & Expands, such as:
    Tue Mar 23 10:26:10 : ! Collect Generation(Pages:2306,Total:5821)->(Pages:975,Total:4490)
    Tue Mar 23 10:26:19 : ! Collect Generation(Pages:1817,Total:6307)->(Pages:1816,Total:6306)
    Tue Mar 23 10:26:24 : ! Collect Stable(Pages:7217)->(Pages:6419)
    Tue Mar 23 10:26:28 : ! Collect Generation(Pages:851,Total:7270)->(Pages:851,Total:7270)
    Tue Mar 23 10:26:30 : ! Expand Memory(Pages:1024,Total:9216)
    Tue Mar 23 10:26:30 : ! Collect Stable(Pages:7679)->(Pages:7661)
    Tue Mar 23 10:26:33 : ! Collect Generation(Pages:631,Total:8292)->(Pages:631,Total:8292)
    Tue Mar 23 10:26:34 : ! Expand Memory(Pages:1024,Total:10240)
    Tue Mar 23 10:26:34 : ! Collect Stable(Pages:8719)->(Pages:8717)
    Tue Mar 23 10:26:37 : ! Expand Memory(Pages:1024,Total:11264)
    Tue Mar 23 10:26:37 : ! Collect Stable(Pages:9227)->(Pages:9225)
    Tue Mar 23 10:26:41 : ! Collect Generation(Pages:911,Total:10136)->(Pages:911,Total:10136)
    On the 10:26:28 line, notice that after a collection, no new pages were freed. So, Forte does an expand. 5 seconds later, another collection does the same thing. This continues until Forte expands to the 40MB ceiling we set then:
    Tue Mar 23 10:29:32 : ! Collect Stable(Pages:40899)->(Pages:40898)
    Tue Mar 23 10:29:32 : ! Collect Stable(Pages:40898)->(Pages:40898)
    Tue Mar 23 10:29:32 : FATAL ERROR: Out of Memory (reason = qqOS_MM_EX_OUT_OF_MEMORY)
    Tue Mar 23 10:29:33 : ! Collect Stable(Pages:40899)->(Pages:40899)
    Tue Mar 23 10:29:33 : ! Collect Stable(Pages:40900)->(Pages:40900)
    Tue Mar 23 10:29:34 : ! Collect Stable(Pages:40901)->(Pages:40901)
    Tue Mar 23 10:29:34 : Task 72: qqcm_HoseRecvServiceTask::Run: Caught unexpected exception
    Tue Mar 23 10:29:34 : FATAL ERROR: ************* Out of Memory, requested (1K) available (0K) Class: qqsp_ResourceException with ReasonCode: SP_ER_OUTOFMEMORY
    A lot of fun unreadable info follows, then that's it.
    Now finally for my question: Is there a way I can see what that SO is doing while all these continuous Expands & Collects are going on? I want to know if my code is running away from me, or if it's a Forte problem.
    From the trc:os:5:5 we seem to notice that something called "large non-objects" get big very fast. TechNote 10916 describes large non-objects as "large text strings, network comm buffers, or external connection buffers". We have NO external connections in this Service Object. So, what do the other 2 things mean? How can I see what they are.Thanks for putting up with such a long posting!
    Steven Barnes
    Steven Barnes
    [email protected]
    To unsubscribe, email '[email protected]' with
    'unsubscribe forte-users' as the body of the message.
    Searchable thread archive <URL:http://pinehurst.sageit.com/listarchive/>

    Sunny,
    Take a look at the following threads for answers:
    How to Use Tcode ST01 and its  Purpose......
    Trace
    Cheers,
    Ben

  • Bug - View changes to grid when expanding a collection in the left pane.

    Tried submitting this via the bug report form but got java errors. Sigh...
    This seemed like the best alternative.
    ******BUG******
    Concise problem statement:
    View changes to grid when expanding a collection in the left pane.
    Steps to reproduce bug:
    1. Goto Library Module
    2. Ensure there is a collection with at least one child - if not create one.
    3. Make sure the collection is collapsed (you cant see the child and you see a right pointing triangle to the left of the collection name)
    4. Change to Loupe view
    5. Click the right pointing triangle next to the parent collection you just created to expand it.
    Actual Results:
    View changes to grid
    Expected results:
    View should remain unchanged - in this case Loupe view.

    The first is that I can't view the aperture library anymore directly from iphoto.
    THat is exceeding strange since iPhoto '08 could not open or share an Aperture library - that ability was first introduced in iPhoto '11 - with the latest version of iPhoto and or Aperture you can open the same library with either application - http://support.apple.com/kb/HT5043
    In the current version of iPhoto the photos are sorted by date in the film strip - I've not recently done a calendar so do not remember the specifics -
    LN

  • 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

  • How do collections expand?

    Does anyone have an explanation of how, from the hardware perspective, collections manage to just keep expanding if required after they have been instantiated? I am wondering because with normal arrays or memalloc memory is allocated or reserved a fixed amout of physical memory size when declared and cannot be increased.
    Chris

    georgemc wrote:
    They just do. No, I'm not being flippant, that's all you need to knowI disagree. I think it's worth knowing how collections can expand, though it's not that important to know how these particular implementations do it.
    @OP: When you download the JDK, there's a file src.zip that contains the source code for the core APIs. Look in there to see how java.util.ArrayList and java.util.LinkedList work.

  • Can I expand the interval between collection of Garbage

    Hello friends!! please help me with my troubles
    I have used JDK1.4.0 and I am making a prototyping-tool
    for embedded control software.
    I got to know that the Garbage collection is a bottleneck
    of my software. it collects garbages very often. Therefore, I hope to make
    the collection-interval longer than before.
    For studies about Garbage Collection , I got to know there are two spaces for
    collecting garbages, they are Young Generation and Old Generation.
    I guess the reason of very often collection in my software is related to young generation but not old generation.
    Even if I take more memory with using -Xms -Xmx, I got to know it just takes up
    spaces for Old Generation but not that for Young generation.
    Please let me know how I can take more memory for Young Generation and
    make the collection interval longer than before?

    The garbage collector is supposed to do its work when the JVM is otherwise not very busy when possible. Now, it's certainly possible you're seeing JVM bugs and this isn't what's happening. Are you using some sort of profiler tool that shows you that processing is waiting for garbage collection to finish? In other words, how do you know that GC is the bottleneck? Just because it's happening "often" (whatever that means) doesn't mean that's the problem.

  • I am in the process of expanding a database of chemistry journal articles.  These materials are ideally acquired in two formats when both are available-- PDF and HTML.  To oversimplify, PDFs are for the user to read, and derivatives of the HTML versions a

    I am in the process of expanding a database of chemistry journal articles.  These materials are ideally acquired in two formats when both are available-- PDF and HTML.  To oversimplify, PDFs are for the user to read, and derivatives of the HTML versions are for the computer to read.  Both formats are, of course, readily recognized and indexed by Spotlight.  Journal articles have two essential components with regards to a database:  the topical content of the article itself, and the cited references to other scientific literature.  While a PDF merely lists these references, the HTML version has, in addition, links to the cited items.  Each link URL contains the digital object identifier (doi) for the item it points to. A doi is a unique string that points to one and only one object, and can be quite useful if rendered in a manner that enables indexing by Spotlight.  Embedded URL's are, of course, ignored by Spotlight.  As a result, HTML-formatted articles must be processed so that URL's are openly displayed as readable text before Spotlight will recognize them.  Conversion to DOC format using MS Word, followed by conversion to RTF using Text Edit accomplishes this, but is quite labor intensive.
      In the last few months, I have added about 3,500 articles to this collection, which means that any procedure for rendering URL's must be automated and able to process large batches of documents with minimal user oversight.  This procedure needs to generate a separate file for each HTML document processed. Trials using Automator's "Get Specified Finder Items" and "Get Selected Finder Items", as well as "Ask For Finder Items"  (along with "Get URLs From Web Pages") give unsatisfactory results.  When provided with multiple input documents, these three commands generate output in which the URLs from multiple input items are merged into a single block, which yields a single file using "Create New Word Document" as the subsequent step.  A one-to-one, input file to output file result can be obtained by processing one file at a time, but this requires manual selection of each item and one-at-a-time processing. What I need is a command that accepts multiple input documents, but processes them one at a time, generating a separate output for each file processed.  Is there a way for Automator to do this?

    Hi,
    With the project all done, i'm preparing for the presentation. Managed to get my hands on a HD beamer for the night (Epason TW2000) and planning to do the presentation in HD.
    That of course managed to bring up some problems. I posted a thread which i'll repost here . Sorry for the repost, i normally do not intend to do this, but since this thread is actually about the same thing, i'd like to ask the same question to you. The end version is in AfterEffects, but that actually doesn't alter the question. It's about export:
    "I want to export my AE project of approx 30 min containing several HD files to a Blu Ray disc. The end goal is to project the video in HD quality using the Epson  EMP-TW2000 projector. This projector is HD compatible.
    To project the video I need to connect the beamer to a computer capable of playing a heavy HD file (1), OR burn the project to a BRD (2) and play it using a BRplayer.
    I prefer option 2, so my question is: which would be the preferred export preset?
    Project specs:
                        - 1920x1080 sq pix  (16:9)
                        - 25 fps
                        - my imported video files (Prem.Pro sequences) are also 25 fps and are Progressive (!)
    To export to a BRD compatible format, do i not encounter a big problem: my projectfiles are 25 fps and progressive, and I believe that the only Bluray preset dispaying 1920x1080 with 25 fps requests an INTERLACED video  (I viewed the presets found on this forum, this thread)... There is also a Progr. format, BUT then you need 30 fps (29,...).
    So, is there one dimension that can be changed without changing the content of the video, and if yes which one (either the interlacing or the fps).
    I'm not very familiar with the whole Blu-ray thing, I hope that someone can help me out."
    Please give it a look.
    Thanks,
    Jef

  • Custom Report Syntax - Prompt for limiting collection

    I'm building a customer report that will display maintenance windows for multiple devices.  I'd like to be able to filter the number of devices reported by collection (as to not have EVERY device in the console listed all at once).
    I've got the report working for everything except the filtering part.  Do I need to add a new Dataset and then filter it somehow?  Here's my only dataset so far:
    FIELDS: Computername, CollectionName, Next_Maintenance_Window
    QUERY:
    select
    v_FullCollectionMembership.Name as Computername ,v_Collection.Name as CollectionName,
    v_ServiceWindow.Description as 'Next Maintenance Window'
    from v_ServiceWindow
    inner join v_FullCollectionMembership on (v_FullCollectionMembership.CollectionID = v_ServiceWindow.CollectionID)
    inner join v_Collection on (v_Collection.CollectionID = v_FullCollectionMembership.CollectionID)
    order By Computername
    What do I need to add to be able to select the collection 1st then run the query above?

    HI
    Or you could do it like this:
    Create a new dataset and paste in the following Query:
    SELECT
      v_Collection.Name
      ,v_Collection.CollectionID
    FROM
      v_Collection
    Where CollectionType=2
    Insert the following code in your own Query (dataset) right before order by Computername
    Where v_Collection.Name = (@CollID)
    Expand Parameters in Report Builder, you should see a paramter called @CollID
    Right-click CollID and fill in the following information on the general page:
    Name: CollID
    Prompt: Collection
    On the Available Values select Get values from a query
    Dataset: Dataset2 (the new dataset you just created)
    value field: Name
    Label field: Name
    Design your layout in report builder and run the report. You will get a drop-down box with all your device collections.
    This report is not "RBAC" enabled

  • How to show My Tasks from all sites in site collection

    I have a site collection with several sub sites
    Each site has multiple lists and on those lists, Publishing workflow is enabled.
    For each workflow I have a SharePoint group named "Approver" in which I have added two persons:
    Person1
    Person2
    All workflows are setup like this:
    1. In workflow where it asks for Approvers I have given that group name "Approver"
    2. In "Order" I have selected "All at once (parallel)" because I want any one of the approver to approve tasks
    3. Below in "Expand Groups" option I have de-selected the checkbox
    The workflow is working fine as it shows pending tasks in Workflow Tasks lists as well as each approver gets an email alert.
    BUT
    I am displaying each Workflow Tasks list in each site which is not user friendly. I want to show all pending tasks in a single list to user.
    For that I added CQWP but problem is you can filter by "Assigned To = Approver" where approver is group name here as described above. CQWP only accepts USER NAME and not GROUP NAME in "Assigned To" field.
    If in step 1 above I give each user name instead of group name "Approver" then unless all users have approved/rejected tasks, workflow doesn't ends which I don't want. I want any one of the user to end workflow by approving/rejecting.
    What should I do now?
    TLDR
    If somehow I can filter by user group name in CQWP then my problem will be solved.

    Thanks.  It's a very detail-oriented process, tedious if you will. (Which is why I posted, hoping someone doesn't have to spend 3 weeks like I did.)
    As far as security trimming it, I think you have to ask yourself how you would security trim info within any web part? Unfortunately, I don't think it's very straightforward to do. 
    My best guess would be to solve with jQuery / JavaScript.  So, you would have a webpart to display the content, then code to determine what CAN be displayed, I don't see how you could do both without creating a custom webpart via VS.
    Steve Clark, MCTS |
    Twin-Soft Corporation
    Easy Bins Roll-off Dumpster Rentals in Northern VA
    Specializing in:
    Driveway-sized, roll-off dumpster rentals in Fairfax VA |
    Dumpster Rentals for Junk Hauling in Springfield VA
    Roll-off Rental Dumpsters in Annandale, VA |
    Dumpster Rentals for Estate Cleanout in Alexandria VA

  • Need to expand tree by passing treeId thr URL not by clicking manually.

    Sub: Need to expand tree by passing Id thr URL.
    Hi,
    Here i have Library.java and ajaxTree.jsf files (collected from Jboss richfaces)
    There is having a list of artist .
    If u click on a particular artistname then the respective albums(with their checkboxes) will expand and show like a treenode.
    just look at d url : "http://localhost:8080/richfaces-demo-3.2.1.GA/richfaces/tree.jsf?c=tree&albumIds=1001,1002,1005,1008,1009,1010&client=0"
    I m passing album Ids and clientId in url browser and receiving in d Library.java.
    I need to expand the required client tree to show albums without clicking on artistname rather by passing the clientId from Url.
    I thnk one EventHandling class( PostbackPhaseListener.java ) is responsible for expanding but I m unable to understand.
    How can I do it.
    Plz help asap.
    /###############ajaxTree.jsf##########Start##############/
    <ui:composition xmlns="http://www.w3.org/1999/xhtml"
    xmlns:ui="http://java.sun.com/jsf/facelets"
    xmlns:h="http://java.sun.com/jsf/html"
    xmlns:f="http://java.sun.com/jsf/core"
    xmlns:a4j="http://richfaces.org/a4j"
    xmlns:rich="http://richfaces.org/rich"
    xmlns:c="http://java.sun.com/jstl/core">
         <p>This tree uses "ajax" switch type, note that for collapse/expand operations it will be Ajax request to the server. You may see short delay in this case.</p>
         <h:form>     
              <rich:tree style="width:300px" value="#{library.data}" var="item" nodeFace="#{item.type}">
                   <rich:treeNode type="artist" >
                        <h:outputText value="#{item.name}" />
                        </rich:treeNode>
                   <rich:treeNode type="album" >
                        <h:selectBooleanCheckbox value="#{item.selected}"/>
                        <h:outputText value="#{item.title}" />
                   </rich:treeNode>
              </rich:tree>
              <h:commandButton value="Update" />
         </h:form>
    </ui:composition>
    /###############ajaxTree.jsf##########End##############/
    /************************Library.java*********Start****************/
    package org.richfaces.demo.tree;
    import java.io.ByteArrayOutputStream;
    import java.io.IOException;
    import java.io.InputStream;
    import java.util.ArrayList;
    import java.util.HashMap;
    import java.util.Iterator;
    import java.util.List;
    import java.util.Map;
    import java.util.StringTokenizer;
    import javax.servlet.http.HttpServletRequest;
    import javax.faces.context.FacesContext;
    import org.richfaces.model.TreeNode;
    public class Library implements TreeNode {
         private static final long serialVersionUID = -3530085227471752526L;
         private Map artists = null;
         private Object state1;
         private Object state2;
         private Map getArtists() {
              if (this.artists==null) {
                   initData();
              return this.artists;
         public void addArtist(Artist artist) {
              addChild(Long.toString(artist.getId()), artist);
         public void addChild(Object identifier, TreeNode child) {
              getArtists().put(identifier, child);
              child.setParent(this);
         public TreeNode getChild(Object id) {
              return (TreeNode) getArtists().get(id);
         public Iterator getChildren() {
              return getArtists().entrySet().iterator();
         public Object getData() {
              return this;
         public TreeNode getParent() {
              return null;
         public boolean isLeaf() {
              return getArtists().isEmpty();
         public void removeChild(Object id) {
              getArtists().remove(id);
         public void setData(Object data) {
         public void setParent(TreeNode parent) {
         public String getType() {
              return "library";
         private long nextId = 0;
         private long getNextId() {
              return nextId++;
         private Map albumCache = new HashMap();
         private Map artistCache = new HashMap();
         private Artist getArtistByName(String name, Library library) {
              Artist artist = (Artist)artistCache.get(name);
              if (artist==null) {
                   artist = new Artist(getNextId());
                   artist.setName(name);
                   artistCache.put(name, artist);
                   library.addArtist(artist);
              return artist;
         private Album getAlbumByTitle(String title, Artist artist) {
              Album album = (Album)albumCache.get(title);
              if (album==null) {
                   album = new Album(getNextId());
                   album.setTitle(title);
                   albumCache.put(title, album);
                   artist.addAlbum(album);
              return album;
         private void initData() {
              artists = new HashMap();
              InputStream is = this.getClass().getClassLoader().getResourceAsStream("org/richfaces/demo/tree/data.txt");
              ByteArrayOutputStream os = new ByteArrayOutputStream();
              byte[] rb = new byte[1024];
              int read;
              HttpServletRequest request = (HttpServletRequest)FacesContext.getCurrentInstance().getExternalContext().getRequest();
         //     System.out.println("request.getParameter(param) "+request.getParameter("param"));
              //System.out.println("request.getParameter(client) "+request.getParameter("client"));
              //System.out.println("request.getParameter() "+request.getParameter("c"));
              try {
                   do {
                        read = is.read(rb);
                        if (read>0) {
                             os.write(rb, 0, read);
                   } while (read>0);
                   String buf = os.toString();
                   StringTokenizer toc1 = new StringTokenizer(buf,"\n");
                        String str1 = request.getParameter("albumIds");
                        int clientId1 =Integer.parseInt( request.getParameter("client"));
                   while (toc1.hasMoreTokens()) {
                        String str = toc1.nextToken();
                        StringTokenizer toc2 = new StringTokenizer(str, "\t");
                        String artistName = toc2.nextToken();
                        String albumTitle = toc2.nextToken();
                        String songTitle = toc2.nextToken();
                        toc2.nextToken();
                        toc2.nextToken();
                        String albumYear = toc2.nextToken();
                        Artist artist = getArtistByName(artistName,this);
                        Album album = getAlbumByTitle(albumTitle, artist);
                        String portfolios[] = new String[100];
                        Integer portfoliosId[] = new Integer[100];
                        int i = 0;
                        StringTokenizer st = new StringTokenizer(str1, ",");
                        while (st.hasMoreTokens()) {
                        portfolios[i] = st.nextToken();
                        if((songTitle.equals(portfolios))&&(!(songTitle == ""))){
                                  //System.out.println("ifff");
                                  album.setSelected(true);
                        i++;
                        album.setYear(new Integer(albumYear));
              } catch (IOException e) {
                   throw new RuntimeException(e);
         public Object getState1() {
              return state1;
         public void setState1(Object state1) {
              this.state1 = state1;
         public Object getState2() {
              return state2;
         public void setState2(Object state2) {
              this.state2 = state2;
         public void walk(TreeNode node, List<TreeNode> appendTo, Class<? extends TreeNode> type) {
              if (type.isInstance(node)){
                   appendTo.add(node);
              Iterator<Map.Entry<Object, TreeNode>> iterator = node.getChildren();
              System.out.println("walk node.getChildren() "+node.getChildren());
              while(iterator.hasNext()) {
                   walk(iterator.next().getValue(), appendTo, type);
         public ArrayList getLibraryAsList(){
              ArrayList appendTo = new ArrayList();
              System.out.println("getLibraryAsList appendTo "+appendTo);
              walk(this, appendTo, Song.class);
              return appendTo;
    /************************Library.java*********End****************/
    /************************PostbackPhaseListener.java*********Start****************/
    package org.richfaces.treemodeladaptor;
    import java.util.Map;
    import javax.faces.context.ExternalContext;
    import javax.faces.context.FacesContext;
    import javax.faces.event.PhaseEvent;
    import javax.faces.event.PhaseId;
    import javax.faces.event.PhaseListener;
    public class PostbackPhaseListener implements PhaseListener {
         public static final String POSTBACK_ATTRIBUTE_NAME = PostbackPhaseListener.class.getName();
         public void afterPhase(PhaseEvent event) {
         public void beforePhase(PhaseEvent event) {
              FacesContext facesContext = event.getFacesContext();
              Map requestMap = facesContext.getExternalContext().getRequestMap();
              requestMap.put(POSTBACK_ATTRIBUTE_NAME, Boolean.TRUE);
         public PhaseId getPhaseId() {
              return PhaseId.APPLY_REQUEST_VALUES;
         public static boolean isPostback() {
              FacesContext facesContext = FacesContext.getCurrentInstance();
              if (facesContext != null) {
                   ExternalContext externalContext = facesContext.getExternalContext();
                   if (externalContext != null) {
                        return Boolean.TRUE.equals(
                                  externalContext.getRequestMap().get(POSTBACK_ATTRIBUTE_NAME));
              return false;
    /************************PostbackPhaseListener.java*********End****************/
    Edited by: rajesh_forum on Sep 17, 2008 6:13 AM
    Edited by: rajesh_forum on Sep 17, 2008 6:18 AM

    Hi
    Can somebody please look into this?
    Thanks
    Raj
    Edited by: RajICWeb on Aug 9, 2009 4:38 AM

  • Expand tree metod: ok in 11.1.1.4, error in 11.1.2

    Hi OTN,
    I have recently migrated my 11.1.1.4 application to 11.1.2.
    The first bug I met is treetable expanding.
    There is a treetable on my JSF page in a region. On panel collection's toolbar there is a toolbarButton for treetable expanding
    <af:commandToolbarButton text="#{templateBundle.EXPAND}"
                                               id="ctb_expand"
                                               actionListener="#{backingBeanScope.TemplateBean1.expandTemplateTree}"
                                               icon="/img/tree.png"
                                               disabled="#{bindings.TemplateView1Iterator.currentRow == null}"/>The following methods are:
        public void expandTemplateTree(ActionEvent actionEvent) {
            System.out.println(">> expandTemplateTree <<");
            try {
            RichTreeTable rt =
                (RichTreeTable)FacesContext.getCurrentInstance().getViewRoot().findComponent("r1:pc_tree:tree1");
                System.out.println(">> rt = "+rt+" <<");
            TemplateUIHelper.expandTree(rt);
            TemplateUIHelper.refreshTemplateTreeTable();
                System.out.println("> END OF expandTemplateTree <");
            } catch (Exception e) {
                System.err.println(">>> expandTemplateTree <<<");
                e.printStackTrace();
            public static void expandTree(RichTreeTable rt) {
            try {
                if (rt != null) {
                    int rowCount = rt.getRowCount();
                    List<Key> rowKey;
                    for (int j = 0; j < rowCount; j++) {
                        oracle.adfinternal.view.faces.model.binding.FacesCtrlHierNodeBinding node =
                            (oracle.adfinternal.view.faces.model.binding.FacesCtrlHierNodeBinding)rt.getRowData(j);
                        rowKey = new ArrayList<Key>();
                        rowKey.add(node.getRowKey());
                        rt.getDisclosedRowKeys().add(rowKey);
                        rt.setRowKey(rowKey);
                        expandTreeTableChildrenNode(rt, node, rowKey);
            } catch (Exception e) {
                System.err.println(">>> expandTree <<<");
                e.printStackTrace();
        private static void expandTreeTableChildrenNode(RichTreeTable rt,
                                                        oracle.adfinternal.view.faces.model.binding.FacesCtrlHierNodeBinding node,
                                                        List<Key> parentRowKey) {
            try {
                System.out.println(">> expandTreeTableChildrenNode <<");
                ArrayList children = node.getChildren();
                List<Key> rowKey;
                if (children != null) {
                    for (int i = 0; i < children.size(); i++) {
                        rowKey = new ArrayList<Key>();
                        rowKey.addAll(parentRowKey);
                        rowKey.add(((oracle.adfinternal.view.faces.model.binding.FacesCtrlHierNodeBinding)children.get(i)).getRowKey());
                        rt.getDisclosedRowKeys().add(rowKey);
                        if (((oracle.adfinternal.view.faces.model.binding.FacesCtrlHierNodeBinding)(children.get(i))).getChildren() ==
                            null)
                            continue;
                        expandTreeTableChildrenNode(rt,
                                                    (oracle.adfinternal.view.faces.model.binding.FacesCtrlHierNodeBinding)(node.getChildren().get(i)),
                                                    rowKey);
            } catch (Exception e) {
                e.printStackTrace();
        }When I click the button in a console window I see that the method is executed to the end without being interrupted by exceptions.
    But the tree is not expanded and I see a messagebox with ADF_FACES-60100 error and HTTP 404 code.
    In console there is a stacktrace:
    expandTemplateTree
    rt = RichTreeTable[org.apache.myfaces.trinidad.component.UIXTree$RowKeyFacesBeanWrapper@1d83b914, id=tree1]
    expandTreeTableChildrenNode
    expandTreeTableChildrenNode
    expandTreeTableChildrenNode
    END OF expandTemplateTree
    <15.07.2011 17:34:56 MSD> <Warning> <oracle.adf.view.rich.component.fragment.UIXRegion> <BEA-000000> <ADF_FACES-10026: During the processing of the region component, either a context change was not found or it did not match the instance set up by the current component. Expected oracle.adf.view.rich.component.fragment.UIXRegion$RegionContextChange but found UIXCollection.CollectionComponentChange[Component class: oracle.adf.view.rich.component.rich.data.RichTreeTable, component ID: tree1].
    <15.07.2011 17:34:56 MSD> <Error> <oracle.adfinternal.view.faces.config.rich.XmlHttpServletResponse> <BEA-000000> <
    javax.servlet.ServletException: ADF_FACES-60101:+Error code+ HTTP: 404."
            at oracle.adfinternal.view.faces.config.rich.XmlHttpServletResponse._logException(XmlHttpServletResponse.java:140)
            at oracle.adfinternal.view.faces.config.rich.XmlHttpServletResponse.sendError(XmlHttpServletResponse.java:106)
            at oracle.adfinternal.view.faces.config.rich.XmlHttpServletResponse.sendError(XmlHttpServletResponse.java:100)
            at javax.servlet.http.HttpServletResponseWrapper.sendError(HttpServletResponseWrapper.java:128)
            at com.sun.faces.application.ViewHandlerResponseWrapper.sendError(ViewHandlerResponseWrapper.java:82)
            at weblogic.servlet.FileServlet.findSource(FileServlet.java:269)
            at weblogic.servlet.FileServlet.doGetHeadPost(FileServlet.java:191)
            at weblogic.servlet.FileServlet.service(FileServlet.java:173)
            at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
            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.ServletStubImpl.execute(ServletStubImpl.java:183)
            at weblogic.servlet.internal.RequestDispatcherImpl.invokeServlet(RequestDispatcherImpl.java:523)
            at weblogic.servlet.internal.RequestDispatcherImpl.forward(RequestDispatcherImpl.java:253)
            at com.sun.faces.context.ExternalContextImpl.dispatch(ExternalContextImpl.java:546)
            at javax.faces.context.ExternalContextWrapper.dispatch(ExternalContextWrapper.java:93)
            at javax.faces.context.ExternalContextWrapper.dispatch(ExternalContextWrapper.java:93)
            at oracle.adfinternal.view.faces.config.rich.RecordRequestAttributesDuringDispatch.dispatch(RecordRequestAttributesDuringDispatch.java:44)
            at javax.faces.context.ExternalContextWrapper.dispatch(ExternalContextWrapper.java:93)
            at javax.faces.context.ExternalContextWrapper.dispatch(ExternalContextWrapper.java:93)
            at javax.faces.context.ExternalContextWrapper.dispatch(ExternalContextWrapper.java:93)
            at org.apache.myfaces.trinidadinternal.context.FacesContextFactoryImpl$OverrideDispatch.dispatch(FacesContextFactoryImpl.java:167)
            at com.sun.faces.application.view.JspViewHandlingStrategy.executePageToBuildView(JspViewHandlingStrategy.java:363)
            at com.sun.faces.application.view.JspViewHandlingStrategy.buildView(JspViewHandlingStrategy.java:154)
            at org.apache.myfaces.trinidadinternal.application.ViewDeclarationLanguageFactoryImpl$ChangeApplyingVDLWrapper.buildView(ViewDeclarationLanguageFactoryImpl.java:341)
            at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl._renderResponse(LifecycleImpl.java:982)
            at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl._executePhase(LifecycleImpl.java:334)
            at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:232)
            at javax.faces.webapp.FacesServlet.service(FacesServlet.java:313)
            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:173)
            at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
            at oracle.adfinternal.view.faces.webapp.rich.RegistrationFilter.doFilter(RegistrationFilter.java:121)
            at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl$FilterListChain.doFilter(TrinidadFilterImpl.java:468)
            at oracle.adfinternal.view.faces.activedata.AdsFilter.doFilter(AdsFilter.java:60)
            at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl$FilterListChain.doFilter(TrinidadFilterImpl.java:468)
            at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl._doFilterImpl(TrinidadFilterImpl.java:293)
            at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl.doFilter(TrinidadFilterImpl.java:199)
            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:111)
            at oracle.security.jps.util.JpsSubject.doAsPrivileged(JpsSubject.java:313)
            at oracle.security.jps.ee.util.JpsPlatformUtil.runJaasMode(JpsPlatformUtil.java:413)
            at oracle.security.jps.ee.http.JpsAbsFilter.runJaasMode(JpsAbsFilter.java:94)
            at oracle.security.jps.ee.http.JpsAbsFilter.doFilter(JpsAbsFilter.java:161)
            at oracle.security.jps.ee.http.JpsFilter.doFilter(JpsFilter.java:71)
            at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
            at oracle.dms.servlet.DMSServletFilter.doFilter(DMSServletFilter.java:136)
            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.wrapRun(WebAppServletContext.java:3715)
            at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3681)
            at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
            at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:120)
            at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2277)
            at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2183)
            at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1454)
            at weblogic.work.ExecuteThread.execute(ExecuteThread.java:209)
            at weblogic.work.ExecuteThread.run(ExecuteThread.java:178){code}
    The method is based upon one of ADF Code Corner articles.
    It is working properly in ADF 11.1.1.4.
    Can't see the error cause. Would like an advice, please.
    Thanks.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

    I haven't invented using ADF internals, I was surprised myself. But it worked in 1.4.
    As I said, this method is based on some blog article (thought it was Code Corner, but can't find it right now).
    I'll try Code Corner #78.
    Implemented code corner method.
    The treetable is really initially expanded. But now I can't disclose nodes manually.
    I can undisclose (close) node with no problems but trying to disclose (open) it back manually hungs up the treetable.
    Here is my code (basically the same as on Code Corner):
    <af:treeTable value="#{bindings.ComponentView1.treeModel}" var="node"
                                                  selectionListener="#{backingBeanScope.TemplateBean1.treeMakeCurrent}" // shouldn't cause troubles
                                                  rowSelection="single" id="tree1" partialTriggers=":::pc1:t1"
                                                  columnStretching="column:c7" fetchSize="60" varStatus="vs"
                                                  disclosedRowKeys="#{backingBeanScope.TemplateBean1.newDisclosedTreeTableKeys}">
    public void expandTemplateTreeTable(ActionEvent ae) { // on button
            newDisclosedTreeTableKeys = null;
            getNewDisclosedTreeTableKeys();
            TemplateUIHelper.refreshTemplateTreeTable();
        private RowKeySetImpl newDisclosedTreeTableKeys = null;
        public void setNewDisclosedTreeTableKeys(RowKeySetImpl newDisclosedKeys) {
            this.newDisclosedTreeTableKeys = newDisclosedKeys;
        public RowKeySetImpl getNewDisclosedTreeTableKeys() {
            final int expandTreeToLevelLevel = 10;
            if (newDisclosedTreeTableKeys == null) {
                newDisclosedTreeTableKeys = new RowKeySetImpl();
                FacesContext fctx = FacesContext.getCurrentInstance();
                UIViewRoot root = fctx.getViewRoot();
                //lookup the tree table component by its component ID
                RichTreeTable treeTable = TemplateUIHelper.getTemplateTreeTable();// (RichTreeTable)root.findComponent("tt1");
                //if tree table is found
                if (treeTable != null) {
                    //get the collection model to access the ADF binding layer for
                    //the tree binding used
                    CollectionModel model = (CollectionModel)treeTable.getValue();
                    JUCtrlHierBinding treeBinding =
                        (JUCtrlHierBinding)model.getWrappedData();
                    JUCtrlHierNodeBinding nodeBinding =
                        treeBinding.getRootNodeBinding();         
                    TemplateUIHelper.expandAllNodes(nodeBinding, newDisclosedTreeTableKeys, 0, expandTreeToLevelLevel);
            return newDisclosedTreeTableKeys;
        public static void expandAllNodes(JUCtrlHierNodeBinding nodeBinding,
                                    RowKeySetImpl disclosedKeys,
                                    int currentExpandLevel, int maxExpandLevel) {
            if (currentExpandLevel <= maxExpandLevel) {
                List<JUCtrlHierNodeBinding> childNodes =
                    (List<JUCtrlHierNodeBinding>)nodeBinding.getChildren();
                ArrayList newKeys = new ArrayList();
                if (childNodes != null) {
                    for (JUCtrlHierNodeBinding _node : childNodes) {
                        newKeys.add(_node.getKeyPath());
                        expandAllNodes(_node, disclosedKeys,
                                       currentExpandLevel + 1, maxExpandLevel);
                disclosedKeys.addAll(newKeys);
        }Edited by: ILya Cyclone on Jul 22, 2011 6:26 PM

  • Issue in BI Objects collection into Transport Request

    Hi Experts
    I am experincing a Issue in collecting Infocube and related objects into a transport requests using transport connection.
    My Scenario is as explained below
    1.Migrated 3.x Dataflow into BI 7.0 Dataflow
    2.Dataflow consists Infocube -->DSO (two separate DSO) --> Infosource (only 1) --> Datasource (from 2 different Source systems)
    I have manually captured all my objects into a transport requests. i.e while activation.
    The issue is when I try to use transport connection on this infocube with "Dataflow before" & Automatic collection options.
    I am getting the below mentioned error.
    Object '4C3C4WGBCRK9UWKNDGGYNKDNA' (ROUT) of type 'Routine' is not available in version 'A'
    Message no. RSO252
    Diagnosis
    You wanted to generate an object with the name '4C3C4WGBCRK9UWKNDGGYNKDNA' (in transport request ROUT) of type 'Routine' (TLOGO). This is, however, not available in the BW Repository database. It does not exist in the requested version A. If the version is 'D' then it is possible that an error arose during the delivery or installation. If the version is 'A' then the Object was either not created or not activated.
    System Response
    The object was not taken into account in the next stage of processing.
    I am sure that all my objects are collected into transport requests & I checked the object entry of all the dataflow objects..
    Appreciate your valuable inputs on this.
    Thank you in advance
    PKC

    In that case, pls ignore my prevoius post...
    The issue is when I try to use transport connection on this infocube with "Dataflow before" & Automatic collection options.
    With this option, system should have collected the related routines. Did u expand routine node, and check (ON) the check box for that routine ???
    (Once all objects got collected,  now from the right most window, expand each node (application, infoarea, routines etc) and put checkbox 'ON' (checked) to ONLY the objects (routine 4C3C4WGBCRK9UWKNDGGYNKDNA' ) u want to transport. Once u r done with that, click on Transport (truck Icon) and enter package name, if system prompts.)

  • Unable to retrieve collections from the Search Service.

    Hi,
    I have a user trying to upload a collection. She gets the
    following error:
    Unable to retrieve collections from the Search Service.
    Please verify that the ColdFusion MX Search Server is
    installed and running.
    Obviously, I checked the service. It was running. I restarted
    the service. That did nothing. I restarted all the CF services.
    Didn't fix the issue. I also rebotted the server, not expecting
    that to work. It didn't.
    Checking the server logs, I see this:
    The description for Event ID ( 105 ) in Source ( ColdFusion
    MX 7 Search Server ) cannot be found. The local computer may not
    have the necessary registry information or message DLL files to
    display messages from a remote computer. You may be able to use the
    /AUXSOURCE= flag to retrieve this description; see Help and Support
    for details. The following information is part of the event:
    ColdFusion MX 7 Search Server.
    Also, after talking to my co-worker more, it turns out this
    occurred right after she uploaded a new collection to the
    administrator. This link sounds similar to what I'm experiencing:
    http://kb.adobe.com/selfservice/viewContent.do?externalId=6c6881a9
    Maybe it's a corrupt collection?
    but I don't see any errors in the log
    (:\CFusionMX7\verity\Data\services\ColdFusionK2_indexserver1\log\status.log)
    Finally, there are some errors in the Verity service, and it
    looks like the Verity service Verity K2Server (Version 2.20pr6)
    points to D:\CFusionMX\lib\k2server.exe, which doesn’t exist
    anymore because we’ve upgraded to MX7.I'm not sure if this is
    an old service left over from before we upgraded from CFMX to
    CFMX7.
    We are running CFMX7 on a Windows 2003 Server SP1 if that
    matters.
    Thanks in advance for any help.

    In the left hand panel of the ColdFusion Administrator expand
    the Data & Services link. Then select the Verity K2 Server
    link. Change localhost to 127.0.0.1 in the Verity Host Name
    textbox.
    Ted Zimmerman

Maybe you are looking for

  • External Hard Drive worked and now doesn't work

    I've got a Macbook Pro and a Seagate external USB hard drive. I had the hard drive attached and everything was going good until it became disconnected from the computer without being ejected. Now whenever I try to plug it in i get a message saying th

  • Logging In to ePrintCenter

    Hi, Well I haven't got far! I'm all installed and registered however, when I try to Log In to my ePrint account the Log In page does not recognise my details. When I press 'Forgot Password" and it asks for my email address every time I input the addr

  • Digital Input on iMac

    Hi all, I'm currently waiting for my first iMac to be delivered. I want to record my Audient Mico preamp direct into my DAW via s/pdif direct into the iMac, so in the meantime i've ordered this cable: http://www.lindy.ie/2m-spdif-digital-optical-cabl

  • Faces not auto-detecting

    Faces frequently fails to auto-detect faces in photos. I have several pictures where the initial scan produces no faces to be named, even when the faces in the pictures are front-on and unobscured. On the other hand, I frequently get 'faces' auto-det

  • Error en photoshop cc 2014, no puedo importar videos porque dice que photoshop no admite videos en mi version de windows (windows 7) QUE HAGO???

    no puedo importar videos porque dice que photoshop no admite videos en mi version de windows (windows 7) QUE HAGO???