bildwelt
E2E FORUM
E2E Bridge E2E Commerce

Stack size exceeded

E2E Forum Modeling & Development Stack size exceeded

This topic contains 11 replies, has 3 voices, and was last updated by  marcusr 2 years, 6 months ago.

Viewing 12 posts - 1 through 12 (of 12 total)
  • Author
    Posts
  • #1887

    marcusr
    Participant

    When i run my testservice which invokes a bapi i get the following error in the logging of the console.
    [2015-05-11 12:34:37 +0200][0000000000][Warning][Internal][BELM][53][Stack size exceeded limit of 10000 calls]
    What do i need to change to prevent this from happening ?

    #1888

    Alfred
    Moderator

    The error “Stack size exceeded limit of 10000 calls” means you have a logical error in your model. E.g. if you model a function and the function calls itself (recursive function). And now the stop criteria is wrong and so the recursion never stops (call itself more than 10000 times).

    Perhaps you can analyze the model with the interactive debugger to find the problem.

    #1889

    marcusr
    Participant

    Hi Alfred, i am familiar with a recursive call of a function.
    However i copied an example of the education folder an modified it in order to call a bapi.
    The model is real simple.
    This is something that is hard to find with debug, because it just has 1 step.

    I have attached the model i use.

    #1890

    marcusr
    Participant

    Attached some screenshots.

    #1893

    Alfred
    Moderator

    That is interesting.

    Does the service crash with out of memory error?

    Please send the E2E Builder project and bridgeserver.log to our support email.

    #1895

    marcusr
    Participant

    It crashes because the limit is exceeded.
    Service then stops.
    attached you will find the project and the console log.

    #1898

    Andi
    Moderator

    Hello,
    I’m Andi from E2E Support.

    I had a quick look into your model. It appears to me, that you have created the RFC interface manually and not applied the recommended way to implement SAP RFC interfaces with the RFC WSDL generator.
    I recommend that you use this utility. You can download it here and you find also documentation how to use it.

    I was also able to reproduce the issue you described and I will forward this to our developers for further investigations. But as said, please try with our RFC WSDL utility. It lets you implement RFC interfaces very fast and reliable with E2E.

    Regards, Andi

    #1899

    Andi
    Moderator

    Hello marcusr,
    meanwhile we had a little closer look into your model, and in deed there is a recursive call of a function.
    In the implementation of the SOAP Port operation, on the SAP RFC Adapter you are actually calling the SOAP Port operation again. This recursion call leads to the warning and finally to a service crash.

    As already mentioned, we strongly recommend to use the RFC WSDL generator utility to generate the necessary classes and operations for RFC interfaces.

    Regards,
    Andi

    #1900

    marcusr
    Participant

    Hi Andi,

    Could it be that i am missing some import options ?

    Marcus

    #1902

    Andi
    Moderator

    Hi Marcus,
    your screen shot is showing the Import options of MagicDraw, usually we dont need these importers in E2E context.

    The importer you need in this context is located in the E2E Model Compiler -> Import -> WSDL / XSD. Just use this importer after you have generated the WSDL file with the RFC-WSDL Generator.
    For informations about E2E Importer capabilities and usage please refer to our E2E Builder Guide .

    #1903

    marcusr
    Participant

    Thanks Andi,
    i have imported a wsdl of the bapi and my service does not crash anymore.
    I also got the result back from the bapi.

    Marcus

    #1904

    Andi
    Moderator

    Hi Marcus,
    great to hear that it’s working now 🙂

    Have a nice day,
    Andi

Viewing 12 posts - 1 through 12 (of 12 total)

You must be logged in to reply to this topic.