-
Notifications
You must be signed in to change notification settings - Fork 185
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
waffle 2.1.0 - java.lang.NoSuchMethodError com.sun.jna.platform.win32.Sspi$SecBufferDesc.<init>(I[B)V #838
Comments
@Bill-Stewart I suspect you have another copy of jna on your classpath. The current waffle is on jna 5.5.0 and has been successfully used in a tomcat 9 environment. |
XWiki has
I get the exception when authenticating. If I revert back to
in the Tomcat |
@Bill-Stewart Version 2.0.0 of waffle stopped using SecBufferDesc directly as it is not possible any longer with version 5.x thus it cannot throw that specific condition. It switched to ManagedSecBufferDesc. The error you have suggests it is still using the old waffle. In fact, the line noted is a curly bracket in code after that change as everything shifted down one line in that specific class WindowsSecurityContextImpl. To me it seems you only upgraded jna to 5.5.0 but are continuing to use waffle 1.9.1. Waffle-jna itself which is where you show the problem occurring has to be the same in both tomcat lib and your war. I suspect while you have tomcat lib correct, your war is still sitting on 1.9.1. Please see the demo usage and try in a clean tomcat with no other apps. |
@Bill-Stewart Any chance any of your setup uses spring boot? There was a bug on our end that failed to properly force JNA to aligned version. I'll have a release this coming weekend that will resolve spring boot 1 and spring boot 2 usage. It had the same issue you noted here and could easily have been tested via the demos. You might also otherwise just want to wait for that release to retest in case your issue was not the same at all. I again testing in tomcat 9 using mixed demo and it worked fine. |
Sounds good; will test again after new release. |
Closing as we more tightly control our usage of JNA, have documented how users can on readme, and has been thorougly tested in spring boot 2 environment since this. |
I attempted to update to Waffle 3.3.0, but got the same error. However, I think I have tracked down the root cause. My application uses the PostgreSQL JDBC driver with SSPI on Windows, which still seems to use For now it would seem I'm stuck on Waffle 1.9.1 until the PostgreSQL JDBC driver gets updated to use the new waffle-jna. |
@Bill-Stewart Thanks for the info, may be worth adding to FAQ for others if you have time to submit a PR. Its unfortunate they are so behind 👎 |
Confirmed fixed with PostgreSQL JDBC driver 42.7.1. |
Thanks for the update!
Sent from my Verizon, Samsung Galaxy smartphone
Get Outlook for Android<https://aka.ms/AAb9ysg>
…________________________________
From: Bill Stewart ***@***.***>
Sent: Thursday, January 25, 2024 4:42:24 PM
To: Waffle/waffle ***@***.***>
Cc: Jeremy Landis ***@***.***>; State change ***@***.***>
Subject: Re: [Waffle/waffle] waffle 2.1.0 - java.lang.NoSuchMethodError com.sun.jna.platform.win32.Sspi$SecBufferDesc.<init>(I[B)V (#838)
Confirmed fixed with PostgreSQL JDBC driver 42.7.1.
—
Reply to this email directly, view it on GitHub<#838 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/AAHODI4RWFXS25S7MFSGWU3YQLGUBAVCNFSM4JXAAMDKU5DIOJSWCZC7NNSXTN2JONZXKZKDN5WW2ZLOOQ5TCOJRGEYDINBTGA4Q>.
You are receiving this because you modified the open/close state.Message ID: ***@***.***>
|
I am successfully running waffle negotiate 1.9.0 and 1.9.1 with our XWiki installation (Windows Server 2012 R2, Tomcat 9).
I thought it would be good to update waffle to 2.1.0 so I did the following:
jna-4.5.2.jar
withjna-5.5.0.jar
jna-platform-4.5.2.jar
withjna-platform-5.5.0.jar
waffle-jna-1.9.1.jar
withwaffle-jna-2.1.0.jar
waffle-tomcat9-1.9.1.jar
withwaffle-tomcat9-2.1.0.jar
The Tomcat service starts successfully, but when I browse to the application, I get this error page in the browser:
I can continue to use waffle 1.9.x but I thought this message was peculiar (I though jna provided access to SSPI?).
Any thoughts?
The text was updated successfully, but these errors were encountered: