java.lang.ClassCastException: org.netbeans.lib.profiler.wireprotocol.Response cannot be cast to org.netbeans.lib.profiler.wireprotocol.VMPropertiesResponse at org.netbeans.lib.profiler.ProfilerClient.connectToServer(ProfilerClient.java:1760) at org.netbeans.lib.profiler.ProfilerClient.establishConnectionWithServer(ProfilerClient.java:847) at org.netbeans.lib.profiler.TargetAppRunner.initiateSession(TargetAppRunner.java:376) at org.netbeans.modules.profiler.NetBeansProfiler.tryInitiateSession(NetBeansProfiler.java:1014) at org.netbeans.modules.profiler.NetBeansProfiler.access$1300(NetBeansProfiler.java:180) at org.netbeans.modules.profiler.NetBeansProfiler$3.run(NetBeansProfiler.java:967) Caused: org.openide.util.RequestProcessor$SlowItem: task failed due to: java.lang.ClassCastException: org.netbeans.lib.profiler.wireprotocol.Response cannot be cast to org.netbeans.lib.profiler.wireprotocol.VMPropertiesResponse at org.openide.util.RequestProcessor.post(RequestProcessor.java:419) at org.netbeans.modules.profiler.NetBeansProfiler.connectToStartedApp(NetBeansProfiler.java:962) at org.netbeans.modules.profiler.NetBeansProfiler.connectToStartedApp(NetBeansProfiler.java:920) at org.netbeans.modules.maven.profiler.RunCheckerImpl$1.run(RunCheckerImpl.java:148) at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:1423) at org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:2033)