You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@commons.apache.org by Christopher Schultz <ch...@christopherschultz.net> on 2021/04/21 20:05:44 UTC

[beanutils] Optional dependency on commons-collections (v3)

All,

I'm trying to debug a problem in a deployment of a product where the 
vendor has removed commons-collections-3.2.2.jar but kept 
commons-beanutils-1.9.3.jar.

We are getting NoClassDefFoundErrors in 
org.apache.commons.beanutils.PropertyUtilsBean.getPropertyDescriptor

beanutils lists commons-collections (3.2.2) as an "optional" (runtime) 
dependency, and I'm wondering under what conditions it's actually 
necessary. I think I've found one (!) but what are the others?

-chris

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@commons.apache.org
For additional commands, e-mail: user-help@commons.apache.org


Re: [beanutils] Optional dependency on commons-collections (v3)

Posted by sebb <se...@gmail.com>.
On Thu, 22 Apr 2021 at 22:32, Alex Herbert <al...@gmail.com> wrote:
>
> On Thu, 22 Apr 2021 at 22:19, Christopher Schultz <
> chris@christopherschultz.net> wrote:
>
> > Gary,
> >
> > On 4/21/21 16:18, Gary Gregory wrote:
> > > You can scan the source files for import statements, of Commons
> > Collections
> > > packages, then see where those files/types are used from, then see where
> > > those files/typee are used from, and so on.
> >
> > I'd be happy to scan the source for, but I followed the instructions on
> > the web site[1] for getting the source code from git, but they don't
> > actually work.
> >
> > $ git clone https://gitbox.apache.org/repos/asf?p=commons-beanutils.git
> > Cloning into 'asf?p=commons-beanutils'...
> > fatal:
> > https://gitbox.apache.org/repos/asf?p=commons-beanutils.git/info/refs
> > not valid: could not determine hash algorithm; is this a git repository?
> >
> >
> It should be:
>
>
> git clone https://gitbox.apache.org/repos/asf/commons-beanutils.git

That works, but if you follow the URL it actually redirects to:

curl -I https://gitbox.apache.org/repos/asf/commons-beanutils.git
..
Location: https://gitbox.apache.org/repos/asf?p=commons-beanutils.git

The version with the ?p= qualifier only seems to be suitable for
browsing, whereas the other works for both clone and browsing.

I expect several of the Commons components have the same issue.


>
> You can also use the github mirror:
>
> https://github.com/apache/commons-beanutils
>
>
> > -chris
> >
> > [1] http://commons.apache.org/proper/commons-beanutils/scm.html
> >
> > > On Wed, Apr 21, 2021, 16:06 Christopher Schultz <
> > > chris@christopherschultz.net> wrote:
> > >
> > >> All,
> > >>
> > >> I'm trying to debug a problem in a deployment of a product where the
> > >> vendor has removed commons-collections-3.2.2.jar but kept
> > >> commons-beanutils-1.9.3.jar.
> > >>
> > >> We are getting NoClassDefFoundErrors in
> > >> org.apache.commons.beanutils.PropertyUtilsBean.getPropertyDescriptor
> > >>
> > >> beanutils lists commons-collections (3.2.2) as an "optional" (runtime)
> > >> dependency, and I'm wondering under what conditions it's actually
> > >> necessary. I think I've found one (!) but what are the others?
> > >>
> > >> -chris
> > >>
> > >> ---------------------------------------------------------------------
> > >> To unsubscribe, e-mail: user-unsubscribe@commons.apache.org
> > >> For additional commands, e-mail: user-help@commons.apache.org
> > >>
> > >>
> > >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: user-unsubscribe@commons.apache.org
> > For additional commands, e-mail: user-help@commons.apache.org
> >
> >

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@commons.apache.org
For additional commands, e-mail: user-help@commons.apache.org


Re: [beanutils] Optional dependency on commons-collections (v3)

Posted by Alex Herbert <al...@gmail.com>.
On Thu, 22 Apr 2021 at 22:19, Christopher Schultz <
chris@christopherschultz.net> wrote:

> Gary,
>
> On 4/21/21 16:18, Gary Gregory wrote:
> > You can scan the source files for import statements, of Commons
> Collections
> > packages, then see where those files/types are used from, then see where
> > those files/typee are used from, and so on.
>
> I'd be happy to scan the source for, but I followed the instructions on
> the web site[1] for getting the source code from git, but they don't
> actually work.
>
> $ git clone https://gitbox.apache.org/repos/asf?p=commons-beanutils.git
> Cloning into 'asf?p=commons-beanutils'...
> fatal:
> https://gitbox.apache.org/repos/asf?p=commons-beanutils.git/info/refs
> not valid: could not determine hash algorithm; is this a git repository?
>
>
It should be:


