View Opensift_151_issue.md

Problem with oc cluster up

After installing the latest (1.5.1) to /usr/bin folder, I am getting the following error, when running oc cluster up:

-- Checking container networking ... FAIL
   Error: containers cannot communicate with the OpenShift master
   Details:
     The cluster was started. However, the container networking test failed.
   Solution:
View PseudoFlatPMI.java
FlatPushMessageInformation {
// like currently:
@NotNull
private String pushApplicationId;
private String rawJsonMessage;
private String ipAddress;
private String clientIdentifier;
View config.xml
<?xml version='1.0' encoding='UTF-8'?>
<server xmlns="urn:jboss:domain:1.8">
<extensions>
<extension module="org.jboss.as.clustering.infinispan"/>
<extension module="org.jboss.as.cmp"/>
<extension module="org.jboss.as.connector"/>
<extension module="org.jboss.as.deployment-scanner"/>
<extension module="org.jboss.as.ee"/>
View Client.java
package com.example.blahapp.rest;
import net.wessendorf.kafka.cdi.SimpleKafkaProducer;
import net.wessendorf.kafka.cdi.annotation.Consumer;
import net.wessendorf.kafka.cdi.annotation.KafkaConfig;
import net.wessendorf.kafka.cdi.annotation.Producer;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
@KafkaConfig(bootstrapServers = "172.17.0.3:9092")
View JUG_MS.adoc

Script: From War to Cloud

Swarm Tool

wget https://repo1.maven.org/maven2/org/wildfly/swarm/swarmtool/2017.4.0/swarmtool-2017.4.0-standalone.jar
java -jar swarmtool-2017.4.0-standalone.jar target/javaee7-simple-sample.war
java -jar javaee7-simple-sample-swarm.jar
View gist:28cd0e7a36037dfd51573045ecd62339
mvn gpg:sign-and-deploy-file \
-Dfile=target/proxy-1.0.0-alpha.1-SNAPSHOT.jar \
-Durl=https://repository.jboss.org/nexus/content/repositories/snapshots/ \
-DpomFile=pom.xml \
-DrepositoryId=jboss-snapshots-repository
View SSL.certs.txt
09:54:13,860 INFO [com.relayrides.pushy.apns.ApnsClient] (nioEventLoopGroup-3-1) Failed to connect.: javax.net.ssl.SSLHandshakeException: error:10000438:SSL routines:OPENSSL_internal:TLSV1_ALERT_INTERNAL_ERROR
at io.netty.handler.ssl.ReferenceCountedOpenSslEngine.shutdownWithError(ReferenceCountedOpenSslEngine.java:696) [netty-handler-4.1.6.Final.jar:4.1.6.Final]
at io.netty.handler.ssl.ReferenceCountedOpenSslEngine.sslReadErrorResult(ReferenceCountedOpenSslEngine.java:899) [netty-handler-4.1.6.Final.jar:4.1.6.Final]
at io.netty.handler.ssl.ReferenceCountedOpenSslEngine.unwrap(ReferenceCountedOpenSslEngine.java:853) [netty-handler-4.1.6.Final.jar:4.1.6.Final]
at io.netty.handler.ssl.ReferenceCountedOpenSslEngine.unwrap(ReferenceCountedOpenSslEngine.java:931) [netty-handler-4.1.6.Final.jar:4.1.6.Final]
at io.netty.handler.ssl.ReferenceCountedOpenSslEngine.unwrap(ReferenceCountedOpenSslEngine.java:974) [netty-handler-4.1.6.Final.jar:4.1.6.Final]
at io.netty.handler.ssl.SslHandler.unwrap(SslHandler.java:1
View Benchmarks.txt
Benchmark (messageBodyLength) (notificationCount) (unicodeBlockName) (useTokenAuthentication) Mode Cnt Score Error Units
c.r.p.a.util.ApnsPayloadBuilderBenchmark.testBuildWithMaximumLength 512 N/A BASIC_LATIN N/A thrpt 200 253526.502 ± 3131.245 ops/s
c.r.p.a.util.ApnsPayloadBuilderBenchmark.testBuildWithMaximumLength 512 N/A CJK_UNIFIED_IDEOGRAPHS N/A thrpt 200 239955.591 ± 2218.394 ops/s
c.r.p.a.util.ApnsPayloadBuilderBenchmark.testBuildWithMaximumLength 8192 N/A BASIC_LATIN N/A thrpt 200 11112.617 ± 89.035 ops/s
c.r.p.a.util.ApnsPayloadBuilderBenchmark.testBuildWithMaximumLength 8192 N/A CJK_UNIFIED_IDEOGRAPHS N/A thrpt 200 17144.974 ± 124.183 ops/s
c.r.p.a.ApnsCl
View gist:54423188d5f5a0b7b9e9b8f88c32031a
final Future<PushNotificationResponse<SimpleApnsPushNotification>> sendNotificationFuture = apnsClient.sendNotification(pushNotification);
sendNotificationFuture.addListener(new GenericFutureListener<Future<? super PushNotificationResponse<SimpleApnsPushNotification>>>() {
@Override
public void operationComplete(Future<? super PushNotificationResponse<SimpleApnsPushNotification>> pushNotificationFutue) throws Exception {
if (pushNotificationFutue.isSuccess()) {
final PushNotificationResponse<SimpleApnsPushNotification> pushNotificationResponse =
sendNotificationFuture.get();
if (pushNotificationResponse.isAccepted()) {
View SenderWithCallBacks.java
final List<String> tokens = Arrays.asList(
"123",
"456"
);
final ApnsClient apnsClient;
{
try {
apnsClient =new ApnsClientBuilder()
.setClientCredentials(new File("/home/Matthias/jajajaj.p12"), "jaja ja")