Skip to content

java.lang.ClassCastException has occurred during launch #8582

Open
@larry-zpt

Description

@larry-zpt

Apache NetBeans version

Apache NetBeans 26

What happened

The program in IDE debug will not launch. using JDK-24

messages.log\

java.lang.ClassCastException: class org.netbeans.spi.debugger.ActionsProvider$ContextAware cannot be cast to class org.openide.util.Cancellable (org.netbeans.spi.debugger.ActionsProvider$ContextAware is in unnamed module of loader org.netbeans.StandardModule$OneModuleClassLoader @2169c0f; org.openide.util.Cancellable is in unnamed module of loader 'app')
	at org.netbeans.api.debugger.ActionsManager$AsynchActionTask.getCancellable(ActionsManager.java:694)
	at org.netbeans.api.debugger.ActionsManager$AsynchActionTask.cancel(ActionsManager.java:672)
	at org.netbeans.api.debugger.DebuggerManager.startDebugging(DebuggerManager.java:383)
	at org.netbeans.api.debugger.jpda.JPDADebugger.startListeningAndGetEngines(JPDADebugger.java:245)
	at org.netbeans.modules.debugger.jpda.ant.JPDAStart$1.run(JPDAStart.java:535)
	at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:1403)
	at org.netbeans.modules.openide.util.GlobalLookup.execute(GlobalLookup.java:45)
	at org.openide.util.lookup.Lookups.executeWith(Lookups.java:287)
[catch] at org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:2018)

Language / Project Type / NetBeans Component

No response

How to reproduce

Just starting the app in debug mode

Did this work correctly in an earlier version?

Apache NetBeans 23

Operating System

Windows 11 for Workstations

JDK

JDK-24

Apache NetBeans packaging

Apache NetBeans platform

Anything else

No response

Are you willing to submit a pull request?

No

Metadata

Metadata

Assignees

No one assigned

    Labels

    kind:bugBug report or fixneeds:triageRequires attention from one of the committerspending-responseAwaiting further information to be supplied

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions