You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@karaf.apache.org by "Jamie goodyear (JIRA)" <ji...@apache.org> on 2011/07/07 10:58:17 UTC

[jira] [Closed] (KARAF-128) java.lang.IndexOutOfBoundsException during generation of User Guide pdf blocking release build.

     [ https://issues.apache.org/jira/browse/KARAF-128?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Jamie goodyear closed KARAF-128.
--------------------------------


Fixed in the 2.0.0 release.

> java.lang.IndexOutOfBoundsException during generation of User Guide pdf blocking release build.
> -----------------------------------------------------------------------------------------------
>
>                 Key: KARAF-128
>                 URL: https://issues.apache.org/jira/browse/KARAF-128
>             Project: Karaf
>          Issue Type: Bug
>    Affects Versions: 2.0.0
>            Reporter: Jamie goodyear
>            Assignee: Jamie goodyear
>            Priority: Blocker
>             Fix For: 2.0.0
>
>
> java.lang.IndexOutOfBoundsException during generation of User Guide pdf blocking release build.
> When running mvn release:prepare the generate user guide pdf file goal fails, blocking the completion of a release build. The error we observe is below:
> {code}
> [INFO] [INFO] Executed tasks
> [INFO] [INFO] [antrun:run {execution: preprocess}]
> [INFO] [INFO] Executing tasks
> [INFO] [mkdir] Created dir: /x1/asf/karaf/trunk/manual/target/manual
> [INFO] [get] Getting: https://cwiki.apache.org/confluence/display/KARA /Karaf+Users'+Guide+in+one+page
> [INFO] [get] To: /x1/asf/karaf/trunk/manual/target/manual/manual-1.99.0-SNAPSHOT.temp
> [INFO] [echo] ERROR: The following error occurred while executing this line:
> [INFO] [echo] java.lang.IndexOutOfBoundsException
> [INFO] [INFO] ------------------------------------------------------------------------
> [INFO] [ERROR] BUILD ERROR
> [INFO] [INFO] ------------------------------------------------------------------------
> [INFO] [INFO] An Ant BuildException has occured: The following error occurred while executing this line:
> [INFO] java.lang.IndexOutOfBoundsException
> [INFO]
> {code} 
> he IndexOutOfBoundsException is thrown upon executing this code fragment:
> {code}
> <for list="1,2,3,4,5,6,7,8,9,10" param="letter">
>     <sequential>
>         <replaceregexp file="${manual}.temp" flags="g" match="&quot;/confluence/display/KARAF/([^&quot;]*)\+([^&quot;+]*)&quot;" replace="&quot;/confluence/display/KARAF/\1\2&quot;" />
>     </sequential>
> </for>
> {code} 
> After reading the following discussion:
> https://issues.apache.org/bugzilla/show_bug.cgi?id=19187
> I tried the byline="true" workaround and I can now generate the Karaf manual pdf during maven release prepare.
> Essentially the issue appears to be that there exists some multi-byte character encodings in the karaf user guide on one page file. The ant task encounters an index out of bounds exception since it thinks that number of characters is equal to number of bytes mistakenly. Using byline by-passes the code block that makes this mistake. 

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira