wiki:Troubleshooting

Version 1 (modified by jannekevdp@…, 12 years ago) (diff)

--

Trouble Shooting

Plugins will not get installed or Webflow Artefacts not found

If many artefacts or plugins are not found, first run grails upgrade (optionally also cleanup your application). That will probably solve most of the problems:

 cd /path/to/gscf
 rm -rf ~/.grails;grails clean;grails upgrade

This also happens when your webflow plugin has another version than the Grails version you are running. You can change the versions in application.properties. The hibernate, tomcat and webflow plugins should always have exactly the same version number as Grails itself:

 app.grails.version=1.3.3
 plugins.hibernate=1.3.3
 plugins.tomcat=1.3.3
 plugins.webflow=1.3.3

"Found two representations of same collection" error

When using the Grails Webflow (or Ajaxflow) and storing domains in the flow scope you might at some point run into the following error:

 "HibernateException: Found two representations of same collection"

It might be that you modified the domain or added children to the domain and stored them earlier in the flow scope. Later on in the flow, Hibernate somehow cannot synchronize the domains correctly. The issue was solved by using the following two lines of code in the step in your flow where you encoutered the HibernateException?:

  def session = sessionFactory.getCurrentSession()
  session.clear()

Webflow or other AJAX driven pages do not work (correctly)

You are probably using Firefox and Firebug. There is an unresolved bug in Firefox (see: http://code.google.com/p/fbug/issues/detail?id=2746) causing XMLHttpRequest to not work properly when Firebug is logging XMLHttpRequests. Disable the XMLHttpRequests in your firebug console:

[[Image:XMLHttpRequest-firebug.png|border]]

The menu dropdown doesn't work and login doesn't function

Check Firebug > Network traffic. Are the jquery Javascript files being found? If not, try reinstalling the jquery plugin. Also, if you have an SVN revision < 1330 and you are using jquery 1.4.4 (January 2011) you might encounter this, see https://trac.nbic.nl/gscf/changeset/1330.

Attachments (1)

Download all attachments as: .zip