{"action":"opened","issue":{"url":"https://api.github.com/repos/java-native-access/jna/issues/537","labels_url":"https://api.github.com/repos/java-native-access/jna/issues/537/labels{/name}","comments_url":"https://api.github.com/repos/java-native-access/jna/issues/537/comments","events_url":"https://api.github.com/repos/java-native-access/jna/issues/537/events","html_url":"https://github.com/java-native-access/jna/issues/537","id":117678019,"number":537,"title":"Null Pointer Exception i call to Native.getNativeVersion on Windows","user":{"login":"ism-ssw","id":8065644,"avatar_url":"https://avatars.githubusercontent.com/u/8065644?v=3","gravatar_id":"","url":"https://api.github.com/users/ism-ssw","html_url":"https://github.com/ism-ssw","followers_url":"https://api.github.com/users/ism-ssw/followers","following_url":"https://api.github.com/users/ism-ssw/following{/other_user}","gists_url":"https://api.github.com/users/ism-ssw/gists{/gist_id}","starred_url":"https://api.github.com/users/ism-ssw/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ism-ssw/subscriptions","organizations_url":"https://api.github.com/users/ism-ssw/orgs","repos_url":"https://api.github.com/users/ism-ssw/repos","events_url":"https://api.github.com/users/ism-ssw/events{/privacy}","received_events_url":"https://api.github.com/users/ism-ssw/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-11-18T20:47:45Z","updated_at":"2015-11-18T20:47:45Z","closed_at":null,"body":"I am having to work with version 3.5.2 and am making calls to JNI as a java extension from Oracle10g. This limits me to using Java 1.5 as the VM on Oracle cannot be updated.\r\n\r\nThe following code\r\n\r\n    int attributes = Kernel32.INSTANCE.GetFileAttributes(absolutePath);\r\n\r\ncauses the following error:\r\n\r\n    java.lang.ExceptionInInitializerError\r\n\r\n    at com.sun.jna.platform.win32.Kernel32.<clinit>(Kernel32.java:31)\r\n\r\n    at com.millerhare.winfsapi.is.common.FileInformationImpl.updateAll(FileInformationImpl.java:309)\r\n\r\n    at com.millerhare.winfsapi.is.QueryService.getFolderFiles(QueryService.java:72)\r\n\r\n    at com.millerhare.winfsapi.is.oracle.LocalQueries.getFolderFilesFn(LocalQueries.java:155)\r\n\r\n    at com.millerhare.winfsapi.is.oracle.LocalQueries.getFolderFiles(LocalQueries.java:82)\r\n\r\n    Caused by: java.lang.NullPointerException\r\n\r\n    at com.sun.jna.Native.getNativeVersion(Native.java)\r\n\r\n    at com.sun.jna.Native.<clinit>(Native.java:141)\r\n\r\n     .. 5 more\r\n\r\nI cannot see any reason why nor find anyone mentioning errors during this procedure. Most other references seem only to speak of UnsatisfiedLinkError.\r\n"}}