Hi Charitha, Put the jar [1] in repository/components/lib directory.
The jar in the plugins directory has some OSGI header issue. Putting it in lib should resolve it. best [1] http://mvnrepository.com/artifact/org.xerial.snappy/snappy-java/1.1.1.7 On Wed, Mar 16, 2016 at 10:59 AM, Charitha Goonetilleke <[email protected]> wrote: > Hi Sachith, > > Thanks for the quick response. org.xerial.snappy.snappy-java_1.1.1.7.jar > is already there and there is no any other versions exist. > > > On Wed, Mar 16, 2016 at 10:54 AM, Sachith Withana <[email protected]> > wrote: > >> Hi Charitha, >> >> This occurs due to a version mismatch in the Snappy jar. >> >> Can you manually copy the jar to the location below and check? >> Make sure it's snappy 1.1.1.7 jar. >> >> repository/components/plugins/org.xerial.snappy.snappy-java_1.1.1.7.jar >> >> Thanks, >> Sachith >> >> On Wed, Mar 16, 2016 at 10:48 AM, Charitha Goonetilleke < >> [email protected]> wrote: >> >>> Hi All, >>> >>> When we are trying to run IoT Server on windows, we are getting this >>> exception on windows related to SnappyInputStream class which used in DAS. >>> However, this error is not exist on top of Linux and Mac. >>> >>> Is this a know issue on windows? Please kindly let us know if there any >>> known work around to fix this. >>> >>> Exception in thread "dag-scheduler-event-loop" >>> java.lang.NoClassDefFoundError: org/xerial/snappy/SnappyInputStream >>> at java.lang.Class.forName0(Native Method) >>> at java.lang.Class.forName(Class.java:348) >>> at >>> org.apache.spark.io.CompressionCodec$.createCodec(CompressionCodec.scala:66) >>> at >>> org.apache.spark.io.CompressionCodec$.createCodec(CompressionCodec.scala:60) >>> at org.apache.spark.broadcast.TorrentBroadcast.org >>> $apache$spark$broadcast$TorrentBroadcast$$setConf(TorrentBroadcast.scala:73) >>> at >>> org.apache.spark.broadcast.TorrentBroadcast.<init>(TorrentBroadcast.scala:80) >>> at >>> org.apache.spark.broadcast.TorrentBroadcastFactory.newBroadcast(TorrentBroadcastFactory.scala:34) >>> at >>> org.apache.spark.broadcast.BroadcastManager.newBroadcast(BroadcastManager.scala:62) >>> at >>> org.apache.spark.SparkContext.broadcast(SparkContext.scala:1292) >>> at org.apache.spark.scheduler.DAGScheduler.org >>> $apache$spark$scheduler$DAGScheduler$$submitMissingTasks(DAGScheduler.scala:874) >>> at org.apache.spark.scheduler.DAGScheduler.org >>> $apache$spark$scheduler$DAGScheduler$$submitStage(DAGScheduler.scala:815) >>> at >>> org.apache.spark.scheduler.DAGScheduler.handleJobSubmitted(DAGScheduler.scala:799) >>> at >>> org.apache.spark.scheduler.DAGSchedulerEventProcessLoop.onReceive(DAGScheduler.scala:1429) >>> at >>> org.apache.spark.scheduler.DAGSchedulerEventProcessLoop.onReceive(DAGScheduler.scala:1421) >>> at >>> org.apache.spark.util.EventLoop$$anon$1.run(EventLoop.scala:48) >>> Caused by: java.lang.ClassNotFoundException: >>> org.xerial.snappy.SnappyInputStream cannot be found by >>> spark-core_2.10_1.4.2.wso2v1 >>> at >>> org.eclipse.osgi.internal.loader.BundleLoader.findClassInternal(BundleLoader.java:501) >>> 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) >>> ... 15 more >>> >>> -- >>> *Charitha Goonetilleke* >>> Software Engineer >>> WSO2 Inc.; http://wso2.com >>> lean.enterprise.middleware >>> >>> mobile: +94 77 751 3669 <%2B94777513669> >>> Twitter:@CharithaWs <https://twitter.com/CharithaWs>, fb: charithag >>> <https://www.facebook.com/charithag>, linkedin: charithag >>> <http://www.linkedin.com/in/charithag> >>> >> >> >> >> -- >> Sachith Withana >> Software Engineer; WSO2 Inc.; http://wso2.com >> E-mail: sachith AT wso2.com >> M: +94715518127 >> Linked-In: <http://goog_416592669> >> https://lk.linkedin.com/in/sachithwithana >> > > > > -- > *Charitha Goonetilleke* > Software Engineer > WSO2 Inc.; http://wso2.com > lean.enterprise.middleware > > mobile: +94 77 751 3669 <%2B94777513669> > Twitter:@CharithaWs <https://twitter.com/CharithaWs>, fb: charithag > <https://www.facebook.com/charithag>, linkedin: charithag > <http://www.linkedin.com/in/charithag> > -- *Niranda Perera* Software Engineer, WSO2 Inc. Mobile: +94-71-554-8430 Twitter: @n1r44 <https://twitter.com/N1R44> https://pythagoreanscript.wordpress.com/
_______________________________________________ Dev mailing list [email protected] http://wso2.org/cgi-bin/mailman/listinfo/dev
