Hitachi Vantara Pentaho Community Forums
Results 1 to 7 of 7

Thread: Suddenly kettle crashes

  1. #1
    Join Date
    Jul 2007
    Posts
    10

    Question Suddenly kettle crashes

    Hi all,

    I had my kettle running on my machine without any issues on a unix machine I did not make any new installation of Java or Kettle any how when I try to execute the kettle job which was running before suddenly gives me an error as follows.

    Exception in thread "main" java.lang.NullPointerException
    at be.ibridge.kettle.job.Job.endProcessing(Job.java:526)
    at be.ibridge.kettle.kitchen.Kitchen.main(Kitchen.java:337)

    How will I be able to fix this and does anyone know why this happens?

    Thnx

    Sayy

  2. #2
    Join Date
    May 2006
    Posts
    4,882

    Default

    Probably something changed... it seems your bug has to do with logging, is the filesystem full or so?

    Regards,
    Sven

  3. #3
    Join Date
    Jul 2007
    Posts
    10

    Default

    Thnx sboden

    The filesystem has been full. It is not an issue within kettle itself.

    Sayy

  4. #4
    Join Date
    Jul 2007
    Posts
    10

    Unhappy

    Although the filesystem was cleared the error is still there; when the job is executed the error appears again . Do you know how to get it back running again.


    thnx

    Sayy

  5. #5
    Join Date
    May 2006
    Posts
    4,882

    Default

    It's still something environmental... the line in the code is where it tries to write the "end message" to a log file.... Have a look at your log files... are they still on a full filesystem, unwritable, ...

    Try e.g. with logging switched off, to see whether that works.

    Regards,
    Sven

  6. #6
    Join Date
    Jul 2007
    Posts
    10

    Thumbs up

    The cause of the problem has been the fact that the mysql table used for the JOB_LOG has become corrupted.

    Any how Nipuna found that the relevant kettle coding does not have any exception handling, which made our task much harder.

    Original code:

    if (jobMeta.isLogfieldUsed())
    {
    log_string = stringAppender.getBuffer().append(Const.CR+"END"+Const.CR).toString();
    log.removeAppender(stringAppender);
    }

    proposed modified code by Nipuna:

    try{
    log_string =
    stringAppender.getBuffer().append(Const.CR+"END"+Const.CR).toString();
    log.removeAppender(stringAppender);
    }catch(Exception e){
    e.printStackTrace();
    }

    Thank you everyone,


    Sayy





  7. #7
    Join Date
    May 2006
    Posts
    4,882

    Default

    Also make a tracker for it at http://jira.pentaho.org/browse/PDI . And it's probably better to throw an exception than to just print a stacktrace.

    Regards,
    Sven

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Privacy Policy | Legal Notices | Safe Harbor Privacy Policy

Copyright © 2005 - 2019 Hitachi Vantara Corporation. All Rights Reserved.