Tags » Grails

Getting the Application Started

I have to apologize for not posting before now this week. Real life has interfered with my plans. I was forced to give my notice with CSC this week. 187 more words


A New Hope, or is it A New Start

With a new Star Wars movie just a few months down the road, I couldn’t help but start this new blog off with a pun. Yes, my sense of humor is that bad, and it tends to get worse as I get tired. 317 more words


A product built from scratch in straight 48 hrs: Promoting CarFreeDay in a smarter way.

We recently participated at techathon organised at ToTheNew Digital’s premises in collaboration with ShopClues and LoudShout.

We ended up building an innovative and practical solution to the current day problems: … 257 more words


EC2, RDS and Java JDBC values - getting RDS values for EC2 and not hard coding them (JDBC config)

If you are using Amazon EC2 and RDS, the RDS values for your JDBC url are provided by amazon as a system property

here’s an an example config for Postgres, note that all variables are dynamic (so when you restore from an image or spin up a new RDS system or do a url swap there’s no hard-coded values that need to be fixed): 75 more words


Httpclient/httpcore incompatible versions cause IncompatibleClassChangeError

Sometimes I get this error when I try to run a maven-deploy on my plugins.

| Error java.lang.IncompatibleClassChangeError: Class org.apache.http.message.BasicNameValuePair does not implement the requested interface org.apache.http.NameValuePair
| Error 	at org.apache.http.message.BasicHeaderValueParser.parseHeaderElement(BasicHeaderValueParser.java:166)
| Error 	at org.apache.http.message.BasicHeaderValueParser.parseElements(BasicHeaderValueParser.java:110)
| Error 	at org.apache.http.message.BufferedHeader.getElements(BufferedHeader.java:109)
| Error 	at org.apache.http.impl.entity.LaxContentLengthStrategy.determineLength(LaxContentLengthStrategy.java:97)
| Error 	at org.apache.http.impl.entity.EntityDeserializer.doDeserialize(EntityDeserializer.java:94)
| Error 	at org.apache.http.impl.entity.EntityDeserializer.deserialize(EntityDeserializer.java:143)
| Error 	at org.apache.http.impl.AbstractHttpClientConnection.receiveResponseEntity(AbstractHttpClientConnection.java:302)
| Error 	at org.apache.http.impl.conn.ManagedClientConnectionImpl.receiveResponseEntity(ManagedClientConnectionImpl.java:186)
| Error 	at org.apache.http.protocol.HttpRequestExecutor.doReceiveResponse(HttpRequestExecutor.java:302)
| Error 	at org.apache.http.protocol.HttpRequestExecutor.execute(HttpRequestExecutor.java:127)
| Error 	at org.apache.http.impl.client.DefaultRequestDirector.tryExecute(DefaultRequestDirector.java:715)
| Error 	at org.apache.http.impl.client.DefaultRequestDirector.execute(DefaultRequestDirector.java:520)
| Error 	at org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:906)
| Error 	at org.apache.http.impl.client.DecompressingHttpClient.execute(DecompressingHttpClient.java:137)
| Error 	at org.eclipse.aether.transport.http.HttpTransporter.execute(HttpTransporter.java:287)
| Error 	at org.eclipse.aether.transport.http.HttpTransporter.implGet(HttpTransporter.java:243)
| Error 	at org.eclipse.aether.spi.connector.transport.AbstractTransporter.get(AbstractTransporter.java:59)
| Error 	at org.eclipse.aether.connector.basic.BasicRepositoryConnector$GetTaskRunner.runTask(BasicRepositoryConnector.java:447)
| Error 	at org.eclipse.aether.connector.basic.BasicRepositoryConnector$TaskRunner.run(BasicRepositoryConnector.java:350)
| Error 	at org.eclipse.aether.util.concurrency.RunnableErrorForwarder$1.run(RunnableErrorForwarder.java:67)
| Error 	at org.eclipse.aether.connector.basic.BasicRepositoryConnector$DirectExecutor.execute(BasicRepositoryConnector.java:581)
| Error 	at org.eclipse.aether.connector.basic.BasicRepositoryConnector.get(BasicRepositoryConnector.java:222)
| Error 	at org.eclipse.aether.internal.impl.DefaultMetadataResolver$ResolveTask.run(DefaultMetadataResolver.java:607)
| Error 	at org.eclipse.aether.util.concurrency.RunnableErrorForwarder$1.run(RunnableErrorForwarder.java:67)
| Error 	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
| Error 	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
| Error 	at java.lang.Thread.run(Thread.java:745)
| Error Error executing script MavenDeploy: Class org.apache.http.message.BasicNameValuePair does not implement the requested interface org.apache.http.NameValuePair (Use --stacktrace to see the full trace)
… 54 more words

Asynchronous Google Chart Data With jQuery in Grails

Google Charts is an awesome platform to create great-looking interactive charts, from simple scatter plots to timelines or treemaps.

I needed a way to create the required data for a chart on the server-side, instead of in-lining it in the JavaScript itself — as seen in many of the examples.  1,707 more words