commons-text upgrade 1.10.0 -> 1.11.0 java.lang.NoSuchMethodError

2023-10-30 Thread Greg Huber
Hello, Upgrading  commons-text  to 1.11.0,  I get now this error SEVERE: Servlet.service() for servlet [PageServlet] threw exception java.lang.NoSuchMethodError: 'org.apache.commons.lang3.Range org.apache.commons.lang3.Range.of(java.lang.Comparable, java.lang.Comparable)'     at org.apache

Re: Updating Apache Commons DBCP 2.10.0

2023-09-27 Thread Greg Huber
26, 2023, 5:00 AM Greg Huber wrote: If I am understanding this correctly, I replace jakarta.transaction jakarta.transaction-api 1.3.1 with org.apache.geronimo.specs geronimo-jta_1.1_spec 1.1.1 true in the source of 2.10.0 pom.x

Re: [ANNOUNCEMENT] Apache Commons DBCP 2.10.0

2023-09-26 Thread Greg Huber
imo-jta_1.1_spec 1.1.1 true Then recompile DBCP from 2.10 sources and test (just use mvn clean package from the root of an extract of the source distribution). Phil On Mon, Sep 25, 2023 at 12:44 AM Greg Huber wrote: >> does your code maybe bring in the 2.0 jakarta spe

Re: [ANNOUNCEMENT] Apache Commons DBCP 2.10.0

2023-09-25 Thread Greg Huber
te: On Sun, Sep 24, 2023 at 10:28 AM Greg Huber wrote: Forgot to add, I use hibernate 6. I suspect this is a side effect of the change to use the jakarta spec jar In 2.10, we have jakarta.transaction jakarta.transaction-api 1.3.1 vs org.apache.geronimo.specs

Re: [ANNOUNCEMENT] Apache Commons DBCP 2.10.0

2023-09-24 Thread Greg Huber
Forgot to add, I use hibernate 6. Cheers. On Sun, 24 Sept 2023 at 12:49, Gary Gregory wrote: > What else has changed in your app? > > Gary > > On Sun, Sep 24, 2023 at 5:13 AM Greg Huber wrote: > > > > Hello, > > > > On upgrading from 2.9.0 I get

Re: [ANNOUNCEMENT] Apache Commons DBCP 2.10.0

2023-09-24 Thread Greg Huber
> What else has changed in your app? Nothing, if I go back to 2.9.0 it works. On Sun, 24 Sept 2023 at 12:49, Gary Gregory wrote: > What else has changed in your app? > > Gary > > On Sun, Sep 24, 2023 at 5:13 AM Greg Huber wrote: > > > > Hello, > > &g

Re: [ANNOUNCEMENT] Apache Commons DBCP 2.10.0

2023-09-24 Thread Greg Huber
Hello, On upgrading from 2.9.0 I get this message and my class won't compile. I get this error The type jakarta.transaction.Synchronization cannot be resolved. It is indirectly referenced from required type org.hibernate.context.internal.ThreadLocalSessionContext.CleanupSync I am on : open

Re: commons-dbcp2 and commons-pool2 problems when used in a Spring context with Java 11

2020-08-20 Thread Greg Huber
I find org.springframework.context.ApplicationContextInitializer useful on startup, ie setting profiles etc.  Maybe worth a look. public class MyApplicationContextInitializer implements ApplicationContextInitializer {   public void initialize(ConfigurableApplicationContext applicationContext)

commons-validator and commons-beanutils 1.9.2

2018-08-29 Thread Greg Huber
Hello, Noticed that commons-validator uses commons-beanutils 1.9.2, there is 1.9.3 available without the vulnerable commons-collections 3.2.1. Although commons-validator uses commons-collections 3.2.2 (overrides the 3.2.1). I still get the commons-beanutils 1.9.2. Will commons-validator be upda

[text] - using RandomStringGenerator for alpha numeric

2017-06-27 Thread Greg Huber
​Hello, How would I use org.apache.commons.text.RandomStringGenerator to replace the RandomStringUtils alpha numeric number? String text = RandomStringUtils.randomAlphanumeric(num); The docs only show how to use a-z : RandomStringGenerator generator = new RandomStringGenerator.B