MissingMethodException: No signature of method for Grails Dynamic Method

May 25th, 2009

In my last post, I described how you can use resources.groovy to create and initialize a class. However, you can get into trouble if the initMethod will access any of the dynamic methods that Grails introduces. If you are not careful, you may get an Exception like the following:

groovy.lang.MissingMethodException: No signature of method: static Thing.count() is applicable ...
Read the rest of this entry »

Creating and Initializing Objects using Spring in Grails 1.1

April 25th, 2009

I was working on a Grails 1.1 project where I wanted to create and initialize an object using Spring. This class would access a Grails service and would interface with open source libraries. This post shows how to create a Java object that is initialized using Spring with various properties, including wiring in a Grails service class.
Read the rest of this entry »

What is my TCP/IP address? Find out with a Groovy script!

March 29th, 2009

From time to time, I need to find out what the TCP/IP address is for a particular computer. Sometimes it is one that I’m sitting in front of, but sometimes it is a remote machine that I’m connected to via telnet or ssh. I know there are a lot of web sites where you can find out your TCP/IP address, but I’ve created another. I’ll get to why in a moment. If you want to see what your TCP/IP address is without a bunch of advertisements or other clutter try this page: http://www.comitservices.com/ip.php. The results are simply your TCP/IP address; no more, no less.
Read the rest of this entry »