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 ?

Similar Messages

  • Really strange Memory Behavior in Photoshop CS6

    I have:
    MacPro 1,1
    32GB RAM
    SSD system disc
    separate SSD scratch volume
    recently installed OS-X 10.8.5
    freshly re-installed and updated PS CS6
    PS is configured to use 20GB memory.
    I have created this huge psb-file with 53GB (big because it's a stitched pano with several layers, 16bit).
    Opening this file again is a nightmare and sometimes fails completely.
    When PS starts opening the file, PS takes a long while reading data, using something like 15-20GB RAM and starts to write to the scratch disc, as one would suspect.
    Then something bizarre happens.
    The checkerboarded window is drawn on screen, but before any real pixel of the picture is displayed, PS fills all available RAM (even though it shouldn't use more than 20B):
    Then the Mac starts to build up a swap file which keeps growing and growing on the system disk up to 56GB.
    This process takes around 20 minutes while PS is "Not responding".
    The console log starts recording HI_WAT_ALERTS and swapon-messages.
    If I'm lucky, the whole thing deflates suddenly at some point drawing the pictures and releasing all that RAM.
    If I'm not that lucky, PS is suspended with a message "Your startup disk has no more space available for application memory".
    Even if there still seems to be space left on that volume.
    I maxed out on RAM and even got a larger startup disk to prevent it from filling up with swap completely.
    But this doesn't seem to help.
    I originally started having this situation with OS 10.7.5.
    But a migration to 10.8.5 and a re-install of Adobe CS didn't help either.
    Adobe vehemently denies any memory leaks in PS.
    Enabling/Disabling GPU display support doesn't change anything.
    Does anybody have any ideas what's going on?
    Thanks

    Lowering the memory for PS doesn't help.
    I tried 16GB and 12GB.
    Even when limiting PS to 8GB, the situation remains:
    While the file is being read, PS grows to 8GB, but "inactive RAM" starts to fill memory until "Free RAM" ist virtually zero.
    Then, when the image is about to be actually drawn, PS balloons to 29GB, and OS-X starts to build the huge swap-file:
    The startup disk gets real busy paging in and out simulataneously until the swap has grown to about 50 GB.
    This takes about 30 minutes, while PS is "not responding".
    Then, the pictures appears on the screen, the whole memory thing deflates like a soufflee.
    PS goes back to using 8GB of RAM, swap is zero and tons of RAM are free.
    GPU accelleration was disabled (don't know how this translates to OpenGL usage).
    And my Mac Pro is a 2,1 (mistyped 1,1 in the original post).

  • IOS - Strange memory leak using ABPeoplePickerNavigationController

    Hi there!.
    I 've read other posts regarding this problem but I wasn't capable of guessing what's going on with this memory leak.
    To keep it simple, let's say I have an IBAction which triggers once the user has pressed a button. The code is as follows:
    - (IBAction) showBorrowersPicker:(id)sender{
    ABPeoplePickerNavigationController *picker =
    [[ABPeoplePickerNavigationController alloc] init];
    picker.peoplePickerDelegate = self;
    [self presentModalViewController:picker animated:YES];
    [picker release];
    The code works fine but it leaks a small quantity of memory and I can't understand why. I think it's a problem with the ABPeoplePickerNavigationController because if I comment the line "self presentModalViewController.picker animated:YES" it obviously doesn't present the modal view with the AB's contacts but the app continues leaking memory.
    I've read it might be a reported bug but the post where I've read it is from 2009 or so. I don't know if the bug persists of, more likely, I'm doing something wrong but I don't know what. I'm releasing the picker instance so I don't know why is it leaking memory.
    Running Instruments I get the following info:
    Leaked Object: ABStyleProvider
    Address: 0x19f810
    Size: 16 Bytes
    Responsible Library: AddressBookUI
    Responsible Frame: +[ABStyleProvider
    Any help would be much appreciated!

    Hi George,
    thank you very much!. I've tried it and seems to work perfectly. No memory leaks at all!. A couple of weeks ago I was working with Apple's QuickContacts source code and it had the same problem with this strange memory leak so I think it's really weird since I can't believe that Apple's engineers would commit such an error... but who knows!
    Thank you very much for your help! :-D

  • Strange memory behaviour using the System.Collections.Hashtable in object reference

    Dear all,
    Recently I came across a strange memory behaviour when comparing the system.collections.hashtable versus de scripting.dictionary object and thought to analyse it a bit in depth. First I thought I incorrectly destroyed references to the class and
    child classes but even when properly destroying them (and even implemented a "SafeObject" with deallocate method) I kept seeing strange memory behaviour.
    Hope this will help others when facing strange memory usage BUT I dont have a solution to the problem (yet) suggestions are welcome.
    Setting:
    I have a parent class that stores data in child classes through the use of a dictionary object. I want to store many differenct items in memory and fetching or alteging them must be as efficient as possible using the dictionary ability of retrieving key
    / value pairs. When the child class (which I store in the dictionary as value) contains another dictionary object memory handeling is as expected where all used memory is release upon the objects leaving scope (or destroyed via code). When I use a system.collection.hashtable
    no memory is released at all though apears to have some internal flag that marks it as useable for another system.collection.hashtable object.
    I created a small test snippet of code to test this behaviour with (running excel from the Office Plus 2010 version) The snippet contains a module to instantiate the parent class and child classes that will contain the data. One sub will test the Hash functionality
    and the other sub will test the dictionary functionality.
    Module1
    Option Explicit
    Sub testHash()
    Dim Parent As parent_class
    Dim d_Count As Double
    'Instantiate parent class
    Set Parent = New parent_class
    'Create a child using the hash collection object
    Parent.AddChildHash "TEST_hash"
    Dim d_CycleCount As Double
    d_CycleCount = 50000
    'Add dummy data records to the child container with x amount of data For d_Count = 0 To d_CycleCount
    Parent.ChildContainer("TEST_hash").InsertDataToHash CStr(d_Count), "dummy data"
    Next
    'Killing the parent when it goes out of scope should kill the childs. (Try it out and watch for the termination debug messages)
    'According to documentation and debug messages not really required!
    Set Parent.ChildContainer("TEST_hash") = Nothing
    'According to documentation not really as we are leaving scope but just to be consistent.. kill the parent!
    Set Parent = Nothing
    End Sub
    Sub testDict()
    Dim Parent As parent_class
    Dim d_Count As Double
    'Instantiate parent class
    Set Parent = New parent_class
    'Create a child using the dictionary object
    Parent.AddChildDict "TEST_dict"
    Dim d_CycleCount As Double
    d_CycleCount = 50000
    'Blow up the memory with x amount of records
    Dim s_SheetCycleCount As String
    s_SheetCycleCount = ThisWorkbook.Worksheets("ButtonSheet").Range("K2").Value
    If IsNumeric(s_SheetCycleCount) Then d_CycleCount = CDbl(s_SheetCycleCount)
    'Add dummy data records to the child container
    For d_Count = 0 To d_CycleCount
    Parent.ChildContainer("TEST_dict").InsertDataToDict CStr(d_Count), "dummy data"
    Next
    'Killing the parent when it goes out of scope should kill the childs. (Try it out and watch for the termination debug messages)
    'According to documentation and debug messages not really required!
    Set Parent.ChildContainer("TEST_dict") = Nothing
    'According to documentation not really as we are leaving scope but just to be consistent.. kill the parent!
    Set Parent = Nothing
    End Sub
    parent_class:
    Option Explicit
    Public ChildContainer As Object
    Private Counter As Double
    Private Sub Class_Initialize()
    Debug.Print "Parent initialized"
    Set ChildContainer = CreateObject("Scripting.dictionary")
    End Sub
    Public Sub AddChildHash(ByRef ChildKey As String)
    If Not ChildContainer.Exists(ChildKey) Then
    Dim TmpChild As child_class_hashtable
    Set TmpChild = New child_class_hashtable
    ChildContainer.Add ChildKey, TmpChild
    Counter = Counter + 1
    Set TmpChild = Nothing
    End If
    End Sub
    Public Sub AddChildDict(ByRef ChildKey As String)
    If Not ChildContainer.Exists(ChildKey) Then
    Dim TmpChild As child_class_dict
    Set TmpChild = New child_class_dict
    ChildContainer.Add ChildKey, TmpChild
    Counter = Counter + 1
    Set TmpChild = Nothing
    End If
    End Sub
    Private Sub Class_Terminate()
    Debug.Print "Parent being killed, first kill all childs (if there are any left!) - muahaha"
    Set ChildContainer = Nothing
    Debug.Print "Parent killed"
    End Sub
    child_class_dict
    Option Explicit
    Public MemmoryLeakObject As Object
    Private Sub Class_Initialize()
    Debug.Print "Child using Scripting.Dictionary initialized"
    Set MemmoryLeakObject = CreateObject("Scripting.Dictionary")
    End Sub
    Public Sub InsertDataToDict(ByRef KeyValue As String, ByRef DataValue As String)
    If Not MemmoryLeakObject.Exists(KeyValue) Then MemmoryLeakObject.Add KeyValue, DataValue
    End Sub
    Private Sub Class_Terminate()
    Debug.Print "Child using Scripting.Dictionary terminated"
    Set MemmoryLeakObject = Nothing
    End Sub
    child_class_hash:
    Option Explicit
    Public MemmoryLeakObject As Object
    Private Sub Class_Initialize()
    Debug.Print "Child using System.Collections.Hashtable initialized"
    Set MemmoryLeakObject = CreateObject("System.Collections.Hashtable")
    End Sub
    Public Sub InsertDataToHash(ByRef KeyValue As String, ByRef DataValue As String)
    If Not MemmoryLeakObject.ContainsKey(KeyValue) Then MemmoryLeakObject.Add KeyValue, DataValue
    End Sub
    Private Sub Class_Terminate()
    Debug.Print "Child using System.Collections.Hashtable terminated"
    Set MemmoryLeakObject = Nothing
    End Sub
    Statistics:
    TEST: (Chronologically ordered)
    1.1 Excel starting memory: 25.324 kb approximately
    Max memory usage after hash (500.000 records) 84.352 kb approximately
    Memory released: 0 %
    1.2 max memory usages after 2nd consequtive hash usage 81.616 kb approximately
    "observation:
    - memory is released then reused
    - less max memory consumed"
    1.3 max memory usages after 3rd consequtive hash usage 80.000 kb approximately
    "observation:
    - memory is released then reused
    - less max memory consumed"
    1.4 Running the dictionary procedure after any of the hash runs will start from the already allocated memory
    In this case from 80000 kb to 147000 kb
    Close excel, free up memory and restart excel
    2.1 Excel starting memory: 25.324 kb approximately
    Max memory usage after dict (500.000 records) 90.000 kb approximately
    Memory released: 91,9%
    2.2 Excel starting memory 2nd consequtive dict run: 27.552 kb approximately
    Max memory usage after dict (500.000 records) 90.000 kb approximately
    Memory released: 99,4%
    2.3 Excel starting memory 3rd consequtive dict run: 27.712 kb approximately
    Max memory usage after dict (500.000 records) 90.000 kb approximately
    Memory released:

    Hi Cor,
    Thank you for going through my post and took the time to reply :) Most apreciated. The issue I am facing is that the memory is not reallocated when using mixed object types and is not behaving the same. I not understand that .net versus the older methods
    use memory allocation differently and perhaps using the .net dictionary object (in stead of the scripting.dictionary) may lead to similar behaviour. {Curious to find that out -> put to the to do list of interesting thingies to explore}
    I agree that allocated memory is not a bad thing as the blocks are already assigned to the program and therefore should be reallocated with more performance. However the dictionary object versus hashtable perform almost identical (and sometimes even favor
    the dictionary object)
    The hashtable is clearly the winner when dealing with small sets of data.
    The issue arises when I am using the hash table in conjunction with another type, for example a dictionary, I see that the dictionary object's memory is stacked on top of the claimed memory space of the hashtable. It appears that .net memory allocation and
    reuse is for .net references only. :) (Or so it seems)
    In another example I got with the similar setup, I see that the total used memory is never released or reclaimed and leakage of around 20% allocated memory remains to eventually crash the system with the out of memory message. (This is when another class
    calls the parent class that instantiates the child class but thats not the point of the question at hand)
    This leakage drove me to investigate and create the example of this post in the first place. For the solution with the class -> parent class -> child class memory leak I switched all to dictionaries and no leakage occurs anymore but nevertheless thought
    it may be good to share / ask if anyone else knows more :D (Never to old to learn something new)

  • 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 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]

  • Better looking repost: Strange panel behavior

    Well, I am making a game of Deal or No Deal for my Computer Science class, and I have run into what appears to be a random bug in the code or something. I have 5 Panels, with 6 cases on the first four and 2 on the bottom panel. The cases are buttons which send to an action performed, if it is the first click, it runs it through a little series, as such:
    int i=Integer.parseInt(evt.getActionCommand());
    //This part just sets the number aside for later, to be called up at the end of the game
    game.makeTheChosenOne(evt.getActionCommand());
    //This is the slacker way I have of removing the case no matter what panel is clicked
    cp.remove(theCase);
    Panel1.remove(theCase);
    Panel2.remove(theCase);
    Panel3.remove(theCase);
    Panel4.remove(theCase);
    Panel5.remove(theCase);
    PanelAll.remove(theCase);
    /*0,6,12,18,24*/
    //The println just lets me see what array index is used
    System.out.println(i);
    // This should replace a black image with the case that is first clicked
    caseLabel.add(theCase);
    //Panels 1-5
    Panel1.repaint();
    Panel2.repaint();
    Panel3.repaint();
    Panel4.repaint();
    Panel5.repaint();
    //Main Panel they sit on
    PanelAll.repaint();
    //This is where the Cases SHOULD show up
    caseLabel.repaint();
    // cp= Container for ContentPane
    cp.repaint();
    }Now, in the code, you can see the /*0,6,12,18,24*/ comment, I put this in here, because for some reason, those are the only index's that actually output the case image to caseLabel. For the first click, all of them should. The remove case part works flawlessly, but for some reason, only the first case on every Panel works when outputting it to the Panel.
    incase you can't imaging it...(the index is in parentheses)
    1(0) 2(1) 3(2) 4(3) 5(4) 6(5)
    7(6) 8(7) 9(8) 10(9) 11(10) 12(11)
    13(12) 14(13) 15(14) 16(15) 17(16) 18(17)
    19(18) 20(19) 21(20) 22(21) 23(22) 24(23)
    25(24) 26(25)
    Only the first one in every set works correctly(1(0),7(6),13(12),19(18), and 25(24).
    This is a re-post, I could not find an edit button for my first post, and others said to use code tags, also, I was hurried to finish the post before, so I could not elaborate.
    Basically, the cases are on the 5 Panels, which are all on one big panel. All the extra repaints really don't matter, they are just there to make sure NOTHING slips through, since this bug is annoying me.
    Basically, on the first click of the game, you are choosing 'your case', The case that you hold until the end if you don't take the banker's offer given at certain times. When you click on the case you want(it is a button) it goes to the actionlistener, which checks to make sure it is indeed the first click, then removes that case from the row.
    That part works perfectly, no matter what case is clicked it is removed.
    Now for the problem, like stated above, only the first button on every panel of cases is actually being relocated to a bottom panel, which holds a place for the case to go. Basically, there is a blank image/space there, that gets replaced by the case you pick. I know this 'works' because the first cases in the case panels work correctly, however, the other 21 cases do not go there for some reason.
    Good: http://i44.photobucket.com/albums/f38/ichp00ndu/casegood.jpg
    Bad:http://i44.photobucket.com/albums/f38/ichp00ndu/casemessedup.jpg

    Since I don't see an Edit button...
    Panel1.remove(theCase);
    Panel2.remove(theCase);
    Panel3.remove(theCase);
    Panel4.remove(theCase);
    Panel5.remove(theCase);
    PanelAll.remove(theCase);
    /*0,6,12,18,24*/
    //The println just lets me see what array index is used
    System.out.println(i);
    // This should replace a black image with the case that is first clicked
    caseLabel.add(theCase);
    //Panels 1-5
    Panel1.repaint();
    Panel2.repaint();
    Panel3.repaint();
    Panel4.repaint();
    Panel5.repaint();
    //Main Panel they sit on
    PanelAll.repaint();
    //This is where the Cases SHOULD show up
    caseLabel.repaint();I changed this to:
                       PanelAll.remove(theCase);
         /*0,6,12,18,24*/
         System.out.println(i);
         caseLabel.add(theCase[i]);
         PanelAll.repaint();
    Still has the same problem though
    Message was edited by: OP
    bizkut

  • The stocks app crashes every time I check the price of NXPI.  But it works fine for other stock codes.  Strange.

    The apple stocks app crashes every time I check the price of NXPI, but okay for other stock codes.  Strange.

    Ok---I opened the app with my phone held
    In landscape mode then just the charts came
    Up-- I swiped to choose another stock besides
    NXPI and it unstuck the app.
    Good luck.
    g

  • DispatchEvent - bug in my code

    I cant find bug in my code.
    In main document class I have created new instance of a AI class and and an listener for a custom event as fallows:
    _ai = new AI(_param1, _param2);
    _ai.addEventListener("decisionMade", bestOptionFound, false, 0, false);
    private function bestOptionFound(evt:Event):void{
         trace("hello");
    Then in AI class I do all my logic and after its finished I run a function that dispach event for a main class:
    Inside AI class:
    private function bestOptionSet():void{
         var boole:Boolean = hasEventListener("decisionMade");
         var boole2:Boolean = willTrigger("decisionMade");
         dispatchEvent(new Event("decisionMade", false, false));
         trace(boole);
         trace(boole2);
         trace("function works");     
    So my trace statements give me information that my function working fine, but  there is no listener attached to my AI class (boole and boole2 =  false). thats why my handler cant be triggered.
    So Instance of my class AI is working fine and all function inside it working fine as well. But there is no listeners attached to that class as my trace statements tell me. But I add "_ai.addEventListener("decisionMade", bestOptionFound, false, 0, false);".
    Any ideas?

    you're dispatching your event BEFORE you're adding your listener.

  • 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
    >

  • 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 ?

  • 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.

  • Bugs present in Firefox 4's basic behavior that weren't in or were fixed in Firefox 3?

    As a web developer, I encounter some quirks between browsers so I do expect having some inconsistencies along the way.
    However, I do expect that by 'upgrading' from Firefox 3 to 4, I won't bump into issues that weren't around in the version 3 branch.
    Note that for this test I disabled all addons, so unless the Web Developer Toolbar changes the browser beyond the scope of what can be disabled by disabling the add-on, I'm expecting these issues to be Firefox itself.
    # 1) Having an <img> tag with an empty src atribute causes the browser to cause unneeded traffic. This seems to be a re-introduction of Bug # 444931, available at https://bugzilla.mozilla.org/show_bug.cgi?id=444931 . Ironically, it was fixed in 2009 as I can confirm on FF 3.6.17. However, FF 4.0.1 rediscovered it and tends to try and fetch pages that aren't there. True, images should have a src attribute, but then again HTML should be well-formed too. And we know how that turns out in real life.
    # When viewing the source of a page with memory cache set to false, FF 3.6.17 just returns the current page's source code, as present in the browser. FF 4.0.1 under the same settings however issues another (remote) page request, actually potentially retrieving a completely different page.
    Potentially? Yes, because aside from the fact that the server can randomize content on pages, the actual request being sent by Firefox doesn't even include the cookie data(!). So, we end up with a different source code than the one that was resident in the display mode.

    Hey there. I had the same problem and I noticed the little white box went away when I was using the foxtab add-on. Then it came back after I stopped using it.
    I disabled foxtab and haven't seen the little box since. I think it's a glitch with the add-on.
    Before completely re-installing your browser as suggested above, I'd check to see if you have foxtab and try disabling it first Best, -T

Maybe you are looking for

  • Internal error while posting job in erecruitment

    Hi all, I am facing a internal error occured problem in erecruitment. I went to erercruitment>employee>recruiter>maintenance>create requistion-->posting under that after giving datas i am trying to save the file. then its showing these error. Please

  • XL Reporter Intialization Error

    Hello Experts, My Client is Running SAP business one 8.81 PL 9 and when trying to run XL reporter receives the following error: An Error occurred while trying to initialize the component "Log Service".  Description: (13) Type Mismatch Has anyone run

  • Linking PDF Files

    I have a document named personnel.pdf  and within that document I reference petty cash.  I would like to create a link (bookmark) then to a document I've named cash.pdf Can this be done? Thanks for your help.

  • Uninstall CS3 if upgrade to CS4?

    Okay, stupid question coming your way . . . . I have Dreamweaver CS3 full version. I bought and installed Dreamweaver CS4 upgrade. Both are listed in my applications. Can I safely uninstall CS3 now to clear room?

  • MIgration from Informix 7.2 to Oracle9i under Solaris

    Hi all I want to know whch version of Oracle migration kit shoul di use for migrating from Informix 7.2 to Oracle 9i. Also does the migration kit support CISAM files in Informix to be migrated to oracle. If not then how can the functionallity of the