You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@karaf.apache.org by Roedl Lukas <Lu...@ait.ac.at> on 2020/12/11 21:15:49 UTC
Spring 5.2.9 is missing some imports
Hello JB & everyone,
On one of our Karaf instances we're running into the following error:
java.lang.NoClassDefFoundError: org/springframework/util/function/SingletonSupplier
at org.springframework.jdbc.support.SQLErrorCodeSQLExceptionTranslator.setDataSource(SQLErrorCodeSQLExceptionTranslator.java:140) ~[?:?]
at org.springframework.jdbc.support.SQLErrorCodeSQLExceptionTranslator.<init>(SQLErrorCodeSQLExceptionTranslator.java:102) ~[?:?]
at org.springframework.jdbc.support.JdbcAccessor.getExceptionTranslator(JdbcAccessor.java:122) ~[?:?]
at org.springframework.jdbc.core.JdbcTemplate.translateException(JdbcTemplate.java:1443) ~[?:?]
at org.springframework.jdbc.core.JdbcTemplate.execute(JdbcTemplate.java:633) ~[?:?]
at org.springframework.jdbc.core.JdbcTemplate.query(JdbcTemplate.java:669) ~[?:?]
at org.springframework.jdbc.core.JdbcTemplate.query(JdbcTemplate.java:700) ~[?:?]
at org.springframework.jdbc.core.JdbcTemplate.query(JdbcTemplate.java:712) ~[?:?]
at org.springframework.jdbc.core.JdbcTemplate.query(JdbcTemplate.java:768) ~[?:?]
The Karaf version in use is 4.2.10 with Spring version "5.2.9.RELEASE_1"
A quite similar exception is documented at https://issues.apache.org/jira/browse/SM-4582 and that seems to be fixed already...
Is there a chance to get the Spring version "5.2.9.RELEASE_2" into the next Karaf release 4.2.11? (I searched but haven't found an issue for that for KARAF)
Do you already have a release date for 4.2.11 in mind?
Or should I better rollback to Karaf 4.2.9?
Best regards,
Lukas
Re: Spring 5.2.9 is missing some imports
Posted by Jean-Baptiste Onofre <jb...@nanthrax.net>.
Hi,
Yes, I already fixed it, and yes, Karaf 4.2.11 will upgrade to Spring 5.2.9.RELEASE_2.
https://issues.apache.org/jira/browse/KARAF-6956 <https://issues.apache.org/jira/browse/KARAF-6956>
Regards
JB
> Le 11 déc. 2020 à 22:15, Roedl Lukas <Lu...@ait.ac.at> a écrit :
>
> Hello JB & everyone,
>
>
>
> On one of our Karaf instances we're running into the following error:
>
>
>
> java.lang.NoClassDefFoundError: org/springframework/util/function/SingletonSupplier
>
> at org.springframework.jdbc.support.SQLErrorCodeSQLExceptionTranslator.setDataSource(SQLErrorCodeSQLExceptionTranslator.java:140) ~[?:?]
>
> at org.springframework.jdbc.support.SQLErrorCodeSQLExceptionTranslator.<init>(SQLErrorCodeSQLExceptionTranslator.java:102) ~[?:?]
>
> at org.springframework.jdbc.support.JdbcAccessor.getExceptionTranslator(JdbcAccessor.java:122) ~[?:?]
>
> at org.springframework.jdbc.core.JdbcTemplate.translateException(JdbcTemplate.java:1443) ~[?:?]
>
> at org.springframework.jdbc.core.JdbcTemplate.execute(JdbcTemplate.java:633) ~[?:?]
>
> at org.springframework.jdbc.core.JdbcTemplate.query(JdbcTemplate.java:669) ~[?:?]
>
> at org.springframework.jdbc.core.JdbcTemplate.query(JdbcTemplate.java:700) ~[?:?]
>
> at org.springframework.jdbc.core.JdbcTemplate.query(JdbcTemplate.java:712) ~[?:?]
>
> at org.springframework.jdbc.core.JdbcTemplate.query(JdbcTemplate.java:768) ~[?:?]
>
>
>
> The Karaf version in use is 4.2.10 with Spring version "5.2.9.RELEASE_1"
>
>
>
> A quite similar exception is documented at https://issues.apache.org/jira/browse/SM-4582 and that seems to be fixed already...
>
>
>
> Is there a chance to get the Spring version "5.2.9.RELEASE_2" into the next Karaf release 4.2.11? (I searched but haven't found an issue for that for KARAF)
>
> Do you already have a release date for 4.2.11 in mind?
>
>
>
> Or should I better rollback to Karaf 4.2.9?
>
>
>
> Best regards,
>
> Lukas
>
AW: Spring 5.2.9 is missing some imports
Posted by Roedl Lukas <Lu...@ait.ac.at>.
Thanks a lot for the quick answer & your work!
Best,
Lukas
-----Ursprüngliche Nachricht-----
Von: Jean-Baptiste Onofre <jb...@nanthrax.net>
Gesendet: Samstag, 12. Dezember 2020 06:39
An: dev@karaf.apache.org
Betreff: Re: Spring 5.2.9 is missing some imports
By the way, about the 4.2.11 timeline, I plan it for next week.
Regards
JB
> Le 11 déc. 2020 à 22:15, Roedl Lukas <Lu...@ait.ac.at> a écrit :
>
> Hello JB & everyone,
>
>
>
> On one of our Karaf instances we're running into the following error:
>
>
>
> java.lang.NoClassDefFoundError: org/springframework/util/function/SingletonSupplier
>
> at org.springframework.jdbc.support.SQLErrorCodeSQLExceptionTranslator.setDataSource(SQLErrorCodeSQLExceptionTranslator.java:140) ~[?:?]
>
> at org.springframework.jdbc.support.SQLErrorCodeSQLExceptionTranslator.<init>(SQLErrorCodeSQLExceptionTranslator.java:102) ~[?:?]
>
> at org.springframework.jdbc.support.JdbcAccessor.getExceptionTranslator(JdbcAccessor.java:122) ~[?:?]
>
> at org.springframework.jdbc.core.JdbcTemplate.translateException(JdbcTemplate.java:1443) ~[?:?]
>
> at org.springframework.jdbc.core.JdbcTemplate.execute(JdbcTemplate.java:633) ~[?:?]
>
> at org.springframework.jdbc.core.JdbcTemplate.query(JdbcTemplate.java:669) ~[?:?]
>
> at org.springframework.jdbc.core.JdbcTemplate.query(JdbcTemplate.java:700) ~[?:?]
>
> at org.springframework.jdbc.core.JdbcTemplate.query(JdbcTemplate.java:712) ~[?:?]
>
> at org.springframework.jdbc.core.JdbcTemplate.query(JdbcTemplate.java:768) ~[?:?]
>
>
>
> The Karaf version in use is 4.2.10 with Spring version "5.2.9.RELEASE_1"
>
>
>
> A quite similar exception is documented at https://issues.apache.org/jira/browse/SM-4582 and that seems to be fixed already...
>
>
>
> Is there a chance to get the Spring version "5.2.9.RELEASE_2" into the next Karaf release 4.2.11? (I searched but haven't found an issue for that for KARAF)
>
> Do you already have a release date for 4.2.11 in mind?
>
>
>
> Or should I better rollback to Karaf 4.2.9?
>
>
>
> Best regards,
>
> Lukas
>
Re: Spring 5.2.9 is missing some imports
Posted by Jean-Baptiste Onofre <jb...@nanthrax.net>.
By the way, about the 4.2.11 timeline, I plan it for next week.
Regards
JB
> Le 11 déc. 2020 à 22:15, Roedl Lukas <Lu...@ait.ac.at> a écrit :
>
> Hello JB & everyone,
>
>
>
> On one of our Karaf instances we're running into the following error:
>
>
>
> java.lang.NoClassDefFoundError: org/springframework/util/function/SingletonSupplier
>
> at org.springframework.jdbc.support.SQLErrorCodeSQLExceptionTranslator.setDataSource(SQLErrorCodeSQLExceptionTranslator.java:140) ~[?:?]
>
> at org.springframework.jdbc.support.SQLErrorCodeSQLExceptionTranslator.<init>(SQLErrorCodeSQLExceptionTranslator.java:102) ~[?:?]
>
> at org.springframework.jdbc.support.JdbcAccessor.getExceptionTranslator(JdbcAccessor.java:122) ~[?:?]
>
> at org.springframework.jdbc.core.JdbcTemplate.translateException(JdbcTemplate.java:1443) ~[?:?]
>
> at org.springframework.jdbc.core.JdbcTemplate.execute(JdbcTemplate.java:633) ~[?:?]
>
> at org.springframework.jdbc.core.JdbcTemplate.query(JdbcTemplate.java:669) ~[?:?]
>
> at org.springframework.jdbc.core.JdbcTemplate.query(JdbcTemplate.java:700) ~[?:?]
>
> at org.springframework.jdbc.core.JdbcTemplate.query(JdbcTemplate.java:712) ~[?:?]
>
> at org.springframework.jdbc.core.JdbcTemplate.query(JdbcTemplate.java:768) ~[?:?]
>
>
>
> The Karaf version in use is 4.2.10 with Spring version "5.2.9.RELEASE_1"
>
>
>
> A quite similar exception is documented at https://issues.apache.org/jira/browse/SM-4582 and that seems to be fixed already...
>
>
>
> Is there a chance to get the Spring version "5.2.9.RELEASE_2" into the next Karaf release 4.2.11? (I searched but haven't found an issue for that for KARAF)
>
> Do you already have a release date for 4.2.11 in mind?
>
>
>
> Or should I better rollback to Karaf 4.2.9?
>
>
>
> Best regards,
>
> Lukas
>