Description
I had repository:
feature:repo-add mvn:io.my.company/features/1.0/xml/features
Then I changed folder name in the filesystem from "features" to "my.features".
I tried to remove old repo from Karaf:
feature:repo-remove mvn:io.my.company/features/1.0/xml/features
but I've got:
No matching repository for mvn:io.my.company/features/1.0/xml/features
Then I've noticed that Karaf somehow tracked the change, and new repo appeared in repo-list:
feature:repo-list Repository | URL ----------------------------------+----------------------------------------------- my-name | mvn:io.my.company/my.features/1.0/xml/features
but when I try to remove it:
feature:repo-remove mvn:io.my.company/my.features/1.0/xml/features
I got:
Removing features repository: mvn:io.my.company/my.features/1.0/xml/features Error executing command: java.lang.NullPointerException log:display 18:07:02.315 WARN [pipe-feature:repo-list -r] Can't load features repository mvn:io.my.company/features/1.0/xml/features java.lang.RuntimeException: Error resolving artifact io.my.company:features:xml:features:1.0: [Could not find artifact io.my.company:features:xml:features:1.0 in central (http://repo1.maven.org/maven2/)] : mvn:io.my.company/features/1.0/xml/features at org.apache.karaf.features.internal.service.RepositoryImpl.load(RepositoryImpl.java:116) ~[11:org.apache.karaf.features.core:4.2.5] at org.apache.karaf.features.internal.service.RepositoryImpl.<init>(RepositoryImpl.java:50) ~[11:org.apache.karaf.features.core:4.2.5] at org.apache.karaf.features.internal.service.RepositoryCacheImpl.create(RepositoryCacheImpl.java:51) ~[11:org.apache.karaf.features.core:4.2.5] at org.apache.karaf.features.internal.service.FeaturesServiceImpl.getFeatureCache(FeaturesServiceImpl.java:601) [11:org.apache.karaf.features.core:4.2.5] at org.apache.karaf.features.internal.service.FeaturesServiceImpl.ensureCacheLoaded(FeaturesServiceImpl.java:572) [11:org.apache.karaf.features.core:4.2.5] at org.apache.karaf.features.internal.service.FeaturesServiceImpl.listRepositories(FeaturesServiceImpl.java:496) [11:org.apache.karaf.features.core:4.2.5] at org.apache.karaf.features.command.RepoListCommand.doExecute(RepoListCommand.java:57) [24:org.apache.karaf.features.command:4.2.5] at org.apache.karaf.features.command.FeaturesCommandSupport.execute(FeaturesCommandSupport.java:40) [24:org.apache.karaf.features.command:4.2.5] at org.apache.karaf.shell.impl.action.command.ActionCommand.execute(ActionCommand.java:84) [35:org.apache.karaf.shell.core:4.2.5] at org.apache.karaf.shell.impl.console.osgi.secured.SecuredCommand.execute(SecuredCommand.java:68) [35:org.apache.karaf.shell.core:4.2.5] at org.apache.karaf.shell.impl.console.osgi.secured.SecuredCommand.execute(SecuredCommand.java:86) [35:org.apache.karaf.shell.core:4.2.5] at org.apache.felix.gogo.runtime.Closure.executeCmd(Closure.java:599) [35:org.apache.karaf.shell.core:4.2.5] at org.apache.felix.gogo.runtime.Closure.executeStatement(Closure.java:526) [35:org.apache.karaf.shell.core:4.2.5] at org.apache.felix.gogo.runtime.Closure.execute(Closure.java:415) [35:org.apache.karaf.shell.core:4.2.5] at org.apache.felix.gogo.runtime.Pipe.doCall(Pipe.java:416) [35:org.apache.karaf.shell.core:4.2.5] at org.apache.felix.gogo.runtime.Pipe.call(Pipe.java:229) [35:org.apache.karaf.shell.core:4.2.5] at org.apache.felix.gogo.runtime.Pipe.call(Pipe.java:59) [35:org.apache.karaf.shell.core:4.2.5] at java.util.concurrent.FutureTask.run(FutureTask.java:264) [?:?] at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1167) [?:?] at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:641) [?:?] at java.lang.Thread.run(Thread.java:844) [?:?] Caused by: java.io.IOException: Error resolving artifact io.my.company:features:xml:features:1.0: [Could not find artifact io.my.company:features:xml:features:1.0 in central (http://repo1.maven.org/maven2/)] at org.ops4j.pax.url.mvn.internal.AetherBasedResolver.configureIOException(AetherBasedResolver.java:803) ~[?:?] at org.ops4j.pax.url.mvn.internal.AetherBasedResolver.resolve(AetherBasedResolver.java:774) ~[?:?] at org.ops4j.pax.url.mvn.internal.AetherBasedResolver.resolve(AetherBasedResolver.java:657) ~[?:?] at org.ops4j.pax.url.mvn.internal.AetherBasedResolver.resolve(AetherBasedResolver.java:598) ~[?:?] at org.ops4j.pax.url.mvn.internal.AetherBasedResolver.resolve(AetherBasedResolver.java:565) ~[?:?] at org.ops4j.pax.url.mvn.internal.AetherBasedResolver.resolve(AetherBasedResolver.java:555) ~[?:?] at org.ops4j.pax.url.mvn.internal.Connection.getInputStream(Connection.java:123) ~[?:?] at java.net.URL.openStream(URL.java:1117) ~[?:?] at org.apache.karaf.features.internal.service.RepositoryImpl.load(RepositoryImpl.java:113) ~[?:?] ... 20 more Suppressed: shaded.org.eclipse.aether.transfer.ArtifactNotFoundException: Could not find artifact io.my.company:features:xml:features:1.0 in central (http://repo1.maven.org/maven2/) at shaded.org.eclipse.aether.connector.basic.ArtifactTransportListener.transferFailed(ArtifactTransportListener.java:48) ~[?:?] at shaded.org.eclipse.aether.connector.basic.BasicRepositoryConnector$TaskRunner.run(BasicRepositoryConnector.java:368) ~[?:?] at shaded.org.eclipse.aether.util.concurrency.RunnableErrorForwarder$1.run(RunnableErrorForwarder.java:75) ~[?:?] at shaded.org.eclipse.aether.connector.basic.BasicRepositoryConnector$DirectExecutor.execute(BasicRepositoryConnector.java:642) ~[?:?] at shaded.org.eclipse.aether.connector.basic.BasicRepositoryConnector.get(BasicRepositoryConnector.java:262) ~[?:?] at shaded.org.eclipse.aether.internal.impl.DefaultArtifactResolver.performDownloads(DefaultArtifactResolver.java:489) ~[?:?] at shaded.org.eclipse.aether.internal.impl.DefaultArtifactResolver.resolve(DefaultArtifactResolver.java:390) ~[?:?] at shaded.org.eclipse.aether.internal.impl.DefaultArtifactResolver.resolveArtifacts(DefaultArtifactResolver.java:215) ~[?:?] at shaded.org.eclipse.aether.internal.impl.DefaultArtifactResolver.resolveArtifact(DefaultArtifactResolver.java:192) ~[?:?] at shaded.org.eclipse.aether.internal.impl.DefaultRepositorySystem.resolveArtifact(DefaultRepositorySystem.java:247) ~[?:?] at org.ops4j.pax.url.mvn.internal.AetherBasedResolver.resolve(AetherBasedResolver.java:767) ~[?:?] at org.ops4j.pax.url.mvn.internal.AetherBasedResolver.resolve(AetherBasedResolver.java:657) ~[?:?] at org.ops4j.pax.url.mvn.internal.AetherBasedResolver.resolve(AetherBasedResolver.java:598) ~[?:?] at org.ops4j.pax.url.mvn.internal.AetherBasedResolver.resolve(AetherBasedResolver.java:565) ~[?:?] at org.ops4j.pax.url.mvn.internal.AetherBasedResolver.resolve(AetherBasedResolver.java:555) ~[?:?] at org.ops4j.pax.url.mvn.internal.Connection.getInputStream(Connection.java:123) ~[?:?] at java.net.URL.openStream(URL.java:1117) ~[?:?] at org.apache.karaf.features.internal.service.RepositoryImpl.load(RepositoryImpl.java:113) ~[11:org.apache.karaf.features.core:4.2.5] at org.apache.karaf.features.internal.service.RepositoryImpl.<init>(RepositoryImpl.java:50) ~[11:org.apache.karaf.features.core:4.2.5] at org.apache.karaf.features.internal.service.RepositoryCacheImpl.create(RepositoryCacheImpl.java:51) ~[11:org.apache.karaf.features.core:4.2.5] at org.apache.karaf.features.internal.service.FeaturesServiceImpl.getFeatureCache(FeaturesServiceImpl.java:601) [11:org.apache.karaf.features.core:4.2.5] at org.apache.karaf.features.internal.service.FeaturesServiceImpl.ensureCacheLoaded(FeaturesServiceImpl.java:572) [11:org.apache.karaf.features.core:4.2.5] at org.apache.karaf.features.internal.service.FeaturesServiceImpl.listRepositories(FeaturesServiceImpl.java:496) [11:org.apache.karaf.features.core:4.2.5] at org.apache.karaf.features.command.RepoListCommand.doExecute(RepoListCommand.java:57) [24:org.apache.karaf.features.command:4.2.5] at org.apache.karaf.features.command.FeaturesCommandSupport.execute(FeaturesCommandSupport.java:40) [24:org.apache.karaf.features.command:4.2.5] at org.apache.karaf.shell.impl.action.command.ActionCommand.execute(ActionCommand.java:84) [35:org.apache.karaf.shell.core:4.2.5] at org.apache.karaf.shell.impl.console.osgi.secured.SecuredCommand.execute(SecuredCommand.java:68) [35:org.apache.karaf.shell.core:4.2.5] at org.apache.karaf.shell.impl.console.osgi.secured.SecuredCommand.execute(SecuredCommand.java:86) [35:org.apache.karaf.shell.core:4.2.5] at org.apache.felix.gogo.runtime.Closure.executeCmd(Closure.java:599) [35:org.apache.karaf.shell.core:4.2.5] at org.apache.felix.gogo.runtime.Closure.executeStatement(Closure.java:526) [35:org.apache.karaf.shell.core:4.2.5] at org.apache.felix.gogo.runtime.Closure.execute(Closure.java:415) [35:org.apache.karaf.shell.core:4.2.5] at org.apache.felix.gogo.runtime.Pipe.doCall(Pipe.java:416) [35:org.apache.karaf.shell.core:4.2.5] at org.apache.felix.gogo.runtime.Pipe.call(Pipe.java:229) [35:org.apache.karaf.shell.core:4.2.5] at org.apache.felix.gogo.runtime.Pipe.call(Pipe.java:59) [35:org.apache.karaf.shell.core:4.2.5] at java.util.concurrent.FutureTask.run(FutureTask.java:264) [?:?] at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1167) [?:?] at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:641) [?:?] at java.lang.Thread.run(Thread.java:844) [?:?] Caused by: shaded.org.eclipse.aether.resolution.ArtifactResolutionException: Error resolving artifact io.my.company:features:xml:features:1.0 at shaded.org.eclipse.aether.internal.impl.DefaultArtifactResolver.resolve(DefaultArtifactResolver.java:413) ~[?:?] at shaded.org.eclipse.aether.internal.impl.DefaultArtifactResolver.resolveArtifacts(DefaultArtifactResolver.java:215) ~[?:?] at shaded.org.eclipse.aether.internal.impl.DefaultArtifactResolver.resolveArtifact(DefaultArtifactResolver.java:192) ~[?:?] at shaded.org.eclipse.aether.internal.impl.DefaultRepositorySystem.resolveArtifact(DefaultRepositorySystem.java:247) ~[?:?] at org.ops4j.pax.url.mvn.internal.AetherBasedResolver.resolve(AetherBasedResolver.java:767) ~[?:?] at org.ops4j.pax.url.mvn.internal.AetherBasedResolver.resolve(AetherBasedResolver.java:657) ~[?:?] at org.ops4j.pax.url.mvn.internal.AetherBasedResolver.resolve(AetherBasedResolver.java:598) ~[?:?] at org.ops4j.pax.url.mvn.internal.AetherBasedResolver.resolve(AetherBasedResolver.java:565) ~[?:?] at org.ops4j.pax.url.mvn.internal.AetherBasedResolver.resolve(AetherBasedResolver.java:555) ~[?:?] at org.ops4j.pax.url.mvn.internal.Connection.getInputStream(Connection.java:123) ~[?:?] at java.net.URL.openStream(URL.java:1117) ~[?:?] at org.apache.karaf.features.internal.service.RepositoryImpl.load(RepositoryImpl.java:113) ~[?:?] ... 20 more 18:07:12.657 ERROR [Karaf local console user karaf] Exception caught while executing command java.lang.NullPointerException: null at java.util.ArrayDeque.addLast(ArrayDeque.java:304) ~[?:?] at java.util.Collections$SingletonSet.forEach(Collections.java:4784) ~[?:?] at java.util.ArrayDeque.addAll(ArrayDeque.java:326) ~[?:?] at java.util.ArrayDeque.<init>(ArrayDeque.java:211) ~[?:?] at org.apache.karaf.features.internal.service.RepositoryCacheImpl.getRepositoryClosure(RepositoryCacheImpl.java:114) ~[?:?] at org.apache.karaf.features.internal.service.FeaturesServiceImpl.removeRepository(FeaturesServiceImpl.java:426) ~[?:?] at org.apache.karaf.features.command.RepoRemoveCommand.doExecute(RepoRemoveCommand.java:59) ~[?:?] at org.apache.karaf.features.command.FeaturesCommandSupport.execute(FeaturesCommandSupport.java:40) ~[?:?] at org.apache.karaf.shell.impl.action.command.ActionCommand.execute(ActionCommand.java:84) ~[?:?] at org.apache.karaf.shell.impl.console.osgi.secured.SecuredCommand.execute(SecuredCommand.java:68) ~[?:?] at org.apache.karaf.shell.impl.console.osgi.secured.SecuredCommand.execute(SecuredCommand.java:86) ~[?:?] at org.apache.felix.gogo.runtime.Closure.executeCmd(Closure.java:599) ~[?:?] at org.apache.felix.gogo.runtime.Closure.executeStatement(Closure.java:526) ~[?:?] at org.apache.felix.gogo.runtime.Closure.execute(Closure.java:415) ~[?:?] at org.apache.felix.gogo.runtime.Pipe.doCall(Pipe.java:416) ~[?:?] at org.apache.felix.gogo.runtime.Pipe.call(Pipe.java:229) ~[?:?] at org.apache.felix.gogo.runtime.Pipe.call(Pipe.java:59) ~[?:?] at java.util.concurrent.FutureTask.run(FutureTask.java:264) ~[?:?] at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1167) ~[?:?] at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:641) ~[?:?] at java.lang.Thread.run(Thread.java:844) [?:?] 18:07:15.863 ERROR [Karaf local console user karaf] Exception caught while executing command java.lang.NullPointerException: null at java.util.ArrayDeque.addLast(ArrayDeque.java:304) ~[?:?] at java.util.Collections$SingletonSet.forEach(Collections.java:4784) ~[?:?] at java.util.ArrayDeque.addAll(ArrayDeque.java:326) ~[?:?] at java.util.ArrayDeque.<init>(ArrayDeque.java:211) ~[?:?] at org.apache.karaf.features.internal.service.RepositoryCacheImpl.getRepositoryClosure(RepositoryCacheImpl.java:114) ~[?:?] at org.apache.karaf.features.internal.service.FeaturesServiceImpl.removeRepository(FeaturesServiceImpl.java:426) ~[?:?] at org.apache.karaf.features.command.RepoRemoveCommand.doExecute(RepoRemoveCommand.java:59) ~[?:?] at org.apache.karaf.features.command.FeaturesCommandSupport.execute(FeaturesCommandSupport.java:40) ~[?:?] at org.apache.karaf.shell.impl.action.command.ActionCommand.execute(ActionCommand.java:84) ~[?:?] at org.apache.karaf.shell.impl.console.osgi.secured.SecuredCommand.execute(SecuredCommand.java:68) ~[?:?] at org.apache.karaf.shell.impl.console.osgi.secured.SecuredCommand.execute(SecuredCommand.java:86) ~[?:?] at org.apache.felix.gogo.runtime.Closure.executeCmd(Closure.java:599) ~[?:?] at org.apache.felix.gogo.runtime.Closure.executeStatement(Closure.java:526) ~[?:?] at org.apache.felix.gogo.runtime.Closure.execute(Closure.java:415) ~[?:?] at org.apache.felix.gogo.runtime.Pipe.doCall(Pipe.java:416) ~[?:?] at org.apache.felix.gogo.runtime.Pipe.call(Pipe.java:229) ~[?:?] at org.apache.felix.gogo.runtime.Pipe.call(Pipe.java:59) ~[?:?] at java.util.concurrent.FutureTask.run(FutureTask.java:264) ~[?:?] at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1167) ~[?:?] at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:641) ~[?:?] at java.lang.Thread.run(Thread.java:844) [?:?] 18:07:18.512 ERROR [Karaf local console user karaf] Exception caught while executing command java.lang.NullPointerException: null at java.util.ArrayDeque.addLast(ArrayDeque.java:304) ~[?:?] at java.util.Collections$SingletonSet.forEach(Collections.java:4784) ~[?:?] at java.util.ArrayDeque.addAll(ArrayDeque.java:326) ~[?:?] at java.util.ArrayDeque.<init>(ArrayDeque.java:211) ~[?:?] at org.apache.karaf.features.internal.service.RepositoryCacheImpl.getRepositoryClosure(RepositoryCacheImpl.java:114) ~[?:?] at org.apache.karaf.features.internal.service.FeaturesServiceImpl.removeRepository(FeaturesServiceImpl.java:426) ~[?:?] at org.apache.karaf.features.command.RepoRemoveCommand.doExecute(RepoRemoveCommand.java:59) ~[?:?] at org.apache.karaf.features.command.FeaturesCommandSupport.execute(FeaturesCommandSupport.java:40) ~[?:?] at org.apache.karaf.shell.impl.action.command.ActionCommand.execute(ActionCommand.java:84) ~[?:?] at org.apache.karaf.shell.impl.console.osgi.secured.SecuredCommand.execute(SecuredCommand.java:68) ~[?:?] at org.apache.karaf.shell.impl.console.osgi.secured.SecuredCommand.execute(SecuredCommand.java:86) ~[?:?] at org.apache.felix.gogo.runtime.Closure.executeCmd(Closure.java:599) ~[?:?] at org.apache.felix.gogo.runtime.Closure.executeStatement(Closure.java:526) ~[?:?] at org.apache.felix.gogo.runtime.Closure.execute(Closure.java:415) ~[?:?] at org.apache.felix.gogo.runtime.Pipe.doCall(Pipe.java:416) ~[?:?] at org.apache.felix.gogo.runtime.Pipe.call(Pipe.java:229) ~[?:?] at org.apache.felix.gogo.runtime.Pipe.call(Pipe.java:59) ~[?:?] at java.util.concurrent.FutureTask.run(FutureTask.java:264) ~[?:?] at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1167) ~[?:?] at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:641) ~[?:?] at java.lang.Thread.run(Thread.java:844) [?:?] 18:08:46.029 ERROR [Karaf local console user karaf] Exception caught while executing command java.lang.NullPointerException: null at java.util.ArrayDeque.addLast(ArrayDeque.java:304) ~[?:?] at java.util.Collections$SingletonSet.forEach(Collections.java:4784) ~[?:?] at java.util.ArrayDeque.addAll(ArrayDeque.java:326) ~[?:?] at java.util.ArrayDeque.<init>(ArrayDeque.java:211) ~[?:?] at org.apache.karaf.features.internal.service.RepositoryCacheImpl.getRepositoryClosure(RepositoryCacheImpl.java:114) ~[?:?] at org.apache.karaf.features.internal.service.FeaturesServiceImpl.removeRepository(FeaturesServiceImpl.java:426) ~[?:?] at org.apache.karaf.features.command.RepoRemoveCommand.doExecute(RepoRemoveCommand.java:59) ~[?:?] at org.apache.karaf.features.command.FeaturesCommandSupport.execute(FeaturesCommandSupport.java:40) ~[?:?] at org.apache.karaf.shell.impl.action.command.ActionCommand.execute(ActionCommand.java:84) ~[?:?] at org.apache.karaf.shell.impl.console.osgi.secured.SecuredCommand.execute(SecuredCommand.java:68) ~[?:?] at org.apache.karaf.shell.impl.console.osgi.secured.SecuredCommand.execute(SecuredCommand.java:86) ~[?:?] at org.apache.felix.gogo.runtime.Closure.executeCmd(Closure.java:599) ~[?:?] at org.apache.felix.gogo.runtime.Closure.executeStatement(Closure.java:526) ~[?:?] at org.apache.felix.gogo.runtime.Closure.execute(Closure.java:415) ~[?:?] at org.apache.felix.gogo.runtime.Pipe.doCall(Pipe.java:416) ~[?:?] at org.apache.felix.gogo.runtime.Pipe.call(Pipe.java:229) ~[?:?] at org.apache.felix.gogo.runtime.Pipe.call(Pipe.java:59) ~[?:?] at java.util.concurrent.FutureTask.run(FutureTask.java:264) ~[?:?] at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1167) ~[?:?] at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:641) ~[?:?] at java.lang.Thread.run(Thread.java:844) [?:?] 18:15:21.465 ERROR [Karaf local console user karaf] Exception caught while executing command java.lang.NullPointerException: null at java.util.ArrayDeque.addLast(ArrayDeque.java:304) ~[?:?] at java.util.Collections$SingletonSet.forEach(Collections.java:4784) ~[?:?] at java.util.ArrayDeque.addAll(ArrayDeque.java:326) ~[?:?] at java.util.ArrayDeque.<init>(ArrayDeque.java:211) ~[?:?] at org.apache.karaf.features.internal.service.RepositoryCacheImpl.getRepositoryClosure(RepositoryCacheImpl.java:114) ~[?:?] at org.apache.karaf.features.internal.service.FeaturesServiceImpl.removeRepository(FeaturesServiceImpl.java:426) ~[?:?] at org.apache.karaf.features.command.RepoRemoveCommand.doExecute(RepoRemoveCommand.java:59) ~[?:?] at org.apache.karaf.features.command.FeaturesCommandSupport.execute(FeaturesCommandSupport.java:40) ~[?:?] at org.apache.karaf.shell.impl.action.command.ActionCommand.execute(ActionCommand.java:84) ~[?:?] at org.apache.karaf.shell.impl.console.osgi.secured.SecuredCommand.execute(SecuredCommand.java:68) ~[?:?] at org.apache.karaf.shell.impl.console.osgi.secured.SecuredCommand.execute(SecuredCommand.java:86) ~[?:?] at org.apache.felix.gogo.runtime.Closure.executeCmd(Closure.java:599) ~[?:?] at org.apache.felix.gogo.runtime.Closure.executeStatement(Closure.java:526) ~[?:?] at org.apache.felix.gogo.runtime.Closure.execute(Closure.java:415) ~[?:?] at org.apache.felix.gogo.runtime.Pipe.doCall(Pipe.java:416) ~[?:?] at org.apache.felix.gogo.runtime.Pipe.call(Pipe.java:229) ~[?:?] at org.apache.felix.gogo.runtime.Pipe.call(Pipe.java:59) ~[?:?] at java.util.concurrent.FutureTask.run(FutureTask.java:264) ~[?:?] at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1167) ~[?:?] at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:641) ~[?:?] at java.lang.Thread.run(Thread.java:844) [?:?]
Attachments
Issue Links
- links to