tjake/Solandra — Issue #137: Runtime Exception: Could not initialize class org.xerial.snappy.Snappy
Author: blinder
Created: 2011-10-10 22:08:11+00:00
State: open

Something very odd, when trying to write to solandra. We get this exception:

Could not initialize class org.xerial.snappy.Snappy java.lang.NoClassDefFoundError: Could not initialize class
org.xerial.snappy.Snappy at lucandra.CassandraUtils.compress(CassandraUtils.java:771)	at
lucandra.IndexWriter.toBytesUsingThrift(IndexWriter.java:620)	at
lucandra.IndexWriter.addDocument(IndexWriter.java:328)	at
solandra.SolandraIndexWriter.addDoc(SolandraIndexWriter.java:265)	at
org.apache.solr.update.processor.RunUpdateProcessor.processAdd(RunUpdateProcessorFactory.java:61)	at
org.apache.solr.handler.XMLLoader.processUpdate(XMLLoader.java:147)	at
org.apache.solr.handler.XMLLoader.load(XMLLoader.java:77)	at
org.apache.solr.handler.ContentStreamHandlerBase.handleRequestBody(ContentStreamHandlerBase.java:67)	at
org.apache.solr.handler.RequestHandlerBase.handleRequest(RequestHandlerBase.java:129)	at
org.apache.solr.core.SolrCore.execute(SolrCore.java:1368)	at
org.apache.solr.servlet.SolrDispatchFilter.execute(SolrDispatchFilter.java:356)	at
solandra.SolandraDispatchFilter.execute(SolandraDispatchFilter.java:171)	at
org.apache.solr.servlet.SolrDispatchFilter.doFilter(SolrDispatchFilter.java:252)	at
solandra.SolandraDispatchFilter.doFilter(SolandraDispatchFilter.java:137)	at
org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1157)	at
org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:388)	at
org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:182)	at
org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:765)	at
org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:152)	at
org.mortbay.jetty.Server.handle(Server.java:326)	at
org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:536)	at
org.mortbay.jetty.HttpConnection$RequestHandler.content(HttpConnection.java:930)	at
org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:834)	at
org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:218)	at
org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:405)	at org.mortbay.jetty

it doesn't appear to do this on reads (querying)

Also the snappy-java-1.0.3-rc2.jar is in cassandra's lib directory.