IBM webMethods Hybrid Integration

IBM webMethods Hybrid Integration

Join this online group to communicate across IBM product users and experts by sharing advice and best practices with peers and staying up to date regarding product enhancements.

 View Only
Expand all | Collapse all

Context Initialization Error from Java client

  • 1.  Context Initialization Error from Java client

    Posted Tue May 21, 2002 10:23 AM

    I am writing a Java client to invoke a webMethods service. The first lines are:
    Context context = null;
    context = new Context();

    And then the context is used to connect to the server. This client code was generated by webMethods.

    I get the following error on the “context = new Context();” line: Cannot create context: java.lang.ExceptionInInitializerError: java/lang/RuntimeException

    I have the com.wm.app.b2b.client.Context class imported in the code.
    Does anyone know why I cannot create the context?

    Thanks,
    Rumana


    #Integration-Server-and-ESB
    #webMethods
    #webMethods-General


  • 2.  RE: Context Initialization Error from Java client

    Posted Wed June 19, 2002 01:17 PM

    two things:

    1. import all the classes using “client.*”
    2. you should probably be using TContext, not Context. check out the java API reference for the client classes to see sample code for using TContext.

    hope that helps,

    rob


    #webMethods-General
    #Integration-Server-and-ESB
    #webMethods