https://github.com/geb/geb-example-grails Does not work

34 views
Skip to first unread message

Bhaarat Sharma

unread,
Aug 1, 2017, 2:30:15 PM8/1/17
to Geb User Mailing List
I am trying to integrate Geb into my Grails application. As an example, I started looking into this example https://github.com/geb/geb-example-grails

However, this example does not work. 

When I run it on my OSX 10.10.5 (Yosemite) I get an error stacktrace:

```
2017-08-01 14:27:00.918 plugin-container[49184:6684020] *** CFMessagePort: bootstrap_register(): failed 1100 (0x44c) 'Permission denied', port = 0x8f43, name = 'com.apple.tsm.portname'
See /usr/include/servers/bootstrap_defs.h for the error codes.
2017-08-01 14:27:00.919 plugin-container[49184:6684020] *** CFMessagePort: bootstrap_register(): failed 1100 (0x44c) 'Permission denied', port = 0x442f, name = 'com.apple.CFPasteboardClient'
See /usr/include/servers/bootstrap_defs.h for the error codes.
2017-08-01 14:27:00.919 plugin-container[49184:6684020] Failed to allocate communication port for com.apple.CFPasteboardClient; this is likely due to sandbox restrictions
| Error         at org.openqa.selenium.firefox.internal.NewProfileExtensionConnection.start(NewProfileExtensionConnection.java:113)
| Error         at org.openqa.selenium.firefox.FirefoxDriver.startClient(FirefoxDriver.java:271)
| Error         at org.openqa.selenium.remote.RemoteWebDriver.<init>(RemoteWebDriver.java:119)
| Error         at org.openqa.selenium.firefox.FirefoxDriver.<init>(FirefoxDriver.java:216)
| Error         at org.openqa.selenium.firefox.FirefoxDriver.<init>(FirefoxDriver.java:211)
```

Brian Kotek

unread,
Aug 1, 2017, 4:21:48 PM8/1/17
to Geb User Mailing List
Looks like you need to bump the Selenium version to 3.4 or higher. https://www.google.com/search?q=Failed+to+allocate+communication+port+for+com.apple.CFPasteboardClient 

--
You received this message because you are subscribed to the Google Groups "Geb User Mailing List" group.
To unsubscribe from this group and stop receiving emails from it, send an email to geb-user+unsubscribe@googlegroups.com.
To post to this group, send email to geb-...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/geb-user/b6d52441-243d-48e3-a260-36bd7f89fdc5%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Marcin Erdmann

unread,
Aug 1, 2017, 4:31:51 PM8/1/17
to Geb User Mailing List
Bhaarat,

Which version of Grails are you trying to integrate Geb into? That particular example project is not maintained anymore - it is set up using Grails 2 which is EOL now and Geb is integrated with Grails 3 out of the box, see http://docs.grails.org/latest/guide/testing.html#functionalTesting. I will be adding a deprecation notice to readme of that project so that it's more visible what the status of it is.

Also, as Brian suggests, you probably have a newer version of FF installed on your machine than what is supported by the particular Selenium version used by that example project. You can upgrade Selenium version but be aware that you will also need to install and setup Gecko driver if you do so (https://github.com/mozilla/geckodriver) as Firefox driver in Selenium 3.x requires Gecko driver. Another possibly easier but not really sustainable option is to downgrade Firefox to 46 if you just want to quickly see these tests running.

Cheers,
Marcin

Reply all
Reply to author
Forward
0 new messages