Skip to content

Instantly share code, notes, and snippets.

Achim Nierbeck ANierbeck

Block or report user

Report or block ANierbeck

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View bundle-refresh-hell
Bundles to refresh:
com.spicter.runtime.log-fragment/1.4.0.SNAPSHOT (Wired to org.ops4j.pax.logging.pax-logging-log4j2/1.9.1 which is being refreshed)
org.apache.aries.jmx.core/1.1.7 (Should be wired to: org.ops4j.pax.useradmin.service/2.0.0.SNAPSHOT (through [org.apache.aries.jmx.core/1.1.7] osgi.wiring.package; filter:="(&(osgi.wiring.package=org.osgi.service.useradmin)(version>=1.1.0)(!(version>=2.0.0)))"; resolution:=optional))
org.apache.geronimo.specs.geronimo-jaspic_1.0_spec/1.1.0 (Should be wired to: org.apache.geronimo.specs.geronimo-osgi-registry/1.1.0 (through [org.apache.geronimo.specs.geronimo-jaspic_1.0_spec [18](R 18.0)] osgi.wiring.package; (osgi.wiring.package=org.apache.geronimo.osgi.registry.api)))
org.apache.karaf.bundle.core/4.1.1 (Wired to org.apache.karaf.shell.core/4.1.1 which is being refreshed)
org.apache.karaf.config.core/4.1.1 (Wired to org.apache.karaf.shell.core/4.1.1 which is being refreshed)
org.apache.karaf.deployer.kar/4.1.1 (Wired to org.apache.kara
View gist:29add97ca60b442391ae6beee1ce4d6f
private String substFinalName(String finalname) {
final String markerVarBeg = "${";
final String markerVarEnd = "}";
boolean startsWithVariable = finalname.startsWith(markerVarBeg) && finalname.contains(markerVarEnd);
if (startsWithVariable) {
String marker = finalname.substring(markerVarBeg.length(), finalname.indexOf(markerVarEnd) - 1);
switch (marker) {
case "karaf.base":
View gist:a8868e1742904f669ea5af13437421e8
[org.ops4j.pax.swissbox.extender.BundleWatcher] : Creating bundle watcher with scanner [org.ops4j.pax.swissbox.extender.BundleManifestScanner@7f482563]...
[org.ops4j.pax.swissbox.extender.BundleWatcher] : Scanning bundle [org.apache.felix.framework]
[org.ops4j.pax.swissbox.extender.BundleWatcher] : Scanning bundle [org.ops4j.pax.exam]
[org.ops4j.pax.swissbox.extender.BundleWatcher] : Scanning bundle [org.ops4j.pax.exam.inject]
[org.ops4j.pax.swissbox.extender.BundleWatcher] : Scanning bundle [org.ops4j.pax.exam.extender.service]
[org.ops4j.pax.swissbox.extender.BundleWatcher] : Scanning bundle [osgi.cmpn]
org.ops4j.pax.logging.pax-logging-api[org.ops4j.pax.logging.internal.Activator] : Enabling SLF4J API support.
org.ops4j.pax.logging.pax-logging-api[org.ops4j.pax.logging.internal.Activator] : Enabling Jakarta Commons Logging API support.
org.ops4j.pax.logging.pax-logging-api[org.ops4j.pax.logging.internal.Activator] : Enabling Log4J API support.
org.ops4j.pax.logging.pax-logging-api[org.ops4j.pax.logging.int
View ElasticSearch-Rest-Appender
2016-10-20 06:56:11,796 | INFO | pool-6-thread-1 | AbstractJestClient | 19 - org.apache.karaf.decanter.appender.elasticsearch.rest - 1.2.1.SNAPSHOT | Setting server pool to a list of 1 servers: [http://though-shall-not-know-its-name:80]
2016-10-20 06:56:11,798 | INFO | pool-6-thread-1 | JestClientFactory | 19 - org.apache.karaf.decanter.appender.elasticsearch.rest - 1.2.1.SNAPSHOT | Using multi thread/connection supporting pooling connection manager
2016-10-20 06:56:12,606 | INFO | pool-26-thread-1 | CommandExtension | 40 - org.apache.karaf.shell.core - 4.0.7 | Registering commands for bundle org.apache.karaf.shell.ssh/4.0.7
2016-10-20 06:56:12,700 | ERROR | 10a-fdbc3ad7da15 | rest | 19 - org.apache.karaf.decanter.appender.elasticsearch.rest - 1.2.1.SNAPSHOT | FrameworkEvent ERROR - org.apache.karaf.decanter.appender.elasticsearch.rest
org.osgi.framework.ServiceException: Exception in org.apache.felix.scr.impl.manager.SingleComponen
View gist:bbf5b01b1ac67975e783eac541ba7690
<installedFeatures>
<feature>wrapper</feature>
</installedFeatures>
<startupFeatures>
<feature>eventadmin</feature>
</startupFeatures>
<bootFeatures>
<feature>framework</feature>
<feature>jaas</feature>
<feature>shell</feature>
View gist:074abc7a99a97d4df13ddc33c34302ad
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<features xmlns="http://karaf.apache.org/xmlns/features/v1.4.0" name="Decanter-Feature-0.1.0-SNAPSHOT">
<repository>mvn:org.apache.karaf.decanter/apache-karaf-decanter/1.2.1-SNAPSHOT/xml/features</repository>
<repository>mvn:org.apache.karaf.features/standard/4.0.8-SNAPSHOT/xml/features</repository>
<feature name="Decanter-Feature" description="Decanter-Feature" version="0.1.0.SNAPSHOT">
<details>Decanter Runtime to Monitor Cassandra and Kafka via JMX</details>
<configfile finalname="/etc/org.apache.karaf.decanter.appender.elasticsearch.rest.cfg">mvn:de.nierbeck.karaf.decanter/Decanter-Module/0.1.0-SNAPSHOT/cfg</configfile>
<feature prerequisite="false" dependency="true">scr</feature>
<feature prerequisite="false" dependency="true">decanter-appender-elasticsearch-rest-core</feature>
<feature prerequisite="false" dependency="true">decanter-collector-jmx-core</feature>
View gist:1b292c837da928a4b24f92347da69292
karaf@root()> la
START LEVEL 100 , List Threshold: 0
ID | State | Lvl | Version | Name
----------------------------------------------------------------------------------------------------
0 | Active | 0 | 5.4.0 | System Bundle
1 | Active | 8 | 1.8.5 | OPS4J Pax Logging - API
2 | Resolved | 8 | 1.8.5 | OPS4J Pax Logging - Service
3 | Active | 80 | 0.1.0.SNAPSHOT | Monitoring-Module
4 | Active | 10 | 1.8.8 | Apache Felix Configuration Admin Service
5 | Active | 11 | 3.5.4 | Apache Felix File Install
View gist:7aee58cd69a60699c3b5a3b6d7bb5672
karaf@root()> org.apache.karaf.features.core[org.apache.karaf.features.internal.service.BootFeaturesInstaller] : Error installing boot features
org.apache.karaf.features.internal.util.MultiException: Error restarting bundles
at org.apache.karaf.features.internal.service.Deployer.deploy(Deployer.java:854)
at org.apache.karaf.features.internal.service.FeaturesServiceImpl.doProvision(FeaturesServiceImpl.java:1176)
at org.apache.karaf.features.internal.service.FeaturesServiceImpl$1.call(FeaturesServiceImpl.java:1074)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
at java.lang.Thread.run(Thread.java:745)
View gist:a71e9234e23181e5ff1277ab9af6ea5d
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<features name="${project.artifactId}-${project.version}" xmlns="http://karaf.apache.org/xmlns/features/v1.3.0" >
<repository>mvn:org.apache.karaf.features/standard/${karaf.version}/xml/features</repository>
<repository>mvn:org.apache.karaf.decanter/apache-karaf-decanter/${decanter.version}/xml/features</repository>
<feature name="${project.artifactId}" version="${project.version}">
<feature dependency="true">scr</feature>
<feature dependency="true">log</feature>
<feature>decanter-appender-elasticsearch-rest</feature>
View gist:2b0b41095599cba7a88adb720411743f
<dependencies>
<dependency>
<groupId>org.apache.karaf.features</groupId>
<artifactId>framework</artifactId>
<type>kar</type>
<version>${karaf.version}</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>${project.groupId}</groupId>
You can’t perform that action at this time.