[SRU] Netbeans fails to create a java project with NoSuchMethodError
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
netbeans (Debian) |
Fix Released
|
Unknown
|
|||
netbeans (Ubuntu) |
Fix Released
|
High
|
Unassigned | ||
Bionic |
Fix Released
|
Undecided
|
Unassigned | ||
Cosmic |
Fix Released
|
Undecided
|
Unassigned | ||
Disco |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
[Impact]
When trying to create a new Java project with Netbeans 10.0 the project is not created and an error is reported on netbeans log file and in netbeans' message report. The wizard window stays there with buttons disabled and can only be dismissed with the ESC button.
This affects netbeans 10.0 packages in all supported releases: bionic, cosmic, disco, and eoan.
~/.netbeans/
<snip>
SEVERE [org.openide.
java.lang.
at org.netbeans.
at org.netbeans.
at org.netbeans.
at com.sun.
at com.sun.
at com.sun.
at org.netbeans.
at org.netbeans.
at org.netbeans.
at com.sun.
at com.sun.
at com.sun.
at com.sun.
at com.sun.
at org.netbeans.
at org.netbeans.
at org.netbeans.
at org.netbeans.
at org.netbeans.
at org.netbeans.
at org.netbeans.
at org.netbeans.
at org.openide.
at java.desktop/
at java.desktop/
at java.desktop/
at org.netbeans.
at org.openide.
at java.desktop/
at java.desktop/
at java.desktop/
at org.netbeans.
at org.openide.
at java.desktop/
at java.desktop/
at org.netbeans.
at org.openide.
at org.openide.
at org.openide.
at org.netbeans.
at org.netbeans.
at org.netbeans.
at org.openide.
at org.netbeans.
at org.netbeans.
at org.netbeans.
at org.netbeans.
at org.netbeans.
at org.netbeans.
at org.openide.
at org.netbeans.
at org.netbeans.
at org.netbeans.
at org.openide.
at org.openide.
at org.netbeans.
at org.netbeans.
at org.netbeans.
at org.openide.
at org.openide.
at org.netbeans.
at org.openide.
at org.openide.
at org.openide.
at org.openide.
at org.openide.
at org.openide.
at org.openide.
at org.openide.
at org.netbeans.
[catch] at org.openide.
at org.openide.
[Test Case]
1. In Netbeans, click "File" -> "New Project"
2. Select "Java" -> "Java Application"
3. Click "Next >" and then "Finish"
4. A new Java Project should have been created
Without the fix step #4 is:
4. Observe that the Wizard will have all buttons but "Help"
disabled and that the Notifications tab contains a
"Unexpected Exception" message in it. The netbeans log
file at ~/.netbeans/
contains an error report with the full exception.
[Regression Potential]
* The backported patch is 1.8k lines long and touches a few APIs, so it could introduce new bugs on untested code paths. It has not yet make into Netbeans 11 or 10, so tracking upstream bugs regarding this patch could be somewhat hard. Still, it is needed to get Netbeans working.
Changed in netbeans (Debian): | |
status: | Unknown → New |
description: | updated |
tags: | added: bionic cosmic disco |
summary: |
- Netbeans fails to create a java project with NoSuchMethodError + [SRU] Netbeans fails to create a java project with NoSuchMethodError |
Changed in netbeans (Ubuntu): | |
importance: | Undecided → High |
Changed in netbeans (Ubuntu Disco): | |
status: | Fix Committed → Fix Released |
Changed in netbeans (Debian): | |
status: | New → Fix Released |
This bug was fixed in the package netbeans - 10.0-3ubuntu2
---------------
netbeans (10.0-3ubuntu2) eoan; urgency=medium
* Backport upstream patch to remove old javadoc api and implementation usage
to make it work with OpenJDK 11 and later. (Closes: #925509, LP: #1828427)
* Depend on java11-sdk instead of java8-sdk as Netbeans is now configured to
run with openjdk-11. (LP: #1825604)
-- Tiago Stürmer Daitx <email address hidden> Tue, 21 May 2019 20:22:04 +0000