Skip to content

Instantly share code, notes, and snippets.

@Turini
Turini / gist:6796035
Last active December 24, 2015 12:09
AB antes do VR4 beta1
===========================================================================
vraptor-blank-project com VRAPTOR 4
===========================================================================
Rodrigo ~ $ ab -c 100 -n 10000 http://localhost:8080/vraptor-blank-project/
This is ApacheBench, Version 2.3 <$Revision: 655654 $>
Copyright 1996 Adam Twiss, Zeus Technology Ltd, http://www.zeustech.net/
Licensed to The Apache Software Foundation, http://www.apache.org/
Benchmarking localhost (be patient)
Generating /home/Rodrigo/workspace/vraptor4/vraptor-core/target/apidocs/br/com/caelum/vraptor/converter/class-use/LocaleBasedBigDecimalConverter.html...
Generating /home/Rodrigo/workspace/vraptor4/vraptor-core/target/apidocs/br/com/caelum/vraptor/converter/class-use/BigIntegerConverter.html...
Generating /home/Rodrigo/workspace/vraptor4/vraptor-core/target/apidocs/br/com/caelum/vraptor/converter/class-use/ConversionMessage.html...
Generating /home/Rodrigo/workspace/vraptor4/vraptor-core/target/apidocs/br/com/caelum/vraptor/converter/class-use/PrimitiveIntConverter.html...
Generating /home/Rodrigo/workspace/vraptor4/vraptor-core/target/apidocs/br/com/caelum/vraptor/converter/class-use/LocaleBasedCalendarConverter.html...
Generating /home/Rodrigo/workspace/vraptor4/vraptor-core/target/apidocs/br/com/caelum/vraptor/converter/class-use/BooleanConverter.html...
Generating /home/Rodrigo/workspace/vraptor4/vraptor-core/target/apidocs/br/com/caelum/vraptor/converter/class-use/LongConverter.html...
Generating /home/Ro
@Turini
Turini / gist:6921106
Created October 10, 2013 16:15
stack da caca do brutal
SLF4J: Class path contains multiple SLF4J bindings.
SLF4J: Found binding in [jar:file:/home/Rodrigo/.m2/repository/org/slf4j/slf4j-log4j12/1.6.0/slf4j-log4j12-1.6.0.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: Found binding in [jar:file:/home/Rodrigo/.m2/repository/org/slf4j/slf4j-simple/1.7.5/slf4j-simple-1.7.5.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: Found binding in [jar:file:/home/Rodrigo/.m2/repository/org/jboss/weld/servlet/weld-servlet/2.0.2.Final/weld-servlet-2.0.2.Final.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: Found binding in [jar:file:/home/Rodrigo/.m2/repository/org/jboss/weld/servlet/weld-servlet/2.0.4.Final/weld-servlet-2.0.4.Final.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: See http://www.slf4j.org/codes.html#multiple_bindings for an explanation.
13:11:48 INFO [Server ] jetty-8.1.0.v20120127
13:11:49 INFO [Version ] WELD-000900 2.0.4 (Final)
13:11:49 INFO [ContextHandler ] started o.e.j.w.WebAppContext{/,file:/home/Rodrig
@Turini
Turini / gist:6935235
Created October 11, 2013 14:08
cweb sem o commons-lang3-3.1
java.lang.reflect.InvocationTargetException
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 org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.run(JUnitTestRunner.java:398)
at org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.launch(JUnitTestRunner.java:1052)
at org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.main(JUnitTestRunner.java:879)
Caused by: java.lang.NoClassDefFoundError: org/apache/commons/lang3/StringUtils
at com.gargoylesoftware.htmlunit.util.URLCreator$URLCreatorStandard.toUrlUnsafeClassic(URLCreator.java:66)
@Turini
Turini / gist:7159488
Created October 25, 2013 18:28
issue 216 VRaptor4

AB, antes de mudar o CustomAcceptsExecutor

Rodrigo ~ $ ab -c 100 -n 1000 http://localhost:8080/vraptor-musicjungle/home/login
This is ApacheBench, Version 2.3 <$Revision: 655654 $>
Copyright 1996 Adam Twiss, Zeus Technology Ltd, http://www.zeustech.net/
Licensed to The Apache Software Foundation, http://www.apache.org/

Benchmarking localhost (be patient)
@Turini
Turini / gist:7237074
Created October 30, 2013 17:53
Erro do brutal vraptor4-beta-3
SLF4J: Class path contains multiple SLF4J bindings.
SLF4J: Found binding in [jar:file:/home/Rodrigo/.m2/repository/org/jboss/weld/servlet/weld-servlet/2.0.2.Final/weld-servlet-2.0.2.Final.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: Found binding in [jar:file:/home/Rodrigo/.m2/repository/org/slf4j/slf4j-log4j12/1.6.0/slf4j-log4j12-1.6.0.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: See http://www.slf4j.org/codes.html#multiple_bindings for an explanation.
SLF4J: Actual binding is of type [org.slf4j.impl.JDK14LoggerFactory]
Oct 30, 2013 3:51:41 PM org.eclipse.jetty.server.Server doStart
INFO: jetty-8.1.0.v20120127
Oct 30, 2013 3:51:44 PM org.jboss.weld.bootstrap.WeldBootstrap <clinit>
INFO: WELD-000900 2.0.2 (Final)
Oct 30, 2013 3:51:44 PM org.eclipse.jetty.server.handler.ContextHandler callContextInitialized
@Turini
Turini / gist:7335438
Created November 6, 2013 12:39
ÌncludeParameters (Interceptor x Evento)

Antes, usando Interceptor

This is ApacheBench, Version 2.3 <$Revision: 655654 $>
Copyright 1996 Adam Twiss, Zeus Technology Ltd, http://www.zeustech.net/
Licensed to The Apache Software Foundation, http://www.apache.org/

Benchmarking localhost (be patient)
Completed 100 requests
Completed 200 requests
@Turini
Turini / gist:7949807
Last active December 31, 2015 06:49
Erro cadastro e listagem de música (teste do jmeter)

Cadastro de musica

<html><head><title>Apache Tomcat/7.0.42 - Error report</title>
</head><body><h1>HTTP Status 500 - Exception when trying to instantiate Target(name=music, type=class br.com.caelum.vraptor.musicjungle.model.Music)</h1><HR size="1" noshade="noshade"><p><b>type</b> Exception report</p><p><b>message</b> <u>Exception when trying to instantiate Target(name=music, type=class br.com.caelum.vraptor.musicjungle.model.Music)</u></p><p><b>description</b> <u>The server encountered an internal error that prevented it from fulfilling this request.</u></p><p><b>exception</b> <pre>br.com.caelum.vraptor.http.InvalidParameterException: Exception when trying to instantiate Target(name=music, type=class br.com.caelum.vraptor.musicjungle.model.Music)
	br.com.caelum.vraptor.http.iogi.VRaptorInstantiator.handleException(VRaptorInstantiator.java:114)
	br.com.caelum.vraptor.http.iogi.VRaptorInstantiator.handleException(VRaptorInstantiator.java:116)
	br.com.caelum.vraptor.http.iogi.VRaptorInstantiator.instan
@Turini
Turini / gist:8316547
Created January 8, 2014 13:11
why SKIPPED?
Generating /home/Rodrigo/workspace/vraptor4/vraptor-core/target/apidocs/br/com/caelum/vraptor/deserialization/class-use/Deserializer.html...
Generating /home/Rodrigo/workspace/vraptor4/vraptor-core/target/apidocs/br/com/caelum/vraptor/deserialization/class-use/Deserializes.html...
Generating /home/Rodrigo/workspace/vraptor4/vraptor-core/target/apidocs/br/com/caelum/vraptor/deserialization/class-use/DefaultDeserializers.html...
Generating /home/Rodrigo/workspace/vraptor4/vraptor-core/target/apidocs/br/com/caelum/vraptor/deserialization/xstream/class-use/XStreamXMLDeserializer.html...
Generating /home/Rodrigo/workspace/vraptor4/vraptor-core/target/apidocs/br/com/caelum/vraptor/deserialization/gson/class-use/GsonDeserialization.html...
Generating /home/Rodrigo/workspace/vraptor4/vraptor-core/target/apidocs/br/com/caelum/vraptor/deserialization/gson/class-use/CalendarDeserializer.html...
Generating /home/Rodrigo/workspace/vraptor4/vraptor-core/target/apidocs/br/com/caelum/vraptor/observer/
@Turini
Turini / gist:aa75738dd97115321513
Created July 31, 2014 20:32
org.openqa.selenium.firefox.NotConnectedException with FF30
org.openqa.selenium.firefox.NotConnectedException: Unable to connect to host 127.0.0.1 on port 7055 after 45000 ms
at org.openqa.selenium.firefox.internal.NewProfileExtensionConnection.start(NewProfileExtensionConnection.java:98)
at org.openqa.selenium.firefox.FirefoxDriver.startClient(FirefoxDriver.java:148)
at org.openqa.selenium.remote.RemoteWebDriver.<init>(RemoteWebDriver.java:85)
at org.openqa.selenium.firefox.FirefoxDriver.<init>(FirefoxDriver.java:127)
at br.com.caelum.caelumweb2.integracao2.webdriver.SeleniumWebDriverTestCase.beforeStartup(SeleniumWebDriverTestCase.java:45)
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:483)