Uploaded image for project: 'LDAP'
  1. LDAP
  2. LDAP-114

Error: Native size for type "com.sun.jna.platform.win32.Guid$GUID" is unknown on XWiki 12.10.9

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 9.7
    • Fix Version/s: 9.7.1
    • Component/s: Authenticator
    • Labels:
    • Difficulty:
      Unknown
    • Similar issues:

      Description

      I use XWiki v12.10.9 and updated my LDAP extension via XWiki Admin GUI.
      Those are the folders which updated in the extension-folder:

      =

      The following error was thrown:

      Error number 0 in 11: Uncaught exception
      com.xpn.xwiki.XWikiException: Error number 0 in 11: Uncaught exception
      at com.xpn.xwiki.web.XWikiAction.execute(XWikiAction.java:616)
      at com.xpn.xwiki.web.XWikiAction.execute(XWikiAction.java:283)
      at org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:425)
      at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:228)
      at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1913)
      at org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:449)
      at javax.servlet.http.HttpServlet.service(HttpServlet.java:655)
      at javax.servlet.http.HttpServlet.service(HttpServlet.java:764)
      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:227)
      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:162)
      at com.xpn.xwiki.web.ActionFilter.doFilter(ActionFilter.java:122)
      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:189)
      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:162)
      at org.xwiki.wysiwyg.filter.ConversionFilter.doFilter(ConversionFilter.java:109)
      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:189)
      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:162)
      at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:53)
      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:189)
      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:162)
      at org.xwiki.container.servlet.filters.internal.SetHTTPHeaderFilter.doFilter(SetHTTPHeaderFilter.java:63)
      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:189)
      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:162)
      at org.xwiki.container.servlet.filters.internal.SavedRequestRestorerFilter.doFilter(SavedRequestRestorerFilter.java:208)
      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:189)
      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:162)
      at org.xwiki.container.servlet.filters.internal.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:111)
      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:189)
      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:162)
      at org.xwiki.resource.servlet.RoutingFilter.doFilter(RoutingFilter.java:132)
      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:189)
      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:162)
      at waffle.servlet.NegotiateSecurityFilter.doFilterPrincipal(NegotiateSecurityFilter.java:295)
      at waffle.servlet.NegotiateSecurityFilter.doFilter(NegotiateSecurityFilter.java:157)
      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:189)
      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:162)
      at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:197)
      at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:97)
      at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:542)
      at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:135)
      at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:92)
      at org.apache.catalina.valves.AbstractAccessLogValve.invoke(AbstractAccessLogValve.java:687)
      at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:78)
      at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:357)
      at org.apache.coyote.http11.Http11Processor.service(Http11Processor.java:382)
      at org.apache.coyote.AbstractProcessorLight.process(AbstractProcessorLight.java:65)
      at org.apache.coyote.AbstractProtocol$ConnectionHandler.process(AbstractProtocol.java:893)
      at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1726)
      at org.apache.tomcat.util.net.SocketProcessorBase.run(SocketProcessorBase.java:49)
      at org.apache.tomcat.util.threads.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1191)
      at org.apache.tomcat.util.threads.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:659)
      at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
      at java.base/java.lang.Thread.run(Unknown Source)
      Caused by: java.lang.ExceptionInInitializerError
      at org.xwiki.contrib.ldap.XWikiLDAPConnection.discoverLDAPService(XWikiLDAPConnection.java:307)
      at org.xwiki.contrib.ldap.XWikiLDAPConnection.connect(XWikiLDAPConnection.java:254)
      at org.xwiki.contrib.ldap.XWikiLDAPConnection.open(XWikiLDAPConnection.java:220)
      at org.xwiki.contrib.ldap.XWikiLDAPConnection.open(XWikiLDAPConnection.java:162)
      at org.xwiki.contrib.ldap.XWikiLDAPAuthServiceImpl.ldapAuthenticateInContext(XWikiLDAPAuthServiceImpl.java:557)
      at org.xwiki.contrib.ldap.XWikiLDAPAuthServiceImpl.ldapAuthenticate(XWikiLDAPAuthServiceImpl.java:373)
      at org.xwiki.contrib.ldap.XWikiLDAPAuthServiceImpl.checkAuthSSOSync(XWikiLDAPAuthServiceImpl.java:246)
      at org.xwiki.contrib.ldap.XWikiLDAPAuthServiceImpl.checkAuthSSO(XWikiLDAPAuthServiceImpl.java:211)
      at org.xwiki.contrib.ldap.XWikiLDAPAuthServiceImpl.checkAuth(XWikiLDAPAuthServiceImpl.java:163)
      at com.xpn.xwiki.XWiki.checkAuth(XWiki.java:4308)
      at org.xwiki.security.authorization.internal.XWikiCachingRightService.authenticateUser(XWikiCachingRightService.java:241)
      at org.xwiki.security.authorization.internal.XWikiCachingRightService.checkAccess(XWikiCachingRightService.java:271)
      at com.xpn.xwiki.XWiki.checkAccess(XWiki.java:4326)
      at com.xpn.xwiki.XWiki.prepareDocuments(XWiki.java:5819)
      at com.xpn.xwiki.web.XWikiAction.execute(XWikiAction.java:497)
      ... 51 more
      Caused by: java.lang.IllegalArgumentException: Invalid Structure field in class org.xbill.DNS.config.IPHlpAPI$IP_ADAPTER_ADDRESSES_LH, field name 'NetworkGuid' (class com.sun.jna.platform.win32.Guid$GUID): The type "com.sun.jna.platform.win32.Guid$GUID" is not supported: Native size for type "com.sun.jna.platform.win32.Guid$GUID" is unknown
      at com.sun.jna.Structure.validateField(Structure.java:1246)
      at com.sun.jna.Structure.validateFields(Structure.java:1255)
      at com.sun.jna.Structure.(Structure.java:211)
      at com.sun.jna.Structure.(Structure.java:204)
      at com.sun.jna.Structure.(Structure.java:200)
      at org.xbill.DNS.config.IPHlpAPI$IP_ADAPTER_ADDRESSES_LH.(IPHlpAPI.java:204)
      at org.xbill.DNS.config.WindowsResolverConfigProvider$InnerWindowsResolverConfigProvider.initialize(WindowsResolverConfigProvider.java:79)
      at org.xbill.DNS.config.WindowsResolverConfigProvider.initialize(WindowsResolverConfigProvider.java:118)
      at org.xbill.DNS.ResolverConfig.(ResolverConfig.java:111)
      at org.xbill.DNS.ResolverConfig.refresh(ResolverConfig.java:86)
      at org.xbill.DNS.ResolverConfig.checkInitialized(ResolverConfig.java:59)
      at org.xbill.DNS.ResolverConfig.getCurrentConfig(ResolverConfig.java:65)
      at org.xbill.DNS.ExtendedResolver.(ExtendedResolver.java:180)
      at org.xbill.DNS.Lookup.refreshDefault(Lookup.java:103)
      at org.xbill.DNS.Lookup.(Lookup.java:111)
      ... 66 more
      Caused by: java.lang.IllegalArgumentException: The type "com.sun.jna.platform.win32.Guid$GUID" is not supported: Native size for type "com.sun.jna.platform.win32.Guid$GUID" is unknown
      at com.sun.jna.Native.getNativeSize(Native.java:1386)
      at com.sun.jna.Structure.getNativeSize(Structure.java:2284)
      at com.sun.jna.Structure.getNativeSize(Structure.java:2274)
      at com.sun.jna.Structure.validateField(Structure.java:1242)
      ... 80 more
      

      The workaround is to disable DNS service discovery by adding the following line to the xwiki.cfg:

      xwiki.authentication.ldap.service_discovery=0
      

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              spike77453 Christian Schürmann
              Reporter:
              dahin Dan Hint
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Date of First Response: