Translate

2017년 1월 23일 월요일

[IntelliJ] SVN 사용 시 'XML document structures must start and end within the same entity.' 에러





Tool: IntelliJ 2016.02
(Android Studio 툴도 동일한 증상이 발생할 수 있다.)




증상

1. IntelliJ 에서 SVN 사용시 아래의 캡쳐화면과 같이 보여지며 SVN을 정상적으로 사용할 수 없다.





2. 'Version Control' => 'Subversion Working Copies Infomation' 확인 시 아래와 같이 보여진다.






해결방안

1. 'Settings' => 'Version Control' 항목에서 <Project> 라는 항목을 삭제해 준다.
  (저 위치에 SVN소스가 없는데 잡혀있어서 문제가 발생됨.)
1004lucifer



2. 위와같이 조치 후 아래와 같이 보여지며 SVN 이 정상적으로 되면 끝!!






PS.
구글링을 하여 해결방법을 찾아봤는데..
커맨드로 뭔가 입력하라는 말만 나오며.. 해봐도 되지 않아 IntelliJ 의 로그를 열어서 확인하여 원인을 찾았다.


로그파일의 위치는 아래와 같다.

C:\Users\{USER_NAME}\.IntelliJIdea2016.2\system\log 파일



위 증상에 대한 내용은 아래와 같다.
1004lucifer

2017-01-12 13:25:56,823 [246760485]   INFO - vn.commandLine.CommandExecutor - Destroying process by command: C:\1004lucifer\Apache-Subversion-1.9.4\bin\svn.exe --config-dir C:\Users\{USER_NAME}\AppData\Roaming\Subversion info --depth empty C:\Users\{USER_NAME}\IdeaProjects\{PROJECT_HOME}\.idea --xml 
2017-01-12 13:25:56,823 [246760485]   INFO - svn.commandLine.CommandRuntime - Detected warning - svn: E155007: 'C:\Users\{USER_NAME}\IdeaProjects\{PROJECT_HOME}\.idea' is not a working copy

2017-01-12 13:25:56,823 [246760485]   INFO - ns.idea.svn.info.CmdInfoClient - info output <?xml version="1.0" encoding="UTF-8"?>
<info>

2017-01-12 13:25:59,007 [246762669]   INFO - svn.commandLine.CommandRuntime - Detected warning - svn: warning: W155010: The node 'C:\1004lucifer\workspace\{PROJECT_MODULE}\src\main\webapp\WEB-INF\classes' was not found.

svn: E200009: Could not display info for all targets because some targets don't exist

2017-01-12 13:25:59,256 [246762918]   INFO - svn.commandLine.CommandRuntime - Detected warning - svn: warning: W155010: The node 'C:\1004lucifer\workspace\{PROJECT_MODULE}\src\main\webapp\WEB-INF\classes' was not found.

svn: E200009: Could not display info for all targets because some targets don't exist

2017-01-12 13:25:59,740 [246763402]   INFO - svn.commandLine.CommandRuntime - Detected warning - svn: warning: W155010: The node 'C:\1004lucifer\workspace\{PROJECT_MODULE}\target' was not found.

svn: E200009: Could not display info for all targets because some targets don't exist

2017-01-12 13:25:59,802 [246763464]   INFO - svn.commandLine.CommandRuntime - Detected warning - svn: E155007: 'C:\Users\{USER_NAME}\IdeaProjects\{PROJECT_HOME}' is not a working copy

2017-01-12 13:25:59,802 [246763464]   INFO - ns.idea.svn.info.CmdInfoClient - info output <?xml version="1.0" encoding="UTF-8"?>
<info>

2017-01-12 13:25:59,990 [246763652]   INFO - svn.commandLine.CommandRuntime - Detected warning - svn: warning: W155010: The node 'C:\1004lucifer\workspace\{PROJECT_MODULE}\target' was not found.

svn: E200009: Could not display info for all targets because some targets don't exist

2017-01-12 13:26:00,005 [246763667]   INFO - svn.commandLine.CommandRuntime - Detected warning - svn: E155007: 'C:\Users\{USER_NAME}\IdeaProjects\{PROJECT_HOME}' is not a working copy

2017-01-12 13:26:00,021 [246763683]   INFO - ns.idea.svn.info.CmdInfoClient - info output <?xml version="1.0" encoding="UTF-8"?>
<info>

2017-01-12 13:26:00,224 [246763886]   INFO - svn.commandLine.CommandRuntime - Detected warning - svn: E155007: 'C:\Users\{USER_NAME}\IdeaProjects\{PROJECT_HOME}\.idea' is not a working copy

2017-01-12 13:26:00,239 [246763901]   INFO - ns.idea.svn.info.CmdInfoClient - info output <?xml version="1.0" encoding="UTF-8"?>
<info>

2017-01-12 13:26:00,504 [246764166]   INFO - svn.commandLine.CommandRuntime - Detected warning - svn: E155007: 'C:\Users\{USER_NAME}\IdeaProjects\{PROJECT_HOME}\.idea' is not a working copy

2017-01-12 13:26:00,504 [246764166]   INFO - ns.idea.svn.info.CmdInfoClient - info output <?xml version="1.0" encoding="UTF-8"?>
<info>

