[jira] [Updated] (CAMEL-19162) llegalStateException: Close not supported from UNINITIALIZED. When context.addRouteDefinition() called multiple times in route with Ehcache consumer
[ https://issues.apache.org/jira/browse/CAMEL-19162?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Mikhail Lukyanov updated CAMEL-19162: - Description: In production, when starting the route, we also call _context.addRouteDefinition()_ so that context changes are picked up. Exception occurs on second stop/start of route with call _context.addRouteDefinition()_ with cache consumer definition added Project with reproduction [^cache-camel-error.zip] Test !image-2023-03-17-12-32-34-499.png! Config !image-2023-03-17-12-33-14-402.png! Exception StackTrace {code:java} org.apache.camel.RuntimeCamelException: java.lang.IllegalStateException: Close not supported from UNINITIALIZED at org.apache.camel.RuntimeCamelException.wrapRuntimeCamelException(RuntimeCamelException.java:51) at org.apache.camel.support.ChildServiceSupport.shutdown(ChildServiceSupport.java:120) at org.apache.camel.impl.engine.AbstractCamelContext.shutdownRouteService(AbstractCamelContext.java:3717) at org.apache.camel.impl.engine.AbstractCamelContext.removeRoute(AbstractCamelContext.java:1388) at org.apache.camel.impl.DefaultCamelContext.removeRoute(DefaultCamelContext.java:957) at org.apache.camel.impl.engine.AbstractCamelContext.removeRoute(AbstractCamelContext.java:1369) at org.apache.camel.impl.DefaultModel.removeRouteDefinition(DefaultModel.java:208) at org.apache.camel.impl.DefaultModel.removeRouteDefinitions(DefaultModel.java:197) at org.apache.camel.impl.DefaultModel.addRouteDefinitions(DefaultModel.java:175) at org.apache.camel.impl.DefaultModel.addRouteDefinition(DefaultModel.java:191) at org.apache.camel.impl.DefaultCamelContext.addRouteDefinition(DefaultCamelContext.java:350) at ru.factorts.cache.SpringFirstTest.testCache(SpringFirstTest.java:22) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:498) at org.junit.platform.commons.util.ReflectionUtils.invokeMethod(ReflectionUtils.java:727) at org.junit.jupiter.engine.execution.MethodInvocation.proceed(MethodInvocation.java:60) at org.junit.jupiter.engine.execution.InvocationInterceptorChain$ValidatingInvocation.proceed(InvocationInterceptorChain.java:131) at org.junit.jupiter.engine.extension.TimeoutExtension.intercept(TimeoutExtension.java:156) at org.junit.jupiter.engine.extension.TimeoutExtension.interceptTestableMethod(TimeoutExtension.java:147) at org.junit.jupiter.engine.extension.TimeoutExtension.interceptTestMethod(TimeoutExtension.java:86) at org.junit.jupiter.engine.execution.InterceptingExecutableInvoker$ReflectiveInterceptorCall.lambda$ofVoidMethod$0(InterceptingExecutableInvoker.java:103) at org.junit.jupiter.engine.execution.InterceptingExecutableInvoker.lambda$invoke$0(InterceptingExecutableInvoker.java:93) at org.junit.jupiter.engine.execution.InvocationInterceptorChain$InterceptedInvocation.proceed(InvocationInterceptorChain.java:106) at org.junit.jupiter.engine.execution.InvocationInterceptorChain.proceed(InvocationInterceptorChain.java:64) at org.junit.jupiter.engine.execution.InvocationInterceptorChain.chainAndInvoke(InvocationInterceptorChain.java:45) at org.junit.jupiter.engine.execution.InvocationInterceptorChain.invoke(InvocationInterceptorChain.java:37) at org.junit.jupiter.engine.execution.InterceptingExecutableInvoker.invoke(InterceptingExecutableInvoker.java:92) at org.junit.jupiter.engine.execution.InterceptingExecutableInvoker.invoke(InterceptingExecutableInvoker.java:86) at org.junit.jupiter.engine.descriptor.TestMethodTestDescriptor.lambda$invokeTestMethod$7(TestMethodTestDescriptor.java:217) at org.junit.platform.engine.support.hierarchical.ThrowableCollector.execute(ThrowableCollector.java:73) at org.junit.jupiter.engine.descriptor.TestMethodTestDescriptor.invokeTestMethod(TestMethodTestDescriptor.java:213) at org.junit.jupiter.engine.descriptor.TestMethodTestDescriptor.execute(TestMethodTestDescriptor.java:138) at org.junit.jupiter.engine.descriptor.TestMethodTestDescriptor.execute(TestMethodTestDescriptor.java:68) at org.junit.platform.engine.support.hierarchical.NodeTestTask.lambda$executeRecursively$6(NodeTestTask.java:151) at org.junit.platform.engine.support.hierarchical.ThrowableCollector.execute(ThrowableCollector.java:73) at org.junit.platform.engine.support.hierarchical.NodeTestTask.lambda$executeRecursively$8(NodeTestTask.java:141) at org.junit.platform.engine.support.hierarchical.Node.around(Node.java:137) at org.junit.platform.engine.support.hierarchical.NodeTestTask.lambda$executeRecursively$9(NodeTestTask.java:139) at org.juni
[jira] [Created] (CAMEL-19162) llegalStateException: Close not supported from UNINITIALIZED. When context.addRouteDefinition() called multiple times in route with Ehcache consumer
Mikhail Lukyanov created CAMEL-19162: Summary: llegalStateException: Close not supported from UNINITIALIZED. When context.addRouteDefinition() called multiple times in route with Ehcache consumer Key: CAMEL-19162 URL: https://issues.apache.org/jira/browse/CAMEL-19162 Project: Camel Issue Type: Bug Components: camel-ehcache Affects Versions: 3.20.2, 3.14.6 Reporter: Mikhail Lukyanov Attachments: cache-camel-error.zip, image-2023-03-17-12-32-34-499.png, image-2023-03-17-12-33-14-402.png In production, when starting the route, we also call `context.addRouteDefinition()` so that context changes are picked up. Exception occurs on second stop/start of route with call `context.addRouteDefinition()` with cache consumer definition added Project with reproduction [^cache-camel-error.zip] Test !image-2023-03-17-12-32-34-499.png! Config !image-2023-03-17-12-33-14-402.png! Exception StackTrace {code:java} org.apache.camel.RuntimeCamelException: java.lang.IllegalStateException: Close not supported from UNINITIALIZED at org.apache.camel.RuntimeCamelException.wrapRuntimeCamelException(RuntimeCamelException.java:51) at org.apache.camel.support.ChildServiceSupport.shutdown(ChildServiceSupport.java:120) at org.apache.camel.impl.engine.AbstractCamelContext.shutdownRouteService(AbstractCamelContext.java:3717) at org.apache.camel.impl.engine.AbstractCamelContext.removeRoute(AbstractCamelContext.java:1388) at org.apache.camel.impl.DefaultCamelContext.removeRoute(DefaultCamelContext.java:957) at org.apache.camel.impl.engine.AbstractCamelContext.removeRoute(AbstractCamelContext.java:1369) at org.apache.camel.impl.DefaultModel.removeRouteDefinition(DefaultModel.java:208) at org.apache.camel.impl.DefaultModel.removeRouteDefinitions(DefaultModel.java:197) at org.apache.camel.impl.DefaultModel.addRouteDefinitions(DefaultModel.java:175) at org.apache.camel.impl.DefaultModel.addRouteDefinition(DefaultModel.java:191) at org.apache.camel.impl.DefaultCamelContext.addRouteDefinition(DefaultCamelContext.java:350) at ru.factorts.cache.SpringFirstTest.testCache(SpringFirstTest.java:22) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:498) at org.junit.platform.commons.util.ReflectionUtils.invokeMethod(ReflectionUtils.java:727) at org.junit.jupiter.engine.execution.MethodInvocation.proceed(MethodInvocation.java:60) at org.junit.jupiter.engine.execution.InvocationInterceptorChain$ValidatingInvocation.proceed(InvocationInterceptorChain.java:131) at org.junit.jupiter.engine.extension.TimeoutExtension.intercept(TimeoutExtension.java:156) at org.junit.jupiter.engine.extension.TimeoutExtension.interceptTestableMethod(TimeoutExtension.java:147) at org.junit.jupiter.engine.extension.TimeoutExtension.interceptTestMethod(TimeoutExtension.java:86) at org.junit.jupiter.engine.execution.InterceptingExecutableInvoker$ReflectiveInterceptorCall.lambda$ofVoidMethod$0(InterceptingExecutableInvoker.java:103) at org.junit.jupiter.engine.execution.InterceptingExecutableInvoker.lambda$invoke$0(InterceptingExecutableInvoker.java:93) at org.junit.jupiter.engine.execution.InvocationInterceptorChain$InterceptedInvocation.proceed(InvocationInterceptorChain.java:106) at org.junit.jupiter.engine.execution.InvocationInterceptorChain.proceed(InvocationInterceptorChain.java:64) at org.junit.jupiter.engine.execution.InvocationInterceptorChain.chainAndInvoke(InvocationInterceptorChain.java:45) at org.junit.jupiter.engine.execution.InvocationInterceptorChain.invoke(InvocationInterceptorChain.java:37) at org.junit.jupiter.engine.execution.InterceptingExecutableInvoker.invoke(InterceptingExecutableInvoker.java:92) at org.junit.jupiter.engine.execution.InterceptingExecutableInvoker.invoke(InterceptingExecutableInvoker.java:86) at org.junit.jupiter.engine.descriptor.TestMethodTestDescriptor.lambda$invokeTestMethod$7(TestMethodTestDescriptor.java:217) at org.junit.platform.engine.support.hierarchical.ThrowableCollector.execute(ThrowableCollector.java:73) at org.junit.jupiter.engine.descriptor.TestMethodTestDescriptor.invokeTestMethod(TestMethodTestDescriptor.java:213) at org.junit.jupiter.engine.descriptor.TestMethodTestDescriptor.execute(TestMethodTestDescriptor.java:138) at org.junit.jupiter.engine.descriptor.TestMethodTestDescriptor.execute(TestMethodTestDescriptor.java:68) at org.junit.platform.engine.support.hierarchical.NodeTestTask.lambda$executeRecursively$6(NodeTestTask.java:151) at org.junit.platform.e
[jira] [Commented] (CAMEL-17912) camel-sjms2 - preserveMessageQoS seems to not work as expected
[ https://issues.apache.org/jira/browse/CAMEL-17912?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17521254#comment-17521254 ] Mikhail Lukyanov commented on CAMEL-17912: -- Thanks for your reply, Сlaus. May I ask, how does this component camel-sjms2 differ from the usual camel-jms in the 3.x version, does it have any advantages over the camel-jms component? In the 2.x version, it had transaction batching, the producers count, its own thread pool, now it has been rewritten, this is not there. > camel-sjms2 - preserveMessageQoS seems to not work as expected > -- > > Key: CAMEL-17912 > URL: https://issues.apache.org/jira/browse/CAMEL-17912 > Project: Camel > Issue Type: Bug >Affects Versions: 3.11.6, 3.14.2 > Environment: JDK 8 > camel-version 3.14.2 >Reporter: Mikhail Lukyanov >Assignee: Claus Ibsen >Priority: Minor > Fix For: 3.11.7, 3.14.3, 3.17.0 > > Attachments: CreateQueue.png, MessageIN.png, MessageOUT.png, > SendMessage.png, sjms2Move-1.rar > > > In SJMS2 producer parameter preserveMessageQos doesn't work. Message arrives > with default durability and priority values, not from headers > If the parameter _preserveMessageQos_ value is true, the values from the > headers _JMSPriority, JMSDeliveryMode, and JMSExpiration_ are not set when > the message is sent. > *Steps* > # Install and run Apache Artemis (user/password root/root) > # Create ANYCAST queue IN from console http://localhost:8161/console > # Send nondurable message with 0 priority in queue IN > # Run Sjms2MoveTest from sjms2Move maven project in attachment > # Check message in OUT queue > *Expected Behavior:* > Message nondurable and has 0 priority > *Received Behavior:* > Message durable and has 4 priority (default values) > !CreateQueue.png! > !SendMessage.png! > !MessageIN.png! > !MessageOUT.png! > -- This message was sent by Atlassian Jira (v8.20.1#820001)
[jira] [Updated] (CAMEL-17912) In SJMS2 producer parameter preserveMessageQos doesn't work. Message arrives with default durability and priority values, not from headers
[ https://issues.apache.org/jira/browse/CAMEL-17912?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Mikhail Lukyanov updated CAMEL-17912: - Description: If the parameter _preserveMessageQos_ value is true, the values from the headers _JMSPriority, JMSDeliveryMode, and JMSExpiration_ are not set when the message is sent. *Steps* # Install and run Apache Artemis (user/password root/root) # Create ANYCAST queue IN from console http://localhost:8161/console # Send nondurable message with 0 priority in queue IN # Run Sjms2MoveTest from sjms2Move maven project in attachment # Check message in OUT queue *Expected Behavior:* Message nondurable and has 0 priority *Received Behavior:* Message durable and has 4 priority (default values) !CreateQueue.png! !SendMessage.png! !MessageIN.png! !MessageOUT.png! was: If the parameter _preserveMessageQos_ value is true, the values from the headers _JMSPriority, JMSDeliveryMode, and JMSExpiration_ are not set when the message is sent. *Steps* Install and run Apache Artemis (user/password root/root) Create ANYCAST queue IN from console http://localhost:8161/console Send nondurable message with 0 priority in queue IN Run Sjms2MoveTest from sjms2Move maven project in attachment Check message in OUT queue *Expected Behavior:* Message nondurable and has 0 priority *Received Behavior:* Message durable and has 4 priority (default values) !CreateQueue.png! !SendMessage.png! !MessageIN.png! !MessageOUT.png! > In SJMS2 producer parameter preserveMessageQos doesn't work. Message arrives > with default durability and priority values, not from headers > -- > > Key: CAMEL-17912 > URL: https://issues.apache.org/jira/browse/CAMEL-17912 > Project: Camel > Issue Type: Bug >Affects Versions: 3.14.2 > Environment: JDK 8 > camel-version 3.14.2 >Reporter: Mikhail Lukyanov >Priority: Major > Attachments: CreateQueue.png, MessageIN.png, MessageOUT.png, > SendMessage.png, sjms2Move-1.rar > > > If the parameter _preserveMessageQos_ value is true, the values from the > headers _JMSPriority, JMSDeliveryMode, and JMSExpiration_ are not set when > the message is sent. > *Steps* > # Install and run Apache Artemis (user/password root/root) > # Create ANYCAST queue IN from console http://localhost:8161/console > # Send nondurable message with 0 priority in queue IN > # Run Sjms2MoveTest from sjms2Move maven project in attachment > # Check message in OUT queue > *Expected Behavior:* > Message nondurable and has 0 priority > *Received Behavior:* > Message durable and has 4 priority (default values) > !CreateQueue.png! > !SendMessage.png! > !MessageIN.png! > !MessageOUT.png! > -- This message was sent by Atlassian Jira (v8.20.1#820001)
[jira] [Updated] (CAMEL-17912) In SJMS2 producer parameter preserveMessageQos doesn't work. Message arrives with default durability and priority values, not from headers
[ https://issues.apache.org/jira/browse/CAMEL-17912?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Mikhail Lukyanov updated CAMEL-17912: - Summary: In SJMS2 producer parameter preserveMessageQos doesn't work. Message arrives with default durability and priority values, not from headers (was: In SJMS2 producer parameter preserveMessageQos dont work. Message arrives with default durability and priority values, not from headers) > In SJMS2 producer parameter preserveMessageQos doesn't work. Message arrives > with default durability and priority values, not from headers > -- > > Key: CAMEL-17912 > URL: https://issues.apache.org/jira/browse/CAMEL-17912 > Project: Camel > Issue Type: Bug >Affects Versions: 3.14.2 > Environment: JDK 8 > camel-version 3.14.2 >Reporter: Mikhail Lukyanov >Priority: Major > Attachments: CreateQueue.png, MessageIN.png, MessageOUT.png, > SendMessage.png, sjms2Move-1.rar > > > If the parameter _preserveMessageQos_ value is true, the values from the > headers _JMSPriority, JMSDeliveryMode, and JMSExpiration_ are not set when > the message is sent. > *Steps* > Install and run Apache Artemis (user/password root/root) > Create ANYCAST queue IN from console http://localhost:8161/console > Send nondurable message with 0 priority in queue IN > Run Sjms2MoveTest from sjms2Move maven project in attachment > Check message in OUT queue > *Expected Behavior:* > Message nondurable and has 0 priority > *Received Behavior:* > Message durable and has 4 priority (default values) > !CreateQueue.png! > !SendMessage.png! > !MessageIN.png! > !MessageOUT.png! > -- This message was sent by Atlassian Jira (v8.20.1#820001)
[jira] [Created] (CAMEL-17912) In SJMS2 producer parameter preserveMessageQos dont work. Message arrives with default durability and priority values, not from headers
Mikhail Lukyanov created CAMEL-17912: Summary: In SJMS2 producer parameter preserveMessageQos dont work. Message arrives with default durability and priority values, not from headers Key: CAMEL-17912 URL: https://issues.apache.org/jira/browse/CAMEL-17912 Project: Camel Issue Type: Bug Affects Versions: 3.14.2 Environment: JDK 8 camel-version 3.14.2 Reporter: Mikhail Lukyanov Attachments: CreateQueue.png, MessageIN.png, MessageOUT.png, SendMessage.png, sjms2Move-1.rar If the parameter _preserveMessageQos_ value is true, the values from the headers _JMSPriority, JMSDeliveryMode, and JMSExpiration_ are not set when the message is sent. *Steps* Install and run Apache Artemis (user/password root/root) Create ANYCAST queue IN from console http://localhost:8161/console Send nondurable message with 0 priority in queue IN Run Sjms2MoveTest from sjms2Move maven project in attachment Check message in OUT queue *Expected Behavior:* Message nondurable and has 0 priority *Received Behavior:* Message durable and has 4 priority (default values) !CreateQueue.png! !SendMessage.png! !MessageIN.png! !MessageOUT.png! -- This message was sent by Atlassian Jira (v8.20.1#820001)
[jira] [Commented] (CAMEL-15480) No signature of method: java.util.LinkedHashMap.resolve() error when get property in groovy script
[ https://issues.apache.org/jira/browse/CAMEL-15480?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17187620#comment-17187620 ] Mikhail Lukyanov commented on CAMEL-15480: -- This is not exchangeProp, this is property from Properties component https://camel.apache.org/components/latest/properties-component.html. I would like to get this property exactly through the groovy script, for use in the further logic of this script. I cannot do this, does it not work as described? > No signature of method: java.util.LinkedHashMap.resolve() error when get > property in groovy script > -- > > Key: CAMEL-15480 > URL: https://issues.apache.org/jira/browse/CAMEL-15480 > Project: Camel > Issue Type: Bug > Components: camel-groovy >Affects Versions: 2.25.1 >Reporter: Mikhail Lukyanov >Priority: Trivial > Attachments: image-2020-08-30-13-44-37-085.png, > image-2020-08-30-13-47-38-112.png, image-2020-08-30-13-52-46-411.png > > > I get an error when I want to get the property as indicated here > [https://camel.apache.org/components/2.x/languages/groovy-language.html] > through properties.resolve("test_name") (in JavaSctipt this works) > !https://mail.google.com/mail/u/0?ui=2&ik=c53a3b3078&attid=0.1&permmsgid=msg-a:r-6655731378480134404&th=17435c9dd04d8e0f&view=fimg&sz=s0-l75-ft&attbid=ANGjdJ955PVDcBRzMYDSwmW7wiDXqKvscrba1udNLQ9Bl9s8-yRIt4mPk4vOkrHQDDBvu4R__dwems3GsHaFJI_Cv1bAOTgDM8yEHhoulwmNv5I6AcRaMcImm26wdkU&disp=emb&realattid=ii_keef04230|width=519,height=293! > > Error > {quote} > No signature of method: java.util.LinkedHashMap.resolve() is applicable for > argument types: (java.lang.String) values: [test_name] > Possible solutions: remove(java.lang.Object), remove(java.lang.Object), > remove(java.lang.Object, java.lang.Object), clone() > at > org.codehaus.groovy.runtime.ScriptBytecodeAdapter.unwrap(ScriptBytecodeAdapter.java:58) > at > org.codehaus.groovy.runtime.callsite.PojoMetaClassSite.call(PojoMetaClassSite.java:49) > at > org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:48) > at > org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:113) > at > org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:125) > at > script1598627841751704336236.run(script1598627841751704336236.groovy:1){quote} > > And I also found the same question on > [https://stackoverflow.com/questions/25472136/apache-camel-groovy-scripting/39465657]. > > It turns out that there is an error in the documentation and you can't get a > property in the groovy? -- This message was sent by Atlassian Jira (v8.3.4#803005)
[jira] [Commented] (CAMEL-15480) No signature of method: java.util.LinkedHashMap.resolve() error when get property in groovy script
[ https://issues.apache.org/jira/browse/CAMEL-15480?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17187483#comment-17187483 ] Mikhail Lukyanov commented on CAMEL-15480: -- I want to take the value from the previously set property and write it as the body of the message. This works for javascript, but don't work for groovy, although such a possibility is indicated in the documentation https://camel.apache.org/components/2.x/languages/groovy-language.html (properties.resolve("test_name")). And this problem is not with me alone https://stackoverflow.com/questions/25472136/apache-camel-groovy-scripting/39465657 > No signature of method: java.util.LinkedHashMap.resolve() error when get > property in groovy script > -- > > Key: CAMEL-15480 > URL: https://issues.apache.org/jira/browse/CAMEL-15480 > Project: Camel > Issue Type: Bug > Components: camel-groovy >Affects Versions: 2.25.1 >Reporter: Mikhail Lukyanov >Priority: Trivial > Attachments: image-2020-08-30-13-44-37-085.png, > image-2020-08-30-13-47-38-112.png, image-2020-08-30-13-52-46-411.png > > > I get an error when I want to get the property as indicated here > [https://camel.apache.org/components/2.x/languages/groovy-language.html] > through properties.resolve("test_name") (in JavaSctipt this works) > !https://mail.google.com/mail/u/0?ui=2&ik=c53a3b3078&attid=0.1&permmsgid=msg-a:r-6655731378480134404&th=17435c9dd04d8e0f&view=fimg&sz=s0-l75-ft&attbid=ANGjdJ955PVDcBRzMYDSwmW7wiDXqKvscrba1udNLQ9Bl9s8-yRIt4mPk4vOkrHQDDBvu4R__dwems3GsHaFJI_Cv1bAOTgDM8yEHhoulwmNv5I6AcRaMcImm26wdkU&disp=emb&realattid=ii_keef04230|width=519,height=293! > > Error > {quote} > No signature of method: java.util.LinkedHashMap.resolve() is applicable for > argument types: (java.lang.String) values: [test_name] > Possible solutions: remove(java.lang.Object), remove(java.lang.Object), > remove(java.lang.Object, java.lang.Object), clone() > at > org.codehaus.groovy.runtime.ScriptBytecodeAdapter.unwrap(ScriptBytecodeAdapter.java:58) > at > org.codehaus.groovy.runtime.callsite.PojoMetaClassSite.call(PojoMetaClassSite.java:49) > at > org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:48) > at > org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:113) > at > org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:125) > at > script1598627841751704336236.run(script1598627841751704336236.groovy:1){quote} > > And I also found the same question on > [https://stackoverflow.com/questions/25472136/apache-camel-groovy-scripting/39465657]. > > It turns out that there is an error in the documentation and you can't get a > property in the groovy? -- This message was sent by Atlassian Jira (v8.3.4#803005)
[jira] [Commented] (CAMEL-15480) No signature of method: java.util.LinkedHashMap.resolve() error when get property in groovy script
[ https://issues.apache.org/jira/browse/CAMEL-15480?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17187179#comment-17187179 ] Mikhail Lukyanov commented on CAMEL-15480: -- [~davsclaus] In a project, I have camel-groovy and camel-script !image-2020-08-30-13-44-37-085.png! I have the next route in Spring XML !image-2020-08-30-13-47-38-112.png! And when I run it I get the error described above in the issue. But this works fine. !image-2020-08-30-13-52-46-411.png! Do I need any other libraries besides camel-groovy and camel-script? camel-script-groovy, what is it? I don find any info about this library. > No signature of method: java.util.LinkedHashMap.resolve() error when get > property in groovy script > -- > > Key: CAMEL-15480 > URL: https://issues.apache.org/jira/browse/CAMEL-15480 > Project: Camel > Issue Type: Bug > Components: camel-groovy >Affects Versions: 2.25.1 >Reporter: Mikhail Lukyanov >Priority: Trivial > Attachments: image-2020-08-30-13-44-37-085.png, > image-2020-08-30-13-47-38-112.png, image-2020-08-30-13-52-46-411.png > > > I get an error when I want to get the property as indicated here > [https://camel.apache.org/components/2.x/languages/groovy-language.html] > through properties.resolve("test_name") (in JavaSctipt this works) > !https://mail.google.com/mail/u/0?ui=2&ik=c53a3b3078&attid=0.1&permmsgid=msg-a:r-6655731378480134404&th=17435c9dd04d8e0f&view=fimg&sz=s0-l75-ft&attbid=ANGjdJ955PVDcBRzMYDSwmW7wiDXqKvscrba1udNLQ9Bl9s8-yRIt4mPk4vOkrHQDDBvu4R__dwems3GsHaFJI_Cv1bAOTgDM8yEHhoulwmNv5I6AcRaMcImm26wdkU&disp=emb&realattid=ii_keef04230|width=519,height=293! > > Error > {quote} > No signature of method: java.util.LinkedHashMap.resolve() is applicable for > argument types: (java.lang.String) values: [test_name] > Possible solutions: remove(java.lang.Object), remove(java.lang.Object), > remove(java.lang.Object, java.lang.Object), clone() > at > org.codehaus.groovy.runtime.ScriptBytecodeAdapter.unwrap(ScriptBytecodeAdapter.java:58) > at > org.codehaus.groovy.runtime.callsite.PojoMetaClassSite.call(PojoMetaClassSite.java:49) > at > org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:48) > at > org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:113) > at > org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:125) > at > script1598627841751704336236.run(script1598627841751704336236.groovy:1){quote} > > And I also found the same question on > [https://stackoverflow.com/questions/25472136/apache-camel-groovy-scripting/39465657]. > > It turns out that there is an error in the documentation and you can't get a > property in the groovy? -- This message was sent by Atlassian Jira (v8.3.4#803005)
[jira] [Updated] (CAMEL-15480) No signature of method: java.util.LinkedHashMap.resolve() error when get property in groovy script
[ https://issues.apache.org/jira/browse/CAMEL-15480?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Mikhail Lukyanov updated CAMEL-15480: - Attachment: image-2020-08-30-13-52-46-411.png > No signature of method: java.util.LinkedHashMap.resolve() error when get > property in groovy script > -- > > Key: CAMEL-15480 > URL: https://issues.apache.org/jira/browse/CAMEL-15480 > Project: Camel > Issue Type: Bug > Components: camel-groovy >Affects Versions: 2.25.1 >Reporter: Mikhail Lukyanov >Priority: Trivial > Attachments: image-2020-08-30-13-44-37-085.png, > image-2020-08-30-13-47-38-112.png, image-2020-08-30-13-52-46-411.png > > > I get an error when I want to get the property as indicated here > [https://camel.apache.org/components/2.x/languages/groovy-language.html] > through properties.resolve("test_name") (in JavaSctipt this works) > !https://mail.google.com/mail/u/0?ui=2&ik=c53a3b3078&attid=0.1&permmsgid=msg-a:r-6655731378480134404&th=17435c9dd04d8e0f&view=fimg&sz=s0-l75-ft&attbid=ANGjdJ955PVDcBRzMYDSwmW7wiDXqKvscrba1udNLQ9Bl9s8-yRIt4mPk4vOkrHQDDBvu4R__dwems3GsHaFJI_Cv1bAOTgDM8yEHhoulwmNv5I6AcRaMcImm26wdkU&disp=emb&realattid=ii_keef04230|width=519,height=293! > > Error > {quote} > No signature of method: java.util.LinkedHashMap.resolve() is applicable for > argument types: (java.lang.String) values: [test_name] > Possible solutions: remove(java.lang.Object), remove(java.lang.Object), > remove(java.lang.Object, java.lang.Object), clone() > at > org.codehaus.groovy.runtime.ScriptBytecodeAdapter.unwrap(ScriptBytecodeAdapter.java:58) > at > org.codehaus.groovy.runtime.callsite.PojoMetaClassSite.call(PojoMetaClassSite.java:49) > at > org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:48) > at > org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:113) > at > org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:125) > at > script1598627841751704336236.run(script1598627841751704336236.groovy:1){quote} > > And I also found the same question on > [https://stackoverflow.com/questions/25472136/apache-camel-groovy-scripting/39465657]. > > It turns out that there is an error in the documentation and you can't get a > property in the groovy? -- This message was sent by Atlassian Jira (v8.3.4#803005)
[jira] [Updated] (CAMEL-15480) No signature of method: java.util.LinkedHashMap.resolve() error when get property in groovy script
[ https://issues.apache.org/jira/browse/CAMEL-15480?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Mikhail Lukyanov updated CAMEL-15480: - Attachment: image-2020-08-30-13-47-38-112.png > No signature of method: java.util.LinkedHashMap.resolve() error when get > property in groovy script > -- > > Key: CAMEL-15480 > URL: https://issues.apache.org/jira/browse/CAMEL-15480 > Project: Camel > Issue Type: Bug > Components: camel-groovy >Affects Versions: 2.25.1 >Reporter: Mikhail Lukyanov >Priority: Trivial > Attachments: image-2020-08-30-13-44-37-085.png, > image-2020-08-30-13-47-38-112.png > > > I get an error when I want to get the property as indicated here > [https://camel.apache.org/components/2.x/languages/groovy-language.html] > through properties.resolve("test_name") (in JavaSctipt this works) > !https://mail.google.com/mail/u/0?ui=2&ik=c53a3b3078&attid=0.1&permmsgid=msg-a:r-6655731378480134404&th=17435c9dd04d8e0f&view=fimg&sz=s0-l75-ft&attbid=ANGjdJ955PVDcBRzMYDSwmW7wiDXqKvscrba1udNLQ9Bl9s8-yRIt4mPk4vOkrHQDDBvu4R__dwems3GsHaFJI_Cv1bAOTgDM8yEHhoulwmNv5I6AcRaMcImm26wdkU&disp=emb&realattid=ii_keef04230|width=519,height=293! > > Error > {quote} > No signature of method: java.util.LinkedHashMap.resolve() is applicable for > argument types: (java.lang.String) values: [test_name] > Possible solutions: remove(java.lang.Object), remove(java.lang.Object), > remove(java.lang.Object, java.lang.Object), clone() > at > org.codehaus.groovy.runtime.ScriptBytecodeAdapter.unwrap(ScriptBytecodeAdapter.java:58) > at > org.codehaus.groovy.runtime.callsite.PojoMetaClassSite.call(PojoMetaClassSite.java:49) > at > org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:48) > at > org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:113) > at > org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:125) > at > script1598627841751704336236.run(script1598627841751704336236.groovy:1){quote} > > And I also found the same question on > [https://stackoverflow.com/questions/25472136/apache-camel-groovy-scripting/39465657]. > > It turns out that there is an error in the documentation and you can't get a > property in the groovy? -- This message was sent by Atlassian Jira (v8.3.4#803005)
[jira] [Updated] (CAMEL-15480) No signature of method: java.util.LinkedHashMap.resolve() error when get property in groovy script
[ https://issues.apache.org/jira/browse/CAMEL-15480?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Mikhail Lukyanov updated CAMEL-15480: - Attachment: image-2020-08-30-13-44-37-085.png > No signature of method: java.util.LinkedHashMap.resolve() error when get > property in groovy script > -- > > Key: CAMEL-15480 > URL: https://issues.apache.org/jira/browse/CAMEL-15480 > Project: Camel > Issue Type: Bug > Components: camel-groovy >Affects Versions: 2.25.1 >Reporter: Mikhail Lukyanov >Priority: Trivial > Attachments: image-2020-08-30-13-44-37-085.png > > > I get an error when I want to get the property as indicated here > [https://camel.apache.org/components/2.x/languages/groovy-language.html] > through properties.resolve("test_name") (in JavaSctipt this works) > !https://mail.google.com/mail/u/0?ui=2&ik=c53a3b3078&attid=0.1&permmsgid=msg-a:r-6655731378480134404&th=17435c9dd04d8e0f&view=fimg&sz=s0-l75-ft&attbid=ANGjdJ955PVDcBRzMYDSwmW7wiDXqKvscrba1udNLQ9Bl9s8-yRIt4mPk4vOkrHQDDBvu4R__dwems3GsHaFJI_Cv1bAOTgDM8yEHhoulwmNv5I6AcRaMcImm26wdkU&disp=emb&realattid=ii_keef04230|width=519,height=293! > > Error > {quote} > No signature of method: java.util.LinkedHashMap.resolve() is applicable for > argument types: (java.lang.String) values: [test_name] > Possible solutions: remove(java.lang.Object), remove(java.lang.Object), > remove(java.lang.Object, java.lang.Object), clone() > at > org.codehaus.groovy.runtime.ScriptBytecodeAdapter.unwrap(ScriptBytecodeAdapter.java:58) > at > org.codehaus.groovy.runtime.callsite.PojoMetaClassSite.call(PojoMetaClassSite.java:49) > at > org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:48) > at > org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:113) > at > org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:125) > at > script1598627841751704336236.run(script1598627841751704336236.groovy:1){quote} > > And I also found the same question on > [https://stackoverflow.com/questions/25472136/apache-camel-groovy-scripting/39465657]. > > It turns out that there is an error in the documentation and you can't get a > property in the groovy? -- This message was sent by Atlassian Jira (v8.3.4#803005)
[jira] [Created] (CAMEL-15480) No signature of method: java.util.LinkedHashMap.resolve() error when get property in groovy script
Mikhail Lukyanov created CAMEL-15480: Summary: No signature of method: java.util.LinkedHashMap.resolve() error when get property in groovy script Key: CAMEL-15480 URL: https://issues.apache.org/jira/browse/CAMEL-15480 Project: Camel Issue Type: Bug Components: camel-groovy Affects Versions: 2.25.1 Reporter: Mikhail Lukyanov I get an error when I want to get the property as indicated here [https://camel.apache.org/components/2.x/languages/groovy-language.html] through properties.resolve("test_name") (in JavaSctipt this works) !https://mail.google.com/mail/u/0?ui=2&ik=c53a3b3078&attid=0.1&permmsgid=msg-a:r-6655731378480134404&th=17435c9dd04d8e0f&view=fimg&sz=s0-l75-ft&attbid=ANGjdJ955PVDcBRzMYDSwmW7wiDXqKvscrba1udNLQ9Bl9s8-yRIt4mPk4vOkrHQDDBvu4R__dwems3GsHaFJI_Cv1bAOTgDM8yEHhoulwmNv5I6AcRaMcImm26wdkU&disp=emb&realattid=ii_keef04230|width=519,height=293! Error {quote} No signature of method: java.util.LinkedHashMap.resolve() is applicable for argument types: (java.lang.String) values: [test_name] Possible solutions: remove(java.lang.Object), remove(java.lang.Object), remove(java.lang.Object, java.lang.Object), clone() at org.codehaus.groovy.runtime.ScriptBytecodeAdapter.unwrap(ScriptBytecodeAdapter.java:58) at org.codehaus.groovy.runtime.callsite.PojoMetaClassSite.call(PojoMetaClassSite.java:49) at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:48) at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:113) at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:125) at script1598627841751704336236.run(script1598627841751704336236.groovy:1){quote} And I also found the same question on [https://stackoverflow.com/questions/25472136/apache-camel-groovy-scripting/39465657]. It turns out that there is an error in the documentation and you can't get a property in the groovy? -- This message was sent by Atlassian Jira (v8.3.4#803005)
[jira] [Commented] (CAMEL-14746) camel-rest-swagger java.lang.IllegalArgumentException when Swagger specification don't have "scheme" object and get this specification by "file;" resource
[ https://issues.apache.org/jira/browse/CAMEL-14746?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17063161#comment-17063161 ] Mikhail Lukyanov commented on CAMEL-14746: -- {color:#172b4d}OK, thanks, I did it. {color} {color:#172b4d}You will not tell whether it is possible to somehow get the swagger HTTP specification by a request from a resource that requires authorization? {color} {color:#172b4d}Now when I start the route I get an error:{color} {color:#de350b}Caused by: org.apache.camel.FailedToCreateProducerException: Failed to create Producer for endpoint: rest-swagger://http://192.168.58.241:8181/manager/v2/api-docs%23getUsingGET?componentName=http-swagger. Reason: java.lang.IllegalArgumentException: The given Swagger specification could not be loaded from `http://192.168.58.241:8181/manager/v2/api-docs`. Tried loading using Camel's resource resolution and using Swagger's own resource resolution. Swagger tends to swallow exceptions while parsing, try specifying Java system property `debugParser` (e.g. `-DdebugParser=true`), the exception that occured when loading using Camel's resource loader follows at org.apache.camel.impl.ProducerCache.doGetProducer(ProducerCache.java:578) at org.apache.camel.impl.ProducerCache.acquireProducer(ProducerCache.java:168){color} > camel-rest-swagger java.lang.IllegalArgumentException when Swagger > specification don't have "scheme" object and get this specification by > "file;" resource > -- > > Key: CAMEL-14746 > URL: https://issues.apache.org/jira/browse/CAMEL-14746 > Project: Camel > Issue Type: Bug > Components: camel-rest-swagger >Affects Versions: 2.25.0 >Reporter: Mikhail Lukyanov >Assignee: Dmitry Volodin >Priority: Minor > Fix For: 3.2.0 > > Time Spent: 10m > Remaining Estimate: 0h > > *camelContext* > > __ > _http://www.springframework.org/schema/beans"_ > _xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"_ > _xsi:schemaLocation="http://camel.apache.org/schema/spring > [http://camel.apache.org/schema/spring/camel-spring.xsd] > [http://www.springframework.org/schema/beans] > [http://www.springframework.org/schema/beans/spring-beans.xsd]";>_ > _ xmlns="http://camel.apache.org/schema/spring"; >_ > __ > __ > _ uri="swagger*:file*:/C:/Users/wunsh/IdeaProjects/camel/components/camel-rest-swagger/src/test/resources/swagger1.json#downloadUsingGET"/>_ > __ > __ > __ > _ class="org.apache.camel.component.rest.swagger.RestSwaggerComponent">_ > __ > __ > __ > > *Swagger.json* > > _{_ > _"swagger": "2.0",_ > _"info": {_ > _"description": "Api Documentation",_ > _"version": "1.0",_ > _"title": "Api Documentation",_ > _"termsOfService": "urn:tos",_ > _"contact": {},_ > _"license": {_ > _"name": "Apache 2.0",_ > _"url": "http://www.apache.org/licenses/LICENSE-2.0"_ > _}_ > _},_ > _"host": "localhost:8182",_ > _"basePath": "/manager",_ > _"tags": [_ > _{_ > _"name": "Logs",_ > _"description": "API for logs"_ > _}_ > _],_ > _"paths": {_ > _"/api/log/download": {_ > _"get": {_ > _"tags": [_ > _"Работа с логами"_ > _],_ > _"summary": "Export",_ > _"operationId": "downloadUsingGET",_ > _"produces": [_ > _"*/*"_ > _],_ > _"responses": {_ > _"200": {_ > _"description": "OK"_ > _},_ > _"401": {_ > _"description": "Unauthorized"_ > _},_ > _"403": {_ > "description": "Forbidden" > }, > "404": > { "description": "Not Found" } > }, > "deprecated": false > } > } > } > } > > *Error* > > {color:#de350b}Caused by: org.apache.camel.FailedToCreateProducerException: > Failed to create Producer for endpoint: > swagger://[file:/C:/Users/wunsh/IdeaProjects/camel/components/camel-rest-swagger/src/test/resources/swagger1.json%23downloadUsingGET|file:///C:/Users/wunsh/IdeaProjects/camel/components/camel-rest-swagger/src/test/resources/swagger1.json%23downloadUsingGET]. > Reason: java.lang.IllegalArgumentException: The endpoint is not of type: > class org.apache.camel.component.http.HttpEndpoint but is: > org.apache.camel.component.file.FileEndpointCaused by: > org.apache.camel.FailedToCreateProducerException: Failed to create Producer > for endpoint: > swagger://[file:/C:/Users/wunsh/IdeaProjects/camel/components/camel-rest-swagger/src/test/resources/swagger1.json%23downloadUsingGET|file:///C:/Users/wunsh/IdeaProjects/camel/components/camel-rest-swagger/src/test/resources/swagger1.json%23downloadUsingGET]. > Reason: java.lang.IllegalArgumentException: The endpoint is not of type: > class org.apache.camel.component.http.HttpEndpoint but is: > org.apache.camel.component.file.FileEndpoint{color} > > {color:#172b4d}When I get the sa
[jira] [Updated] (CAMEL-14746) camel-rest-swagger java.lang.IllegalArgumentException when Swagger specification don't have "scheme" object and get this specification by "file;" resource
[ https://issues.apache.org/jira/browse/CAMEL-14746?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Mikhail Lukyanov updated CAMEL-14746: - Summary: camel-rest-swagger java.lang.IllegalArgumentException when Swagger specification don't have "scheme" object and get this specification by "file;" resource (was: camel-rest-swagger java.lang.IllegalArgumentException when Swagger specification don't have "scheme" object and get this specification by by "file;" resource) > camel-rest-swagger java.lang.IllegalArgumentException when Swagger > specification don't have "scheme" object and get this specification by > "file;" resource > -- > > Key: CAMEL-14746 > URL: https://issues.apache.org/jira/browse/CAMEL-14746 > Project: Camel > Issue Type: Bug > Components: camel-rest-swagger >Affects Versions: 2.25.0 >Reporter: Mikhail Lukyanov >Priority: Minor > > *camelContext* > > __ > _http://www.springframework.org/schema/beans"_ > _xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"_ > _xsi:schemaLocation="http://camel.apache.org/schema/spring > [http://camel.apache.org/schema/spring/camel-spring.xsd] > [http://www.springframework.org/schema/beans] > [http://www.springframework.org/schema/beans/spring-beans.xsd]";>_ > _ xmlns="http://camel.apache.org/schema/spring"; >_ > __ > __ > _ uri="swagger*:file*:/C:/Users/wunsh/IdeaProjects/camel/components/camel-rest-swagger/src/test/resources/swagger1.json#downloadUsingGET"/>_ > __ > __ > __ > _ class="org.apache.camel.component.rest.swagger.RestSwaggerComponent">_ > __ > __ > __ > > *Swagger.json* > > _{_ > _"swagger": "2.0",_ > _"info": {_ > _"description": "Api Documentation",_ > _"version": "1.0",_ > _"title": "Api Documentation",_ > _"termsOfService": "urn:tos",_ > _"contact": {},_ > _"license": {_ > _"name": "Apache 2.0",_ > _"url": "http://www.apache.org/licenses/LICENSE-2.0"_ > _}_ > _},_ > _"host": "localhost:8182",_ > _"basePath": "/manager",_ > _"tags": [_ > _{_ > _"name": "Logs",_ > _"description": "API for logs"_ > _}_ > _],_ > _"paths": {_ > _"/api/log/download": {_ > _"get": {_ > _"tags": [_ > _"Работа с логами"_ > _],_ > _"summary": "Export",_ > _"operationId": "downloadUsingGET",_ > _"produces": [_ > _"*/*"_ > _],_ > _"responses": {_ > _"200": {_ > _"description": "OK"_ > _},_ > _"401": {_ > _"description": "Unauthorized"_ > _},_ > _"403": {_ > "description": "Forbidden" > }, > "404": > { "description": "Not Found" } > }, > "deprecated": false > } > } > } > } > > *Error* > > {color:#de350b}Caused by: org.apache.camel.FailedToCreateProducerException: > Failed to create Producer for endpoint: > swagger://[file:/C:/Users/wunsh/IdeaProjects/camel/components/camel-rest-swagger/src/test/resources/swagger1.json%23downloadUsingGET|file:///C:/Users/wunsh/IdeaProjects/camel/components/camel-rest-swagger/src/test/resources/swagger1.json%23downloadUsingGET]. > Reason: java.lang.IllegalArgumentException: The endpoint is not of type: > class org.apache.camel.component.http.HttpEndpoint but is: > org.apache.camel.component.file.FileEndpointCaused by: > org.apache.camel.FailedToCreateProducerException: Failed to create Producer > for endpoint: > swagger://[file:/C:/Users/wunsh/IdeaProjects/camel/components/camel-rest-swagger/src/test/resources/swagger1.json%23downloadUsingGET|file:///C:/Users/wunsh/IdeaProjects/camel/components/camel-rest-swagger/src/test/resources/swagger1.json%23downloadUsingGET]. > Reason: java.lang.IllegalArgumentException: The endpoint is not of type: > class org.apache.camel.component.http.HttpEndpoint but is: > org.apache.camel.component.file.FileEndpoint{color} > > {color:#172b4d}When I get the same swagger specification through the resource > "http:" everything is ok{color} > > -- This message was sent by Atlassian Jira (v8.3.4#803005)
[jira] [Updated] (CAMEL-14746) camel-rest-swagger java.lang.IllegalArgumentException when Swagger specification don't have "scheme" object and get this specification by by "file;" resource
[ https://issues.apache.org/jira/browse/CAMEL-14746?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Mikhail Lukyanov updated CAMEL-14746: - Description: *camelContext* __ _http://www.springframework.org/schema/beans"_ _xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"_ _xsi:schemaLocation="http://camel.apache.org/schema/spring [http://camel.apache.org/schema/spring/camel-spring.xsd] [http://www.springframework.org/schema/beans] [http://www.springframework.org/schema/beans/spring-beans.xsd]";>_ _http://camel.apache.org/schema/spring"; >_ __ __ __ __ __ __ __ __ __ __ *Swagger.json* _{_ _"swagger": "2.0",_ _"info": {_ _"description": "Api Documentation",_ _"version": "1.0",_ _"title": "Api Documentation",_ _"termsOfService": "urn:tos",_ _"contact": {},_ _"license": {_ _"name": "Apache 2.0",_ _"url": "http://www.apache.org/licenses/LICENSE-2.0"_ _}_ _},_ _"host": "localhost:8182",_ _"basePath": "/manager",_ _"tags": [_ _{_ _"name": "Logs",_ _"description": "API for logs"_ _}_ _],_ _"paths": {_ _"/api/log/download": {_ _"get": {_ _"tags": [_ _"Работа с логами"_ _],_ _"summary": "Export",_ _"operationId": "downloadUsingGET",_ _"produces": [_ _"*/*"_ _],_ _"responses": {_ _"200": {_ _"description": "OK"_ _},_ _"401": {_ _"description": "Unauthorized"_ _},_ _"403": {_ "description": "Forbidden" }, "404": { "description": "Not Found" } }, "deprecated": false } } } } *Error* {color:#de350b}Caused by: org.apache.camel.FailedToCreateProducerException: Failed to create Producer for endpoint: swagger://[file:/C:/Users/wunsh/IdeaProjects/camel/components/camel-rest-swagger/src/test/resources/swagger1.json%23downloadUsingGET|file:///C:/Users/wunsh/IdeaProjects/camel/components/camel-rest-swagger/src/test/resources/swagger1.json%23downloadUsingGET]. Reason: java.lang.IllegalArgumentException: The endpoint is not of type: class org.apache.camel.component.http.HttpEndpoint but is: org.apache.camel.component.file.FileEndpointCaused by: org.apache.camel.FailedToCreateProducerException: Failed to create Producer for endpoint: swagger://[file:/C:/Users/wunsh/IdeaProjects/camel/components/camel-rest-swagger/src/test/resources/swagger1.json%23downloadUsingGET|file:///C:/Users/wunsh/IdeaProjects/camel/components/camel-rest-swagger/src/test/resources/swagger1.json%23downloadUsingGET]. Reason: java.lang.IllegalArgumentException: The endpoint is not of type: class org.apache.camel.component.http.HttpEndpoint but is: org.apache.camel.component.file.FileEndpoint{color} {color:#172b4d}When I get the same swagger specification through the resource "http:" everything is ok{color} was: *camelContext* __ _http://www.springframework.org/schema/beans"_ _xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"_ _xsi:schemaLocation="http://camel.apache.org/schema/spring http://camel.apache.org/schema/spring/camel-spring.xsd http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd";>_ _http://camel.apache.org/schema/spring"; >_ __ __ __ __ __ __ __ __ __ __ __ __ *Swagger.json* _{_ _"swagger": "2.0",_ _"info": {_ _"description": "Api Documentation",_ _"version": "1.0",_ _"title": "Api Documentation",_ _"termsOfService": "urn:tos",_ _"contact": {},_ _"license": {_ _"name": "Apache 2.0",_ _"url": "http://www.apache.org/licenses/LICENSE-2.0"_ _}_ _},_ _"host": "localhost:8182",_ _"basePath": "/manager",_ _"tags": [_ _{_ _"name": "Logs",_ _"description": "API for logs"_ _}_ _],_ _"paths": {_ _"/api/log/download": {_ _"get": {_ _"tags": [_ _"Работа с логами"_ _],_ _"summary": "Export",_ _"operationId": "downloadUsingGET",_ _"produces": [_ _"*/*"_ _],_ _"responses": {_ _"200": {_ _"description": "OK"_ _},_ _"401": {_ _"description": "Unauthorized"_ _},_ _"403": {_ "description": "Forbidden" }, "404": { "description": "Not Found" } }, "deprecated": false } } } } *Error* {color:#de350b}Caused by: org.apache.camel.FailedToCreateProducerException: Failed to create Producer for endpoint: swagger://file:/C:/Users/wunsh/IdeaProjects/camel/components/camel-rest-swagger/src/test/resources/swagger1.json%23downloadUsingGET. Reason: java.lang.IllegalArgumentException: The endpoint is not of type: class org.apache.camel.component.http.HttpEndpoint but is: org.apache.camel.component.file.FileEndpointCaused by: org.apache.camel.FailedToCreateProducerException: Failed to create Producer for endpoint: swagger://file:/C:/Users/wunsh/IdeaProjects/camel/components/camel-rest-swagger/src/test/resources/swagger1.json%23downloadUsingGET. Reason: java.lang.IllegalArgumentException: The endpoint is not of type: class org.apache.camel.component.http.HttpEndpoint but is: org.apache.camel.component.file.FileEndpoint{color} {color:#172b4d}When I get t
[jira] [Created] (CAMEL-14746) camel-rest-swagger java.lang.IllegalArgumentException when Swagger specification don't have "scheme" object and get this specification by by "file;" resource
Mikhail Lukyanov created CAMEL-14746: Summary: camel-rest-swagger java.lang.IllegalArgumentException when Swagger specification don't have "scheme" object and get this specification by by "file;" resource Key: CAMEL-14746 URL: https://issues.apache.org/jira/browse/CAMEL-14746 Project: Camel Issue Type: Bug Components: camel-rest-swagger Affects Versions: 2.25.0 Reporter: Mikhail Lukyanov *camelContext* __ _http://www.springframework.org/schema/beans"_ _xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"_ _xsi:schemaLocation="http://camel.apache.org/schema/spring http://camel.apache.org/schema/spring/camel-spring.xsd http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd";>_ _http://camel.apache.org/schema/spring"; >_ __ __ __ __ __ __ __ __ __ __ __ __ *Swagger.json* _{_ _"swagger": "2.0",_ _"info": {_ _"description": "Api Documentation",_ _"version": "1.0",_ _"title": "Api Documentation",_ _"termsOfService": "urn:tos",_ _"contact": {},_ _"license": {_ _"name": "Apache 2.0",_ _"url": "http://www.apache.org/licenses/LICENSE-2.0"_ _}_ _},_ _"host": "localhost:8182",_ _"basePath": "/manager",_ _"tags": [_ _{_ _"name": "Logs",_ _"description": "API for logs"_ _}_ _],_ _"paths": {_ _"/api/log/download": {_ _"get": {_ _"tags": [_ _"Работа с логами"_ _],_ _"summary": "Export",_ _"operationId": "downloadUsingGET",_ _"produces": [_ _"*/*"_ _],_ _"responses": {_ _"200": {_ _"description": "OK"_ _},_ _"401": {_ _"description": "Unauthorized"_ _},_ _"403": {_ "description": "Forbidden" }, "404": { "description": "Not Found" } }, "deprecated": false } } } } *Error* {color:#de350b}Caused by: org.apache.camel.FailedToCreateProducerException: Failed to create Producer for endpoint: swagger://file:/C:/Users/wunsh/IdeaProjects/camel/components/camel-rest-swagger/src/test/resources/swagger1.json%23downloadUsingGET. Reason: java.lang.IllegalArgumentException: The endpoint is not of type: class org.apache.camel.component.http.HttpEndpoint but is: org.apache.camel.component.file.FileEndpointCaused by: org.apache.camel.FailedToCreateProducerException: Failed to create Producer for endpoint: swagger://file:/C:/Users/wunsh/IdeaProjects/camel/components/camel-rest-swagger/src/test/resources/swagger1.json%23downloadUsingGET. Reason: java.lang.IllegalArgumentException: The endpoint is not of type: class org.apache.camel.component.http.HttpEndpoint but is: org.apache.camel.component.file.FileEndpoint{color} {color:#172b4d}When I get the same swagger specification through the resource "http:" everything is ok{color} -- This message was sent by Atlassian Jira (v8.3.4#803005)
[jira] [Updated] (CAMEL-14724) camel-swagger-java Semantic error. Methods in rest service with id have the same operationId
[ https://issues.apache.org/jira/browse/CAMEL-14724?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Mikhail Lukyanov updated CAMEL-14724: - Description: In camel-swagger-java, for this service I get next swagger.json, which does not pass validation because h4. Semantic error at paths./path/get2.get.operationId Operations must have unique operationIds. { "swagger" : "2.0", "info" : { "version" : "1.0", "title" : "REST API" } , "host" : "[0.0.0.0:9090|http://0.0.0.0:9090/]";, "basePath" : "/fesb-rest", "tags" : [ \{ "name" : "path" } ], "schemes" : [ "http", "https" ], "paths" : { "/path/get" : { "get" : { "tags" : [ "path" ], "summary" : "", "operationId" : "{color:#ff}4f777f7b-f2fd-4107-8271-a50640d4525c{color}{color:#00}", "produces" : [ "application/json" ], "responses" : \{ "200" : { "description" : "OK" } } } }, "/path/get2" : { "get" : { "tags" : [ "path" ], "summary" : "", "operationId" : "{color}{color:#ff}4f777f7b-f2fd-4107-8271-a50640d4525c{color}{color:#00}", "produces" : [ "application/json" ], "responses" : \{ "200" : { "description" : "OK" } } } } } }{color} I need the id of the methods and not the service to be used, while the service id should remain I looked at the code and found the following in the class *RestSwaggerReader.* String operationId = (String)Optional.ofNullable(rest.getId()).orElse(routeId); op.operationId(operationId); was: In camel-swagger-java, for this service I get next swagger.json, which does not pass validation because h4. Semantic error at paths./path/get2.get.operationId Operations must have unique operationIds. { "swagger" : "2.0", "info" : { "version" : "1.0", "title" : "REST API" } , "host" : "[0.0.0.0:9090|http://0.0.0.0:9090/]";, "basePath" : "/fesb-rest", "tags" : [ \{ "name" : "path" } ], "schemes" : [ "http", "https" ], "paths" : { "/path/get" : { "get" : { "tags" : [ "path" ], "summary" : "", "operationId" : "{color:#ff}4f777f7b-f2fd-4107-8271-a50640d4525c{color}{color:#00}", "produces" : [ "application/json" ], "responses" : \{ "200" : { "description" : "OK" } } } }, "/path/get2" : { "get" : { "tags" : [ "path" ], "summary" : "", "operationId" : "{color}{color:#ff}4f777f7b-f2fd-4107-8271-a50640d4525c{color}{color:#00}", "produces" : [ "application/json" ], "responses" : \{ "200" : { "description" : "OK" } } } } } }{color} I need the id of the methods and not the service to be used, while the service id should remain I looked at the code and found the following in the class *RestSwaggerReader.* String operationId = (String)Optional.ofNullable(rest.getId()).orElse(routeId); op.operationId(operationId); > camel-swagger-java Semantic error. Methods in rest service with id have the > same operationId > > > Key: CAMEL-14724 > URL: https://issues.apache.org/jira/browse/CAMEL-14724 > Project: Camel > Issue Type: Bug > Components: camel-swagger >Affects Versions: 3.1.0 >Reporter: Mikhail Lukyanov >Priority: Major > > In camel-swagger-java, for this service > > produces="application/json"> >produces="application/json" uri="/get"> > > > > >produces="application/json" uri="/get2"> > > > > > > > I get next swagger.json, which does not pass validation because > h4. Semantic error at paths./path/get2.get.operationId > Operations must have unique operationIds. > > > { "swagger" : "2.0", "info" : > { "version" : "1.0", "title" : "REST API" } > , "host" : "[0.0.0.0:9090|http://0.0.0.0:9090/]";, "basePath" : "/fesb-rest", > "tags" : [ \{ "name" : "path" } ], "schemes" : [ "http", "https" ], "paths" : > { "/path/get" : { "get" : { "tags" : [ "path" ], "summary" : "", > "operationId" : > "{color:#ff}4f777f7b-f2fd-4107-8271-a50640d4525c{color}{color:#00}", > "produces" : [ "application/json" ], "responses" : \{ "200" : { "description" > : "OK" } } } }, "/path/get2" : { "get" : { "tags" : [ "path" ], "summary" : > "", "operationId" : > "{color}{color:#ff}4f777f7b-f2fd-4107-8271-a50640d4525c{color}{color:#00}", > "produces" : [ "application/json" ], "responses" : \{ "200" : { > "description" : "OK" } } } } } }{color} > > I need the id of the methods and not the service to be used, while the > service id should remain > I looked at the code and found the following in the class > *RestSwaggerReader.* > > String operationId = > (String)Optional.ofNullable(rest.getId()).orElse(routeId); > op.operationId(operationId); -- This message was sent by Atlassian Jira (v8.3.4#803005)
[jira] [Updated] (CAMEL-14724) camel-swagger-java Semantic error. Methods in rest service with id have the same operationId
[ https://issues.apache.org/jira/browse/CAMEL-14724?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Mikhail Lukyanov updated CAMEL-14724: - Description: In camel-swagger-java, for this service {{{code:xml}}} {{ }} {{ }} {{{code}}} I get next swagger.json, which does not pass validation because h4. Semantic error at paths./path/get2.get.operationId Operations must have unique operationIds. { "swagger" : "2.0", "info" : { "version" : "1.0", "title" : "REST API" } , "host" : "[0.0.0.0:9090|http://0.0.0.0:9090/]";, "basePath" : "/fesb-rest", "tags" : [ \{ "name" : "path" } ], "schemes" : [ "http", "https" ], "paths" : { "/path/get" : { "get" : { "tags" : [ "path" ], "summary" : "", "operationId" : "{color:#ff}4f777f7b-f2fd-4107-8271-a50640d4525c{color}{color:#00}", "produces" : [ "application/json" ], "responses" : \{ "200" : { "description" : "OK" } } } }, "/path/get2" : { "get" : { "tags" : [ "path" ], "summary" : "", "operationId" : "{color}{color:#ff}4f777f7b-f2fd-4107-8271-a50640d4525c{color}{color:#00}", "produces" : [ "application/json" ], "responses" : \{ "200" : { "description" : "OK" } } } } } }{color} I need the id of the methods and not the service to be used, while the service id should remain I looked at the code and found the following in the class *RestSwaggerReader.* String operationId = (String)Optional.ofNullable(rest.getId()).orElse(routeId); op.operationId(operationId); was: In camel-swagger-java, for this service {{{code:xml}}} {{}} {{{code}}} I get next swagger.json, which does not pass validation because h4. Semantic error at paths./path/get2.get.operationId Operations must have unique operationIds. { "swagger" : "2.0", "info" : { "version" : "1.0", "title" : "REST API" } , "host" : "[0.0.0.0:9090|http://0.0.0.0:9090/]";, "basePath" : "/fesb-rest", "tags" : [ \{ "name" : "path" } ], "schemes" : [ "http", "https" ], "paths" : { "/path/get" : { "get" : { "tags" : [ "path" ], "summary" : "", "operationId" : "{color:#ff}4f777f7b-f2fd-4107-8271-a50640d4525c{color}{color:#00}", "produces" : [ "application/json" ], "responses" : \{ "200" : { "description" : "OK" } } } }, "/path/get2" : { "get" : { "tags" : [ "path" ], "summary" : "", "operationId" : "{color}{color:#ff}4f777f7b-f2fd-4107-8271-a50640d4525c{color}{color:#00}", "produces" : [ "application/json" ], "responses" : \{ "200" : { "description" : "OK" } } } } } }{color} I need the id of the methods and not the service to be used, while the service id should remain I looked at the code and found the following in the class *RestSwaggerReader.* String operationId = (String)Optional.ofNullable(rest.getId()).orElse(routeId); op.operationId(operationId); > camel-swagger-java Semantic error. Methods in rest service with id have the > same operationId > > > Key: CAMEL-14724 > URL: https://issues.apache.org/jira/browse/CAMEL-14724 > Project: Camel > Issue Type: Bug > Components: camel-swagger >Affects Versions: 3.1.0 >Reporter: Mikhail Lukyanov >Priority: Major > > In camel-swagger-java, for this service > > > {{{code:xml}}} > {{ > }} > {{ }} > {{{code}}} > > I get next swagger.json, which does not pass validation because > h4. Semantic error at paths./path/get2.get.operationId > Operations must have unique operationIds. > > > { "swagger" : "2.0", "info" : > { "version" : "1.0", "title" : "REST API" } > , "host" : "[0.0.0.0:9090|http://0.0.0.0:9090/]";, "basePath" : "/fesb-rest", > "tags" : [ \{ "name" : "path" } ], "schemes" : [ "http", "https" ], "paths" : > { "/path/get" : { "get" : { "tags" : [ "path" ], "summary" : "", > "operationId" : > "{color:#ff}4f777f7b-f2fd-4107-8271-a50640d4525c{color}{color:#00}", > "produces" : [ "application/json" ], "responses" : \{ "200" : { "description" > : "OK" } } } }, "/path/get2" : { "get" : { "tags" : [ "path" ], "summary" : > "", "operationId" : > "{color}{color:#ff}4f777f7b-f2fd-4107-8271-a50640d4525c{color}{color:#00}", > "produces" : [ "application/json" ], "responses" : \{ "200" : { > "description" : "OK" } } } } } }{color} > > I need the id of the methods and not the service to be used, while the > service id should remain > I looked at the code and found the following in the class > *RestSwaggerReader.* > > String operationId = > (String)Optional.ofNullable(rest.getId()).orElse(routeId); > op.operationId(operationId); -- This message was sent by Atlassian Jira (v8.3.4#803005)
[jira] [Updated] (CAMEL-14724) camel-swagger-java Semantic error. Methods in rest service with id have the same operationId
[ https://issues.apache.org/jira/browse/CAMEL-14724?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Mikhail Lukyanov updated CAMEL-14724: - Description: In camel-swagger-java, for this service I get next swagger.json, which does not pass validation because h4. Semantic error at paths./path/get2.get.operationId Operations must have unique operationIds. { "swagger" : "2.0", "info" : { "version" : "1.0", "title" : "REST API" } , "host" : "[0.0.0.0:9090|http://0.0.0.0:9090/]";, "basePath" : "/fesb-rest", "tags" : [ \{ "name" : "path" } ], "schemes" : [ "http", "https" ], "paths" : { "/path/get" : { "get" : { "tags" : [ "path" ], "summary" : "", "operationId" : "{color:#ff}4f777f7b-f2fd-4107-8271-a50640d4525c{color}{color:#00}", "produces" : [ "application/json" ], "responses" : \{ "200" : { "description" : "OK" } } } }, "/path/get2" : { "get" : { "tags" : [ "path" ], "summary" : "", "operationId" : "{color}{color:#ff}4f777f7b-f2fd-4107-8271-a50640d4525c{color}{color:#00}", "produces" : [ "application/json" ], "responses" : \{ "200" : { "description" : "OK" } } } } } }{color} I need the id of the methods and not the service to be used, while the service id should remain I looked at the code and found the following in the class *RestSwaggerReader.* String operationId = (String)Optional.ofNullable(rest.getId()).orElse(routeId); op.operationId(operationId); was: In camel-swagger-java, for this service {{{code:xml}}} {{ }} {{ }} {{{code}}} I get next swagger.json, which does not pass validation because h4. Semantic error at paths./path/get2.get.operationId Operations must have unique operationIds. { "swagger" : "2.0", "info" : { "version" : "1.0", "title" : "REST API" } , "host" : "[0.0.0.0:9090|http://0.0.0.0:9090/]";, "basePath" : "/fesb-rest", "tags" : [ \{ "name" : "path" } ], "schemes" : [ "http", "https" ], "paths" : { "/path/get" : { "get" : { "tags" : [ "path" ], "summary" : "", "operationId" : "{color:#ff}4f777f7b-f2fd-4107-8271-a50640d4525c{color}{color:#00}", "produces" : [ "application/json" ], "responses" : \{ "200" : { "description" : "OK" } } } }, "/path/get2" : { "get" : { "tags" : [ "path" ], "summary" : "", "operationId" : "{color}{color:#ff}4f777f7b-f2fd-4107-8271-a50640d4525c{color}{color:#00}", "produces" : [ "application/json" ], "responses" : \{ "200" : { "description" : "OK" } } } } } }{color} I need the id of the methods and not the service to be used, while the service id should remain I looked at the code and found the following in the class *RestSwaggerReader.* String operationId = (String)Optional.ofNullable(rest.getId()).orElse(routeId); op.operationId(operationId); > camel-swagger-java Semantic error. Methods in rest service with id have the > same operationId > > > Key: CAMEL-14724 > URL: https://issues.apache.org/jira/browse/CAMEL-14724 > Project: Camel > Issue Type: Bug > Components: camel-swagger >Affects Versions: 3.1.0 >Reporter: Mikhail Lukyanov >Priority: Major > > In camel-swagger-java, for this service > > > produces="application/json"> >produces="application/json" uri="/get"> > > > > >produces="application/json" uri="/get2"> > > > > > > > I get next swagger.json, which does not pass validation because > h4. Semantic error at paths./path/get2.get.operationId > Operations must have unique operationIds. > > > { "swagger" : "2.0", "info" : > { "version" : "1.0", "title" : "REST API" } > , "host" : "[0.0.0.0:9090|http://0.0.0.0:9090/]";, "basePath" : "/fesb-rest", > "tags" : [ \{ "name" : "path" } ], "schemes" : [ "http", "https" ], "paths" : > { "/path/get" : { "get" : { "tags" : [ "path" ], "summary" : "", > "operationId" : > "{color:#ff}4f777f7b-f2fd-4107-8271-a50640d4525c{color}{color:#00}", > "produces" : [ "application/json" ], "responses" : \{ "200" : { "description" > : "OK" } } } }, "/path/get2" : { "get" : { "tags" : [ "path" ], "summary" : > "", "operationId" : > "{color}{color:#ff}4f777f7b-f2fd-4107-8271-a50640d4525c{color}{color:#00}", > "produces" : [ "application/json" ], "responses" : \{ "200" : { > "description" : "OK" } } } } } }{color} > > I need the id of the methods and not the service to be used, while the > service id should remain > I looked at the code and found the following in the class > *RestSwaggerReader.* > > String operationId = > (String)Optional.ofNullable(rest.getId()).orElse(routeId); > op.operationId(operationId); -- This message was sent by Atlassian Jira (v8.3.4#803005)
[jira] [Updated] (CAMEL-14724) camel-swagger-java Semantic error. Methods in rest service with id have the same operationId
[ https://issues.apache.org/jira/browse/CAMEL-14724?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Mikhail Lukyanov updated CAMEL-14724: - Description: In camel-swagger-java, for this service {{{code:xml}}} {{}} {{{code}}} I get next swagger.json, which does not pass validation because h4. Semantic error at paths./path/get2.get.operationId Operations must have unique operationIds. { "swagger" : "2.0", "info" : { "version" : "1.0", "title" : "REST API" } , "host" : "[0.0.0.0:9090|http://0.0.0.0:9090/]";, "basePath" : "/fesb-rest", "tags" : [ \{ "name" : "path" } ], "schemes" : [ "http", "https" ], "paths" : { "/path/get" : { "get" : { "tags" : [ "path" ], "summary" : "", "operationId" : "{color:#ff}4f777f7b-f2fd-4107-8271-a50640d4525c{color}{color:#00}", "produces" : [ "application/json" ], "responses" : \{ "200" : { "description" : "OK" } } } }, "/path/get2" : { "get" : { "tags" : [ "path" ], "summary" : "", "operationId" : "{color}{color:#ff}4f777f7b-f2fd-4107-8271-a50640d4525c{color}{color:#00}", "produces" : [ "application/json" ], "responses" : \{ "200" : { "description" : "OK" } } } } } }{color} I need the id of the methods and not the service to be used, while the service id should remain I looked at the code and found the following in the class *RestSwaggerReader.* String operationId = (String)Optional.ofNullable(rest.getId()).orElse(routeId); op.operationId(operationId); was: In camel-swagger-java, for this service I get next swagger.json, which does not pass validation because h4. Semantic error at paths./path/get2.get.operationId Operations must have unique operationIds. { "swagger" : "2.0", "info" : \\{ "version" : "1.0", "title" : "REST API" } , "host" : "[0.0.0.0:9090|http://0.0.0.0:9090/]";, "basePath" : "/fesb-rest", "tags" : [ \{ "name" : "path" } ], "schemes" : [ "http", "https" ], "paths" : { "/path/get" : { "get" : { "tags" : [ "path" ], "summary" : "", "operationId" : "{color:#ff}4f777f7b-f2fd-4107-8271-a50640d4525c{color}{color:#00}", "produces" : [ "application/json" ], "responses" : \{ "200" : { "description" : "OK" } } } }, "/path/get2" : { "get" : { "tags" : [ "path" ], "summary" : "", "operationId" : "{color}{color:#ff}4f777f7b-f2fd-4107-8271-a50640d4525c{color}{color:#00}", "produces" : [ "application/json" ], "responses" : \{ "200" : { "description" : "OK" } } } } } }{color} I need the id of the methods and not the service to be used, while the service id should remain I looked at the code and found the following in the class *RestSwaggerReader.* String operationId = (String)Optional.ofNullable(rest.getId()).orElse(routeId); op.operationId(operationId); > camel-swagger-java Semantic error. Methods in rest service with id have the > same operationId > > > Key: CAMEL-14724 > URL: https://issues.apache.org/jira/browse/CAMEL-14724 > Project: Camel > Issue Type: Bug > Components: camel-swagger >Affects Versions: 3.1.0 >Reporter: Mikhail Lukyanov >Priority: Major > > In camel-swagger-java, for this service > > > {{{code:xml}}} > {{}} > produces="application/json"> >produces="application/json" uri="/get"> > > > > >produces="application/json" uri="/get2"> > > > > > > > {{{code}}} > > I get next swagger.json, which does not pass validation because > h4. Semantic error at paths./path/get2.get.operationId > Operations must have unique operationIds. > > > { "swagger" : "2.0", "info" : > { "version" : "1.0", "title" : "REST API" } > , "host" : "[0.0.0.0:9090|http://0.0.0.0:9090/]";, "basePath" : "/fesb-rest", > "tags" : [ \{ "name" : "path" } ], "schemes" : [ "http", "https" ], "paths" : > { "/path/get" : { "get" : { "tags" : [ "path" ], "summary" : "", > "operationId" : > "{color:#ff}4f777f7b-f2fd-4107-8271-a50640d4525c{color}{color:#00}", > "produces" : [ "application/json" ], "responses" : \{ "200" : { "description" > : "OK" } } } }, "/path/get2" : { "get" : { "tags" : [ "path" ], "summary" : > "", "operationId" : > "{color}{color:#ff}4f777f7b-f2fd-4107-8271-a50640d4525c{color}{color:#00}", > "produces" : [ "application/json" ], "responses" : \{ "200" : { > "description" : "OK" } } } } } }{color} > > I need the id of the methods and not the service to be used, while the > service id should remain > I looked at the code and found the following in the class > *RestSwaggerReader.* > > String operationId = > (String)Optional.ofNullable(rest.getId()).orElse(routeId); > op.operationId(operationId); -- This message was sent by Atlassian Jira (v8.3.4#803005)
[jira] [Updated] (CAMEL-14724) camel-swagger-java Semantic error. Methods in rest service with id have the same operationId
[ https://issues.apache.org/jira/browse/CAMEL-14724?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Mikhail Lukyanov updated CAMEL-14724: - Description: In camel-swagger-java, for this service I get next swagger.json, which does not pass validation because h4. Semantic error at paths./path/get2.get.operationId Operations must have unique operationIds. { "swagger" : "2.0", "info" : \\{ "version" : "1.0", "title" : "REST API" } , "host" : "[0.0.0.0:9090|http://0.0.0.0:9090/]";, "basePath" : "/fesb-rest", "tags" : [ \{ "name" : "path" } ], "schemes" : [ "http", "https" ], "paths" : { "/path/get" : { "get" : { "tags" : [ "path" ], "summary" : "", "operationId" : "{color:#ff}4f777f7b-f2fd-4107-8271-a50640d4525c{color}{color:#00}", "produces" : [ "application/json" ], "responses" : \{ "200" : { "description" : "OK" } } } }, "/path/get2" : { "get" : { "tags" : [ "path" ], "summary" : "", "operationId" : "{color}{color:#ff}4f777f7b-f2fd-4107-8271-a50640d4525c{color}{color:#00}", "produces" : [ "application/json" ], "responses" : \{ "200" : { "description" : "OK" } } } } } }{color} I need the id of the methods and not the service to be used, while the service id should remain I looked at the code and found the following in the class *RestSwaggerReader.* String operationId = (String)Optional.ofNullable(rest.getId()).orElse(routeId); op.operationId(operationId); was: In camel-swagger-java, for this service I get next swagger.json, which does not pass validation because h4. Semantic error at paths./path/get2.get.operationId Operations must have unique operationIds. { "swagger" : "2.0", "info" : \{ "version" : "1.0", "title" : "REST API" }, "host" : "[0.0.0.0:9090|http://0.0.0.0:9090/]";, "basePath" : "/fesb-rest", "tags" : [ \{ "name" : "path" } ], "schemes" : [ "http", "https" ], "paths" : { "/path/get" : { "get" : { "tags" : [ "path" ], "summary" : "", "operationId" : "{color:#ff}4f777f7b-f2fd-4107-8271-a50640d4525c{color}{color:#00}", "produces" : [ "application/json" ], "responses" : \{ "200" : { "description" : "OK" } } } }, "/path/get2" : { "get" : { "tags" : [ "path" ], "summary" : "", "operationId" : "{color}{color:#ff}4f777f7b-f2fd-4107-8271-a50640d4525c{color}{color:#00}", "produces" : [ "application/json" ], "responses" : \{ "200" : { "description" : "OK" } } } } } }{color} I need the id of the methods and not the service to be used, while the service id should remain I looked at the code and found the following in the class *RestSwaggerReader.* String operationId = (String)Optional.ofNullable(rest.getId()).orElse(routeId); op.operationId(operationId); > camel-swagger-java Semantic error. Methods in rest service with id have the > same operationId > > > Key: CAMEL-14724 > URL: https://issues.apache.org/jira/browse/CAMEL-14724 > Project: Camel > Issue Type: Bug > Components: camel-swagger >Affects Versions: 3.1.0 >Reporter: Mikhail Lukyanov >Priority: Major > > In camel-swagger-java, for this service > > produces="application/json"> >produces="application/json" uri="/get"> > > > > >produces="application/json" uri="/get2"> > > > > > > > I get next swagger.json, which does not pass validation because > h4. Semantic error at paths./path/get2.get.operationId > Operations must have unique operationIds. > > > { "swagger" : "2.0", "info" : \\{ "version" : "1.0", "title" : "REST API" } > , "host" : "[0.0.0.0:9090|http://0.0.0.0:9090/]";, "basePath" : "/fesb-rest", > "tags" : [ \{ "name" : "path" } ], "schemes" : [ "http", "https" ], "paths" : > { "/path/get" : { "get" : { "tags" : [ "path" ], "summary" : "", > "operationId" : > "{color:#ff}4f777f7b-f2fd-4107-8271-a50640d4525c{color}{color:#00}", > "produces" : [ "application/json" ], "responses" : \{ "200" : { "description" > : "OK" } } } }, "/path/get2" : { "get" : { "tags" : [ "path" ], "summary" : > "", "operationId" : > "{color}{color:#ff}4f777f7b-f2fd-4107-8271-a50640d4525c{color}{color:#00}", > "produces" : [ "application/json" ], "responses" : \{ "200" : { > "description" : "OK" } } } } } }{color} > > I need the id of the methods and not the service to be used, while the > service id should remain > I looked at the code and found the following in the class > *RestSwaggerReader.* > > String operationId = > (String)Optional.ofNullable(rest.getId()).orElse(routeId); > op.operationId(operationId); -- This message was sent by Atlassian Jira (v8.3.4#803005)
[jira] [Created] (CAMEL-14724) camel-swagger-java Semantic error. Methods in rest service with id have the same operationId
Mikhail Lukyanov created CAMEL-14724: Summary: camel-swagger-java Semantic error. Methods in rest service with id have the same operationId Key: CAMEL-14724 URL: https://issues.apache.org/jira/browse/CAMEL-14724 Project: Camel Issue Type: Bug Components: camel-swagger Affects Versions: 3.1.0 Reporter: Mikhail Lukyanov In camel-swagger-java, for this service I get next swagger.json, which does not pass validation because h4. Semantic error at paths./path/get2.get.operationId Operations must have unique operationIds. { "swagger" : "2.0", "info" : \{ "version" : "1.0", "title" : "REST API" }, "host" : "[0.0.0.0:9090|http://0.0.0.0:9090/]";, "basePath" : "/fesb-rest", "tags" : [ \{ "name" : "path" } ], "schemes" : [ "http", "https" ], "paths" : { "/path/get" : { "get" : { "tags" : [ "path" ], "summary" : "", "operationId" : "{color:#ff}4f777f7b-f2fd-4107-8271-a50640d4525c{color}{color:#00}", "produces" : [ "application/json" ], "responses" : \{ "200" : { "description" : "OK" } } } }, "/path/get2" : { "get" : { "tags" : [ "path" ], "summary" : "", "operationId" : "{color}{color:#ff}4f777f7b-f2fd-4107-8271-a50640d4525c{color}{color:#00}", "produces" : [ "application/json" ], "responses" : \{ "200" : { "description" : "OK" } } } } } }{color} I need the id of the methods and not the service to be used, while the service id should remain I looked at the code and found the following in the class *RestSwaggerReader.* String operationId = (String)Optional.ofNullable(rest.getId()).orElse(routeId); op.operationId(operationId); -- This message was sent by Atlassian Jira (v8.3.4#803005)