gpt4 book ai didi

java - 火烈鸟丝带 : Java. lang.IllegalArgumentException : No interpolator found for java. lang.Float :java. lang.Float

转载 作者:行者123 更新时间:2023-11-30 08:20:26 25 4
gpt4 key购买 nike

我在 NetBeans 项目中使用 Flamingo Ribbon Bar,我遇到了一个主要问题:有时(很抱歉我不能更具体,因为我真的不知道如何始终如一地复制它)我得到以下异常:

Java.lang.IllegalArgumentException: No interpolator found for java.lang.Float:java.lang.Float
at org.pushingpixels.trident.TimelinePropertyBuilder.getFieldInfo(TimelinePropertyBuilder.java:257)
at org.pushingpixels.trident.Timeline.addPropertyToInterpolate(Timeline.java:353)
at org.pushingpixels.trident.Timeline.addPropertyToInterpolate(Timeline.java:363)
at org.pushingpixels.flamingo.internal.ui.ribbon.BasicRibbonBandUI.installUI(BasicRibbonBandUI.java:168)
at javax.swing.JComponent.setUI(Unknown Source)
at org.pushingpixels.flamingo.api.ribbon.AbstractRibbonBand.setUI(AbstractRibbonBand.java:232)
at org.pushingpixels.flamingo.api.ribbon.AbstractRibbonBand.updateUI(AbstractRibbonBand.java:245)
at org.pushingpixels.flamingo.api.ribbon.AbstractRibbonBand.<init>(AbstractRibbonBand.java:205)
at org.pushingpixels.flamingo.api.ribbon.JRibbonBand.<init>(JRibbonBand.java:169)
at com.pinkmatter.modules.flamingo.RibbonComponentFactory.createRibbonBand(RibbonComponentFactory.java:216)
at com.pinkmatter.modules.flamingo.RibbonComponentFactory.createRibbonBands(RibbonComponentFactory.java:207)
at com.pinkmatter.modules.flamingo.RibbonComponentFactory.createRibbonTask(RibbonComponentFactory.java:195)
at com.pinkmatter.modules.flamingo.LayerRibbonComponentProvider.addTaskPanes(LayerRibbonComponentProvider.java:101)
at com.pinkmatter.modules.flamingo.LayerRibbonComponentProvider.createRibbon(LayerRibbonComponentProvider.java:56)
at com.pinkmatter.modules.flamingo.Installer$2.run(Installer.java:69)
[catch] at org.netbeans.core.windows.WindowManagerImpl$Exclusive$1.run(WindowManagerImpl.java:1563)
at java.awt.event.InvocationEvent.dispatch(Unknown Source)
at java.awt.EventQueue.dispatchEventImpl(Unknown Source)
at java.awt.EventQueue.access$200(Unknown Source)
at java.awt.EventQueue$3.run(Unknown Source)
at java.awt.EventQueue$3.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.ProtectionDomain$1.doIntersectionPrivilege(Unknown Source)
at java.awt.EventQueue.dispatchEvent(Unknown Source)
at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.run(Unknown Source)

功能区栏未初始化(因此我的软件无法使用)。有时,如果我关闭它并重新启动它,它会正确启动,有时则不会。我对正在发生的事情一无所知;我在某个地方读到了一些关于使用了错误的类加载器的信息,但我现在真的找不到那个链接了……有人能帮忙吗?当然,如果需要,我可以提供更多详细信息

谢谢

最佳答案

虽然接受的答案可以完成这项工作,但这不是正确的方法。基本上,以上是解决不应该/不存在的问题的解决方法。由于 trident 库的许多源代码和二进制文件传输,发生了一个非常重要的文件被遗忘的情况。从而像病毒一样传播错误。

该文件名为 trident-plugin.properties,令人吃惊的是,其中存储了可用插值器的位置。

因此,显而易见的解决方法是将此文件添加到 META-INF 目录中受影响的包中。

为了快速引用,这里是它的内容:

UIToolkitHandler=org.pushingpixels.trident.swing.SwingToolkitHandler
PropertyInterpolatorSource=org.pushingpixels.trident.swing.AWTPropertyInterpolators

UIToolkitHandler=org.pushingpixels.trident.swt.SWTToolkitHandler
PropertyInterpolatorSource=org.pushingpixels.trident.swt.SWTPropertyInterpolators

UIToolkitHandler=org.pushingpixels.trident.android.AndroidToolkitHandler
PropertyInterpolatorSource=org.pushingpixels.trident.android.AndroidPropertyInterpolators

PropertyInterpolatorSource=org.pushingpixels.trident.interpolator.CorePropertyInterpolators

关于java - 火烈鸟丝带 : Java. lang.IllegalArgumentException : No interpolator found for java. lang.Float :java. lang.Float,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/26054610/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com