karaf-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jamie goodyear (JIRA)" <j...@apache.org>
Subject [jira] Resolved: (KARAF-128) java.lang.IndexOutOfBoundsException during generation of User Guide pdf blocking release build.
Date Sun, 18 Jul 2010 21:06:50 GMT

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

Jamie goodyear resolved KARAF-128.
----------------------------------

    Resolution: Fixed

> 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.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message