You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@juddi.apache.org by "Shawn Jiang (JIRA)" <sc...@ws.apache.org> on 2011/06/29 14:29:28 UTC
[jira] [Updated] (SCOUT-119) IndexOutOfBoundsException caused by a
simple copy&paste bug in following code.
[ https://issues.apache.org/jira/browse/SCOUT-119?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Shawn Jiang updated SCOUT-119:
------------------------------
Attachment: simple_bug.patch
> 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