Inconsistent module descriptor problem

The problem: Using Grape produces the following exception when trying to grab a dependency: java.text.ParseException: inconsistent module descriptor file found in -- for example: @Grab(group='com.coherentlogic.fred.client', module='fred-client-core', version='0.9.13') The solution: Ensure…

Continue ReadingInconsistent module descriptor problem

Java WebStart application fails due to “access denied (“java.lang.RuntimePermission” “accessDeclaredMembers”)”

In the JNLP file look for the following entry: <security> <j2ee-application-client-permissions/> </security> This needs to be changed to: <security> <all-permissions/> </security> and the application should load.

Continue ReadingJava WebStart application fails due to “access denied (“java.lang.RuntimePermission” “accessDeclaredMembers”)”

A simple Redis client written in Groovy and using Jedis

We're testing some code which publishes data to Redis and we wrote the script below. @GrabResolver(name='Maven Central', root='http://repo1.maven.org/') @Grab(group='redis.clients', module='jedis', version='2.1.0') import redis.clients.jedis.Jedis import redis.clients.jedis.JedisPubSub class DefaultPubSubImpl extends JedisPubSub {…

Continue ReadingA simple Redis client written in Groovy and using Jedis

HornetQ 2.0.0.GA Example: embedded, no jndi, configured programmatically

The following code is based on the example provided in the hornetq-2.0.0.GA-src zip file, specifically the instantiate-connection-factory example located in the examples/jms/instantiate-connection-factory/ directory. The code below is written in Groovy…

Continue ReadingHornetQ 2.0.0.GA Example: embedded, no jndi, configured programmatically