火烈鸟色带:Java.lang.IllegalArgumentException:找不到用于 java.lang.Float:java.lang.Float 的插值器 [英] Flamingo ribbon: Java.lang.IllegalArgumentException: No interpolator found for java.lang.Float:java.lang.Float

查看:23
本文介绍了火烈鸟色带:Java.lang.IllegalArgumentException:找不到用于 java.lang.Float:java.lang.Float 的插值器的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

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

I'm using Flamingo Ribbon Bar in a NetBeans project, and I'm having a major issue with it: sometimes (I'm sorry I can't be more specific since I really can't figure out how to consistently replicate it) I get the following exception:

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)

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

with the ribbon bar not initializing (and thus my software being unusable). Sometimes, If I close it and restart it, it starts correctly, some other times not. I'm not having the slightest idea of what's happening; somewhere I read something about a wrong classloader being used but I can't really find that link now... Can anyone please help? Of course I can provide more details if needed

谢谢

推荐答案

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

Although the accepted answer could have done the job, this is not the correct approach. Basically, the above is a workaround for a problem that shouldn't be/isn't there in the first place. Because of many source and binaries transfers of the trident library, it has happened so that a very important file's been left behind. Thus spreading the bug like a virus.

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

The file is called trident-plugin.properties and, flabbergastingly, there are stored the location of the available interpolators.

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

So, the obvious fix would be to add this file to the affected package in the META-INF directory.

为了快速参考,这里是它的内容:

For quick reference, here are the contents of it:

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.lang.IllegalArgumentException:找不到用于 java.lang.Float:java.lang.Float 的插值器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