spring - IllegalAccessError in startup calling DefaultConversionService.addCollectionConverters() -


just started getting illegalaccesserror in spring boot startup.

exception in thread "main" java.lang.illegalaccesserror: tried access method org.springframework.core.convert.support.defaultconversionservice.addcollectionconverters(lorg/springframework/core/convert/converter/converterregistry;)v class org.springframework.boot.bind.relaxedconversionservice     @ org.springframework.boot.bind.relaxedconversionservice.<init>(relaxedconversionservice.java:52)     @ org.springframework.boot.bind.relaxeddatabinder.modifyproperties(relaxeddatabinder.java:148)     @ org.springframework.boot.bind.relaxeddatabinder.dobind(relaxeddatabinder.java:128)     @ org.springframework.validation.databinder.bind(databinder.java:715)     @ org.springframework.boot.bind.propertiesconfigurationfactory.dobindpropertiestotarget(propertiesconfigurationfactory.java:269)     @ org.springframework.boot.bind.propertiesconfigurationfactory.bindpropertiestotarget(propertiesconfigurationfactory.java:241)     @ org.springframework.boot.context.config.configfileapplicationlistener.bindtospringapplication(configfileapplicationlistener.java:230)     @ org.springframework.boot.context.config.configfileapplicationlistener.postprocessenvironment(configfileapplicationlistener.java:181)     @ org.springframework.boot.context.config.configfileapplicationlistener.onapplicationenvironmentpreparedevent(configfileapplicationlistener.java:166)     @ org.springframework.boot.context.config.configfileapplicationlistener.onapplicationevent(configfileapplicationlistener.java:152)     @ org.springframework.context.event.simpleapplicationeventmulticaster.invokelistener(simpleapplicationeventmulticaster.java:163)     @ org.springframework.context.event.simpleapplicationeventmulticaster.multicastevent(simpleapplicationeventmulticaster.java:136)     @ org.springframework.context.event.simpleapplicationeventmulticaster.multicastevent(simpleapplicationeventmulticaster.java:119)     @ org.springframework.boot.context.event.eventpublishingrunlistener.publishevent(eventpublishingrunlistener.java:111)     @ org.springframework.boot.context.event.eventpublishingrunlistener.environmentprepared(eventpublishingrunlistener.java:65)     @ org.springframework.boot.springapplicationrunlisteners.environmentprepared(springapplicationrunlisteners.java:54)     @ org.springframework.boot.springapplication.dorun(springapplication.java:325)     @ org.springframework.boot.springapplication.run(springapplication.java:305)     @ org.springframework.boot.springapplication.run(springapplication.java:1124)     @ org.springframework.boot.springapplication.run(springapplication.java:1113)     @ biz.ianw.lancheckerreloader.application.main(application.java:23) 

this appears similar issue spring boot while upgrading 1.3.0.release have not overridden spring version:

<parent>     <groupid>org.springframework.boot</groupid>     <artifactid>spring-boot-starter-parent</artifactid>     <version>1.3.1.release</version> </parent>  <dependencies>      <dependency>         <groupid>org.springframework.boot</groupid>         <artifactid>spring-boot-starter</artifactid>     </dependency>      <dependency>         <groupid>org.springframework.boot</groupid>         <artifactid>spring-boot-starter-test</artifactid>         <scope>test</scope>     </dependency>      <dependency>         <groupid>org.jsoup</groupid>         <artifactid>jsoup</artifactid>         <version>1.8.3</version>     </dependency>      <dependency>         <groupid>commons-io</groupid>         <artifactid>commons-io</artifactid>         <version>2.4</version>     </dependency>      <dependency>         <groupid>org.apache.commons</groupid>         <artifactid>commons-lang3</artifactid>         <version>3.4</version>     </dependency> </dependencies> 

spring 4.2.4-release appears have selected, contains defaultconversionservice.addcollectionconverters() method.

i've backed out code changes last couple of hours still getting this.

any suggestions welcome!

i had same problem using spring boot 1.3.3.release , spring framework 4.2.2.release. have tried upgrade spring framework version 1 one , using spring framework 4.2.5.release problem solved.

hope helps.


Comments