Skip to content

Instantly share code, notes, and snippets.

View ANierbeck's full-sized avatar

Achim Nierbeck ANierbeck

View GitHub Profile
### Keybase proof
I hereby claim:
* I am anierbeck on github.
* I am anierbeck (https://keybase.io/anierbeck) on keybase.
* I have a public key whose fingerprint is 743D 8050 F7CF 09D9 0B48 C48D 9519 8B40 0AB0 3586
To claim this, I am signing this object:
@ANierbeck
ANierbeck / gist:def24aeb70b8c342d664
Created January 28, 2015 22:41
ApacheKarafCookBook-Test-java8
diff --git a/chapter10/chapter10-recipe1/chapter10-recipe1-simple/pom.xml b/chapter10/chapter10-recipe1/chapter10-recipe1-simple/pom.xml
index 8d61ec6..e185f6e 100644
--- a/chapter10/chapter10-recipe1/chapter10-recipe1-simple/pom.xml
+++ b/chapter10/chapter10-recipe1/chapter10-recipe1-simple/pom.xml
@@ -9,7 +9,7 @@
<artifactId>chapter10-recipe1-simple</artifactId>
<properties>
- <version.pax-exam>3.4.0</version.pax-exam>
+ <version.pax-exam>4.4.0</version.pax-exam>
[INFO] Scanning for projects...
[INFO]
[INFO] Using the builder org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder with a thread count of 1
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building Apache Karaf :: Assemblies :: Features :: Standard 4.0.0-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] --- maven-clean-plugin:2.5:clean (default-clean) @ standard ---
[INFO] Deleting /Users/anierbeck/git/karaf/assemblies/features/standard/target
-------------------------------------------------------
T E S T S
-------------------------------------------------------
Running org.apache.karaf.itests.JmsTest
[org.ops4j.pax.exam.spi.DefaultExamSystem] : Pax Exam System (Version: 4.4.0) created.
[org.ops4j.pax.exam.junit.impl.ProbeRunner] : creating PaxExam runner for class org.apache.karaf.itests.JmsTest
[org.ops4j.pax.exam.junit.impl.ProbeRunner] : running test class org.apache.karaf.itests.JmsTest
[org.ops4j.pax.exam.karaf.container.internal.KarafTestContainer] : Wait for test container to finish its initialization [ RelativeTimeout value = 180000 ]
[org.ops4j.pax.exam.rbc.client.RemoteBundleContextClient] : Waiting for remote bundle context.. on 21000 name: 0508fc68-b25c-42c6-83fb-fd831c6ccf1a timout: [ RelativeTimeout value = 180000 ]
__ __ ____
[org.ops4j.pax.exam.spi.DefaultExamSystem] : Pax Exam System (Version: 4.3.0) created.
[org.ops4j.store.intern.TemporaryStore] : Storage Area is /var/folders/bk/q7dfssfx1tn7ttlfn4nw49980000gn/T/1421783829604-0
[org.ops4j.pax.exam.junit.impl.ProbeRunner] : creating PaxExam runner for class org.apache.karaf.itests.JmsTest
[org.ops4j.pax.exam.spi.PaxExamRuntime] : Found TestContainerFactory: org.ops4j.pax.exam.karaf.container.internal.KarafTestContainerFactory
[org.ops4j.pax.exam.spi.DefaultExamSystem] : creating default probe
[org.ops4j.pax.exam.spi.reactors.ReactorManager] : User defined probe hook found: probeConfiguration
[org.ops4j.pax.exam.spi.intern.DefaultTestAddress] : NEW ADDRESS= PaxExam-34d2555f-0f8c-45fa-9860-924aaefc233f parent=null root=[TestAddress:PaxExam-34d2555f-0f8c-45fa-9860-924aaefc233f root:PaxExam-34d2555f-0f8c-45fa-9860-924aaefc233f] args=[Ljava.lang.Object;@1e2423e2
[org.ops4j.pax.exam.spi.intern.DefaultTestAddress] : NEW ADDRESS= PaxExam-14568c82-7104-4b03-9b83-890a6f84be3e parent=null
@ANierbeck
ANierbeck / gist:eaf7c6d05c1d74a40f2a
Created January 14, 2015 20:48
exception when testing aws
HTTP ERROR 500
Problem accessing /agwar/hello. Reason:
Server Error
Caused by:
java.lang.ExceptionInInitializerError
at com.amazonaws.util.VersionInfoUtils.userAgent(VersionInfoUtils.java:139)
at com.amazonaws.util.VersionInfoUtils.initializeUserAgent(VersionInfoUtils.java:134)
@ANierbeck
ANierbeck / gist:1befb2cb04c441ff3310
Created January 14, 2015 19:38
logs for cellar-kubernetes
This file has been truncated, but you can view the full file.
Jan 14, 2015 8:29:25 PM org.apache.karaf.main.Main launch
INFORMATION: Installing and starting initial bundles
Jan 14, 2015 8:29:25 PM org.apache.karaf.main.Main launch
INFORMATION: All initial bundles installed and set to start
Jan 14, 2015 8:29:25 PM org.apache.karaf.main.lock.SimpleFileLock lock
INFORMATION: Trying to lock /Users/anierbeck/Development/JavaUsergroup/apache-karaf-3.0.3-SNAPSHOT/lock
Jan 14, 2015 8:29:25 PM org.apache.karaf.main.lock.SimpleFileLock lock
INFORMATION: Lock acquired
Jan 14, 2015 8:29:25 PM org.apache.karaf.main.Main$KarafLockCallback lockAquired
INFORMATION: Lock acquired. Setting startlevel to 100
@ANierbeck
ANierbeck / gist:ec27838a728f1e29defc
Created January 6, 2015 12:35
Diff for easier understanding of changes on Karaf for CQL-Shell completion
diff --git a/shell/core/pom.xml b/shell/core/pom.xml
index c7089b6..7622da2 100644
--- a/shell/core/pom.xml
+++ b/shell/core/pom.xml
@@ -151,7 +151,7 @@
org.apache.felix.utils.extender,
org.apache.felix.utils.manifest,
org.apache.felix.gogo.api,
- org.apache.felix.gogo.runtime,
+ org.apache.felix.gogo.runtime;-split-package:=merge-first,
2014-10-29 15:07:11,009 | WARN | ies.transaction) | context | 72 - org.apache.aries.jpa.container.context - 1.0.1 | The TransactionSynchronizationRegistry used to manage persistence contexts is no longer available. Managed persistence contexts will no longer be able to integrate with JTA transactions, and will behave as if no there is no transaction context at all times until a new TransactionSynchronizationRegistry is available. Applications using managed persistence contexts may not work correctly until a new JTA Transaction services implementation is available.
2014-10-29 15:07:11,017 | ERROR | ies.transaction) | configadmin | 6 - org.apache.felix.configadmin - 1.8.0 | [org.osgi.service.cm.ManagedService, id=653, bundle=67/mvn:org.apache.aries.transaction/org.apache.aries.transaction.manager/1.1.0]: Updating configuration org.apache.aries.transaction caused a problem: null
org.osgi.service.cm.ConfigurationException: null : null
at org.apache.aries.transactio
19:46:08,880 | INFO | apache.karaf.features.internal.FeaturesServiceImpl | Installing feature exam 4.1.0
SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder".
SLF4J: Defaulting to no-operation (NOP) logger implementation
SLF4J: See http://www.slf4j.org/codes.html#StaticLoggerBinder for further details.
ERROR: Bundle org.apache.karaf.features.command [35] Error starting mvn:org.apache.karaf.features/org.apache.karaf.features.command/3.0.2-SNAPSHOT (org.osgi.framework.BundleException: Unresolved constraint in bundle org.apache.karaf.features.command [35]: Unable to resolve 35.0: missing requirement [35.0] osgi.wiring.package; (&(osgi.wiring.package=org.apache.karaf.shell.commands)(version>=3.0.0)(!(version>=4.0.0))) [caused by: Unable to resolve 36.0: missing requirement [36.0] osgi.wiring.package; (&(osgi.wiring.package=org.apache.felix.gogo.api)(version>=0.12.0)(!(version>=1.0.0)))])
org.osgi.framework.BundleException: Unresolved constraint in bundle org.apache.karaf.features.command [35]: Unable