{"action":"closed","issue":{"url":"https://api.github.com/repos/ANierbeck/Karaf-Cassandra/issues/16","labels_url":"https://api.github.com/repos/ANierbeck/Karaf-Cassandra/issues/16/labels{/name}","comments_url":"https://api.github.com/repos/ANierbeck/Karaf-Cassandra/issues/16/comments","events_url":"https://api.github.com/repos/ANierbeck/Karaf-Cassandra/issues/16/events","html_url":"https://github.com/ANierbeck/Karaf-Cassandra/issues/16","id":124622188,"number":16,"title":"Shutdown exceptions","user":{"login":"briantopping","id":158115,"avatar_url":"https://avatars.githubusercontent.com/u/158115?v=3","gravatar_id":"","url":"https://api.github.com/users/briantopping","html_url":"https://github.com/briantopping","followers_url":"https://api.github.com/users/briantopping/followers","following_url":"https://api.github.com/users/briantopping/following{/other_user}","gists_url":"https://api.github.com/users/briantopping/gists{/gist_id}","starred_url":"https://api.github.com/users/briantopping/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/briantopping/subscriptions","organizations_url":"https://api.github.com/users/briantopping/orgs","repos_url":"https://api.github.com/users/briantopping/repos","events_url":"https://api.github.com/users/briantopping/events{/privacy}","received_events_url":"https://api.github.com/users/briantopping/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2016-01-03T01:20:23Z","updated_at":"2016-01-03T21:11:33Z","closed_at":"2016-01-03T21:11:33Z","body":"Not sure what's going on here, thought I would make a note of it. I'm very curious to the solution if it was easy to resolve.\r\n\r\nWhen shutting down, I've started getting a long list of exceptions due to Cassandra losing dependencies:\r\n\r\n```\r\nKaraf-Cassandra-Embedded[org.apache.cassandra.service.CassandraDaemon] : Exception in thread Thread[nioEventLoopGroup-2-5,10,Configuration Admin Service]\r\nKaraf-Cassandra-Embedded[org.apache.cassandra.service.CassandraDaemon] : Exception in thread Thread[nioEventLoopGroup-2-1,10,Configuration Admin Service]\r\njava.lang.NoClassDefFoundError: io/netty/util/concurrent/DefaultPromise$2\r\n\tat io.netty.util.concurrent.DefaultPromise.notifyListeners(DefaultPromise.java:589)\r\n\tat io.netty.util.concurrent.DefaultPromise.setSuccess(DefaultPromise.java:397)\r\n\tat io.netty.util.concurrent.SingleThreadEventExecutor$2.run(SingleThreadEventExecutor.java:150)\r\n\tat io.netty.util.concurrent.DefaultThreadFactory$DefaultRunnableDecorator.run(DefaultThreadFactory.java:137)\r\n\tat java.lang.Thread.run(Thread.java:745)\r\nCaused by: java.lang.ClassNotFoundException: Unable to load class 'io.netty.util.concurrent.DefaultPromise$2' because the bundle wiring for io.netty.common is no longer valid.\r\n\tat org.apache.felix.framework.BundleWiringImpl.findClassOrResourceByDelegation(BundleWiringImpl.java:1539)\r\n\tat org.apache.felix.framework.BundleWiringImpl.access$400(BundleWiringImpl.java:79)\r\n\tat org.apache.felix.framework.BundleWiringImpl$BundleClassLoader.loadClass(BundleWiringImpl.java:2018)\r\n\tat java.lang.ClassLoader.loadClass(ClassLoader.java:357)\r\n\t... 5 more\r\nKaraf-Cassandra-Embedded[org.apache.cassandra.service.CassandraDaemon] : Exception in thread Thread[nioEventLoopGroup-2-2,10,Configuration Admin Service]\r\njava.lang.NoClassDefFoundError: io/netty/util/concurrent/DefaultPromise$2\r\n\tat io.netty.util.concurrent.DefaultPromise.notifyListeners(DefaultPromise.java:589)\r\n\tat io.netty.util.concurrent.DefaultPromise.setSuccess(DefaultPromise.java:397)\r\n\tat io.netty.util.concurrent.SingleThreadEventExecutor$2.run(SingleThreadEventExecutor.java:150)\r\nException: java.lang.NoClassDefFoundError thrown from the UncaughtExceptionHandler in thread \"nioEventLoopGroup-2-5\"\r\n\r\n\tat io.netty.util.concurrent.DefaultThreadFactory$DefaultRunnableDecorator.run(DefaultThreadFactory.java:137)\r\n\tat java.lang.Thread.run(Thread.java:745)\r\njava.lang.NoClassDefFoundError: io/netty/util/concurrent/DefaultPromise$2\r\n\r\nException: java.lang.NoClassDefFoundError thrown from the UncaughtExceptionHandler in thread \"nioEventLoopGroup-2-1\"\r\n\tat io.netty.util.concurrent.DefaultPromise.notifyListeners(DefaultPromise.java:589)\r\n\tat io.netty.util.concurrent.DefaultPromise.setSuccess(DefaultPromise.java:397)\r\n\tat io.netty.util.concurrent.SingleThreadEventExecutor$2.run(SingleThreadEventExecutor.java:150)\r\n\tat io.netty.util.concurrent.DefaultThreadFactory$DefaultRunnableDecorator.run(DefaultThreadFactory.java:137)\r\n\tat java.lang.Thread.run(Thread.java:745)\r\n\r\nException: java.lang.NoClassDefFoundError thrown from the UncaughtExceptionHandler in thread \"nioEventLoopGroup-2-2\"\r\nKaraf-Cassandra-Embedded[org.apache.cassandra.service.CassandraDaemon] : Exception in thread Thread[nioEventLoopGroup-2-4,10,Configuration Admin Service]\r\njava.lang.NoClassDefFoundError: io/netty/util/concurrent/DefaultPromise$2\r\n\tat io.netty.util.concurrent.DefaultPromise.notifyListeners(DefaultPromise.java:589)\r\n\tat io.netty.util.concurrent.DefaultPromise.setSuccess(DefaultPromise.java:397)\r\n\tat io.netty.util.concurrent.SingleThreadEventExecutor$2.run(SingleThreadEventExecutor.java:150)\r\n\tat io.netty.util.concurrent.DefaultThreadFactory$DefaultRunnableDecorator.run(DefaultThreadFactory.java:137)\r\n\tat java.lang.Thread.run(Thread.java:745)\r\n\r\nException: java.lang.NoClassDefFoundError thrown from the UncaughtExceptionHandler in thread \"nioEventLoopGroup-2-4\"\r\nKaraf-Cassandra-Embedded[org.apache.cassandra.service.CassandraDaemon] : Exception in thread Thread[nioEventLoopGroup-2-3,10,Configuration Admin Service]\r\njava.lang.NoClassDefFoundError: io/netty/util/concurrent/DefaultPromise$2\r\n\tat io.netty.util.concurrent.DefaultPromise.notifyListeners(DefaultPromise.java:589)\r\n\tat io.netty.util.concurrent.DefaultPromise.setSuccess(DefaultPromise.java:397)\r\n\tat io.netty.util.concurrent.SingleThreadEventExecutor$2.run(SingleThreadEventExecutor.java:150)\r\n\tat io.netty.util.concurrent.DefaultThreadFactory$DefaultRunnableDecorator.run(DefaultThreadFactory.java:137)\r\n\tat java.lang.Thread.run(Thread.java:745)\r\n\r\nException: java.lang.NoClassDefFoundError thrown from the UncaughtExceptionHandler in thread \"nioEventLoopGroup-2-3\"\r\nKaraf-Cassandra-Embedded[org.apache.cassandra.service.CassandraDaemon] : Exception in thread Thread[nioEventLoopGroup-2-13,10,Configuration Admin Service]\r\njava.lang.NoClassDefFoundError: io/netty/util/concurrent/DefaultPromise$2\r\n\tat io.netty.util.concurrent.DefaultPromise.notifyListeners(DefaultPromise.java:589)\r\n\tat io.netty.util.concurrent.DefaultPromise.setSuccess(DefaultPromise.java:397)\r\n\tat io.netty.util.concurrent.SingleThreadEventExecutor$2.run(SingleThreadEventExecutor.java:150)\r\n\tat io.netty.util.concurrent.DefaultThreadFactory$DefaultRunnableDecorator.run(DefaultThreadFactory.java:137)\r\n\tat java.lang.Thread.run(Thread.java:745)\r\n\r\nException: java.lang.NoClassDefFoundError thrown from the UncaughtExceptionHandler in thread \"nioEventLoopGroup-2-13\"\r\nKaraf-Cassandra-Embedded[org.apache.cassandra.service.CassandraDaemon] : Exception in thread Thread[nioEventLoopGroup-2-7,10,Configuration Admin Service]\r\njava.lang.NoClassDefFoundError: io/netty/util/concurrent/DefaultPromise$2\r\n\tat io.netty.util.concurrent.DefaultPromise.notifyListeners(DefaultPromise.java:589)\r\n\tat io.netty.util.concurrent.DefaultPromise.setSuccess(DefaultPromise.java:397)\r\n\tat io.netty.util.concurrent.SingleThreadEventExecutor$2.run(SingleThreadEventExecutor.java:150)\r\n\tat io.netty.util.concurrent.DefaultThreadFactory$DefaultRunnableDecorator.run(DefaultThreadFactory.java:137)\r\n\tat java.lang.Thread.run(Thread.java:745)\r\n\r\nException: java.lang.NoClassDefFoundError thrown from the UncaughtExceptionHandler in thread \"nioEventLoopGroup-2-7\"\r\nKaraf-Cassandra-Embedded[org.apache.cassandra.service.CassandraDaemon] : Exception in thread Thread[nioEventLoopGroup-2-11,10,Configuration Admin Service]\r\njava.lang.NoClassDefFoundError: io/netty/util/concurrent/DefaultPromise$2\r\n\tat io.netty.util.concurrent.DefaultPromise.notifyListeners(DefaultPromise.java:589)\r\n\tat io.netty.util.concurrent.DefaultPromise.setSuccess(DefaultPromise.java:397)\r\n\tat io.netty.util.concurrent.SingleThreadEventExecutor$2.run(SingleThreadEventExecutor.java:150)\r\n\tat io.netty.util.concurrent.DefaultThreadFactory$DefaultRunnableDecorator.run(DefaultThreadFactory.java:137)\r\n\tat java.lang.Thread.run(Thread.java:745)\r\n\r\nException: java.lang.NoClassDefFoundError thrown from the UncaughtExceptionHandler in thread \"nioEventLoopGroup-2-11\"\r\nKaraf-Cassandra-Embedded[org.apache.cassandra.service.CassandraDaemon] : Exception in thread Thread[nioEventLoopGroup-2-8,10,Configuration Admin Service]\r\njava.lang.NoClassDefFoundError: io/netty/util/concurrent/DefaultPromise$2\r\n\tat io.netty.util.concurrent.DefaultPromise.notifyListeners(DefaultPromise.java:589)\r\n\tat io.netty.util.concurrent.DefaultPromise.setSuccess(DefaultPromise.java:397)\r\n\tat io.netty.util.concurrent.SingleThreadEventExecutor$2.run(SingleThreadEventExecutor.java:150)\r\n\tat io.netty.util.concurrent.DefaultThreadFactory$DefaultRunnableDecorator.run(DefaultThreadFactory.java:137)\r\n\tat java.lang.Thread.run(Thread.java:745)\r\n\r\nException: java.lang.NoClassDefFoundError thrown from the UncaughtExceptionHandler in thread \"nioEventLoopGroup-2-8\"\r\nKaraf-Cassandra-Embedded[org.apache.cassandra.service.CassandraDaemon] : Exception in thread Thread[nioEventLoopGroup-2-15,10,Configuration Admin Service]\r\njava.lang.NoClassDefFoundError: io/netty/util/concurrent/DefaultPromise$2\r\n\tat io.netty.util.concurrent.DefaultPromise.notifyListeners(DefaultPromise.java:589)\r\n\tat io.netty.util.concurrent.DefaultPromise.setSuccess(DefaultPromise.java:397)\r\n\tat io.netty.util.concurrent.SingleThreadEventExecutor$2.run(SingleThreadEventExecutor.java:150)\r\n\tat io.netty.util.concurrent.DefaultThreadFactory$DefaultRunnableDecorator.run(DefaultThreadFactory.java:137)\r\n\tat java.lang.Thread.run(Thread.java:745)\r\n\r\nException: java.lang.NoClassDefFoundError thrown from the UncaughtExceptionHandler in thread \"nioEventLoopGroup-2-15\"\r\nKaraf-Cassandra-Embedded[org.apache.cassandra.service.CassandraDaemon] : Exception in thread Thread[nioEventLoopGroup-2-9,10,Configuration Admin Service]\r\njava.lang.NoClassDefFoundError: io/netty/util/concurrent/DefaultPromise$2\r\n\tat io.netty.util.concurrent.DefaultPromise.notifyListeners(DefaultPromise.java:589)\r\n\tat io.netty.util.concurrent.DefaultPromise.setSuccess(DefaultPromise.java:397)\r\n\tat io.netty.util.concurrent.SingleThreadEventExecutor$2.run(SingleThreadEventExecutor.java:150)\r\n\tat io.netty.util.concurrent.DefaultThreadFactory$DefaultRunnableDecorator.run(DefaultThreadFactory.java:137)\r\n\tat java.lang.Thread.run(Thread.java:745)\r\n\r\nException: java.lang.NoClassDefFoundError thrown from the UncaughtExceptionHandler in thread \"nioEventLoopGroup-2-9\"\r\nKaraf-Cassandra-Embedded[org.apache.cassandra.service.CassandraDaemon] : Exception in thread Thread[nioEventLoopGroup-2-16,10,Configuration Admin Service]\r\njava.lang.NoClassDefFoundError: io/netty/util/concurrent/DefaultPromise$2\r\n\tat io.netty.util.concurrent.DefaultPromise.notifyListeners(DefaultPromise.java:589)\r\n\tat io.netty.util.concurrent.DefaultPromise.setSuccess(DefaultPromise.java:397)\r\n\tat io.netty.util.concurrent.SingleThreadEventExecutor$2.run(SingleThreadEventExecutor.java:150)\r\n\tat io.netty.util.concurrent.DefaultThreadFactory$DefaultRunnableDecorator.run(DefaultThreadFactory.java:137)\r\n\tat java.lang.Thread.run(Thread.java:745)\r\n\r\nException: java.lang.NoClassDefFoundError thrown from the UncaughtExceptionHandler in thread \"nioEventLoopGroup-2-16\"\r\nKaraf-Cassandra-Embedded[org.apache.cassandra.service.CassandraDaemon] : Exception in thread Thread[nioEventLoopGroup-2-6,10,Configuration Admin Service]\r\njava.lang.NoClassDefFoundError: io/netty/util/concurrent/DefaultPromise$2\r\n\tat io.netty.util.concurrent.DefaultPromise.notifyListeners(DefaultPromise.java:589)\r\n\tat io.netty.util.concurrent.DefaultPromise.setSuccess(DefaultPromise.java:397)\r\n\tat io.netty.util.concurrent.SingleThreadEventExecutor$2.run(SingleThreadEventExecutor.java:150)\r\n\tat io.netty.util.concurrent.DefaultThreadFactory$DefaultRunnableDecorator.run(DefaultThreadFactory.java:137)\r\n\tat java.lang.Thread.run(Thread.java:745)\r\n\r\nException: java.lang.NoClassDefFoundError thrown from the UncaughtExceptionHandler in thread \"nioEventLoopGroup-2-6\"\r\nKaraf-Cassandra-Embedded[org.apache.cassandra.service.CassandraDaemon] : Exception in thread Thread[nioEventLoopGroup-2-14,10,Configuration Admin Service]\r\njava.lang.NoClassDefFoundError: io/netty/util/concurrent/DefaultPromise$2\r\n\tat io.netty.util.concurrent.DefaultPromise.notifyListeners(DefaultPromise.java:589)\r\n\tat io.netty.util.concurrent.DefaultPromise.setSuccess(DefaultPromise.java:397)\r\n\tat io.netty.util.concurrent.SingleThreadEventExecutor$2.run(SingleThreadEventExecutor.java:150)\r\n\tat io.netty.util.concurrent.DefaultThreadFactory$DefaultRunnableDecorator.run(DefaultThreadFactory.java:137)\r\n\tat java.lang.Thread.run(Thread.java:745)\r\n\r\nException: java.lang.NoClassDefFoundError thrown from the UncaughtExceptionHandler in thread \"nioEventLoopGroup-2-14\"\r\nKaraf-Cassandra-Embedded[org.apache.cassandra.service.CassandraDaemon] : Exception in thread Thread[nioEventLoopGroup-2-12,10,Configuration Admin Service]\r\njava.lang.NoClassDefFoundError: io/netty/util/concurrent/DefaultPromise$2\r\n\tat io.netty.util.concurrent.DefaultPromise.notifyListeners(DefaultPromise.java:589)\r\n\tat io.netty.util.concurrent.DefaultPromise.setSuccess(DefaultPromise.java:397)\r\n\tat io.netty.util.concurrent.SingleThreadEventExecutor$2.run(SingleThreadEventExecutor.java:150)\r\n\tat io.netty.util.concurrent.DefaultThreadFactory$DefaultRunnableDecorator.run(DefaultThreadFactory.java:137)\r\n\tat java.lang.Thread.run(Thread.java:745)\r\n\r\nException: java.lang.NoClassDefFoundError thrown from the UncaughtExceptionHandler in thread \"nioEventLoopGroup-2-12\"\r\nKaraf-Cassandra-Embedded[org.apache.cassandra.service.CassandraDaemon] : Exception in thread Thread[nioEventLoopGroup-2-10,10,Configuration Admin Service]\r\njava.lang.NoClassDefFoundError: io/netty/util/concurrent/DefaultPromise$2\r\n\tat io.netty.util.concurrent.DefaultPromise.notifyListeners(DefaultPromise.java:589)\r\n\tat io.netty.util.concurrent.DefaultPromise.setSuccess(DefaultPromise.java:397)\r\n\tat io.netty.util.concurrent.SingleThreadEventExecutor$2.run(SingleThreadEventExecutor.java:150)\r\n\tat io.netty.util.concurrent.DefaultThreadFactory$DefaultRunnableDecorator.run(DefaultThreadFactory.java:137)\r\n\tat java.lang.Thread.run(Thread.java:745)\r\n\r\nException: java.lang.NoClassDefFoundError thrown from the UncaughtExceptionHandler in thread \"nioEventLoopGroup-2-10\"\r\nKaraf-Cassandra-Embedded[org.apache.cassandra.service.CassandraDaemon] : Exception in thread Thread[StorageServiceShutdownHook,5,Configuration Admin Service]\r\njava.lang.NoClassDefFoundError: org/apache/cassandra/db/commitlog/CompressedSegment$1\r\n\tat org.apache.cassandra.db.commitlog.CommitLogSegmentManager.awaitTermination(CommitLogSegmentManager.java:555)\r\n\tat org.apache.cassandra.db.commitlog.CommitLog.shutdownBlocking(CommitLog.java:410)\r\n\tat org.apache.cassandra.service.StorageService$1.runMayThrow(StorageService.java:674)\r\n\tat org.apache.cassandra.utils.WrappedRunnable.run(WrappedRunnable.java:28)\r\n\tat java.lang.Thread.run(Thread.java:745)\r\nCaused by: java.lang.ClassNotFoundException: Unable to load class 'org.apache.cassandra.db.commitlog.CompressedSegment$1' because the bundle wiring for Karaf-Cassandra-Embedded is no longer valid.\r\n\tat org.apache.felix.framework.BundleWiringImpl.findClassOrResourceByDelegation(BundleWiringImpl.java:1539)\r\n\tat org.apache.felix.framework.BundleWiringImpl.access$400(BundleWiringImpl.java:79)\r\n\tat org.apache.felix.framework.BundleWiringImpl$BundleClassLoader.loadClass(BundleWiringImpl.java:2018)\r\n\tat java.lang.ClassLoader.loadClass(ClassLoader.java:357)\r\n\t... 5 more\r\n\r\nException: java.lang.NoClassDefFoundError thrown from the UncaughtExceptionHandler in thread \"StorageServiceShutdownHook\"\r\n```\r\n\r\nThis is with a virgin Karaf 4.0.3, Java 1.8.0_51, Karaf-Cassandra 1.0.1. There doesn't seem to be anything particularly unique about the `feature.xml` that I am using:\r\n\r\n```\r\n<?xml version=\"1.0\" encoding=\"UTF-8\" standalone=\"yes\"?>\r\n<features xmlns=\"http://karaf.apache.org/xmlns/features/v1.3.0\" name=\"net.mauswerks.trading.journal\">\r\n    <repository>mvn:de.nierbeck.cassandra/Karaf-Cassandra-Feature/1.0.1/xml/features</repository>\r\n    <feature name=\"net.mauswerks.trading.journal\" description=\"net.mauswerks.trading.journal\" version=\"0.1.0.SNAPSHOT\">\r\n        <config name=\"de.nierbeck.cassandra.embedded\" append=\"false\">\r\n            cassandra.yaml = ${karaf.base}/etc/net.mauswerks.trading.journal.cassandra.yaml\r\n        </config>\r\n        <configfile finalname=\"etc/net.mauswerks.trading.journal.cassandra.yaml\">mvn:net.mauswerks.trading/net.mauswerks.trading.journal/0.1-SNAPSHOT/yaml/config</configfile>\r\n        <feature version=\"1.0.1\" prerequisite=\"false\" dependency=\"false\">Karaf-Cassandra-Embedded</feature>\r\n    </feature>\r\n</features>\r\n```\r\n\r\nThe Cassandra config only has changes to ports. \r\n\r\nIs this something that's resolvable with something like https://karaf.apache.org/manual/latest/users-guide/provisioning.html#Dependency ?\r\n\r\nNo worries if this is a diversion... Happy new year! :)"}}