Stack underflow

on the first line of applyColorToCurrentGenome(), it is:
var currTheme:Object = colorThemeCombo.selectedItem;
where colorThemeCombo is a combobox.
I don't know what caused this error.
It is a flex3 project, compiled and debugged on FB4.
My browser is google chrome, and flash player version is 10,1,102,64
typecheck plugin/applyColorToCurrentGenome()
  outer-scope = [global Object$ flash.events::EventDispatcher$ flash.display::DisplayObject$ flash.display::InteractiveObject$ flash.display::DisplayObjectContainer$ flash.display::Sprite$ mx.core::FlexSprite$ mx.core::UIComponent$ mx.core::Container$ mx.core::LayoutContainer$ mx.core::Application$ plugin$]
                       [plugin[O] *[A] *[A] *[A] *[A] *[A] *[A] *[A] *[A]] {} ()
  0:debugfile "D:\mydoc\flex\SeqDrawPlugin\src;;plugin.mxml"
                       [plugin[O] *[A] *[A] *[A] *[A] *[A] *[A] *[A] *[A]] {} ()
  2:debugline 432
                       [plugin[O] *[A] *[A] *[A] *[A] *[A] *[A] *[A] *[A]] {} ()
  5:getlocal0
                       [plugin[O] *[A] *[A] *[A] *[A] *[A] *[A] *[A] *[A]] {} (plugin[O])
  6:pushscope
                       [plugin[O] *[A] *[A] *[A] *[A] *[A] *[A] *[A] *[A]] {plugin[O]} ()
  7:pushnull
                       [plugin[O] *[A] *[A] *[A] *[A] *[A] *[A] *[A] *[A]] {plugin[O]} (null[O])
  8:coerce SeqGraph.Elements::ElementBase
                       [plugin[O] *[A] *[A] *[A] *[A] *[A] *[A] *[A] *[A]] {plugin[O]} (SeqGraph.Elements::ElementBase?[O])
  10:setlocal3
                       [plugin[O] *[A] *[A] SeqGraph.Elements::ElementBase?[O] *[A] *[A] *[A] *[A] *[A]] {plugin[O]} ()
  11:pushnull
                       [plugin[O] *[A] *[A] SeqGraph.Elements::ElementBase?[O] *[A] *[A] *[A] *[A] *[A]] {plugin[O]} (null[O])
  12:coerce_s
                       [plugin[O] *[A] *[A] SeqGraph.Elements::ElementBase?[O] *[A] *[A] *[A] *[A] *[A]] {plugin[O]} (String?[S])
  13:setlocal 4
                       [plugin[O] *[A] *[A] SeqGraph.Elements::ElementBase?[O] String?[S] *[A] *[A] *[A] *[A]] {plugin[O]} ()
  15:pushbyte 0
                       [plugin[O] *[A] *[A] SeqGraph.Elements::ElementBase?[O] String?[S] *[A] *[A] *[A] *[A]] {plugin[O]} (int[I])
  17:convert_u
                       [plugin[O] *[A] *[A] SeqGraph.Elements::ElementBase?[O] String?[S] *[A] *[A] *[A] *[A]] {plugin[O]} (uint[U])
  18:setlocal 5
                       [plugin[O] *[A] *[A] SeqGraph.Elements::ElementBase?[O] String?[S] uint[U] *[A] *[A] *[A]] {plugin[O]} ()
  20:debug
                       [plugin[O] *[A] *[A] SeqGraph.Elements::ElementBase?[O] String?[S] uint[U] *[A] *[A] *[A]] {plugin[O]} ()
  27:debug
                       [plugin[O] *[A] *[A] SeqGraph.Elements::ElementBase?[O] String?[S] uint[U] *[A] *[A] *[A]] {plugin[O]} ()
  34:debug
                       [plugin[O] *[A] *[A] SeqGraph.Elements::ElementBase?[O] String?[S] uint[U] *[A] *[A] *[A]] {plugin[O]} ()
  41:debugline 433
                       [plugin[O] *[A] *[A] SeqGraph.Elements::ElementBase?[O] String?[S] uint[U] *[A] *[A] *[A]] {plugin[O]} ()
  44:getlocal0
                       [plugin[O] *[A] *[A] SeqGraph.Elements::ElementBase?[O] String?[S] uint[U] *[A] *[A] *[A]] {plugin[O]} (plugin[O])
  45:getproperty colorThemeCombo
                       [plugin[O] *[A] *[A] SeqGraph.Elements::ElementBase?[O] String?[S] uint[U] *[A] *[A] *[A]] {plugin[O]} (mx.controls::ComboBox?[O])
  48:getproperty selectedItem
                       [plugin[O] *[A] *[A] SeqGraph.Elements::ElementBase?[O] String?[S] uint[U] *[A] *[A] *[A]] {plugin[O]} (Object?[A])
  51:coerce Object
                       [plugin[O] *[A] *[A] SeqGraph.Elements::ElementBase?[O] String?[S] uint[U] *[A] *[A] *[A]] {plugin[O]} (Object?[A])
  53:setlocal1
                       [plugin[O] Object?[A] *[A] SeqGraph.Elements::ElementBase?[O] String?[S] uint[U] *[A] *[A] *[A]] {plugin[O]} ()
  54:pop
