Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 566578

Summary: Can't run/debug application due to error in console view.
Product: [Eclipse Project] JDT Reporter: Ramsey Gurley <ramseygurley>
Component: CoreAssignee: JDT-Core-Inbox <jdt-core-inbox>
Status: CLOSED WONTFIX QA Contact:
Severity: normal    
Priority: P3    
Version: 4.15   
Target Milestone: ---   
Hardware: Other   
OS: Linux   
Whiteboard:

Description Ramsey Gurley CLA 2020-09-01 21:17:40 EDT
What steps will reproduce the problem?
1. 
2. 
3. 


-- Error Details --
Date: Wed Sep 02 00:55:08 UTC 2020
Message: An internal error occurred during: "Creating console for /usr/lib/jvm/java-14-openjdk/bin/java (Sep 2, 2020, 12:55:07 AM)".
Severity: Error
Product: Eclipse Platform 4.15.0.v20200316-1200 (org.eclipse.platform.ide)
Plugin: org.eclipse.core.jobs
Session Data:
eclipse.buildId=4.15.0.v20200316-1200
java.version=1.8.0_265
java.vendor=Red Hat, Inc
BootLoader constants: OS=linux, ARCH=aarch64, WS=gtk, NL=en_US
Command-line arguments:  -os linux -ws gtk -arch aarch64 -data /home/armclipse/workspaces/default

Exception Stack Trace:
java.lang.NoSuchMethodError: java.nio.ByteBuffer.flip()Ljava/nio/ByteBuffer;
	at org.eclipse.ui.internal.console.StreamDecoder.<init>(StreamDecoder.java:42)
	at org.eclipse.ui.console.IOConsoleOutputStream.<init>(IOConsoleOutputStream.java:85)
	at org.eclipse.ui.console.IOConsole.newOutputStream(IOConsole.java:170)
	at org.eclipse.debug.internal.ui.views.console.ProcessConsole.connect(ProcessConsole.java:665)
	at org.eclipse.debug.internal.ui.views.console.ProcessConsole.connect(ProcessConsole.java:632)
	at org.eclipse.debug.ui.console.ConsoleColorProvider.connect(ConsoleColorProvider.java:43)
	at org.eclipse.debug.internal.ui.views.console.ProcessConsole.<init>(ProcessConsole.java:246)
	at org.eclipse.debug.internal.ui.views.console.ProcessConsoleManager$ConsoleCreation.run(ProcessConsoleManager.java:75)
	at org.eclipse.core.internal.jobs.Worker.run(Worker.java:63)
Comment 1 Ramsey Gurley CLA 2020-09-01 22:13:52 EDT
I know this happens as a result of a missing cast, but this also seems to be a problem with Fedora's packaging. If I set the default jdk on the system to latest, then this error goes away. I'll just set this as won't fix, since Fedora will update to JDK 11 as default soon in v33. Sorry for the noise, but at least I got to test out my mylyn connector ;)