2016-02-27 68 views
1

在WSO2 CEP文檔的快速入門指南中,我發現上述異常。控制檯輸出WSO2 CEP:運行示例時發生java.lang.ArrayIndexOutOfBoundsException

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 

This可能是可能重複的,但我顯然已經進入了所有參數的權利。請幫忙。

回答

1

這是因爲與Windows環境集成時遇到的問題。爲了解決這個問題,你可以在build.xml文件中做下列修改:

<property name="filePath" value="&quot;&quot;"/>