I’ve been using Spring JDBC with great success but I am having alot of trouble with this project. I’ll post the code links here(it’s just a small and silly project to test if I can get it up and running so that I can use Hibernate in the future):
xml-file: http://codepaste.net/uw19zc
main-file: http://codepaste.net/iks1cp
I get tons of errors such as
[Fatal Error] bean2.out.xml:1:1: Premature end of file.
13:21:39,471 FATAL [main] Main - getAssociatedStylesheets failed
and I haven’t created a.out.xml file.
This error is due to incorrect parsing of the xml file.
Using Eclipse to validate it gives the error:
There appears to be some strange character in between one or many of those
<bean>declarations. Have you copied this text from somewhere else?Remove all spaces and newline characters between
<bean>definitions and put them back with your editor.UPDATE
Copying & pasting into notepad++ the text in the codepaste you provided, and setting the charset to UTF-8 showed these characters in the blank lines: xA0. This is the standard Unicode translation for
. This is likely to be the cause of this problem.This validates ok for me: