Skip to content

Instantly share code, notes, and snippets.

View magick93's full-sized avatar
💩
Focusing

magick93

💩
Focusing
View GitHub Profile
@magick93
magick93 / CFX error
Created May 13, 2018 05:18
Trying to deploy in karaf
ERROR org.apache.aries.blueprint.container.BlueprintContainerImpl - Unable to start blueprint container for bundle section6.assessment.karaf2-cxf-rest/2.0.0.SNAPSHOT
org.osgi.service.blueprint.container.ComponentDefinitionException: Error setting property: PropertyDescriptor <name: serviceBeans, getter: null, setter: [class org.apache.cxf.jaxrs.JAXRSServerFactoryBean.setServiceBeans(interface java.util.List)]
at org.apache.aries.blueprint.container.BeanRecipe.setProperty(BeanRecipe.java:963)
at org.apache.aries.blueprint.container.BeanRecipe.setProperties(BeanRecipe.java:929)
at org.apache.aries.blueprint.container.BeanRecipe.setProperties(BeanRecipe.java:910)
at org.apache.aries.blueprint.container.BeanRecipe.internalCreate2(BeanRecipe.java:844)
at org.apache.aries.blueprint.container.BeanRecipe.internalCreate(BeanRecipe.java:811)
at org.apache.aries.blueprint.di.AbstractRecipe$1.call(AbstractRecipe.java:79)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at org.apache.aries.blueprint.di.
@magick93
magick93 / device-information.yml
Created May 13, 2018 05:04
OpenShift template for Device Information
apiVersion: v1
kind: Template
metadata:
name: ${PROJECT_NAME}
objects:
- apiVersion: v1
kind: Project
metadata:
annotations:
openshift.io/description: ${PROJECT_DESCRIPTION}
@magick93
magick93 / remove swagger
Created May 13, 2018 01:29
Trying to solve previous CXF OSGi bug by removing dependencies, starting with swagger
java.lang.IllegalArgumentException: Alias [/cxf] was never registered
at org.ops4j.pax.web.service.internal.HttpServiceStarted.unregister(HttpServiceStarted.java:278)[72:org.ops4j.pax.web.pax-web-runtime:4.3.0]
at org.ops4j.pax.web.service.internal.HttpServiceProxy.unregister(HttpServiceProxy.java:77)[72:org.ops4j.pax.web.pax-web-runtime:4.3.0]
at org.apache.cxf.transport.http.osgi.ServletExporter.updated(ServletExporter.java:54)[104:org.apache.cxf.cxf-rt-transports-http:3.1.5.redhat-630187]
at org.apache.felix.cm.impl.helper.ManagedServiceTracker.updated(ManagedServiceTracker.java:189)[105:org.apache.felix.configadmin:1.8.8]
at org.apache.felix.cm.impl.helper.ManagedServiceTracker.updateService(ManagedServiceTracker.java:152)[105:org.apache.felix.configadmin:1.8.8]
at org.apache.felix.cm.impl.helper.ManagedServiceTracker.provideConfiguration(ManagedServiceTracker.java:85)[105:org.apache.felix.configadmin:1.8.8]
at org.apache.felix.cm.impl.ConfigurationManager$ManagedServiceUpdate.provide(Configuration
[ERROR] Failed to execute goal org.apache.karaf.tooling:karaf-maven-plugin:4.0.8:assembly (karaf-assembly) on project karaf2-cxf-rest: Unable to build assembly: Unable to resolve root: missing requirement [root] osgi.identity; osgi.identity=jline-internal; type=karaf.feature; filter:="(&(osgi.identity=jline-internal)(type=karaf.feature))" -> [Help 1]
org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal org.apache.karaf.tooling:karaf-maven-plugin:4.0.8:assembly (karaf-assembly) on project karaf2-cxf-rest: Unable to build assembly
2018-05-12 21:28:40,379 | INFO | FelixStartLevel | HttpServiceFactoryImpl | 72 - org.ops4j.pax.web.pax-web-runtime - 4.3.0 | Binding bundle: [org.apache.cxf.cxf-rt-transports-http [104]] to http service
2018-05-12 21:28:41,472 | ERROR | pache.cxf.osgi]) | configadmin | 105 - org.apache.felix.configadmin - 1.8.8 | [org.osgi.service.cm.ManagedService, id=111, bundle=104/reference:file:system/org/apache/cxf/cxf-rt-transports-http/3.1.5.redhat-630187/cxf-rt-transports-http-3.1.5.redhat-630187.jar]: Unexpected problem updating configuration org.apache.cxf.osgi
java.lang.IllegalArgumentException: Alias [/cxf] was never registered
at org.ops4j.pax.web.service.internal.HttpServiceStarted.unregister(HttpServiceStarted.java:278)[72:org.ops4j.pax.web.pax-web-runtime:4.3.0]
at org.ops4j.pax.web.service.internal.HttpServiceProxy.unregister(HttpServiceProxy.java:77)[72:org.ops4j.pax.web.pax-web-runtime:4.3.0]
at org.apache.cxf.transport.http.osgi.ServletExporter.updated(ServletExporter.j
@magick93
magick93 / grpc debug.txt
Last active November 10, 2017 23:09
grpc debug
mt4server_1 | login() starts. IsConnected() returns 1
mt4server_1 | login() return RET_OK
mt4server_1 | mServiceAddr: 0.0.0.0
mt4server_1 | mServicePort: 50051
mt4server_1 | connectionString: 0.0.0.0:50051
mt4server_1 | I1110 23:00:06.363430583 1 ev_epollsig_linux.c:71] epoll engine will be using signal: 40
mt4server_1 | D1110 23:00:06.363474930 1 ev_posix.c:111] Using polling engine: epollsig
mt4server_1 | D1110 23:00:06.364106354 1 dns_resolver.c:301] Using native dns resolver
mt4server_1 | D1110 23:00:06.364151378 1 timer_manager.c:82] Spawn timer thread
@magick93
magick93 / linkJava_pluginExecutable output.txt
Created October 25, 2017 23:06
linkJava_pluginExecutable/output.txt
See file:///home/anton/git/grpc-java/compiler/build/tmp/linkJava_pluginExecutable/output.txt for all output for linkJava_pluginExecutable.
linking protoc-gen-grpc-java failed.
/home/anton/git/grpc-java/compiler/build/objs/java_plugin/java_pluginCpp/cmkx8cb9wgxcy6i9dx7v2pqn9/java_generator.o: In function `java_grpc_generator::PrintMethodFields(google::protobuf::ServiceDescriptor const*, std::map<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::less<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > >, std::allocator<std::pair<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > > > >*, google::protobuf::io::Printer*, java_grpc_generator::ProtoFlavor)':
java_generator.cpp:(.text+0x108c): undefined reference to `google::protobuf::MethodDescriptor::input_ty
@magick93
magick93 / docker-cleanup-resources.md
Created October 16, 2017 22:42 — forked from bastman/docker-cleanup-resources.md
docker cleanup guide: containers, images, volumes, networks

Docker - How to cleanup (unused) resources

Once in a while, you may need to cleanup resources (containers, volumes, images, networks) ...

delete volumes

// see: https://github.com/chadoe/docker-cleanup-volumes

$ docker volume rm $(docker volume ls -qf dangling=true)

$ docker volume ls -qf dangling=true | xargs -r docker volume rm

{
"cells": [
{
"cell_type": "markdown",
"metadata": {
"raw_mimetype": "text/html",
"slideshow": {
"slide_type": "slide"
}
},
@magick93
magick93 / docker-clean.sh
Created October 1, 2017 06:37 — forked from mugifly/docker-clean.sh
Cleanup Script for Docker Images and Containers
#!/bin/sh
echo -e "-- Removing exited containers --\n"
docker ps --all --quiet --filter="status=exited" | xargs --no-run-if-empty docker rm --volumes
echo -e "\n\n-- Removing untagged images --\n"
docker rmi --force $(docker images | awk '/^<none>/ { print $3 }')
echo -e "\n\n-- Removing volume directories --\n"
docker volume rm $(docker volume ls --quiet --filter="dangling=true")