Troubleshooting Issues during Validation
You might come across the following issues when validating ActiveMatrix BusinessWorks™ Plug-in for MDM for BusinessWorks Container Edition:
Issue | Resolution |
---|---|
When the container is not connected to a network, the following error is displayed: Connection refused |
Run the following command with --network options:
docker run --network host -i bwpluginmdmbwce_1.0.0 |
Applications for the REST activities failed to start with the following error: <CausedBy> javax.xml.parsers.FactoryConfigurationError: Provider for class javax.xml.parsers.DocumentBuilderFactory cannot be created <CausedBy> java.lang.RuntimeException: Provider for class javax.xml.parsers.DocumentBuilderFactory cannot be created
|
In the runtime activity code, add the following code:
@Override public void execute(N input, ProcessContext<N> processContext, AsyncActivityController asyncActivityController)throws ActivityFault{ ClassLoader startingClassLoader = Thread.currentThread().getContextClassLoader(); Thread.currentThread().setContextClassLoader(this.getClass().getClassLoader()); .... } |