Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PK fails getting NPM dependency URL #577

Closed
kaklakariada opened this issue May 29, 2024 · 0 comments · Fixed by #579
Closed

PK fails getting NPM dependency URL #577

kaklakariada opened this issue May 29, 2024 · 0 comments · Fixed by #579
Assignees
Labels
bug Unwanted / harmful behavior

Comments

@kaklakariada
Copy link
Collaborator

Caused by: java.lang.NullPointerException: Cannot invoke "jakarta.json.JsonString.getString()" because the return value of "org.eclipse.parsson.JsonObjectBuilderImpl$JsonObjectImpl.getJsonString(String)" is null
    at org.eclipse.parsson.JsonObjectBuilderImpl$JsonObjectImpl.getString (JsonObjectBuilderImpl.java:264)
    at com.exasol.projectkeeper.sources.analyze.npm.NpmDependencies.getUrl (NpmDependencies.java:69)
    at com.exasol.projectkeeper.sources.analyze.npm.NpmDependencies.projectDependency (NpmDependencies.java:54)
    at java.util.stream.ReferencePipeline$3$1.accept (ReferencePipeline.java:197)
    at java.util.ArrayList$ArrayListSpliterator.forEachRemaining (ArrayList.java:1625)
    at java.util.stream.AbstractPipeline.copyInto (AbstractPipeline.java:509)
    at java.util.stream.AbstractPipeline.wrapAndCopyInto (AbstractPipeline.java:499)
    at java.util.stream.ReduceOps$ReduceOp.evaluateSequential (ReduceOps.java:921)
    at java.util.stream.AbstractPipeline.evaluate (AbstractPipeline.java:234)
    at java.util.stream.ReferencePipeline.collect (ReferencePipeline.java:682)
    at com.exasol.projectkeeper.sources.analyze.npm.NpmDependencies.getDependencies (NpmDependencies.java:40)
    at com.exasol.projectkeeper.sources.analyze.npm.NpmServices.getDependencies (NpmServices.java:53)
    at com.exasol.projectkeeper.sources.analyze.npm.NpmSourceAnalyzer.analyzeSource (NpmSourceAnalyzer.java:52)
    at com.exasol.projectkeeper.sources.analyze.npm.NpmSourceAnalyzer.lambda$analyze$0 (NpmSourceAnalyzer.java:36)
    at java.util.stream.ReferencePipeline$3$1.accept (ReferencePipeline.java:197)
    at java.util.ArrayList$ArrayListSpliterator.forEachRemaining (ArrayList.java:1625)
    at java.util.stream.AbstractPipeline.copyInto (AbstractPipeline.java:509)
    at java.util.stream.AbstractPipeline.wrapAndCopyInto (AbstractPipeline.java:499)
    at java.util.stream.ReduceOps$ReduceOp.evaluateSequential (ReduceOps.java:921)
    at java.util.stream.AbstractPipeline.evaluate (AbstractPipeline.java:234)
    at java.util.stream.ReferencePipeline.collect (ReferencePipeline.java:682)
    at com.exasol.projectkeeper.sources.analyze.npm.NpmSourceAnalyzer.analyze (NpmSourceAnalyzer.java:36)
    at com.exasol.projectkeeper.sources.SourceAnalyzer.analyzeSources (SourceAnalyzer.java:68)
    at com.exasol.projectkeeper.sources.SourceAnalyzer.analyze (SourceAnalyzer.java:59)
    at com.exasol.projectkeeper.ProjectKeeper.phase2AnalyzeSources (ProjectKeeper.java:137)
    at com.exasol.projectkeeper.ProjectKeeper.runValidationPhases (ProjectKeeper.java:276)
    at com.exasol.projectkeeper.ProjectKeeper.fix (ProjectKeeper.java:260)
    at com.exasol.projectkeeper.plugin.ProjectKeeperFixMojo.runProjectKeeper (ProjectKeeperFixMojo.java:20)
    at com.exasol.projectkeeper.plugin.AbstractProjectKeeperMojo.execute (AbstractProjectKeeperMojo.java:43)
    at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo (DefaultBuildPluginManager.java:137)
@kaklakariada kaklakariada added the bug Unwanted / harmful behavior label May 29, 2024
@kaklakariada kaklakariada self-assigned this Jun 3, 2024
kaklakariada added a commit that referenced this issue Jun 3, 2024
kaklakariada added a commit that referenced this issue Jun 3, 2024
* #578: Fix automatic dependency update

* Update plugin versions

* Remove requirement

* #577: Fix code for failing NPM dependency URL

* Adapt unit tests

* #577: Don't fail for missing URL

* Fix javadoc generation

* Increment requirement revision

* Update changelog
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Unwanted / harmful behavior
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant