ClamAV Grails plugin

Finally I’ve released my first Grails plugin: ClamAV Grails plugin. It allows to easily use the Open Source antivirus ClamAV from Grails through a service and a validator.

The freeOfVirus validator can be used like any other constraints:

class Foo
  byte[] myBinaryData
  static constraints = {
    myBinaryData(freeOfVirus: true)

Simple, isn’t it?



  1. March 10, 2008 at 4:33 pm

    Cool idea to check uploaded files!

  2. Robin said,

    March 10, 2008 at 6:32 pm

    Very nice! Also, adding a viruscheck service for arbitrary checks would be really great πŸ™‚

  3. Marc Guillemot said,

    March 11, 2008 at 8:14 am


    what do you mean with “for arbitrary checks”? Virus validation on File on InputStream make sense and are on the TODO list. I can imagine that validation on String could be usefull too, but for other types?

  4. Robin said,

    March 11, 2008 at 5:33 pm

    Sorry, wrongs words from me :), it should read “arbitrary files”.

    And when I look at the page over at I see you already support this. Sorry for all the fuss πŸ™‚

  5. Bejoy said,

    December 20, 2017 at 12:37 pm

    Installed the App and Changed the port
    Trying to run the grails app but receiving the following error

    ERROR :-

    groovy.lang.MissingMethodException: No signature of method: is applicable for argument types: (java.lang.Boolean) values: [true]
    Possible solutions: isSingleton(), setSynthetic(boolean)
    at ClamavGrailsPlugin$_closure1_closure7.doCall(ClamavGrailsPlugin.groovy:23)
    at grails.spring.BeanBuilder.invokeBeanDefiningMethod(
    at grails.spring.BeanBuilder.invokeMethod(
    at ClamavGrailsPlugin$_closure1.doCall(ClamavGrailsPlugin.groovy:21)
    at grails.spring.BeanBuilder.invokeBeanDefiningClosure(
    at grails.spring.BeanBuilder.beans(
    at grails.spring.BeanBuilder.invokeMethod(
    at java.util.concurrent.ThreadPoolExecutor.runWorker(
    at java.util.concurrent.ThreadPoolExecutor$
    Error |
    Forked Grails VM exited with errorJava HotSpot(TM) 64-Bit Server VM warning: ignoring option MaxPermSize=256m; support was removed in 8.0

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s

%d bloggers like this: