ServiceMix
  1. ServiceMix
  2. SM-1212

Improve the error thrown from the GenerateServiceAssemblyDescriptorMojo class when the name element is missing from the pom.xml

    Details

    • Type: Bug Bug
    • Status: Resolved
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 3.2.1, 3.3
    • Fix Version/s: jbi-maven-plugin-4.4
    • Component/s: tooling
    • Labels:
      None
    • Patch Info:
      Patch Available

      Description

      When the name element is missing in a pom.xml the following error is thrown:

      java.lang.StringIndexOutOfBoundsException: String index out of range: -1
      at java.lang.String.substring(String.java:1768)
      at
      org.apache.servicemix.maven.plugin.jbi.GenerateServiceAssemblyDescriptorMojo.generateJbiDescriptor(GenerateServiceAssemblyDescriptorMojo.java:212)
      at
      org.apache.servicemix.maven.plugin.jbi.GenerateServiceAssemblyDescriptorMojo.execute(GenerateServiceAssemblyDescriptorMojo.java:158)
      at
      org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:447)
      ...

      This error should be more descriptive.

        Activity

        Jeff Turner made changes -
        Project Import Sat Nov 27 00:46:19 EST 2010 [ 1290836779991 ]
        Jean-Baptiste Onofré made changes -
        Fix Version/s jbi-maven-plugin-4.4 [ 12300 ]
        Resolution Fixed [ 1 ]
        Status Open [ 1 ] Resolved [ 5 ]
        Jean-Baptiste Onofré made changes -
        Assignee Jean-Baptiste Onofré [ jb@nanthrax.net ]
        Bruce Snyder made changes -
        Field Original Value New Value
        Attachment GenerateServiceAssemblyDescriptorMojo.patch.txt [ 16093 ]
        Bruce Snyder created issue -

          People

          • Assignee:
            Jean-Baptiste Onofré
            Reporter:
            Bruce Snyder
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development