Running and Debugging Grails in IDEA - Firewall issues

Hello all,

First posting here for me.   Sorry if this is a repeated question, I've done a lot of searching on it here but could not find anything that looked the "same".

I am happily using IDEA (Enterprise) for developing a Grails application.  However - I find that I can't run it up or debug it when my McAfee Firewall is turned on.  I then (stupidly) got used to running with the firewall turned off and have spent a lot of today getting rid of a virus!

I use MySQL as you can probably tell from my list.


I've added this to the McAfee list but I don't know if I am even using it correctly...


fw.png


The message I get when trying to Run (not Debug) my application in IDEA is ....



Error 2012-11-06 15:44:50,701 [pool-7-thread-1] ERROR context.GrailsContextLoader  - Error executing bootstraps: Error creating bean with name 'transactionManagerPostProcessor': Initialization of bean failed; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'transactionManager': Cannot resolve reference to bean 'sessionFactory' while setting bean property 'sessionFactory'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sessionFactory': Cannot resolve reference to bean 'hibernateProperties' while setting bean property 'hibernateProperties'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'hibernateProperties': Cannot resolve reference to bean 'dialectDetector' while setting bean property 'properties' with key [hibernate.dialect]; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'dialectDetector': Invocation of init method failed; nested exception is org.springframework.jdbc.support.MetaDataAccessException: Error while extracting DatabaseMetaData; nested exception is org.apache.commons.dbcp.SQLNestedException: Cannot create PoolableConnectionFactory (Communications link failure


The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.)
Message: Error creating bean with name 'transactionManagerPostProcessor': Initialization of bean failed; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'transactionManager': Cannot resolve reference to bean 'sessionFactory' while setting bean property 'sessionFactory'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sessionFactory': Cannot resolve reference to bean 'hibernateProperties' while setting bean property 'hibernateProperties'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'hibernateProperties': Cannot resolve reference to bean 'dialectDetector' while setting bean property 'properties' with key [hibernate.dialect]; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'dialectDetector': Invocation of init method failed; nested exception is org.springframework.jdbc.support.MetaDataAccessException: Error while extracting DatabaseMetaData; nested exception is org.apache.commons.dbcp.SQLNestedException: Cannot create PoolableConnectionFactory (Communications link failure



If I turn off my firewall everything works.

I know this may be more of an environment/firewall thing than an IDEA thing but I am open to any suggestions from people who've been through this.


Many thanks,
Chris

1 comment
Comment actions Permalink

Hello again -

I solved this - more by luck than judgment really - but I include it here incase it helps someone else.

What I did on the McAfee firewall section was hit "Restore defaults" and it populated the tab like follows ...

fw-defaults.png

All those entries appeared when I hit the button.  The three entries I had typed in (see original post) got replaced.

Anyway - seems to work (maybe I had unwittingly blown these settings away a while ago).

Chris

0

Please sign in to leave a comment.