java.lang.NoClassDefFoundError: org/apache/wicket/util/convert/converter/ZeroPaddingIntegerConverter

huangapple go评论73阅读模式
英文:

java.lang.NoClassDefFoundError: org/apache/wicket/util/convert/converter/ZeroPaddingIntegerConverter

问题

以下是翻译好的内容:

我的应用在使用Wicket 7.6.0时运行良好。但是在从Wicket 7.6迁移到8.5后,我现在遇到以下异常。

Caused by: java.lang.NoClassDefFoundError: org/apache/wicket/util/convert/converter/ZeroPaddingIntegerConverter
at org.apache.wicket.extensions.yui.calendar.DateTimeField.<clinit>(DateTimeField.java:119)

Caused by: java.lang.ClassNotFoundException: org.apache.wicket.util.convert.converter.ZeroPaddingIntegerConverter
at org.apache.catalina.loader.WebappClassLoaderBase.loadClass(WebappClassLoaderBase.java:1358)
at org.apache.catalina.loader.WebappClassLoaderBase.loadClass(WebappClassLoaderBase.java:1180)
... 77 more

在我的代码中没有使用过这个类 "ZeroPaddingIntegerConverter",但仍然因为这个类而出现错误。

:
在Wicket 8.x版本中,ZeroPaddingIntegerConverter类已被弃用。

英文:

My application was running fine with Wicket 7.6.0. But now I am facing below exception after migration from Wicket 7.6 to 8.5.

Caused by: java.lang.NoClassDefFoundError: org/apache/wicket/util/convert/converter/ZeroPaddingIntegerConverter
at org.apache.wicket.extensions.yui.calendar.DateTimeField.<clinit>(DateTimeField.java:119)

Caused by: java.lang.ClassNotFoundException: org.apache.wicket.util.convert.converter.ZeroPaddingIntegerConverter
at org.apache.catalina.loader.WebappClassLoaderBase.loadClass(WebappClassLoaderBase.java:1358)
at org.apache.catalina.loader.WebappClassLoaderBase.loadClass(WebappClassLoaderBase.java:1180)
... 77 more

In my code nowhere used this class "ZeroPaddingIntegerConverter" but still getting this error for this class.

:
ZeroPaddingIntegerConverter class has been deprecated in Wicket 8.x version.

答案1

得分: 3

wicket-datetime模块已在Wicket 8中被移除,并迁移到[WicketStuff][1]。在您的代码中,您可能正在混合使用旧的wicket-datetime模块(7.6.0)与Wicket 8.5.0。只需移除旧模块,并使用WicketStuff依赖替换:

    <dependency>
      <groupId>org.wicketstuff</groupId>
      <artifactId>wicket-datetime</artifactId>
      <version>8.5.0</version>
    </dependency>

  [1]: https://github.com/wicketstuff/core/tree/master/wicket-datetime-parent
英文:

wicket-datetime module has been removed with Wicket 8 and moved to WicketStuff. In your code you are probably mixing the old wicket-datetime module (7.6.0) with Wicket 8.5. Just remove the old module and replace it with WicketStuff dependency:

&lt;dependency&gt;
  &lt;groupId&gt;org.wicketstuff&lt;/groupId&gt;
  &lt;artifactId&gt;wicket-datetime&lt;/artifactId&gt;
  &lt;version&gt;8.5.0&lt;/version&gt;
&lt;/dependency&gt;

huangapple
  • 本文由 发表于 2020年10月21日 19:39:47
  • 转载请务必保留本文链接:https://go.coder-hub.com/64462743.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定