Skip to content

Windows32Exception - The parameter is incorrect #1700

@phayzeeVW

Description

@phayzeeVW

Hello

I am calling WindowsUtils.getAllWindows(false) from a service every 10 seconds and is throwing a Win32Exception, for some specific windows, I assume.

com.sun.jna.platform.win32.Win32Exception: The parameter is incorrect.
	at com.sun.jna.platform.WindowUtils$W32WindowUtils.getProcessFilePath(WindowUtils.java:1302)
	at com.sun.jna.platform.WindowUtils$W32WindowUtils$5.callback(WindowUtils.java:1252)
	at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:103)
	at java.base/java.lang.reflect.Method.invoke(Method.java:580)
	at com.sun.jna.CallbackReference$DefaultCallbackProxy.invokeCallback(CallbackReference.java:585)
	at com.sun.jna.CallbackReference$DefaultCallbackProxy.callback(CallbackReference.java:613)
	at com.sun.jna.Native.invokeInt(Native Method)
	at com.sun.jna.Function.invoke(Function.java:429)

I am not sure how to even begin debugging this error or what to do about it. It keeps filling my logs and I cannot see relevant logs anymore

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions