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

The classes command fails with package-less classes

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 4.2.1, 4.2.2, 4.2.3, 4.2.4, 4.2.5, 4.2.6
    • Fix Version/s: 4.3.0, 4.2.7
    • Component/s: karaf
    • Labels:
      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

          Issue Links

            Activity

              People

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

                Dates

                • Created:
                  Updated:
                  Resolved: