Skip to content
This repository has been archived by the owner on Nov 27, 2023. It is now read-only.

[BUG] NPE when trying to parse catalog with 0.4.1 and 0.4.2 #336

Closed
apupier opened this issue Nov 28, 2022 · 2 comments · Fixed by #338
Closed

[BUG] NPE when trying to parse catalog with 0.4.1 and 0.4.2 #336

apupier opened this issue Nov 28, 2022 · 2 comments · Fixed by #338
Assignees
Labels
bug Something isn't working

Comments

@apupier
Copy link
Contributor

apupier commented Nov 28, 2022

Describe the bug

Only one item is showing up in catalog in UI, the knative ones. (and also the EIPs)

To Reproduce
Steps to reproduce the behavior:

  1. Download native executable
  2. Start it

Expected behavior
A clear and concise description of what you expected to happen.

Logs

2022-11-28 11:50:08,454 INFO  [io.kao.bac.api.met.cat.AbstractCatalog] (ForkJoinPool.commonPool-worker-1) Catalog warmed up.
2022-11-28 11:50:11,536 ERROR [io.kao.bac.met.par.JarParseCatalog] (ForkJoinPool.commonPool-worker-1) Error trying to parse catalog.: java.lang.NullPointerException: in is null
	at java.util.zip.ZipInputStream.<init>(ZipInputStream.java:103)
	at java.util.zip.ZipInputStream.<init>(ZipInputStream.java:82)
	at io.kaoto.backend.metadata.parser.JarParseCatalog.getJarAndParse(JarParseCatalog.java:53)
	at io.kaoto.backend.metadata.parser.JarParseCatalog.lambda$parse$2(JarParseCatalog.java:129)
	at java.util.concurrent.CompletableFuture$AsyncSupply.run(CompletableFuture.java:1768)
	at java.util.concurrent.CompletableFuture$AsyncSupply.exec(CompletableFuture.java:1760)
	at java.util.concurrent.ForkJoinTask.doExec(ForkJoinTask.java:373)
	at java.util.concurrent.ForkJoinPool$WorkQueue.topLevelExec(ForkJoinPool.java:1182)
	at java.util.concurrent.ForkJoinPool.scan(ForkJoinPool.java:1655)
	at java.util.concurrent.ForkJoinPool.runWorker(ForkJoinPool.java:1622)
	at java.util.concurrent.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:165)
	at com.oracle.svm.core.thread.PlatformThreads.threadStartRoutine(PlatformThreads.java:705)
	at com.oracle.svm.core.posix.thread.PosixPlatformThreads.pthreadStartRoutine(PosixPlatformThreads.java:202)

Environment (please complete the following information):

Additional context

tried only with native executable so far (both Windows and Linux)

@apupier apupier added the bug Something isn't working label Nov 28, 2022
@apupier apupier changed the title [BUG] NPE when trying to parse catalog with 0.4.2 [BUG] NPE when trying to parse catalog with 0.4.1 and 0.4.2 Nov 28, 2022
@apupier
Copy link
Contributor Author

apupier commented Nov 28, 2022

I guess this kind of problem coudl be caught only with an integration test: https://quarkus.io/guides/getting-started-testing#quarkus-integration-test

@apupier apupier self-assigned this Nov 28, 2022
apupier added a commit to apupier/kaoto-backend that referenced this issue Nov 28, 2022
apupier added a commit to apupier/kaoto-backend that referenced this issue Nov 28, 2022
apupier added a commit to apupier/kaoto-backend that referenced this issue Nov 28, 2022
apupier added a commit to apupier/kaoto-backend that referenced this issue Nov 28, 2022
apupier added a commit to apupier/kaoto-backend that referenced this issue Nov 28, 2022
apupier added a commit to apupier/kaoto-backend that referenced this issue Nov 28, 2022
apupier added a commit to apupier/kaoto-backend that referenced this issue Nov 28, 2022
apupier added a commit to apupier/kaoto-backend that referenced this issue Nov 28, 2022
apupier added a commit to apupier/kaoto-backend that referenced this issue Nov 29, 2022
apupier added a commit to apupier/kaoto-backend that referenced this issue Nov 29, 2022
apupier added a commit to apupier/kaoto-backend that referenced this issue Nov 29, 2022
Delawen pushed a commit that referenced this issue Nov 29, 2022
Delawen pushed a commit that referenced this issue Nov 29, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant