Skip to Main Content

Cloud Platform

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

JavaException when calling Instant App from a bot

3666220Mar 14 2018 — edited May 25 2018

I've created a simple Bot using OMCe bots only stack. Now I want to integrate a simple Instant App into my bot flow.

I used one of the Instant App's templates offered by the platform: I created one using the wizard and then I activated it. I created this state to call the Instant App:

interactiveState:

    component: "System.Interactive"

    properties:

      sourceVariableList: "name, lastname"

      variable: "outputMessage"

      id: "Test_Instant_App"

      prompt: "test phrase"

    transitions: {}

When the bot reach this particular state I get the following error:

"errorMessage": "javaException:Schema specific part is opaque."

The entire flow is defined as follows:

states:

helloState:

    component: "System.Output"

    properties:

      keepTurn: true

      text: "Ciao come posso esserti utile?"

    

  setName:

    component: "System.SetVariable"

    properties:

      variable: "name"

      value: "nome"

    

  setLastname:

    component: "System.SetVariable"

    properties:

      variable: "lastname"

      value: "cognome"

  

  interactiveState:

    component: "System.Interactive"

    properties:

      sourceVariableList: "name, lastname"

      variable: "outputMessage"

      id: "Test_Instant_App"

      prompt: "test phrase"

  

  testState:

    component: "System.Output"

    properties:

      text: "${outputMessage.value.test1} ${outputMessage.value.test2}"

    transitions:

      return: "done"

I extracted a log from the pipeline, this log reports the following error:

An exception occurred while invoking component System.Interactive: Schema specific part is opaque.[[

java.lang.IllegalArgumentException: Schema specific part is opaque.

at org.glassfish.jersey.uri.internal.JerseyUriBuilder._buildFromMap(JerseyUriBuilder.java:816)

at org.glassfish.jersey.uri.internal.JerseyUriBuilder.buildFromMap(JerseyUriBuilder.java:801)

at oracle.cloud.bots.component.InteractiveComponent.getCallbackUrl(InteractiveComponent.java:283)

at oracle.cloud.bots.component.InteractiveComponent.buildInteractivePayload(InteractiveComponent.java:361)

at oracle.cloud.bots.component.InteractiveComponent.createInteractiveInstance(InteractiveComponent.java:178)

at oracle.cloud.bots.component.InteractiveComponent.invokeImpl(InteractiveComponent.java:119)

at oracle.cloud.bots.component.AsyncHttpComponent.invoke(AsyncHttpComponent.java:59)

at oracle.cloud.bots.pipeline.de.DialogEngine.invokeBuiltInComponent(DialogEngine.java:414)

at oracle.cloud.bots.pipeline.de.DialogEngine.executeState(DialogEngine.java:355)

at oracle.cloud.bots.pipeline.de.DialogEngine.processMessage(DialogEngine.java:144)

at oracle.cloud.bots.pipeline.de.DialogEngine.runDialog(DialogEngine.java:104)

at oracle.cloud.bots.pipeline.components.DialogInvoker.processImpl(DialogInvoker.java:97)

at oracle.cloud.bots.pipeline.PipelineComponent.process(PipelineComponent.java:53)

at oracle.cloud.bots.pipeline.PipelineComponent.process(PipelineComponent.java:56)

at oracle.cloud.bots.pipeline.PipelineComponent.process(PipelineComponent.java:56)

at oracle.cloud.bots.pipeline.PipelineComponent.process(PipelineComponent.java:56)

at oracle.cloud.bots.pipeline.components.MessageSource.process(MessageSource.java:40)

at oracle.cloud.bots.pipeline.components.MessageSource.process(MessageSource.java:16)

at oracle.cloud.bots.kafka.consumer.SingleRecordProcessor.process(SingleRecordProcessor.java:65)

at oracle.cloud.bots.kafka.consumer.DiagnosticRecordProcessor.lambda$process$0(DiagnosticRecordProcessor.java:34)

at oracle.cloud.bots.diagnostic.DiagnosticUtils.execute(DiagnosticUtils.java:76)

at oracle.cloud.bots.kafka.consumer.DiagnosticRecordProcessor.process(DiagnosticRecordProcessor.java:32)

at oracle.cloud.bots.kafka.consumer.RecordListenerThread.lambda$run$0(RecordListenerThread.java:107)

at java.util.concurrent.FutureTask.run(FutureTask.java:266)

at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)

at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)

at java.lang.Thread.run(Thread.java:748)]]

How can I solve this issue? If more resources are needed (Screenshots, logs, etc...) let me know and I'll provide them.

Thanks in advance.

Comments