Error - Validation failed: no DTD found

654 views
Skip to first unread message

Vanille

unread,
Jan 13, 2014, 5:44:30 AM1/13/14
to be...@googlegroups.com
After coming back to work after christmas I suddenly get this error almost every time I run my behat tests:

[Symfony\Component\Translation\Exception\InvalidResourceException]
  [ERROR 94] Validation failed: no DTD found ! (in n/a - line 1, column 21)

When I google the error it says it's a libxml issue - and there's nothing to do - other than supressing it:

Anyone else running into this? What have you done?


Vanille

unread,
Jan 13, 2014, 11:39:14 AM1/13/14
to be...@googlegroups.com
By studying this trace I found out that the problem had something to do with writing out the Scenario Summary. I tried to explicitly put the --lang=en on my command - and it helped. But why on earth should this be necessary??

Exception trace:
 () at /Users/vanille/Behat/vendor/symfony/translation/Symfony/Component/Translation/Loader/XliffFileLoader.php:127
 Symfony\Component\Translation\Loader\XliffFileLoader->parseFile() at /Users/vanille/Behat/vendor/symfony/translation/Symfony/Component/Translation/Loader/XliffFileLoader.php:43
 Symfony\Component\Translation\Loader\XliffFileLoader->load() at /Users/vanille/Behat/vendor/symfony/translation/Symfony/Component/Translation/Translator.php:256
 Symfony\Component\Translation\Translator->doLoadCatalogue() at /Users/vanille/Behat/vendor/symfony/translation/Symfony/Component/Translation/Translator.php:238
 Symfony\Component\Translation\Translator->loadCatalogue() at /Users/vanille/Behat/vendor/symfony/translation/Symfony/Component/Translation/Translator.php:207
 Symfony\Component\Translation\Translator->transChoice() at /Users/vanille/Behat/vendor/behat/behat/src/Behat/Behat/Formatter/ConsoleFormatter.php:301
 Behat\Behat\Formatter\ConsoleFormatter->translateChoice() at /Users/vanille/Behat/vendor/behat/behat/src/Behat/Behat/Formatter/ProgressFormatter.php:297
 Behat\Behat\Formatter\ProgressFormatter->printScenariosSummary() at /Users/vanille/Behat/vendor/behat/behat/src/Behat/Behat/Formatter/ProgressFormatter.php:281
 Behat\Behat\Formatter\ProgressFormatter->printSummary() at /Users/vanille/Behat/vendor/behat/behat/src/Behat/Behat/Formatter/PrettyFormatter.php:906
 Behat\Behat\Formatter\PrettyFormatter->printSuiteFooter() at /Users/vanille/Behat/vendor/behat/behat/src/Behat/Behat/Formatter/PrettyFormatter.php:157
 Behat\Behat\Formatter\PrettyFormatter->afterSuite() at n/a:n/a
Reply all
Reply to author
Forward
0 new messages