Menu

Help

Help
2014-09-13
2014-09-15
  • Alexandre Locci Martins

    Hello

    I would like to ask help once more.
    I need to collect a set of data from a large systems.
    Recoder works very well. Perhaps, some times, it aborts the execution and
    sends to me this message:

    "
    *** 4: UnresolvedReferenceExceptionCould not resolve TypeReference
    "org.apache.bsf.BSFException(id 61163)" @20/8 in
    FILE:/home/alexandre/project_file_metric/apache-ant-1.9.3/src/main/org/apache/tools/ant/util/optional/ScriptRunner.java(14)

    "

    How can I make the recorder skip this kind of exception?
    Tank you.

    --
    Alexandre

     
  • Tobias Gutzmann

    Tobias Gutzmann - 2014-09-14

    Hi,
    you can register an error handler of your own. The easiest is to just extend DefaultErrorHandler:
    class MyErrorHandler extends DefaultErrorHandler() {
    public void modelUpdated(EventObject event) { isUpdating = false; }
    }
    MyErrorHandler meh = new MyErrorHandler();
    meh.setErrorThreshold(... desired value, in your case probably very high ...)
    serviceConfiguraiton.getProjectSettings().setErrorHandler(meh);

    Of course, much more sophisticated error handling is possible.

    Alternatively, add the referenced libraries to the path.

    Note that in the past, Recoder quite often terminated with a NullPointerException in case of unresolved references (despite a custom error handler). Those are bugs and should be reported.

    Regards,
    Tobias

     
    • Alexandre Locci Martins

      Hello Tobias

      Thank you for help me.
      Sorry, but do you suggest i add the libraries references to my Java
      CLASSPATH?
      Once more thank you.

      2014-09-14 16:02 GMT-03:00 Tobias Gutzmann tgutzmann@users.sf.net:

      Hi,
      you can register an error handler of your own. The easiest is to just
      extend DefaultErrorHandler:
      class MyErrorHandler extends DefaultErrorHandler() {
      public void modelUpdated(EventObject event) { isUpdating = false; }
      }
      MyErrorHandler meh = new MyErrorHandler();
      meh.setErrorThreshold(... desired value, in your case probably very high
      ...)
      serviceConfiguraiton.getProjectSettings().setErrorHandler(meh);

      Of course, much more sophisticated error handling is possible.

      Alternatively, add the referenced libraries to the path.

      Note that in the past, Recoder quite often terminated with a
      NullPointerException in case of unresolved references (despite a custom
      error handler). Those are bugs and should be reported.

      Regards,
      Tobias


      Help
      https://sourceforge.net/p/recoder/discussion/88904/thread/81787fee/?limit=25#0b39


      Sent from sourceforge.net because you indicated interest in
      https://sourceforge.net/p/recoder/discussion/88904/

      To unsubscribe from further messages, please visit
      https://sourceforge.net/auth/subscriptions/

      --
      Alexandre

       
  • Tobias Gutzmann

    Tobias Gutzmann - 2014-09-15

    Hi,

    Not the Java classpath, but the Recoder input path,as set with
    sc.getProjectSettings().setProperty(PropertyNames.INPUT_PATH, ...)
    Separate your source input path with either ; or : from the libraries. You can add all .jar files in a specific folder by specifying path/to/libs/*.jar

    Regards,
    Tobias

     

Log in to post a comment.