Skip to content

Instantly share code, notes, and snippets.

View dejanb's full-sized avatar

Dejan Bosanac dejanb

View GitHub Profile
@dejanb
dejanb / mesh-test.md
Last active September 30, 2024 16:55
Test Bluetooth mesh

start clean mesh (first terminal):


$ rm -rf ~/.config/meshcfg/config_db.json
$ sudo rm -rf /var/lib/bluetooth/mesh
$ sudo mkdir /var/lib/bluetooth/mesh
$ sudo /usr/libexec/bluetooth/bluetooth-meshd -nd --debug

provisioner (second terminal):

#!/usr/bin/env bash
git clone https://github.com/json-c/json-c.git
mkdir json-c-build
cd json-c-build
sudo apt install cmake
cmake ../json-c
make
sudo make install
diff --git a/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/karaf/ArtemisFeatureTest.java b/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/karaf/ArtemisFeatureTest.java
index 75a12a8..6b2e01e 100644
--- a/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/karaf/ArtemisFeatureTest.java
+++ b/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/karaf/ArtemisFeatureTest.java
@@ -23,6 +23,7 @@ import org.apache.karaf.shell.api.console.Session;
import org.apache.karaf.shell.api.console.SessionFactory;
import org.apache.log4j.Logger;
import org.apache.qpid.jms.JmsConnectionFactory;
+import org.junit.Assert;
import org.junit.Test;
diff --git a/esb/esb-assembly/jboss-fuse-medium/src/main/filtered-resources/etc/org.apache.karaf.features.cfg b/esb/esb-assembly/jboss-fuse-medium/src/main/filt
index a1196f3..691e316 100644
--- a/esb/esb-assembly/jboss-fuse-medium/src/main/filtered-resources/etc/org.apache.karaf.features.cfg
+++ b/esb/esb-assembly/jboss-fuse-medium/src/main/filtered-resources/etc/org.apache.karaf.features.cfg
@@ -24,7 +24,7 @@ featuresRepositories=\
mvn:org.apache.karaf.assemblies.features/enterprise/${karaf-version}/xml/features,\
mvn:org.apache.cxf.karaf/apache-cxf/${cxf-version}/xml/features,\
mvn:org.apache.camel.karaf/apache-camel/${camel-version}/xml/features,\
- mvn:org.apache.activemq/activemq-karaf/${activemq-version}/xml/features,\
+ mvn:org.apache.activemq/activemq-karaf/${activemq-version}/xml/features-core,\
diff --git a/fabric/fabric8-karaf/src/main/resources/etc/org.ops4j.pax.url.mvn.cfg b/fabric/fabric8-karaf/src/main/resources/etc/org.ops4j.pax.url.mvn.cfg
index 6cc51f2..15b9173 100644
--- a/fabric/fabric8-karaf/src/main/resources/etc/org.ops4j.pax.url.mvn.cfg
+++ b/fabric/fabric8-karaf/src/main/resources/etc/org.ops4j.pax.url.mvn.cfg
@@ -91,7 +91,7 @@ org.ops4j.pax.url.mvn.defaultRepositories=file:${karaf.home}/${karaf.default.rep
org.ops4j.pax.url.mvn.repositories= \
http://repo1.maven.org/maven2@id=maven.central.repo, \
https://repository.jboss.org/nexus/content/repositories/fs-releases@id=fusesource.release.repo, \
- https://repository.jboss.org/nexus/content/repositories/fs-ea@id=fusesource.ea.repo, \
+ https://repository.jboss.org/nexus/content/repositories/ea@id=fusesource.ea.repo, \
diff --git a/activemq-broker/src/main/java/org/apache/activemq/broker/region/Queue.java b/activemq-broker/src/main/java/org/apache/activemq/broker/region/Queue.
index 0ae4463..f903090 100755
--- a/activemq-broker/src/main/java/org/apache/activemq/broker/region/Queue.java
+++ b/activemq-broker/src/main/java/org/apache/activemq/broker/region/Queue.java
@@ -17,18 +17,7 @@
package org.apache.activemq.broker.region;
import java.io.IOException;
-import java.util.ArrayList;
-import java.util.Collection;
"Stop for ActiveMQ Broker: testBroker" prio=5 tid=0x00007f8341614000 nid=0x4fc03 waiting for monitor entry [0x0000000135a27000]
java.lang.Thread.State: BLOCKED (on object monitor)
at org.fusesource.mq.fabric.ActiveMQServiceFactory$ClusteredConfiguration.org$fusesource$mq$fabric$ActiveMQServiceFactory$ClusteredConfiguration$$interruptAndWaitForStart(ActiveMQServiceFactory.scala:499)
- waiting to lock <0x0000000111cb2640> (a org.fusesource.mq.fabric.ActiveMQServiceFactory$ClusteredConfiguration)
at org.fusesource.mq.fabric.ActiveMQServiceFactory$ClusteredConfiguration$$anon$3.run(ActiveMQServiceFactory.scala:379)
Locked ownable synchronizers:
- None
java.lang.AssertionError: no such object in table
at org.junit.Assert.fail(Assert.java:88)
at org.ops4j.pax.exam.junit.JUnit4TestRunner$3.evaluate(JUnit4TestRunner.java:293)
at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:271)
at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:70)
at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:50)
at org.junit.runners.ParentRunner$3.run(ParentRunner.java:238)
at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:63)
at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:236)
at org.junit.runners.ParentRunner.access$000(ParentRunner.java:53)
val filter = FrameworkUtil.createFilter("(&(objectClass=org.osgi.service.url.URLStreamHandlerService)(url.handler.protocol=profile))");
val urlHandler = new ServiceTracker[URLStreamHandlerService,URLStreamHandlerService](bundleContext, filter, null)
urlHandler.open()
FuseFabric:karaf@root> io.fabric8.fabric-zookeeper[org.apache.zookeeper.ClientCnxn] : from pool-103-thread-1-SendThread(192.168.1.100:2181)
java.lang.NoClassDefFoundError: org/apache/zookeeper/server/ZooTrace
at org.apache.zookeeper.ClientCnxn$SendThread.run(ClientCnxn.java:1115)
Caused by: java.lang.ClassNotFoundException: Unable to load class 'org.apache.zookeeper.server.ZooTrace' because the bundle wiring for io.fabric8.fabric-zookeeper is no longer valid.
at org.apache.felix.framework.BundleWiringImpl.findClassOrResourceByDelegation(BundleWiringImpl.java:1494)
at org.apache.felix.framework.BundleWiringImpl.access$400(BundleWiringImpl.java:75)
at org.apache.felix.framework.BundleWiringImpl$BundleClassLoader.loadClass(BundleWiringImpl.java:1955)
at java.lang.ClassLoader.loadClass(ClassLoader.java:356)
... 1 more