java.lang.IllegalArgumentException

If you like a tip written by other Samebug users, mark is as helpful! Marks help our algorithm provide you better solutions and also help other users.
tip

I downgraded to spark-notebook scala 2.10 with hadoop 2.6.0 then it worked. Finally switched to Apache Drill, works like a charm for diverse datasets.


rp

You have a different solution? A short tip here would help you and many other users who saw this issue last week.

  • JNA Structure as an other Structure field
    via Stack Overflow by Barq Last
    ,
  • Blog
    via by Unknown author,
  • Version: 1.4.8.344 - FTB Paste
    via by Unknown author,
  • Paste.ee - View paste qXClp
    via by Unknown author,
    • java.lang.IllegalArgumentException: Invalid Structure field in class test.MainPOCInterop$Invoke, field name 'params' (class test.MainPOCInterop$ParamInvoke): Can't instantiate class test.MainPOCInterop$ParamInvoke at com.sun.jna.Structure.validateField(Structure.java:1109) at com.sun.jna.Structure.validateField(Structure.java:1101) at com.sun.jna.Structure.validateFields(Structure.java:1119) at com.sun.jna.Structure.<init>(Structure.java:179) at com.sun.jna.Structure.<init>(Structure.java:172) at com.sun.jna.Structure.<init>(Structure.java:159) at com.sun.jna.Structure.<init>(Structure.java:151) at test.MainPOCInterop$Invoke.<init>(MainPOCInterop.java:301) at test.MainPOCInterop.messageRun(MainPOCInterop.java:447) at test.MainPOCInterop$5.widgetSelected(MainPOCInterop.java:158) at org.eclipse.swt.widgets.TypedListener.handleEvent(Unknown Source) at org.eclipse.swt.widgets.EventTable.sendEvent(Unknown Source) at org.eclipse.swt.widgets.Display.sendEvent(Unknown Source) at org.eclipse.swt.widgets.Widget.sendEvent(Unknown Source) at org.eclipse.swt.widgets.Display.runDeferredEvents(Unknown Source) at org.eclipse.swt.widgets.Display.readAndDispatch(Unknown Source) at test.MainPOCInterop.main(MainPOCInterop.java:90) Caused by: java.lang.IllegalArgumentException: Can't instantiate class test.MainPOCInterop$ParamInvoke at com.sun.jna.Structure.newInstance(Structure.java:1781) at com.sun.jna.Structure.newInstance(Structure.java:1759) at com.sun.jna.Structure.size(Structure.java:1030) at com.sun.jna.Native.getNativeSize(Native.java:1172) at com.sun.jna.Structure.getNativeSize(Structure.java:2072) at com.sun.jna.Structure.getNativeSize(Structure.java:2062) at com.sun.jna.Structure.validateField(Structure.java:1105) ... 16 more Caused by: java.lang.InstantiationException: test.MainPOCInterop$ParamInvoke at java.lang.Class.newInstance(Unknown Source) at com.sun.jna.Structure.newInstance(Structure.java:1773) ... 22 more Caused by: java.lang.NoSuchMethodException: test.MainPOCInterop$ParamInvoke.<init>() at java.lang.Class.getConstructor0(Unknown Source) ... 24 more

    Users with the same issue

    Unknown visitor1 times, last one,
    Unknown visitor1 times, last one,
    Unknown visitor1 times, last one,
    Axelo
    1 times, last one,
    Unknown visitor1 times, last one,
    111 more bugmates