If i try to open a applicationContext.xml (spring-beans XML file) i get the following error message:
The file is unreadable using the “UTF-8” character encoding.
The error log contains (for a single open attempt) a set of identical error messages:
sun.io.MalformedInputException
at sun.io.ByteToCharUTF8.convert(Unknown Source)
at java.io.InputStreamReader.convertInto(Unknown Source)
at java.io.InputStreamReader.fill(Unknown Source)
at java.io.InputStreamReader.read(Unknown Source)
at java.io.BufferedReader.fill(Unknown Source)
at java.io.BufferedReader.readLine(Unknown Source)
at java.io.BufferedReader.readLine(Unknown Source)
at org.xmen.ui.XMLDocumentProvider.getEncoding(Unknown Source)
at org.xmen.ui.XMLDocumentProvider.createDocument(Unknown Source)
at org.eclipse.ui.editors.text.FileDocumentProvider.createElementInfo(FileDocumentProvider.java:527)
at org.eclipse.ui.texteditor.AbstractDocumentProvider.connect(AbstractDocumentProvider.java:306)
at org.eclipse.ui.texteditor.AbstractTextEditor.doSetInput(AbstractTextEditor.java:2393)
at org.eclipse.ui.texteditor.StatusTextEditor.doSetInput(StatusTextEditor.java:162)
at org.eclipse.ui.editors.text.TextEditor.doSetInput(TextEditor.java:476)
….
The file i tried to open starts like this:
<?xml version=”1.0″ encoding=”iso-8859-1″?>
<!DOCTYPE beans PUBLIC
“-//SPRING//DTD BEAN//EN”
“http://www.springframework.org/dtd/spring-beans.dtd”>
<!–
– Application context definition for “springapp” DispatcherServlet.
–>
This problems occurs on a system with a configuration like this:
Eclipse Platform
Version: 2.1.3
Build id: 200403101828
MyEclipse Enterprise Workbench
Version: 2.7.101
Build id: 200405181900-2.8-Beta1
It worked perfectly well using the actual 2.7 release of MyEclipse.
Regards,
Ralf
– System Setup ——————————-
Operating System and version:
Eclipse version:
Eclipse build id:
Fresh Eclipse install (y/n):
If not, was it upgraded to its current version using the update manager?
Other installed external plugins:
Number of plugins in the <eclipse>/plugins directory that begin with org.eclipse.pde.*:
MyEclipse version:
Eclipse JDK version:
Application Server JDK version:
Are there any exceptions in the Eclipse log file?
– Message Body ——————————-