[Java]: 1. Fixed field name validation
2. Fixed ErrorHandlerTest (was passing without doing the assertions because assertions where done in block for exception that was never thrown)
3. Fixed  the xml files for the error handler tests to match the assertions.
Merge pull request #186 from csoroiu/master

[Java]: 1. Fixed field name validation