Apr 18, 2012

junit NoClassDefFoundError: org/codehaus/jackson/map/ObjectMapper

Got this error while trying to run one of my junits.
This junit annotated with spring annotations and works with spring-web3.0.5-RELEASE.

After a lot of digging, it seems that the issue is simple.
You need to add this to your pom :

   <dependency>
<groupId>org.codehaus.jackson</groupId>
<artifactId>jackson-mapper-asl</artifactId>
<version>1.4.2</version>
</dependency>

Jackson 1.4.2 suite to spring-web3.0.5

Problem caused since the jackson dependency in spring-web is an optional=true.

Jan 11, 2012

.svn directory missing after upgrade to 1.7

Hi,

After upgrading my TortoiseSVN to the latest version from 1.6.12 and as well as my SilkSubversion.

I Checkout my project from svn again (not relate to the upgrade) and noticed that only the root directory contains the ".svn" folder.

Child folders doesn't contain the ".svn" folder any more.

After a lot of digging it came out that from version 1.7.X of tortoise and silk there won't be any child ".svn" folders (hidden) anymore. Only one folder in the root.

+
If you work in eclipse, you need to uninstall (unless till you read this they will upgrade it) the old subversion/svnkit/javahl plugins from it and install it again using this updated site
"http://subclipse.tigris.org/update_1.8.x"




Hoped it helps,
Dor

Nov 20, 2011

Override pom from command line

Hi Everyone,

I had this scenario but my solution catch them all.
I had this <skipTests>true</skipTests> in my pom.
Trying to "mvn -DskipTests=false test" => not good, it doesn't override the pom.

Solution:
Define a property like this
  <skip.my.tests>true</skip.my.tests>
Add it to the <properties> section

In the above example, i will replace it and it will look like this <skipTests>${skip.my.tests}</skipTests>

This is the solution for all the thing you want to override from command line.

Hoped it helped,

Dor

Sep 21, 2011

getResponseCode() Illegal character in URL

2 Hours i have spent on this.

String key = base64encode(password);

What's solved me the issue was this "key.replaceAll("\r\n?", "");"

Hoping that it will assist you too and save you the time i already spent,

(The base64encode method based on apache-commons base64encoder)

Dor

Sep 18, 2011

FTPClient completePendingCommand() deadlock stuck freeze

It's strange, that this method hangs or freeze for this method.

I used commons-net 2.2v, don't know if it already solved at 3v. But, i have found that my problem was:
Executing this method before closing the input stream.
Switching them, first closing the input stream and then running completePendingCommand() solved the issue.
+
There are some cases where this method isn't really necessary, beware.

Hoped it helped,
Dor

Sep 12, 2011

quartz cron expression

Lately i looked over the web for cron expression maker or validations, thought to my self that if it doesn't exists already, i will write something. That will help us all. 

So , i have found it, it is here http://www.cronmaker.com/

Nice 1,

Dor

Aug 23, 2011

the project does not have any gwt sdks on its build path

Strange when this occurs although everything is configured well, build path as well as maven pom.xml file.
The solution i have found here is working.


Bye,
Dor