TimeGT launching soon!

 

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:
  1. !ENTRY org.eclipse.equinox.p2.engine 4 4 2008-11-18 13:17:31.218
  2. !MESSAGE An error occurred during provisioning.
  3. !SUBENTRY 1 org.eclipse.equinox.p2.touchpoint.eclipse 4 0 2008-11-18 13:17:31.218
  4. !MESSAGE Failed to prepare partial IU: [R]org.tigris.subversion.clientadapter.javahl 1.5.4.

Then I thought - what the heck, not going to reinstall - and tried to update whole eclipse with P2. Worked nicely, all updated.

After that also installing full subclipse worked again, at least without errors.

BUT just installation. It didn't actually work -- it shows up as installed plugin in P2 manager -- but not visible in Help->About->Plugin Details. Workspace .log is clean.

So, new eclipse re-install, here I come :(

This all probably started because I first tried to upgrade from older subclipse to 1.4.6 using p2 update manager. Usually I've been just reinstalling manually.

And I'm not even sure if it's a P2 or subclipse update site issue. Some P2 internal cache trees maybe got screwed that -clean couldn't reach.

Share:These icons link to social bookmarking sites where readers can share and discover new web pages.
  • del.icio.us
  • digg
  • Reddit
Comments (2) Tuesday, November 18, 1:19 pm

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 environment.

SimpleDateFormat is internally using field "calendar" that is set with each #format(...) method call so that pretty much breaks the thread-safety.

Share:These icons link to social bookmarking sites where readers can share and discover new web pages.
  • del.icio.us
  • digg
  • Reddit
Comments (0) Friday, November 7, 12:35 pm