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.
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
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
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.
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
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
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
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
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:
--
Alexandre
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