Skip to content

Instantly share code, notes, and snippets.

View arthurfnsc's full-sized avatar

Arthur Magalhaes Fonseca arthurfnsc

View GitHub Profile
<?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 https://maven.apache.org/xsd/maven-4.0.0.xsd">
</project>
ext {
gradleWrapperVersion = "6.6.1"
}
wrapper {
gradleVersion = "$gradleWrapperVersion"
}
@arthurfnsc
arthurfnsc / sonarqube-h2.yml
Last active May 30, 2020 02:09
SonarQube H2 - Docker Compose
version: "3"
services:
sonarqube:
image: sonarqube:8.3.1-community
expose:
- 9000
ports:
- "127.0.0.1:9000:9000"
networks:
build.gradle
apply plugin: "checkstyle"
checkstyle {
configFile = project(':').file("config/checkstyle/checkstyle.xml")
configProperties = ["suppressionFile" : project(':').file("config/checkstyle/suppressions.xml")]
toolVersion = "6.0"
}
@arthurfnsc
arthurfnsc / datapower_docker
Last active January 30, 2017 00:14
Run DataPower Docker container
docker run -it \
-v $PWD/config:/drouter/config \
-v $PWD/local:/drouter/local \
-e DATAPOWER_ACCEPT_LICENSE=true \
-e DATAPOWER_INTERACTIVE=true \
-p 9090:9090 \
-p 9022:22 \
-p 5554:5554 \
-p 8000-8010:8000-8010 \
--name datapower \
@arthurfnsc
arthurfnsc / docker_install
Last active December 19, 2016 23:54
Docker install
sudo apt-get install apt-transport-https ca-certificates -y
sudo apt-key adv --keyserver hkp://ha.pool.sks-keyservers.net:80 \
--recv-keys 58118E89F3A912897C070ADBF76221572C52609D
sudo apt-get update
sudo apt-get install linux-image-extra-$(uname -r) linux-image-extra-virtual -y
sudo apt-get update
@arthurfnsc
arthurfnsc / gist:ba73d6e788f8f7e624db7f9af573430d
Last active December 5, 2016 01:25
Swagger & Gradle config
{
"dateLibrary": "java8",
"hideGenerationTimestamp": true,
"modelPackage": "br.com.medium.arthurfnsc.petstore.swagger.model",
"apiPackage": "br.com.medium.arthurfnsc.petstore.swagger.api",
"invokerPackage": "br.com.medium.arthurfnsc.petstore.swagger"
}
plugins {
id 'org.asciidoctor.convert' version '1.5.3'
id 'org.hidetake.swagger.generator' version '1.4.0'
}
group "br.com.medium.arthurfnsc"
version "1.0.0"
ext {
@arthurfnsc
arthurfnsc / raml2jaxrs_maven_plugin
Last active June 9, 2016 16:28
RAML 2 JAX-RS Maven plugin
<plugin>
<groupId>org.raml.plugins</groupId>
<artifactId>raml-jaxrs-maven-plugin</artifactId>
<version>1.3.5-SNAPSHOT</version>
<configuration>
<!-- Use sourcePaths if you want to provide a single RAML file or
a list of RAML files -->
<sourceDirectory>${basedir}/raml</sourceDirectory>
<!-- Optionally configure outputDirectory if you don't like the default
value: ${project.build.directory}/generated-sources/raml-JAX-RS -->
Jun 17, 2014 9:33:13 PM com.sun.jersey.spi.container.ContainerResponse mapMappableContainerException
SEVERE: The RuntimeException could not be mapped to a response, re-throwing to the HTTP container
java.lang.NullPointerException
at com.soaexpert.resource.EventResource.createEvent(EventResource.java:29)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at com.sun.jersey.spi.container.JavaMethodInvokerFactory$1.invoke(JavaMethodInvokerFactory.java:60)
at com.sun.jersey.server.impl.model.method.dispatch.AbstractResourceMethodDispatchProvider$TypeOutInvoker._dispatch(AbstractResourceMethodDispatchProvider.java:185)