java.lang.IllegalStateException: sun.io.MalformedInputException

Jenkins JIRA | srbrown1 | 9 years ago
  1. 0

    When Hudson is run under the IBM JDK 1.5.0, the checkstyle plugin throws an exception at the end of the build. This does not happen when Hudson is run under the SUN JDK, version 1.6. uname -a on the Linux server gives: Linux xxxxxxxxxxxx 2.6.5-7.308.PTF.345489.2-smp #1 SMP Mon Dec 10 11:36:40 UTC 2007 i686 i686 i386 GNU/Linux The user's environment variables are: PAGER=less NNTPSERVER=news LESSCLOSE=lessclose.sh %s %s PATH=/opt/mitk5/bin:/sbin:/usr/sbin:/usr/local/sbin:/root/bin:/usr/local/bin:/us r/bin:/usr/X11R6/bin:/bin:/usr/games:/opt/kde3/bin:/usr/lib/java/jre/bin:/usr/lo cal/bin SHELL=/bin/ksh OSTYPE=linux HOSTNAME=xxxxxxxxxxxx USER=xxxxxx LESS=-M -I LESS_ADVANCED_PREPROCESSOR=no HOSTTYPE=i386 LESSKEY=/etc/lesskey.bin TERM=xterm COLORTERM=1 INPUTRC=/etc/inputrc LANG=en_GB.UTF-8 CPU=i686 INFODIR=/usr/local/info:/usr/share/info:/usr/info LS_COLORS=no=00:fi=00:di=01;34:ln=00;36:pi=40;33:so=01;35:do=01;35:bd=40;33;01:c d=40;33;01:or=40;31:ex=00;32:*.cmd=00;32:*.exe=01;32:*.com=01;32:*.bat=01;32:*.b tm=01;32:*.dll=01;32:*.tar=00;31:*.tbz=00;31:*.tgz=00;31:*.rpm=00;31:*.deb=00;31 :*.arj=00;31:*.taz=00;31:*.lzh=00;31:*.zip=00;31:*.zoo=00;31:*.z=00;31:*.Z=00;31 :*.gz=00;31:*.bz2=00;31:*.tb2=00;31:*.tz2=00;31:*.tbz2=00;31:*.avi=01;35:*.bmp=0 1;35:*.fli=01;35:*.gif=01;35:*.jpg=01;35:*.jpeg=01;35:*.mng=01;35:*.mov=01;35:*. mpg=01;35:*.pcx=01;35:*.pbm=01;35:*.pgm=01;35:*.png=01;35:*.ppm=01;35:*.tga=01;3 5:*.tif=01;35:*.xbm=01;35:*.xpm=01;35:*.dl=01;35:*.gl=01;35:*.aiff=00;32:*.au=00 ;32:*.mid=00;32:*.mp3=00;32:*.ogg=00;32:*.voc=00;32:*.wav=00;32: LOGNAME=xxxxxx WINDOWMANAGER=/usr/X11R6/bin/kde PROFILEREAD=true MANPATH=/opt/mitk5/man:/usr/share/man LS_OPTIONS=-N --color=tty -T 0 TMOUT=300 MINICOM=-c on XKEYSYMDB=/usr/X11R6/lib/X11/XKeysymDB HOME=/home/xxxxxx HISTSIZE=1000 TEXINPUTS=:/home/xxxxxx/.TeX:/usr/share/doc/.TeX:/usr/doc/.TeX MACHTYPE=i686-suse-linux LESSOPEN=lessopen.sh %s HOST=xxxxxxxxxxxx INFOPATH=/usr/local/info:/usr/share/info:/usr/info XNLSPATH=/usr/X11R6/lib/X11/nls The IBM JDK version is: java version "1.5.0" Java(TM) 2 Runtime Environment, Standard Edition (build pxi32dev-20060511 (SR2)) IBM J9 VM (build 2.3, J2RE 1.5.0 IBM J9 2.3 Linux x86-32 j9vmxi3223-20060504 (JIT enabled) J9VM - 20060501_06428_lHdSMR JIT - 20060428_1800_r8 GC - 20060501_AA) JCL - 20060511a The exception is: [CHECKSTYLE] Collecting checkstyle analysis files... FATAL: sun.io.MalformedInputException java.lang.IllegalStateException: sun.io.MalformedInputException at org.apache.commons.io.LineIterator.hasNext(LineIterator.java:107) at hudson.plugins.checkstyle.util.JavaPackageDetector.detectPackageName (JavaPackageDetector.java:20) at hudson.plugins.checkstyle.util.AbstractPackageDetector.detectPackageName (AbstractPackageDetector.java:20) at hudson.plugins.checkstyle.parser.CheckStyleParser.convert (CheckStyleParser.java:75) at hudson.plugins.checkstyle.parser.CheckStyleParser.parse (CheckStyleParser.java:53) at hudson.plugins.checkstyle.util.FilesParser.parseFile (FilesParser.java:122) at hudson.plugins.checkstyle.util.FilesParser.invoke (FilesParser.java:93) at hudson.plugins.checkstyle.util.FilesParser.invoke (FilesParser.java:22) at hudson.FilePath.act(FilePath.java:317) at hudson.plugins.checkstyle.CheckStylePublisher.perform (CheckStylePublisher.java:77) at hudson.plugins.checkstyle.util.HealthAwarePublisher.perform (HealthAwarePublisher.java:109) at hudson.model.AbstractBuild$AbstractRunner.performAllBuildStep (AbstractBuild.java:309) at hudson.model.AbstractBuild$AbstractRunner.performAllBuildStep (AbstractBuild.java:297) at hudson.model.Build$RunnerImpl.post2(Build.java:118) at hudson.model.AbstractBuild$AbstractRunner.post (AbstractBuild.java:282) at hudson.model.Run.run(Run.java:780) at hudson.model.Build.run(Build.java:85) at hudson.model.ResourceController.execute(ResourceController.java:70) at hudson.model.Executor.run(Executor.java:82)

    Jenkins JIRA | 9 years ago | srbrown1
    java.lang.IllegalStateException: sun.io.MalformedInputException
  2. 0

    When Hudson is run under the IBM JDK 1.5.0, the checkstyle plugin throws an exception at the end of the build. This does not happen when Hudson is run under the SUN JDK, version 1.6. uname -a on the Linux server gives: Linux xxxxxxxxxxxx 2.6.5-7.308.PTF.345489.2-smp #1 SMP Mon Dec 10 11:36:40 UTC 2007 i686 i686 i386 GNU/Linux The user's environment variables are: PAGER=less NNTPSERVER=news LESSCLOSE=lessclose.sh %s %s PATH=/opt/mitk5/bin:/sbin:/usr/sbin:/usr/local/sbin:/root/bin:/usr/local/bin:/us r/bin:/usr/X11R6/bin:/bin:/usr/games:/opt/kde3/bin:/usr/lib/java/jre/bin:/usr/lo cal/bin SHELL=/bin/ksh OSTYPE=linux HOSTNAME=xxxxxxxxxxxx USER=xxxxxx LESS=-M -I LESS_ADVANCED_PREPROCESSOR=no HOSTTYPE=i386 LESSKEY=/etc/lesskey.bin TERM=xterm COLORTERM=1 INPUTRC=/etc/inputrc LANG=en_GB.UTF-8 CPU=i686 INFODIR=/usr/local/info:/usr/share/info:/usr/info LS_COLORS=no=00:fi=00:di=01;34:ln=00;36:pi=40;33:so=01;35:do=01;35:bd=40;33;01:c d=40;33;01:or=40;31:ex=00;32:*.cmd=00;32:*.exe=01;32:*.com=01;32:*.bat=01;32:*.b tm=01;32:*.dll=01;32:*.tar=00;31:*.tbz=00;31:*.tgz=00;31:*.rpm=00;31:*.deb=00;31 :*.arj=00;31:*.taz=00;31:*.lzh=00;31:*.zip=00;31:*.zoo=00;31:*.z=00;31:*.Z=00;31 :*.gz=00;31:*.bz2=00;31:*.tb2=00;31:*.tz2=00;31:*.tbz2=00;31:*.avi=01;35:*.bmp=0 1;35:*.fli=01;35:*.gif=01;35:*.jpg=01;35:*.jpeg=01;35:*.mng=01;35:*.mov=01;35:*. mpg=01;35:*.pcx=01;35:*.pbm=01;35:*.pgm=01;35:*.png=01;35:*.ppm=01;35:*.tga=01;3 5:*.tif=01;35:*.xbm=01;35:*.xpm=01;35:*.dl=01;35:*.gl=01;35:*.aiff=00;32:*.au=00 ;32:*.mid=00;32:*.mp3=00;32:*.ogg=00;32:*.voc=00;32:*.wav=00;32: LOGNAME=xxxxxx WINDOWMANAGER=/usr/X11R6/bin/kde PROFILEREAD=true MANPATH=/opt/mitk5/man:/usr/share/man LS_OPTIONS=-N --color=tty -T 0 TMOUT=300 MINICOM=-c on XKEYSYMDB=/usr/X11R6/lib/X11/XKeysymDB HOME=/home/xxxxxx HISTSIZE=1000 TEXINPUTS=:/home/xxxxxx/.TeX:/usr/share/doc/.TeX:/usr/doc/.TeX MACHTYPE=i686-suse-linux LESSOPEN=lessopen.sh %s HOST=xxxxxxxxxxxx INFOPATH=/usr/local/info:/usr/share/info:/usr/info XNLSPATH=/usr/X11R6/lib/X11/nls The IBM JDK version is: java version "1.5.0" Java(TM) 2 Runtime Environment, Standard Edition (build pxi32dev-20060511 (SR2)) IBM J9 VM (build 2.3, J2RE 1.5.0 IBM J9 2.3 Linux x86-32 j9vmxi3223-20060504 (JIT enabled) J9VM - 20060501_06428_lHdSMR JIT - 20060428_1800_r8 GC - 20060501_AA) JCL - 20060511a The exception is: [CHECKSTYLE] Collecting checkstyle analysis files... FATAL: sun.io.MalformedInputException java.lang.IllegalStateException: sun.io.MalformedInputException at org.apache.commons.io.LineIterator.hasNext(LineIterator.java:107) at hudson.plugins.checkstyle.util.JavaPackageDetector.detectPackageName (JavaPackageDetector.java:20) at hudson.plugins.checkstyle.util.AbstractPackageDetector.detectPackageName (AbstractPackageDetector.java:20) at hudson.plugins.checkstyle.parser.CheckStyleParser.convert (CheckStyleParser.java:75) at hudson.plugins.checkstyle.parser.CheckStyleParser.parse (CheckStyleParser.java:53) at hudson.plugins.checkstyle.util.FilesParser.parseFile (FilesParser.java:122) at hudson.plugins.checkstyle.util.FilesParser.invoke (FilesParser.java:93) at hudson.plugins.checkstyle.util.FilesParser.invoke (FilesParser.java:22) at hudson.FilePath.act(FilePath.java:317) at hudson.plugins.checkstyle.CheckStylePublisher.perform (CheckStylePublisher.java:77) at hudson.plugins.checkstyle.util.HealthAwarePublisher.perform (HealthAwarePublisher.java:109) at hudson.model.AbstractBuild$AbstractRunner.performAllBuildStep (AbstractBuild.java:309) at hudson.model.AbstractBuild$AbstractRunner.performAllBuildStep (AbstractBuild.java:297) at hudson.model.Build$RunnerImpl.post2(Build.java:118) at hudson.model.AbstractBuild$AbstractRunner.post (AbstractBuild.java:282) at hudson.model.Run.run(Run.java:780) at hudson.model.Build.run(Build.java:85) at hudson.model.ResourceController.execute(ResourceController.java:70) at hudson.model.Executor.run(Executor.java:82)

    Jenkins JIRA | 9 years ago | srbrown1
    java.lang.IllegalStateException: sun.io.MalformedInputException
  3. 0
    samebug tip
    You should define the TestContext class in your classpath
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0
    samebug tip
    In all ActiveAndroid tables there should be a primary key field with the name "Id" (with a capital "I").
  6. 0
    samebug tip
    Update to Grails 3.0.x

    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. java.lang.IllegalStateException

      sun.io.MalformedInputException

      at org.apache.commons.io.LineIterator.hasNext()
    2. Commons IO
      LineIterator.hasNext
      1. org.apache.commons.io.LineIterator.hasNext(LineIterator.java:107)
      1 frame