syndesisio / syndesis-extensions Goto Github PK
View Code? Open in Web Editor NEWCollection of Syndesis extensions
License: Apache License 2.0
Collection of Syndesis extensions
License: Apache License 2.0
This issue is a request.
I want AWX (or Ansible Tower) API extention.
It will complement the missing functions of awx workflow reasonable.
Swagger documents are as follows.
https://docs.ansible.com/ansible-tower/latest/html/towerapi/api_ref.html
Monitor tools (prometheus, zabbix etc) invokes a job template, which means a playbook, through webhook consumer endpoint.
POST /api/v2/job_templates/{id}/launch/ Launch a Job Template
With the extra_vars, it is possible to change the behavior of the job template (such as target nodes and options)
In accordance with the job execution result, subsequent processing such as notification and recovery are executed.
GET /api/v2/jobs/{id}/ Retrieve a Job
As reported in syndesisio/syndesis#8540 there is some runtime issue, probably due to missing dependencies when using Script extension:
[ERROR] 'dependencies.dependency.version' for org.codehaus.groovy:groovy-all:jar is missing. @ line 129, column 17
I was getting an error with the sindesis version, after solving it changing the sindesis version from 1.12-SNAPSHOT to 1.12.0.
I can't get ./mvnw -pl :syndesis-library-jdbc-driver clean package to work.
I consistently get the following error
[ERROR] Failed to execute goal io.syndesis.extension:extension-maven-plugin:1.12.0:repackage-extension (default) on project syndesis-library-jdbc-driver: Execution default of goal io.syndesis.extension:extension-maven-plugin:1.12.0:repackage-extension failed: Unable to invoke onlyOne([Ljava.lang.Class;@a5f18edc) on object org.jboss.shrinkwrap.resolver.spi.loader.ServiceRegistry with parameters [Ljava.lang.Object;@6c1c324c: InvocationTargetException: Could not create new service instance: org.eclipse.aether.internal.impl.collect.DefaultDependencyCollector -> [Help 1]
Although the .jar is being generated it does not work on the Fuse Online instance I have on Openshift.
The names of the extensions, found in their respective readme files, are mixed up:
It turns out there is an issue with the IRC extension, showing itself only at deploy time:
paolo-2-9xn6g paolo Starting the Java application using /opt/run-java/run-java.sh ...
paolo-2-9xn6g paolo exec java -javaagent:/opt/jolokia/jolokia.jar=config=/opt/jolokia/etc/jolokia.properties -javaagent:/opt/prometheus/jmx_prometheus_javaagent.jar=9779:/tmp/src/prometheus-config.yml -XX:+UseParallelGC -XX:GCTimeRatio=4 -XX:AdaptiveSizePolicyWeight=90 -XX:MinHeapFreeRatio=20 -XX:MaxHeapFreeRatio=40 -XX:+ExitOnOutOfMemoryError -cp . -jar /deployments/project-0.1-SNAPSHOT.jar
paolo-2-deploy deployment --> Success
paolo-2-9xn6g paolo Exception in thread "main" java.lang.IllegalArgumentException: File must exist
paolo-2-9xn6g paolo at org.springframework.boot.loader.data.RandomAccessDataFile.<init>(RandomAccessDataFile.java:67)
paolo-2-9xn6g paolo at org.springframework.boot.loader.data.RandomAccessDataFile.<init>(RandomAccessDataFile.java:51)
paolo-2-9xn6g paolo at org.springframework.boot.loader.jar.JarFile.<init>(JarFile.java:83)
paolo-2-9xn6g paolo at org.springframework.boot.loader.archive.JarFileArchive.<init>(JarFileArchive.java:61)
paolo-2-9xn6g paolo at org.springframework.boot.loader.archive.JarFileArchive.<init>(JarFileArchive.java:57)
paolo-2-9xn6g paolo at org.springframework.boot.loader.PropertiesLauncher.getArchive(PropertiesLauncher.java:494)
paolo-2-9xn6g paolo at org.springframework.boot.loader.PropertiesLauncher.getClassPathArchives(PropertiesLauncher.java:473)
paolo-2-9xn6g paolo at org.springframework.boot.loader.PropertiesLauncher.getClassPathArchives(PropertiesLauncher.java:443)
paolo-2-9xn6g paolo at org.springframework.boot.loader.Launcher.launch(Launcher.java:49)
paolo-2-9xn6g paolo at org.springframework.boot.loader.PropertiesLauncher.main(PropertiesLauncher.java:58
If I restart the pod in debug I see that the env var LOADER_HOME
is not set. I don't know if that's the real reason for the problem or just a side effect of running it with oc debug
.
@lburgazzoli @oscerd @nicolaferraro any idea?
Able to use simple expressions in body/headers extensions rather than set only constants.
May be add LOV with available parameters which type of the EL could be used: constant, simple, etc.
I am having problems when building the test extensions that are in the repository, I have also tried to create one from scratch following the steps, and it has not worked either, the folder structure is created well, but when building it it gives the same error.
Is it happening to someone else? I am doing something wrong?
Console output when I run the command: mvn clean install
WARNING: An illegal reflective access operation has occurred WARNING: Illegal reflective access by com.google.inject.internal.cglib.core.$ReflectUtils$1 (file:/usr/share/maven/lib/guice.jar) to method java.lang.ClassLoader.defineClass(java.lang.String,byte[],int,int,java.security.ProtectionDomain) WARNING: Please consider reporting this to the maintainers of com.google.inject.internal.cglib.core.$ReflectUtils$1 WARNING: Use --illegal-access=warn to enable warnings of further illegal reflective access operations WARNING: All illegal access operations will be denied in a future release [INFO] Scanning for projects... [ERROR] [ERROR] Some problems were encountered while processing the POMs: [ERROR] Non-resolvable import POM: Failure to find io.syndesis.extension:extension-bom:pom:2.0-SNAPSHOT in https://origin-repository.jboss.org/nexus/content/groups/ea was cached in the local repository, resolution will not be reattempted until the update interval of jboss-fuse has elapsed or updates are forced @ line 23, column 19 [ERROR] 'dependencies.dependency.version' for io.syndesis.extension:extension-annotation-processor:jar is missing. @ line 34, column 17 [ERROR] 'dependencies.dependency.version' for io.syndesis.extension:extension-api:jar is missing. @ line 41, column 17 @ [ERROR] The build could not read 1 project -> [Help 1] [ERROR] [ERROR] The project io.syndesis.extensions:syndesis-extension-validate:1.0.0 (/home/jesusgonfer/Escritorio/apuntes/syndesis/extensiones/syndesis-extensions-master/syndesis-extension-validate/pom.xml) has 3 errors [ERROR] Non-resolvable import POM: Failure to find io.syndesis.extension:extension-bom:pom:2.0-SNAPSHOT in https://origin-repository.jboss.org/nexus/content/groups/ea was cached in the local repository, resolution will not be reattempted until the update interval of jboss-fuse has elapsed or updates are forced @ line 23, column 19 -> [Help 2] [ERROR] 'dependencies.dependency.version' for io.syndesis.extension:extension-annotation-processor:jar is missing. @ line 34, column 17 [ERROR] 'dependencies.dependency.version' for io.syndesis.extension:extension-api:jar is missing. @ line 41, column 17 [ERROR] [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch. [ERROR] Re-run Maven using the -X switch to enable full debug logging. [ERROR] [ERROR] For more information about the errors and possible solutions, please read the following articles: [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/ProjectBuildingException [ERROR] [Help 2] http://cwiki.apache.org/confluence/display/MAVEN/UnresolvableModelException
Could you take care of me if I'm doing something wrong? I would appreciate it very much
syndesis-extension-body does not work, export works, but selecting any of its action just keeps loading forever
I did not investigate it at all but maybe it counts with older syndesis models as it has 1.3-SNAPSHOT syndesis.version in pom.xml?
Tried from master branch on syndesis 1.4.5
We should introduce an enforcer rule to warn the user to compile with a Java 8 compatible version when using any 1.x branch. It loosely relates to #97.
For some reason, any extension Step compiled with Java 11 is repackaged as an extension library, making impossible to use the extension as a Step in Syndesis.
related to this: syndesisio/syndesis#1471
Since the Syndesis extension API promises backward compatibility, this extensions project should lock into an old released version of the syndesis API like 1.3.
That way an extension can be deployed across a wide range of syndesis versions (from 1.3 forward). If a specific extension requires a feature of a newer syndesis API, then only that extension module should bump up the syndesis version to the minimum needed and should clearly document the version requirement. Perhaps this minimum syndesis requirement should be part of the extension metadata.
The presence of a maven archetype would ease the development of an extension. We can think of a different one for each extension type.
Ascii data encode would be a nice to have, as from what I have seen is more commonly used than EBCDIC encoding
currently Maven 3.5.2 is required when using extension-maven-plugin ( see syndesisio/syndesis#2999 )
the error message when trying to use latest Maven version is quite cryptic:
[ERROR] Failed to execute goal io.syndesis.extension:extension-maven-plugin:1.3.10:repackage-extension (default) on project syndesis-connector-irc: Execution default of goal io.syndesis.extension:extension-maven-plugin:1.3.10:repackage-extension failed: Unable to invoke onlyOne([Ljava.lang.Class;@6bf0f70a) on object org.jboss.shrinkwrap.resolver.spi.loader.ServiceRegistry with parameters [Ljava.lang.Object;@5310e451: InvocationTargetException: Could not create new service instance: org/eclipse/aether/internal/impl/DefaultDependencyCollector: org.eclipse.aether.internal.impl.DefaultDependencyCollector -> [Help 1]
By providing a requireMavenVersion enforcer rule, we will have a better message which by default is:
Detected Maven Version: 3.6.1 is not in the allowed range [3.5,3.6).
The message can even be customized if there are better proposals.
If you try to use the following groovy script:
if ( ("$body".hashCode()%2)==1 ) {
throw new RuntimeException("Odd hash codes.")
}
The integration fails to startup up. With this error:
Error starting ApplicationContext. To display the auto-configuration report re-run your application with 'debug' enabled.
--
| 2018-01-19 22:32:13.778 ERROR 1 --- [ main] o.s.boot.SpringApplication : Application startup failed
|
| org.apache.camel.RuntimeCamelException: org.apache.camel.FailedToCreateRouteException: Failed to create route flow1 at: >>> To[class:io.syndesis.extension.GroovyExtension?method=runScript&bean.script=if ( ("$body".hashCode()%2)==1 ) {
| throw new RuntimeException("Odd hash codes.")
| }] <<< in route: Route(flow1)[[From[sql-start-connector-1?query=select+count%... because of Failed to resolve endpoint: class:io.syndesis.extension.GroovyExtension?method=runScript&bean.script=if ( ("$body".hashCode()%2)==1 ) {
| throw new RuntimeException("Odd hash codes.")
| } due to: Illegal character in opaque part at index 123: class:io.syndesis.extension.GroovyExtension?method=runScript&bean.script=if%20(%20(%22$body%22.hashCode()%252)==1%20)%20%7B
| %20%20throw%20new%20RuntimeException(%22Odd%20hash%20codes.%22)
| %7D
| at org.apache.camel.util.ObjectHelper.wrapRuntimeCamelException(ObjectHelper.java:1831) ~[camel-core-2.20.1.jar!/:2.20.1]
| at org.apache.camel.spring.SpringCamelContext.start(SpringCamelContext.java:136) ~[camel-spring-2.20.1.jar!/:2.20.1]
| at org.apache.camel.spring.SpringCamelContext.onApplicationEvent(SpringCamelContext.java:174) ~[camel-spring-2.20.1.jar!/:2.20.1]
| at org.springframework.context.event.SimpleApplicationEventMulticaster.doInvokeListener(SimpleApplicationEventMulticaster.java:172) ~[spring-context-4.3.12.RELEASE.jar!/:4.3.12.RELEASE]
| at org.springframework.context.event.SimpleApplicationEventMulticaster.invokeListener(SimpleApplicationEventMulticaster.java:165) ~[spring-context-4.3.12.RELEASE.jar!/:4.3.12.RELEASE]
| at org.springframework.context.event.SimpleApplicationEventMulticaster.multicastEvent(SimpleApplicationEventMulticaster.java:139) ~[spring-context-4.3.12.RELEASE.jar!/:4.3.12.RELEASE]
| at org.springframework.context.support.AbstractApplicationContext.publishEvent(AbstractApplicationContext.java:393) ~[spring-context-4.3.12.RELEASE.jar!/:4.3.12.RELEASE]
| at org.springframework.context.support.AbstractApplicationContext.publishEvent(AbstractApplicationContext.java:347) ~[spring-context-4.3.12.RELEASE.jar!/:4.3.12.RELEASE]
| at org.springframework.context.support.AbstractApplicationContext.finishRefresh(AbstractApplicationContext.java:883) ~[spring-context-4.3.12.RELEASE.jar!/:4.3.12.RELEASE]
| at org.springframework.boot.context.embedded.EmbeddedWebApplicationContext.finishRefresh(EmbeddedWebApplicationContext.java:144) ~[spring-boot-1.5.8.RELEASE.jar!/:1.5.8.RELEASE]
| at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:546) ~[spring-context-4.3.12.RELEASE.jar!/:4.3.12.RELEASE]
| at org.springframework.boot.context.embedded.EmbeddedWebApplicationContext.refresh(EmbeddedWebApplicationContext.java:122) ~[spring-boot-1.5.8.RELEASE.jar!/:1.5.8.RELEASE]
| at org.springframework.boot.SpringApplication.refresh(SpringApplication.java:693) [spring-boot-1.5.8.RELEASE.jar!/:1.5.8.RELEASE]
| at org.springframework.boot.SpringApplication.refreshContext(SpringApplication.java:360) [spring-boot-1.5.8.RELEASE.jar!/:1.5.8.RELEASE]
| at org.springframework.boot.SpringApplication.run(SpringApplication.java:303) [spring-boot-1.5.8.RELEASE.jar!/:1.5.8.RELEASE]
| at org.springframework.boot.SpringApplication.run(SpringApplication.java:1118) [spring-boot-1.5.8.RELEASE.jar!/:1.5.8.RELEASE]
| at org.springframework.boot.SpringApplication.run(SpringApplication.java:1107) [spring-boot-1.5.8.RELEASE.jar!/:1.5.8.RELEASE]
| at io.syndesis.example.Application.main(Application.java:13) [classes!/:na]
| at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[na:1.8.0_151]
| at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[na:1.8.0_151]
| at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[na:1.8.0_151]
| at java.lang.reflect.Method.invoke(Method.java:498) ~[na:1.8.0_151]
| at org.springframework.boot.loader.MainMethodRunner.run(MainMethodRunner.java:48) [project-0.1-SNAPSHOT.jar:na]
| at org.springframework.boot.loader.Launcher.launch(Launcher.java:87) [project-0.1-SNAPSHOT.jar:na]
| at org.springframework.boot.loader.Launcher.launch(Launcher.java:50) [project-0.1-SNAPSHOT.jar:na]
| at org.springframework.boot.loader.PropertiesLauncher.main(PropertiesLauncher.java:587) [project-0.1-SNAPSHOT.jar:na]
| Caused by: org.apache.camel.FailedToCreateRouteException: Failed to create route flow1 at: >>> To[class:io.syndesis.extension.GroovyExtension?method=runScript&bean.script=if ( ("$body".hashCode()%2)==1 ) {
| throw new RuntimeException("Odd hash codes.")
| }] <<< in route: Route(flow1)[[From[sql-start-connector-1?query=select+count%... because of Failed to resolve endpoint: class:io.syndesis.extension.GroovyExtension?method=runScript&bean.script=if ( ("$body".hashCode()%2)==1 ) {
| throw new RuntimeException("Odd hash codes.")
| } due to: Illegal character in opaque part at index 123: class:io.syndesis.extension.GroovyExtension?method=runScript&bean.script=if%20(%20(%22$body%22.hashCode()%252)==1%20)%20%7B
| %20%20throw%20new%20RuntimeException(%22Odd%20hash%20codes.%22)
| %7D
| at org.apache.camel.model.RouteDefinition.addRoutes(RouteDefinition.java:1298) ~[camel-core-2.20.1.jar!/:2.20.1]
| at org.apache.camel.model.RouteDefinition.addRoutes(RouteDefinition.java:204) ~[camel-core-2.20.1.jar!/:2.20.1]
| at org.apache.camel.impl.DefaultCamelContext.startRoute(DefaultCamelContext.java:1148) ~[camel-core-2.20.1.jar!/:2.20.1]
| at org.apache.camel.impl.DefaultCamelContext.startRouteDefinitions(DefaultCamelContext.java:3727) ~[camel-core-2.20.1.jar!/:2.20.1]
| at org.apache.camel.impl.DefaultCamelContext.doStartCamel(DefaultCamelContext.java:3441) ~[camel-core-2.20.1.jar!/:2.20.1]
| at org.apache.camel.impl.DefaultCamelContext.access$000(DefaultCamelContext.java:208) ~[camel-core-2.20.1.jar!/:2.20.1]
| at org.apache.camel.impl.DefaultCamelContext$2.call(DefaultCamelContext.java:3249) ~[camel-core-2.20.1.jar!/:2.20.1]
| at org.apache.camel.impl.DefaultCamelContext$2.call(DefaultCamelContext.java:3245) ~[camel-core-2.20.1.jar!/:2.20.1]
| at org.apache.camel.impl.DefaultCamelContext.doWithDefinedClassLoader(DefaultCamelContext.java:3268) ~[camel-core-2.20.1.jar!/:2.20.1]
| at org.apache.camel.impl.DefaultCamelContext.doStart(DefaultCamelContext.java:3245) ~[camel-core-2.20.1.jar!/:2.20.1]
| at org.apache.camel.support.ServiceSupport.start(ServiceSupport.java:61) ~[camel-core-2.20.1.jar!/:2.20.1]
| at org.apache.camel.impl.DefaultCamelContext.start(DefaultCamelContext.java:3168) ~[camel-core-2.20.1.jar!/:2.20.1]
| at org.apache.camel.spring.SpringCamelContext.start(SpringCamelContext.java:133) ~[camel-spring-2.20.1.jar!/:2.20.1]
| ... 24 common frames omitted
| Caused by: org.apache.camel.ResolveEndpointFailedException: Failed to resolve endpoint: class:io.syndesis.extension.GroovyExtension?method=runScript&bean.script=if ( ("$body".hashCode()%2)==1 ) {
| throw new RuntimeException("Odd hash codes.")
| } due to: Illegal character in opaque part at index 123: class:io.syndesis.extension.GroovyExtension?method=runScript&bean.script=if%20(%20(%22$body%22.hashCode()%252)==1%20)%20%7B
| %20%20throw%20new%20RuntimeException(%22Odd%20hash%20codes.%22)
| %7D
| at org.apache.camel.impl.DefaultCamelContext.normalizeEndpointUri(DefaultCamelContext.java:836) ~[camel-core-2.20.1.jar!/:2.20.1]
| at org.apache.camel.impl.DefaultCamelContext.getEndpoint(DefaultCamelContext.java:690) ~[camel-core-2.20.1.jar!/:2.20.1]
| at org.apache.camel.util.CamelContextHelper.getMandatoryEndpoint(CamelContextHelper.java:80) ~[camel-core-2.20.1.jar!/:2.20.1]
| at org.apache.camel.model.RouteDefinition.resolveEndpoint(RouteDefinition.java:219) ~[camel-core-2.20.1.jar!/:2.20.1]
| at org.apache.camel.impl.DefaultRouteContext.resolveEndpoint(DefaultRouteContext.java:115) ~[camel-core-2.20.1.jar!/:2.20.1]
| at org.apache.camel.impl.DefaultRouteContext.resolveEndpoint(DefaultRouteContext.java:121) ~[camel-core-2.20.1.jar!/:2.20.1]
| at org.apache.camel.model.SendDefinition.resolveEndpoint(SendDefinition.java:62) ~[camel-core-2.20.1.jar!/:2.20.1]
| at org.apache.camel.model.SendDefinition.createProcessor(SendDefinition.java:56) ~[camel-core-2.20.1.jar!/:2.20.1]
| at org.apache.camel.model.ProcessorDefinition.makeProcessorImpl(ProcessorDefinition.java:549) ~[camel-core-2.20.1.jar!/:2.20.1]
| at org.apache.camel.model.ProcessorDefinition.makeProcessor(ProcessorDefinition.java:510) ~[camel-core-2.20.1.jar!/:2.20.1]
| at org.apache.camel.model.ProcessorDefinition.addRoutes(ProcessorDefinition.java:226) ~[camel-core-2.20.1.jar!/:2.20.1]
| at org.apache.camel.model.RouteDefinition.addRoutes(RouteDefinition.java:1295) ~[camel-core-2.20.1.jar!/:2.20.1]
| ... 36 common frames omitted
| Caused by: java.net.URISyntaxException: Illegal character in opaque part at index 123: class:io.syndesis.extension.GroovyExtension?method=runScript&bean.script=if%20(%20(%22$body%22.hashCode()%252)==1%20)%20%7B
| %20%20throw%20new%20RuntimeException(%22Odd%20hash%20codes.%22)
| %7D
| at java.net.URI$Parser.fail(URI.java:2848) ~[na:1.8.0_151]
| at java.net.URI$Parser.checkChars(URI.java:3021) ~[na:1.8.0_151]
| at java.net.URI$Parser.parse(URI.java:3058) ~[na:1.8.0_151]
| at java.net.URI.<init>(URI.java:588) ~[na:1.8.0_151]
| at org.apache.camel.util.URISupport.normalizeUri(URISupport.java:533) ~[camel-core-2.20.1.jar!/:2.20.1]
| at org.apache.camel.impl.DefaultCamelContext.normalizeEndpointUri(DefaultCamelContext.java:834) ~[camel-core-2.20.1.jar!/:2.20.1]
| ... 47 common frames omitted
|
| 2018-01-19 22:32:13.782 INFO 1 --- [ main] ationConfigEmbeddedWebApplicationContext : Closing org.springframework.boot.context.embedded.AnnotationConfigEmbeddedWebApplicationContext@341b80b2: startup date [Fri Jan 19
Syndesis target still points to 1.3: https://github.com/syndesisio/syndesis-extensions/blob/master/pom.xml#L31
Assuming the field was accepting milliseconds I have passed value 5555
that generated this error:
Error starting ApplicationContext. To display the auto-configuration report re-run your application with 'debug' enabled.
2018-02-02 15:19:19.338 ERROR 1 --- [ main] o.s.boot.SpringApplication : Application startup failed
org.apache.camel.RuntimeCamelException: org.apache.camel.FailedToCreateRouteException: Failed to create route -L4LxuReRL7JRsrvER8s: Route(-L4LxuReRL7JRsrvER8s)[[From[quartz2-1]] -> [Log[===$bo... because of CronExpression '5555' is invalid.
at org.apache.camel.util.ObjectHelper.wrapRuntimeCamelException(ObjectHelper.java:1831) ~[camel-core-2.20.1.jar!/:2.20.1]
at org.apache.camel.spring.SpringCamelContext.start(SpringCamelContext.java:136) ~[camel-spring-2.20.1.jar!/:2.20.1]
at org.apache.camel.spring.SpringCamelContext.onApplicationEvent(SpringCamelContext.java:174) ~[camel-spring-2.20.1.jar!/:2.20.1]
at org.springframework.context.event.SimpleApplicationEventMulticaster.doInvokeListener(SimpleApplicationEventMulticaster.java:172) ~[spring-context-4.3.12.RELEASE.jar!/:4.3.12.RELEASE]
at org.springframework.context.event.SimpleApplicationEventMulticaster.invokeListener(SimpleApplicationEventMulticaster.java:165) ~[spring-context-4.3.12.RELEASE.jar!/:4.3.12.RELEASE]
at org.springframework.context.event.SimpleApplicationEventMulticaster.multicastEvent(SimpleApplicationEventMulticaster.java:139) ~[spring-context-4.3.12.RELEASE.jar!/:4.3.12.RELEASE]
at org.springframework.context.support.AbstractApplicationContext.publishEvent(AbstractApplicationContext.java:393) ~[spring-context-4.3.12.RELEASE.jar!/:4.3.12.RELEASE]
at org.springframework.context.support.AbstractApplicationContext.publishEvent(AbstractApplicationContext.java:347) ~[spring-context-4.3.12.RELEASE.jar!/:4.3.12.RELEASE]
at org.springframework.context.support.AbstractApplicationContext.finishRefresh(AbstractApplicationContext.java:883) ~[spring-context-4.3.12.RELEASE.jar!/:4.3.12.RELEASE]
at org.springframework.boot.context.embedded.EmbeddedWebApplicationContext.finishRefresh(EmbeddedWebApplicationContext.java:144) ~[spring-boot-1.5.8.RELEASE.jar!/:1.5.8.RELEASE]
at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:546) ~[spring-context-4.3.12.RELEASE.jar!/:4.3.12.RELEASE]
at org.springframework.boot.context.embedded.EmbeddedWebApplicationContext.refresh(EmbeddedWebApplicationContext.java:122) ~[spring-boot-1.5.8.RELEASE.jar!/:1.5.8.RELEASE]
at org.springframework.boot.SpringApplication.refresh(SpringApplication.java:693) [spring-boot-1.5.8.RELEASE.jar!/:1.5.8.RELEASE]
at org.springframework.boot.SpringApplication.refreshContext(SpringApplication.java:360) [spring-boot-1.5.8.RELEASE.jar!/:1.5.8.RELEASE]
at org.springframework.boot.SpringApplication.run(SpringApplication.java:303) [spring-boot-1.5.8.RELEASE.jar!/:1.5.8.RELEASE]
at org.springframework.boot.SpringApplication.run(SpringApplication.java:1118) [spring-boot-1.5.8.RELEASE.jar!/:1.5.8.RELEASE]
at org.springframework.boot.SpringApplication.run(SpringApplication.java:1107) [spring-boot-1.5.8.RELEASE.jar!/:1.5.8.RELEASE]
at io.syndesis.example.Application.main(Application.java:13) [classes!/:na]
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[na:1.8.0_151]
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[na:1.8.0_151]
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[na:1.8.0_151]
at java.lang.reflect.Method.invoke(Method.java:498) ~[na:1.8.0_151]
at org.springframework.boot.loader.MainMethodRunner.run(MainMethodRunner.java:48) [project-0.1-SNAPSHOT.jar:na]
at org.springframework.boot.loader.Launcher.launch(Launcher.java:87) [project-0.1-SNAPSHOT.jar:na]
at org.springframework.boot.loader.Launcher.launch(Launcher.java:50) [project-0.1-SNAPSHOT.jar:na]
at org.springframework.boot.loader.PropertiesLauncher.main(PropertiesLauncher.java:587) [project-0.1-SNAPSHOT.jar:na]
Caused by: org.apache.camel.FailedToCreateRouteException: Failed to create route -L4LxuReRL7JRsrvER8s: Route(-L4LxuReRL7JRsrvER8s)[[From[quartz2-1]] -> [Log[===$bo... because of CronExpression '5555' is invalid.
at org.apache.camel.impl.RouteService.warmUp(RouteService.java:147) ~[camel-core-2.20.1.jar!/:2.20.1]
at org.apache.camel.impl.DefaultCamelContext.doWarmUpRoutes(DefaultCamelContext.java:3945) ~[camel-core-2.20.1.jar!/:2.20.1]
at org.apache.camel.impl.DefaultCamelContext.safelyStartRouteServices(DefaultCamelContext.java:3852) ~[camel-core-2.20.1.jar!/:2.20.1]
at org.apache.camel.impl.DefaultCamelContext.doStartOrResumeRoutes(DefaultCamelContext.java:3638) ~[camel-core-2.20.1.jar!/:2.20.1]
at org.apache.camel.impl.DefaultCamelContext.doStartCamel(DefaultCamelContext.java:3490) ~[camel-core-2.20.1.jar!/:2.20.1]
at org.apache.camel.impl.DefaultCamelContext.access$000(DefaultCamelContext.java:208) ~[camel-core-2.20.1.jar!/:2.20.1]
at org.apache.camel.impl.DefaultCamelContext$2.call(DefaultCamelContext.java:3249) ~[camel-core-2.20.1.jar!/:2.20.1]
at org.apache.camel.impl.DefaultCamelContext$2.call(DefaultCamelContext.java:3245) ~[camel-core-2.20.1.jar!/:2.20.1]
at org.apache.camel.impl.DefaultCamelContext.doWithDefinedClassLoader(DefaultCamelContext.java:3268) ~[camel-core-2.20.1.jar!/:2.20.1]
at org.apache.camel.impl.DefaultCamelContext.doStart(DefaultCamelContext.java:3245) ~[camel-core-2.20.1.jar!/:2.20.1]
at org.apache.camel.support.ServiceSupport.start(ServiceSupport.java:61) ~[camel-core-2.20.1.jar!/:2.20.1]
at org.apache.camel.impl.DefaultCamelContext.start(DefaultCamelContext.java:3168) ~[camel-core-2.20.1.jar!/:2.20.1]
at org.apache.camel.spring.SpringCamelContext.start(SpringCamelContext.java:133) ~[camel-spring-2.20.1.jar!/:2.20.1]
... 24 common frames omitted
Caused by: java.lang.RuntimeException: CronExpression '5555' is invalid.
at org.quartz.CronScheduleBuilder.cronSchedule(CronScheduleBuilder.java:111) ~[quartz-2.3.0.jar!/:na]
at org.apache.camel.component.quartz2.QuartzEndpoint.createTrigger(QuartzEndpoint.java:494) ~[camel-quartz2-2.20.1.jar!/:2.20.1]
at org.apache.camel.component.quartz2.QuartzEndpoint.addJobInScheduler(QuartzEndpoint.java:384) ~[camel-quartz2-2.20.1.jar!/:2.20.1]
at org.apache.camel.component.quartz2.QuartzEndpoint.doStart(QuartzEndpoint.java:340) ~[camel-quartz2-2.20.1.jar!/:2.20.1]
at org.apache.camel.support.ServiceSupport.start(ServiceSupport.java:61) ~[camel-core-2.20.1.jar!/:2.20.1]
at org.apache.camel.util.ServiceHelper.startService(ServiceHelper.java:75) ~[camel-core-2.20.1.jar!/:2.20.1]
at io.syndesis.integration.component.proxy.ComponentProxyEndpoint.doStart(ComponentProxyEndpoint.java:149) ~[integration-component-proxy-1.2-SNAPSHOT.jar!/:1.2-SNAPSHOT]
at org.apache.camel.support.ServiceSupport.start(ServiceSupport.java:61) ~[camel-core-2.20.1.jar!/:2.20.1]
at org.apache.camel.util.ServiceHelper.startService(ServiceHelper.java:75) ~[camel-core-2.20.1.jar!/:2.20.1]
at org.apache.camel.impl.RouteService.doWarmUp(RouteService.java:157) ~[camel-core-2.20.1.jar!/:2.20.1]
at org.apache.camel.impl.RouteService.warmUp(RouteService.java:145) ~[camel-core-2.20.1.jar!/:2.20.1]
... 36 common frames omitted
Caused by: java.text.ParseException: Minute and Second values must be between 0 and 59
at org.quartz.CronExpression.addToSet(CronExpression.java:973) ~[quartz-2.3.0.jar!/:na]
at org.quartz.CronExpression.checkNext(CronExpression.java:724) ~[quartz-2.3.0.jar!/:na]
at org.quartz.CronExpression.storeExpressionVals(CronExpression.java:693) ~[quartz-2.3.0.jar!/:na]
at org.quartz.CronExpression.buildExpression(CronExpression.java:487) ~[quartz-2.3.0.jar!/:na]
at org.quartz.CronExpression.<init>(CronExpression.java:276) ~[quartz-2.3.0.jar!/:na]
at org.quartz.CronScheduleBuilder.cronSchedule(CronScheduleBuilder.java:107) ~[quartz-2.3.0.jar!/:na]
... 46 common frames omitted
@lburgazzoli do we have any help to specify any form of validation or protect us from errors like these?
What I've been using on the pom is
groupId com.oracle.ojdbc
artifactId jdbc-driver
version 1.0
scope system
systemPath ${project.basedir}/lib/ojdbc7.jar
then I run
mvn clean install -DsyndesisServerUrl=https://syndesis... (our sindesis server)
and finally
./mvnw -pl :syndesis-library-jdbc-driver clean package
This final step is what throws an error, and even though it generates a .jar and It gets accepted as a new extension it doesn't register the oracle thin driver
This issue is a request.
I want OptaPlanner (or Optimizer) on KieServer extention.
OptaPlanner's homepage
Optimize your problems using KIE Execution Server
https://www.optaplanner.org/blog/2017/08/18/OptimizeYourProblemsUsingKieServerPart.html
swagger.json's location (we need to install optaplanner on wildfly(or EAP)).
Swagger-UI
http://localhost:8080/kie-server/docs/
swagger.json
http://localhost:8080/kie-server/services/rest/server/swagger.json
currently we are pointing to master. anyone that wants to build the extensions, need to either modify pom.xml or pass a build time variable.
this will still be required, unless we provide helper scripts but we can improve the workflow just asking the url of a syndesis instance, and extract it on our own.
@lburgazzoli @oscerd wdyt?
[WARNING] The POM for io.syndesis.extension:extension-maven-plugin:jar:1.3.10 is invalid, transitive dependencies (if any) will not be available, enable debug logging for more details
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 0.369 s
[INFO] Finished at: 2020-03-25T16:08:23+01:00
[INFO] Final Memory: 14M/605M
[INFO] ------------------------------------------------------------------------
[ERROR] Plugin io.syndesis.extension:extension-maven-plugin:1.3.10 or one of its dependencies could not be resolved: Failed to read artifact descriptor for io.syndesis.extension:extension-maven-plugin:jar:1.3.10: 2 problems were encountered while building the effective model for io.syndesis.extension:extension-maven-plugin:2.0-SNAPSHOT
[ERROR] [ERROR] 'dependencies.dependency.version' for org.jboss.spec.javax.ws.rs:jboss-jaxrs-api_2.0_spec:jar is missing. @
[ERROR] [ERROR] 'dependencies.dependency.version' for org.glassfish:javax.el:jar is missing. @
[ERROR] -> [Help 1]
I followed the documentation and it led me to this repo.
When executing ./mvnw -pl :syndesis-library-jdbc-driver clean package
to build the extension, I faced the following error and I have been stuck for half a day looking for fix. Does anybody have a solution for this? I am new to maven. I have tried to install the depencedencies or build the project but it didn't work.
mvn --version
Apache Maven 3.8.3 (ff8e977a158738155dc465c6a97ffaf31982d739)
Maven home: C:\Program Files\apache-maven-3.8.3
Java version: 1.8.0_311, vendor: Oracle Corporation, runtime: C:\Program Files\Java\jdk1.8.0_311\jre
Default locale: en_US, platform encoding: Cp1252
OS name: "windows 10", version: "10.0", arch: "amd64", family: "windows"
[ERROR] Non-resolvable import POM: org.apache.camel:camel-spring-boot-dependencies:pom:2.23.2.fuse-790029 failed to transfer from https://repository.jboss.org/nexus/content/groups/ea/ during a previous attempt. This failure was cached in the local repository and resolution is not reattempted until the update interval of jboss-ea has elapsed or updates are forced. Original error: Could not transfer artifact org.apache.camel:camel-spring-boot-dependencies:pom:2.23.2.fuse-790029 from/to jboss-ea (https://repository.jboss.org/nexus/content/groups/ea/): transfer failed for https://repository.jboss.org/nexus/content/groups/ea/org/apache/camel/camel-spring-boot-dependencies/2.23.2.fuse-790029/camel-spring-boot-dependencies-2.23.2.fuse-790029.pom, status: 503 Service Unavailable @ io.syndesis.extension:extension-bom:1.12.0, C:\Users\jordan.yew.m2\repository\io\syndesis\extension\extension-bom\1.12.0\extension-bom-1.12.0.pom, line 134, column 19 -> [Help 2]
[ERROR] 'dependencies.dependency.version' for io.syndesis.extension:extension-annotation-processor:jar is missing. @ line 27, column 15
[ERROR] 'dependencies.dependency.version' for io.syndesis.extension:extension-api:jar is missing. @ line 33, column 15
[ERROR] 'dependencies.dependency.version' for org.apache.camel:camel-csv:jar is missing. @ line 38, column 15
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/ProjectBuildingException
[ERROR] [Help 2] http://cwiki.apache.org/confluence/display/MAVEN/UnresolvableMo
at the moment the extension should interpret and use the validate component from camel but seems like it is not working at all (it doesn't do any validation)
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.