Uploaded image for project: 'Karaf'
  1. Karaf
  2. KARAF-6351

The classes command fails with package-less classes

Attach filesAttach ScreenshotVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • 4.2.1, 4.2.2, 4.2.3, 4.2.4, 4.2.5, 4.2.6
    • 4.3.0, 4.2.7
    • karaf
    • None

    Description

      Running

      classes

      often produces errors of the form

       

      Unable to execute command on bundle 451: String index out of range: -1

      Looking at the logs shows

              Caused by: java.lang.StringIndexOutOfBoundsException: String index out of range: -1
                      at java.lang.String.substring(String.java:1967) ~[?:?]
                      at org.apache.karaf.bundle.command.Classes.isExported(Classes.java:81) ~[?:?]
                      at org.apache.karaf.bundle.command.Classes.executeOnBundle(Classes.java:67) ~[?:?]

      Attachments

        Activity

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

          People

            jbonofre Jean-Baptiste Onofré
            skitt Stephen Kitt
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment