IndexOutOfBoundsException caused by a simple copy&paste bug in following code.
-------------------------------------------------------------------------------
Key: SCOUT-119
URL: https://issues.apache.org/jira/browse/SCOUT-119
Project: Scout
Issue Type: Bug
Components: Scout Implementation
Affects Versions: 1.2.3
Reporter: Shawn Jiang
Assignee: Kurt T Stam
Attachments: simple_bug.patch
I met a IndexOutOfBoundsException when running jaxr tck with scout
1.2.3-SNAPSHOT.
06-29-2011 20:15:59: SVR-ERROR: 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.ws.scout.util.ScoutUddiV3JaxrHelper.getService(ScoutUddiV3JaxrHelper.java:383)
at
org.apache.ws.scout.util.ScoutUddiV3JaxrHelper.getOrganization(ScoutUddiV3JaxrHelper.java:224)
at
org.apache.ws.scout.registry.BusinessLifeCycleManagerV3Impl.createOrganization(BusinessLifeCycleManagerV3Impl.java:954)
at
org.apache.ws.scout.registry.BusinessQueryManagerV3Impl.getRegistryObjects(BusinessQueryManagerV3Impl.java:855)
I think there's a simple copy&paste bug in following code.
org.apache.ws.scout.util.ScoutUddiV3JaxrHelper.getService(BusinessService,
LifeCycleManager)
{
.....
List<Description> descriptionList = businessService.getDescription();
InternationalString dis = null;
for (int i = 0; i < namesList.size(); i++) {
Description desc = descriptionList.get(i);
if (dis == null) {
dis =
lifeCycleManager.createInternationalString(getLocale(desc.getLang()),
desc.getValue());
} else {
dis.setValue(getLocale(desc.getLang()),
desc.getValue());
}
}
.....
}
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira