Details
-
Bug
-
Status: Resolved
-
Major
-
Resolution: Fixed
-
9.4.0
-
None
Description
Wicket's use of cglib means that as of Java 16, you need to specify --illegal-access=permit. As of Java 17, this is no longer possible, which I've verified using a JDK 17 Early-Access Build.
Caused by: java.lang.NoClassDefFoundError: Could not initialize class net.sf.cglib.proxy.EnhancerCaused by: java.lang.NoClassDefFoundError: Could not initialize class net.sf.cglib.proxy.Enhancer at org.apache.wicket.proxy.LazyInitProxyFactory.createProxy(LazyInitProxyFactory.java:182) at org.apache.wicket.spring.injection.annot.AnnotProxyFieldValueFactory.getFieldValue(AnnotProxyFieldValueFactory.java:166) at org.apache.wicket.injection.Injector.inject(Injector.java:111) at org.apache.wicket.spring.injection.annot.SpringComponentInjector.inject(SpringComponentInjector.java:124) at org.apache.wicket.spring.injection.annot.SpringComponentInjector.onInstantiation(SpringComponentInjector.java:130) 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) at org.apache.wicket.Component.<init>(Component.java:690) at org.apache.wicket.MarkupContainer.<init>(MarkupContainer.java:179) at org.apache.wicket.Page.<init>(Page.java:171) at org.apache.wicket.Page.<init>(Page.java:135) at org.apache.wicket.markup.html.WebPage.<init>(WebPage.java:74)
Attachments
Issue Links
- fixes
-
WICKET-6836 Replace CGLib with ByteBuddy and/or Javassist
-
- Resolved
-
- is duplicated by
-
WICKET-6980 Exception net.sf.cglib.proxy.MethodInterceptor not found (wicket-9.3 onwards)
-
- Resolved
-
- is related to
-
WICKET-6836 Replace CGLib with ByteBuddy and/or Javassist
-
- Resolved
-
- relates to
-
WICKET-6911 wicket-spring throws an error when a spring bean uses ctor injection
-
- Resolved
-
-
WICKET-6916 Simplify JMX with StandardMBean
-
- Resolved
-
- links to