Latest Posts Under: Gotchas

So this is a very short post, with a ‘gotcha’. I wasn’t able to find anything about this, thats why I write it down here right now: If you are migrating from Spring 3 to 4 and you have in your pom.xml the following dependency: <properties> <spring.version>3.2.4.RELEASE</spring.version> <junit.version>4.9</junit.version> </properties> … <dependency> <groupId>org.springframework</groupId> <artifactId>spring-mock</artifactId> <version>2.0.8</version> <scope>test</scope> </dependency> <dependency> <groupId>org.springframework</groupId> <artifactId>spring-test</artifactId> <version>${spring.version}</version> <scope>test</scope> </dependency> Once you migrate to Spring 4 (lets say 4.0.3.RELEASE) and run your tests you might run into a following stacktrace: java.lang.NoSuchMethodError: org.springframework.core.CollectionFactory.createLinkedMapIfPossible(I)Ljava/util/Map; at org.springframework.mock.web.MockHttpServletRequest.<init>( at org.springframework.mock.web.MockHttpServletRequest.<init>( at org.springframework.test.context.web.ServletTestExecutionListener.setUpRequestContextIfNecessary( at org.springframework.test.context.web.ServletTestExecutionListener.prepareTestInstance( at org.springframework.test.context.TestContextManager.prepareTestInstance( at… Read Article →

Recently I have switched jobs to Zilverline. And so far I love it there. One of the things I now work in is OS X (10.8.2). I am programming in Ruby using RubyMine. I think RubyMine is great (especially since I am coming from IntelliJ as a Java programmer). However, one of the things that bugged me was path variables not picking up in RubyMine. From terminal all my stuff works great. Ie, rake spec, rails, etc.┬áNo problem. However it seems RubyMine does not launch with the same path variables set as you terminal does…. Read Article →

Scroll To Top