Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

java.lang.UnsatisfiedLinkError: Can't obtain updateLastError method for class com.sun.jna.Native #98

Closed
stefan2503 opened this issue Jun 4, 2014 · 4 comments
Labels

Comments

@stefan2503
Copy link

Hi,

using waffle 6 und jna 4 I get the following stack:
Caused by: java.lang.UnsatisfiedLinkError: Can't obtain updateLastError method for class com.sun.jna.Native
at com.sun.jna.Native.initIDs(Native Method)
at com.sun.jna.Native.(Native.java:139)
at com.sun.jna.Pointer.(Pointer.java:42)
at com.sun.jna.platform.win32.WinNT$HANDLEByReference.(WinNT.java:1074)
at com.sun.jna.platform.win32.WinNT$HANDLEByReference.(WinNT.java:1070)
at waffle.windows.auth.impl.WindowsAuthProviderImpl.logonDomainUserEx(Unknown Source)
at waffle.windows.auth.impl.WindowsAuthProviderImpl.logonDomainUser(Unknown Source)

Apparently the updateLastError Method has been removed in JNA 4.0, so to me it appears as if waffle is incompatible with jna 4.

What to do ?

Stefan

@dblock
Copy link
Collaborator

dblock commented Jun 4, 2014

Uhm, 1.6 has used JNA 4.0 when built. Are you using the JARs that come with Waffle? Some other JNA JARs?

@dblock dblock added the bug? label Jun 4, 2014
@stefan2503
Copy link
Author

I do use several other jars. I got it to work now, but only if I include selenium which contains jna 3.4. The whole thing runs inside tomcat 7 as a web app. Maybe the problem is related to tomcat ?

@hazendaz
Copy link
Member

hazendaz commented Jun 6, 2014

jna 4.x works in tomcat with waffle without any issue. Is it possible you are picking up the older named platform and newer jna-platform which would cause a conflict?

@stefan2503
Copy link
Author

I would need to create a separate tomcat project with only waffle to verify that. As I said, it does work for me now with the selenium jars. I'll close this for now, since I can't pursue it further.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants