Hi Furkan,
it might be the ontology manager bundles are not all up by the time the
test is run on your build environment. Do you have any reports on the
other two failed tests that I can see there?
org.apache.stanbol.ontologymanager.web
best,
Alessandro
On 27/05/2014 13:29, Furkan KAMACI wrote:
Hi Rupert;
I've just got error again. It fails at session test and surefire reports is
as follows:
-------------------------------------------------------------------------------
Test set: org.apache.stanbol.ontologymanager.web.it.SessionTest
-------------------------------------------------------------------------------
Tests run: 4, Failures: 3, Errors: 0, Skipped: 0, Time elapsed: 0.613
sec <<< FAILURE! - in
org.apache.stanbol.ontologymanager.web.it.SessionTest
testCRUD(org.apache.stanbol.ontologymanager.web.it.SessionTest) Time
elapsed: 0.088 sec <<< FAILURE!
java.lang.AssertionError: GET request to
http://localhost:8765/ontonet/session: expecting status 200 (content:
<html>
<head>
<meta http-equiv="Content-Type" content="text/html;charset=ISO-8859-1"/>
<title>Error 404 Not Found</title>
</head>
<body>
<h2>HTTP ERROR: 404</h2>
<p>Problem accessing /ontonet/session. Reason:
<pre> Not Found</pre></p>
<hr /><i><small>Powered by Jetty://</small></i>
</body>
</html>
) expected:<200> but was:<404>
at org.junit.Assert.fail(Assert.java:88)
at org.junit.Assert.failNotEquals(Assert.java:743)
at org.junit.Assert.assertEquals(Assert.java:118)
at org.junit.Assert.assertEquals(Assert.java:555)
at
org.apache.stanbol.commons.testing.http.RequestExecutor.assertStatus(RequestExecutor.java:175)
at
org.apache.stanbol.ontologymanager.web.it.SessionTest.testCRUD(SessionTest.java:58)
testSupportedRDFFormats(org.apache.stanbol.ontologymanager.web.it.SessionTest)
Time elapsed: 0.176 sec <<< FAILURE!
java.lang.AssertionError: GET request to
http://localhost:8765/ontonet/session: expecting status 200 (content:
<html>
<head>
<meta http-equiv="Content-Type" content="text/html;charset=ISO-8859-1"/>
<title>Error 404 Not Found</title>
</head>
<body>
<h2>HTTP ERROR: 404</h2>
<p>Problem accessing /ontonet/session. Reason:
<pre> Not Found</pre></p>
<hr /><i><small>Powered by Jetty://</small></i>
</body>
</html>
) expected:<200> but was:<404>
at org.junit.Assert.fail(Assert.java:88)
at org.junit.Assert.failNotEquals(Assert.java:743)
at org.junit.Assert.assertEquals(Assert.java:118)
at org.junit.Assert.assertEquals(Assert.java:555)
at
org.apache.stanbol.commons.testing.http.RequestExecutor.assertStatus(RequestExecutor.java:175)
at
org.apache.stanbol.ontologymanager.web.it.SessionTest.testSupportedRDFFormats(SessionTest.java:114)
testSupportedOWLFormats(org.apache.stanbol.ontologymanager.web.it.SessionTest)
Time elapsed: 0.19 sec <<< FAILURE!
java.lang.AssertionError: GET request to
http://localhost:8765/ontonet/session: expecting status 200 (content:
<html>
<head>
<meta http-equiv="Content-Type" content="text/html;charset=ISO-8859-1"/>
<title>Error 404 Not Found</title>
</head>
<body>
<h2>HTTP ERROR: 404</h2>
<p>Problem accessing /ontonet/session. Reason:
<pre> Not Found</pre></p>
<hr /><i><small>Powered by Jetty://</small></i>
</body>
</html>
) expected:<200> but was:<404>
at org.junit.Assert.fail(Assert.java:88)
at org.junit.Assert.failNotEquals(Assert.java:743)
at org.junit.Assert.assertEquals(Assert.java:118)
at org.junit.Assert.assertEquals(Assert.java:555)
at
org.apache.stanbol.commons.testing.http.RequestExecutor.assertStatus(RequestExecutor.java:175)
at
org.apache.stanbol.ontologymanager.web.it.SessionTest.testSupportedOWLFormats(SessionTest.java:101)
Thanks;
Furkan KAMACI
2014-05-21 13:17 GMT+03:00 Rupert Westenthaler <
rupert.westentha...@gmail.com>:
Hi Furkan,
what do the 'target/surefire-reports/' for the failed test say?
best
Rupert
On Tue, May 20, 2014 at 8:55 PM, Furkan KAMACI <furkankam...@gmail.com>
wrote:
Hi All;
When I try to clean and install project I get that error:
21:51:23,852 INFO SolrDispatchFilterComponentTestBase:81 - Solr Core
dbpedia is ready and mapped to /solr/default/
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.247
sec -
in org.apache.stanbol.commons.solr.web.it.DefaultDataDispatchFilterTest
Results :
Failed tests:
ScopeTest.testCRUD:112 GET request to
http://localhost:8765/ontonet/ontology: expecting status 200 (content:
<html>
<head>
<meta http-equiv="Content-Type" content="text/html;charset=ISO-8859-1"/>
<title>Error 404 Not Found</title>
</head>
<body>
<h2>HTTP ERROR: 404</h2>
<p>Problem accessing /ontonet/ontology. Reason:
<pre> Not Found</pre></p>
<hr /><i><small>Powered by Jetty://</small></i>
</body>
</html>
) expected:<200> but was:<404>
Any ideas?
Thanks;
Furkan KAMACI
--
| Rupert Westenthaler rupert.westentha...@gmail.com
| Bodenlehenstraße 11 ++43-699-11108907
| A-5500 Bischofshofen
|
REDLINK.CO..........................................................................
| http://redlink.co/