git clone https://gitbox.apache.org/repos/asf/commons-beanutils.git


You can also use the github mirror:

https://github.com/apache/commons-beanutils


> -chris
>
> [1] http://commons.apache.org/proper/commons-beanutils/scm.html
>
> > On Wed, Apr 21, 2021, 16:06 Christopher Schultz <
> > chris@christopherschultz.net> wrote:
> >
> >> All,
> >>
> >> I'm trying to debug a problem in a deployment of a product where the
> >> vendor has removed commons-collections-3.2.2.jar but kept
> >> commons-beanutils-1.9.3.jar.
> >>
> >> We are getting NoClassDefFoundErrors in
> >> org.apache.commons.beanutils.PropertyUtilsBean.getPropertyDescriptor
> >>
> >> beanutils lists commons-collections (3.2.2) as an "optional" (runtime)
> >> dependency, and I'm wondering under what conditions it's actually
> >> necessary. I think I've found one (!) but what are the others?
> >>
> >> -chris
> >>
> >> ---------------------------------------------------------------------
> >> To unsubscribe, e-mail: user-unsubscribe@commons.apache.org
> >> For additional commands, e-mail: user-help@commons.apache.org
> >>
> >>
> >
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@commons.apache.org
> For additional commands, e-mail: user-help@commons.apache.org
>
>

Re: [beanutils] Optional dependency on commons-collections (v3)

Posted by Christopher Schultz <ch...@christopherschultz.net>.
Gary,

On 4/21/21 16:18, Gary Gregory wrote:
> You can scan the source files for import statements, of Commons Collections
> packages, then see where those files/types are used from, then see where
> those files/typee are used from, and so on.

I'd be happy to scan the source for, but I followed the instructions on 
the web site[1] for getting the source code from git, but they don't 
actually work.

$ git clone https://gitbox.apache.org/repos/asf?p=commons-beanutils.git
Cloning into 'asf?p=commons-beanutils'...
fatal: 
https://gitbox.apache.org/repos/asf?p=commons-beanutils.git/info/refs 
not valid: could not determine hash algorithm; is this a git repository?

-chris

[1] http://commons.apache.org/proper/commons-beanutils/scm.html

> On Wed, Apr 21, 2021, 16:06 Christopher Schultz <
> chris@christopherschultz.net> wrote:
> 
>> All,
>>
>> I'm trying to debug a problem in a deployment of a product where the
>> vendor has removed commons-collections-3.2.2.jar but kept
>> commons-beanutils-1.9.3.jar.
>>
>> We are getting NoClassDefFoundErrors in
>> org.apache.commons.beanutils.PropertyUtilsBean.getPropertyDescriptor
>>
>> beanutils lists commons-collections (3.2.2) as an "optional" (runtime)
>> dependency, and I'm wondering under what conditions it's actually
>> necessary. I think I've found one (!) but what are the others?
>>
>> -chris
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: user-unsubscribe@commons.apache.org
>> For additional commands, e-mail: user-help@commons.apache.org
>>
>>
> 

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@commons.apache.org
For additional commands, e-mail: user-help@commons.apache.org


Re: [beanutils] Optional dependency on commons-collections (v3)

Posted by Gary Gregory <ga...@gmail.com>.
You can scan the source files for import statements, of Commons Collections
packages, then see where those files/types are used from, then see where
those files/typee are used from, and so on.

Gary


On Wed, Apr 21, 2021, 16:06 Christopher Schultz <
chris@christopherschultz.net> wrote:

> All,
>
> I'm trying to debug a problem in a deployment of a product where the
> vendor has removed commons-collections-3.2.2.jar but kept
> commons-beanutils-1.9.3.jar.
>
> We are getting NoClassDefFoundErrors in
> org.apache.commons.beanutils.PropertyUtilsBean.getPropertyDescriptor
>
> beanutils lists commons-collections (3.2.2) as an "optional" (runtime)
> dependency, and I'm wondering under what conditions it's actually
> necessary. I think I've found one (!) but what are the others?
>
> -chris
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@commons.apache.org
> For additional commands, e-mail: user-help@commons.apache.org
>
>