VerifyError: Error #1024: 发生堆栈下溢。
at plugin/applyColorHandler()[D:\mydoc\flex\SeqDrawPlugin\src\plugin.mxml:409]
at plugin/__colorThemeCombo_change()[D:\mydoc\flex\SeqDrawPlugin\src\plugin.mxml:564]
at flash.events::EventDispatcher/dispatchEventFunction()
at flash.events::EventDispatcher/dispatchEvent()
at mx.core::UIComponent/dispatchEvent()[E:\dev\4.0.0\frameworks\projects\framework\src\mx\co re\UIComponent.as:12266]
at mx.controls::ComboBox/dispatchChangeEvent()[E:\dev\4.0.0\frameworks\projects\framework\sr c\mx\controls\ComboBox.as:1879]
at mx.controls::ComboBox/close()[E:\dev\4.0.0\frameworks\projects\framework\src\mx\controls\ ComboBox.as:1651]
at mx.controls::ComboBox/dropdown_changeHandler()[E:\dev\4.0.0\frameworks\projects\framework \src\mx\controls\ComboBox.as:2137]
at flash.events::EventDispatcher/dispatchEventFunction()
at flash.events::EventDispatcher/dispatchEvent()
at mx.core::UIComponent/dispatchEvent()[E:\dev\4.0.0\frameworks\projects\framework\src\mx\co re\UIComponent.as:12266]
at mx.controls.listClasses::ListBase/mouseUpHandler()[E:\dev\4.0.0\frameworks\projects\frame work\src\mx\controls\listClasses\ListBase.as:10240]
at mx.controls::List/mouseUpHandler()[E:\dev\4.0.0\frameworks\projects\framework\src\mx\cont rols\List.as:2469]

Looks like you might be mixing different Flex versions. All SWCs in a
project must be compiled against the same version.  Also all SWFs loaded
must be compiled against the same version unless you use Marshall Plan
techniques.

