Monthly Archives: November 2008

P2 fun: Failed to prepare partial IU

I got this while trying to install new version of subclipse on top of eclipse rcp edition of ganymede release. Running eclipse with -clean didn’t help. [code] !ENTRY org.eclipse.equinox.p2.engine 4 4 2008-11-18 13:17:31.218 !MESSAGE An error occurred during provisioning. !SUBENTRY 1 org.eclipse.equinox.p2.touchpoint.eclipse 4 0 2008-11-18 13:17:31.218 !MESSAGE Failed to prepare partial IU: [R]org.tigris.subversion.clientadapter.javahl 1.5.4. [/code] [...]

SimpleDateFormat is not thread-safe

How many of you use java.text.SimpleDateFormat as static field? I have seen this to be pretty standard practice (and have done this myself too). Be aware that SimpleDateFormat#format(..) is not thread-safe and thereby for most of the cases you should not use this as a static field in server, Eclipse RPC or any other multi-threaded [...]