Coder Social home page Coder Social logo

No Such Method Error about jidefx-oss HOT 15 CLOSED

kuldeep3303 avatar kuldeep3303 commented on September 2, 2024
No Such Method Error

from jidefx-oss.

Comments (15)

jidesoft avatar jidesoft commented on September 2, 2024

Can you please include the full stack trace? What is your JDK8 b-version?

from jidefx-oss.

kuldeep3303 avatar kuldeep3303 commented on September 2, 2024

java version is "1.8.0-ea"
and jre version is build 1.8.0-ea-b116 .
and full stack trace is :

java.lang.RuntimeException: java.lang.reflect.InvocationTargetException
at javafx.fxml.FXMLLoader$ControllerMethodEventHandler.handle(FXMLLoader.java:1440)
at com.sun.javafx.event.CompositeEventHandler.dispatchBubblingEvent(CompositeEventHandler.java:69)
at com.sun.javafx.event.EventHandlerManager.dispatchBubblingEvent(EventHandlerManager.java:217)
at com.sun.javafx.event.EventHandlerManager.dispatchBubblingEvent(EventHandlerManager.java:170)
at com.sun.javafx.event.CompositeEventDispatcher.dispatchBubblingEvent(CompositeEventDispatcher.java:38)
at com.sun.javafx.event.BasicEventDispatcher.dispatchEvent(BasicEventDispatcher.java:37)
at com.sun.javafx.event.EventDispatchChainImpl.dispatchEvent(EventDispatchChainImpl.java:92)
at com.sun.javafx.event.BasicEventDispatcher.dispatchEvent(BasicEventDispatcher.java:35)
at com.sun.javafx.event.EventDispatchChainImpl.dispatchEvent(EventDispatchChainImpl.java:92)
at com.sun.javafx.event.BasicEventDispatcher.dispatchEvent(BasicEventDispatcher.java:35)
at com.sun.javafx.event.EventDispatchChainImpl.dispatchEvent(EventDispatchChainImpl.java:92)
at com.sun.javafx.event.BasicEventDispatcher.dispatchEvent(BasicEventDispatcher.java:35)
at com.sun.javafx.event.EventDispatchChainImpl.dispatchEvent(EventDispatchChainImpl.java:92)
at com.sun.javafx.event.BasicEventDispatcher.dispatchEvent(BasicEventDispatcher.java:35)
at com.sun.javafx.event.EventDispatchChainImpl.dispatchEvent(EventDispatchChainImpl.java:92)
at com.sun.javafx.event.BasicEventDispatcher.dispatchEvent(BasicEventDispatcher.java:35)
at com.sun.javafx.event.EventDispatchChainImpl.dispatchEvent(EventDispatchChainImpl.java:92)
at com.sun.javafx.event.BasicEventDispatcher.dispatchEvent(BasicEventDispatcher.java:35)
at com.sun.javafx.event.EventDispatchChainImpl.dispatchEvent(EventDispatchChainImpl.java:92)
at com.sun.javafx.event.EventUtil.fireEventImpl(EventUtil.java:53)
at com.sun.javafx.event.EventUtil.fireEvent(EventUtil.java:28)
at javafx.event.Event.fireEvent(Event.java:171)
at javafx.scene.Node.fireEvent(Node.java:6863)
at javafx.scene.control.Hyperlink.fire(Hyperlink.java:145)
at com.sun.javafx.scene.control.behavior.ButtonBehavior.mouseReleased(ButtonBehavior.java:193)
at com.sun.javafx.scene.control.skin.SkinBase$4.handle(SkinBase.java:336)
at com.sun.javafx.scene.control.skin.SkinBase$4.handle(SkinBase.java:329)
at com.sun.javafx.event.CompositeEventHandler.dispatchBubblingEvent(CompositeEventHandler.java:64)
at com.sun.javafx.event.EventHandlerManager.dispatchBubblingEvent(EventHandlerManager.java:217)
at com.sun.javafx.event.EventHandlerManager.dispatchBubblingEvent(EventHandlerManager.java:170)
at com.sun.javafx.event.CompositeEventDispatcher.dispatchBubblingEvent(CompositeEventDispatcher.java:38)
at com.sun.javafx.event.BasicEventDispatcher.dispatchEvent(BasicEventDispatcher.java:37)
at com.sun.javafx.event.EventDispatchChainImpl.dispatchEvent(EventDispatchChainImpl.java:92)
at com.sun.javafx.event.BasicEventDispatcher.dispatchEvent(BasicEventDispatcher.java:35)
at com.sun.javafx.event.EventDispatchChainImpl.dispatchEvent(EventDispatchChainImpl.java:92)
at com.sun.javafx.event.BasicEventDispatcher.dispatchEvent(BasicEventDispatcher.java:35)
at com.sun.javafx.event.EventDispatchChainImpl.dispatchEvent(EventDispatchChainImpl.java:92)
at com.sun.javafx.event.BasicEventDispatcher.dispatchEvent(BasicEventDispatcher.java:35)
at com.sun.javafx.event.EventDispatchChainImpl.dispatchEvent(EventDispatchChainImpl.java:92)
at com.sun.javafx.event.BasicEventDispatcher.dispatchEvent(BasicEventDispatcher.java:35)
at com.sun.javafx.event.EventDispatchChainImpl.dispatchEvent(EventDispatchChainImpl.java:92)
at com.sun.javafx.event.BasicEventDispatcher.dispatchEvent(BasicEventDispatcher.java:35)
at com.sun.javafx.event.EventDispatchChainImpl.dispatchEvent(EventDispatchChainImpl.java:92)
at com.sun.javafx.event.BasicEventDispatcher.dispatchEvent(BasicEventDispatcher.java:35)
at com.sun.javafx.event.EventDispatchChainImpl.dispatchEvent(EventDispatchChainImpl.java:92)
at com.sun.javafx.event.BasicEventDispatcher.dispatchEvent(BasicEventDispatcher.java:35)
at com.sun.javafx.event.EventDispatchChainImpl.dispatchEvent(EventDispatchChainImpl.java:92)
at com.sun.javafx.event.EventUtil.fireEventImpl(EventUtil.java:53)
at com.sun.javafx.event.EventUtil.fireEvent(EventUtil.java:33)
at javafx.event.Event.fireEvent(Event.java:171)
at javafx.scene.Scene$MouseHandler.process(Scene.java:3328)
at javafx.scene.Scene$MouseHandler.process(Scene.java:3168)
at javafx.scene.Scene$MouseHandler.access$1900(Scene.java:3123)
at javafx.scene.Scene.impl_processMouseEvent(Scene.java:1563)
at javafx.scene.Scene$ScenePeerListener.mouseEvent(Scene.java:2265)
at com.sun.javafx.tk.quantum.GlassViewEventHandler$MouseEventNotification.run(GlassViewEventHandler.java:250)
at com.sun.javafx.tk.quantum.GlassViewEventHandler$MouseEventNotification.run(GlassViewEventHandler.java:173)
at java.security.AccessController.doPrivileged(Native Method)
at com.sun.javafx.tk.quantum.GlassViewEventHandler.handleMouseEvent(GlassViewEventHandler.java:292)
at com.sun.glass.ui.View.handleMouseEvent(View.java:528)
at com.sun.glass.ui.View.notifyMouse(View.java:922)
at com.sun.glass.ui.win.WinApplication._runLoop(Native Method)
at com.sun.glass.ui.win.WinApplication.access$100(WinApplication.java:29)
at com.sun.glass.ui.win.WinApplication$3$1.run(WinApplication.java:73)
at java.lang.Thread.run(Thread.java:744)
Caused by: java.lang.reflect.InvocationTargetException
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:483)
at sun.reflect.misc.Trampoline.invoke(MethodUtil.java:71)
at sun.reflect.GeneratedMethodAccessor1.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:483)
at sun.reflect.misc.MethodUtil.invoke(MethodUtil.java:275)
at javafx.fxml.FXMLLoader$ControllerMethodEventHandler.handle(FXMLLoader.java:1435)
... 64 more

