If you are using Hibernate 5.+ and Glassfish 4.X or other earlier version , you will probably see this error. That's happening because there is a conflict between Glassfish modules and your project dependency, more specifically the lib org.jboss.logging. It's happening because the method org.jboss.logging.Logger.debugf is only available in the jboss-logging version 3.3.0 or later and there is on … Continue lendo NoSuchMethodError: org.jboss.logging.Logger.debugf(Ljava/lang/String)
Categoria: Java
What?! java.lang.ClassCastException?!
If you are facing something very strange like com.tassioauad.MyEntity cannot be cast to com.tassioauad.MyEntity, don't worry because you are not alone. It's typically occurs when two ClassLoader load the classes with the same name, because different ClassLoader can do the same class be considered different. What is the ClassLoader? It is a class that load other classes, … Continue lendo What?! java.lang.ClassCastException?!
Simple Project: Spring Boot + Apache CXF (JAX-WS)
Let's create a simple hello world with and Spring Boot + Apache CXF (JAX-WS) project. Is not so common to find and example on the web, so I'm going to provide it. Firstly, we need to declare some dependencies on our pom.xml: https://gist.github.com/tassioauad/dbd1aaf44cdfb326c0777b162154178d I'd like to highlight the dependency with artefactid cxf-spring-boot-starter-jaxws, which provides the … Continue lendo Simple Project: Spring Boot + Apache CXF (JAX-WS)
Efficient Android Threading Book – My Compilation of Chapter 1
Linux Process In a Linux, each user has its own process and a unique ID. Every user has access to private resources proctected by permission and any user (except the super user) can access another user's private resource. In Android, the same thing happens, but instead of users we have applications. By default, applications and … Continue lendo Efficient Android Threading Book – My Compilation of Chapter 1
Android Gradle Plugin 2.2.0-alpha3 is missing zipalign
Today, I was trying to submit a new version of my app to Google Play and I received this message: I've verified if I was submiting the debug version of my apk and I've confirmed that I was submiting the release version generate in Build > Generate Signed APK. I've tried to use the zipAlignEnabled true in the release … Continue lendo Android Gradle Plugin 2.2.0-alpha3 is missing zipalign