Uploaded image for project: 'FishEye'
  1. FishEye
  2. FE-6420

Instance may fail to start if upgrade logs contain characters in unexpected encoding

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • High
    • 4.0.1
    • 4.0.0
    • None

    Description

      If the upgrade logs contain not UTF-8 characters, the instance will fail to start with the following error.

      Caused by: java.io.UncheckedIOException: java.nio.charset.MalformedInputException: Input length = 1
              at java.io.BufferedReader$1.hasNext(BufferedReader.java:574) [?:1.8.0_66]
              at java.util.Spliterators$IteratorSpliterator.tryAdvance(Spliterators.java:1811) [?:1.8.0_66]
              at java.util.stream.ReferencePipeline.forEachWithCancel(ReferencePipeline.java:126) [?:1.8.0_66]
              at java.util.stream.AbstractPipeline.copyIntoWithCancel(AbstractPipeline.java:498) [?:1.8.0_66]
              at java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:485) [?:1.8.0_66]
              at java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:471) [?:1.8.0_66]
              at java.util.stream.MatchOps$MatchOp.evaluateSequential(MatchOps.java:230) [?:1.8.0_66]
              at java.util.stream.MatchOps$MatchOp.evaluateSequential(MatchOps.java:196) [?:1.8.0_66]
              at java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:234) [?:1.8.0_66]
              at java.util.stream.ReferencePipeline.anyMatch(ReferencePipeline.java:449) [?:1.8.0_66]
              at com.cenqua.crucible.hibernate.upgrade.crowd.EmbeddedCrowdUpgradeTaskWarningMessageSource.grepLogForWarnings(EmbeddedCrowdUpgradeTaskWarningMessageSource.java:62) [fisheye.jar:?]
              at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) [?:1.8.0_66]
              at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) [?:1.8.0_66]
              at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) [?:1.8.0_66]
              at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) [?:1.8.0_66]
              at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) [?:1.8.0_66]
              at java.lang.reflect.Method.invoke(Method.java:497) [?:1.8.0_66]
              at org.springframework.beans.factory.annotation.InitDestroyAnnotationBeanPostProcessor$LifecycleElement.invoke(InitDestroyAnnotationBeanPostProcessor.java:349) [spring-beans-4.0.9.RELEASE.jar:4.0.9.RELEASE]
              at org.springframework.beans.factory.annotation.InitDestroyAnnotationBeanPostProcessor$LifecycleMetadata.invokeInitMethods(InitDestroyAnnotationBeanPostProcessor.java:300) [spring-beans-4.0.9.RELEASE.jar:4.0.9.RELEASE]
              at org.springframework.beans.factory.annotation.InitDestroyAnnotationBeanPostProcessor.postProcessBeforeInitialization(InitDestroyAnnotationBeanPostProcessor.java:133) [spring-beans-4.0.9.RELEASE.jar:4.0.9.RELEASE]
              ... 54 more
      Caused by: java.nio.charset.MalformedInputException: Input length = 1
              at java.nio.charset.CoderResult.throwException(CoderResult.java:281) [?:1.8.0_66]
              at sun.nio.cs.StreamDecoder.implRead(StreamDecoder.java:339) [?:1.8.0_66]
              at sun.nio.cs.StreamDecoder.read(StreamDecoder.java:178) [?:1.8.0_66]
              at java.io.InputStreamReader.read(InputStreamReader.java:184) [?:1.8.0_66]
              at java.io.BufferedReader.fill(BufferedReader.java:161) [?:1.8.0_66]
              at java.io.BufferedReader.readLine(BufferedReader.java:324) [?:1.8.0_66]
              at java.io.BufferedReader.readLine(BufferedReader.java:389) [?:1.8.0_66]
              at java.io.BufferedReader$1.hasNext(BufferedReader.java:571) [?:1.8.0_66]
      

      Workaround

      The workaround is to rename the log file <FISHEYE_INST>/var/log/atlassian-fisheye-EmbeddedCrowdUpgradeTask.log to a different name (like atlassian-fisheye-4.0-upgrade.log)

      Attachments

        Issue Links

          Activity

            People

              kcichy Kamil Cichy
              lpater Lukasz Pater
              Votes:
              1 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: