Title: jna issue when invoking waffle
Type: Severity: normal
Components: Core Versions: 2.5.2b1
Status: closed Resolution: invalid
Dependencies: Superseder:
Assigned To: Nosy List: crankycoder, zyasoft
Priority: Keywords:

Created on 2010-09-23.16:29:48 by crankycoder, last changed 2010-10-17.17:06:32 by zyasoft.

File name Uploaded Description Edit Remove crankycoder, 2010-09-23.16:29:45 Java code that is uninvocable from Jython
msg6093 (view) Author: Victor Ng (crankycoder) Date: 2010-09-23.16:29:41
jna invocations seem to sometimes break.  I'm not exactly sure what's going on, but the following Java code uses Waffle 1.3 and JNA 3.2.7.  It works fine from Java, but trying to invoke the static function from Jython throws an exception:

>>> import Demo
>>> Demo.main([])
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
        at com.sun.jna.platform.win32.WinNT$PSID.<init>(
        at com.sun.jna.platform.win32.Advapi32Util.getAccountByName(
        at<init>(Unknown Source)
        at<init>(Unknown Source)
        at Source)
        at Demo.admin_demo(
        at Demo.main(
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(
        at java.lang.reflect.Method.invoke(

java.lang.NoSuchMethodError: java.lang.NoSuchMethodError: com.sun.jna.Structure.<init>(Lcom/sun/jna/Pointer;)V

You can grab the Waffle JARs here:
msg6096 (view) Author: Victor Ng (crankycoder) Date: 2010-09-24.20:20:51
this looks like a bug in jna and waffle, unrelated to jython.  please close this while i follow up.
msg6185 (view) Author: Jim Baker (zyasoft) Date: 2010-10-17.17:06:32
Closed per Vic's request.
Date User Action Args
2010-10-17 17:06:32zyasoftsetstatus: open -> closed
resolution: invalid
messages: + msg6185
nosy: + zyasoft
2010-09-24 20:20:52crankycodersetmessages: + msg6096
2010-09-23 16:29:49crankycodercreate