You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@turbine.apache.org by Angelo Turetta <at...@commit.it> on 2003/12/06 13:20:09 UTC

Re: What kind of magic am I missing ?

----- Original Message ----- 
From: "Stephen McConnell" <mc...@apache.org>
Sent: Saturday, November 22, 2003 6:04 PM


> >4) after all this, the tests still don't run because of the following
error:
> >
> >java.lang.IllegalArgumentException: Bad specification version format
> >'1.0-alpha-4' in 'fulcrum-crypto-api'. (Reason:
> >java.lang.NumberFormatException: For input string: "0-alpha-4")
> > at org.apache.avalon.extension.Extension.<init>(Extension.java:444)
> > at
org.apache.avalon.extension.Extension.getExtension(Extension.java:785)
> > at
org.apache.avalon.extension.Extension.getAvailable(Extension.java:241)
> > at
org.apache.avalon.extension.Extension.getAvailable(Extension.java:278)
> > at
> >
>
> The above exception is a result of a bug in an early version of the
> maven jar plugin.  If you take a look a the jar manifest you will see an
> extensions list that is comma delimited.  The manifest spec states that
> this is space delimited.  The solution here is to update to a more
> recent version of maven - or just update the jar plugin.jelly.
>
> Cheers, Steve.

Sorry to come back after that much time.

I've rebuilt maven from CVS (1.0-rc2-SNAPSHOT), and the error is still
there.
Looking at it again, your explaination doesn't buy me. I've looked at the
manifest for fulcrum-crypto-api and there are not comma separated lists. On
the other hand the error message is clear: NumberFormatException for input
string "0-alpha-4". It seems that somewhere inside avalon extension the
parsing of version strings is not that flexible.

After some browsing I've not been able to find where in the cvs repository
is stored org/apache/avalon/extension/Extension.java, I'd like to take a
look at the code: what module should I checkout ?

Ciao,
Angelo Turetta


---------------------------------------------------------------------
To unsubscribe, e-mail: turbine-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: turbine-dev-help@jakarta.apache.org


Re: What kind of magic am I missing ?

Posted by Stephen McConnell <mc...@apache.org>.

Angelo Turetta wrote:

>----- Original Message ----- 
>From: "Stephen McConnell" <mc...@apache.org>
>Sent: Saturday, November 22, 2003 6:04 PM
>
>
>  
>
>>>4) after all this, the tests still don't run because of the following
>>>      
>>>
>error:
>  
>
>>>java.lang.IllegalArgumentException: Bad specification version format
>>>'1.0-alpha-4' in 'fulcrum-crypto-api'. (Reason:
>>>java.lang.NumberFormatException: For input string: "0-alpha-4")
>>>at org.apache.avalon.extension.Extension.<init>(Extension.java:444)
>>>at
>>>      
>>>
>org.apache.avalon.extension.Extension.getExtension(Extension.java:785)
>  
>
>>>at
>>>      
>>>
>org.apache.avalon.extension.Extension.getAvailable(Extension.java:241)
>  
>
>>>at
>>>      
>>>
>org.apache.avalon.extension.Extension.getAvailable(Extension.java:278)
>  
>
>>>at
>>>
>>>      
>>>
>>The above exception is a result of a bug in an early version of the
>>maven jar plugin.  If you take a look a the jar manifest you will see an
>>extensions list that is comma delimited.  The manifest spec states that
>>this is space delimited.  The solution here is to update to a more
>>recent version of maven - or just update the jar plugin.jelly.
>>
>>Cheers, Steve.
>>    
>>
>
>Sorry to come back after that much time.
>
>I've rebuilt maven from CVS (1.0-rc2-SNAPSHOT), and the error is still
>there.
>Looking at it again, your explaination doesn't buy me. I've looked at the
>manifest for fulcrum-crypto-api and there are not comma separated lists. On
>the other hand the error message is clear: NumberFormatException for input
>string "0-alpha-4". It seems that somewhere inside avalon extension the
>parsing of version strings is not that flexible.
>

 From a hazy memory of the Sun manifest spec. a specification version is 
a dewy decimal.  After all - dependencies declared in a manifest can 
reference a something like 1.2 and this will match an extension with 1.2.3.

My guess is you need to update the specification version property.

>
>After some browsing I've not been able to find where in the cvs repository
>is stored org/apache/avalon/extension/Extension.java, I'd like to take a
>look at the code: what module should I checkout ?
>

avalon/merlin/

The extension handling is in the extensions subproject.

Cheers, Steve.

-- 

Stephen J. McConnell
mailto:mcconnell@apache.org

|------------------------------------------------|
| Magic by Merlin                                |
| Production by Avalon                           |
|                                                |
| http://avalon.apache.org/merlin                |
| http://dpml.net/                               |
|------------------------------------------------|





---------------------------------------------------------------------
To unsubscribe, e-mail: turbine-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: turbine-dev-help@jakarta.apache.org


RE: What kind of magic am I missing ?

Posted by Eric Pugh <ep...@upstate.com>.
You know what, looking at that error again, I seem to recal something on
avalon-dev about a possible bug being fixed..  As I said, check there...

ERic

> -----Original Message-----
> From: Angelo Turetta [mailto:at-turbine@commit.it]
> Sent: Saturday, December 06, 2003 12:20 PM
> To: Turbine Developers List
> Subject: Re: What kind of magic am I missing ?
>
>
>
> ----- Original Message -----
> From: "Stephen McConnell" <mc...@apache.org>
> Sent: Saturday, November 22, 2003 6:04 PM
>
>
> > >4) after all this, the tests still don't run because of
> the following
> error:
> > >
> > >java.lang.IllegalArgumentException: Bad specification
> version format
> > >'1.0-alpha-4' in 'fulcrum-crypto-api'. (Reason:
> > >java.lang.NumberFormatException: For input string: "0-alpha-4")
> > > at
> org.apache.avalon.extension.Extension.<init>(Extension.java:444)
> > > at
> org.apache.avalon.extension.Extension.getExtension(Extension.java:785)
> > > at
> org.apache.avalon.extension.Extension.getAvailable(Extension.java:241)
> > > at
> org.apache.avalon.extension.Extension.getAvailable(Extension.java:278)
> > > at
> > >
> >
> > The above exception is a result of a bug in an early version of the
> > maven jar plugin.  If you take a look a the jar manifest
> you will see an
> > extensions list that is comma delimited.  The manifest spec
> states that
> > this is space delimited.  The solution here is to update to a more
> > recent version of maven - or just update the jar plugin.jelly.
> >
> > Cheers, Steve.
>
> Sorry to come back after that much time.
>
> I've rebuilt maven from CVS (1.0-rc2-SNAPSHOT), and the error is still
> there.
> Looking at it again, your explaination doesn't buy me. I've
> looked at the
> manifest for fulcrum-crypto-api and there are not comma
> separated lists. On
> the other hand the error message is clear:
> NumberFormatException for input
> string "0-alpha-4". It seems that somewhere inside avalon
> extension the
> parsing of version strings is not that flexible.
>
> After some browsing I've not been able to find where in the
> cvs repository
> is stored org/apache/avalon/extension/Extension.java, I'd
> like to take a
> look at the code: what module should I checkout ?
>
> Ciao,
> Angelo Turetta
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: turbine-dev-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: turbine-dev-help@jakarta.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: turbine-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: turbine-dev-help@jakarta.apache.org