[JIRA] (JENKINS-29179) IndexOutOfBounds Exception when viewing live console

2019-02-14 Thread hiri...@gmail.com (JIRA)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Hayato Iriumi commented on  JENKINS-29179  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
  Re: IndexOutOfBounds Exception when viewing live console   
 

  
 
 
 
 

 
 When I have Global Passwords option turned on, it is still happening on the latest build of 2.150.2.   Steps to repro: 
 
Start a job with Global Passwords turned on. 
While the job is running, open Console by clicking on the blue ball on the build that's being run. 
     
 

  
 
 
 
 

 
 
 

 
 
 Add Comment  
 

  
 

  
 
 
 
  
 

  
 
 
 
 

 
 This message was sent by Atlassian Jira (v7.11.2#711002-sha1:fdc329d)  
 

  
 

   





-- 
You received this message because you are subscribed to the Google Groups "Jenkins Issues" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-issues+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[JIRA] (JENKINS-29179) IndexOutOfBounds Exception when viewing live console

2019-02-14 Thread hiri...@gmail.com (JIRA)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Hayato Iriumi updated an issue  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
 Jenkins /  JENKINS-29179  
 
 
  IndexOutOfBounds Exception when viewing live console   
 

  
 
 
 
 

 
Change By: 
 Hayato Iriumi  
 
 
Attachment: 
 2019-02-14_11-18-23.jpg  
 

  
 
 
 
 

 
 
 

 
 
 Add Comment  
 

  
 

  
 
 
 
  
 

  
 
 
 
 

 
 This message was sent by Atlassian Jira (v7.11.2#711002-sha1:fdc329d)  
 

  
 

   





-- 
You received this message because you are subscribed to the Google Groups "Jenkins Issues" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-issues+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[JIRA] (JENKINS-29179) IndexOutOfBounds Exception when viewing live console

2016-12-29 Thread r...@psualum.com (JIRA)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Ryan Fox commented on  JENKINS-29179  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
  Re: IndexOutOfBounds Exception when viewing live console   
 

  
 
 
 
 

 
 I am seeing the same error when viewing the live console for a maven job  
 

  
 
 
 
 

 
 
 

 
 
 Add Comment  
 

  
 

  
 
 
 
  
 

  
 
 
 
 

 
 This message was sent by Atlassian JIRA (v7.1.7#71011-sha1:2526d7c)  
 
 

 
   
 

  
 

  
 

   





-- 
You received this message because you are subscribed to the Google Groups "Jenkins Issues" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-issues+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[JIRA] (JENKINS-29179) IndexOutOfBounds Exception when viewing live console

2016-09-24 Thread o.v.nenas...@gmail.com (JIRA)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Oleg Nenashev commented on  JENKINS-29179  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
  Re: IndexOutOfBounds Exception when viewing live console   
 

  
 
 
 
 

 
 Ideally needs a fix in the Jenkins core. Would be useful to get more info about EnvInject configuration causing it  
 

  
 
 
 
 

 
 
 

 
 
 Add Comment  
 

  
 

  
 
 
 
  
 

  
 
 
 
 

 
 This message was sent by Atlassian JIRA (v7.1.7#71011-sha1:2526d7c)  
 
 

 
   
 

  
 

  
 

   





-- 
You received this message because you are subscribed to the Google Groups "Jenkins Issues" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-issues+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[JIRA] (JENKINS-29179) IndexOutOfBounds Exception when viewing live console

2016-09-22 Thread konra...@gmx.de (JIRA)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Konrad Windszus commented on  JENKINS-29179  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
  Re: IndexOutOfBounds Exception when viewing live console   
 

  
 
 
 
 

 
 We also experience this exception while the build is running. The exact stacktrace for Jenkins 2.7.1 LTS looks like this 

 


java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
at java.lang.Thread.run(Thread.java:744)
Caused by: java.lang.IndexOutOfBoundsException
at hudson.MarkupText.rangeCheck(MarkupText.java:276)
at hudson.MarkupText.addMarkup(MarkupText.java:258)
at hudson.tasks._maven.Maven3MojoNote.annotate(Maven3MojoNote.java:57)
at hudson.console.ConsoleAnnotationOutputStream$1.annotate(ConsoleAnnotationOutputStream.java:115)
at hudson.console.ConsoleAnnotator$1Aggregator.annotate(ConsoleAnnotator.java:111)
at hudson.console.ConsoleAnnotationOutputStream.eol(ConsoleAnnotationOutputStream.java:145)
at hudson.console.LineTransformationOutputStream.eol(LineTransformationOutputStream.java:60)
at hudson.console.LineTransformationOutputStream.write(LineTransformationOutputStream.java:56)
at hudson.console.LineTransformationOutputStream.write(LineTransformationOutputStream.java:74)
at org.apache.commons.io.output.ProxyOutputStream.write(ProxyOutputStream.java:90)
at org.kohsuke.stapler.framework.io.LargeText$HeadMark.moveTo(LargeText.java:312)
at org.kohsuke.stapler.framework.io.LargeText.writeLogTo(LargeText.java:227)
at hudson.console.AnnotatedLargeText.writeHtmlTo(AnnotatedLargeText.java:168)
at hudson.console.AnnotatedLargeText.writeLogTo(AnnotatedLargeText.java:143)
at org.kohsuke.stapler.framework.io.LargeText.doProgressText(LargeText.java:262)
at hudson.console.AnnotatedLargeText.doProgressiveHtml(AnnotatedLargeText.java:91)
at sun.reflect.GeneratedMethodAccessor366.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
at org.kohsuke.stapler.Function$InstanceFunction.invoke(Function.java:324)
at org.kohsuke.stapler.Function.bindAndInvoke(Function.java:167)
at org.kohsuke.stapler.Function.bindAndInvokeAndServeResponse(Function.java:100)
at org.kohsuke.stapler.MetaClass$1.doDispatch(MetaClass.java:124)
at org.kohsuke.stapler.NameBasedDispatcher.dispatch(NameBasedDispatcher.java:58)
at org.kohsuke.stapler.Stapler.tryInvoke(Stapler.java:746)
... 72 more
 

 Once the build is done, the error disappears.  Since the validation fails for the startPos parameter given in https://github.com/kohsuke/hudson/blob/master/core/src/main/java/hudson/MarkupText.java#L258, and it is set to 7 in https://github.com/kohsuke/hudson/blob/master/core/src/main/java/hudson/tasks/_maven/Maven3MojoNote.java#L57 only the 2nd condition in https://github.com/kohsuke/hudson/blob/master/core/src/main/java/hudson/MarkupText.java#L275 must evaluate to false, so 7 is obviously less than or equal to text.length. Since I don't know where the MarkupText is coming from in https://github.com/kohsuke/hudson/blob/master/core/src/main/java/hudson/tasks/_maven/Maven3MojoNote.java#L56 nor do I understand while the startPos is set to 7 instead of 0 I would suggest to at least introduce a better exception message in https://github.com/kohsuke/hudson/blob/master/core/src/main/java/hudson/MarkupText.java#L276 t