以文本方式查看主题

-  中文XML论坛 - 专业的XML技术讨论区  (http://bbs.xml.org.cn/index.asp)
--  『 Web Services & Semantic Web Services 』  (http://bbs.xml.org.cn/list.asp?boardid=10)
----  关于matchmaker的问题,用过的朋友们请进!  (http://bbs.xml.org.cn/dispbbs.asp?boardid=10&rootid=&id=62990)


--  作者:liukun19851007
--  发布时间:5/23/2008 10:47:00 AM

--  关于matchmaker的问题,用过的朋友们请进!
最近开始做semantic web servcies方面的项目,用了CMU大学的matchmaker,环境都是按它的要求搭建的,先置前件也都安装好了,安装也成功了,但是测试的时候总是提示失败BUILD FAILED:提示信息如下:
Test EDU.cmu.Atlas.matchmaker.algorithm.TestMatchMakerImpl failed
TestMatchMakerImpl.java我没有改过,请问这个测试失败了是因为什么?

--  作者:liukun19851007
--  发布时间:5/23/2008 2:12:00 PM

--  
补充一下,详细错误如下
run-tests:
    [junit] Running EDU.cmu.Atlas.matchmaker.algorithm.TestAdvertisementRecord
    [junit] Testsuite: EDU.cmu.Atlas.matchmaker.algorithm.TestAdvertisementRecor
d
    [junit] Tests run: 2, Failures: 0, Errors: 0, Time elapsed: 0.046 sec
    [junit] Tests run: 2, Failures: 0, Errors: 0, Time elapsed: 0.046 sec
    [junit]
    [junit] Testcase: testAdvertisementRecordEquals took 0 sec
    [junit] Testcase: testJUnit took 0.015 sec
    [junit] Running EDU.cmu.Atlas.matchmaker.algorithm.TestMatchMakerImpl
    [junit] Testsuite: EDU.cmu.Atlas.matchmaker.algorithm.TestMatchMakerImpl
    [junit] Tests run: 1, Failures: 0, Errors: 1, Time elapsed: 44.171 sec
    [junit] Output:
    [junit] 0 INFO  MatchMakerImpl  - Found Property File at  jar:file:/G:/owl-s
_uddi_mm/owls-uddi-matchmaker-1%5b1%5d.3-bin/matchmaker.jar!/matchmaker.properti
es
    [junit]
    [junit] Tests run: 1, Failures: 0, Errors: 1, Time elapsed: 44.171 sec
    [junit] ------------- Standard Output ---------------
    [junit] 0 INFO  MatchMakerImpl  - Found Property File at  jar:file:/G:/owl-s
_uddi_mm/owls-uddi-matchmaker-1%5b1%5d.3-bin/matchmaker.jar!/matchmaker.properti
es
    [junit] ------------- ---------------- ---------------
    [junit]
    [junit] Testcase: testMatchMakerImpl took 44.156 sec
    [junit]     Caused an ERROR
    [junit] rethrew: java.net.SocketException: Connection reset
    [junit] java.net.SocketException: Connection reset
    [junit]     at java.net.SocketInputStream.read(SocketInputStream.java:168)
    [junit]     at java.io.BufferedInputStream.fill(BufferedInputStream.java:218
)
    [junit]     at java.io.BufferedInputStream.read1(BufferedInputStream.java:25
6)
    [junit]     at java.io.BufferedInputStream.read(BufferedInputStream.java:313
)
    [junit]     at sun.net.www.http.HttpClient.parseHTTPHeader(HttpClient.java:6
06)
    [junit]     at sun.net.www.http.HttpClient.parseHTTP(HttpClient.java:554)
    [junit]     at sun.net.www.http.HttpClient.parseHTTP(HttpClient.java:571)
    [junit]     at sun.net.www.protocol.http.HttpURLConnection.getInputStream(Ht
tpURLConnection.java:936)
    [junit]     at java.net.URL.openStream(URL.java:1007)
    [junit]     at com.hp.hpl.jena.rdf.model.impl.ModelCom.read(ModelCom.java:20
5)
    [junit]     at com.hp.hpl.jena.ontology.impl.OntModelImpl.read(OntModelImpl.
java:2078)
    [junit]     at com.hp.hpl.jena.ontology.impl.OntModelImpl.read(OntModelImpl.
java:2059)
    [junit]     at com.hp.hpl.jena.ontology.impl.OntModelImpl.read(OntModelImpl.
java:2020)
    [junit]     at EDU.cmu.Atlas.matchmaker.algorithm.classmgmt.JenaOntModelHelp
er.loadURLInternal(JenaOntModelHelper.java:172)
    [junit]     at EDU.cmu.Atlas.matchmaker.algorithm.classmgmt.JenaOntModelHelp
er.loadURLsInternal(JenaOntModelHelper.java:148)
    [junit]     at EDU.cmu.Atlas.matchmaker.algorithm.classmgmt.JenaOntModelHelp
er.validateURLs(JenaOntModelHelper.java:208)
    [junit]     at EDU.cmu.Atlas.matchmaker.algorithm.classmgmt.ClassManagerJena
Impl.validateClientRequest(ClassManagerJenaImpl.java:79)
    [junit]     at EDU.cmu.Atlas.matchmaker.algorithm.classmgmt.ClassManagerJena
Impl.addConcepts(ClassManagerJenaImpl.java:62)
    [junit]     at EDU.cmu.Atlas.matchmaker.algorithm.MatchMakerImpl.submit(Matc
hMakerImpl.java:124)
    [junit]     at EDU.cmu.Atlas.matchmaker.algorithm.TestMatchMakerImpl.submit(
TestMatchMakerImpl.java:156)
    [junit]     at EDU.cmu.Atlas.matchmaker.algorithm.TestMatchMakerImpl.testMat
chMakerImpl(TestMatchMakerImpl.java:36)
    [junit] com.hp.hpl.jena.shared.WrappedIOException: rethrew: java.net.SocketE
xception: Connection reset
    [junit]     at com.hp.hpl.jena.rdf.model.impl.ModelCom.read(ModelCom.java:20
9)
    [junit]     at com.hp.hpl.jena.ontology.impl.OntModelImpl.read(OntModelImpl.
java:2078)
    [junit]     at com.hp.hpl.jena.ontology.impl.OntModelImpl.read(OntModelImpl.
java:2059)
    [junit]     at com.hp.hpl.jena.ontology.impl.OntModelImpl.read(OntModelImpl.
java:2020)
    [junit]     at EDU.cmu.Atlas.matchmaker.algorithm.classmgmt.JenaOntModelHelp
er.loadURLInternal(JenaOntModelHelper.java:172)
    [junit]     at EDU.cmu.Atlas.matchmaker.algorithm.classmgmt.JenaOntModelHelp
er.loadURLsInternal(JenaOntModelHelper.java:148)
    [junit]     at EDU.cmu.Atlas.matchmaker.algorithm.classmgmt.JenaOntModelHelp
er.validateURLs(JenaOntModelHelper.java:208)
    [junit]     at EDU.cmu.Atlas.matchmaker.algorithm.classmgmt.ClassManagerJena
Impl.validateClientRequest(ClassManagerJenaImpl.java:79)
    [junit]     at EDU.cmu.Atlas.matchmaker.algorithm.classmgmt.ClassManagerJena
Impl.addConcepts(ClassManagerJenaImpl.java:62)
    [junit]     at EDU.cmu.Atlas.matchmaker.algorithm.MatchMakerImpl.submit(Matc
hMakerImpl.java:124)
    [junit]     at EDU.cmu.Atlas.matchmaker.algorithm.TestMatchMakerImpl.submit(
TestMatchMakerImpl.java:156)
    [junit]     at EDU.cmu.Atlas.matchmaker.algorithm.TestMatchMakerImpl.testMat
chMakerImpl(TestMatchMakerImpl.java:36)
    [junit] Caused by: java.net.SocketException: Connection reset
    [junit]     at java.net.SocketInputStream.read(SocketInputStream.java:168)
    [junit]     at java.io.BufferedInputStream.fill(BufferedInputStream.java:218
)
    [junit]     at java.io.BufferedInputStream.read1(BufferedInputStream.java:25
6)
    [junit]     at java.io.BufferedInputStream.read(BufferedInputStream.java:313
)
    [junit]     at sun.net.www.http.HttpClient.parseHTTPHeader(HttpClient.java:6
06)
    [junit]     at sun.net.www.http.HttpClient.parseHTTP(HttpClient.java:554)
    [junit]     at sun.net.www.http.HttpClient.parseHTTP(HttpClient.java:571)
    [junit]     at sun.net.www.protocol.http.HttpURLConnection.getInputStream(Ht
tpURLConnection.java:936)
    [junit]     at java.net.URL.openStream(URL.java:1007)
    [junit]     at com.hp.hpl.jena.rdf.model.impl.ModelCom.read(ModelCom.java:20
5)
    [junit]

BUILD FAILED
G:\owl-s_uddi_mm\owls-uddi-matchmaker-1[1].3-bin\build.xml:126: Test EDU.cmu.Atl
as.matchmaker.algorithm.TestMatchMakerImpl failed

Total time: 48 seconds


--  作者:Veteren
--  发布时间:7/15/2008 3:16:00 PM

--  
可以加qq吗?一起讨论一下matchmaker的使用吧,我客户端和服务器端倒是都配置好了,但是不知道如何来用!?
--  作者:fleming
--  发布时间:2/20/2012 3:17:00 PM

--  
请问楼主,你的问题解决了吗,我现在也是遇到了这个问题,想知道是什么原因,怎么解决的啊,
W 3 C h i n a ( since 2003 ) 旗 下 站 点
苏ICP备05006046号《全国人大常委会关于维护互联网安全的决定》《计算机信息网络国际联网安全保护管理办法》
62.500ms