Skip to content

Instantly share code, notes, and snippets.

{
"$schema":"http://json-schema.org/draft-03/schema#",
"type":"object",
"properties":{
"id":{
"type":"string"
},
"version":{
"type":"number"
},

Keybase proof

I hereby claim:

  • I am garyhodgson on github.
  • I am garyhodgson (https://keybase.io/garyhodgson) on keybase.
  • I have a public key whose fingerprint is B0A7 8FB7 3BF6 3282 FE4A E862 26D2 5FD3 1317 6D47

To claim this, I am signing this object:

@garyhodgson
garyhodgson / examplejob.yml
Created August 21, 2014 18:00
rundeck bug report
- id: 8c9ea3c2-4906-4bf6-83e6-dcb26b813dc6
project: project1
loglevel: INFO
sequence:
keepgoing: false
strategy: node-first
commands:
- type: localexec
nodeStep: true
configuration:
@garyhodgson
garyhodgson / Echo.java
Created September 30, 2014 12:07
Fabric8 Property Update Issue
package com.garyhodgson.test.echofabric8profile;
public class Echo {
public static void main(String[] args) {
long i = 0;
String msg = (args.length > 0)?args[0]:"Nothing.";
while (true) {
@garyhodgson
garyhodgson / gist:caace00902b267dcfee8
Created October 4, 2014 12:31
fabric8_profile_update_stacktrace
2014-10-04 12:16:19,163 | INFO | qtp608669472-190 | DefaultPullPushPolicy | ? ? | 74 - io.fabric8.fabric-git - 1.2.0.SNAPSHOT | Pushing last change to: http://vagrant-ubuntu-precise-64:8181/git/fabric/
2014-10-04 12:16:19,195 | INFO | qtp608669472-526 | FabricGitServlet | ? ? | 101 - io.fabric8.fabric-git-server - 1.2.0.SNAPSHOT | GitHttp service res=HTTP/1.1 200
Expires: Fri, 01 Jan 1980 00:00:00 GMT
Pragma: no-cache
Cache-Control: no-cache, max-age=0, must-revalidate
Content-Type: application/x-git-receive-pack-result
2014-10-04 12:16:19,199 | INFO | qtp608669472-190 | DefaultPullPushPolicy | ? ? | 74 - io.fabric8.fabric-git - 1.2.0.SNAPSHOT | Push result: [accepted=2,rejected=0,error=null]
2014-10-04 12:16:19,199 | INFO | qtp608669472-526 | FabricGitServlet | ? ? | 101 - io.fabric8.fabric-git-server - 1.2.0.SNAPSH
@garyhodgson
garyhodgson / mvn_commands.txt
Created October 4, 2014 15:00
fabric8_deploy_hang
$ mvn io.fabric8:fabric8-maven-plugin:1.2.0-SNAPSHOT:deploy -Dfabric8.jolokiaUrl=http://vagrant-ubuntu-precise-64:8181/jolokia -Dfabric8.profile=com.garyhodgson.test-echo
[INFO] Scanning for projects...
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building EchoFabric8Profile 1.0.0-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] >>> fabric8-maven-plugin:1.2.0-SNAPSHOT:deploy (default-cli) > install @ EchoFabric8Profile >>>
[INFO]
@garyhodgson
garyhodgson / fabric8.jstack
Last active August 29, 2015 14:07
fabric8_high_cpu_after_container_start
2014-10-04 15:49:23
Full thread dump Java HotSpot(TM) 64-Bit Server VM (24.65-b04 mixed mode):
"qtp756190949-287" prio=10 tid=0x00007f724406b800 nid=0xec2 waiting on condition [0x00007f721574a000]
java.lang.Thread.State: TIMED_WAITING (parking)
at sun.misc.Unsafe.park(Native Method)
- parking to wait for <0x00000000e1aeeb88> (a java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject)
at java.util.concurrent.locks.LockSupport.parkNanos(LockSupport.java:226)
at java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject.awaitNanos(AbstractQueuedSynchronizer.java:2082)
at org.eclipse.jetty.util.BlockingArrayQueue.poll(BlockingArrayQueue.java:342)
@garyhodgson
garyhodgson / hs_err_pid3776.log
Created October 29, 2014 21:35
hs_err_pid3776.log
#
# A fatal error has been detected by the Java Runtime Environment:
#
# SIGSEGV (0xb) at pc=0x00007f097d3abe60, pid=3776, tid=139678432782080
#
# JRE version: Java(TM) SE Runtime Environment (7.0_67-b01) (build 1.7.0_67-b01)
# Java VM: Java HotSpot(TM) 64-Bit Server VM (24.65-b04 mixed mode linux-amd64 compressed oops)
# Problematic frame:
# C [ld-linux-x86-64.so.2+0xbe60] _dl_rtld_di_serinfo+0x2f40
#
@garyhodgson
garyhodgson / gist:ee63e6c54dd679e7d151
Created November 16, 2014 16:50
fabric8v2_pod_start_failure
===== attempting to create pod on host: http://localhost:8585/
Updating pod io.fabric8.kubernetes.api.model.PodSchema@29786bc1[kind=Pod,id=fabric8QuickstartJavaCamelSpring-1,creationTimestamp=<null>,selfLink=<null>,desiredState=io.fabric8.kubernetes.api.model.DesiredState@32002c64[manifest=io.fabric8.kubernetes.api.model.Manifest@58cc7f86[version=<null>,containers=[io.fabric8.kubernetes.api.model.ManifestContainer@5fdc353b[name=fabric8QuickstartJavaCamelSpring-1-fabric8-quickstart-java-camel-spring,image=${env.DOCKER_REGISTRY}/fabric8/quickstart-java-camel-spring:2.0-SNAPSHOT,command=[],workingDir=<null>,volumeMounts=[],ports=[io.fabric8.kubernetes.api.model.Port@4c67154[name=<null>,containerPort=8778,hostPort=<null>,protocol=<null>,additionalProperties={}]],env=[],additionalProperties={}]],volumes=[],additionalProperties={}],status=<null>,host=<null>,podIP=<null>,info=<null>,additionalProperties={}],currentState=io.fabric8.kubernetes.api.model.CurrentState@37160ea4[manifest=<null>,status=<null>,host=localhos
@garyhodgson
garyhodgson / NPEstacktrace.txt
Last active August 29, 2015 14:21
camel-cdi troubles
ERROR: Bundle org.ops4j.pax.cdi.extender [128] EventDispatcher: Error during dispatch. (org.ops4j.lang.Ops4jException: org.jboss.weld.exceptions.DeploymentException: Exception List with 1 exceptions:
Exception 0 :
org.jboss.weld.exceptions.WeldException: WELD-000049: Unable to invoke void org.apache.camel.cdi.CdiCamelContext.postConstruct() on CamelContext(simple-context)
at org.jboss.weld.injection.producer.DefaultLifecycleCallbackInvoker.invokeMethods(DefaultLifecycleCallbackInvoker.java:100)
at org.jboss.weld.injection.producer.DefaultLifecycleCallbackInvoker.postConstruct(DefaultLifecycleCallbackInvoker.java:81)
at org.jboss.weld.injection.producer.BasicInjectionTarget.postConstruct(BasicInjectionTarget.java:114)
at org.jboss.weld.injection.producer.BeanInjectionTarget.postConstruct(BeanInjectionTarget.java:70)
at org.jboss.weld.bean.ManagedBean.create(ManagedBean.java:162)
at org.jboss.weld.context.AbstractContext.get(AbstractContext.java:96)
at org