wso2 / product-iots

Welcome to the WSO2 IoT Server source code! For info on working with the WSO2 IoT Server repository and contributing code, click the link below.
http://wso2.github.io/
Apache License 2.0
183 stars 181 forks source link

IOT server throws error few seconds after startup #1904

Open ThishaniLucas opened 5 years ago

ThishaniLucas commented 5 years ago

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:

Fix: The issue can be fixed by adding following jar to the dropins directory

stale[bot] commented 5 years ago

This issue has been automatically marked as stale because it has not had recent activity.