我當初在安裝Plog時
安裝程式詢問我主機的網域名稱時,我填了localhost
之後在建立資料庫時,也需要選擇主機,我那時也選擇了本地端的主機
(我照這步驟安裝的
http://wiki.lifetype.org.tw/index.php/Install_pLog_through_Wizard)
我找了這網頁的範例來操作
http://help.wordtracker.com/docs/api/ch03s02.html我先嚐試了CrudePing.java這程式
我按照網頁上的文字輸入
結果為"Successfully pinged guest account."
但當我把程式裡網址的部分換成了"
http://localhost/pLog/summary.php"
我也試過把字串"guest"改成我的帳號"cute0185"
(我認為
params.addElement("guest");
是要輸入帳號)
出現了這樣的錯誤訊息
Fatal error parsing XML: org.xml.sax.SAXParseException: invalid Character Entitiy
Exception in thread "main" org.apache.xmlrpc.XmlRpcClientException: Error decoding XML-RPC response
at org.apache.xmlrpc.XmlRpcClientResponseProcessor.decodeResponse(XmlRpcClientResponseProcessor.java:72)
at org.apache.xmlrpc.XmlRpcClientWorker.execute(XmlRpcClientWorker.java:65)
at org.apache.xmlrpc.XmlRpcClient.execute(XmlRpcClient.java:193)
at org.apache.xmlrpc.XmlRpcClient.execute(XmlRpcClient.java:184)
at org.apache.xmlrpc.XmlRpcClient.execute(XmlRpcClient.java:177)
at test.CrudePing.main(CrudePing.java:14)
Caused by: java.lang.StringIndexOutOfBoundsException: String index out of range: 255
at java.lang.String.charAt(String.java:558)
at uk.co.wilson.xml.MinML.parse(MinML.java:371)
at uk.co.wilson.xml.MinML.parse(MinML.java:487)
at org.apache.xmlrpc.XmlRpc.parse(XmlRpc.java:465)
at org.apache.xmlrpc.XmlRpcClientResponseProcessor.decodeResponse(XmlRpcClientResponseProcessor.java:60)
... 5 more
也試過ping.java這程式
也一樣的,把網址改為"
http://localhost/plog/index.php"
帳號也改了
執行的錯誤訊息是
Fatal error parsing XML: org.xml.sax.SAXParseException: invalid Character Entitiy
Procedure returned error message: 'Error decoding XML-RPC response'.
我與同學都一直認為這個網頁裡的範例是教我們如何登入Plog
還是,我們一開始就找錯了方向呢?