Strange formula behavior ... bug ?

Hello
I am making tests for Budget implementation.
Here is the context :
Accounts :
A_TECH_A
A_TECH_B
A_TECH_C = A_TECH_A / A_TECH_B
I want, in budget, to be able to make data entry directly for A_TECH_C value.
So I created an other account A_TECH_C_BUD
And put this formula in A_TECH_C
IIF(CATEGORY=ACTUAL,IIF(A_TECH_B=0,0,A_TECH_A / A_TECH_B),A_TECH_C_BUD)
I would like to be able to catch the 0 value of B to avoid the "0 division" and put 0 in C.
This formula works well, and I tried those values in an EVDRE :
                      ACTUAL            BUDGET
A                     4
B                     2
C                         2 (calc)             10 (calc)
D                                                   10
But if I now put a 0 for B, then the calculation for ACTUAL is correct because I see 0, but I also see 0 in BUDGET ! which is not the required behavior.
It seems that the formula to test the 0 replaces the first test for ACTUAL.
Is it possible to mutiply the IIF conditions like I made or not ?
Thank you very much and tell me if something misses in my explanations.

Hi
Right, A, B, C and D are reduced name for A_TECH_A ... note that D is in fact A_TECH_C_BUD, account reserved for data entry on budget for C.
If I enter this in actual
A = 4
B = 2
Then C is calculated with 2, which is correct regarding the formula, because we are in actual and B is different of 0.
Now on the same table (in column I put in my EVDRE : ACTUAL, BUDGET
On budget I put
D (C_BUD) : 10
When I upload and refresh, I see 10 on C, which again is correct because the formula in actuals tells to take A_TECH_C_BUD.
Now with the same table, I put 0 in B ... then what I see is a 0 everywhere for C account, ACTUAL or BUDGET.
It seems that the first IIF has been forgiven.
Is it clearer now ?

Similar Messages

  • Bug in my code or strange memory behavior ?

    Hi, Guys !
    It's been a while since I post something in this forum - trying to use your help when it's really needed.
    So, here we go ...
    (we use Oracle 8.1.7 on Unix box and SQL * Plus 8.1.6)
    While back I wrote "core" PL/SQL package that resides in let's say DB1 database. It has RECORD_EXISTS_FNC function designed to dynamically check If the record exists in certain table/view. Assumptions are that you pass in :
    Table/View name, Column name, and unique numeric value (because by DBA rules all of our Tables have SEQUENCE as a Primary Key. And I plan soon to put in overloaded function to accept unique character value)
    Also every Table has SYS_TIME_STAMP and SYS_UPDATE_SEQuence columns that populated by Trigger before Insert/Update representing Last Update time_stamp
    and how many times record was updated within same second.
    (in case more than one User updates same record in same time - that was written before Oracle had more granular date/time). So function has SYS_TIME_STAMP and SYS_UPDATE_SEQUENCE parameters (optional) accordingly.
    And It looks something like :
    FUNCTION RECORD_EXISTS_FNC
    (iBV_NAME IN USER_VIEWS.VIEW_NAME%TYPE,
    iPK_FIELD IN USER_TAB_COLUMNS.COLUMN_NAME%TYPE,
    iPK_VALUE IN NUMBER,
    iSYS_TIME_STAMP IN DATE DEFAULT NULL,
    iSYS_UPDATE_SEQ IN NUMBER DEFAULT NULL) RETURN BOOLEAN IS
    TYPE REF_CUR IS REF CURSOR;
    CR REF_CUR;
    i PLS_INTEGER DEFAULT 0;
    vRESULT BOOLEAN DEFAULT FALSE;
    vQUERY USER_SOURCE.TEXT%TYPE;
    BEGIN
    vQUERY := 'SELECT 1 FROM ' || iBV_NAME || ' WHERE ' || iPK_FIELD || ' = ' || iPK_VALUE;
    IF iSYS_TIME_STAMP IS NOT NULL AND iSYS_UPDATE_SEQ IS NOT NULL THEN
    vQUERY := vQUERY || ' AND SYS_TIME_STAMP = TO_DATE (''' || iSYS_TIME_STAMP || ''')
    AND SYS_UPDATE_SEQ = ' || iSYS_UPDATE_SEQ;
    END IF;
    IF iBV_NAME IS NOT NULL AND
    iPK_FIELD IS NOT NULL AND
    iPK_VALUE IS NOT NULL THEN
    OPEN CR FOR vQUERY;
    FETCH CR INTO i;
    vRESULT := CR%FOUND;
    CLOSE CR;
    END IF;
    RETURN vRESULT;
    EXCEPTION
    WHEN OTHERS THEN
    IF CR%ISOPEN THEN
    CLOSE CR;
    END IF;
    INSERT_ERROR_LOG_PRC ('CORE_PKG', 'ORACLE', SQLCODE, SQLERRM, 'RECORD_EXISTS_FNC');
    RETURN vRESULT;
    END RECORD_EXISTS_FNC;
    So the problem is when I call this function from let's say
    database DB2 (via db remote link and synonym) and I know exactly that record does exists (because I am selecting those SYS fields before pass them in) - I get the correct result TRUE. The other programmer (Patrick) calls this function within same DB2 database, within same UserID/password (obviously different session), running exactly the same testing code and gets result FALSE (record doesn't exist, but it does !) He tried to Logoff/Login again several times within several days and try to run it and still was getting FALSE !
    I tried to Logoff/Login again and I was getting mostly TRUE and sometimes FALSE too !!!
    I thought may be It has something to do with REF CURSOR that I use to build SQL on the fly, so I changed to NDS
    using EXECUTE IMMEDIATE statement - nothing changed.
    vQUERY := 'SELECT COUNT (1) FROM ' || iBV_NAME || ' WHERE ' || iPK_FIELD || ' = ' || iPK_VALUE;
    IF iSYS_TIME_STAMP IS NOT NULL AND iSYS_UPDATE_SEQ IS NOT NULL THEN
    vQUERY := vQUERY || ' AND SYS_TIME_STAMP = TO_DATE (''' || iSYS_TIME_STAMP || ''') AND SYS_UPDATE_SEQ = ' || iSYS_UPDATE_SEQ;
    END IF;
    EXECUTE IMMEDIATE vQUERY INTO i;
    vRESULT := NOT (i = 0);
    RETURN vRESULT;
    Interesting note : when Patrick doesn't pass SYS parameters (Time_stamp, Update_sequence), or passes NULLs - function always finds the record ! (Statement 2 below)
    May be it has to do with the way TO_DATE () function gets parsed in that dynamic SQL - I don't know ...
    Here's the test code :
    SET SERVEROUTPUT ON;
    DECLARE
    SYS_TIME DATE;
    SYS_SEQ NUMBER;
    bEXISTS BOOLEAN DEFAULT FALSE;
    BEGIN
    SELECT SYS_TIME_STAMP, SYS_UPDATE_SEQ INTO SYS_TIME, SYS_SEQ FROM LOCATION_BV WHERE PK = 1;
    bEXISTS := CORE_PKG.RECORD_EXISTS_FNC ('LOCATION_BV','PK',1, SYS_TIME, SYS_SEQ); -- STATEMENT 1
    --bEXISTS := CORE_PKG.RECORD_EXISTS_FNC ('LOCATION_BV','PK',1, NULL, NULL);        -- STATEMENT 2
    IF bEXISTS THEN
    DBMS_OUTPUT.PUT_LINE ('TRUE');
    ELSE
    DBMS_OUTPUT.PUT_LINE ('FALSE');
    END IF;
    END;
    I asked our DBA, he has no clue about this strange inconsistent results.
    I debugged line by line, extracted that generated SQL and ran it in same account - works fine !
    Does anyone knows or have clues or can help what's going on ???
    I don't know If this is bug in my code or strange memory behavior ?
    (Please let me know If anything unclear)
    Thanx a lot for your help and time !
    Steve K.

    see your other thread
    Bug in my code or strange memory behavior ?

  • Capturing DVCAM in FCP 6.0.2 and encountering strange capture behavior

    I have FCP 6.0.2 and OSX 10.5.2 and QT 7.3.1. I have been capturing several DVCAM cassettes using my Sony DSR-20 deck. Although I have done this countless times before in earlier versions of FCP, I am encountering some strange repetitive behavior. I am capturing 30 minute clips one at a time. When I use batch capture it will cue the tape up properly to the in point...and then start capturing until it gets to about 10-12 minutes in, and then capture unexpectedly stops, no dialogue box, the tape rewinds and starts capturing again from the original in point. On this second capture, the tape sails past the 10 minute mark and keeps going to the end of the 30 minute clip. It then stops, gives me the dialogue box that it has successfully captured. And it has.
    But every DVCAM tape I captured today exhibited the same behavior. Capture would be successful until about about 10 minutes in, then FCP aborts (no dropped frame message, no dialogue box) rewinds the tape back to the in point, tries again, and this time succeeds with the second pass capturing the entire clip. Note at the 10 minute mark there is no scene change or no camera start/stop.
    Have other users experienced this issue? And if so, is there a workaround or a possible patch forthcoming from FCP?
    Many thanks,
    John

    Yes, each tape has an in and out point defined. In my 6 years of editing with Final Cut and DVCAM tapes I've never encountered this issue before in the capturing process until now. I will have to see in future weeks with other captures whether this is an on-going issue or not, but at least I can capture for now.

  • Strange Permissions Behavior with Public/Private Drop Box

    Strange Permissions Behavior with Non-Course Drop Box
    In an effort to promote iTunes U on campus this semester (and to get people working with audio and video more) we're having a contest in which people can submit personal or group audio/video projects.
    This being an iTunes promo, we intend for students to submit their contributions via a drop box.
    To that end, I began experimenting with drop boxes in iTunes U, which I haven't done much of previously. I've created a course called "iTunes U Drop Box Test" under "Campus Events". Within that, I have two tabs: "Featured Submissions" and "Dropbox". My goal with this drop box was to allow faculty, students and college folks the ability to use the drop box ("college" being a role I've defined for those who don't fit into the faculty/student roles).
    When I first started experimenting, access to the "iTunes U Drop Box Test" course looked like this:
    --- Credentials (System) ---
    Edit: Administrator@urn:mace:itunesu.com:sites:lafayette.edu
    Download: Authenticated@urn:mace:itunesu.com:sites:lafayette.edu
    Download: Unauthenticated@urn:mace:itunesu.com:sites:lafayette.edu
    Download: All@urn:mace:itunesu.com:sites:lafayette.edu
    --- Credentials ----
    Download: College@urn:mace:lafayette.edu
    Download: Instructor@urn:mace:lafayette.edu
    Download: Instructor@urn:mace:lafayette.edu:classes:${IDENTIFIER}
    Download: Student@urn:mace:lafayette.edu
    Download: Student@urn:mace:lafayette.edu:classes:${IDENTIFIER}
    For the "Featured" Submissions tab, I gave the non-system credentials the "download" right, and for the "Dropbox" tab I gave the non-system credentials the "dropbox" right.
    My understanding of this setup is that everyone should have had the ability to view the course and the contents of the "Featured Submissions" tab and that those in the College/Instructor/Student roles would be able to upload files via the "Dropbox" tab ... but not see the contents of said tab after the files were uploaded (aside from any files they uploaded themselves).
    This is not the behavior we saw however. While the College/Instructor/Student roles could upload files to the dropbox, everyone (including the unauthenticated public) was able to see all of the contents of the dropbox.
    The only way I could get this to work as advertised was to change all of the system credentials save the "Administrator" to "No Access":
    --- Credentials (System) ---
    Edit: Administrator@urn:mace:itunesu.com:sites:lafayette.edu
    No Access: Authenticated@urn:mace:itunesu.com:sites:lafayette.edu
    No Access: Unauthenticated@urn:mace:itunesu.com:sites:lafayette.edu
    No Access: All@urn:mace:itunesu.com:sites:lafayette.edu
    Once I did this, everything worked as advertised: College/Instructor/Student roles could upload tracks, and the "Dropbox" tab would only display tracks they uploaded.
    So my question is ... is this the correct behavior for the drop box? It looks like when the system credentials are in play, they're simply overriding whatever the normal "view" rule is for the drop box, which doesn't seem right.

    Your current configuration where things work as you wanted does seem correct to me. You are not using any System Credentials to accomplish the functionality and that's fine.
    Here's some more info to clarify how / why this is working for you and why you had to set "No Access" for the System Credentials:
    The System Credential "Authenticated@..." is going to get assigned to any user that goes through your transfer script. Even if you transfer script assigns no credentials to a user, upon entering iTunes U they will have at least 1 - the "Authenticated@..." credential. Therefore, unless you block access using "No Access", any user that passes through your transfer script is going to be able to access the area in question.
    When you change values for "Unauthenticated@..." or "All@..." you are defining what someone that DOES NOT pass through your transfer script can do. You want both of those to be "No Access" at the top level of your site if you do not want unauthenticated visitors.
    The distinction between "Unauthenticated" and "All" is that "All" applies to all users whether they pass through the transfer script or not.
    Here's another way to remember things:
    User passes through your transfer script, iTunes U automatically assigns:
    Authenticated@....
    All@....
    User does not pass through your transfer script and instead access your iTunes U site through derivable URL*, they get assigned:
    Unauthenticated@....
    All@....
    *The derivable URL for a site is: http://deimos.apple.com/WebObjects/Core.woa/Browse/site-domain-name
      Mac OS X (10.4.6)  

  • Strange double buffering bug

    Hi all,
    I have stumbled on strange swing behavior on Windows, most probably connected to double buffering introduced in java 6.
    Once in a while Windows stops redrawing my JFrame. From the java side everything seems ok - all the components are painted (that is, all native methods called), EventQueue normally processed by EDT, but repainted GUI is not shown on the screen. Note that OS has the repainted info - if I cover part of the application window with another window (e.g. explorer), and hid it back, the part that was covered is repainted. This happens even if I have java app halted on debug, so no other java actions can cause this repaint - OS has to have this image, it just does not put it on the screen. When I minimize/maximize the app, everything goes back to normal.
    Note that I can normally operate the app "as if" it was painted - I can change tabs, click buttons (even though I can't see them), and results of these actions are painted by java to some offscreen buffer, but are only shown when I cover/uncover my app with another window, or min/max it. Min/Maxing ends this strange state and further repaints are shown normally.
    Did any of you have this kind of problem? Any idea how to approach/resolve it or what can be the cause?
    Java is 1.6.20, I have seen the behavior on Windows XP, Vista and 2008. It is not reproducible, it just happens sometimes. I haven't seen that on Java 5. Turning off double buffering resolves that, but is not feasible due to degraded user experience.
    Thanks in advance for your help!
    Jakub

    Thanks for your help so far, perhabs this is something with the driver, but I use fairly generic windows distribution.
    EDT is not hosed, it is processing events normally (I checked that on debug step-by-step). We do not override any paint methods, and this is rather something on different level - it is not "a component not being repainted" it is "everything is repainted, but not shown on screen". Including tabbedPane's tab changes, menu display, etc. I can even see cursor changing into carret when I hover over "not shown" textfield.
    Displaying and then disposing of modal dialog also fixes the state, as do resizing of the JFrame.

  • Strange XSLT Behavior: xsl:template match

    Hello I found the following strange XSLT behavior when using xsl:template. I only want to read the content of the element /Source/Surname/Details. Therefore I match this path using xsl:template match.
    What is strange that in the target message also the value of the Element LastName is written at the end. Please see example below. This is just a short example to point out the problem. I have a bigger message structure where I have to match a similar path. How can I avoid the the value of the FullDetails is just written at the end (not even beeing in an element)? I would have expected that the path is only matched once and the instructions then executed without <LastName> beeing even touched.I used XML Spy for this test.
    Here is an example:
    Source message:
    <?xml version="1.0" encoding="UTF-8"?>
    <Source>
         <Surname>
              <Details>MyFirstName</Details>
         </Surname>
         <LastName>
              <FullDetails> MyLastName </FullDetails>
         </LastName>
    </Source>
    XSLT
    <?xml version="1.0" encoding="UTF-8"?>
    <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:fo="http://www.w3.org/1999/XSL/Format">
    <xsl:template match="/Source/Surname">
    <PORR>
    <Name><xsl:value-of select="Details"/></Name>
    </PORR>
    </xsl:template>
    </xsl:stylesheet>
    Target Message
    <?xml version="1.0" encoding="UTF-8"?>
    <PORR xmlns:fo="http://www.w3.org/1999/XSL/Format">
    <Name>MyFirstName</Name></PORR>MyLastName
    Edited by: Florian Guppenberger on Oct 8, 2009 4:35 AM
    Edited by: Florian Guppenberger on Oct 8, 2009 4:36 AM
    Edited by: Florian Guppenberger on Oct 8, 2009 4:36 AM
    Edited by: Florian Guppenberger on Oct 8, 2009 4:37 AM

    Hi,
    I am not sure why your XSLT behaving like that,please try this XSL,what i did chnages is Templete match /*,I given exact path in Value of select,.
    <?xml version="1.0" encoding="UTF-8"?>
    <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:fo="http://www.w3.org/1999/XSL/Format">
    <xsl:template match="/*">
    <PORR>
    <Name><xsl:value-of select="/Source/Surname/Details"/></Name>
    </PORR>
    </xsl:template>
    </xsl:stylesheet>
    Regards,
    Raj

  • Strange typeover behavior in Newsfeeds

    I am getting this strange intermittent behavior when create a post in the Newsfeed.
    As you begin to type the text compress and it almost looks like the letters are typing over themselves
    The resulting text can be posted and looks fine when posted, it some times does throw an error but the error and type over don't seem connected
    It happens on all browser types and even phones and tablets

    Hi,
    Thank you for your post.
    This is a quick note to let you know that we are performing research on this issue.
    Best Regards,
    Eric
    TechNet Community Support
    Please remember to mark the replies as answers if they help, and unmark the answers if they provide no help. If you have feedback for TechNet Support, contact
    [email protected]

  • Premier Pro CC 2014 - Strange duplicating sequence bug

    Hi
    First post on the forum so sorry if I have done something wrong!
    Currently working on a projection project and have a really strange aspect ratio sequence 3840 x 1080 (Twice as wide as 1080P). I have a central 1080P video clip and then have created two separate sequences to go either side to fill up to my full screen. The smaller sequences are 960 x 1080. See attached image!
    I have come across a very strange and frustrating bug. The two 960 x 1080 sequences titled 'Right Small' and 'Left Small' and each have completely different video clips. However at a certain point the video which ever sequence I put on a lower layer will show outputting through the both 'Right Small' and 'Left Small' sequences. When I open up the sequences I can see them both playing separate clips however the video renders with the same image on either side. This is rendering on my timeline and on my export. I have tried deleting my render files but it stays the same. The only solution I have found is by starting one of the sequences one frame before the other and it fixes the problem!!!
    Any ideas?
    Thanks
    Joe
    First Image Shows how it should look at the start of the section where the two outer screens show the different content.
    At this point in the video both sequences are duplicating each other showing the same clips even thought the top layer has completely different clips inside its sequence...

    Right click on either one of the two nested sequences - Right Small or Left Small, and from the drop down menu, choose Render and Replace.
    Does that help?
    MtD

  • Strange ZWSREG behavior

    We are in the middle of a rollout of about 300 new machines. (used sysprep in the image) The first 100 are doing something strange. They boot up get renamed and join the windows domain with their new name, but register with ZEN as the randomly generated Microsoft name. (usually someting like N-398477634379d979) I deleted the workstation object, unreged and rereged the computer, but it always reregisters with the randomly generated name. What gives? I found a TID that said this was fixed by an update on the latest desktop agent, but that I could work around it by deleting the incorrectly named object and waiting for the machine to reboot, However it still registers with the wrong name. Any ideas? Thanks.
    J. Daniel Treadwell

    But these are new computers. They should not have image safe data yet. I tried it, but got the same result.
    Originally Posted by Craig Wilson
    Try running ZISWIN -R when you unregister.
    My guess is that it's pulling the old info from Image Safe Data.
    Craig Wilson - MCNE, MCSE, CCNA
    Novell Support Forums Volunteer Sysop
    Novell does not officially monitor these forums.
    Suggestions/Opinions/Statements made by me are solely my own.
    These thoughts may not be shared by either Novell or any rational human.
    "jtreadwell" <[email protected]> wrote in message
    news:[email protected]..
    >
    > We are in the middle of a rollout of about 300 new machines. (used
    > sysprep in the image) The first 100 are doing something strange. They
    > boot up get renamed and join the windows domain with their new name,
    > but register with ZEN as the randomly generated Microsoft name.
    > (usually someting like N-398477634379d979) I deleted the workstation
    > object, unreged and rereged the computer, but it always reregisters
    > with the randomly generated name. What gives? I found a TID that said
    > this was fixed by an update on the latest desktop agent, but that I
    > could work around it by deleting the incorrectly named object and
    > waiting for the machine to reboot, However it still registers with the
    > wrong name. Any ideas? Thanks.
    >
    >
    > J. Daniel Treadwell
    >
    >
    > --
    > jtreadwell
    > ------------------------------------------------------------------------
    > jtreadwell's Profile: NOVELL FORUMS - View Profile: jtreadwell
    > View this thread: Strange ZWSREG behavior - NOVELL FORUMS
    >

  • Creating Albums in A2: Strange behavior, bug or operator error

    I've just bought A2 and imported my 13,000 photos into it. They are imported as "referenced masters". On disk, my photos are arranged in folders by year, month and day that the pictures were taken:
    Photos/
    ....2008/
    ....2007/
    ........01/
    ........05/
    ........10/
    ............IMG1.NEF
    ............IMG2.NEF
    ............IMG3.NEF
    The only way to import directories of photos into A2 is "Import folders as projects" (It seems like you should be able to just import all the photos in a directory tree, but apparently you can't. Why not?)
    Anyway, so now I have a bunch of projects, one for each year. Then folders for each month and albums for each day. This is only mildly useful since I could create smart albums, but... (Is there a way to get rid of the projects without losing the photos? Can I delete them all and leave the photos in my library?)
    Anyway, the next thing I wanted to do was to create some folders of albums of my photos. I'm a hobbiest and I take most of my photos when I travel. I wanted to create an album for each "trip" I went on. So, for example, I went to Southeast Asia in October of 2004.
    I created a (root level) folder called "Trips". Then I created an album called "Southeast Asia 2004". I selected the folder named "10" (i.e. October) in project "2004" and selected all the photos. (I apparently hadn't taken any other pictures in October 2004 besides what I had done on my trip). I dragged the selection to my new album and saw a "+" icon (as if to say "add these photos to this album"). When I released the mouse button, it did nothing. I couldn't add the photos to my album.
    After screwing around for a while, I found that I could not add photos to an album unless I selected them from a higher level in the project tree. So if I created my album as a child of 2004, I couldn't add photos selected from 2004/10. But I could add them if I selected them from within 2004. Similarly, I couldn't add photos to my album at Trips/SoutheastAsia unless I selected them from "All Photos" under "Library."
    Maybe I'm not understanding what folders and projects are /supposed/ to be. But this doesn't make sense to me. Is this intentional? Is it a bug? Can someone explain the reasoning behind this -- or tell me what I am doing wrong?
    Thanks!
    tim

    Aarrgghh. I know part of the problem is that I don't quite grok Aperture's model yet. But, still, something is not right.
    I had created a new project called "Trips". In that project I created an album. If I selected photos from the "All Photos" smart album, I could put them in that album in that other project. But the photos still weren't in that other project. Just the album. This seems wrong, but I'm not sure.
    So, instead of creating a project called Trips, I created a top-level folder. In that, I created an album for my one trip. Once again, I could select photos from another project. When I dragged them to the new album, I got a green "+". But when I dropped them, nothing happened. But, if I drag them from "All Photos" it works.
    That can't be right. If I can put photos from any project into an album, I should be able to do it from anywhere. If I can't, I shouldn't be able to do it from "All Photos." If anyone knows which is right, let me know. Also, if anyone knows how to file a bug, let me know -- I will file this one with a good use case description.
    Thanks,
    tim

  • Some strange SAX behavior

    Hi,
    I'm somewhat new to SAX processing. I have a simple program that uses the SAX parser. In testing this code, I've noticed some behavior that I find strange. Can anyone veryify if what I describe is expected behavior?
    1) Parsing an element with no data, like <element></element>. I'm finding that the characters method is still being called when it sees elements like this. Furthermore, when I extract the supposed data using:
    String data = new String(p_buff, p_start, p_length);
    What I get is a newline, '\n'.
    2) SAX appears to drop data when it parses an element that contains an entity. For example, the characters method returns only an "R" when it parses an XML field like:
    <genre>R&B/Soul</genre>
    Where & is actually the ampersand character, followed by "amp;"
    Are these bugs/features, or is more likely that I'm coding it incorrectly?

    1) Parsing an element with no data, like <element></element>. I'm finding that the characters
    method is still being called when it sees elements like this. Furthermore, when I extract the
    supposed data using:
    String data = new String(p_buff, p_start, rt, p_length);
    What I get is a newline, '\n'.The newline and space characters are called ignorable Whitespace and are passed by a SAX parser by the character() or the ignorableWhitespace() callback methods, that is between the XML's root element start and end tags. Your example <element></element> does not generate any ignorable whitespace, however, so let's look at this as an example (4 spaces before each child tag):
    <root>
        <child>
        </child>
    </root>Here, the ignorable whitespace is:
    a newline after <root> - will be attributed to element <root>
    4 spaces before <child> - will be attributed to element <root>
    a newline after <child> - will be attributed to element <child>
    4 spaces before </child> - will be attributed to element <child>
    a newline after </child> - will be attributed to element <root>
    There are two categories of SAX parsers: validating and non-validating. Validating parsers must report ignorable whitespace through the ignorableWhitespace() callback. Non-validating parsers CAN use the same method OR the character() callback (yours is the latter, apparently).
    2) SAX appears to drop data when it parses an element that contains an entity. For example,
    the characters method returns only an "R" when it parses an XML field like:
    <genre>R&B/Soul</genre>
    Where & is actually the ampersand character, followed by "amp;"Again, SAX parser implementations have some freedom here as well. A parser CAN report content in one character() callback or can use several callbacks (Xerces, which I use, calls the method 3 times for your example [once for R, once for &, and once for B]). You might want to look at your character() implementation if you only see a callback for R and nothing else, or your parser is faulty (which is unlikely).
    So, relax, everything is normal SAX parser behaviour.

  • Photoshop CS5 strange brush jumping bug

    Strange brush bug with Photoshop CS5 Extended English (Updated to 12.0.2 latest).
    Youtube link of my screen recording
    http://www.youtube.com/watch?v=UxwUi35TMYo
    When  I first start (quick) brushing on top right, the strokes appear at bottom  right.... No shape dynamics, no scattering, just plain soft round brush  in black. If I stroke slowly, the behavior is OK.
    This is very frustrating and appears very often for me if stroke quickly, so I can't use smudge which is often done quickly.
    Windows 7 (Simplified Chinese). Nvidia GTS 450 but OpenGL has been disabled. Graphic driver updated to latest. No brush scattering, no shape dynamics.
    Please help, thanks in advance.

    This subject shows up here from time to time.
    Unfortunately, I don't recall reading about any specific fix that works.
    Usually the advice is update video drivers, check all other software running on the system for possible interference, change wireless mouse batteries, try a wired mouse, completely remove mouse or tablet drivers and reinstall, make sure nothing is moving over an unused trackpad, etc.
    Perhaps it would help if you listed your OS and what input device you're using.
    -Noel

  • Anyone experiencing strange Safari behavior?

    Over the last few weeks, I've noticed that my safari has started to quit on me. It doesn't crash, or do an unexpected quit, but the application just closes itself. This is becoming very annoying as it happens sporadically and without any indication that it will close.
    The only thing I can think of is that I recently installed the latest version of the WMA viewer called Flip4Mac. Coincidence?
    So, anyone else experiencing this strange behavior? Or is it just me? Is there an easy way to re-install just Safari? Maybe I'll just wait for the next bug release of OS X...
    Any help would be greatly appreciated. Thanks!
    Rudy

    Hi Rudy, Huffman et al
    Are you using third party safari enhancers, that may need to be either updated or removed. Do you use any Norton Utilities ?
    Safari add-ons can cause performance issues or other situations
    Have you tried a different user account as a process of elimination ?
    The exits are NOT crashes, they do not create a CrashLog for Safari, it' s like I try to click on a link at say CNN and the Safari closes as if I had used the Quit command.
    So Safari is in the Dock with out ▲ when this happens, correct ? have you tried pulling Safari out of the dock with a poof , and clicking on Safari from the Application folder, it could be your Safrai icon in the dock is corrupt.
    Safari may simply go off screen without any notification.
    Something has either corrupted Safari and/or is causing havoc with
    the app.
    Have you tried Disk repair w/ the cd/dvd inserted & a start ?
    Please, let us know.
    Eme
    p.s. I use all the sites you mention, yes even myspace ; ) on 10.4.6 & 10.3.9. with out any issues, I wonder what are the variables.

  • Strange nexus behavior

        I'll try to explain this best i can .   We have  2 6509's  running port channels down to 2 Nexus 7000' where the 7000's are running vpc .  All the routing is still being done on the 6509's .   The nexus 7000's only have routing running via separate ospf links back to the 6509's . The plan is to eventually have the routing on the nexus so we have all the layer 3 SVI's that are on the 6509's defined on the 7000's  with hsrp but all are admin down on the 7000's for now.  On the 7000's all the routing looks correct with all the ip routes being learned on the separate ospf links.  This is the strange thing from the 7000's if try to ping  the svi addresses both the primary and secondary addresses on the 6509's they  ping fine but if you try to ping any hsrp virtual address none of those ping .  The really strange thing we see in the routing table on the 7000's  is that hsrp virtual  is put into the ospf table as a /32  with a source of the vlan that it is on on the 7000's which is admin'd down so obviously that traffic is not going to go anywhere if it's trying to send it down a admin down SVI  . The actual subnet that the SVI is in is a /24 .   So what we tried is we removed the downed svi on both 7000's and then cleared that /32  virtual address and it works correctly  and the route for that address looks correct being the ospf uplinks to the 6509's . I'm not sure what to make of it . Is there some inherent difference in the way the Nexus handles hsrp even if it's admin'd down?   Or can anyone explain this behavior .  I will add this if you stick a device in that vlan on  either the 7000's or a nexus 5000 which is below the 7000's configured with an address and the virtual address as the gateway  it rides the vpc's as it should up from the 5000's to the 7000's and up  to the 6509s .  You can also ping the hsrp virtual from this device . The problem just seems to be with the nexus 7000 and ospf  and the hsrp virtual address being in the table as a /32 pointing to a vlan which is admi'd down on the 7000's .  Strange.   Any speculation welcome...

      Well there seems to be at least 2 or 3 bugs that are fairly close to this so my guess is it is a bug .  Seems like there is more hsrp bugs than there should be on the Nexus platform.   The only problem with this is a "clear ip route *"  does not fix what we are seeing so we really don't have a fix for this issue.
    STP vPC: route still installed after no hsrp
    CSCuh07613
    Description
    Symptom:
    hsrp vip is down by "shutdown" or "no hsrp", but route still installed
    Conditions:
    - On a N7k running 6.2(2)/6.2(2a) when a new SVI is created and HSRP is configured.
    - disable hsrp by "no hsrp " or shutdown interface.
    Workaround:
    clear ip route *
    Further Problem Description:
    Customer Visible
    Was the description about this Bug Helpful?
    (0)
    Last Modified:
    Jan 2,2014
    Status:
    Fixed
    Severity:
    3 Moderate
    Product:
    Cisco Nexus 7000 Series Switches
    Support Cases:
    5
    Known Affected Releases:
    (2)
    6.2(1.111)S5
    6.2(2a)

  • Strange rendering behavior with AdvancedDataGrid

    I'm getting strange (wrong) rendering behavior with a Flex datagrid... any idea what might be causing this?  It only happened one time for me... but now I'm worried that customers might be seeing this from time to time.
    Take a look:
    http://www.screencast.com/t/ZWMwMzEzMG
      -Josh

    Can you log this issue with your application (or a similar sample file in which it is reproducible) here - http://bugs.adobe.com/flex/
    -Sameer

Maybe you are looking for

  • Secunia PSI Error Points To Photoshop CC 2014 Folder

    Secuna PSI is giving me an error pointing to a program called "node.js", which appears to have been installed in my Adobe Photoshop CC 2014 folder and out-of-date.  Does anyone know anything about this program and, if so,  why it is causing a Secunia

  • How to display the fields using field catelog in ALV Report

    Hi, I have rquiremrnt in ALV report.I would need to add the new fileld in the ALV output screen.I have added the field but its appearing in the layout set but not directly displaying in the output screen. I have written the below logic for field cate

  • Deploying a WebApp using JMX

              IHAC who has the following problem while deploying a webapp in 6.1. I am including           her description of the problem.           Thanks in advance.           i'm still playing around with deploying to the 6.1 beta wl server using the

  • Can't Sync New IPod Touch

    I have just purchased the IPod Touch. I have an 80 gig classic. I can't get the touch to sync with my ITunes library. I keep getting the message "The Ipod "Ron's Touch" cannot be synced. The disk could not be read from or written to. I have called su

  • RMAN Recovery Window 7 days setting - shows no obsolete backups

    Hi All. Quick question about RMAN retention policy.... I have the current backup strategy: Full backup (0) -> Sunday Incremental backup (1) -> Monday - Saturday Archive log backups -> every hour This is a new database I just started taking backups on