webMethods

webMethods

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
  • 1.  com.wm.app.b2b.server. ServiceException

    Posted Mon May 15, 2006 02:07 PM

    Hi,

    I am getting this error while running a java service

    com.wm.app.b2b.server.ServiceException: [ISS.0026.9102] Service ‘Bitterroot:LogData’ is not operational. To run this service, first recompile the Java source.

    Please help.

    Thanks and Regards,
    Anupama Ashok :confused:


    #Integration-Server-and-ESB
    #webMethods
    #Flow-and-Java-services


  • 2.  RE: com.wm.app.b2b.server. ServiceException

    Posted Mon May 15, 2006 02:43 PM

    Anupama,

    To understand this problem, please let me know few more things :

    1. What is this ‘Bitterrot:LogData’? [Inbuilt service/User created]
    2. Is it editable? If yes then is it editted recently?
    3. It may happen that the resource has been not available to use. Is it?

    Thanks
    Paras


    #Flow-and-Java-services
    #webMethods
    #Integration-Server-and-ESB


  • 3.  RE: com.wm.app.b2b.server. ServiceException

    Posted Mon May 15, 2006 03:06 PM

    Paras,

    It is a user defined java service…unable to run it

    I am pasting the code below:

    [highlight=java]

    // input from pipeline

    IDataHashCursor pipelineCursor = pipeline.getHashCursor();
    pipelineCursor.first( “GSG_ack_number” );
    String GSG_ack_number = (String) pipelineCursor.getValue();
    pipelineCursor.first( “transaction_number” );
    String transaction_number =(String) pipelineCursor.getValue();
    pipelineCursor.destroy();
    // Build log file directory
    // save in package’s pub directory
    String Curr_Dir = System.getProperty(“user.dir”);
    String File_Sep = System.getProperty(“file.separator”);
    String This_Package =
    Service.getPackageName ( Values.use( pipeline ) );
    String Pub_Dir = Curr_Dir + File_Sep +
    “packages” + File_Sep + This_Package + File_Sep + “pub”;
    String Log_File = Pub_Dir + File_Sep + “log.txt”;
    // Date for log file
    Date currentDate = new Date();
    SimpleDateFormat sdf;
    sdf = new SimpleDateFormat( “yyy-MMM-dd hh:mm:ss zzz” );
    String Date_String = sdf.format( currentDate );
    // Write the file
    try{
    FileWriter log = new FileWriter( Log_File, true );
    log.write( Date_String );
    log.write( ", " );
    log.write( transaction_number );
    log.write( ", " );
    log.write( GSG_ack_number );
    log.write( System.getProperty(“line.separator”) );
    log.close();
    } catch( IOException e) {
    System.out.println( e.toString() );
    }
    [/highlight]


    #webMethods
    #Flow-and-Java-services
    #Integration-Server-and-ESB


  • 4.  RE: com.wm.app.b2b.server. ServiceException

    Posted Mon May 15, 2006 03:20 PM

    Bitterroot is the fictional company used in the Developer 4.6 Tutorial. Just edit the java service in question by adding a space or comment. When you save the java service the underlying class will be rebuilt and recompiled and your service should run once again.

    Great job on finding and working through the tutorial. It’s a bit long in the tooth now, but the core Flow language has changed very little so this tutorial continues to be a great way for new webMethods IS developers to learn the product.

    Mark


    #webMethods
    #Flow-and-Java-services
    #Integration-Server-and-ESB


  • 5.  RE: com.wm.app.b2b.server. ServiceException

    Posted Tue May 16, 2006 05:56 AM

    Anupama,

    From the code you 've written, it is clear that there is no error in the code.
    As mentioned by Mark, just recompile your code. It should work.

    Regards,
    Paras


    #Integration-Server-and-ESB
    #Flow-and-Java-services
    #webMethods


  • 6.  RE: com.wm.app.b2b.server. ServiceException

    Posted Wed April 21, 2010 02:19 PM

    #webMethods
    #Flow-and-Java-services
    #Integration-Server-and-ESB