Uploaded image for project: 'Geronimo'
  1. Geronimo
  2. GERONIMO-715

'StringIndexOutOfBoundsException' in 'org.openejb.corba.compiler.PortableStubCompiler'

VotersWatch issueWatchersLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 1.0-M4
    • 1.0-M4
    • OpenEJB
    • None
    • up to date Geronimo snapshot (03.07.2005)

    Description

      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))) {

      Attachments

        1. reallybigpet_cmp.ear
          301 kB
          M.Oliver Scheele

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            ammulder Aaron Mulder
            mos M.Oliver Scheele
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment