-
Bug
-
Resolution: Done
-
Critical
-
camel-k-1.10.1
-
None
-
None
-
False
-
-
False
-
-
-
0
Running the following scenario I am getting a runtime error:
kamel version -v Camel K Client Red Hat 1.10.1 oc new-project test Now using project "test" on .... kamel install OLM is available in the cluster Camel K installed in namespace test via OLM subscription ➜ /tmp kamel run Java.java Integration "java" created ➜ /tmp kamel get NAME PHASE KIT java Running test/kit-chd0m2cuosamn85nnk4g ➜ /tmp oc new-project test2 Now using project "test2" ... ➜ /tmp oc project test Now using project "test" on server "https://api.camel-k-412-a.fuse.integration-qe.com:6443". ➜ /tmp kamel promote java --to test2 panic: runtime error: invalid memory address or nil pointer dereference [signal SIGSEGV: segmentation violation code=0x1 addr=0x78 pc=0x19aadf0]goroutine 1 [running]: github.com/apache/camel-k/pkg/util/camel.(*RuntimeCatalog).GetScheme(...) github.com/apache/camel-k/pkg/util/camel/camel_runtime_catalog.go:116 github.com/apache/camel-k/pkg/util/camel.(*RuntimeCatalog).DecodeComponent(0x0, {0xc0007aa267, 0x2}) github.com/apache/camel-k/pkg/util/camel/camel_runtime_catalog.go:163 +0xd0 github.com/apache/camel-k/pkg/util/source.(*baseInspector).discoverDependencies(0xc000aef310, {{{0xc000af7ef0, 0x9}, {0x0, 0x0}, {0xc0007aa180, 0x17f}, {0x0, 0x0, 0x0}, ...}, ...}, ...) github.com/apache/camel-k/pkg/util/source/inspector.go:244 +0x7a5 github.com/apache/camel-k/pkg/util/source.JavaSourceInspector.Extract({{0x0}}, {{{0xc000af7ef0, 0x9}, {0x0, 0x0}, {0xc0007aa180, 0x17f}, {0x0, 0x0, 0x0}, ...}, ...}, ...) github.com/apache/camel-k/pkg/util/source/inspector_java_source.go:56 +0x408 github.com/apache/camel-k/pkg/metadata.Extract(_, {{{0xc000af7ef0, 0x9}, {0x0, 0x0}, {0xc0007aa180, 0x17f}, {0x0, 0x0, 0x0}, ...}, ...}) github.com/apache/camel-k/pkg/metadata/metadata.go:78 +0x382 github.com/apache/camel-k/pkg/metadata.Each(0x26165f8, {0xc0007d2000, 0x1, 0xc000a043c0}, 0xc000aef7c8) github.com/apache/camel-k/pkg/metadata/metadata.go:88 +0xd8 github.com/apache/camel-k/pkg/util/kamelets.ExtractKameletFromSources({0x26165f8, 0xc00090e500}, {0x2693d40, 0xc000a043c0}, 0x8, 0xc00066efc0, 0xc000458480) github.com/apache/camel-k/pkg/util/kamelets/util.go:42 +0xe7 github.com/apache/camel-k/pkg/cmd.(*promoteCmdOptions).listKamelets(0xc00069e810, {0x2693d40, 0xc000a043c0}, 0x4) github.com/apache/camel-k/pkg/cmd/promote.go:351 +0xbe github.com/apache/camel-k/pkg/cmd.(*promoteCmdOptions).validateDestResources(0xc00069e810, {0x2693d40, 0xc000a043c0}, 0xc000458480) github.com/apache/camel-k/pkg/cmd/promote.go:293 +0xa05 github.com/apache/camel-k/pkg/cmd.(*promoteCmdOptions).run(0xc00069e810, 0x0, {0xc000a14930, 0x0, 0x0}) github.com/apache/camel-k/pkg/cmd/promote.go:122 +0x27f github.com/spf13/cobra.(*Command).execute(0xc000476500, {0xc000a14900, 0x3, 0x3}) github.com/spf13/cobra@v1.5.0/command.go:872 +0x624 github.com/spf13/cobra.(*Command).ExecuteC(0xc0005ff680) github.com/spf13/cobra@v1.5.0/command.go:990 +0x3bc github.com/spf13/cobra.(*Command).Execute(...) github.com/spf13/cobra@v1.5.0/command.go:918 main.main() github.com/apache/camel-k/cmd/kamel/main.go:47 +0x130
- is related to
-
CMLK-231 Environment Promotion
- Closed