Description:
IOT server throws the following errors few seconds after startup when patched with the latest synapse-core_2.1.7.wso2v48.jar. This is due to a missing dependency.
Caused by: java.lang.NoClassDefFoundError: com/jayway/jsonpath/Configuration$Defaults
at java.lang.Class.getDeclaredConstructors0(Native Method)
at java.lang.Class.privateGetDeclaredConstructors(Class.java:2671)
at java.lang.Class.getConstructor0(Class.java:3075)
at java.lang.Class.newInstance(Class.java:412)
at org.apache.synapse.config.xml.MediatorSerializerFinder.<init>(MediatorSerializerFinder.java:99)
at org.apache.synapse.config.xml.MediatorSerializerFinder.<clinit>(MediatorSerializerFinder.java:80)
at org.apache.synapse.config.xml.AbstractListMediatorSerializer.serializeChildren(AbstractListMediatorSerializer.java:36)
at org.apache.synapse.config.xml.SequenceMediatorSerializer.serializeAnonymousSequence(SequenceMediatorSerializer.java:46)
at org.wso2.carbon.rest.api.RestApiAdminUtils.createAnonymousSequenceElement(RestApiAdminUtils.java:140)
at org.wso2.carbon.rest.api.service.RestApiAdmin.convertApiToAPIData(RestApiAdmin.java:726)
at org.wso2.carbon.rest.api.service.RestApiAdmin.getApiByName(RestApiAdmin.java:486)
... 82 more
Caused by: java.lang.ClassNotFoundException: com.jayway.jsonpath.Configuration$Defaults cannot be found by synapse-core_2.1.7.wso2v48
at org.eclipse.osgi.internal.loader.BundleLoader.findClassInternal(BundleLoader.java:475)
at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:421)
at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:412)
at org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.loadClass(DefaultClassLoader.java:107)
at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
... 93 more
Affected Product Version:
IOT 3.3.0, IOT 3.3.1
Steps to reproduce:
Patch with the latest synapse-core_2.1.7.wso2v48.jar
Start up the server with bin/iot-server.sh
Fix:
The issue can be fixed by adding following jar to the dropins directory
Description: IOT server throws the following errors few seconds after startup when patched with the latest
synapse-core_2.1.7.wso2v48.jar
. This is due to a missing dependency.Affected Product Version: IOT 3.3.0, IOT 3.3.1
Steps to reproduce:
synapse-core_2.1.7.wso2v48.jar
bin/iot-server.sh
Fix: The issue can be fixed by adding following jar to the dropins directory