Map event oddness 3.5.2 - 3.5.3 - possible bug?

Hi Guys,
I’ve discovered some odd event behaviour as part of my work to upgrade Coherence from 3.5.2 to 3.5.3/465p2 and to the latest incubator patterns.
Much of our application is driven by a backing map listener attached to every cache. That feeds all regular events to an EventRouter router component to which we register subscriptions with MapEventFilters. In testing everything, I discovered that one element of functionality that relied on receiving a specific object update event had stopped working. On drilling in, I discovered the following.
No matter if the cache in question has a CacheStore or not (normally it would have a PublishingCacheStore but I removed to check this behaviour and verified that in JMX cache had PersistenceType=none), a put followed by an update, followed a further update would result in the second update producing an event with cause 'StoreCompleted'. This happens 100% of the time in our app. As our event router drops non-regular events, this gets filtered out. Bizarrely however, I have a CQC on the same cache and that does receive events correctly.
It’s really puzzling why a cache with no CacheStore would ever produce an event cause of StoreCompleted – looking at the underlying implementation, I see this is related to StoreDeco being removed between old and new values, and again I can't understand why these decorations would exist if no cache store is present.
This makes me think that 3.5.3 has changed some event behaviour internally such that the AbstractMultiplexingBackingMapListener no longer returns the correct result for cause. I checked the release notes and couldn’t see anything to this effect.
I added sysouts to the CQC and backing map listener and the annotated trace is below. Also the relevant sections of config.
If anyone has any ideas, I'd be very grateful.
Paul
<initial insert>
Cause=Regular List: LazyEventMap{AbstractMultiplexingBackingMapListener$LazyMapEvent{LocalCache inserted: key={ rawId=1032 associatedId=1032 }, value=...}}
<CQC created>
<Object updated>
Cause=Regular List: LazyEventMap{AbstractMultiplexingBackingMapListener$LazyMapEvent{LocalCache updated: key={ rawId=1032 associatedId=1032 }, old value=..., new value=...}}
CQC MapEvent{ReconnectableContinuousQueryCache updated: key={ rawId=761 associatedId=761 }, old value=..., new value=...}
<Get, update, put on object - I've also used an EntryProcessor to perform update - same result>
Cause=StoreCompleted List: LazyEventMap{AbstractMultiplexingBackingMapListener$LazyMapEvent{LocalCache updated: key={ rawId=1032 associatedId=1032 }, old value=..., new value=...}}
CQC MapEvent{ReconnectableContinuousQueryCache updated: key={ rawId=1032 associatedId=1032 }, old value=..., new value=...}
<cache-mapping>
               <cache-name>publishing-*</cache-name>
               <!--scheme-name>distributed-scheme-with-publishing-cachestore</scheme-name-->
            <scheme-name>distributed-identifiable-scheme</scheme-name>
               <init-params>
                  <init-param>
                        <param-name>local-scheme-name</param-name>
                         <param-value>eventsource-local-scheme</param-value>
                  </init-param>
                </init-params>
          </cache-mapping>
{code}
{code:xml}
          <distributed-scheme>
               <scheme-name>distributed-identifiable-scheme</scheme-name>
               <thread-count>5</thread-count>
               <backing-map-scheme>
                    <local-scheme>
                         <scheme-ref>binary-eventsource-local-scheme</scheme-ref>
                    </local-scheme>
               </backing-map-scheme>
            <autostart>true</autostart>
               <serializer>
                    <class-name>com.tangosol.io.pof.ConfigurablePofContext</class-name>
               </serializer>
          </distributed-scheme>
{code}
{code:xml}
<local-scheme>
  <scheme-name>binary-eventsource-local-scheme</scheme-name>
    <unit-calculator>BINARY</unit-calculator>
      <listener>
        <class-scheme>
        <class-name>com.core.cache.events.EventSourceBackingMapListener</class-name>
          <init-params>
            <init-param>
              <param-type> com.tangosol.net.BackingMapManagerContext</param-type>
              <param-value>{manager-context}</param-value>
            </init-param>
          </init-params>
        </class-scheme>
      </listener>     
{code}                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

