Skip to content

Instantly share code, notes, and snippets.

diff --git a/pom.xml b/pom.xml
new file mode 100644
index 0000000..59dd4bc
--- /dev/null
+++ b/pom.xml
@@ -0,0 +1,43 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
+ <modelVersion>4.0.0</modelVersion>
+ <groupId>com.garyhodgson.example</groupId>
@garyhodgson
garyhodgson / narayana_attempt
Created November 30, 2017 22:25
Standalone Camel JTA with Narayana attempt - maven output
--- camel-maven-plugin:2.20.0:run (default-cli) @ camel-example-cdi-standalone-jta ---
You can skip tests from the command line using: mvn camel:run -Dmaven.test.skip=true
camel-cdi detected on classpath
Using org.apache.camel.cdi.Main to initiate a CamelContext
Starting Camel ...
23:22:20,290 org.apache.camel.cdi.Main.main() [INFO ] o.j.w.Version.<clinit> WELD-000900: 2.4.4 (Final)
Nov 30, 2017 11:22:20 PM org.apache.deltaspike.core.util.ProjectStageProducer initProjectStage
INFO: Computed the following DeltaSpike ProjectStage: Production
23:22:20,490 org.apache.camel.cdi.Main.main() [INFO ] o.j.w.Bootstrap.startContainer WELD-000101: Transactional services not available. Injection of @Inject UserTransaction not available. Transactional observers will be invoked synchronously.
23:22:20,689 org.apache.camel.cdi.Main.main() [INFO ] o.j.w.Event.checkRequiredTypeAnnotations WELD-000411: Observer method [BackedAnnotatedMethod] protected org.apache.deltasp
@garyhodgson
garyhodgson / Startup.java
Created March 6, 2017 22:25
Example Fluent Java DSL Builders
import static com.garyhodgson.cameljpatest.Startup.ActiveMQBuilder.activemq;
import static com.garyhodgson.cameljpatest.Startup.TimerBuilder.timer;
import org.apache.activemq.camel.component.ActiveMQComponent;
import static org.apache.activemq.camel.component.ActiveMQComponent.activeMQComponent;
import org.apache.activemq.camel.component.ActiveMQEndpoint;
import org.apache.activemq.command.ActiveMQQueue;
import org.apache.camel.CamelContext;
import org.apache.camel.Endpoint;
import org.apache.camel.builder.RouteBuilder;
@garyhodgson
garyhodgson / pom.xml
Created April 17, 2016 11:32
mm-releaser-example pom.xml
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>com.garyhodgson.example</groupId>
<artifactId>mm-releaser-example</artifactId>
<version>1.0-SNAPSHOT</version>
<packaging>pom</packaging>
<build>
@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
@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 / 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 / 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 / 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 / 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