LiveView runtime error: No schema named tuple: Unknown stream or table
book
Article ID: KB0074038
calendar_today
Updated On:
Description
After confirming no errors were shown for the project in StreamBase Studio, when launching the project as a LiveView project or running it from the command line, the launch fails with the error:
com.streambase.sb.operator.TypecheckException: No schema named "tuple": Unknown stream or table...
Issue/Introduction
There are two workarounds for this error.
Resolution
This application includes a LiveView Table with a StreamBase (SB) data-source application (.sbapp). The SB application defines a public Input Stream and the schema for that stream includes a field of type Tuple defined by a Named Schema.
The problem occurs because LiveView generates a wrapper of code around the data-source called "WorkingProcessor" which does not import the Named Schema definition but instead identifies the field as generic-type "tuple", which is an incomplete definition.
This is defect "CQS-3813 DataSource NPE on load but app typechecks in Studio" which may be fixed sometime after this writing. Check the StreamBase product "Release Notes".
There are two workarounds:
A. Do not define user streams as public in data sources. You may still enqueue to this stream using path "DataSourceName.WorkingProcessor.StreamName" even though it is not marked "public".
B. If you define a public stream, do not use a Named Schema to define any of its fields. You may then continue to enqueue to "DataSourceName.StreamName".
Feedback
thumb_up
Yes
thumb_down
No