Recent Discussions
Could not resolve dependencies for project com.snaplogic:demosnappack:jar:1: Failure to find org.apache.commons:commons-csv:jar:1.0-SNAPSHOT
[ERROR] Failed to execute goal on project demosnappack: Could not resolve dependencies for project com.snaplogic:demosnappack:jar:1: Failure to find org.apache.commons:commons-csv:jar:1.0-SNAPSHOT in http://maven.clouddev.snaplogic.com:8080/nexus/content/repositories/thirdparty/ was cached in the local repository, resolution will not be reattempted until the update interval of Snaplogic-ThirdPartyMaven-Repository has elapsed or updates are forced → [Help 1] org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal on project demosnappack: Could not resolve dependencies for project com.snaplogic:demosnappack:jar:1: Failure to find org.apache.commons:commons-csv:jar:1.0-SNAPSHOT in http://maven.clouddev.snaplogic.com:8080/nexus/content/repositories/thirdparty/ was cached in the local repository, resolution will not be reattempted until the update interval of Snaplogic-ThirdPartyMaven-Repository has elapsed or updates are forced at org.apache.maven.lifecycle.internal.LifecycleDependencyResolver.getDependencies (LifecycleDependencyResolver.java:249) at org.apache.maven.lifecycle.internal.LifecycleDependencyResolver.resolveProjectDependencies (LifecycleDependencyResolver.java:145) at org.apache.maven.lifecycle.internal.MojoExecutor.ensureDependenciesAreResolved (MojoExecutor.java:246) at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:200) at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:154) at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:146)nagrajps7 years agoNew Contributor24KViews0likes17CommentsUsing $.get on properties with forward slash
Hi, We have an array of the following structure: { "/position/fte": { "humanReadable": "100", "value": 100 }, "/position/field_2354914": { "humanReadable": "ALQhtani & Partners", "value": "257532069" }, "/position/field_2355402": { "humanReadable": "fhdfhjf", "value": "fhdfhjf" }, "/position/field_7424424": { "humanReadable": "Indirect", "value": "257905227" }, "/position/field_2355398": { "humanReadable": "Central Operations", "value": "257475809" }, "/position/field_7424427": { "humanReadable": "Support", "value": "257905230" }, "/position/job": { "humanReadable": "Information Technology \\ 2a", "value": 4807663 }, "/position/name": { "humanReadable": "P-1486729", "value": "P-1486729" }, "/position/field_2355401": { "humanReadable": "Birmingham - Snow Hill", "value": "257529525" }, "/position/department": { "humanReadable": "Legal Operations", "value": "257475756" }, "/position/field_2355404": { "humanReadable": "Hybrid Worker", "value": "257781843" }, "/position/field_7424426": { "humanReadable": "Support", "value": "258131652" }, "/position/site": { "humanReadable": "England", "value": 2477909 }, "/position/field_7424425": { "humanReadable": "Support", "value": "258046626" }, "/position/field_2355400": { "humanReadable": "Audit - Australia", "value": "257476016" }, "/position/field_2355399": { "humanReadable": "Business Services", "value": "257475770" } } Not all of the items in the array have the same properties, so I've been looking at using $.get to workaround this. However using something like: $.get("['/position/field_7424425'].value") always returns null. I can use $.hasPath("['/position/field_7424425'].value") to check if it exists and it correctly returns true/false so can use a ternary operator but would prefer to use .get if possible. Can anyone advise?Solvednickhumble2 years agoNew Contributor II16KViews0likes4CommentsCustom Snap Pack versioning is broken?
I have a custom snappack (version = 1, sl_build = 42) deployed in my organization’s shared folder that is in used by multiple projects. I have developed a completely rewritten version of the snappack (version = 2, sl_build = 1) that I have deployed in my personal project (projects/Robert Patrick). I created a brand new pipeline (also in my personal project space) after deploying the new version of the snappack. Unfortunately, the pipeline is using the version 1 snap instead of the version 2 snap. What am I doing wrong? How do I build a pipeline that uses the version 2 snap?rpatrick005 years agoContributor8.1KViews0likes22CommentsCustom Snap- Get response in json format
I am developing a custom SNAP that makes HTTP request and gets JSON response in return. The response is array of objects. In order to right it to document , currently it only shows up if I convert the response to string in following manner: Map<String, Object> data = new LinkedHashMap<>(); data.put(“Response”, response); outputViews.write(documentUtility.newDocumentFor(document, data)); But I’d like to instead preview the response in standard json format in outputview. Any idea how this can be achieved ? Any help would be appreciated . Thank you!SolvedDharaSP5 years agoNew Contributor7.9KViews0likes21CommentsMaven archetype build errors
It seems that the 4.22 archetype is generating code that is failing its own generated unit tests… ☹️ d:\src\snaplogic-poc\snap-dev\odyssey-api-snappack>mvn clean verify [INFO] Scanning for projects... [INFO] [INFO] -----< com.tylertech.courtsandjustice.snaps:odyssey-api-snappack >------ [INFO] Building odyssey-api-snappack 1-0001 [INFO] --------------------------------[ jar ]--------------------------------- Downloading from github_snapv4: https://maven.pkg.github.com/SnapLogic/Snap_v4/net/minidev/json-smart/maven-metadata.xml Downloading from github_tectonic: https://maven.pkg.github.com/SnapLogic/Tectonic/net/minidev/json-smart/maven-metadata.xml [WARNING] Could not transfer metadata net.minidev:json-smart/maven-metadata.xml from/to github_tectonic (https://maven.pkg.github.com/SnapLogic/Tectonic): Authentication failed for https://maven.pkg.github.com/SnapLogic/Tectonic/net/minidev/json-smart/maven-metadata.xml 401 Unauthorized [WARNING] Could not transfer metadata net.minidev:json-smart/maven-metadata.xml from/to github_snapv4 (https://maven.pkg.github.com/SnapLogic/Snap_v4): Authentication failed for https://maven.pkg.github.com/SnapLogic/Snap_v4/net/minidev/json-smart/maven-metadata.xml 401 Unauthorized [INFO] [INFO] --- maven-clean-plugin:2.5:clean (default-clean) @ odyssey-api-snappack --- [INFO] Deleting d:\src\snaplogic-poc\snap-dev\odyssey-api-snappack\target [INFO] [INFO] --- properties-maven-plugin:1.0.0:read-project-properties (default) @ odyssey-api-snappack --- [INFO] [INFO] --- maven-antrun-plugin:1.8:run (generate files) @ odyssey-api-snappack --- [INFO] Executing tasks main: [INFO] Executed tasks [INFO] [INFO] --- maven-resources-plugin:2.6:resources (default-resources) @ odyssey-api-snappack --- [INFO] Using 'UTF-8' encoding to copy filtered resources. [INFO] Copying 0 resource [INFO] [INFO] --- maven-compiler-plugin:3.5.1:compile (default-compile) @ odyssey-api-snappack --- [INFO] Changes detected - recompiling the module! [INFO] Compiling 12 source files to d:\src\snaplogic-poc\snap-dev\odyssey-api-snappack\target\classes [INFO] [INFO] --- snappack-installer:4.22.8136:generate-schema (default) @ odyssey-api-snappack --- [INFO] Found lint com.snaplogic.expression.classes.Date.DATE_PARSE_TS_NON_UTC; ordinal=0 [INFO] Initializing e-lang version: {initTime=2020-08-21T20:49:41.546Z, langVersion=4.0-SNAPSHOT} [INFO] Found lint com.snaplogic.expression.methods.object.HasOwnProperty.INVALID_VALUE; ordinal=1 [INFO] Found lint com.snaplogic.expression.methods.object.HasOwnProperty.NULL_VALUE; ordinal=2 [INFO] Found lint com.snaplogic.expression.methods.date.DateMethod.INVALID_TZ; ordinal=3 [INFO] Found lint com.snaplogic.expression.methods.date.DateMethod.UNKNOWN_OPTION; ordinal=4 [INFO] Found lint com.snaplogic.expression.methods.date.DateMethod.JSON_FORMAT_ARG; ordinal=5 [INFO] Found lint com.snaplogic.jsonpath.ReadVisitor.REPORT_THROW_ON_BRANCH; ordinal=6 [INFO] Successfully compiled schema: account/com-snaplogic-account-template_2 log4j:WARN No appenders could be found for logger (org.apache.commons.beanutils.converters.BooleanConverter). log4j:WARN Please initialize the log4j system properly. log4j:WARN See http://logging.apache.org/log4j/1.2/faq.html#noconfig for more info. [INFO] Found lint com.snaplogic.jsonpath.WriteVisitor.SHARED_WRITE; ordinal=7 [INFO] Successfully compiled schema: com-snaplogic-snap-template_2 [INFO] [INFO] --- maven-resources-plugin:2.6:testResources (default-testResources) @ odyssey-api-snappack --- [INFO] Using 'UTF-8' encoding to copy filtered resources. [INFO] Copying 29 resources [INFO] [INFO] --- maven-compiler-plugin:3.5.1:testCompile (default-testCompile) @ odyssey-api-snappack --- [INFO] Changes detected - recompiling the module! [INFO] Compiling 10 source files to d:\src\snaplogic-poc\snap-dev\odyssey-api-snappack\target\test-classes [INFO] [INFO] --- maven-surefire-plugin:2.12.4:test (default-test) @ odyssey-api-snappack --- [INFO] Surefire report directory: d:\src\snaplogic-poc\snap-dev\odyssey-api-snappack\target\surefire-reports ------------------------------------------------------- T E S T S ------------------------------------------------------- Running com.tylertech.courtsandjustice.snaps.CharacterCounterTest [main] INFO com.snaplogic.api.Notifications - Found lint com.snaplogic.expression.classes.Date.DATE_PARSE_TS_NON_UTC; ordinal=0 [main] INFO com.snaplogic.expression.classes.SnapLogicExpressionClass - Initializing e-lang version: {initTime=2020-08-21T20:49:44.997Z, langVersion=4.0-SNAPSHOT} [main] INFO com.snaplogic.api.Notifications - Found lint com.snaplogic.expression.methods.object.HasOwnProperty.INVALID_VALUE; ordinal=1 [main] INFO com.snaplogic.api.Notifications - Found lint com.snaplogic.expression.methods.object.HasOwnProperty.NULL_VALUE; ordinal=2 [main] INFO com.snaplogic.api.Notifications - Found lint com.snaplogic.expression.methods.date.DateMethod.INVALID_TZ; ordinal=3 [main] INFO com.snaplogic.api.Notifications - Found lint com.snaplogic.expression.methods.date.DateMethod.UNKNOWN_OPTION; ordinal=4 [main] INFO com.snaplogic.api.Notifications - Found lint com.snaplogic.expression.methods.date.DateMethod.JSON_FORMAT_ARG; ordinal=5 [main] INFO com.snaplogic.api.Notifications - Found lint com.snaplogic.jsonpath.ReadVisitor.REPORT_THROW_ON_BRANCH; ordinal=6 [main] INFO com.snaplogic.schema.validator2.ValidatorRegistry - Successfully compiled schema: com-snaplogic-snap-template_2 [main] INFO com.snaplogic.api.Notifications - Found lint com.snaplogic.jsonpath.WriteVisitor.SHARED_WRITE; ordinal=7 [main] INFO com.snaplogic.api.Notifications - Found lint com.snaplogic.document.lineage.SimpleLineageEntry.COPY_ACKED; ordinal=8 [main] INFO com.snaplogic.api.Notifications - Found lint com.snaplogic.document.lineage.SimpleLineageEntry.ACK_COPY; ordinal=9 Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 2.308 sec Running com.tylertech.courtsandjustice.snaps.CurrencyConverterTest Tests run: 4, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.148 sec Running com.tylertech.courtsandjustice.snaps.DocConsumerTest Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.023 sec Running com.tylertech.courtsandjustice.snaps.DocGeneratorTest [main] ERROR com.snaplogic.snap.api.ErrorViewsImpl - Error view with behavior continue received a new type of error: reason=Value of count property cannot be negative com.snaplogic.snap.api.SnapDataException: Invalid count value -2 at com.tylertech.courtsandjustice.snaps.DocGenerator.execute(DocGenerator.java:75) at com.snaplogic.snap.test.harness.TestSetupImpl.tryExecution(TestSetupImpl.java:316) at com.snaplogic.snap.test.harness.SnapExecutor.executeTest(SnapExecutor.java:843) at com.snaplogic.snap.test.harness.SnapExecutor.evaluate(SnapExecutor.java:640) at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:325) at com.snaplogic.snap.test.harness.SnapTestRunner$TestMethodRunner.runChild(SnapTestRunner.java:206) at com.snaplogic.snap.test.harness.SnapTestRunner$TestMethodRunner.runChild(SnapTestRunner.java:110) at org.junit.runners.ParentRunner$3.run(ParentRunner.java:290) at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:71) at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:288) at org.junit.runners.ParentRunner.access$000(ParentRunner.java:58) at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:268) at org.junit.runners.ParentRunner.run(ParentRunner.java:363) at org.junit.runners.Suite.runChild(Suite.java:128) at org.junit.runners.Suite.runChild(Suite.java:27) at org.junit.runners.ParentRunner$3.run(ParentRunner.java:290) at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:71) at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:288) at org.junit.runners.ParentRunner.access$000(ParentRunner.java:58) at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:268) at org.junit.runners.ParentRunner.run(ParentRunner.java:363) at org.apache.maven.surefire.junit4.JUnit4Provider.execute(JUnit4Provider.java:252) at org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4Provider.java:141) at org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java:112) 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.apache.maven.surefire.util.ReflectionUtils.invokeMethodWithArray(ReflectionUtils.java:189) at org.apache.maven.surefire.booter.ProviderFactory$ProviderProxy.invoke(ProviderFactory.java:165) at org.apache.maven.surefire.booter.ProviderFactory.invokeProvider(ProviderFactory.java:85) at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:115) at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:75) Actual output file differs from expected, update by running: $ rsync -avz C:\Users\ROBERT~1.PAT\AppData\Local\Temp\data\doc_generator\expected\docGenerator_WithExpectedErrorPath_OutputsErrorDocumentCorrectly-err.json d:\src\snaplogic-poc\snap-dev\odyssey-api-snappack\src\test\resources\data\doc_generator\expected/ Tests run: 4, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 0.115 sec <<< FAILURE! docGenerator_WithExpectedErrorPath_OutputsErrorDocumentCorrectly(com.tylertech.courtsandjustice.snaps.DocGeneratorTest) Time elapsed: 0.028 sec <<< FAILURE! org.junit.ComparisonFailure: expected:<…valid count value -2" } ] }> but was:<…valid count value -2[\r]" } ] }> at com.snaplogic.snap.test.harness.SnapExecutor.evaluate(SnapExecutor.java:716) at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:325) at com.snaplogic.snap.test.harness.SnapTestRunner$TestMethodRunner.runChild(SnapTestRunner.java:206) at com.snaplogic.snap.test.harness.SnapTestRunner$TestMethodRunner.runChild(SnapTestRunner.java:110) at org.junit.runners.ParentRunner$3.run(ParentRunner.java:290) at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:71) at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:288) at org.junit.runners.ParentRunner.access$000(ParentRunner.java:58) at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:268) at org.junit.runners.ParentRunner.run(ParentRunner.java:363) at org.junit.runners.Suite.runChild(Suite.java:128) at org.junit.runners.Suite.runChild(Suite.java:27) at org.junit.runners.ParentRunner$3.run(ParentRunner.java:290) at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:71) at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:288) at org.junit.runners.ParentRunner.access$000(ParentRunner.java:58) at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:268) at org.junit.runners.ParentRunner.run(ParentRunner.java:363) at org.apache.maven.surefire.junit4.JUnit4Provider.execute(JUnit4Provider.java:252) at org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4Provider.java:141) at org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java:112) 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.apache.maven.surefire.util.ReflectionUtils.invokeMethodWithArray(ReflectionUtils.java:189) at org.apache.maven.surefire.booter.ProviderFactory$ProviderProxy.invoke(ProviderFactory.java:165) at org.apache.maven.surefire.booter.ProviderFactory.invokeProvider(ProviderFactory.java:85) at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:115) at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:75) Running com.tylertech.courtsandjustice.snaps.PropertyTypesTest Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.032 sec Running com.tylertech.courtsandjustice.snaps.SchemaExampleTest [main] INFO com.snaplogic.snap.test.harness.SnapExecutor$MutableExecutionUtil - Unhandled SnapDataException: SchemaExample: Data map does not contain key:colC [main] ERROR com.snaplogic.snap.api.ErrorViewsImpl - Error view with behavior continue received a new type of error: reason=null com.snaplogic.snap.api.SnapDataException: Data map does not contain key:colC at com.tylertech.courtsandjustice.snaps.SchemaExample.validate(SchemaExample.java:107) at com.tylertech.courtsandjustice.snaps.SchemaExample.process(SchemaExample.java:93) at com.snaplogic.snap.api.ExecutionUtil.process(ExecutionUtil.java:106) at com.snaplogic.snap.test.harness.SnapExecutor$MutableExecutionUtil.process(SnapExecutor.java:1160) at com.snaplogic.snap.api.ExecutionUtil.executeForDocument(ExecutionUtil.java:118) at com.snaplogic.snap.api.ExecutionUtil.execute(ExecutionUtil.java:81) at com.snaplogic.snap.api.SimpleSnap.execute(SimpleSnap.java:70) at com.snaplogic.snap.test.harness.TestSetupImpl.tryExecution(TestSetupImpl.java:316) at com.snaplogic.snap.test.harness.SnapExecutor.executeTest(SnapExecutor.java:843) at com.snaplogic.snap.test.harness.SnapExecutor.evaluate(SnapExecutor.java:640) at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:325) at com.snaplogic.snap.test.harness.SnapTestRunner$TestMethodRunner.runChild(SnapTestRunner.java:206) at com.snaplogic.snap.test.harness.SnapTestRunner$TestMethodRunner.runChild(SnapTestRunner.java:110) at org.junit.runners.ParentRunner$3.run(ParentRunner.java:290) at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:71) at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:288) at org.junit.runners.ParentRunner.access$000(ParentRunner.java:58) at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:268) at org.junit.runners.ParentRunner.run(ParentRunner.java:363) at org.junit.runners.Suite.runChild(Suite.java:128) at org.junit.runners.Suite.runChild(Suite.java:27) at org.junit.runners.ParentRunner$3.run(ParentRunner.java:290) at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:71) at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:288) at org.junit.runners.ParentRunner.access$000(ParentRunner.java:58) at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:268) at org.junit.runners.ParentRunner.run(ParentRunner.java:363) at org.apache.maven.surefire.junit4.JUnit4Provider.execute(JUnit4Provider.java:252) at org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4Provider.java:141) at org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java:112) 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.apache.maven.surefire.util.ReflectionUtils.invokeMethodWithArray(ReflectionUtils.java:189) at org.apache.maven.surefire.booter.ProviderFactory$ProviderProxy.invoke(ProviderFactory.java:165) at org.apache.maven.surefire.booter.ProviderFactory.invokeProvider(ProviderFactory.java:85) at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:115) at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:75) Actual output file differs from expected, update by running: $ rsync -avz C:\Users\ROBERT~1.PAT\AppData\Local\Temp\data\schema_example\expected\schemaExample_WithInvalidData_OutputsErrorDocumentOnly-err.json d:\src\snaplogic-poc\snap-dev\odyssey-api-snappack\src\test\resources\data\schema_example\expected/ Tests run: 2, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 0.054 sec <<< FAILURE! schemaExample_WithInvalidData_OutputsErrorDocumentOnly(com.tylertech.courtsandjustice.snaps.SchemaExampleTest) Time elapsed: 0.022 sec <<< FAILURE! org.junit.ComparisonFailure: expected:<…not contain key:colC" } ] }> but was:<…not contain key:colC[\r]" } ] }> at com.snaplogic.snap.test.harness.SnapExecutor.evaluate(SnapExecutor.java:716) at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:325) at com.snaplogic.snap.test.harness.SnapTestRunner$TestMethodRunner.runChild(SnapTestRunner.java:206) at com.snaplogic.snap.test.harness.SnapTestRunner$TestMethodRunner.runChild(SnapTestRunner.java:110) at org.junit.runners.ParentRunner$3.run(ParentRunner.java:290) at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:71) at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:288) at org.junit.runners.ParentRunner.access$000(ParentRunner.java:58) at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:268) at org.junit.runners.ParentRunner.run(ParentRunner.java:363) at org.junit.runners.Suite.runChild(Suite.java:128) at org.junit.runners.Suite.runChild(Suite.java:27) at org.junit.runners.ParentRunner$3.run(ParentRunner.java:290) at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:71) at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:288) at org.junit.runners.ParentRunner.access$000(ParentRunner.java:58) at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:268) at org.junit.runners.ParentRunner.run(ParentRunner.java:363) at org.apache.maven.surefire.junit4.JUnit4Provider.execute(JUnit4Provider.java:252) at org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4Provider.java:141) at org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java:112) 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.apache.maven.surefire.util.ReflectionUtils.invokeMethodWithArray(ReflectionUtils.java:189) at org.apache.maven.surefire.booter.ProviderFactory$ProviderProxy.invoke(ProviderFactory.java:165) at org.apache.maven.surefire.booter.ProviderFactory.invokeProvider(ProviderFactory.java:85) at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:115) at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:75) Running com.tylertech.courtsandjustice.snaps.SingleDocGeneratorTest Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.001 sec Running com.tylertech.courtsandjustice.snaps.SnapWithAccountTest [main] INFO com.snaplogic.schema.validator2.ValidatorRegistry - Successfully compiled schema: account/com-snaplogic-account-template_2 Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.125 sec Running com.tylertech.courtsandjustice.snaps.SuggestTest Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.037 sec Running com.tylertech.courtsandjustice.snaps.TwoInputsTwoOutputsTest Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.021 sec Results : Failed tests: docGenerator_WithExpectedErrorPath_OutputsErrorDocumentCorrectly(com.tylertech.courtsandjustice.snaps.DocGeneratorTest): expected:<...valid count value -2[]"(..) schemaExample_WithInvalidData_OutputsErrorDocumentOnly(com.tylertech.courtsandjustice.snaps.SchemaExampleTest): expected:<...not contain key:colC[]"(..) Tests run: 18, Failures: 2, Errors: 0, Skipped: 0 [INFO] ------------------------------------------------------------------------ [INFO] BUILD FAILURE [INFO] ------------------------------------------------------------------------ [INFO] Total time: 9.460 s [INFO] Finished at: 2020-08-21T15:49:46-05:00 [INFO] ------------------------------------------------------------------------ [ERROR] Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.12.4:test (default-test) on project odyssey-api-snappack: There are test failures. [ERROR] [ERROR] Please refer to d:\src\snaplogic-poc\snap-dev\odyssey-api-snappack\target\surefire-reports for the individual test results. [ERROR] -> [Help 1] [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/MojoFailureException d:\src\snaplogic-poc\snap-dev\odyssey-api-snappack>rpatrick005 years agoContributor7.9KViews0likes11CommentsA required class was missing while executing com.snaplogic.tools:snappack-installer:4.9.0.M1:generate-schema: javax/xml/soap/SOAPException
Pulled a fresh copy from mvn org.apache.maven.plugins:maven-archetype-plugin:2.4:generate -DarchetypeCatalog=http://maven.clouddev.snaplogic.com:8080/nexus/content/repositories/master/ I then resolved the issue discussed in https://community.snaplogic.com/t/could-not-resolve-dependencies-for-project-com-snaplogicjar-failure-to-find-org-apache-commonsjar-1-0-snapshot/4068 Then ran C:\workspace\snaplogic\DemoSnapPack>mvn clean install [INFO] Scanning for projects… [WARNING] [WARNING] Some problems were encountered while building the effective model for com.snaplogic:demosnappack:jar:1-0001 [WARNING] ‘version’ contains an expression but should be a constant. @ com.snaplogic:demosnappack:1-${sl_build}, C:\workspace\snaplogic\DemoSnapPack\pom.xml, line 8, column 14 [WARNING] [WARNING] It is highly recommended to fix these problems because they threaten the stability of your build. [WARNING] [WARNING] For this reason, future Maven versions might no longer support building such malformed projects. [WARNING] [INFO] [INFO] ---------------------< com.snaplogic:demosnappack >--------------------- [INFO] Building demosnappack 1-0001 [INFO] --------------------------------[ jar ]--------------------------------- [INFO] [INFO] — maven-clean-plugin:2.5:clean (default-clean) @ demosnappack — [INFO] Deleting C:\workspace\snaplogic\DemoSnapPack\target [INFO] [INFO] — properties-maven-plugin:1.0.0:read-project-properties (default) @ demosnappack — [INFO] [INFO] — maven-antrun-plugin:1.8:run (generate files) @ demosnappack — [INFO] Executing tasks main: [INFO] Executed tasks [INFO] [INFO] — maven-resources-plugin:2.6:resources (default-resources) @ demosnappack — [INFO] Using ‘UTF-8’ encoding to copy filtered resources. [INFO] skip non existing resourceDirectory C:\workspace\snaplogic\DemoSnapPack\src\main\resources [INFO] [INFO] — maven-compiler-plugin:3.5.1:compile (default-compile) @ demosnappack — [INFO] Changes detected - recompiling the module! [INFO] Compiling 12 source files to C:\workspace\snaplogic\DemoSnapPack\target\classes [INFO] /C:/workspace/snaplogic/DemoSnapPack/src/main/java/com/snaplogic/snaps/TwoInputsTwoOutputs.java: Some input files use unchecked or unsafe operations. [INFO] /C:/workspace/snaplogic/DemoSnapPack/src/main/java/com/snaplogic/snaps/TwoInputsTwoOutputs.java: Recompile with -Xlint:unchecked for details. [INFO] [INFO] — snappack-installer:4.9.0.M1:generate-schema (default) @ demosnappack — [INFO] ------------------------------------------------------------------------ [INFO] BUILD FAILURE [INFO] ------------------------------------------------------------------------ [INFO] Total time: 19.800 s [INFO] Finished at: 2018-11-29T10:31:47-06:00 [INFO] ------------------------------------------------------------------------ [ERROR] Failed to execute goal com.snaplogic.tools:snappack-installer:4.9.0.M1:generate-schema (default) on project demosnappack: Execution default of goal com.snaplogic.tools:snappack-installer:4.9.0.M1:generate-schema failed: A required class was missing while executing com.snaplogic.tools:snappack-installer:4.9.0.M1:generate-schema: javax/xml/soap/SOAPException [ERROR] ----------------------------------------------------- [ERROR] realm = plugin>com.snaplogic.tools:snappack-installer:4.9.0.M1 [ERROR] strategy = org.codehaus.plexus.classworlds.strategy.SelfFirstStrategy [ERROR] urls[0] = file:/C:/Users/bfroemli/.m2/repository/com/snaplogic/tools/snappack-installer/4.9.0.M1/snappack-installer-4.9.0.M1.jar [ERROR] urls[1] = file:/C:/Users/bfroemli/.m2/repository/org/easymock/easymock/3.4/easymock-3.4.jar [ERROR] urls[2] = file:/C:/Users/bfroemli/.m2/repository/org/objenesis/objenesis/2.2/objenesis-2.2.jar [ERROR] urls[3] = file:/C:/Users/bfroemli/.m2/repository/org/codehaus/plexus/plexus-component-annotations/1.5.5/plexus-component-annotations-1.5.5.jar [ERROR] urls[4] = file:/C:/Users/bfroemli/.m2/repository/org/sonatype/sisu/sisu-inject-bean/2.1.1/sisu-inject-bean-2.1.1.jar [ERROR] urls[5] = file:/C:/Users/bfroemli/.m2/repository/org/sonatype/sisu/sisu-guice/2.9.4/sisu-guice-2.9.4-no_aop.jar [ERROR] urls[6] = file:/C:/Users/bfroemli/.m2/repository/backport-util-concurrent/backport-util-concurrent/3.1/backport-util-concurrent-3.1.jar [ERROR] urls[7] = file:/C:/Users/bfroemli/.m2/repository/org/codehaus/plexus/plexus-interpolation/1.11/plexus-interpolation-1.11.jar [ERROR] urls[8] = file:/C:/Users/bfroemli/.m2/repository/org/codehaus/plexus/plexus-utils/1.5.15/plexus-utils-1.5.15.jar [ERROR] urls[9] = file:/C:/Users/bfroemli/.m2/repository/junit/junit/3.8.1/junit-3.8.1.jar [ERROR] urls[10] = file:/C:/Users/bfroemli/.m2/repository/com/snaplogic/jutils/4.0/jutils-4.0.jar [ERROR] urls[11] = file:/C:/Users/bfroemli/.m2/repository/org/apache/httpcomponents/httpclient/4.3.6/httpclient-4.3.6.jar [ERROR] urls[12] = file:/C:/Users/bfroemli/.m2/repository/commons-logging/commons-logging/1.1.3/commons-logging-1.1.3.jar … [ERROR] urls[230] = file:/C:/Users/bfroemli/.m2/repository/com/sun/xml/bind/jaxb-impl/2.1.10/jaxb-impl-2.1.10.jar [ERROR] urls[231] = file:/C:/Users/bfroemli/.m2/repository/javax/xml/bind/jaxb-api/2.1/jaxb-api-2.1.jar [ERROR] urls[232] = file:/C:/Users/bfroemli/.m2/repository/org/ow2/easywsdl/easywsdl-ext-wsdl4complexwsdl/2.3/easywsdl-ext-wsdl4complexwsdl-2.3.jar [ERROR] urls[233] = file:/C:/Users/bfroemli/.m2/repository/org/apache/commons/commons-lang3/3.4/commons-lang3-3.4.jar [ERROR] urls[234] = file:/C:/Users/bfroemli/.m2/repository/com/google/guava/guava/19.0/guava-19.0.jar [ERROR] urls[235] = file:/C:/Users/bfroemli/.m2/repository/org/slf4j/slf4j-nop/1.7.5/slf4j-nop-1.7.5.jar [ERROR] urls[236] = file:/C:/Users/bfroemli/.m2/repository/com/sun/xsom/xsom/20100725/xsom-20100725.jar [ERROR] urls[237] = file:/C:/Users/bfroemli/.m2/repository/relaxngDatatype/relaxngDatatype/20020414/relaxngDatatype-20020414.jar [ERROR] urls[238] = file:/C:/Users/bfroemli/.m2/repository/com/sun/xml/relaxngDatatype/1.0/relaxngDatatype-1.0.jar [ERROR] Number of foreign imports: 1 [ERROR] import: Entry[import from realm ClassRealm[maven.api, parent: null]] [ERROR] [ERROR] ----------------------------------------------------- [ERROR] : javax.xml.soap.SOAPException [ERROR] → [Help 1] [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] PluginContainerException - Apache Maven - Apache Software Foundation Any help I can get to resolve this issue would be appreciated.Solvedbfroemling7 years agoNew Contributor II7.4KViews0likes6CommentsNot able to select maven archetype
Hi Team, when i am creating project for developing custom snap, i am not able to select maven archetype. even "http://maven.clouddev.snaplogic.com:8080/nexus/content/repositories/master/" this i am not able access i am getting "This site can't reached type of error". could you please help me in that creating project for custom snap.Solvedmaheswara2 years agoNew Contributor II6.8KViews0likes10CommentsSnapLogic SDK - Accessing pipeline properties and parameters
Hi, I am writing a custom snap in which I would like to get the pipeline name, runtime id and few predefined path parameter. I do not want to capture these as snap level properties for user to configure. Could you please let me know how to evaluate a expression like “pipe.label” without defining them as pipeline properties? I stumbled across ExpressionUtil.compile(“pipe.uuid”); code which returns SnapLogicExpression object. But nor sure how to evaluate the expression, which seems to require additional paramters like ScopeStack and DataValueHanler. Could you please help if there is easy way to access pipeline properties or execute a expression in custom snap? Regars, SripathiSolvedsg_sripathi6 years agoNew Contributor III6.7KViews0likes4CommentsHow to add textarea type input to a custom snap?
Hi, I am building a custom snap where some of the fields need to be a ‘textarea’ type. I’ve been searching through the documentation but didn’t find anything related to this. Is there a way to make the field a text area ? I am looking for something like the private/public keys in the account of a PGP Encrypt snap where the inputs are text area types. On the image below, the input types are different from the ‘Key pasphrase’ which is of an ‘input’ type but the private and public keys are of ‘text area’ type. @ptaylor Any suggestions please ?j_angelevski3 years agoContributor III6.5KViews2likes13CommentsLearn to build your first custom Snap with the Snap Development Documentation
The Snap Development Documentation website outlines how to build custom Snaps for the SnapLogic Elastic Integration Platform. It provides an in-depth guides to setting up a development Snaplex and developing and deploying your own Snaps, with explanations, screenshots, and code samples side-by-side, including: Creating a Snap Reading and writing documents and binary data Accepting and validating user input Expression-enabled Snap properites Suggesting property values Understanding Input/Output View Schemas Exceptions and Error Views Authenticating with Accounts Deploying Snap Packs Testing Snaps Check out http://developer.snaplogic.com and start building your first Snap today! SnapLogic Snap Development Documentation A guide for developers creating Snaps for the SnapLogic Elastic Integration Platform.robin9 years agoFormer Employee6.1KViews1like1Comment