Skip to content

Instantly share code, notes, and snippets.

View oscerd's full-sized avatar

Andrea Cosentino oscerd

View GitHub Profile
// if there is a body to send as data
if (exchange.getIn().getBody() != null) {
String contentType = ExchangeHelper.getContentType(exchange);
if (contentType != null) {
httpExchange.setRequestContentType(contentType);
}
if (contentType != null && HttpConstants.CONTENT_TYPE_JAVA_SERIALIZED_OBJECT.equals(contentType)) {
if (getEndpoint().getComponent().isAllowJavaSerializedObject() || getEndpoint().isTransferException()) {
// serialized java object
Serializable obj = exchange.getIn().getMandatoryBody(Serializable.class);
/**
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
Starting Cassandra on 172.17.0.11
CASSANDRA_RPC_ADDRESS 0.0.0.0
CASSANDRA_NUM_TOKENS 32
CASSANDRA_CLUSTER_NAME 'Test Cluster'
CASSANDRA_LISTEN_ADDRESS 172.17.0.11
CASSANDRA_BROADCAST_ADDRESS 172.17.0.11
CASSANDRA_BROADCAST_RPC_ADDRESS 172.17.0.11
OpenJDK 64-Bit Server VM warning: Cannot open file /var/log/cassandra/gc.log due to No such file or directory
INFO 14:26:24 Configuration location: file:/etc/cassandra/cassandra.yaml
[-Xloggc:/var/log/cassandra/gc.log, -ea,
-XX:+UseThreadPriorities,
-XX:ThreadPriorityPolicy=42,
-XX:+HeapDumpOnOutOfMemoryError,
-Xss256k, -XX:StringTableSize=1000003,
-XX:+AlwaysPreTouch,
-XX:-UseBiasedLocking,
-XX:+UseTLAB, -XX:+ResizeTLAB,
-XX:+PerfDisableSharedMem,
-Djava.net.preferIPv4Stack=true,
99c474ab1e1cf1351d5a960"
I0804 14:54:27.641772 1785 docker_manager.go:2288] checking backoff for container "nexus" in pod "nexus-7lyyd"
I0804 14:54:27.641964 1785 docker_manager.go:2302] Back-off 1m20s restarting failed container=nexus pod=nexus-7lyyd_default(63f01519-5a49-11e6-ba4c-ba318675d404)
E0804 14:54:27.642049 1785 pod_workers.go:183] Error syncing pod 63f01519-5a49-11e6-ba4c-ba318675d404, skipping: failed to "StartContainer" for "nexus" with CrashLoopBackOff: "Back-off 1m20s restarting failed container=nexus pod=nexus-7lyyd_default(63f01519-5a49-11e6-ba4c-ba318675d404)"
I0804 14:54:28.513577 1785 reconciler.go:253] MountVolume operation started for volume "kubernetes.io/secret/cassandra-token-6r6ge" (spec.Name: "cassandra-token-6r6ge") to pod "8ddca8c6-5a52-11e6-ba4c-ba318675d404" (UID: "8ddca8c6-5a52-11e6-ba4c-ba318675d404"). Volume is already mounted to pod, but remount was requested.
I0804 14:54:28.513660 1785 reconciler.go:253] MountVolume operation started for volume "kubernetes.i
Name: cassandra-2050013177-fhogn
Namespace: default
Node: minikubevm/10.0.2.15
Start Time: Thu, 04 Aug 2016 16:48:49 +0200
Labels: app=cassandra
group=io.fabric8.ipaas.apps
pod-template-hash=2050013177
project=cassandra
provider=fabric8
version=2.2-SNAPSHOT
@oscerd
oscerd / dummy
Last active August 5, 2016 09:26
<?xml version="1.0" encoding="UTF-8"?>
<!--
Copyright 2005-2016 Red Hat, Inc.
Red Hat licenses this file to you under the Apache License, version
2.0 (the "License"); you may not use this file except in compliance
with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
<?xml version="1.0" encoding="UTF-8"?>
<blueprint xmlns="http://www.osgi.org/xmlns/blueprint/v1.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.osgi.org/xmlns/blueprint/v1.0.0 http://www.osgi.org/xmlns/blueprint/v1.0.0/blueprint.xsd
http://camel.apache.org/schema/blueprint http://camel.apache.org/schema/blueprint/camel-blueprint.xsd">
<camelContext id="sample-context"
xmlns="http://camel.apache.org/schema/blueprint">
<route id="sample-route">
<from id="_from1" uri="timer:foo?period=60000" />
<loadBalance inheritErrorHandler="false">
SerializationContext serCtx = ProtoStreamMarshaller.getSerializationContext(cacheManager);
ProtoSchemaBuilder protoSchemaBuilder = new ProtoSchemaBuilder();
Class<?> marshaller = config.getClass(InfinispanSinkConnectorConfig.INFINISPAN_PROTO_MARSHALLER_CLASS_CONF);
String memoSchemaFile = null;
try {
memoSchemaFile = protoSchemaBuilder
.fileName("file.proto")
.packageName("test")
.addClass(marshaller)
.build(serCtx);
2017-08-02 01:18:16,441 | ERROR | xFrameworkWiring | BlueprintContainerImpl | 23 - org.apache.aries.blueprint.
core - 1.7.1 | Unable to start blueprint container for bundle sample-fuse-630/1.0.0.SNAPSHOT
org.osgi.service.blueprint.container.ComponentDefinitionException: Unable to load class org.apache.camel.dataformat.zipf
ile.ZipFileDataFormat from recipe BeanRecipe[name='zipFileDataFormat']
at org.apache.aries.blueprint.di.AbstractRecipe.doLoadType(AbstractRecipe.java:195)[23:org.apache.aries.blueprin
t.core:1.7.1]
at org.apache.aries.blueprint.di.AbstractRecipe.loadType(AbstractRecipe.java:161)[23:org.apache.aries.blueprint.
core:1.7.1]
at org.apache.aries.blueprint.container.BeanRecipe.loadClass(BeanRecipe.java:250)[23:org.apache.aries.blueprint.
core:1.7.1]