CRTL+Space not working in Ubuntu applications

For some time now content assist and the command panel have been broken in Eclipse and Ubiquity running under Ubuntu; they wouldn't trigger the pop-up menues when pressing CRTL+Space. The reason is ibus intercepting that key combination and it's just as easily solved [1]: Open gconf-editor. Choose desktop -> ibus -> general -> hotkey. Open … Continue reading CRTL+Space not working in Ubuntu applications

JEE6, EJB and Glassfish diaries

Some notes while trying to get up on speed with Glassfish and JEE6, mainly about what can go wrong... and there is plenty of it. The most time-consuming activity is researching generic stack traces which hardly ever point to the real cause. NullPointerException when deploying Been there, done that: A beans.xml in META-INF might cause … Continue reading JEE6, EJB and Glassfish diaries

CRTL + Left click on java methods/members/classes slow in Eclipse

In a certain, corporate installation of Eclipse on a quite fast computer CRTL+Left click on java classes, members and methods in the java editor incurred always several seconds of a locked up eclipse which coincided with moderate network traffic. When disconnecting the network the delay would magically vanish. Pierre-Antoine GrĂ©goire came up with the reason … Continue reading CRTL + Left click on java methods/members/classes slow in Eclipse

Connecting with Eclipse to a remote SVN repository via SSH on non-standard ports

Having been bitten by this for the n-th time (with n being subjectively a large integer), I'm noting this down for the following generations to benefit; and hopefully to save myself some fiddling next time it happens. Without further ado: How to connect with SVN to a remote repository that is running on a non-standard … Continue reading Connecting with Eclipse to a remote SVN repository via SSH on non-standard ports

ORA-12519 connection errors and JUnit tests

In my current project we are running hundreds of JUnit tests which load a Spring application context, a Hibernate session factory and a c3p0 pool. The entire suite runs fine everywhere except a single machine where some tests will occasionally fail with a "ORA-12519, TNS:no appropriate service handler found" on an Oracle XE. The cause[1,2] … Continue reading ORA-12519 connection errors and JUnit tests

Liferay diaries: Help! My validation errors are not showing!

While still battling form submissions in my Liferay/Spring MVC Form controller/Multi-portlet beast, I noticed that the Spring form tags would not display errors. As this post [1] explains, the reason is that the form backing object must be named exactly as the class consituting the backing object, but with the first letter in lowercase. Thus … Continue reading Liferay diaries: Help! My validation errors are not showing!

Liferay diaries: Help! My form post parameters are empty!

While hacking a Spring & Liferay prototype, I'm suddenly wondering about why during a form submission there are no parameters (not even empty or null) submitted by the form. Turns out that I got bitten once more by the two phases of the portlet lifecycle [1] and naivly were handling form submission in the handleRenderRequest … Continue reading Liferay diaries: Help! My form post parameters are empty!

Adding foreign language dictionaries to Eclipse text editors and mylyn

This article [1] says it all, but here again for greek and linux: sudo apt-get install aspell aspell-el gawk aspell dump master el | awk -F/ '{print $1}' > dictionary_el.txt And then in Eclipse : Window -> Preferences -> General -> Editors -> Text Editors ->Spelling Add dictionary_el.txt as a User Defined Dictionary Update 28.12.2011 … Continue reading Adding foreign language dictionaries to Eclipse text editors and mylyn

Cache collision and ehcache spring annotations module

If you are looking for a way to implement declarative caching with Spring, there is no way around Ehcache Spring Annotations [1]. This superimposes a transparent aspect on methods of any proxied bean, taking the method arguments as a key. Little known but easy to stumble upon [2] is an implementation (design?) quirk which expects … Continue reading Cache collision and ehcache spring annotations module