This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
Summary: | NullPointerException at java.net.URL.<init> | ||
---|---|---|---|
Product: | projects | Reporter: | jfelfouly <jfelfouly> |
Component: | Maven | Assignee: | Tomas Stupka <tstupka> |
Status: | NEW --- | ||
Severity: | normal | CC: | dtrebbien, eduarddrenth, jfelfouly, MackSix |
Priority: | P3 | ||
Version: | Dev | ||
Hardware: | All | ||
OS: | All | ||
Issue Type: | DEFECT | Exception Reporter: | 229720 |
Attachments: |
stacktrace
stacktrace stacktrace stacktrace stacktrace stacktrace |
Description
jfelfouly
2017-07-14 10:08:01 UTC
Created attachment 164769 [details]
stacktrace
Created attachment 164770 [details]
stacktrace
Mistyping and retyping a > at the end of </dependencies>
Second stack trace was generated a few minutes later while editing the same POM. Created attachment 164825 [details]
stacktrace
Trying to manually add a <version> to spring-cloud-starter-aws.
It seems the problem occurred while typing the closing > of the version tag.
Created attachment 165164 [details]
stacktrace
Editing maven-assembly-plugin version in pom.
This bug already has 5 duplicates see http://statistics.netbeans.org/exceptions/detail.do?id=229720 Created attachment 165333 [details]
stacktrace
edit pom.xml trying to change version of dependency
Created attachment 165418 [details] stacktrace Editing a Maven POM, I started from this: <?xml version="1.0" encoding="UTF-8"?> <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> <modelVersion>4.0.0</modelVersion> <groupId>test</groupId> <artifactId>HintsTest</artifactId> <version>1.0-SNAPSHOT</version> <packaging>jar</packaging> <properties> <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> <maven.compiler.source>1.8</maven.compiler.source> <maven.compiler.target>1.8</maven.compiler.target> </properties> </project> .. and I had just typed '<dependencies', ending with this: <?xml version="1.0" encoding="UTF-8"?> <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0 .. ending up with this: <?xml version="1.0" encoding="UTF-8"?> <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> <modelVersion>4.0.0</modelVersion> <groupId>test</groupId> <artifactId>HintsTest</artifactId> <version>1.0-SNAPSHOT</version> <packaging>jar</packaging> <properties> <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> <maven.compiler.source>1.8</maven.compiler.source> <maven.compiler.target>1.8</maven.compiler.target> </properties> <dependencies </project> Debugging the problem, I found that getSchemaStream() at AbstractSchemaBasedGrammar.java:68 returned null. The getSchemaStream() implementation is within MavenProjectGrammar: @Override protected InputStream getSchemaStream() { return getClass().getResourceAsStream("/org/netbeans/modules/maven/grammar/maven-4.0.0.xsd"); //NOI18N } The getResourceAsStream() call returned null. You say you use "Build: NetBeans IDE Dev (Build 20170624-unknown-revn)". Is this by any chance NetBeans source code you've build yourself based on source code from Apache NetBeans (incubating). This would explain the problem. If this is the case, then I think this is the wrong bug tracker. Apache's bug tracker (https://issues.apache.org/jira , project=NETBEANS) is probably more appropriate. Yes, I was using a build of Apache NetBeans that I made myself. Comment #8 was submitted automatically on my behalf by the built-in exception reporter. |