Daily work and tips

breaking-the-chains

How to identify upcoming regressions or API breaks

Posted by Michael Picovschi in Blog on September 18, 2012 with Comments Off

What is a regression ?

Regressions are due to a change in the code or its dependencies but sometimes also to environment changes. But we’ll not be talking about this last point in this post. Regressions can be of two types: compile-time and run-time. On one hand compile-time regressions make your code not compliant anymore for your compiler, script interpreter, etc. On the other hand run-time regressions, the tricky ones, make your code crash, bug, or behave strangely wherever it was working before.

Read more…

Spring Runtime exception with Logfactory

Fixing odd runtime error with Spring : LogFactory

Posted by Sylvain in Daily work and tips on May 7, 2012 with 4 Comments

With the upgrade this morning of our applications to Spring 3.1.1-RELEASE, we obtained odd runtime exceptions :

Stacktrace in JUnit Test : Spring Exception

The detailed stacktrace :

The suspected class is

After inspecting the dependencies of maven with mvn dependency:dependency-list.

Curiously, the class AbstractApplicationContext inside org.springframework:spring-context does not depend from commmons-logging of Apache.

The correction is rather simple : add the following lines to your pom :

However, why would not exist a stub in logback for commons logging ?

References :

Your cart

  • No products in the cart.
Scertify™ is a suite of tools dedicated to development teams, designed to continuously track and eliminate software-related risks, through code quality & architecture compliance monitoring associated with computer-aided refactoring capabilities.
» Get your trial version!

Who we are?

Tocea provides Development Teams with innovative solutions enabling them to continuously control and improve the quality and integrity of their applications. We support developers, architects and project managers in their permanent effort to tackle IT debt and costs, by providing them with unique information on Code & Architecture Quality and some exclusive computer-aided refactoring features.

LoadingRetrieving latest tweet...

Back to Top

2013 © All rights reserved. Tocea SA. Legal Notice