Archive for the ‘Misc’ Category

Liferay StructureNameException when importing Lar file

Friday, November 2nd, 2018

Note: I’m no Liferay expert, in fact I’ve only been using it for a few days on a customers legacy system (Liferay 6.1.1) so YMMV.

The Problem

I was trying to import a “LAR” file (a compressed archive like a JAR which holds exported data/pages from a [different] Liferay instance). Problem was every time I tried the import I got a:


This appears to have been caused by the fact that the exported files contained in the LAR were referring to locales that the importing server was not set-up to use:

<root available-locales="en_US,en_GB" default-locale="en_US">

(in this case my server was only set up to use en_US)

The Solution

In edit the following property to add the “missing” locales:


Posted in Misc | No Comments »

RAD “Invalid thread access” errors when accessing CVS

Wednesday, November 10th, 2010

With its default settings, RAD 7.5 seems to be unable to remember CVS passwords. It also gives you a lot of “Invalid thread access” errors when accessing CVS.

To get around this, go to Window -> Preferences and then to General -> Security -> Secure Storage. Uncheck the “Windows Integration” checkbox.

You will now be prompted for a master password. From this point onwards, when you enter a CVS password and check “save password”, the password will be encrypted with the master password and RAD will properly remember it. Note that RAD will periodically prompt you for the master password, so make sure it’s something you can remember!

Tags: ,
Posted in Misc | No Comments »

Sample Java interview questions

Thursday, October 21st, 2010

  • Explain final, finally and finalize
  • Explain volatile
  • Difference between ArrayList and LinkedList and why/where would you use each
  • Difference between checked and unchecked expections
  • JVM – what do arguments Xms, Xmx indicate
  • Try/Catch/Finally – do you always need Catch?
  • Explain a deadlock
  • Name a design pattern, explain when you would use it
  • Why do you use Design Patterns?
  • Explain Inversion of Control, what advantages does it give you?

Tags: ,
Posted in Misc | No Comments »