Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix properly the warnings at Arlas-server startup #428

Closed
MohamedHamouGisaia opened this issue Mar 19, 2019 · 1 comment
Closed

Fix properly the warnings at Arlas-server startup #428

MohamedHamouGisaia opened this issue Mar 19, 2019 · 1 comment
Labels
type:maintenance Minor change, optimization or refactoring
Milestone

Comments

@MohamedHamouGisaia
Copy link
Member

MohamedHamouGisaia commented Mar 19, 2019

At ARLAS-server startup several warnings are thrown (Reference #419)

WARN  [2019-03-11 18:03:02,500] org.reflections.Reflections: could not get type for name org.zeroturnaround.javarebel.ClassEventListener from any class loader
! java.lang.ClassNotFoundException: org.zeroturnaround.javarebel.ClassEventListener
! at java.net.URLClassLoader.findClass(URLClassLoader.java:381)
! at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
! at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:349)
! at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
! at org.reflections.ReflectionUtils.forName(ReflectionUtils.java:388)
! ... 73 common frames omitted

The warnings are due to the upgrade of dropwizard-swagger to 1.2.x

This link explains the source of problem

This upgrade introduces BeanConfig.
"BeanConfig scanns all classes (not only the ones you set as resource packages) and tries to create class objects for them.

The "problem" is that there are plenty of classes in the resulting shaded jar that are using import statements of classes that are not provided/used by your (or alt least mine) dropwizard application."

@MohamedHamouGisaia MohamedHamouGisaia added the type:maintenance Minor change, optimization or refactoring label Mar 19, 2019
@mbarbet mbarbet added this to To do in ARLAS Explore via automation Dec 2, 2019
@sylvaingaudan sylvaingaudan moved this from To do Backend to To do WUI in ARLAS Explore Dec 2, 2019
@sylvaingaudan sylvaingaudan moved this from To do WUI to To do Backend in ARLAS Explore Dec 2, 2019
@MohamedHamouGisaia MohamedHamouGisaia added this to the 20.7.0 milestone Jan 19, 2022
@MohamedHamouGisaia
Copy link
Member Author

This warning does not exist anymore after upgrade of dropwizard-swagger to 2.0.12-1. Closing.

@alainbodiguel @mbarbet

ARLAS Explore automation moved this from To do Backend to Done Jan 19, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type:maintenance Minor change, optimization or refactoring
Projects
ARLAS Explore
  
Done
Development

No branches or pull requests

1 participant