Soap Execute Snap defect - File defect against snap

Hello,

I am trying to run a SOAP call which calls Oracle AR. The pipeline consists of two snaps, a mapper which passes an account number to the soap execute snap and the SOAP execute snap uses that account number to fire off a find customer account call in Oracle AR.
I executed the SOAP call by itself and it runs. When I attach it to a mapper for input, it fails giving the error below:

Failure: An error occurred while retrieving view schema, Reason: com.snaplogic.document.schema.model.ArrayItemsNode cannot be cast to com.snaplogic.document.schema.model.ObjectSchemaNode, Resolution: Please file a defect against the snap

Can someone help me fix this issue? Thanks!

-Amol

Can you please copy/paste the stack trace from the Pipeline Execution Statistics?

Could you help me locate the stack trace? I get the error when I validate the pipeline. When I execute it, it goes through.

Click the square button with 0101 in it next to the Run button. Scroll down to the failed snap. Click “Show details…“.

Reason:

com.snaplogic.document.schema.model.ArrayItemsNode cannot be cast to com.snaplogic.document.schema.model.ObjectSchemaNode

Hide Details…

SnapCompletionService
`com.snaplogic.api.ExecutionException: An error occurred while retrieving view schema
at com.snaplogic.snap.api.soap.SoapEditorSuggestionsProviderImpl.getViewSchema(SoapEditorSuggestionsProviderImpl.java:485)
at com.snaplogic.snap.api.soap.SoapEditorSuggestionsProviderImpl.suggestSchemaFor(SoapEditorSuggestionsProviderImpl.java:638)
at com.snaplogic.snap.api.impl.PropertyValuesImpl$1.getSchema(PropertyValuesImpl.java:602)
at com.snaplogic.snaps.soap.SoapExecute.defineInputSchema(SoapExecute.java:354)
at com.snaplogic.cc.util.SnapUtil.defineSchema(SnapUtil.java:280)
at com.snaplogic.cc.snap.common.SnapRunnableImpl.configureSnap(SnapRunnableImpl.java:722)
at com.snaplogic.cc.snap.common.SnapRunnableImpl.executeForSuggest(SnapRunnableImpl.java:608)
at com.snaplogic.cc.snap.common.SnapRunnableImpl.doRun(SnapRunnableImpl.java:841)
at com.snaplogic.cc.snap.common.SnapRunnableImpl.access$000(SnapRunnableImpl.java:116)
at com.snaplogic.cc.snap.common.SnapRunnableImpl$1.run(SnapRunnableImpl.java:381)
at com.snaplogic.cc.snap.common.SnapRunnableImpl$1.run(SnapRunnableImpl.java:377)
at java.security.AccessController.doPrivileged(Native Method)
at javax.security.auth.Subject.doAs(Unknown Source)
at org.apache.hadoop.security.UserGroupInformation.doAs(UserGroupInformation.java:1657)
at com.snaplogic.cc.snap.common.SnapRunnableImpl.call(SnapRunnableImpl.java:376)
at com.snaplogic.cc.snap.common.SnapRunnableImpl.call(SnapRunnableImpl.java:116)
at java.util.concurrent.FutureTask.run(Unknown Source)
at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source)
at java.util.concurrent.FutureTask.run(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
Caused by: java.lang.ClassCastException: com.snaplogic.document.schema.model.ArrayItemsNode cannot be cast to com.snaplogic.document.schema.model.ObjectSchemaNode
at com.snaplogic.document.schema.model.ArrayItemsNode.findChild(ArrayItemsNode.java:107)
at com.snaplogic.document.schema.model.ArrayItemsNode.findChild(ArrayItemsNode.java:104)
at com.snaplogic.document.schema.model.ArrayItemsNode.findChild(ArrayItemsNode.java:90)
at com.snaplogic.document.schema.model.ObjectSchemaNode.getChildFromArray(ObjectSchemaNode.java:475)
at com.snaplogic.document.schema.model.ObjectSchemaNode.getChild(ObjectSchemaNode.java:445)
at com.snaplogic.snap.api.transform.schema.JsonSchemaTransformer.addLeafSchema(JsonSchemaTransformer.java:122)
at com.snaplogic.snap.api.transform.schema.JsonSchemaTransformer.transform(JsonSchemaTransformer.java:83)
at com.snaplogic.snap.api.soap.SoapEditorSuggestionsProviderImpl.createSchemaFor(SoapEditorSuggestionsProviderImpl.java:912)
at com.snaplogic.snap.api.soap.SoapEditorSuggestionsProviderImpl$3.call(SoapEditorSuggestionsProviderImpl.java:480)
at com.snaplogic.snap.api.soap.SoapEditorSuggestionsProviderImpl$3.call(SoapEditorSuggestionsProviderImpl.java:477)
at com.google.common.cache.LocalCache$LocalManualCache$1.load(LocalCache.java:4793)
at com.google.common.cache.LocalCache$LoadingValueReference.loadFuture(LocalCache.java:3542)
at com.google.common.cache.LocalCache$Segment.loadSync(LocalCache.java:2323)
at com.google.common.cache.LocalCache$Segment.lockedGetOrLoad(LocalCache.java:2286)
at com.google.common.cache.LocalCache$Segment.get(LocalCache.java:2201)
at com.google.common.cache.LocalCache.get(LocalCache.java:3953)
at com.google.common.cache.LocalCache$LocalManualCache.get(LocalCache.java:4790)
at com.snaplogic.snap.api.soap.SoapEditorSuggestionsProviderImpl.getViewSchema(SoapEditorSuggestionsProviderImpl.java:476)
… 21 more

Error Fingerprint[0] = efp:com.snaplogic.snap.api.soap.L5k2IOsV
Error Fingerprint[1] = efp:com.snaplogic.document.schema.model.Drz_WWj4`

Thanks. Can you please share the SOAP Execute settings? WSDL URL, etc.

You’ve run into a bug in our schema generation code. I’m creating a bug ticket for this issue.

Thanks for your quick response. Appreciate it. Can you provide an estimate as to by when will this be resolved?

I’m sorry that I can’t provide an estimate, but for the record, the ticket number is PLAT-4698.