2017-01-12 13:26:00,504 [246764166]   INFO - .changes.ChangeListManagerImpl - XML document structures must start and end within the same entity. 
org.jetbrains.idea.svn.commandLine.SvnBindException: XML document structures must start and end within the same entity.
at org.jetbrains.idea.svn.info.CmdInfoClient.parseResult(CmdInfoClient.java:141)
at org.jetbrains.idea.svn.info.CmdInfoClient.parseResult(CmdInfoClient.java:119)
at org.jetbrains.idea.svn.info.CmdInfoClient.parseResult(CmdInfoClient.java:96)
at org.jetbrains.idea.svn.info.CmdInfoClient.doInfo(CmdInfoClient.java:161)
at org.jetbrains.idea.svn.status.CmdStatusClient.doStatus(CmdStatusClient.java:65)
at org.jetbrains.idea.svn.SvnRecursiveStatusWalker.processDirectory(SvnRecursiveStatusWalker.java:108)
at org.jetbrains.idea.svn.SvnRecursiveStatusWalker.go(SvnRecursiveStatusWalker.java:92)
at org.jetbrains.idea.svn.SvnChangeProvider.getChanges(SvnChangeProvider.java:99)
at com.intellij.openapi.vcs.changes.ChangeListManagerImpl.a(ChangeListManagerImpl.java:768)
at com.intellij.openapi.vcs.changes.ChangeListManagerImpl.a(ChangeListManagerImpl.java:682)
at com.intellij.openapi.vcs.changes.ChangeListManagerImpl.access$1800(ChangeListManagerImpl.java:71)
at com.intellij.openapi.vcs.changes.ChangeListManagerImpl$11.run(ChangeListManagerImpl.java:555)
at com.intellij.openapi.progress.impl.CoreProgressManager$3.run(CoreProgressManager.java:170)
at com.intellij.openapi.progress.impl.CoreProgressManager.a(CoreProgressManager.java:494)
at com.intellij.openapi.progress.impl.CoreProgressManager.executeProcessUnderProgress(CoreProgressManager.java:443)
at com.intellij.openapi.progress.impl.ProgressManagerImpl.executeProcessUnderProgress(ProgressManagerImpl.java:54)
at com.intellij.openapi.progress.impl.CoreProgressManager.runProcess(CoreProgressManager.java:155)
at com.intellij.openapi.vcs.changes.ChangeListManagerImpl.d(ChangeListManagerImpl.java:552)
at com.intellij.openapi.vcs.changes.ChangeListManagerImpl.access$1500(ChangeListManagerImpl.java:71)
at com.intellij.openapi.vcs.changes.ChangeListManagerImpl$ActualUpdater.run(ChangeListManagerImpl.java:454)
at com.intellij.openapi.vcs.changes.UpdateRequestsQueue$MyRunnable.run(UpdateRequestsQueue.java:268)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at com.intellij.util.concurrency.SchedulingWrapper$MyScheduledFutureTask.run(SchedulingWrapper.java:227)
at com.intellij.util.concurrency.BoundedTaskExecutor.runFirstTaskThenPollAndRunRest(BoundedTaskExecutor.java:178)
at com.intellij.util.concurrency.BoundedTaskExecutor.access$000(BoundedTaskExecutor.java:40)
at com.intellij.util.concurrency.BoundedTaskExecutor$2.run(BoundedTaskExecutor.java:197)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
at java.lang.Thread.run(Thread.java:745)
Caused by: org.xml.sax.SAXParseException; lineNumber: 2; columnNumber: 7; XML document structures must start and end within the same entity.
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.XMLErrorReporter.reportError(Unknown Source)
at org.apache.xerces.impl.XMLScanner.reportFatalError(Unknown Source)
at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.endEntity(Unknown Source)
at org.apache.xerces.impl.XMLDocumentScannerImpl.endEntity(Unknown Source)
at org.apache.xerces.impl.XMLEntityManager.endEntity(Unknown Source)
at org.apache.xerces.impl.XMLEntityScanner.load(Unknown Source)
at org.apache.xerces.impl.XMLEntityScanner.skipChar(Unknown Source)
at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown Source)
at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(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.AbstractSAXParser.parse(Unknown Source)
at org.apache.xerces.jaxp.SAXParserImpl$JAXPSAXParser.parse(Unknown Source)
at org.apache.xerces.jaxp.SAXParserImpl.parse(Unknown Source)
at javax.xml.parsers.SAXParser.parse(SAXParser.java:195)
at org.jetbrains.idea.svn.info.CmdInfoClient.parseResult(CmdInfoClient.java:126)
... 29 more
2017-01-12 13:26:01,097 [246764759]   INFO - svn.commandLine.CommandRuntime - Detected warning - svn: E155007: 'C:\Users\{USER_NAME}\IdeaProjects\{PROJECT_HOME}' is not a working copy

2017-01-12 13:26:01,097 [246764759]   INFO - ns.idea.svn.info.CmdInfoClient - info output <?xml version="1.0" encoding="UTF-8"?>
<info>




댓글 없음 :

댓글 쓰기