Caused by: java.lang.NoSuchMethodError: java.lang.invoke.LambdaMetafactory.metaFactory(Ljava/lang/invoke/MethodHandles$Lookup;Ljava/lang/String;Ljava/lang/invoke/MethodType;Ljava/lang/invoke/MethodHandle;Ljava/lang/invoke/MethodHandle;Ljava/lang/invoke/MethodType;)Ljava/lang/invoke/CallSite;
at java.lang.invoke.MethodHandleNatives.resolve(Native Method)
at java.lang.invoke.MemberName$Factory.resolve(MemberName.java:965)
at java.lang.invoke.MemberName$Factory.resolveOrFail(MemberName.java:990)
at java.lang.invoke.MethodHandles$Lookup.resolveOrFail(MethodHandles.java:1385)
at java.lang.invoke.MethodHandles$Lookup.linkMethodHandleConstant(MethodHandles.java:1726)
at java.lang.invoke.MethodHandleNatives.linkMethodHandleConstant(MethodHandleNatives.java:442)
at jidefx.scene.control.field.MaskTextField.initializeInputMaskVerifiers(MaskTextField.java:228)
at jidefx.scene.control.field.MaskTextField.initializeTextField(MaskTextField.java:158)
at jidefx.scene.control.field.MaskTextField.(MaskTextField.java:134)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
at java.lang.reflect.Constructor.newInstance(Constructor.java:408)
at java.lang.Class.newInstance(Class.java:433)
at sun.reflect.misc.ReflectUtil.newInstance(ReflectUtil.java:49)
at javafx.fxml.FXMLLoader$InstanceDeclarationElement.constructValue(FXMLLoader.java:809)
at javafx.fxml.FXMLLoader$ValueElement.processStartElement(FXMLLoader.java:565)
at javafx.fxml.FXMLLoader.processStartElement(FXMLLoader.java:2314)
at javafx.fxml.FXMLLoader.load(FXMLLoader.java:2131)
at javafx.fxml.FXMLLoader.load(FXMLLoader.java:2028)
at javafx.fxml.FXMLLoader.load(FXMLLoader.java:2744)
at javafx.fxml.FXMLLoader.load(FXMLLoader.java:2723)
at javafx.fxml.FXMLLoader.load(FXMLLoader.java:2709)
at javafx.fxml.FXMLLoader.load(FXMLLoader.java:2696)
at javafx.fxml.FXMLLoader.load(FXMLLoader.java:2685)
at controller.SampleController.handleStuRegButtonAction(SampleController.java:119)
... 74 more

