Skip to content

Instantly share code, notes, and snippets.

View jclingan's full-sized avatar

John Clingan jclingan

View GitHub Profile
@jclingan
jclingan / gist:28786c6a13a443d052fc134d68a3548b
Last active June 10, 2016 00:08
Debezium Demo database setup copied from Christian Posta but with different database name
# In production you would almost certainly limit the replication user must be on the follower (slave) machine,
# to prevent other clients accessing the log from other machines. For example, 'replicator'@'follower.acme.com'.
#
# However, this grant is equivalent to specifying *any* hosts, which makes this easier since the docker host
# is not easily known to the Docker container. But don't do this in production.
#
GRANT REPLICATION SLAVE, REPLICATION CLIENT ON *.* TO 'replicator' IDENTIFIED BY 'replpass';
# Create the database that we'll use to populate data and watch the effect in the binlog
GRANT ALL PRIVILEGES ON ticketmonster.* TO 'mysqluser'@'%';
@jclingan
jclingan / gist:a1965edf114fcedce385
Created December 10, 2015 01:20
Sample pom fragment.
<dependency>
<groupId>org.wildfly.swarm</groupId>
<artifactId>wildfly-swarm-jaxrs</artifactId>
</dependency>
@jclingan
jclingan / gist:21151cd44786996b59cb
Created November 10, 2015 15:01
WildFly Swarm InvocationTargetException
********************************
*** Web-Client Microservice ****
********************************
java.lang.reflect.InvocationTargetException
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:497)
at org.wildfly.swarm.bootstrap.Main.main(Main.java:59)
Caused by: java.lang.NullPointerException
@jclingan
jclingan / gist:0203448007343af469a3
Created October 19, 2015 20:40
Failing booker store / hawkular integration
***************************
*** Store Microservice ****
***************************
java.lang.reflect.InvocationTargetException
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:497)
at org.wildfly.swarm.bootstrap.Main.main(Main.java:61)
Caused by: java.lang.IllegalArgumentException: newValue is null
[INFO]
[INFO] Reader: Parent ..................................... SUCCESS [ 0.124 s]
[INFO] Booker: Common Utils ............................... SUCCESS [ 3.199 s]
[INFO] Booker: Store ...................................... SUCCESS [ 5.534 s]
[INFO] Booker: Pricing .................................... SUCCESS [ 2.631 s]
[INFO] Booker: Library .................................... FAILURE [ 0.246 s]
[INFO] Booker: Web Client ................................. SKIPPED
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
@jclingan
jclingan / gist:93841d163c44879c6124
Created October 19, 2015 13:36
Booker-common issue.
Failed to execute goal on project booker-common: Could not resolve dependencies for project org.wildfly.swarm.booker:booker-common:jar:1.0.0.Alpha01-SNAPSHOT: The following artifacts could not be resolved: org.wildfly.swarm:wildfly-swarm-jaxrs:jar:1.0.0.Alpha5-SNAPSHOT, org.wildfly.swarm:wildfly-swarm-ribbon-secured:jar:1.0.0.Alpha5-SNAPSHOT, org.wildfly.swarm:wildfly-swarm-logstash:jar:1.0.0.Alpha5-SNAPSHOT: Could not find artifact org.wildfly.swarm:wildfly-swarm-jaxrs:jar:1.0.0.Alpha5-SNAPSHOT -> [Help 1]