Stack overflow in JNI call

Hi,
I am doing a wrapper with JNI for a Windows library of image compression. I have a test program running correctly in C. This program compress data and it can move a lot of memory. If I call this program from a JNI functions I obtain a JNI error:
An unrecoverable stack overflow has occurred.
An unexpected exception has been detected in native code outside the VM.
Unexpected Signal : EXCEPTION_STACK_OVERFLOW (0xc00000fd) occurred at PC=0x5FF88497
Function=unpack_data+0x189D7
Library=C:\WINDOWS\system32\NCSEcw.dll
This error is produce inside my compression library. I try to adjust the parameters (-Xms -Xmx -Xss) of the JVM but in any case before the process ends it shows this exception. I have done other JNI interfaces and I never found with this problem before. Can anybody help me?
Thanks in advance.

I found in this forum a piece of code with a same kind problem but It is simpler than mine. I have proved this program in Windows and it produce the same error. In Linux it runs but if I enlarge the array largebuf it ends with the same error. In Linux I can reserve until 2 MB (in windows +-256K). Is there any way to increase the stack size in a jni call?.
#include <stdio.h>
#include <jni.h>
#include "test.h"
int myprint2(int a, int b){
     char extrabuf[100];
     printf("got here next\n");
     extrabuf;
     return 0;
int myprint(int a, int b){
     char largebuf[260000];
     printf("got here\n");
     myprint2(1,1);
     largebuf;
     return 0;
JNIEXPORT jint JNICALL Java_test_init(JNIEnv *env, jobject obj){
     myprint(1,1);
     return 1;
test.java
public class test{
     public native int init();
     public static void main(String []args){
          new test();
     public test(){
          System.loadLibrary("Nat");
          System.out.println(this.init());
}

Similar Messages

  • Recursive function definition results in stack overflow

    I am writing a library script to handle some basic calculations with complex numbers which includes a function, powerN(), that raises (or is supposed to raise) a complex number to the Nth power. The function compiles but gives a stack overflow error when called. The language guide has an example (p. 286 in PDF version- recursive subroutines section) of a recursive definition of a function which gives the factorial of a number, and my powerN function seems to be analogous. Can anyone shed some light on whatever the problem is? Relevant code examples are below. Thanks for any insights.
    -----Apple recursive subroutine for factorials------
    on factorial(x)
    if x > 0 then
    return x * (factorial(x - 1))
    else
    return 1
    end if
    end factorial
    -----End Apple recursive subroutine for factorials------
    -----My script with problematic powerN() function------
    --Complex numbers a+b(i), x+y(i) represented by {a,b}, {x,y}
    on multiply({a, b}, {x, y})
    return {(a * x + b * y), (b * x + a * y)}
    end multiply
    --above multiply function works
    on powerN({a, b}, N)
    return multiply({a, b}, powerN({a, b}, N - 1))
    end powerN
    --above powerN function gives stack overflow error
    -----End my script with problematic powerN() function------

    the problem is that your recursion has no end case, thus causing a stack overflow
    you should add a test as follows :
    on powerN({a, b}, N)
    if N>0 then
    return multiply({a, b}, powerN({a, b}, N - 1))
    else
    return 1
    end if
    end powerN
    by the way, shouldn't your complex multiplication look like :
    on multiply({a, b}, {x, y})
    return {(a * x - b * y), (b * x + a * y)}
    end multiply

  • Stack Overflow Error for JNI program with Jdk1.3

    I wrote a JNI wrapper for a third party sofware (written in C) to use some exported functions provided. My program runs fine when using Sun JDK1.2.2, but I got the following error when using Jdk1.3 to run the program (It's a runtime error, only the version of runtime virtual machine matters.)
    # An EXCEPTION_STACK_OVERFLOW exception has been detected in native code outside
    the VM.
    # Program counter=0x9073337
    A stack overflow was encountered at address 0x09073337.
    I tried IBM jdk 1.2.2, it gave me a similar error complaining about the stack overflow error.
    The vendor of the third party software denies any wrong doing in their code and I don't have their source code. A test client (simulate the Java client) I wrote in C works perfectly fine and as I mentioned earlier the same java progarm runs OK with jdk 1.2.2, without any change to my system stack size. Does any body know what this is about and the solution for this?
    Thanks!
    My email: [email protected]

    I had the same exception occur in my JNI code and I have some advice on things to look for.
    Symptoms: The C++ code runs fine when called in an native executable but when it is wrapped by a JNI call inside a DLL you get the following exception:
    An unexpected exception has been detected in native code outside the VM.
    Unexpected Signal : EXCEPTION_STACK_OVERFLOW occurred at PC=0x100d72e5
    Function name=_chkstk
    The address will be different of course.
    In my tests I isolated the problem to an allocation of a char array like so at the top of one of my wrapped C++ methods:
    char buf[650000];
    As you see this code is requesting 650000 bytes of stack memory. When run in a native executable there was no problem but when I ran it wrapped in the JNI call it blew up.
    Conclusion: There is a much smaller stack space when using JNI OR the added overhead of my JNI wrapper exhausted the available stack space OR this is a stack space issue related to DLLs.
    Hope this helps. Anyone with insight on this please put in your 2 cents.

  • Stack overflow when calling a DLL

    I have developped a DLL in Ada.
    I tried to call a function of this DLL from a C++ executable.
    My program crashed because of a stack overflow.
    Then, I increased the stack size of my program (linker option), and now it
    works.
    Calling this DLL through the call library function from a 6.0 Labview
    program causes the same stack overflow.
    How could I increase the stack size of my Labview program ?
    Thanks.

    Hi,
    I have never come across this issue but here are a few things you can try:
    1) Change the Calling Convention between C and StdCall(WINAPI). The main difference between the two calling conventions has to do with when the stack is cleaned up. In one method, the stack is cleaned earlier than in the other method.
    2) Call your dll with LabVIEW 7.0. You can find the evaluation version of the latest version at http://www.ni.com/labview
    Good luck
    Feroz

  • Stack Overflow in External Interface call

    Hi - I'm trying to make a call to he javascript function present in my aspx viz external inerface. I have 3 such calls. One of the call is always erroring out with error
    Error: Error #1023: Stack overflow occurred.
        at flash.external::ExternalInterface$/_toJS()
        at flash.external::ExternalInterface$/_objectToJS()
        at flash.external::ExternalInterface$/_toJS()
        at flash.external::ExternalInterface$/_objectToJS()
    I checked the syntax and everything looks fine and similar to other calls but this one always fails. Can someone point me as to what could be going wrong? Pls treat this as urgent.

    I pass a object only. I dont know how to pass 5 diff params to a JS.this is how I do it. Instead of 2 here, the other call had 5 parms.
    var javascriptFunction:String = "function name";
                        var signinObject:Object = new Object();
                        signinObject.param1= <<param1>>;
                        signinObject.param2= <<param2>>;
                        if(ExternalInterface.available)
                            // call the javascript function!
                            trace("b4 calling JS .");
                            ExternalInterface.call(javascriptFunction, signinObject);

  • Stack overflow error

    Hi..
    I have problem with this code.
       class test
           test tt=new test();   //1
           String name1;
        test() {}
        test(String i)
              name1=i;
             //tt=new test();    //2
       public static  void main(String arg[]){
                  test t1=new test("kj"); //3
    }  When I use line 2 (nstead of line 1 ) for initializing the ref variable iam not having any problem.
    But if i use as in line 1 iam getting stack overflow error..
    I thought tht calling a constructor recursivley results in a stack overflow error..
    But iam instantiating t1 with a one arg constructor (line 3) for which tt (line 1)is intialized,then where is the recursion happening..
    can any one pls clear..
    Thnx.
    mysha..

    please use [code][/code] tags around your code - makes it much easier to read.
    I think you have it - consider this code:public class StackOverflower {
        private StackOverflower so = new StackOverflower();
        public static void main(String[] args) {
            StackOverflower mySO = new StackOverflower();
    }Running this will overflow the stack since creation of an instance of StackOverflower requires creation of an instance of StackOverflower. This code though:public class NonStackOverflower {
        private NonStackOverflower nso = null;
        public NonStackOverflower() {
        public NonStackOverflower(String s) {
            this.nso = new NonStackOverflower();
        public static void main(String[] args) {
            NonStackOverflower myNSO = new NonStackOverflower();
    }Won't, since the creation of a new NonStackOverflower is not required to create a new NonStackOverflower instance.
    Did that make sense? I may have gotten confused and failed to illustrate your situation with my code...
    Good Luck
    Lee

  • "Stack overflow" & "out of memory"

    Hello,
    I have an issue with javascript code : with my own navigation, which includes additional javascript, I have either a "out of memory" error on the declaration of "var strUrl = http://..." in the CommonOpener_CreateExtObject method, or a "stack overflow" error on the onload="document.PCC.RaiseWindowEvent(event);" event handling in the <body> tag.
    When I save the page as HTML and remove the onload event, no error happens anymore.
    I think I could remove the onload event generation by modifying the C# code, but it would certainly disable some other feature (I think this event is managing PEI calls or something else).
    Any idea on how to fix this ?
    P.S : I'm on a .NET platform, I'm going to try to recompile my nav on a java platform to see if it works...

    Sebastien,
    - Are you using 5.0.1 or 5.0.2?
    - Are you by any chance trying to extend the Isomorphic navigation (under 5.0.2, it's called "legacy")?
    I would carefully review the pluggable nav you're using and double-check you're including all the necessary javascript in the JavaScriptIncludes() method to make sure you're basically adding everything properly.
    The isomorphic nav was particularly hard to extend because it required you add a special DHTML element to close off the menus being inserted. If you base your work off of our new jsportalmenus nav, it's much easier to work with and more reliable: it injects javascript into a named DOM element, which in our case is just a <TD id='name'></TD>; the menu gets inserted in the table cell.
    At a minimum, try debugging your javascript bug using Microsoft's script debugger (downloadable from microsoft.com). You should be able to determine precisely why there is a failure; comapre your code to the original nav you started from and carefully pick out what could be different.
    The onload events and the PCC are critical to normal function of the portal. Sgutting that off isn't an option, in my mind. If you wanted to, you'd need to do some pretty major surgery on the portal, and thaqt wouldn't upgrade, either.
    David Phipps
    Plumtree Software

  • How do I fix a stack overflow?

    Hi,
    Well I hope I am posting this in the right section of topics.
    I am new to programing.At the moment I am sudying loops in Java.
    I did something that has caused
    a "stack overflow" in my computer(Whatever that is).
    Is this really bad for my computer, and how do I fix it?
    thanks.

    Just to add a little more..
    The Stack is a special area of memory in the virtual machine. It stores variables that fall in and out of scope. When methods are called, the values of variables are often placed on the stack. The problem with a stack overflow arises when a method calls itself, either directly or indirectly, and never stops doing so. This could be called 'uncontrolled recursion'.
    When this happens, the stack will fill up until the method can no longer be called, and at this point a StackOverflowError will be thrown.
    It is important to note that this will not do bad things to your machine, because the stack is quite small (circa 256KB ?). If you don't catch the Error with a catch(Throwable) statement, the VM will exit automatically - all you have to do is fix the bug.

  • Getting stack overflow exception whilst reading from HashMap

    hi,
    We are getting stack oveflow exception exception whilst reading from the HashMap.
    Following are few details about the code
    We have a swing based client and Session beans and Entity beans deployed on Weblogic Server.
    When the server is started, a session bean method queries to data base and creates a java object for each row in the data base.This java object is then stored in HashMap. These java objects have all get/set methods . and it has attributes of primitive data type as well as other java objects.This Hahsmap is then returned to client.
    When client calls this method and the method processes succesfuly , but when tries to return the HashMap, it gives Stack overflow exception.
    Looking at the stack trace i think this exception is thrown when the HashMap.readObject() methods is being invoked.
    does any body have any idea about this ? a quick help is much appriciated.

    Stack overflow is often caused by infinity loops No, an infinite loop would be like while (true) {
        // stuff
    } That doesn't cause stack overflow.
    or
    recursive method calls.Bingo.

  • Having trouble with Error #1023:stack overflow

    I've run into this error ican't seem to get around. I've redone this code many times and it still happens. Part of the problem is its randomness, sometimes it happens right at launch and sometimes after 5-10 mins. I've tried to look up how to fix it but haven't seen how my problem relates to those that have something similar. As far as i can tell i dont have an recurrsion of code. Here's a copy of the error that pops up.
    Error: Error #1023: Stack overflow occurred.
        at MathRaceradvanced3_fla::MainTimeline/bigSpaceShip2Listeners()
        at MathRaceradvanced3_fla::MainTimeline/bigSpaceShip2StartPoint()
        at MathRaceradvanced3_fla::MainTimeline/bigSpaceShip2Listeners()
        at MathRaceradvanced3_fla::MainTimeline/bigSpaceShip2StartPoint()
        at MathRaceradvanced3_fla::MainTimeline/bigSpaceShip2Listeners()
        at MathRaceradvanced3_fla::MainTimeline/bigSpaceShip2StartPoint()
        at MathRaceradvanced3_fla::MainTimeline/bigSpaceShip2Listeners()
        at MathRaceradvanced3_fla::MainTimeline/bigSpaceShip2StartPoint()
        at MathRaceradvanced3_fla::MainTimeline/bigSpaceShip2Listeners()
        at MathRaceradvanced3_fla::MainTimeline/bigSpaceShip2StartPoint()
        at MathRaceradvanced3_fla::MainTimeline/bigSpaceShip2Listeners()
        at MathRaceradvanced3_fla::MainTimeline/bigSpaceShip2StartPoint()
        at MathRaceradvanced3_fla::MainTimeline/bigSpaceShip2Listeners()
        at MathRaceradvanced3_fla::MainTimeline/bigSpaceShip2StartPoint()
        at MathRaceradvanced3_fla::MainTimeline/bigSpaceShip2Listeners()
        at MathRaceradvanced3_fla::MainTimeline/bigSpaceShip2StartPoint()
        at MathRaceradvanced3_fla::MainTimeline/bigSpaceShip2Listeners()
        at MathRaceradvanced3_fla::MainTimeline/bigSpaceShip2StartPoint()
        at MathRaceradvanced3_fla::MainTimeline/bigSpaceShip2Listeners()
        at MathRaceradvanced3_fla::MainTimeline/bigSpaceShip2StartPoint()
        at MathRaceradvanced3_fla::MainTimeline/bigSpaceShip2Listeners()
        at MathRaceradvanced3_fla::MainTimeline/bigSpaceShip2StartPoint()
        at MathRaceradvanced3_fla::MainTimeline/bigSpaceShip2Listeners()
        at MathRaceradvanced3_fla::MainTimeline/bigSpaceShip2StartPoint()
        at MathRaceradvanced3_fla::MainTimeline/bigSpaceShip2Listeners()
        at MathRaceradvanced3_fla::MainTimeline/bigSpaceShip2StartPoint()
        at MathRaceradvanced3_fla::MainTimeline/bigSpaceShip2Listeners()
        at MathRaceradvanced3_fla::MainTimeline/bigSpaceShip2StartPoint()
        at MathRaceradvanced3_fla::MainTimeline/bigSpaceShip2Listeners()
        at MathRaceradvanced3_fla::MainTimeline/bigSpaceShip2StartPoint()
        at MathRaceradvanced3_fla::MainTimeline/bigSpaceShip2Listeners()
        at MathRaceradvanced3_fla::MainTimeline/bigSpaceShip2StartPoint()
        at MathRaceradvanced3_fla::MainTimeline/bigSpaceShip2Listeners()
        at MathRaceradvanced3_fla::MainTimeline/bigSpaceShip2StartPoint()
        at MathRaceradvanced3_fla::MainTimeline/bigSpaceShip2Listeners()
        at MathRaceradvanced3_fla::MainTimeline/bigSpaceShip2StartPoint()
        at MathRaceradvanced3_fla::MainTimeline/bigSpaceShip2Listeners()
        at MathRaceradvanced3_fla::MainTimeline/bigSpaceShip2StartPoint()
        at MathRaceradvanced3_fla::MainTimeline/bigSpaceShip2Listeners()
        at MathRaceradvanced3_fla::MainTimeline/bigSpaceShip2StartPoint()
        at MathRaceradvanced3_fla::MainTimeline/bigSpaceShip2Listeners()
        at MathRaceradvanced3_fla::MainTimeline/bigSpaceShip2StartPoint()
        at MathRaceradvanced3_fla::MainTimeline/bigSpaceShip2Listeners()
        at MathRaceradvanced3_fla::MainTimeline/bigSpaceShip2StartPoint()
        at MathRaceradvanced3_fla::MainTimeline/bigSpaceShip2Listeners()
        at MathRaceradvanced3_fla::MainTimeline/bigSpaceShip2StartPoint()
        at MathRaceradvanced3_fla::MainTimeline/bigSpaceShip2Listeners()
        at MathRaceradvanced3_fla::MainTimeline/bigSpaceShip2StartPoint()
        at MathRaceradvanced3_fla::MainTimeline/bigSpaceShip2Listeners()
        at MathRaceradvanced3_fla::MainTimeline/bigSpaceShip2StartPoint()
        at MathRaceradvanced3_fla::MainTimeline/bigSpaceShip2Listeners()
        at MathRaceradvanced3_fla::MainTimeline/bigSpaceShip2StartPoint()
        at MathRaceradvanced3_fla::MainTimeline/bigSpaceShip2Listeners()
        at MathRaceradvanced3_fla::MainTimeline/bigSpaceShip2StartPoint()
        at MathRaceradvanced3_fla::MainTimeline/bigSpaceShip2Listeners()
        at MathRaceradvanced3_fla::MainTimeline/bigSpaceShip2StartPoint()
        at MathRaceradvanced3_fla::MainTimeline/bigSpaceShip2Listeners()
        at MathRaceradvanced3_fla::MainTimeline/bigSpaceShip2StartPoint()
        at MathRaceradvanced3_fla::MainTimeline/bigSpaceShip2Listeners()
        at MathRaceradvanced3_fla::MainTimeline/bigSpaceShip2StartPoint()
        at MathRaceradvanced3_fla::MainTimeline/bigSpaceShip2Listeners()
        at MathRaceradvanced3_fla::MainTimeline/bigSpaceShip2StartPoint()
        at MathRaceradvanced3_fla::MainTimeline/bigSpaceShip2Listeners()
        at MathRaceradvanced3_fla::MainTimeline/bigSpaceShip2StartPoint()
    Here's the code, basically what i'm doing is placing the object on screen at a random Y position.I do have a check when it loads it isn't right on top of another object and if it does it redoes the Y Position. Then i give it a random scale to the original object and speed. Then when the objects reachs the other side of the screen i move it back to the start and randomize the size,speed, and Yposition again. The error seems to happen when it moves back to the other side. And when it happens it doesnt stop the program, the object just never reappears. Any help would be greatly appreciated.
    var bigSpaceShip2:MovieClip=new bigSpaceShip();
    var bigSpaceShip2Speed:Number;
    var bigSpaceShip2Scale:Number;
    var bigSpaceShip2YPosition:Number;
    var bigSpaceShip2Reset:Boolean;
    bigSpaceShip2SetUp();
    function bigSpaceShip2SetUp():void{
        bigSpaceShip2Speed= ((Math.random()*.95)+.75);
        bigSpaceShip2Scale= ((Math.random()*.30)+.35);
        addChildAt(bigSpaceShip2, 1);
        bigSpaceShip2StartPoint();
    function bigSpaceShip2StartPoint():void{
        bigSpaceShip2.scaleX=bigSpaceShip2Scale;
        bigSpaceShip2.scaleY=bigSpaceShip2Scale;
        bigSpaceShip2.x=0;
        bigSpaceShip2.y=(Math.ceil(Math.random()*650))+50;
        bigSpaceShip2YPosition=bigSpaceShip2.y;
        if((bigSpaceShip2YPosition-bigSpaceShip1.y)>(-200) && (bigSpaceShip2YPosition-bigSpaceShip1.y)<2000){
            bigSpaceShip2Reset=true;
        }else{
            bigSpaceShip2Reset=false;
        bigSpaceShip2Listeners();   
    function bigSpaceShip2Listeners():void{
        if(bigSpaceShip2Reset==false){
        bigSpaceShip2.addEventListener(Event.ENTER_FRAME, bigSpaceShip2SpeedSet);
        bigSpaceShip2.addEventListener(Event.ENTER_FRAME, bigSpaceShip2CheckReset);
        }else{
            bigSpaceShip2StartPoint();
    function bigSpaceShip2SpeedSet(e:Event):void{
        bigSpaceShip2.x+=bigSpaceShip2Speed;
    function bigSpaceShip2CheckReset(e:Event):void{
        if (bigSpaceShip2.x >1400){
            bigSpaceShip2.removeEventListener(Event.ENTER_FRAME, bigSpaceShip2SpeedSet);
            bigSpaceShip2.removeEventListener(Event.ENTER_FRAME, bigSpaceShip2CheckReset);
            bigSpaceShip2StartPoint();

    Hi enaz13,
    The default recurring of a function is only 256 times but u calling same function endlessly that is the reasong stack over flow error is coming

  • CIN stack overflow error

    Im using an recursiv c++ function in my VI.
    After severall calls the VI crashes, printing an
    stack overflow error.
    I already increased in Visual Studio 6.0 the Link
    setting: allocate stack. But nothing changed.
    I need help fix this problem!!
    My prg. looks like this:
    recursiv (....) {
    int array[..][..][..];
    recursiv (..);
    Sent via Deja.com http://www.deja.com/
    Share what you know. Learn what you don't.

    > Im using an recursiv c++ function in my VI.
    > After severall calls the VI crashes, printing an
    > stack overflow error.
    > I already increased in Visual Studio 6.0 the Link
    > setting: allocate stack. But nothing changed.
    > I need help fix this problem!!
    >
    > My prg. looks like this:
    >
    > recursiv (....) {
    > int array[..][..][..];
    > ....
    > recursiv (..);
    > }
    If you are truly allocating a three D array of ints
    on the stack, then it makes sense that you will run
    out of stack space sooner or later. I can't help
    you with increasing the stack size, but if you move
    your array into a memory block and store the pointer
    on the stack, then you will use less stack space and
    avoid the problem.
    In otherwords:
    recursive() {
    int *array;
    array= DSNewPtr()
    array[][][]= ...
    recursive();
    DSDisposePtr();
    Greg McKaskle

  • Stack overflow (0xC00000FD) at EIP=0x01B13469

    Hello, 
    I am working on a large project and sometimes the LabView shuts down with the error message:  Stack overflow (0xC00000FD) at EIP=0x01B13469 (that is tha last one I got). I am not able to identify the generator of this error. ( Maybe someone can do it from the error message above).  It is possible to catch this error ???? 

    charlie87 wrote:
    Hello, 
    I am working on a large project and sometimes the LabView shuts down with the error message:  Stack overflow (0xC00000FD) at EIP=0x01B13469 (that is tha last one I got). I am not able to identify the generator of this error. ( Maybe someone can do it from the error message above).  It is possible to catch this error ???? 
    This is a fatal error. As to catching it, Windows does it already for you, that is why you see the dialog. Trying to catch it yourself by some means wouldn't add anything as it is ABSOLUTELY unsafe to continue the process after this error. It could eat your breakfast, or the harddisk or something else!!
    Something in your application is using huge stack space. This could be in LabVIEW itself, if you use some form of very strange VI settings, but since the LabVIEW VI execution itself is not stack based it is unlikely that the large project in itself would be the cause of it. Most likely you make use of some external code library somewhere, that has huge stack space requirements, either by allocating huge buffers on the stack (a very bad thing to do) or by calling functions recursively without a safe upper bound (just as a bad thing to do).
    Also you should qunatify what a large project means. I have done projects in LabVIEW with about 1000 VIs and more already 15 years ago.
    Rolf Kalbermatter
    CIT Engineering Netherlands
    a division of Test & Measurement Solutions

  • Error: Error #1023: Stack overflow occurred.

    This is the code of my Flash component for Flex.
    It loads 2 images, one with a "Loader" and the other with a
    "UILoader" and a progressbar.
    When the completeHandler function is executed, the error
    message " Error #1023: Stack overflow occurred." appears. (The
    whole message is a the end of the Post)
    The code line which does this error is:
    ImageContainer2.addChild(myUILoader2);
    When I take it away, no error anymore, but no image too!
    package {
    import flash.display.*
    import flash.text.*
    import mx.flash.UIMovieClip;
    import flash.net.URLRequest;
    import flash.events.*;
    import fl.containers.UILoader;
    import fl.controls.Label;
    import fl.controls.ProgressBar;
    //import fl.controls.progressBarClasses.*;
    public class mcbigImage extends UIMovieClip
    // Define public setter method.
    [Bindable (event="bgImageChanged")]
    [Event('bgImageChanged')]
    [ChangeEvent("change")]
    public function set bgImage(img:String):void
    var ldr:Loader = new Loader();
    var url:String = img;
    var urlReq:URLRequest = new URLRequest(url);
    ldr.load(urlReq);
    this.ImageContainerMirror.addChild(ldr);
    dispatchEvent(new Event("bgImageChanged"));
    //this.testTXT.text = String(ldr.content);
    [Bindable (event="bigImageChanged")]
    [Event('bigImageChanged')]
    [ChangeEvent("change")]
    public function set bigImage(img:String):void
    ImageLoader.visible = true;
    var myUILoader2:UILoader = new UILoader();
    myUILoader2.autoLoad = true;
    myUILoader2.source = img;
    myUILoader2.scaleContent = false;
    myUILoader2.load();
    ImageContainer2.addChild(myUILoader2);
    var myProgressBar:ProgressBar = new ProgressBar();
    myProgressBar.source = myUILoader2;
    myProgressBar.move(218, 147);
    myProgressBar.addEventListener(Event.COMPLETE,
    completeHandler);
    ImageLoader.addChild(myProgressBar)
    function completeHandler(event:Event):void
    myProgressBar.removeEventListener(Event.COMPLETE,
    completeHandler);
    ImageLoader.visible = false;
    dispatchEvent(new Event("bigImageChanged"));
    This is the whole error message:
    Error: Error #1023: Stack overflow occurred.
    at
    flash.events::EventDispatcher/flash.events:EventDispatcher::dispatchEventFunction()
    at flash.events::EventDispatcher/dispatchEvent()
    at
    mx.managers::SystemManager/mx.managers:SystemManager::Stage_resizeHandler()[C:\dev\flex_2 01_gmc\sdk\frameworks\mx\managers\SystemManager.as:2429]
    at
    flash.events::EventDispatcher/flash.events:EventDispatcher::dispatchEventFunction()
    at flash.events::EventDispatcher/dispatchEvent()
    at
    mx.managers::SystemManager/mx.managers:SystemManager::Stage_resizeHandler()[C:\dev\flex_2 01_gmc\sdk\frameworks\mx\managers\SystemManager.as:2429]
    at
    flash.events::EventDispatcher/flash.events:EventDispatcher::dispatchEventFunction()
    at flash.events::EventDispatcher/dispatchEvent()
    at
    mx.managers::SystemManager/mx.managers:SystemManager::Stage_resizeHandler()[C:\dev\flex_2 01_gmc\sdk\frameworks\mx\managers\SystemManager.as:2429]
    at
    flash.events::EventDispatcher/flash.events:EventDispatcher::dispatchEventFunction()
    at flash.events::EventDispatcher/dispatchEvent()
    at
    mx.managers::SystemManager/mx.managers:SystemManager::Stage_resizeHandler()[C:\dev\flex_2 01_gmc\sdk\frameworks\mx\managers\SystemManager.as:2429]
    at
    flash.events::EventDispatcher/flash.events:EventDispatcher::dispatchEventFunction()
    at flash.events::EventDispatcher/dispatchEvent()
    at
    mx.managers::SystemManager/mx.managers:SystemManager::Stage_resizeHandler()[C:\dev\flex_2 01_gmc\sdk\frameworks\mx\managers\SystemManager.as:2429]
    at
    flash.events::EventDispatcher/flash.events:EventDispatcher::dispatchEventFunction()
    at flash.events::EventDispatcher/dispatchEvent()
    at
    mx.managers::SystemManager/mx.managers:SystemManager::Stage_resizeHandler()[C:\dev\flex_2 01_gmc\sdk\frameworks\mx\managers\SystemManager.as:2429]
    at
    flash.events::EventDispatcher/flash.events:EventDispatcher::dispatchEventFunction()
    at flash.events::EventDispatcher/dispatchEvent()
    at
    mx.managers::SystemManager/mx.managers:SystemManager::Stage_resizeHandler()[C:\dev\flex_2 01_gmc\sdk\frameworks\mx\managers\SystemManager.as:2429]
    at
    flash.events::EventDispatcher/flash.events:EventDispatcher::dispatchEventFunction()
    at flash.events::EventDispatcher/dispatchEvent()
    at
    mx.managers::SystemManager/mx.managers:SystemManager::Stage_resizeHandler()[C:\dev\flex_2 01_gmc\sdk\frameworks\mx\managers\SystemManager.as:2429]
    at
    flash.events::EventDispatcher/flash.events:EventDispatcher::dispatchEventFunction()
    at flash.events::EventDispatcher/dispatchEvent()
    at
    mx.managers::SystemManager/mx.managers:SystemManager::Stage_resizeHandler()[C:\dev\flex_2 01_gmc\sdk\frameworks\mx\managers\SystemManager.as:2429]
    at
    flash.events::EventDispatcher/flash.events:EventDispatcher::dispatchEventFunction()
    at flash.events::EventDispatcher/dispatchEvent()
    at
    mx.managers::SystemManager/mx.managers:SystemManager::Stage_resizeHandler()[C:\dev\flex_2 01_gmc\sdk\frameworks\mx\managers\SystemManager.as:2429]
    at
    flash.events::EventDispatcher/flash.events:EventDispatcher::dispatchEventFunction()
    at flash.events::EventDispatcher/dispatchEvent()
    at
    mx.managers::SystemManager/mx.managers:SystemManager::Stage_resizeHandler()[C:\dev\flex_2 01_gmc\sdk\frameworks\mx\managers\SystemManager.as:2429]
    at
    flash.events::EventDispatcher/flash.events:EventDispatcher::dispatchEventFunction()
    at flash.events::EventDispatcher/dispatchEvent()
    at
    mx.managers::SystemManager/mx.managers:SystemManager::Stage_resizeHandler()[C:\dev\flex_2 01_gmc\sdk\frameworks\mx\managers\SystemManager.as:2429]
    at
    flash.events::EventDispatcher/flash.events:EventDispatcher::dispatchEventFunction()
    at flash.events::EventDispatcher/dispatchEvent()
    at
    mx.managers::SystemManager/mx.managers:SystemManager::Stage_resizeHandler()[C:\dev\flex_2 01_gmc\sdk\frameworks\mx\managers\SystemManager.as:2429]
    at
    flash.events::EventDispatcher/flash.events:EventDispatcher::dispatchEventFunction()
    at flash.events::EventDispatcher/dispatchEvent()
    at
    mx.managers::SystemManager/mx.managers:SystemManager::Stage_resizeHandler()[C:\dev\flex_2 01_gmc\sdk\frameworks\mx\managers\SystemManager.as:2429]
    at
    flash.events::EventDispatcher/flash.events:EventDispatcher::dispatchEventFunction()
    at flash.events::EventDispatcher/dispatchEvent()
    at
    mx.managers::SystemManager/mx.managers:SystemManager::Stage_resizeHandler()[C:\dev\flex_2 01_gmc\sdk\frameworks\mx\managers\SystemManager.as:2429]
    at
    flash.events::EventDispatcher/flash.events:EventDispatcher::dispatchEventFunction()
    at flash.events::EventDispatcher/dispatchEvent()
    at
    mx.managers::SystemManager/mx.managers:SystemManager::Stage_resizeHandler()[C:\dev\flex_2 01_gmc\sdk\frameworks\mx\managers\SystemManager.as:2429]
    at
    flash.events::EventDispatcher/flash.events:EventDispatcher::dispatchEventFunction()
    at flash.events::EventDispatcher/dispatchEvent()
    at
    mx.managers::SystemManager/mx.managers:SystemManager::Stage_resizeHandler()[C:\dev\flex_2 01_gmc\sdk\frameworks\mx\managers\SystemManager.as:2429]
    at
    flash.events::EventDispatcher/flash.events:EventDispatcher::dispatchEventFunction()
    at flash.events::EventDispatcher/dispatchEvent()
    at
    mx.managers::SystemManager/mx.managers:SystemManager::Stage_resizeHandler()[C:\dev\flex_2 01_gmc\sdk\frameworks\mx\managers\SystemManager.as:2429]
    at
    flash.events::EventDispatcher/flash.events:EventDispatcher::dispatchEventFunction()
    at flash.events::EventDispatcher/dispatchEvent()
    at
    mx.managers::SystemManager/mx.managers:SystemManager::Stage_resizeHandler()[C:\dev\flex_2 01_gmc\sdk\frameworks\mx\managers\SystemManager.as:2429]
    at
    flash.events::EventDispatcher/flash.events:EventDispatcher::dispatchEventFunction()
    at flash.events::EventDispatcher/dispatchEvent()
    at
    mx.managers::SystemManager/mx.managers:SystemManager::Stage_resizeHandler()[C:\dev\flex_2 01_gmc\sdk\frameworks\mx\managers\SystemManager.as:2429]
    at
    flash.events::EventDispatcher/flash.events:EventDispatcher::dispatchEventFunction()
    at flash.events::EventDispatcher/dispatchEvent()
    at
    mx.managers::SystemManager/mx.managers:SystemManager::Stage_resizeHandler()[C:\dev\flex_2 01_gmc\sdk\frameworks\mx\managers\SystemManager.as:2429]
    at
    flash.events::EventDispatcher/flash.events:EventDispatcher::dispatchEventFunction()

    But I can't see where in my code a listener calls the setter
    where its event is dispatched.
    Am I blind? ;-)
    Do you see it?

  • Error #1023: Stack overflow occurred. null

    I am entering data inside a datagrid and I have an update button which sends data to a web service.  But when I click the update button, I get this error: Error #1023: Stack overflow occurred. null.  I filled in the info using SOAPUI and sent it to the web service and it works fine.  So this error is inside flex.  Would you help me understand what I am doing wrong.
    Here is my code:
                protected function updateBtn_clickHandler(event:MouseEvent):void
                    if (currentState == "EmployeeNonAvails")
                        setNonAvailResult.token = personnelBean.setNonAvail(nonAvailDto);
                    else if (currentState == "EmployeeDetail")
                        userDto.firstName = firstNameTextInput.text;
                        userDto.lastName = lastNameTextInput.text;
                        userDto.loginName = loginNameTextInput.text;
                        userDto.password = passwordTextInput.text;
                        setUserResult.token = personnelBean.setUser(userDto);
        <fx:Declarations>
            <personnelbean:PersonnelBean id="personnelBean" fault="Alert.show(event.fault.faultString + '\n' + event.fault.faultDetail)" showBusyCursor="true"/>
            <valueObjects:UserDto id="userDto"/>
            <valueObjects:NonAvailDto id="nonAvailDto"/>
            <valueObjects:ReasonDto id="reasonDto"/>
            <s:CallResponder id="setNonAvailResult"/>
            <!-- Place non-visual elements (e.g., services, value objects) here -->
        </fx:Declarations>
        <s:Button id="updateBtn" includeIn="EmployeeNonAvails,EmployeeDetail" x="80" y="192" label="Update" click="updateBtn_clickHandler(event)"/>
        <mx:DataGrid id="nonAvailDg" width="875" height="248" editable="true" x="0" y="244"
                     dataProvider="{userDto.nonAvails}" includeIn="EmployeeNonAvails">

    PersonnelBean is a reference generated by Flash Builder to a web Service.  As stated in my original message.  I have already tested the web service and it is working fine.  I used SOAPUI to send the data via XML and it worked perfectly fine.  Besides, when I watch the server log, nothing happens and so Flex is not even sending out the message.  Flex is talking to the server because it connects and loads data fine.  It seems to fail when I want to send data to the server.  But it is failing before it actually sends the data.  And it fails during generated code.  This tells me there is a bug in Flash Builder.  If you look at the generated code for Personnel Bean this is what you see.
    [ExcludeClass]
    internal class _Super_PersonnelBean extends com.adobe.fiber.services.wrapper.WebServiceWrapper
        // Constructor
        public function _Super_PersonnelBean()
            // initialize service control
            _serviceControl = new mx.rpc.soap.mxml.WebService();
            var operations:Object = new Object();
            var operation:mx.rpc.soap.mxml.Operation;
            operation = new mx.rpc.soap.mxml.Operation(null, "setNonAvail");
             operation.resultType = valueObjects.NonAvailDto;
            operations["setNonAvail"] = operation;
            _serviceControl.operations = operations;
            try
                _serviceControl.convertResultHandler = com.adobe.serializers.utility.TypeUtility.convertResultHandler;
            catch (e: Error)
            { /* Flex 3.4 and eralier does not support the convertResultHandler functionality. */ }
            _serviceControl.service = "PersonnelBeanService";
            _serviceControl.port = "PersonnelBeanPort";
            wsdl = "http://localhost:8080/PersonnelBeanService/PersonnelBean?wsdl";
            model_internal::loadWSDLIfNecessary();
            model_internal::initialize();
          * This method is a generated wrapper used to call the 'setNonAvail' operation. It returns an mx.rpc.AsyncToken whose
          * result property will be populated with the result of the operation when the server response is received.
          * To use this result from MXML code, define a CallResponder component and assign its token property to this method's return value.
          * You can then bind to CallResponder.lastResult or listen for the CallResponder.result or fault events.
          * @see mx.rpc.AsyncToken
          * @see mx.rpc.CallResponder
          * @return an mx.rpc.AsyncToken whose result property will be populated with the result of the operation when the server response is received.
        public function setNonAvail(arg0:valueObjects.NonAvailDto) : mx.rpc.AsyncToken
            model_internal::loadWSDLIfNecessary();
            var _internal_operation:mx.rpc.AbstractOperation = _serviceControl.getOperation("setNonAvail");
            var _internal_token:mx.rpc.AsyncToken = _internal_operation.send(arg0) ;
            return _internal_token;

  • Unrecoverable Stack Overflow

    Hi there,
    I have a thread that does various things including hibernate transactions. After everything is done it calls the run method again so its a endless loop. Inside the run function there are a couple of loops. After running this thread for a day I get this error, what does it mean?
    Unrecoverable Stack Overflow: addr=403d3a26, ee=8401b80, er=430fdb00
    JVMDG217: Dump Handler is Processing a Signal - Please Wait.
    JVMDG303: JVM Requesting Java core file
    kill: usage: kill [-s sigspec | -n signum | -sigspec] [pid | job]... or kill -l [sigspec]
    kill: usage: kill [-s sigspec | -n signum | -sigspec] [pid | job]... or kill -l [sigspec]

    I have a thread that does various things including
    hibernate transactions. After everything is done it
    calls the run method again so its a endless loop.Are you seriously saying that the run() method calls itself, like in public run() {
        run();
    }This would not be an endless loop, but an infinite recursion and the stack overflow is not at all surprising. If this is your only bug then rewrite topublic run() {
      while( true ) {
    }and everything will be just fine.
    Harald.

Maybe you are looking for

  • Error while installing shared technologies

    I just purchased Photoshop 11 from download services at Amazon. In the middle of installation, I get error "error while installing shared technologies. Please restart your system and try again" in Windows 7 professional, 64 bit. I tried this. 1. rest

  • Which is better to use: BEx query or Web Application as an iView in portal?

    Hi gurus! Are there any experienced opinions, which is better - publish a BEx query in portal or publish a BEx Web Application in portal? Is it easier to alter the layout attributes etc. if I create a BEx Web Application first before publishing? What

  • Cannot access info view

    i have installed BOXIR 3 and when i open <local host>:8080 , then it says page cannot be found or IIS. Make sure you have punched in the correct URL. I configured the tomcat that we were using, instead of that shipped with BO. Can some one help me ou

  • Passing Complex Object into Grid Component

    OK here is what i am trying to do. I have a grid component, and I wanted to display on the grid, a list of ship objects. Think of this like a cruise liner. I am retrieving these objects from a java/hybernate/spring adapter using remote object, and it

  • Unexpected Quitting at Launch

    Hello Gang, This is my first post to the form. After enjoying Apple's Mail for about 8 months, yesterday it started "Unexpectedly Quitting" on launch. The Mail window appears for about 3 second, seems to be "thinking" and then takes a dump. I have do