2010-01-15 3 views
2

Eclipse 3.x 기반의 WID 6.1을 사용하고 있습니다.Eclipse "Creation of Element Failed"

, 새로 만들기 -> 클래스, 클래스의 이름을 입력 폴더를 클릭 오른쪽으로 노력하고, 다음 마침을 클릭합니다, 나는

는 "요소의 생성이 실패 오류가 발생합니다. org.xml.sax의를 .SAXParseException : 파일의 조기 끝. "

어제 제 작업 공간을 다시 만들었지 만 지금은 다시 일어나고 있습니다. WID를 재설치하는 것은 2 ~ 3 시간 작업이므로 실제 문제를 해결하는 것이 좋습니다.

제안 사항?

편집 : WID의 두 번째 다시 시작한 후은, 지금. "자바 공구를 초기화 오류", 내가 점점 된 원래 오류 메시지에 비해 더 검색 할 얻고있다.

편집 : WID/Eclipse 로그에서 보면 예외가 있지만 프로젝트 또는 파일을 알 수 없습니다.

Caused by: org.xml.sax.SAXParseException: Premature end of file. 
    at org.apache.xerces.util.ErrorHandlerWrapper.createSAXParseException(Unknown Source) 
    at org.apache.xerces.util.ErrorHandlerWrapper.fatalError(Unknown Source) 
    at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown Source) 
    at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown Source) 
    at org.apache.xerces.impl.XMLVersionDetector.determineDocVersion(Unknown Source) 
    at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source) 
    at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source) 
    at org.apache.xerces.parsers.XMLParser.parse(Unknown Source) 
    at org.apache.xerces.parsers.DOMParser.parse(Unknown Source) 
    at org.apache.xerces.jaxp.DocumentBuilderImpl.parse(Unknown Source) 
    at javax.xml.parsers.DocumentBuilder.parse(Unknown Source) 
    at org.eclipse.wst.common.internal.emf.utilities.DOMUtilities.loadDocument(Unknown Source) 
    ... 21 more 

답변

2

클릭하면보기, 오류 로그가 표시됩니다.

작업 영역에서 모든 프로젝트를 제거하십시오.

오류 로그를보고 작업 공간으로 프로젝트를 하나씩 다시로드하십시오.

로드시 오류가 발생한 프로젝트의 경우 .settings 폴더로 이동하여 파일이 비어 있거나 0 바이트 인 것을 확인했습니다. 모두 제거하고 다시 작동했습니다.