Hi Paul,
This really seems like an issue that should opened as an SR at https://support.oracle.com.
Please let me know if you have any other questions.
Thanks,
-Dave

Similar Messages

  • Mapping behave odd after re deployment

    Hi,
    We have a strange situation, we are using OWB 10.2.0.3 and database Oracle 10.2.0.3.0,
    We have some mapping running past 1.5 years with out any issue as part of code migration we re deployed same code then we are getting strange errors like undefined identifier (some column name) , we use replace as a mode of deployment now i am getting some error on a mapping saying uniq constarint error but the data is fine any clues on these errors i see these when we redeploy the same code
    undefined identifier (some column name) gone when i delete mapping form owb and import and deploy
    Suresh

    Hi Suresh,
    There may be multiple problems in ur case.
    1) the database might not be in sync.
    2) the OWB migration may have messed up some objects (this is the most common issue)
    3) OWB instillation may be different than before
    4) the database may be set in a different way
    5) OWB metadata may have been messed up.
    6) tables in OWB and/or Database are not in sync.
    Please make sure all the above are set correctly.
    Regards
    Bharadwaj Hari

  • Event handler doesn't work for a Canvas inside a canvas (Possible bug in Flex 4)

    Hi Guys,
    I have a canvas sitting inside another canvas. When i try to catch the mouseClick event in the child canvas, im not able to do it. When i change the child canvas component to a 'Panel', the event handler works perfectly fine. Any suggestions/solutions?

    ok a few things you should know... it is recomended to use the spark components when working with flash builder 4 thought the mx components are available spark is much litghter in weight. also if you want to use the equivalent of a canvas in spark then you want to use a "group" but ill warn you they dont support inline styles, a border container looked more appropiate for what you were trying to do below.  However. i did fix your code for flex 4.0
    look below.
    component:
    <?xml version="1.0" encoding="utf-8"?>
    <mx:Canvas xmlns:fx="http://ns.adobe.com/mxml/2009"
         xmlns:s="library://ns.adobe.com/flex/spark"
         xmlns:mx="library://ns.adobe.com/flex/mx"
        creationComplete ="canvas2_creationCompleteHandler(event)">
    <fx:Declarations>
      <!-- Place non-visual elements (e.g., services, value objects) here -->
    </fx:Declarations>
    <fx:Script>
      <![CDATA[
    import mx.controls.Alert;
    import mx.events.FlexEvent;
    public function canvas1_clickHandler(event:MouseEvent):void
    Alert.show("Clicked");
    public function canvas2_creationCompleteHandler(event:Event):void
    {// TODO Auto-generated method stub//
    kenaCan.addEventListener(MouseEvent.CLICK, canvas1_clickHandler);
      ]]>
    </fx:Script> 
    <mx:Canvas id="kenaCan"
          width="400"
          height="300"
          borderStyle="solid"
          borderColor="black"
          backgroundColor="white"
          />
    </mx:Canvas>
    application:
    <?xml version="1.0" encoding="utf-8"?>
    <s:Application xmlns:fx="http://ns.adobe.com/mxml/2009"
          xmlns:s="library://ns.adobe.com/flex/spark"
          xmlns:mx="library://ns.adobe.com/flex/mx" minWidth="955" minHeight="600"
          xmlns:local1="local.*">
    <fx:Declarations>
      <!-- Place non-visual elements (e.g., services, value objects) here -->
    </fx:Declarations>
    <local1:canvas/>
    </s:Application>
    if this post answers your question please mark it as such thanks

  • Possible bug - Missing click event when handling change event

    Using Flex 4.5 SDK, I have a spark ComboBox and a Button next to it for applying a filter according to ComboBox selection.
    I listen to both the ComboBox's change event & the Button's click event (for different functions).
    When I manually delete the ComboBox text value from its TextInput (i.e. changing selected index to -1) and immediately click on the Button,
    the click event-handler function is not being called and only the ComboBox's change event-handler function is executed.
    (Selecting a value from the ComboBox's list and clicking on the button triggers both methods on the right order.)
    There's also a state definition for the module, but it isn't being changed during these operations...
    Is this a bug or a correct behavior? Am I missing something here?
    Any workaround suggestions?
    (I thought of listening also to mouse-down or mouse-up on the button instead, but haven't tried it yet...)
    *** UPDATE ***
    When using the Button's mouseDown event the behavior is as expected, so there's a simple workaround.
    However, it seems to me like there's a bug with the Button's click event listener or something...
    *** UPDATE #2 ***
    I created a test application for that and couldn't reproduce the problem.
    Then I figured out the problem and solved it.
    It's a bit emmbarrasing, but I actually disabled the button (enabled=false) as in a child method of the change handling code...
    (If there is no value, don't allow applying the filter - It makes sense! )
    Anyway... No issue after all.
    However, I choose to leave this post (and not delete it) as an example of identifying and resolving a strange behavior in a complex application.

    There's no need.
    Please read the section UPDATE #2.

  • Eventing on Graphics using ABAP Webdynpro is it Possible -EHP5

    Hi,
    I have below graphic output requirement..
    On X-axis i will have fixed columns.. and I should have an option to  DRAG and DROP contents which should be like Blocks  from 1 column to other column.. which eventually should update database..Is it possible technically ? I know we can do drag drop whole column in ALV from EHp2 but this is some strange requirement for me..How do we handle this?
    EMP3
    EMP1                 EMP2                EMP4        
    A                     B                   C                   D
    FYI..We are SAP ramp up customers for EHP 5.0
    Should we use
    IGS( Internet Graphics Server) with Business graphic? Can we handle eventing?
    Adobe Flex? If so do we need any extras for Client machines like flash? How complex would it be?
    ALV Display as Graphic? As far as i know this is just display
    Rgds
    Tarun
    Edited by: SriTarun on Jun 6, 2011 3:36 PM

    NB - the "data" that is returned by these classes is the data as defined in an adobe form - it doesn't return the content of non-form PDF documents.
    The PDF must be an interactive form ( although that doesn't restrict you to using the SAP process for creating the form is my understanding - but I could be wrong. )
    Edit - I was wrong! ONLY PDF documents that have been created by the ADS can have data extracted using these classes. So unless you are using Adobe interactive forms - then you will get no value from this functionality - and if you're using AIF then you're probably just use the standard UI element
    Edited by: Chris Paine on Oct 26, 2010 6:04 PM

  • Possible bug, at least serious problem, in the AS3.0 event architecture

    Event bubbling causes a compiler error when it should not.
    High up in the display list, a
    listener has been added for TypeBEvent which extends
    TypeAEvent.
    Lower in the display list, a
    different object dispatches a TypeAEvent, and sets bubbling to true
    (and possibly, cancellable to false).
    A Type Coercion error (#1034)
    results! The listener receives the bubbled event which is of the
    same type as the base class of the handler event type. The event
    object "cannot be converted" to the TypeBEvent it is
    receiving.
    Circumstances
    This situation came up in a real Flex project, where a video
    player that had been loaded as a module within another module
    dispatched a PROGRESS ProgressEvent, and a listener had been added
    to the higher level module for its ModuleEvent PROGRESS event,
    ModuleEvent subclasses ProgressEvent. The video player bubbled its
    event, and the compiler threw this error: "TypeError: Error #1034:
    Type Coercion failed: cannot convert
    flash.events::ProgressEvent@1f2de0d1 to mx.events.ModuleEvent."
    This compiler error does not make sense from a developer
    perspective, because it means any class lower on the display list
    can break the player (not the program, the player) simply by
    dispatching an event.
    Our team lost a great deal of (expensive) time trying to
    locate the source of this problem, since nothing about the compiler
    error – including the stack trace! – indicated the
    high-level class. In fact, the module developer didn't know
    anything about the high-level class which was compiled to a swc
    library, and the event being dispatched was in the flex class
    library, so neither end of the problem was very visible. Because
    the error only pointed to the video player class the developer
    naturally went into the flex classes first and tried to solve the
    problem in their scope before finally giving up and bringing the
    problem to others on the team.
    Truly a case where the software defeated team workflow.
    Our conclusion
    We love the new event framework but, this seems to come
    pretty close to qualifying as a bug. The high-level event listener
    simply should NOT have received, then choked the player on the
    bubbled base-class event. It should either receive it or not. If it
    did receive the event, the code in the handler could check whether
    the event target was appropriate... but instead the player breaks
    and does not provide any clue as to where, it only indicates the
    dispatching class as a culprit. Even short of fixing the problem,
    improving the error message so that the receiving event handler is
    clearly implicated would be a start.
    Again I am of the opinion that this compiler error should not
    take place at all because the top class subscribed specifically to
    the subclassed event type. A bubbled event that breaks the player
    due to an unrelated listener is just a huge black hole, especially
    when multiple developers are working on different tiers of a
    program.
    Could we get a reply from someone at Adobe on this issue?
    Thanks very much,
    Moses Gunesch

    If you create a metadatatype with a single metdata block, and you reference that in your vm/cm cell attribute using a *one* based index, Excel seems to see the link and it honors it when saving the spreadsheet.
    So, I ended up with something like:
    <c ... cm="1"/> (I'm dealing with cell metadata, but the concept is equivalente to value metadata)
    <metadataTypes count="1">
      <metadataType name="MyMetaType" .../>
    </metadataTypes>
    <futureMetadata count="1" name="MyMetaType">
      <bk>
        <extLst><ext
    uri="http://example" xmlns:x="http://example"><x:val>87</x:val></ext></extLst>
      </bk>
    </futureMetadata>
    <cellMetadata count="1">
      <bk><rc
    t="1" v="0"/></bk> <!-- this is what gets referenced as cm=1 on the cell -->
    </cellMetadata>
    Hope this helps. 

  • Without any action the name of the places on the map in a book disappeared and is there a possibility to save a book of cd, dvd or usb as a book not only the pictures in the book

    i have several books - of which 4 have been ordered and delivered - but without any action all of a sudden the name of places disappeared from the map i have in these books
    any idea why ?
    in addition, is there a possibility to save the book - with the layout etc  - on a cd. dvd or usb. i tried on a cd and got only the pictures not with the layout per page. Suggestions ?
    thks.

    To archive a book:
    Duplicate the Library that contains the book
    Remove pics from the duplicate that are not in the book
    Burn the duplicate Library to CD
    Regards
    TD

  • On 27th and 28th marchb2013 , I pad calendar, (showing March), opens then immediately closes. I cannot get into thebCalendar to change anything, (previous bug involved having all-da events on April 1st. How to fix this bug?

    Does anyone know how to fix this bug?
    Thanks,
    Peter, Worcs.UK

    I followed your instructions and installed Developer Suite 10G on Windows Vista Home Premium edition. I have Oracle 11G DB running on the same machine.
    Two points, Steve:
    1. When I tried to set the maximum virtual memory to 6110 an error message displayed from Windows and told me that I can't set the maximum virtual memory to more than 4096. I set it to 4090 and it worked and I got nothing wrong during the installation process.
    2. After installing JInitiator and disabling Java on Firefox I called the http://127.0.0.1:8889/forms/frmservlet page and everything seemed to be OK because the Oracle Forms Services logo appeared and then a successful installation message appeared , but as I clicked (ok) to continue a gray screen appeared inside the browser (like the one displayed when you try to run a Java applet inside a browser) and then I wait to death till something appears but sadly nothing. I just get a blank gray screen inside my Firefox browser.
    Do you have any idea what to do to solve the problem?
    Regards

  • Possible bug in event handler code

    I went to test the app I've built on a PC (Works wonderfully
    on my Mac) and it threw the following error code.
    Line : 78
    Char: 33
    Error: Expected ':'
    Code: 0
    Here's the code. Line 78, Char 33 corresponds to the first
    letter is "dsRounds..." in the onclick handler. I should note that
    the page still functions in spite of this error. I have error
    reporting full on. It's IE 6 on Windows XP professional, SP2. Just
    thought someone should know.
    <div spryregion="dsRounds">
    <div spryrepeat="dsRounds">
    <h4><a href="#"
    onclick="dsRounds.setCurrentRow({ds_RowID})"
    spryselect="mySelectClassRound"
    spryselectgroup="rounds">{roundTitle}</a>
    <em>{roundDate}</em></h4>
    </div>
    </div>

    It looks like IE is choking on the ds_RowID data reference as
    the page is still loading cause it isn't quoted. Put single quotes
    around it and the error goes away.
    --== Kin ==--

  • When do the Filters turn into IndexAwareFilters ?

    Hi, I've looked through the documentation and this forum and probably found the answer already. But just to be sure ...
    Re: Aggregation with a Partitioned Cache: unnecessary serialization This is post which i found useful for answering my question.
    So am i right that any Filters which implement IndexAwareFilter interface (GreaterFilter, LessFilter, etc) start
    behaving as a IndexAwareFilter after indexing the properties?
    I've been looking for the solution which could optimize quering performance and it looks like there is only one choice. It's ok for me )) . When i started my search i thought about Extractors which could deal with POF format to extract some specific values without deserialing object. But in that case you still have to iterate over all values and cache those extracted values. The Coherence's indexing solution makes the same without requering additional effort from you.

    Hi,
    IndexAwareFilters are EntryFilters, but before iterating over the entire candidate set, they can first check whether there are applicable indexes they could use, and they do this before deserializing any entries.
    This usually means that they check that an index exists for their extractor, and if yes, they use it, but there are exceptions, e.g. InKeySetFilter is an IndexAwareFilter, but it does not need any indexes to exist, it instead just filters the binary form of the keys.
    So yes, most IndexAwareFilter give you a plus only if your extractor is indexed, but that is just because those kind of filters are provided.
    As for extracting directly from the Binary form: one advantage is indeed that if an attribute is not indexed, then you don't need to pay the deserialization cost at querying, but there is a more significant advantage, too: you don't need to deserialize upon updates.
    Coherence needs to deserialize your new entry value for updated entry or for an inserted entry on the storage node in case any of the following is true:
    - an index is created on the cache which does not directly go into the Binary
    - a map event filter-based cache listener or backing map listener is registered on the cache
    - a backing map listener wants to examine the new value
    - a map event transformer wants to transform the new value
    Possibly most of these can benefit from not having to deserialize the entry if only Binary-aware extractors are used.
    Best regards,
    Robert

  • Images and image maps do not respond to events on Safari

    Hello everyone,
    We have been experiencing issues with events not responding to images associated with image maps, on Safari browser. After the DOM is loaded with new image and corresponding image maps, events such as mouseover and click observing this divs do not respond or get triggered. DOM seems to be updated correctly but behaves differently (and it works correctly in all other browsers except Safari).
    This behaviour is only noticed in Safari browser running both on Windows and Mac. (Tested on Safari Version 3.1.1 on running on Windows and Mac)
    For you all to have a closer look at this issue, I have created a sample that has this problem, similar to one we experienced during one of our recent projects. Please click on the link below to get to the sample (I recommend you to try this either in Firefox or IE before you do on Safari)
    http://www.hivegroup.com/safari/test.html
    (In the above sample,
    - the javascript code initializes the DOM with image and image map
    - assigns two event listeners to the div containing this image and image map
    - when mouse pointer brought over the image, it shows the area id in the 'mobox' div
    - when clicked, DOM is updated with a new image and new corresponding image map, assigns new event listeners and should continue with the same kinda behaviour it did for the first image (but doesn't in Safari browser))
    All inputs on this issue are welcome and greatly appreciated.
    Thanking you in advance.
    Regards,
    Shashi.

    Let me explain what the pink area is. Like the first image that contains two white boxes, the pink area (as you call it) is a new image (containing four pink areas or boxes having an area id denoted to each) that imgDiv occupies after the 'click' event occurs.
    Yep, i gathered that from seeing it work on firefox...
    The point that I'm trying to make here is, there shouldn't be any difference in behaviour when imgDiv holds first image (two white boxes) or the second image (four pink boxes) that you get after we click on image or the third image (containing 6 boxes, multiple colors) which you won't be able to reach in safari browser.
    well... I can reach them, but only via the blue space.
    . We'll notice change in the red box displaying target id only when we mouse over a new area that is not currently being displayed in the red box.
    except in webkit for safari 2, where thered bpx content sticks at whatever it was when the first image was clicked, unless mouse is moved to the 'all area', and then it sticks on imgdiv.
    I completely understand what you see in safari 2. But are you saying there's some error in my script ? If so could you please point out and justify.
    I dunno Shashi, just pointing out the errors that Safari 2 reports when I view your test page, in the hope it might help. I know little of javascript

  • Bing Maps on IE 11 browser, The mouse click event is only working when we have compatibility mode on.

    I have tried out the code in this article in ASP.Net web forms with c#  and javascript.
    I am using Ajax to call the C# from Javascript and load the data from database.
    I have used following article to show the pushpins and there infoboxes.
    http://blogs.msdn.com/b/rbrundritt/archive/2013/11/08/multiple-pushpins-and-infoboxes-in-bing-maps-v7.aspx?CommentPosted=true#commentmessage
    My code works great on IE 11 , when I have compatibility mode on,
    but when compatibility mode is off, the mouse click event is not being received by the Javascript function.
    Is this expected behavior of bing maps, Are there any workarounds for this problem?
    Thanks
    Nate

    Hi Ricky, I have tried using Chrome and I see the same issue. The mouse events are not being captured. 
    Here is my code
    <%@ Page Title="" Language="C#" MasterPageFile="~/Maps.Master" AutoEventWireup="true" CodeBehind="BingMaps.aspx.cs" Inherits="MyMaps.secure.BingMaps" %>
    <asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolderBody" runat="server" >
    <asp:ScriptManager ID="ScriptManager" runat="server"
    EnablePageMethods="true" />
    <div id="MapHolder" style="; width:1000px; height:800px; " />
    <asp:Literal ID="Literal1" runat="server">
    </asp:Literal>
    </asp:Content>
    <asp:Content ID="Content3" ContentPlaceHolderID="ScriptSection" runat="server">
    <script type="text/javascript" src="http://ecn.dev.virtualearth.net/mapcontrol/mapcontrol.ashx?v=7.0">
    </script>
    <script type="text/javascript" >
    var map = null, infobox, dataLayer;
    $(document).ready(function () {
    GetMap();
    function GetMap() {
    // Initialize the map
    map = new Microsoft.Maps.Map(document.getElementById("MapHolder"),
    { credentials: "lincensekey", zoom: 2 });
    dataLayer = new Microsoft.Maps.EntityCollection();
    map.entities.push(dataLayer);
    var infoboxLayer = new Microsoft.Maps.EntityCollection();
    map.entities.push(infoboxLayer);
    infobox = new Microsoft.Maps.Infobox(new Microsoft.Maps.Location(0, 0), { visible: false, offset: new Microsoft.Maps.Point(0, 20) });
    infoboxLayer.push(infobox);
    PageMethods.GetLocations(RequestCompletedCallback, RequestFailedCallback);
    function AddData(MapPoints) {
    for (var i = 0, len = MapPoints.length; i < len; ++i)
    var pushpin = new Microsoft.Maps.Pushpin(new Microsoft.Maps.Location(parseFloat(MapPoints[i].lat),parseFloat(MapPoints[i].lon))
    icon: MapPoints[i].group,
    height: 50, width: 60, text: MapPoints[i].city
    pushpin.Title = MapPoints[i].name;
    pushpin.description = MapPoints[i].desc;
    Microsoft.Maps.Events.addHandler(pushpin, 'click', displayInfobox);
    dataLayer.push(pushpin);
    function displayInfobox(e) {
    if (e.targetType == 'pushpin') {
    infobox.setLocation(e.target.getLocation());
    infobox.setOptions({ visible: true, title: e.target.Title, description: e.target.description });
    function RequestCompletedCallback(result) {
    result = eval(result);
    AddData(result);
    function RequestFailedCallback(error) {
    var stackTrace = error.get_stackTrace();
    var message = error.get_message();
    var statusCode = error.get_statusCode();
    var exceptionType = error.get_exceptionType();
    var timedout = error.get_timedOut();
    alert("Stack Trace: " + stackTrace + "<br/>" +
    "Service Error: " + message + "<br/>" +
    "Status Code: " + statusCode + "<br/>" +
    "Exception Type: " + exceptionType + "<br/>" +
    "Timedout: " + timedout);

  • Events listening to Image with map not triggered after DOM manipulation

    Hi again,
    I am rephrasing the issue that I had posted earlier today and assume that reproducing the issue wasn't clearly mentioned.
    ISSUE:
    After the DOM is updated with new image and corresponding image map, events assigned to the div containing the img and map, do not respond or get triggered.
    *TO REPRODUCE:*
    Click on the link below. There appears an image that has image map. Mouse over any of the two boxes and notice that corresponding area ID appears in the red colored box placed below the image.
    (Until here all browsers behave the same. So far so good ...).
    Now click on one of the two boxes (image) and then a new page is loaded that has a new image and corresponding image map to it.
    Now the new image has 4 pink colored boxes. Mouse over any of the boxes and the red colored box should now display the area id corresponding to the box.
    Red colored box below the image is updated with the area id of the box and you mouse over any of the 4 boxes in all the browser EXCEPT IN SAFARI.
    Further, (in all browsers except safari) click on the image and a again a new page is loaded and mouse over and click event are trigerred.
    As long as we mouse over the image, red box gets updated with the area id corresponding to that of the box from the image.
    Also as long as we click a new page is loaded with new image (there are 3 images that are in loop).
    *LINK TO SAMPLE:*
    I recommend you to try this either in Firefox or IE before you do on Safari (to see the normal, expected behaviour first).
    http://www.hivegroup.com/safari/test.html
    All inputs on this issue are welcome and greatly appreciated.
    Thanking you in advance.
    Regards,
    Shashi.

    Thanks for advice Reverse_parn. And I did report the bug to Apple, like you said.
    And, finally did you notice the wrong behaviour in Safari ?
    Regards,
    Shashi

  • Question about mapping.

    How would I "map events to the indices of an array?" For example, I have an array that looks like:
    {2, 2, 2, 6, 4, 10, 1, 1}
    Instead of explicitly storing each event, I'd like to have the index of the array represent the event and have the element hold the number of times the event occurred. For example, the above would be:
    Result of event: 1 2 3 4 5 6 7 8 9 10
    Number of times event occurred: 2 3 0 1 0 1 0 0 0 1
    Thanks.

    If the events you're tracking are densely packed integers--that is, most or all of the integers in a given range--then you create an array. Let's say you're tracking events identified as 1-10. You'd create an array of 10 ints. arr[0] is how many times you've seen event 1, arr[1] is the count for event 2, etc.
    Numerical array elements are initialized to zero upon creation, so every time you get an event, you increment the corresponding array element: int eventId = getEventIdSomehow();
    arr[eventId]++; On the other hand, if your events are the numbers 1 1,000 2,500,000, 10,000,000, and 2,000,000,000 then you don't want an array of 2,000,000,000 elements just to track five of them. In that case, or if the events can't be identified as densely packed intgers, then use a java.util.Map. The key will identify which event, and the value will be the number of occurences.

  • Generating events from a control inside an array of clusters

    Hi, I have a question regarding UI events. I would like to capture a mouse down event generated in a string control inside of an array. Each element of the array is a cluster that has a Boolean control, a numeric control and a string control. When I try to add an event to handle the mouse down the only option available in the event structure is the one available for the entire array. If this is not possible to map event from the individual controls inside of the each cluster that are part of the array, could you provide with an alternate way of "knowing" when the string control is selected. The application has a touch screen without a keyboard and mouse. I need to display the touch screen graphic keyboard when the textbox is selected.
    Thanks,
    Diego F.

    I'm not sure, but I think your only option may be to do some calculations. The mouse down on the array will give the coordinates of the click in VI coords. You can get the coords and size of the cluster and the coords and size of the string using their property nodes. Then, you have to calculate whether the click was on one of the visible strings using addition, subtraction and quotients. Once you make a subVI out of this, it should be easy to use.
    You should watch out for the index display and the label, as they change the values of the coords. I'm sorry, I can't think of any easier way to do this.
    Correction - I just thought of one. If you use the KeyFocus property on the string inside the mouse down event, it seems to work. I'm not sure whether this will work when bringing the keyboard to the front, which is why I left the other suggestion in place. Here's my test (7.0)
    Try to take over the world!
    Attachments:
    key1.vi ‏29 KB

Maybe you are looking for