Skip to content

Instantly share code, notes, and snippets.

Avatar

Rodrigo Turini Turini

View GitHub Profile
@Turini
Turini / gist:11019009
Created Apr 18, 2014
wildfly startup exception (vraptor 4)
View gist:11019009
21:34:15,894 INFO [org.hibernate.tool.hbm2ddl.SchemaUpdate] (ServerService Thread Pool -- 19) HHH000228: Running hbm2ddl schema update
21:34:15,895 INFO [org.hibernate.tool.hbm2ddl.SchemaUpdate] (ServerService Thread Pool -- 19) HHH000102: Fetching database metadata
21:34:15,900 ERROR [org.hibernate.tool.hbm2ddl.SchemaUpdate] (ServerService Thread Pool -- 19) HHH000299: Could not complete schema update: java.lang.NullPointerException
at org.hibernate.tool.hbm2ddl.DatabaseMetadata.initSequences(DatabaseMetadata.java:183) [hibernate-core-4.3.1.Final.jar:4.3.1.Final]
at org.hibernate.tool.hbm2ddl.DatabaseMetadata.<init>(DatabaseMetadata.java:92) [hibernate-core-4.3.1.Final.jar:4.3.1.Final]
at org.hibernate.tool.hbm2ddl.DatabaseMetadata.<init>(DatabaseMetadata.java:84) [hibernate-core-4.3.1.Final.jar:4.3.1.Final]
at org.hibernate.tool.hbm2ddl.SchemaUpdate.execute(SchemaUpdate.java:196) [hibernate-core-4.3.1.Final.jar:4.3.1.Final]
at org.hibernate.tool.hbm2ddl.SchemaUpdate.execute(SchemaUpdate.java:178) [hi
View gist:11199258
java.lang.IllegalArgumentException: Parameters paths are invalid: [abc.y] for method public void br.com.caelum.vraptor.http.route.RouteBuilderTest$Generic.gee(java.lang.Object)
at br.com.caelum.vraptor.http.route.DefaultTypeFinder.getParameterTypes(DefaultTypeFinder.java:66)
at br.com.caelum.vraptor.http.route.DefaultRouteBuilder.addParametersInfo(DefaultRouteBuilder.java:196)
at br.com.caelum.vraptor.http.route.DefaultRouteBuilder.is(DefaultRouteBuilder.java:185)
at br.com.caelum.vraptor.http.route.RouteBuilderTest.shouldUseGenericParameters(RouteBuilderTest.java:232)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:601)
at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:47)
View gist:11228703
package br.com.caelum.vraptor.dialect;
import org.hibernate.dialect.HSQLDialect;
public class BugDialect extends HSQLDialect {
@Override
public String getQuerySequencesString() {
return null;
}
View gist:2e9ddc52b6eb49f1eeec
03:17:38,525 ERROR [io.undertow.request] (default task-1) UT005023: Exception handling request to /console/WEB-INF/jsp/principal/index.jsp: javax.servlet.ServletException: /WEB-INF/jsp/principal/index.jsp raised an exception
at br.com.caelum.vraptor.VRaptor.doFilter(VRaptor.java:127) [vraptor-4.1.4.jar:]
at io.undertow.servlet.core.ManagedFilter.doFilter(ManagedFilter.java:60) [undertow-servlet-1.1.0.Final.jar:1.1.0.Final]
at io.undertow.servlet.handlers.FilterHandler$FilterChainImpl.doFilter(FilterHandler.java:132) [undertow-servlet-1.1.0.Final.jar:1.1.0.Final]
at io.undertow.servlet.handlers.FilterHandler.handleRequest(FilterHandler.java:85) [undertow-servlet-1.1.0.Final.jar:1.1.0.Final]
at io.undertow.servlet.handlers.security.ServletSecurityRoleHandler.handleRequest(ServletSecurityRoleHandler.java:61) [undertow-servlet-1.1.0.Final.jar:1.1.0.Final]
at io.undertow.servlet.handlers.ServletDispatchingHandler.handleRequest(ServletDispatchingHandler.java:36) [undertow-servlet-1.1.0.Final
@Turini
Turini / gist:788c6c9084e7ecf31c1d
Created Mar 13, 2015
classe ebook cap 5 do livro de oo
View gist:788c6c9084e7ecf31c1d
public class Ebook extends Livro {
private String waterMark;
public Ebook(Autor autor) {
super(autor);
}
public String getWaterMark() {
return waterMark;
View gist:6565286
--------------------------------------------------------------------------
--------------------------------------------------------------------------
vraptor 4 no music jungle na master:
--------------------------------------------------------------------------
--------------------------------------------------------------------------
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/
View gist:6565939
vraptor3 mydvds
ab -c 100 -n 10000 http://localhost:8080/mydvds/home/login > benchmark/vraptor3.txt
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)
View gist:6608702
Rodrigo ~ $ ab -c 100 -n 10000 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)
Completed 1000 requests
Completed 2000 requests
Completed 3000 requests
@Turini
Turini / gist:6730756
Created Sep 27, 2013
ApacheBench do Brutal em Produção
View gist:6730756
---------------------------------------------------------------------------
Em PROD, antes de atualizar o VRaptor4
---------------------------------------------------------------------------
Rodrigo ~ $ ab -c 10 -n 100 http://www.guj.com.br/
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 www.guj.com.br (be patient)...
@Turini
Turini / gist:6731050
Last active Dec 24, 2015
ApacheBench do Brutal em Homolog
View gist:6731050
---------------------------------------------------------------------------
Em HOMOLOG, antes de atualizar o VRaptor4
---------------------------------------------------------------------------
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