| |

Google Cloud Endpoints – Watch for Missing Annotations

One of the early frustrations I had with Endpoints were run-time exceptions. Turns out, regardless of what the culprit is, the dev server (jetty 6) wouldn’t reveal much details of what exactly went wrong. Whatever the problem bet the server fails with java.io.IOException: Failed to retrieve API configs with status: 500. If you are a newbie…

| |

Google App Engine and Android – Pros and Cons, Challenges

I spent almost three months working on my first “bigger” Android project. My goal was to build a simple gaming app backed by a cloud platform from ground up. It has mostly been an enjoyable experience, but as usual there were times I found myself clueless. The overall effort was also way higher then initially…

|

Tomcat – java.lang.InternalError: name is too long to represent

I’ve got the aforementioned exception  when I was trying to load a jsp page on Tomcat 6 running in a debug mode. Turns out the problem occurs when a jsp page grows big. It’s a known JVM issue described by bugs 39089 and 6294277. Here is how to solve it without touching the jsp. Open conf/web.xml In your…

| |

JUnitParams – parameterized unit tests

Less unit test code doesn’t necessarily result into poor coverage. I’ve recently entered the paradigm of parameterized tests when refactoring a larger test suite. I ended up writing significantly less code without compromising on the extent. In fact, adding a few corner cases was almost a no-brainer. In this post I’d like to share my…