jObject stays blank

Discussion in 'Java' started by groupie, May 14, 2008.

  1. groupie

    groupie Guest

    Hi,
    Running this code in lotus notes.

    Set jSession = New JavaSession()
    Set jClass = jSession.GetClass("getCode")
    Set jObject = jClass.CreateObject


    jObject seems to remain blank when viewed in the debugger after the
    Set jObject command. Should it have a value/refence?

    Because the next call "outCode = jObject.execute(inCode)" later throws
    an error: "LS2J: Error: Null Java Object"

    I created a constructor in getCode but it didn't make any difference

    getCode() { }

    Any ideas what is happening? Thanks!
    groupie, May 14, 2008
    #1
    1. Advertising

  2. groupie

    Roedy Green Guest

    On Wed, 14 May 2008 12:10:14 -0700 (PDT), groupie
    <> wrote, quoted or indirectly quoted someone
    who said :

    > Set jSession = New JavaSession()
    > Set jClass = jSession.GetClass("getCode")
    > Set jObject = jClass.CreateObject


    This code is not Java. Whatever it is, try asking in a Lotus Notes
    newsgroup for this language.
    --

    Roedy Green Canadian Mind Products
    The Java Glossary
    http://mindprod.com
    Roedy Green, May 15, 2008
    #2
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. MP
    Replies:
    4
    Views:
    383
  2. Replies:
    10
    Views:
    6,989
  3. Vijayk
    Replies:
    12
    Views:
    7,780
    Chris Uppal
    Oct 25, 2005
  4. Tim  Wong

    C++ JNI jobject conversion

    Tim Wong, Dec 22, 2004, in forum: C++
    Replies:
    4
    Views:
    7,278
    Tim Wong
    Jan 4, 2005
  5. Philipp Kraus

    JNI generic type of jobject

    Philipp Kraus, Oct 4, 2011, in forum: Java
    Replies:
    6
    Views:
    849
    Daniel Pitts
    Oct 4, 2011
Loading...

Share This Page