| | | | Browse by category |
Question
I have my own IlvObjectInteractor. When using this interactor, I receive the error "can't find or create interactor nameOfInteractor." What should I do?
Answer
There are two possible causes for this: class visibility or ClassLoader issue.
Class visibility: Your class might not be visible inside the ilog.views
package. The problem generally results from the absence of a public keyword before your class description, when it has only a package visibility.
ClassLoader issue: There are two ways to influence the class loader used by ILOG JViews to load a class from CSS:
- Set the classloader of the current thread. Something like the following:
Thread.currentThread().setContextClassLoader(desiredClassLoader);
The context class loader is not set correctly during the initialization of Eclipse plugins by default; therefore you have to do it yourself. This is documented in the Eclipse FAQ at http://wiki.eclipse.org/FAQ_How_do_I_use_the_context_class_loader_in_Eclipse%3F
This context class loader is also used at other places in JViews.
This option is recommended. - Call setClassLoader on the particular IlvCSSBeans class used to interpret the CSS file.