You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@servicemix.apache.org by "Bruce Snyder (JIRA)" <ji...@apache.org> on 2008/01/31 04:58:25 UTC

[jira] Created: (SM-1212) Improve the error thrown from the GenerateServiceAssemblyDescriptorMojo class when the name element is missing from the pom.xml

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

                 Key: SM-1212
                 URL: https://issues.apache.org/activemq/browse/SM-1212
             Project: ServiceMix
          Issue Type: Bug
          Components: tooling
    Affects Versions: 3.2.1, 3.3
            Reporter: Bruce Snyder
         Attachments: GenerateServiceAssemblyDescriptorMojo.patch.txt

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

{panel}
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)
...
{panel}

This error should be more descriptive. 

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (SM-1212) Improve the error thrown from the GenerateServiceAssemblyDescriptorMojo class when the name element is missing from the pom.xml

Posted by "Guillaume Nodet (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/activemq/browse/SM-1212?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=41362#action_41362 ] 

Guillaume Nodet commented on SM-1212:
-------------------------------------

Maybe we could use the <artifactId> instead of the <name> if it is not set ?

> Improve the error thrown from the GenerateServiceAssemblyDescriptorMojo class when the name element is missing from the pom.xml
> -------------------------------------------------------------------------------------------------------------------------------
>
>                 Key: SM-1212
>                 URL: https://issues.apache.org/activemq/browse/SM-1212
>             Project: ServiceMix
>          Issue Type: Bug
>          Components: tooling
>    Affects Versions: 3.2.1, 3.3
>            Reporter: Bruce Snyder
>         Attachments: GenerateServiceAssemblyDescriptorMojo.patch.txt
>
>
> When the name element is missing in a pom.xml the following error is thrown: 
> {panel}
> 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)
> ...
> {panel}
> This error should be more descriptive. 

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Assigned: (SM-1212) Improve the error thrown from the GenerateServiceAssemblyDescriptorMojo class when the name element is missing from the pom.xml

Posted by "Jean-Baptiste Onofré (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/activemq/browse/SM-1212?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Jean-Baptiste Onofré reassigned SM-1212:
----------------------------------------

    Assignee: Jean-Baptiste Onofré

> Improve the error thrown from the GenerateServiceAssemblyDescriptorMojo class when the name element is missing from the pom.xml
> -------------------------------------------------------------------------------------------------------------------------------
>
>                 Key: SM-1212
>                 URL: https://issues.apache.org/activemq/browse/SM-1212
>             Project: ServiceMix
>          Issue Type: Bug
>          Components: tooling
>    Affects Versions: 3.2.1, 3.3
>            Reporter: Bruce Snyder
>            Assignee: Jean-Baptiste Onofré
>         Attachments: GenerateServiceAssemblyDescriptorMojo.patch.txt
>
>
> When the name element is missing in a pom.xml the following error is thrown: 
> {panel}
> 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)
> ...
> {panel}
> This error should be more descriptive. 

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (SM-1212) Improve the error thrown from the GenerateServiceAssemblyDescriptorMojo class when the name element is missing from the pom.xml

Posted by "Bruce Snyder (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/activemq/browse/SM-1212?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Bruce Snyder updated SM-1212:
-----------------------------

    Attachment: GenerateServiceAssemblyDescriptorMojo.patch.txt

> Improve the error thrown from the GenerateServiceAssemblyDescriptorMojo class when the name element is missing from the pom.xml
> -------------------------------------------------------------------------------------------------------------------------------
>
>                 Key: SM-1212
>                 URL: https://issues.apache.org/activemq/browse/SM-1212
>             Project: ServiceMix
>          Issue Type: Bug
>          Components: tooling
>    Affects Versions: 3.2.1, 3.3
>            Reporter: Bruce Snyder
>         Attachments: GenerateServiceAssemblyDescriptorMojo.patch.txt
>
>
> When the name element is missing in a pom.xml the following error is thrown: 
> {panel}
> 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)
> ...
> {panel}
> This error should be more descriptive. 

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Resolved: (SM-1212) Improve the error thrown from the GenerateServiceAssemblyDescriptorMojo class when the name element is missing from the pom.xml

Posted by "Jean-Baptiste Onofré (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/activemq/browse/SM-1212?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Jean-Baptiste Onofré resolved SM-1212.
--------------------------------------

       Resolution: Fixed
    Fix Version/s: jbi-maven-plugin-4.4

Revision 1038967.

> Improve the error thrown from the GenerateServiceAssemblyDescriptorMojo class when the name element is missing from the pom.xml
> -------------------------------------------------------------------------------------------------------------------------------
>
>                 Key: SM-1212
>                 URL: https://issues.apache.org/activemq/browse/SM-1212
>             Project: ServiceMix
>          Issue Type: Bug
>          Components: tooling
>    Affects Versions: 3.2.1, 3.3
>            Reporter: Bruce Snyder
>            Assignee: Jean-Baptiste Onofré
>             Fix For: jbi-maven-plugin-4.4
>
>         Attachments: GenerateServiceAssemblyDescriptorMojo.patch.txt
>
>
> When the name element is missing in a pom.xml the following error is thrown: 
> {panel}
> 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)
> ...
> {panel}
> This error should be more descriptive. 

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.