Similar Messages

  • Timeout waiting for ARP/RARP stack underflow

    My U60 running solaris 10 crashed, and all I see on the screen is this:
    Timeout waiting for ARP/RARP stack underflow
    What does it mean?

    Looks like its trying to boot from the network, gets an IP address but then fails loading its kernel from tftp..
    Break it and try "boot disk" from the OBP.
    7/M.

  • Error Message "Stack underflow"

    Hi,
    I wrote a tiny little ASP-Script in Homesite 5.0 which
    obviously works on our webserver. Unfortunately it crashes Homesite
    after opening it with an error message called "stack underflow",
    when having more than one file opened. The error occurs after
    switching back from another tab to the one with my script. This
    error came on any of our PCs with different HomeSite version,
    starting with4.5.2 up to 5.2
    Has anyone had such a problem so far? If so, how did you fix
    it? I allready opened the file in notepad, copy&pasted it into
    a new document an saved it under a different name, the problem
    still remains. Thank you in advance,
    cheers,
    indiwa

    I did some testing on the php example.
    - errors in both php3 and php4 parsers, but that makes sense,
    since they both are built with one common php.sc file.
    - it seems that the error (for this case) is limited to doing
    a php tag within a script language="php" tag set.
    I'm not a parser scripting expert, but I looked at it.
    Someone had added the script support in php.sc and it looks a
    little hinky to my eye. I suspect the state handling and the
    push/pop involved when you have a php tag inside the php script
    tag. Since that's not normally a legal syntax, the scripting states
    probably aren't handling it correctly. There is a push/pop there
    that may try to pop too many states in this case.
    The developer who can look at this is on vacation right now.
    I'll try to get him on it when he returns to see if we can fix it.
    In the meantime, if there are any of you who have done syntax
    parser work and want to take a look at it, that'd be helpful.
    The script sources and docs are here:
    http://www.wilk4.com/asp4hs/tsmdocs.htm
    FYI, I found that hitting Ctrl-Z for undo often helps me get
    out of the error loop when it happens. Instead of killing homesite
    because the error is looping, try that first. At least it's a
    workaround.
    Oh, lastly, they posted a technote for this. Right now it
    doesn't offer much help other than turning off php syntax coloring,
    which most would hate to do just for this, but we'll update it as
    we find out more.
    HomeSite Technote: "Stack underflow" error in HomeSite
    http://www.adobe.com/cfusion/knowledgebase/index.cfm?id=400056
    Of course the other workaround is *not* to type this in the
    first place...
    It *is* invalid php anyway. (right? ;-)
    hope that helps,
    jeff

  • How to debug a runtime stack underflow error?

    I'm really struggling to resolve a stack underflow that I'm getting.  The traceback I get at runtime is:
    VerifyError: Error #1024: Stack underflow occurred.
    at flash.events::EventDispatcher/dispatchEventFunction()
    at flash.events::EventDispatcher/dispatchEvent()
    at flash.net::URLLoader/onComplete()
    This is particularly difficult to debug because when I run in debug mode it does not happen at all.  It only happens when compiled as a release.
    Does anyone have any tips on how to debug a Stack Underflow?  Are have a clean explanation of what that means for Flash?
    In case it helps, this error is occurring when I click a button whose handler makes an RPC call, which uses a URLLoader, an AsyncToken, and then invokes the set of AsyncResponder instances associated with the AsyncToken.  With some server-side logging as well as some logging hacked into the swf, I know that the UrlLoader is successfully doing and GET'ing a crossdomain.xml file, is correctly processing it (if I wreck it, I get a security error), and is also successfully completing the "load" request (the server sends the data)... the underflow seems to be happening in the Event.COMPLETE listening/handling process (as is, of course, implied by the traceback as well).
    mxmlc used = from flex_sdk_4.5.0.20967
    Example player (I've tried a few) = 10.2.153.1

    Peter Blazejewicz wrote:
    crossposted:
    http://stackoverflow.com/questions/6270837/how-to-debug-a-runtime-stac k-underflow-error
    Yes... I intended to say so here but didn't get to it yet.  View traffic was extremely low here and I thought I'd see how stackoverflow compared.  I tend to check there first for most languages usually, but thought I'd try here as well to see if I should break that habit.
    As per the SO post, my specific problem was resolved by switching my variable initialization routine from the "initialize" application event, to the onCompletion event.  Although I am obviously "happy" about this since this issue cost me a lot of time and hair, it does not really indicate how I would go about debugging such an internal error in the future, so the question is technically unanswered.
    As to the question from Flex harUI, I am compiling indirectly via the MXMLC in the SDK, through the Amethyst Visual Studio plugin (which I'm auditioning).  The only libraries involved are from the flex_sdk_4.5.0.20967 SDK.  The project is quite small (a test project), consisting only of 1 MXML file and 2x .AS files.

  • Stack Underflow and Archive Install fail after 10.4.9 upgrade

    After performing the 10.4.9 upgrade on my Black MacBook Core Duo, each of the Microsoft Office Applications (Word, Excel, Entourage, Power Point, and Office Updater and Office Installer) all abort on activation. The System Log indicates a stack underflow:
    Mar 24 11:36:38 Arakis /Applications/Microsoft Office 2004/Microsoft Word: CGGStackRestore: gstack underflow.
    Attempts to reinstall office fail. Drag and Drop method and Using Office Installer App both fail. The Installer App also aborts with the same error.
    After speaking with Microsoft Support and trying their suggestions for removing prefrence files and MS user directory, all fail with the same results. Last Microsoft reccomendation is to perform Archive and Install, and upgrade only to 10.4.8 using combo update.
    So I Cloned my boot disk before performing Archive and Install (and it's a good thing too).
    I started the Archive and install, and all went well until disk 2, specifically while it was installing iLife demo. When it said two minutes remaining, it froze. Last log entry indicates "specified processes cannot be found". I left it to continue overnight (about 8 hours). It was in the same state in the morning. So I forced a Power down and restarted. It requested disk 1 and began the Archive and Install again, with the same results.
    I was able to boot off my external clone and restore my boot disk. I am now back to 10.4.9, and Office apps still abort with stack underflow.
    One other point. I have a G4 iMac, A Dual G5 Power Mac, and a G5 Mac Mini, all with 10.4.9 and MS Office, and they all work fine. Problem only seems to be on DualCore MacBook, and only Microsoft Office Apps. MS messenger and MS Remote Desktop Client for MAC work. All other apps (apple and 3rd party) also work OK.
    One last thing. After 10.4.9 upgrade, Finder quite often crashes when right clicking or Cotrol-clicking on files or folders in finder windows. Looking at crash dump indicates that this is an unrelated issue, which I will address later, in another rpost.
    Are there any suggestions on how to sucessfully perform an archive and Install? Is it possible to disable the install of optional software like iLife demo? Any other suggestions would be appreciated.
    Jeff Cameron
    DualCore MacBook   Mac OS X (10.4.9)  

    After spending a bit of time, researching this problem, it seems I have been bit by the dyldupdateprebinding bug while updating to 10.4.9. This is outlined in the article located at:
    http://www.unsanity.org/archives/macos_x/shock_andawe.php
    However I am still unable to repair my problem by performing an Archive and install (possibly because of the dyldupdateprebinding). So if anyone can help me do the Archive & install without installing the iLife demo, or any of the optional software, I would be most appreciative.
    Jeff

  • Stack type from oracle website

    I am trying to create the stack type from oracle's site:
    http://download.oracle.com/docs/cd/B10500_01/appdev.920/a96624/10_objs.htm#4139
    However, I don't know how to use it exactly as it yields NULL SELF error every time I try to initialize it! How do I pop and push?
    CREATE TYPE Stack AS OBJECT (
    max_size INTEGER,
    top INTEGER,
    position IntArray,
    MEMBER PROCEDURE initialize,
    MEMBER FUNCTION full RETURN BOOLEAN,
    MEMBER FUNCTION empty RETURN BOOLEAN,
    MEMBER PROCEDURE push (n IN INTEGER),
    MEMBER PROCEDURE pop (n OUT INTEGER)
    Finally, you write the object type body:
    CREATE TYPE BODY Stack AS
    MEMBER PROCEDURE initialize IS
    BEGIN
    top := 0;
    /* Call constructor for varray and set element 1 to NULL. */
    position := IntArray(NULL);
    max_size := position.LIMIT; -- get varray size constraint
    position.EXTEND(max_size - 1, 1); -- copy element 1 into 2..25
    END initialize;
    MEMBER FUNCTION full RETURN BOOLEAN IS
    BEGIN
    RETURN (top = max_size); -- return TRUE if stack is full
    END full;
    MEMBER FUNCTION empty RETURN BOOLEAN IS
    BEGIN
    RETURN (top = 0); -- return TRUE if stack is empty
    END empty;
    MEMBER PROCEDURE push (n IN INTEGER) IS
    BEGIN
    IF NOT full THEN
    top := top + 1; -- push integer onto stack
    position(top) := n;
    ELSE -- stack is full
    RAISE_APPLICATION_ERROR(-20101, 'stack overflow');
    END IF;
    END push;
    MEMBER PROCEDURE pop (n OUT INTEGER) IS
    BEGIN
    IF NOT empty THEN
    n := position(top);
    top := top - 1; -- pop integer off stack
    ELSE -- stack is empty
    RAISE_APPLICATION_ERROR(-20102, 'stack underflow');
    END IF;
    END pop;
    END;

    I would write it using a collection rather than a varray myself:
    SQL> create type IntArray AS table of integer
      2  /
    Type created.
    SQL>
    SQL> CREATE TYPE Stack AS OBJECT (
      2    max_size INTEGER,
      3    top INTEGER,
      4    position IntArray,
      5    MEMBER PROCEDURE initialize(p_max_size IN INTEGER),
      6    MEMBER FUNCTION full RETURN BOOLEAN,
      7    MEMBER FUNCTION empty RETURN BOOLEAN,
      8    MEMBER PROCEDURE push (n IN INTEGER),
      9    MEMBER PROCEDURE pop (n OUT INTEGER)
    10    );
    11  /
    Type created.
    SQL>
    SQL> CREATE TYPE BODY Stack AS
      2    MEMBER PROCEDURE initialize(p_max_size IN INTEGER) IS
      3    BEGIN
      4      max_size := p_max_size;
      5      top := 0;
      6      position := IntArray(NULL);
      7      position.EXTEND(max_size - 1, 1);
      8    END initialize;
      9    --
    10    MEMBER FUNCTION full RETURN BOOLEAN IS
    11    BEGIN
    12      RETURN (top = max_size); -- return TRUE if stack is full
    13    END full;
    14    --
    15    MEMBER FUNCTION empty RETURN BOOLEAN IS
    16    BEGIN
    17      RETURN (top = 0); -- return TRUE if stack is empty
    18    END empty;
    19    --
    20    MEMBER PROCEDURE push (n IN INTEGER) IS
    21    BEGIN
    22      IF NOT full THEN
    23        top := top + 1; -- push integer onto stack
    24        position(top) := n;
    25      ELSE -- stack is full
    26        RAISE_APPLICATION_ERROR(-20101, 'stack overflow');
    27      END IF;
    28    END push;
    29    --
    30    MEMBER PROCEDURE pop (n OUT INTEGER) IS
    31    BEGIN
    32      IF NOT empty THEN
    33        n := position(top);
    34        top := top - 1; -- pop integer off stack
    35      ELSE -- stack is empty
    36        RAISE_APPLICATION_ERROR(-20102, 'stack underflow');
    37      END IF;
    38    END pop;
    39  END;
    40  /
    Type body created.
    SQL>
    SQL> DECLARE
      2    v_stack Stack := Stack(null,null,null);
      3    v_n INTEGER;
      4  BEGIN
      5    v_stack.initialize(10);
      6    FOR i in 1..20
      7    LOOP
      8      IF NOT v_stack.full THEN
      9        v_stack.push(i);
    10        dbms_output.put_line('Pushed: '||i);
    11      ELSE
    12        dbms_output.put_line('Stack Full: '||i);
    13      END IF;
    14    END LOOP;
    15    FOR i in 1..20
    16    LOOP
    17      v_stack.pop(v_n);
    18      dbms_output.put_line('Popped: '||i||' : '||v_n);
    19    END LOOP;
    20  END;
    21  /
    Pushed: 1
    Pushed: 2
    Pushed: 3
    Pushed: 4
    Pushed: 5
    Pushed: 6
    Pushed: 7
    Pushed: 8
    Pushed: 9
    Pushed: 10
    Stack Full: 11
    Stack Full: 12
    Stack Full: 13
    Stack Full: 14
    Stack Full: 15
    Stack Full: 16
    Stack Full: 17
    Stack Full: 18
    Stack Full: 19
    Stack Full: 20
    Popped: 1 : 10
    Popped: 2 : 9
    Popped: 3 : 8
    Popped: 4 : 7
    Popped: 5 : 6
    Popped: 6 : 5
    Popped: 7 : 4
    Popped: 8 : 3
    Popped: 9 : 2
    Popped: 10 : 1
    DECLARE
    ERROR at line 1:
    ORA-20102: stack underflow
    ORA-06512: at "SCOTT.STACK", line 36
    ORA-06512: at line 17
    SQL>When you instantiate the object, you have to supply values for the object attributes, but those values can simply be null. This is the nature of object instantiation because, without values, it wouldn't be an object, it would just be a null declaration of the object class. You don't have to declare variables outside of the object and pass those in, as you did for your varray.

  • How to modify my Stack.java?????

    I want to make my Stack.java doing like this:
    stackType<nodeType<elemType>*> stack; //C++
    stackType<int> intStack; //C++ code
    My Stack.java:
    public class Stack {
         TreeNode items[];
         int StackSize;
         int top;
        public Stack(int size)
             StackSize = size;
            items = new TreeNode[size];
            top = -1;
        public boolean empty()
             if(top == -1)
               return true;
            else
              return false;
        public boolean full()
             if(top == StackSize-1)
               return true;
             else
               return false;
        public void push(TreeNode c)
            if(full() == true)
               System.out.println("stack overflow");
            else
                items[++top] = c;
        public TreeNode pop()
             if(empty())
               System.out.println("stack underflow");
            return items[top--];
    }

    You don't need templates in java, since all java objects derive from java.lang.Object (it isn't possible either). Just use the original Stack (java.util.Stack). To push primitive types, just use the wrapper classes (java.lang.Integer, java.lang.Double...).
    Nille

  • Creating array w/Stacks

    I have the following source which loads 10 elements and then unloads the array. I want it to modify the class which loads one element with 10 animal names and another array with 10 insect names.
    The class should then display the contents of each element of the array as it is 'popped' off the stack. Can someone please help me on modifying the following code:
    // This class defines an integer stack that can hold 10 values.
    class Stack {
    int stck[] = new int[10];
    int tos;
    // Initialize top-of-stack
    Stack() {
    tos = -1;
    // Push an item onto the stack
    void push(int item) {
    if(tos==9)
    System.out.println("Stack is full.");
    else
    stck[++tos] = item;
    // Pop an item from the stack
    int pop() {
    if(tos < 0) {
    System.out.println("Stack underflow.");
    return 0;
    else
    return stck[tos--];
    class TestStack {
    public static void main(String args[]) {
    Stack carNames = new Stack();
    Stack stateNames = new Stack();
    // push some numbers onto the stack
    for(int i=0; i<10; i++) carNames.push(i);
    for(int i=0; i<10; i++) stateNames.push(i);
    // pop those numbers off the stack
    System.out.println("Stack in carNames:");
    for(int i=0; i<10; i++)
    System.out.println(carNames.pop());
    System.out.println("Stack in stateNames:");
    for(int i=0; i<10; i++)
    System.out.println(stateNames.pop());
    TIA,
    Mark
    null

    I have the following source which loads 10 elements and then unloads the array. I want it to modify the class which loads one element with 10 animal names and another array with 10 insect names.
    The class should then display the contents of each element of the array as it is 'popped' off the stack. Can someone please help me on modifying the following code:
    // This class defines an integer stack that can hold 10 values.
    class Stack {
    int stck[] = new int[10];
    int tos;
    // Initialize top-of-stack
    Stack() {
    tos = -1;
    // Push an item onto the stack
    void push(int item) {
    if(tos==9)
    System.out.println("Stack is full.");
    else
    stck[++tos] = item;
    // Pop an item from the stack
    int pop() {
    if(tos < 0) {
    System.out.println("Stack underflow.");
    return 0;
    else
    return stck[tos--];
    class TestStack {
    public static void main(String args[]) {
    Stack carNames = new Stack();
    Stack stateNames = new Stack();
    // push some numbers onto the stack
    for(int i=0; i<10; i++) carNames.push(i);
    for(int i=0; i<10; i++) stateNames.push(i);
    // pop those numbers off the stack
    System.out.println("Stack in carNames:");
    for(int i=0; i<10; i++)
    System.out.println(carNames.pop());
    System.out.println("Stack in stateNames:");
    for(int i=0; i<10; i++)
    System.out.println(stateNames.pop());
    TIA,
    Mark
    null

  • Error after Installing Solaris

    Hi Admins
    I am getting the following problem after the installation of Solaris 10 on a sunfire v440.Can someone please help me out.I am not sure about the cause of the error output because i am still a junior solaris admin.
    Please help me fix this problem.Any Ideas are welcome.
    ============================================================
    Sun Fire V440, No Keyboard
    Copyright 2005 Sun Microsystems, Inc. All rights reserved.
    OpenBoot 4.17.2, 8192 MB memory installed, Serial #63181061.
    Ethernet address 0:3:ba:c4:11:5, Host ID: 83c41105.
    Boot device: disk File and args:
    WARNING: cannot open system file: etc/system
    SunOS Release 5.10 Version Generic_118833-33 64-bit
    Copyright 1983-2006 Sun Microsystems, Inc. All rights reserved.
    Use is subject to license terms.
    ERROR: Last Trap: Fast Instruction Access MMU Miss
    Error -256
    Evaluating:
    Tried to access instance-specific data with no current instance
    ERROR: Last Trap: Fast Instruction Access MMU Miss
    Evaluating:
    Error -256
    Stack Underflow
    ========================================================
    Thanks in advance

    I have same problem at before. And I can using same hardware for install windows XP.
    After, I try to using very good quality DVDROM, very quality and clearly CD install solaris 10. The problem would sometime happen.
    I feel the CD have little dirty, you may not install solaris.

  • Accessing Classes From the Main Program:

    Hey Guys if you want to take a crack at this: I'm not sure how to exaclty get the classes read into my program and stuff. So I dunno if not don't worry. And Also ther'es no need to insult me.
    * just copy this into any editor
    import java.io.*;
    import java.text.*;
    class Liststuff
    public class Node
    char info;
    Node next;
    public class listException extends Exception
    public listException(String message)
    super(message);
    class Queue
    private Liststuff.Node front;
    private Liststuff.Node rear;
    public Queue()
    front = null;
    rear = null;
    public boolean isEmpty()
    return (front == null);
    public void insert(char v)
    Liststuff.Node n = new Liststuff.Node();
    n.info = v;
    n.next = front;
    if (rear == null)
    front = n;
    else
    rear.next = n;
    public char Remove() throws Liststuff.listException
    char v;
    if (isEmpty())
    throw new Liststuff.listException("Nothing in OrigQue.");
    else
    v = rear.info;
    rear = rear.next;
    return (v);
    class Stack
    Liststuff.Node top = new Liststuff.Node();
    public Stack()
    top = null;
    public void push(char v)
    Liststuff.Node n = new Liststuff.Node();
    n.info = v;
    n.next = top;
    top = n;
    public char pop() throws Liststuff.listException
    char v;
    if (isEmpty())
    throw new Liststuff.listException("Stack underflow.");
    else
    v = top.info;
    top = top.next;
    return (v);
    public boolean isEmpty()
    return (top == null);
    class Deque
    private Liststuff.Node front = new Liststuff.Node();
    private Liststuff.Node rear = new Liststuff.Node();
    private Liststuff.Node f = new Liststuff.Node();
    public Deque()
    front = null;
    f = null;
    rear = null;
    public void insert(char v)
    Liststuff.Node n = new Liststuff.Node();
    n.info = v;
    n.next = front;
    if (rear == null)
    front = n;
    else
    rear.next = n;
    public char remove(char side) throws Liststuff.listException
    char v;
    if (isEmpty())
    throw new Liststuff.listException("Nothing in OrigQue.");
    else
    f = rear;
    if (side == 'R')
    while (f.next != front)
    f = f.next;
    v = front.info;
    front = f;
    else
    v = rear.info;
    rear = rear.next;
    return (v);
    public boolean isEmpty()
    return (front == rear);
    public class Prog8
    public static void main(String args[]) throws IOException, Liststuff.listException
    String line;
    int i;
    char t;
    Liststuff s = new Liststuff();
    BufferedReader br = new BufferedReader(new FileReader("numbers.txt"));
    line = br.readLine();
    StringCharacterIterator c = new StringCharacterIterator(line);
    while (line != null)
    for (i = 0; i <= c.getEndIndex(); i++)
    Liststuff.Queue Orig = new Liststuff.Queue();
    Liststuff.Stack Evenstk = new Liststuff.Stack();
                   Liststuff.Deque Oddque = new Liststuff.Deque();
                   Liststuff.Queue Final = new Liststuff.Queue();
    t = c.current();
    char v = (t);
    c.next();
    Orig.insert(v);
    line = br.readLine();
    if ((v % 2) == 0)
    Evenstk.push(v);
    else
    Oddque.insert(v);
    Final.insert(Evenstk.pop());
    while (!Oddque.isEmpty())
    Final.insert(Oddque.remove('R'));
    Final.insert(Oddque.remove('L'));
    System.out.print("Original Sequence: ");
    while (!Orig.isEmpty())
    System.out.print(Orig.Remove());
    System.out.print("New Sequence: ");
    while (!Final.isEmpty())
    System.out.print(Final.Remove());
    }

    hi mate
    System.out.print("Original Sequence: ");
    while (!Orig.isEmpty())
    System.out.print(Orig.Remove());
    System.out.print("New Sequence: ");
    while (!Final.isEmpty())
    System.out.print(Final.Remove());
    thats you wacky code remember its insult free comments
    well here the best way to do it
    for Final.insert(Oddque.remove('R'));
    System.out.print("Original Sequence: ");
    while (!Orig.isEmpty())
    System.out.print(Orig.Remove());
    while Final.insert(Oddque.remove('L'));
    System.out.print("New Sequence: ");
    while (!Final.isEmpty())
    System.out.print(Final.Remove());
    else bla bla bla
    hope it cann hep though i dont whats is the problem
    and be clear you question.

  • How to analyze program performance

    On solaris, I have following stuff.
    Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.1_01-b01)
    Java HotSpot(TM) Client VM (build 1.4.1_01-b01, mixed mode).
    1. To analyse a program, I use "java -d64 -Xms1024m -Xmx7168m -XX:+UseLWPSynchronization -Xrunhprof:file=a.hprof
    ,format=a,cpu=times myprogram". But I get following HPROF error. What they really mean?
    at the begining, this prompts:
    HPROF ERROR: method on stack top != method exiting..
    at the end, following prompt:
    HPROF ERROR: thread local table NULL in method exit 1001e7da8
    HPROF ERROR: thread local table NULL in method exit 1001e7da8
    HPROF ERROR: thread local table NULL in method exit 1001e9678
    HPROF ERROR : stack underflow in method exit
    HPROF ERROR : stack underflow in method exit
    2. I ran a program that currently requires a huge memory, about several GB. What method can I take to bring down this?
    Thanks

    If you looking for a hprof gui then visit
    http://www.pointdefence.net
    I usually recommend
    http://www.hp.com/products1/unix/java/hpjmeter/index.html
    http://java.sun.com/developer/technicalArticles/GUI/perfanal/
    robert

  • Profiling Information

    Hello,
    I have two questions related to profiling.
    1. Is there a detailed description available on analysing profiling data ouput by the java program? Please give me the sources. Preferably free sources on the net.
    2. When I start my program with the command ..
    java -Xrunhprof:cpu=times <my.prg.to.run>
    .. I get these messages on my console.
    HPROF ERROR: thread local table NULL in method exit 009D6874
    HPROF ERROR: thread local table NULL in method exit 009D6874
    HPROF ERROR: thread local table NULL in method exit 009D6C74
    HPROF ERROR : stack underflow in method exit
    HPROF ERROR : stack underflow in method exit
    HPROF ERROR: method on stack top != method exiting..
    HPROF ERROR: method on stack top != method exiting..
    HPROF ERROR: method on stack top != method exiting..
    The last message continues for most actions that I perform in my program.
    Further when I read the profiling data file (thus produced) java.hprof.txt from HPjmeter 1.6 (this is a free profile analysis tool available on the net) I get '(partial data)' displayed in red at the top of most screens.
    What is the problem? Is this due to some error in the tool (HPjmeter) or is some information missing from the profile data file? If so is it due to the same errors that are displayed on the console at the time of running the program?
    I can send the profile data file jprof.hprof.txt if someone wants to see it.
    TIA
    Shailesh Gokhale

    The problems you are describing are a combination of hprof and JVMPI problems in the 1.3->1.4 releases.
    You might try downloading 5.0
    http://java.sun.com/j2se/5.0/download.jsp
    Also look in the directory demo/jvmti/hprof after you install it for documentation on hprof.
    -kto

  • Profiling Error

    I get the following error when trying to profile my Java program. Can anybody explain what they mean? Thanks
    C:java>java -prof jcust
    HPROF ERROR: thread local table NULL in method exit 009A633C
    HPROF ERROR: thread local table NULL in method exit 009A633C
    HPROF ERROR: thread local table NULL in method exit 009A776C
    HPROF ERROR : stack underflow in method exit
    HPROF ERROR : stack underflow in method exit
    Dumping CPU usage in old prof format ... done.
    C:java>

    Profiling helps you to determine which part of your codes is time-consuming and therefore needs to be optmized.
    To use profiling, just type "-prof". Example is given in my earlier post.

  • How to collect profiling information

    I try to use -Xrunhprof:cpu:old to collect some profiling information.
    However I got the following information:
    HPROF ERROR: thread local table NULL in method exit 08990B84
    HPROF ERROR: thread local table NULL in method exit 08990B84
    HPROF ERROR: thread local table NULL in method exit 0023DC6C
    HPROF ERROR : stack underflow in method exit
    HPROF ERROR : stack underflow in method exit
    Any idea?

    Someone else will probably provide a better answer. I am not aware of such a debugging feature (monitoring CPU use) built into firefox.
    * have you seen [[firefox consumes a lot of CPU resources]]
    If this occur in firefox [[safe mode]] there is a problem that needs investigating.
    Do not forget to watch the number of instances of ''plugincontainer.exe'' that are open, there is a known bug causing problems with that see [/questions/812618]
    Note also you are able to for instance turn off the hardware acceleration, or by setting a preference (''html5.parser.enable;true/false'') turn off the html5 browser ability of Firefox.
    Presumably you have seen the Web Developer options from the firefox button. (And maybe considered firebug add-on, depending on what you are trying to check)

  • Error on code generation

    I've got a problem when compiling a class , javac tells me that it failed to generate code. Here is the whole error message, someone knows what I can do ?
    -1 / -14:      N/A     astore_2
    0:      1       new
    1:      2       dup
    2:      3       ldc
    3:      0       invokespecial
    4:      N/A     astore_2
    5:      N/A     aload_0
    6:      N/A     aload_0
    7:      N/A     getfield
    8:      N/A     aload_2
    9:      N/A     invokevirtual
    10:     N/A     iconst_0
    11:     N/A     aaload
    12:     N/A     invokevirtual
    13:     N/A     putfield
    14:     N/A     return
    GenCode failure in source class: GraphicalMenu$1
    at.dms.classfile.ClassFileFormatException: stack underflow
       at at.dms.classfile.InstructionHandle.checkInstruction (InstructionHandle.java:122)
       at at.dms.classfile.CodeEnv.checkExecutionPath (CodeEnv.java:95)
       at at.dms.classfile.CodeEnv.checkExecutionPaths (CodeEnv.java:73)
       at at.dms.classfile.CodeEnv.check (CodeEnv.java:47)
       at at.dms.kjc.CSourceMethod.genCode (CSourceMethod.java:337)
       at at.dms.kjc.CSourceMethod.genMethodInfo (CSourceMethod.java:191)
       at at.dms.kjc.CSourceClass.genMethods (CSourceClass.java:510)
       at at.dms.kjc.CSourceClass.genCode (CSourceClass.java:421)
       at at.dms.kjc.Main.genCode (Main.java:268)
       at at.dms.kjc.Main.run (Main.java:214)
       at at.dms.kjc.Main.compile (Main.java:69)
       at at.dms.kjc.Main.main (Main.java:60)
    error:stack underflow

    I've got a problem when compiling a class , javac tells me that it failed to generate code. Here is the whole error message, someone knows what I can do ?
    -1 / -14:      N/A     astore_2
    0:      1       new
    1:      2       dup
    2:      3       ldc
    3:      0       invokespecial
    4:      N/A     astore_2
    5:      N/A     aload_0
    6:      N/A     aload_0
    7:      N/A     getfield
    8:      N/A     aload_2
    9:      N/A     invokevirtual
    10:     N/A     iconst_0
    11:     N/A     aaload
    12:     N/A     invokevirtual
    13:     N/A     putfield
    14:     N/A     return
    GenCode failure in source class: GraphicalMenu$1
    at.dms.classfile.ClassFileFormatException: stack underflow
       at at.dms.classfile.InstructionHandle.checkInstruction (InstructionHandle.java:122)
       at at.dms.classfile.CodeEnv.checkExecutionPath (CodeEnv.java:95)
       at at.dms.classfile.CodeEnv.checkExecutionPaths (CodeEnv.java:73)
       at at.dms.classfile.CodeEnv.check (CodeEnv.java:47)
       at at.dms.kjc.CSourceMethod.genCode (CSourceMethod.java:337)
       at at.dms.kjc.CSourceMethod.genMethodInfo (CSourceMethod.java:191)
       at at.dms.kjc.CSourceClass.genMethods (CSourceClass.java:510)
       at at.dms.kjc.CSourceClass.genCode (CSourceClass.java:421)
       at at.dms.kjc.Main.genCode (Main.java:268)
       at at.dms.kjc.Main.run (Main.java:214)
       at at.dms.kjc.Main.compile (Main.java:69)
       at at.dms.kjc.Main.main (Main.java:60)
    error:stack underflow

Maybe you are looking for

  • CHUD tools universal ?

    Does anyone know if the latest CHUD dev tools (4.3.2) are Universal binaries? I want to use some of the tools but I noticed there are pref panes in the tool set and I don't want them if they aren't Universal. Anyone know? Peter

  • Problem Saving Word Docs

    We are using GW 8.0 with HP2 I have one user whose changes in Word are not reflected in the Library. The changes DO exist in a numbered file the Save / Checkout folder This is Intermittent with only 1 user She always (she claims) closes the document

  • Algorithm question, please help

    Hi all, Suppose that we have several String lines (postal addresses for example) in a text file. Is there an algoritm that permits to find the list of the addresses that 'resembles' to the query (an address that may contain an error) entered by the u

  • MII Workbench Freezes

    I have it that the MII workbench will freeze randomly when I open BLS Transactions. It happens all the time but never on the same transaction. The only way to fix it is to kill the javaw.exe in task manager. Java Version: 6 update 24 build 1.6.0_24-b

  • I have an iMac that has no connectivity with the mouse.  I have replaced the batteries in the mouse.  As a result, we can not use the computer as the mouse won't move

    I have an iMac which the mouse has lost connectivity.  Batteries on mouse have been replaced and green light on mouse is on. I can now use the computer as it does not respond to mouse or it appears to the keyboard.  Just not sure if it is a problem w