Return-Path: Delivered-To: apmail-geronimo-dev-archive@www.apache.org Received: (qmail 54766 invoked from network); 13 Jul 2005 02:46:40 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 13 Jul 2005 02:46:40 -0000 Received: (qmail 28458 invoked by uid 500); 13 Jul 2005 02:46:31 -0000 Delivered-To: apmail-geronimo-dev-archive@geronimo.apache.org Received: (qmail 27794 invoked by uid 500); 13 Jul 2005 02:46:29 -0000 Mailing-List: contact dev-help@geronimo.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: List-Post: Reply-To: dev@geronimo.apache.org List-Id: Delivered-To: mailing list dev@geronimo.apache.org Received: (qmail 27701 invoked by uid 99); 13 Jul 2005 02:46:29 -0000 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests=SPF_FAIL X-Spam-Check-By: apache.org Received: from [192.87.106.226] (HELO ajax.apache.org) (192.87.106.226) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 12 Jul 2005 19:46:17 -0700 Received: from ajax.apache.org (ajax.apache.org [127.0.0.1]) by ajax.apache.org (Postfix) with ESMTP id 67C061B for ; Wed, 13 Jul 2005 04:46:14 +0200 (CEST) Message-ID: <365586656.1121222774423.JavaMail.jira@ajax.apache.org> Date: Wed, 13 Jul 2005 04:46:14 +0200 (CEST) From: "Aaron Mulder (JIRA)" To: dev@geronimo.apache.org Subject: [jira] Closed: (GERONIMO-715) 'StringIndexOutOfBoundsException' in 'org.openejb.corba.compiler.PortableStubCompiler' In-Reply-To: <712180694.1120662025229.JavaMail.jira@ajax.apache.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N [ http://issues.apache.org/jira/browse/GERONIMO-715?page=all ] Aaron Mulder closed GERONIMO-715: --------------------------------- Fix Version: 1.0-M4 Resolution: Fixed Assign To: Aaron Mulder My confusion was caused by the large number of getId methods in test CMP entities. As it happens, none of them were in EJBs with a remote interface. Once I added a getId to a bean with a remote interface, the problem manifested. > 'StringIndexOutOfBoundsException' in 'org.openejb.corba.compiler.PortableStubCompiler' > -------------------------------------------------------------------------------------- > > Key: GERONIMO-715 > URL: http://issues.apache.org/jira/browse/GERONIMO-715 > Project: Geronimo > Type: Bug > Components: OpenEJB > Versions: 1.0-M4 > Environment: up to date Geronimo snapshot (03.07.2005) > Reporter: M.Oliver Scheele > Assignee: Aaron Mulder > Fix For: 1.0-M4 > Attachments: reallybigpet_cmp.ear > > Just played around the first time with Geronimo and the OpenEJB service. > First of all: Thanks for this great project and the hard work! > During deployment of a simple CMP EJB project I got the following exception: > 15:58:00,318 DEBUG [Deployer] Deployment failed: plan=null, module=D:\projects\geronimo\deploy_tests\target\geronimo\myproject.ear > .......... > Caused by: java.lang.StringIndexOutOfBoundsException: String index out of range: 5 > at java.lang.String.charAt(String.java:444) > at org.openejb.corba.compiler.PortableStubCompiler.createIiopOperations(PortableStubCompiler.java:198) > ........ > During the last patch there seems to be introduced a small bug. > Lock at line 198 in class 'org.openejb.corba.compiler.PortableStubCompiler' inside the 'openejb-core' project: > >> if (methodName.length() > 4 && Character.isUpperCase(methodName.charAt(4 + 1))) { > That's not very friendly when using 5-character strings. ;) > It should be something like this: > >> if (methodName.length() > 5 && Character.isUpperCase(methodName.charAt(4 + 1))) { -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira