WSO2 CEP:java.lang.ArrayIndexOutOfBoundsException 出现在 运行 样本上
WSO2 CEP : java.lang.ArrayIndexOutOfBoundsException occurs on running sample
我在遵循 WSO2 CEP 文档的快速入门指南时遇到异常。控制台输出为
c:\wso2cep-4.0.0\samples\producers\http>ant -Durl=http://localhost:9763/endpoint
s/httpReceiver -Dsn=0001
Buildfile: c:\wso2cep-4.0.0\samples\producers\http\build.xml
init:
compile:
[javac] c:\wso2cep-4.0.0\samples\producers\http\build.xml:71: warning: 'incl
udeantruntime' was not set, defaulting to build.sysclasspath=last; set to false
for repeatable builds
[copy] Copying 1 file to c:\wso2cep-4.0.0\samples\producers\http\temp\class
es
run:
[echo] Configure -Durl=xxxx and ( -DfilePath=xxxx or -Dsn='sample number')
optionally use -Dusername=xxxx -Dpassword=xxxx
[java] [main] INFO org.wso2.carbon.sample.http.Http - Starting WSO2 Http
Client
[java] Exception in thread "main" java.lang.ArrayIndexOutOfBoundsException:
4
[java] at org.wso2.carbon.sample.http.Http.main(Unknown Source)
[java] Java Result: 1
BUILD SUCCESSFUL
Total time: 0 seconds
可能是重复的,但我显然已经正确输入了所有参数。请帮忙。
这是由于与 Windows 环境集成时出现的蚂蚁问题。为了解决这个问题,您可以在 build.xml 文件
中进行以下更改
<property name="filePath" value=""""/>
我在遵循 WSO2 CEP 文档的快速入门指南时遇到异常。控制台输出为
c:\wso2cep-4.0.0\samples\producers\http>ant -Durl=http://localhost:9763/endpoint
s/httpReceiver -Dsn=0001
Buildfile: c:\wso2cep-4.0.0\samples\producers\http\build.xml
init:
compile:
[javac] c:\wso2cep-4.0.0\samples\producers\http\build.xml:71: warning: 'incl
udeantruntime' was not set, defaulting to build.sysclasspath=last; set to false
for repeatable builds
[copy] Copying 1 file to c:\wso2cep-4.0.0\samples\producers\http\temp\class
es
run:
[echo] Configure -Durl=xxxx and ( -DfilePath=xxxx or -Dsn='sample number')
optionally use -Dusername=xxxx -Dpassword=xxxx
[java] [main] INFO org.wso2.carbon.sample.http.Http - Starting WSO2 Http
Client
[java] Exception in thread "main" java.lang.ArrayIndexOutOfBoundsException:
4
[java] at org.wso2.carbon.sample.http.Http.main(Unknown Source)
[java] Java Result: 1
BUILD SUCCESSFUL
Total time: 0 seconds
这是由于与 Windows 环境集成时出现的蚂蚁问题。为了解决这个问题,您可以在 build.xml 文件
中进行以下更改 <property name="filePath" value=""""/>