from jidefx-oss.

jidesoft avatar jidesoft commented on September 2, 2024

Are you using Scene Builder? Could you please specify the exact steps?

from jidefx-oss.

kuldeep3303 avatar kuldeep3303 commented on September 2, 2024

Thanks for your quick response again.
and yes , I am using scene builder.
and exact steps are :

  1. created a fxml file with text field in it using scene builder.
  2. in edit mode of fxml file i replace that textfiled with MaskTextField.
  3. then I tried to set input mask using inputmask property in fxml ,but that didn't work.
  4. then In controller's initialize method , I tried to set inputmask to that MaskTextField and that also didn't workout.
    please clarify if I had a wrong approach or is there another way to do this?

from jidefx-oss.

jidesoft avatar jidesoft commented on September 2, 2024

I tried but it seems working fine for me. The steps I did (probably you did the same thing) are

  1. Get Scene Builder 2.0
  2. Import JARs from the drop down menu of Library window and import all the jidefx jars
  3. I also copied all the jidefx jars into the runtime ext folder under scene builder at C:\Program Files (x86)\Oracle\JavaFX Scene Builder 2.0\runtime\jre\lib\ext. Not sure if it is required.
  4. Then I can drag MaskTextField, set the Input Mask just fine.

from jidefx-oss.

kuldeep3303 avatar kuldeep3303 commented on September 2, 2024

Thanks. it seems fine. I will give it a shot with scene builder 2.0.

from jidefx-oss.

kuldeep3303 avatar kuldeep3303 commented on September 2, 2024

When I Import jars in SceneBuilder 2.0. there was every control in custom category except MaskTextField.
MaskTextField is the only jidefx control that was causing 'No such Method Error'.
all other control like IntegerField and FormattedTextField are working properly in each and every way.

from jidefx-oss.

jidesoft avatar jidesoft commented on September 2, 2024

MaskTextField was there when I imported it. Can you build all the jidefx jar? You just need to get the latest code and run gradle from the folder in command line.

from jidefx-oss.

kuldeep3303 avatar kuldeep3303 commented on September 2, 2024

i build all the jar with the help of netbeans plugin, and after that it worked. Thank you.

from jidefx-oss.

jidesoft avatar jidesoft commented on September 2, 2024

Great. Thanks for the update!

from jidefx-oss.

scott-abernethy66 avatar scott-abernethy66 commented on September 2, 2024

Hi. I'm something of newbie to JavaFX and your components look to be exactly what I'm looking for.

I'm having the same issue described here. I imported the controls into Scene Builder and I see all of the controls except MaskTextField. If I try to create one in my controller with
MaskTextField maskTextField = new MaskTextField();

The code compiles but I get the same "No Such Method" error. I can't quite figure out how to build the jidefx jar in NetBeans 8. Can you help me?

from jidefx-oss.

jidesoft avatar jidesoft commented on September 2, 2024

kuldeep3303 said, "i build all the jar with the help of netbeans plugin, and after that it worked. Thank you." Does it help? I don't use netbeans myself so I don't know what he mean exactly. Maybe he can jump in and explain it in more details if he saw this message.

from jidefx-oss.

scott-abernethy66 avatar scott-abernethy66 commented on September 2, 2024

Thanks for such a quick reply.

There is a Gradle Support plugin. I'll install that and see if I can figure it out.

from jidefx-oss.

scott-abernethy66 avatar scott-abernethy66 commented on September 2, 2024

I haven't been able to figure out how to rebuild the jar files, but I replaced jidefx-fields-0.9.1.jar with jidefx-fields-0.9.1-b128.jar in my project and in Scene Builder 2. I no longer get the No Such Method error and the component works in the application but the MaskTextField still does not appear in the "Custom" section with all of the other jide components.

I am using Scene Builder 2.0 that was just released a couple days ago.
Version: 2.0-b20, Changeset: 5cac093e5c1f

from jidefx-oss.

jidesoft avatar jidesoft commented on September 2, 2024

I don't have problem when I tried in the Scene Builder 2. I guess what kuldeep3303 means is exactly what you did - rebuild jars using the gradle plugin. We simply built the jars from command line.

from jidefx-oss.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.