Skip to Content
author's profile photo Former Member
Former Member Can't find moniker

Hi all,

using the SBO 2004 and the JCO I get the following exception Can't find moniker

at the line.

myCompany = SBOCOMUtil.newCompany();

Has anyone an idea?

Tobias Seng

Add a comment
10|10000 characters needed characters exceeded

Related questions

1 Answer

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on Jan 25, 2005 at 01:55 AM

    This will solve your problems, send me a message, I have worked with Java Connector and know some tricks, you will need.


    DI-API 6.2, COM Exception occurs when adding a doc

    Other terms

    DI-API, COM Exception, documents, Java native interface, JNI

    Reason and Prerequisites

    DI-API 6.2 and later, JDK ver. 1.3 and later, MS VC 6.0


    When adding a document, such as a sales order, stock transfer document through Java Connector, there always is a COM Exception, saying that

    stack overflow occurs at COM side.

    It turns out to be a bug in Sun's JDK 1.3 and later. In JDK 1.3 and later, the default stack size is reduced from 1M to 256K. And the command line option -Xss<size>, which works in JDK1.2, is ignored in JDK ver. 1.3 and later. According to Sun, it will not be fixed in the future.

    How to find the stack size:

    • Use dumpbin.exe to check the original stack size

    dumpbin.exe /headers alone.exe

    One way to work around is to change the default setting in java.exe with EDITBIN.EXE provided by Microsoft VC. After changing the default stack size to 1M or above, everything works well. Here is the command line to change the default stack setting:

    EDITBIN /STACK:1048576 java.exe

    EDITBIN /STACK:1048576 javaw.exe

    Before you run this to ol, you should copy MSPDB60.DLL from:

    C:\Program Files\Microsoft Visual Studio\Common\MSDev98\Bin

    to the folder where EDITBIN is. It is required by EDITBIN.

    After running it, you can see the following message:

    Microsoft (R) COFF Binary File Editor Version 6.00.8447

    and the date of java.exe and javaw.exe has been changed.

    Then to replace the files

    • Replace java.exe and javaw.exe in 4 place or any where else it occurs.

    For example in my computer:



    C:\Program Files\Java\j2re1.4.2\bin



    If you are using some java editors, like Eclipse, it may be slightly different. Elipse uses javaw.exe instead of java.exe. So you have to change the setting in javaw.exe accordingly.

    You can find more information on Sun's developer network: You have to register as a developer first before you can read the article.

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member

      Hi Diego,

      thanks for your post, this was a nice idea, I know this issue and it fixed my earlier problem with the sales orders.

      But in this case, it does not work.

      dumpin result is


      0 DLL characteristics

      100000 size of stack reserve

      1000 size of stack commit

      100000 size of heap reserve

      1000 size of heap commit

      So do you, or anyone else ,have any further ideas?

      Tobias Seng

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.