[
https://issues.apache.org/jira/browse/ODE-743?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Terry Mueller updated ODE-743:
------------------------------
Attachment: DeploymentBrowser.patch
Attached patch
> Patch for java.lang.IndexOutOfBoundsException: Index: 0, Size: 0 in
> DeploymentBrowser
> -------------------------------------------------------------------------------------
>
> Key: ODE-743
> URL: https://issues.apache.org/jira/browse/ODE-743
> Project: ODE
> Issue Type: Bug
> Components: Axis2 Integration
> Affects Versions: 2.0-beta3
> Environment: Path: .
> URL: http://svn.apache.org/repos/asf/ode/trunk
> Repository Root: http://svn.apache.org/repos/asf
> Repository UUID: 13f79535-47bb-0310-9956-ffa450edef68
> Revision: 890643
> Node Kind: directory
> Schedule: normal
> Last Changed Author: midon
> Last Changed Rev: 890434
> Last Changed Date: 2009-12-15 02:43:21 +0800 (Tue, 15 Dec 2009)
> Reporter: Terry Mueller
> Attachments: DeploymentBrowser.patch
>
>
> If process contains wsdl without any association processes;
> java.lang.IndexOutOfBoundsException: Index: 0, Size: 0
> at java.util.ArrayList.RangeCheck(ArrayList.java:547)
> at java.util.ArrayList.get(ArrayList.java:322)
> at
> org.apache.ode.axis2.service.DeploymentBrowser$7.render(DeploymentBrowser.java:139)
> at
> org.apache.ode.axis2.service.DeploymentBrowser.renderHtml(DeploymentBrowser.java:256)
> at
> org.apache.ode.axis2.service.DeploymentBrowser.doFilter(DeploymentBrowser.java:135)
> at
> org.apache.ode.axis2.hooks.ODEAxisServlet.doGet(ODEAxisServlet.java:63)
> This is fixed by:
> Index: axis2/src/main/java/org/apache/ode/axis2/service/DeploymentBrowser.java
> ===================================================================
> --- axis2/src/main/java/org/apache/ode/axis2/service/DeploymentBrowser.java
> (revision 890643)
> +++ axis2/src/main/java/org/apache/ode/axis2/service/DeploymentBrowser.java
> (working copy)
> @@ -135,7 +135,7 @@
> renderHtml(response, "Files in Bundle " +
> segments[1], new DocBody() {
> public void render(Writer out) throws
> IOException {
> List<QName> processes =
> _store.listProcesses(segments[1]);
> - if (processes != null) {
> + if (processes != null && processes.size() >
> 0) {
> List<File> files =
> _store.getProcessConfiguration(processes.get(0)).getFiles();
> for (File file : files) {
> String relativePath =
> file.getPath().substring(file.getPath()
> @@ -149,7 +149,7 @@
> });
> } else if (segments.length > 2) {
> List<QName> processes =
> _store.listProcesses(segments[1]);
> - if (processes != null) {
> + if (processes != null && processes.size() > 0) {
> List<File> files =
> _store.getProcessConfiguration(processes.get(0)).getFiles();
> for (final File file : files) {
> String relativePath =
> requestURI.substring(deplUri + 12 + 9 + segments[1].length());
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.