Message6093

Author crankycoder
Recipients crankycoder
Date 2010-09-23.16:29:41
SpamBayes Score 1.0844904e-07
Marked as misclassified No
Message-id <1285259389.09.0.676713527594.issue1656@psf.upfronthosting.co.za>
In-reply-to
Content
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>(WinNT.java:281)
        at com.sun.jna.platform.win32.Advapi32Util.getAccountByName(Advapi32Util.java:129)
        at waffle.windows.auth.impl.WindowsAccountImpl.<init>(Unknown Source)
        at waffle.windows.auth.impl.WindowsAccountImpl.<init>(Unknown Source)
        at waffle.windows.auth.impl.WindowsAuthProviderImpl.lookupAccount(Unknown Source)
        at Demo.admin_demo(Demo.java:9)
        at Demo.main(Demo.java:16)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:597)

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

You can grab the Waffle JARs here: http://waffle.codeplex.com/releases/view/43113
History
Date User Action Args
2010-09-23 16:29:49crankycodersetrecipients: + crankycoder
2010-09-23 16:29:49crankycodersetmessageid: <1285259389.09.0.676713527594.issue1656@psf.upfronthosting.co.za>
2010-09-23 16:29:48crankycoderlinkissue1656 messages
2010-09-23 16:29:47crankycodercreate