apache / apache/netbeans

“ java.lang.NullPointerException: Cannot invoke "java.net.URL.openStream()" because "xmlFile" is null “.

Open
#8,811 2 comments 0 reactions 0 assignees View on GitHub
Java EE/Jakarta EE kind:bug needs:triage stale
Dominant language
Java
Stars
3.1k
Forks
935
Avg merge
2d 3h
Merged PRs (30d)
17

Description

### Apache NetBeans version

Apache NetBeans 27

### What happened

[NetBeans 27-Exception when trying to create New Project.pdf](https://github.com/user-attachments/files/22250081/NetBeans.27-Exception.when.trying.to.create.New.Project.pdf)

### Language / Project Type / NetBeans Component

Java Maven Project, Web Application

### How to reproduce

To Reproduce:
1. Download netbeans-27-bin.zip (Platform Independent)
2. Extract from zip.
3. …Apache NetBeans\netbeans-27-bin\netbeans\bin
4. Double click netbeans64.exe
5. NetBeans opens.
6. Select File ->New Project
7. New Project panel appears
8. Select File->New Project
9. Click to select Java with Maven->Web Application and getting Notification “Unexpected Exception”
10. Getting this from first line of stack trace:

“ java.lang.NullPointerException: Cannot invoke "java.net.URL.openStream()" because "xmlFile" is null “.

### Did this work correctly in an earlier version?

Apache NetBeans 25

### Operating System

Windows 10 Professional

### JDK

JDK 21

### Apache NetBeans packaging

Apache NetBeans binary zip

### Anything else

I tried re-downloading netbeans-27-bin.zip, to make sure something did not go wrong during download. The effecet was the same when attempting to create a New Project.

### Are you willing to submit a pull request?

No

Contributor guide

Open the contributing guide

Research direction

Reproduce the failure in Apache NetBeans 27 on Windows 10 with JDK 21 by opening File → New Project and selecting Java with Maven → Web Application. Start with the attached exception report and the New Project wizard flow; done means this project type opens without the reported NullPointerException.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
devtools
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.