Discussion:
Problems with update of wicket from 8.0.0 to 8.1.0
Илья Нарыжный
2018-11-01 07:34:45 UTC
Permalink
Hello, wicket users,

After updating just of wicket version in our projects from 8.0.0 to 8.1.0
we started to see the following exception during rendering time.
Nothing was changed except wicket version. Do you have any suggestions what
hidden dependencies and etc. might lead to this issue?

java.lang.NoClassDefFoundError: Could not initialize class
net.sf.cglib.proxy.Enhancer
at
org.apache.wicket.proxy.LazyInitProxyFactory.createProxy(LazyInitProxyFactory.java:183)
at
org.apache.wicket.guice.GuiceFieldValueFactory.getFieldValue(GuiceFieldValueFactory.java:88)
at org.apache.wicket.injection.Injector.inject(Injector.java:111)
at
org.apache.wicket.guice.GuiceComponentInjector.inject(GuiceComponentInjector.java:122)
at
org.apache.wicket.guice.GuiceComponentInjector.onInstantiation(GuiceComponentInjector.java:128)
at
org.apache.wicket.application.ComponentInstantiationListenerCollection$1.notify(ComponentInstantiationListenerCollection.java:38)
at
org.apache.wicket.application.ComponentInstantiationListenerCollection$1.notify(ComponentInstantiationListenerCollection.java:34)
at
org.apache.wicket.util.listener.ListenerCollection.notify(ListenerCollection.java:80)
at
org.apache.wicket.application.ComponentInstantiationListenerCollection.onInstantiation(ComponentInstantiationListenerCollection.java:33)

Thanks,
Ilia

---------------------------------------------
Orienteer(http://orienteer.org) - open source Business Application Platform
Martin Grigorov
2018-11-01 08:12:12 UTC
Permalink
Hi,

I guess it is the upgrade of CGLIB and ASM:
https://issues.apache.org/jira/browse/WICKET-6552
Please check whether you have more than one version of ASM in your
classpath. Maybe another dependency in your app depends on ASM 5.x
Post by Илья Нарыжный
Hello, wicket users,
After updating just of wicket version in our projects from 8.0.0 to 8.1.0
we started to see the following exception during rendering time.
Nothing was changed except wicket version. Do you have any suggestions what
hidden dependencies and etc. might lead to this issue?
java.lang.NoClassDefFoundError: Could not initialize class
net.sf.cglib.proxy.Enhancer
at
org.apache.wicket.proxy.LazyInitProxyFactory.createProxy(LazyInitProxyFactory.java:183)
at
org.apache.wicket.guice.GuiceFieldValueFactory.getFieldValue(GuiceFieldValueFactory.java:88)
at org.apache.wicket.injection.Injector.inject(Injector.java:111)
at
org.apache.wicket.guice.GuiceComponentInjector.inject(GuiceComponentInjector.java:122)
at
org.apache.wicket.guice.GuiceComponentInjector.onInstantiation(GuiceComponentInjector.java:128)
at
org.apache.wicket.application.ComponentInstantiationListenerCollection$1.notify(ComponentInstantiationListenerCollection.java:38)
at
org.apache.wicket.application.ComponentInstantiationListenerCollection$1.notify(ComponentInstantiationListenerCollection.java:34)
at
org.apache.wicket.util.listener.ListenerCollection.notify(ListenerCollection.java:80)
at
org.apache.wicket.application.ComponentInstantiationListenerCollection.onInstantiation(ComponentInstantiationListenerCollection.java:33)
Thanks,
Ilia
---------------------------------------------
Orienteer(http://orienteer.org) - open source Business Application Platform
Dan Haywood
2018-11-01 08:17:01 UTC
Permalink
Use mvn dependency:tree to capture your actual classpath before and after
the upgrade; this should help you identify where the clash is in your
classpath. You can then use exclusions or dependencyManagement to pick up
the correct version. I use IntelliJ and the "Maven Helper" plugin is
invaluable for finding conflicts; I think that Eclipse has something
similar built-in.

HTH
Post by Martin Grigorov
Hi,
https://issues.apache.org/jira/browse/WICKET-6552
Please check whether you have more than one version of ASM in your
classpath. Maybe another dependency in your app depends on ASM 5.x
Post by Илья Нарыжный
Hello, wicket users,
After updating just of wicket version in our projects from 8.0.0 to 8.1.0
we started to see the following exception during rendering time.
Nothing was changed except wicket version. Do you have any suggestions
what
Post by Илья Нарыжный
hidden dependencies and etc. might lead to this issue?
java.lang.NoClassDefFoundError: Could not initialize class
net.sf.cglib.proxy.Enhancer
at
org.apache.wicket.proxy.LazyInitProxyFactory.createProxy(LazyInitProxyFactory.java:183)
Post by Илья Нарыжный
at
org.apache.wicket.guice.GuiceFieldValueFactory.getFieldValue(GuiceFieldValueFactory.java:88)
Post by Илья Нарыжный
at org.apache.wicket.injection.Injector.inject(Injector.java:111)
at
org.apache.wicket.guice.GuiceComponentInjector.inject(GuiceComponentInjector.java:122)
Post by Илья Нарыжный
at
org.apache.wicket.guice.GuiceComponentInjector.onInstantiation(GuiceComponentInjector.java:128)
Post by Илья Нарыжный
at
org.apache.wicket.application.ComponentInstantiationListenerCollection$1.notify(ComponentInstantiationListenerCollection.java:38)
Post by Илья Нарыжный
at
org.apache.wicket.application.ComponentInstantiationListenerCollection$1.notify(ComponentInstantiationListenerCollection.java:34)
Post by Илья Нарыжный
at
org.apache.wicket.util.listener.ListenerCollection.notify(ListenerCollection.java:80)
Post by Илья Нарыжный
at
org.apache.wicket.application.ComponentInstantiationListenerCollection.onInstantiation(ComponentInstantiationListenerCollection.java:33)
Post by Илья Нарыжный
Thanks,
Ilia
---------------------------------------------
Orienteer(http://orienteer.org) - open source Business Application Platform
Loading...