Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/java/401.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Java 如何创建执行计划,其中导出的流和siddhi查询插入具有相同的名称?_Java_Wso2_Wso2cep - Fatal编程技术网

Java 如何创建执行计划,其中导出的流和siddhi查询插入具有相同的名称?

Java 如何创建执行计划,其中导出的流和siddhi查询插入具有相同的名称?,java,wso2,wso2cep,Java,Wso2,Wso2cep,我尝试使用此链接中提供的示例创建一个计划,但出现以下错误 Stream OutStats已定义为StreamDefinition{streamId='OutStats',attributeList=[Attribute{name='meta_ip',type=STRING},Attribute{name='userName',type=STRING},Attribute{name='requestCount',type=LONG}],因此无法定义StreamDefinition{streamId

我尝试使用此链接中提供的示例创建一个计划,但出现以下错误

Stream OutStats已定义为StreamDefinition{streamId='OutStats',attributeList=[Attribute{name='meta_ip',type=STRING},Attribute{name='userName',type=STRING},Attribute{name='requestCount',type=LONG}],因此无法定义StreamDefinition{streamId='OutStats',attributeList=[Attribute name='meta ip',type=STRING},Attribute{name='userName',type=STRING},属性{name='searchKey',type=STRING}]}

如果我将查询的insert into部分更改为其他名称,则可以正常工作,但我担心如果导出的流名称和insert into不相同,则可能会产生问题。在创建执行计划之前,我创建了org.foo.data.search.stats和org.foo.data.out.stats。 这是一个错误还是我做错了什么?
他们自己的测试用例也给出了同样的错误 在第二个流属性{name='searchKey',type=STRING}中

这种情况下的错误意味着“定义流中的第4个属性与输入/输出/其他等流中的第4个属性不同”


记住,名称、类型和顺序很重要。

在第一个流中,您有属性{name='requestCount',type=LONG} 在第二个流属性{name='searchKey',type=STRING}中

这种情况下的错误意味着“定义流中的第4个属性与输入/输出/其他等流中的第4个属性不同”

记住,名字、类型和顺序都很重要