com.cenqua.fisheye.rep.DbException: com.cenqua.fisheye.svn.diff.SvnDiffParsingException: Unexpected line in overall diff at 1

Atlassian JIRA | Cezary Zawadka | 2 years ago
  1. 0

    When file encoding is changed (eg. from UTF-8 to UTF-16) it causes repository indexing to ctash with a following stack trace: {code} 2014-06-14 22:28:54,239 DEBUG [SvnExecution5 utf16] fisheye SvnTask-run - Executing svn diff -r 1:2 file:///home/czawadka/repos/utf16.svn@2 2014-06-14 22:28:54,251 ERROR [InitialPinger2 utf16] fisheye SvnDiffParser-reportError - Error processing diff 1:2 in /home/czawadka/sources/fe/output/dist_inst/var/tmp/utf16/FESVNW_4671838859566393438 - Unexpec ted line in overall diff at 1 2014-06-14 22:28:54,252 DEBUG [InitialPinger2 utf16] fisheye Timer-output - <- Processing diff paths for 2 time 13 millis mem_usage = 269446936 heapsize = 293666816 freemem = 24219880 2014-06-14 22:28:54,252 DEBUG [InitialPinger2 utf16] fisheye BaseRevisionCache-withDbWriteLock - Rolling back for priority 40 2014-06-14 22:28:54,252 ERROR [InitialPinger2 utf16] fisheye BaseRepositoryScanner-handleSlurpException - Problem processing revisions from repo utf16 due to class com.cenqua.fisheye.rep.DbException - com.cenqua .fisheye.svn.diff.SvnDiffParsingException: Unexpected line in overall diff at 1 com.cenqua.fisheye.rep.DbException: com.cenqua.fisheye.svn.diff.SvnDiffParsingException: Unexpected line in overall diff at 1 at com.atlassian.fisheye.svn.Svn2Infill2Processor.processDiff(Svn2Infill2Processor.java:836) at com.atlassian.fisheye.svn.Svn2Infill2Processor.processDiffPaths(Svn2Infill2Processor.java:737) at com.atlassian.fisheye.svn.Svn2Infill2Processor.infillChangeSet(Svn2Infill2Processor.java:252) at com.atlassian.fisheye.svn.Svn2Infill2Processor.access$100(Svn2Infill2Processor.java:81) at com.atlassian.fisheye.svn.Svn2Infill2Processor$1.perform(Svn2Infill2Processor.java:124) at com.atlassian.fisheye.svn.Svn2Infill2Processor$1.perform(Svn2Infill2Processor.java:113) at com.cenqua.fisheye.cache.BaseRevisionCache.withDbWriteLock(BaseRevisionCache.java:1036) at com.atlassian.fisheye.svn.Svn2Infill2Processor.process(Svn2Infill2Processor.java:113) at com.atlassian.fisheye.svn.Svn2Scanner.slurpRepository(Svn2Scanner.java:209) at com.atlassian.fisheye.svn.Svn2Scanner.doSlurpTransaction(Svn2Scanner.java:178) at com.cenqua.fisheye.rep.BaseRepositoryScanner.ping(BaseRepositoryScanner.java:82) at com.cenqua.fisheye.rep.BaseRepositoryEngine.doSlurp(BaseRepositoryEngine.java:86) at com.cenqua.fisheye.rep.RepositoryEngine.slurp(RepositoryEngine.java:399) at com.cenqua.fisheye.rep.ping.IndexingPingRequest.doRequest(IndexingPingRequest.java:25) at com.cenqua.fisheye.rep.ping.IncrementalPingRequest.doRequest(IncrementalPingRequest.java:30) at com.cenqua.fisheye.rep.ping.PingRequest.process(PingRequest.java:51) at com.cenqua.fisheye.rep.RepositoryHandle.processPingRequests(RepositoryHandle.java:218) at com.cenqua.fisheye.rep.RepositoryHandle.access$100(RepositoryHandle.java:57) at com.cenqua.fisheye.rep.RepositoryHandle$2.run(RepositoryHandle.java:174) at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:895) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:918) at java.lang.Thread.run(Thread.java:662) Caused by: com.cenqua.fisheye.svn.diff.SvnDiffParsingException: Unexpected line in overall diff at 1 at com.cenqua.fisheye.svn.diff.SvnDiffParser.reportError(SvnDiffParser.java:127) at com.cenqua.fisheye.svn.diff.SvnDiffParser.process(SvnDiffParser.java:152) at com.atlassian.fisheye.svn.Svn2Infill2Processor.processDiff(Svn2Infill2Processor.java:834) ... 21 more {code} Dump of sample SVN repository causing repository indexing to crash: [^utf16.dump] {{svn diff -r 1:2 file:///home/czawadka/repos/utf16.svn@2}} output: svn [^utf16-svn.diff], jsvn [^utf16-jsvn.diff] - notice diff header for jsvn encoded as UTF-16. Moreover svn and jsvn contains output of readme.txt with 2 different encodings - ASCII and UTF-16

    Atlassian JIRA | 2 years ago | Cezary Zawadka
    com.cenqua.fisheye.rep.DbException: com.cenqua.fisheye.svn.diff.SvnDiffParsingException: Unexpected line in overall diff at 1
  2. 0

    When file encoding is changed (eg. from UTF-8 to UTF-16) it causes repository indexing to ctash with a following stack trace: {code} 2014-06-14 22:28:54,239 DEBUG [SvnExecution5 utf16] fisheye SvnTask-run - Executing svn diff -r 1:2 file:///home/czawadka/repos/utf16.svn@2 2014-06-14 22:28:54,251 ERROR [InitialPinger2 utf16] fisheye SvnDiffParser-reportError - Error processing diff 1:2 in /home/czawadka/sources/fe/output/dist_inst/var/tmp/utf16/FESVNW_4671838859566393438 - Unexpec ted line in overall diff at 1 2014-06-14 22:28:54,252 DEBUG [InitialPinger2 utf16] fisheye Timer-output - <- Processing diff paths for 2 time 13 millis mem_usage = 269446936 heapsize = 293666816 freemem = 24219880 2014-06-14 22:28:54,252 DEBUG [InitialPinger2 utf16] fisheye BaseRevisionCache-withDbWriteLock - Rolling back for priority 40 2014-06-14 22:28:54,252 ERROR [InitialPinger2 utf16] fisheye BaseRepositoryScanner-handleSlurpException - Problem processing revisions from repo utf16 due to class com.cenqua.fisheye.rep.DbException - com.cenqua .fisheye.svn.diff.SvnDiffParsingException: Unexpected line in overall diff at 1 com.cenqua.fisheye.rep.DbException: com.cenqua.fisheye.svn.diff.SvnDiffParsingException: Unexpected line in overall diff at 1 at com.atlassian.fisheye.svn.Svn2Infill2Processor.processDiff(Svn2Infill2Processor.java:836) at com.atlassian.fisheye.svn.Svn2Infill2Processor.processDiffPaths(Svn2Infill2Processor.java:737) at com.atlassian.fisheye.svn.Svn2Infill2Processor.infillChangeSet(Svn2Infill2Processor.java:252) at com.atlassian.fisheye.svn.Svn2Infill2Processor.access$100(Svn2Infill2Processor.java:81) at com.atlassian.fisheye.svn.Svn2Infill2Processor$1.perform(Svn2Infill2Processor.java:124) at com.atlassian.fisheye.svn.Svn2Infill2Processor$1.perform(Svn2Infill2Processor.java:113) at com.cenqua.fisheye.cache.BaseRevisionCache.withDbWriteLock(BaseRevisionCache.java:1036) at com.atlassian.fisheye.svn.Svn2Infill2Processor.process(Svn2Infill2Processor.java:113) at com.atlassian.fisheye.svn.Svn2Scanner.slurpRepository(Svn2Scanner.java:209) at com.atlassian.fisheye.svn.Svn2Scanner.doSlurpTransaction(Svn2Scanner.java:178) at com.cenqua.fisheye.rep.BaseRepositoryScanner.ping(BaseRepositoryScanner.java:82) at com.cenqua.fisheye.rep.BaseRepositoryEngine.doSlurp(BaseRepositoryEngine.java:86) at com.cenqua.fisheye.rep.RepositoryEngine.slurp(RepositoryEngine.java:399) at com.cenqua.fisheye.rep.ping.IndexingPingRequest.doRequest(IndexingPingRequest.java:25) at com.cenqua.fisheye.rep.ping.IncrementalPingRequest.doRequest(IncrementalPingRequest.java:30) at com.cenqua.fisheye.rep.ping.PingRequest.process(PingRequest.java:51) at com.cenqua.fisheye.rep.RepositoryHandle.processPingRequests(RepositoryHandle.java:218) at com.cenqua.fisheye.rep.RepositoryHandle.access$100(RepositoryHandle.java:57) at com.cenqua.fisheye.rep.RepositoryHandle$2.run(RepositoryHandle.java:174) at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:895) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:918) at java.lang.Thread.run(Thread.java:662) Caused by: com.cenqua.fisheye.svn.diff.SvnDiffParsingException: Unexpected line in overall diff at 1 at com.cenqua.fisheye.svn.diff.SvnDiffParser.reportError(SvnDiffParser.java:127) at com.cenqua.fisheye.svn.diff.SvnDiffParser.process(SvnDiffParser.java:152) at com.atlassian.fisheye.svn.Svn2Infill2Processor.processDiff(Svn2Infill2Processor.java:834) ... 21 more {code} Dump of sample SVN repository causing repository indexing to crash: [^utf16.dump] {{svn diff -r 1:2 file:///home/czawadka/repos/utf16.svn@2}} output: svn [^utf16-svn.diff], jsvn [^utf16-jsvn.diff] - notice diff header for jsvn encoded as UTF-16. Moreover svn and jsvn contains output of readme.txt with 2 different encodings - ASCII and UTF-16

    Atlassian JIRA | 2 years ago | Cezary Zawadka
    com.cenqua.fisheye.rep.DbException: com.cenqua.fisheye.svn.diff.SvnDiffParsingException: Unexpected line in overall diff at 1

    Root Cause Analysis

    1. com.cenqua.fisheye.svn.diff.SvnDiffParsingException

      Unexpected line in overall diff at 1

      at com.cenqua.fisheye.svn.diff.SvnDiffParser.reportError()
    2. com.cenqua.fisheye
      SvnDiffParser.process
      1. com.cenqua.fisheye.svn.diff.SvnDiffParser.reportError(SvnDiffParser.java:127)
      2. com.cenqua.fisheye.svn.diff.SvnDiffParser.process(SvnDiffParser.java:152)
      2 frames
    3. com.atlassian.fisheye
      Svn2Infill2Processor$1.perform
      1. com.atlassian.fisheye.svn.Svn2Infill2Processor.processDiff(Svn2Infill2Processor.java:834)
      2. com.atlassian.fisheye.svn.Svn2Infill2Processor.processDiffPaths(Svn2Infill2Processor.java:737)
      3. com.atlassian.fisheye.svn.Svn2Infill2Processor.infillChangeSet(Svn2Infill2Processor.java:252)
      4. com.atlassian.fisheye.svn.Svn2Infill2Processor.access$100(Svn2Infill2Processor.java:81)
      5. com.atlassian.fisheye.svn.Svn2Infill2Processor$1.perform(Svn2Infill2Processor.java:124)
      6. com.atlassian.fisheye.svn.Svn2Infill2Processor$1.perform(Svn2Infill2Processor.java:113)
      6 frames
    4. com.cenqua.fisheye
      BaseRevisionCache.withDbWriteLock
      1. com.cenqua.fisheye.cache.BaseRevisionCache.withDbWriteLock(BaseRevisionCache.java:1036)
      1 frame
    5. com.atlassian.fisheye
      Svn2Scanner.doSlurpTransaction
      1. com.atlassian.fisheye.svn.Svn2Infill2Processor.process(Svn2Infill2Processor.java:113)
      2. com.atlassian.fisheye.svn.Svn2Scanner.slurpRepository(Svn2Scanner.java:209)
      3. com.atlassian.fisheye.svn.Svn2Scanner.doSlurpTransaction(Svn2Scanner.java:178)
      3 frames
    6. com.cenqua.fisheye
      RepositoryHandle$2.run
      1. com.cenqua.fisheye.rep.BaseRepositoryScanner.ping(BaseRepositoryScanner.java:82)
      2. com.cenqua.fisheye.rep.BaseRepositoryEngine.doSlurp(BaseRepositoryEngine.java:86)
      3. com.cenqua.fisheye.rep.RepositoryEngine.slurp(RepositoryEngine.java:399)
      4. com.cenqua.fisheye.rep.ping.IndexingPingRequest.doRequest(IndexingPingRequest.java:25)
      5. com.cenqua.fisheye.rep.ping.IncrementalPingRequest.doRequest(IncrementalPingRequest.java:30)
      6. com.cenqua.fisheye.rep.ping.PingRequest.process(PingRequest.java:51)
      7. com.cenqua.fisheye.rep.RepositoryHandle.processPingRequests(RepositoryHandle.java:218)
      8. com.cenqua.fisheye.rep.RepositoryHandle.access$100(RepositoryHandle.java:57)
      9. com.cenqua.fisheye.rep.RepositoryHandle$2.run(RepositoryHandle.java:174)
      9 frames
    7. Java RT
      Thread.run
      1. java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:895)
      2. java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:918)
      3. java.lang.Thread.run(Thread.java:662)
      3 frames