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


Solutions on the web

Solution icon of googlegroups
Invalid Structure field in class test.MainPOCInterop$Invoke, field name 'params' (class test.MainPOCInterop$ParamInvoke): Can't instantiate class test.MainPOCInterop$ParamInvoke

Solution icon of stackoverflow
Invalid Structure field in class btc_dll.GloryTypeDef$GlyCounters, field name 'lpCounters' (class btc_dll.GloryTypeDef$GlyCounter): Can't instantiate class btc_dll.GloryTypeDef$GlyCounter (java.lang.InstantiationException: btc_dll.GloryTypeDef$GlyCounter)

Solution icon of stackoverflow
via Stack Overflow by Barq Last
, 1 year ago
Invalid Structure field in class g60.wfs.WFS$WFSRESULT, field name 'tsTimestamp' (class g60.wfs.WFS$SYSTEMTIME): Can't instantiate class g60.wfs.WFS$SYSTEMTIME

Solution icon of stackoverflow
Invalid Structure field in class xxx$TSharedArray, field name 'elements' (class xxx$TQuote): Can't instantiate class xxx$TQuote (java.lang.InstantiationException: xxx$TQuote)

Solution icon of stackoverflow
via Stack Overflow by Utgarda
, 1 year ago
Invalid Structure field in class com.dewdropgames.chipmunk2djna.structs.CpSpace$ByReference, field name '_staticBody' (class com.dewdropgames.chipmunk2djna.structs.CpBody): Invalid Structure field in class

Stack trace

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

Write tip

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

Users with the same issue

Samebug visitor profile picture
Unknown user
Once, 15 hours ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago
2 times, 1 week ago
121 more bugmates