Hi Rupert,

My connections are filtered by cyberoam, perhaps cyberoam is the reason for
such response.

Regards,
Suman Saurabh

PS: Thanks for the help






On Mon, Apr 7, 2014 at 5:21 PM, Rupert Westenthaler <
rupert.westentha...@gmail.com> wrote:

> Hi
>
> Included in the reported error message is the message "Access Denied"
>
> > 710 [main] ERROR com.hp.hpl.jena.rdf.model.impl.RDFDefaultErrorHandler -
> > http://relative-uri.fake/(line 1 column 33): {E202} Expecting XML start
> or
> > end element(s). String data "Access Denied" not allowed. Maybe there
> should
> > be an rdf:parseType='Literal' for embedding mixed XML content in RDF.
> Maybe
> > a striping error.
>
> What I guess is that Zemanta does not send an XML/RDF document but an
> HTML page with the "Access Denied" page.
>
> Because of that the XML parser fails to parse the response and generates
> the
> error you are seeing.
>
> The Zemanta key used by Stanbol for unit tests has a limited about of
> requests by day.
> So maybe this limit was already used up at the time you where testing.
>
> You can add
>
>       <plugin>
>         <groupId>org.apache.maven.plugins</groupId>
>         <artifactId>maven-surefire-plugin</artifactId>
>         <configuration>
>           <excludes>
>             <!-- Deactivate unit test for zemanta  -->
>             <exclude>**/ZemantaEnhancementEngineTest.java</exclude>
>           </excludes>
>         </configuration>
>       </plugin>
>
> to the pom.xml file of the zemanta engine to deactivate the unit test
> just for this engine. This xml fragment must be located within the
> <plugins></plugins> section.
>
> best
> Rupert
>
>
> On Sun, Apr 6, 2014 at 4:18 AM, Suman Saurabh
> <ss.sumansaurab...@gmail.com> wrote:
> > Hi Rupert,
> >
> > I tried to build stanbol again, this time I downloaded stanbol from
> github
> > [1] (previously I was using [2]). I used 'mvn install' to build it.
> >
> > I am facing the same issue still at Zemanta Engine Test, it got
> > successfully built when I used
> > 'mvn install -Dmaven.test.skip=true'
> >
> > [1] https://github.com/apache/stanbol
> > [2] https://svn.apache.org/repos/asf/stanbol/trunk/
> >
> > This is the complete
> >
> org.apache.stanbol.enhancer.engines.zemanta.impl.ZemantaEnhancementEngineTest
> > results:
> >
> > Running
> >
> org.apache.stanbol.enhancer.engines.zemanta.impl.ZemantaEnhancementEngineTest
> > 61 [main] WARN
> >
> org.apache.stanbol.enhancer.engines.zemanta.impl.ZemantaEnhancementEngine -
> > Value null is not valied for property markup_limit[required]
> > 61 [main] INFO
> >
> org.apache.stanbol.enhancer.engines.zemanta.impl.ZemantaEnhancementEngine -
> > sending data to Zemanta:
> >
> method=zemanta.suggest&format=rdfxml&return_rdf_links=1&return_categories=dmoz&return_images=0&personal_scope=0&api_key=2qsvcvkut8rhnqbhm35znn76&text=glh-2+encodes+a+putative+DEAD-box+RNA+helicase+that+contains+six+CCHC+zinc+fingers+and+is+homologous+to+Drosophila+VASA%2C+a+germ-line-specific%2C+ATP-dependent%2C+RNA+helicase%3B+GLH-2+activity+may+also+be+required+for+the+wild-type+morphology+of+P+granules+and+for+localization+of+several+protein+components%2C+but+not+accumulation+of+P+granule+mRNA+components%3B+GLH-2+interacts+in+vitro+with+itself+and+with+KGB-1%2C+a+JNK-like+MAP+kinase%3B+GLH-2+is+a+constitutive+P+granule+component+and+thus%2C+with+the+exception+of+mature+sperm%2C+is+expressed+in+germ+cells+at+all+stages+of+development%3B+GLH-2+is+cytoplasmic+in+oocytes+and+the+early+embryo%2C+while+perinuclear+in+all+later+developmental+stages+as+well+as+in+the+distal+and+medial+regions+of+the+hermaphrodite+gonad%3B+GLH-2+is+expressed+at+barely+detectable+levels+in+males
> > 641 [main] WARN com.hp.hpl.jena.rdf.model.impl.RDFDefaultErrorHandler -
> > http://relative-uri.fake/(line 1 column 7): {W104} Unqualified typed
> nodes
> > are not allowed. Type treated as a relative URI.
> > 678 [main] WARN com.hp.hpl.jena.rdf.model.impl.RDFDefaultErrorHandler -
> > http://relative-uri.fake/(line 1 column 7): {W136} Relative URIs are not
> > permitted in RDF: specifically <HTML>
> > 706 [main] WARN com.hp.hpl.jena.rdf.model.impl.RDFDefaultErrorHandler -
> > http://relative-uri.fake/(line 1 column 13): {W104} Unqualified property
> > elements are not allowed. Treated as a relative URI.
> > 706 [main] WARN com.hp.hpl.jena.rdf.model.impl.RDFDefaultErrorHandler -
> > http://relative-uri.fake/(line 1 column 13): {W136} Relative URIs are
> not
> > permitted in RDF: specifically <HEAD>
> > 709 [main] WARN com.hp.hpl.jena.rdf.model.impl.RDFDefaultErrorHandler -
> > http://relative-uri.fake/(line 1 column 20): {W104} Unqualified typed
> nodes
> > are not allowed. Type treated as a relative URI.
> > 709 [main] WARN com.hp.hpl.jena.rdf.model.impl.RDFDefaultErrorHandler -
> > http://relative-uri.fake/(line 1 column 20): {W136} Relative URIs are
> not
> > permitted in RDF: specifically <TITLE>
> > 710 [main] ERROR com.hp.hpl.jena.rdf.model.impl.RDFDefaultErrorHandler -
> > http://relative-uri.fake/(line 1 column 33): {E202} Expecting XML start
> or
> > end element(s). String data "Access Denied" not allowed. Maybe there
> should
> > be an rdf:parseType='Literal' for embedding mixed XML content in RDF.
> Maybe
> > a striping error.
> > 710 [main] ERROR com.hp.hpl.jena.rdf.model.impl.RDFDefaultErrorHandler -
> > http://relative-uri.fake/(line 1 column 71): {E201} Multiple children of
> > property element
> > 710 [main] WARN com.hp.hpl.jena.rdf.model.impl.RDFDefaultErrorHandler -
> > http://relative-uri.fake/(line 1 column 71): {W104} Unqualified typed
> nodes
> > are not allowed. Type treated as a relative URI.
> > 711 [main] WARN com.hp.hpl.jena.rdf.model.impl.RDFDefaultErrorHandler -
> > http://relative-uri.fake/(line 1 column 71): {W136} Relative URIs are
> not
> > permitted in RDF: specifically <script>
> > 712 [main] WARN com.hp.hpl.jena.rdf.model.impl.RDFDefaultErrorHandler -
> > http://relative-uri.fake/(line 1 column 71): {W136} Relative URIs are
> not
> > permitted in RDF: specifically <language>
> > 712 [main] WARN com.hp.hpl.jena.rdf.model.impl.RDFDefaultErrorHandler -
> > http://relative-uri.fake/(line 1 column 71): {W102} Unqualified property
> > attributes are not allowed. Property treated as a relative URI.
> > 744 [main] ERROR com.hp.hpl.jena.rdf.model.impl.RDFDefaultErrorHandler -
> > http://relative-uri.fake/(line 1 column 387): {E202} Expecting XML
> start or
> > end element(s). String data " var category='DatingAndMatrimonials';var
> > categorylist =
> >
> ['Spyware','SPAMURL','P2P','DownloadFreewareAndShareware','Gambling','Weapons','Plagiarism','CrimeandSuicide','PhishingandFraud','URLTranslationSites','Nudity','AdultContent','Violence','Porn','MilitancyandExtremist','Drugs','HateAndRacism','IllegalUnethical'"
> > not allowed. Maybe there should be an rdf:parseType='Literal' for
> embedding
> > mixed XML content in RDF. Maybe a striping error.
> > 753 [main] ERROR com.hp.hpl.jena.rdf.model.impl.RDFDefaultErrorHandler -
> > http://relative-uri.fake/(line 1 column 438): The content of elements
> must
> > consist of well-formed character data or markup.
> > Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 0.887 sec
> > <<< FAILURE! - in
> >
> org.apache.stanbol.enhancer.engines.zemanta.impl.ZemantaEnhancementEngineTest
> >
> tesetBioText(org.apache.stanbol.enhancer.engines.zemanta.impl.ZemantaEnhancementEngineTest)
> > Time elapsed: 0.767 sec  <<< ERROR!
> > com.hp.hpl.jena.shared.JenaException: org.xml.sax.SAXParseException;
> > systemId: http://relative-uri.fake/; lineNumber: 1; columnNumber: 438;
> The
> > content of elements must consist of well-formed character data or markup.
> >     at
> >
> org.apache.xerces.util.ErrorHandlerWrapper.createSAXParseException(Unknown
> > Source)
> >     at org.apache.xerces.util.ErrorHandlerWrapper.fatalError(Unknown
> Source)
> >     at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown
> Source)
> >     at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown
> Source)
> >     at org.apache.xerces.impl.XMLScanner.reportFatalError(Unknown Source)
> >     at
> >
> org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown
> > Source)
> >     at
> >
> org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown
> > Source)
> >     at org.apache.xerces.parsers.DTDConfiguration.parse(Unknown Source)
> >     at org.apache.xerces.parsers.DTDConfiguration.parse(Unknown Source)
> >     at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
> >     at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
> >     at
> > com.hp.hpl.jena.rdf.arp.impl.RDFXMLParser.parse(RDFXMLParser.java:151)
> >     at com.hp.hpl.jena.rdf.arp.JenaReader.read(JenaReader.java:171)
> >     at com.hp.hpl.jena.rdf.arp.JenaReader.read(JenaReader.java:158)
> >     at com.hp.hpl.jena.rdf.arp.JenaReader.read(JenaReader.java:229)
> >     at com.hp.hpl.jena.rdf.model.impl.ModelCom.read(ModelCom.java:276)
> >     at
> >
> org.apache.clerezza.rdf.jena.parser.JenaParserProvider.parse(JenaParserProvider.java:68)
> >     at
> >
> org.apache.stanbol.enhancer.engines.zemanta.impl.ZemantaAPIWrapper.parseResponse(ZemantaAPIWrapper.java:137)
> >     at
> >
> org.apache.stanbol.enhancer.engines.zemanta.impl.ZemantaAPIWrapper.enhance(ZemantaAPIWrapper.java:60)
> >     at
> >
> org.apache.stanbol.enhancer.engines.zemanta.impl.ZemantaEnhancementEngine.computeEnhancements(ZemantaEnhancementEngine.java:216)
> >     at
> >
> org.apache.stanbol.enhancer.engines.zemanta.impl.ZemantaEnhancementEngineTest.tesetBioText(ZemantaEnhancementEngineTest.java:105)
> >
> >
> > I will be looking at my side to resolve this error.
> >
> >
> > Regards,
> > Suman Saurabh
> >
> >
> >
> > On Sun, Apr 6, 2014 at 5:57 AM, Furkan KAMACI <furkankam...@gmail.com
> >wrote:
> >
> >> Hi Suman;
> >>
> >> I've run tests several times but did not get the same error. It may not
> be
> >> related to Stanbol (I've checked the source code). Could you run the
> tests
> >> again?
> >>
> >> Thanks;
> >> Furkan KAMACI
> >>
> >>
> >> 2014-04-05 14:43 GMT+03:00 Suman Saurabh <ss.sumansaurab...@gmail.com>:
> >>
> >> > Hi Rupert,
> >> >
> >> > I compiled stanbol again but I was still facing the same issue. I have
> >> > reported this on jira [1].
> >> >
> >> > [1] https://issues.apache.org/jira/browse/STANBOL-1311
> >> >
> >> > Regards,
> >> > Suman Saurabh
> >> >
> >> >
> >> >
> >> > On Thu, Apr 3, 2014 at 9:38 AM, Rupert Westenthaler <
> >> > rupert.westentha...@gmail.com> wrote:
> >> >
> >> > > Hi Suman,
> >> > >
> >> > > If you still see the failure it would be good to report this  as an
> >> > > issue at [1]. Please make sure to include information about your
> >> > > environment (OS, Java version ...) in addition to the stack trace
> and
> >> > > the surefire-reports (the text files under
> 'target/surefire-reports')
> >> > >
> >> > > best
> >> > > Rupert
> >> > >
> >> > > [1] https://issues.apache.org/jira/browse/STANBOL
> >> > >
> >> > > On Wed, Apr 2, 2014 at 8:22 PM, Suman Saurabh
> >> > > <ss.sumansaurab...@gmail.com> wrote:
> >> > > > Hi Rupert,
> >> > > > Stanbol got successfully compiled but I had to turn of the tests.
> >> > > Hopefully
> >> > > > there should be no issue in future.
> >> > > >
> >> > > > Regards,
> >> > > > Suman Saurabh
> >> > > >
> >> > > >
> >> > > >
> >> > > > On Wed, Apr 2, 2014 at 7:18 PM, Rupert Westenthaler <
> >> > > > rupert.westentha...@gmail.com> wrote:
> >> > > >
> >> > > >> Hi Suman,
> >> > > >>
> >> > > >> this looks like an issue with the Zemanta service. I have just
> tried
> >> > > >> to build this module and it was completing successfully.
> >> > > >>
> >> > > >> best
> >> > > >> Rupert
> >> > > >>
> >> > > >>
> >> > > >> On Wed, Apr 2, 2014 at 2:32 PM, Suman Saurabh
> >> > > >> <ss.sumansaurab...@gmail.com> wrote:
> >> > > >> > Hi Rupert, all,
> >> > > >> >
> >> > > >> > I got the issue cleared but I got involved with another issue,
> I
> >> was
> >> > > >> trying
> >> > > >> > to install stanbol in another machine and stepped into the
> error:
> >> > > >> > Failed to execute goal
> >> > > >> > org.apache.maven.plugins:maven-surefire-plugin:2.16:test
> >> > > (default-test)
> >> > > >> on
> >> > > >> > project org.apache.stanbol.enhancer.engines.zemanta: There are
> >> test
> >> > > >> > failures.
> >> > > >> >
> >> > > >> > This is the sue-fire reports for the test:
> >> > > >> >
> >> > > >>
> >> > >
> >> >
> >>
> -------------------------------------------------------------------------------
> >> > > >> > Test set:
> >> > > >> >
> >> > > >>
> >> > >
> >> >
> >>
> org.apache.stanbol.enhancer.engines.zemanta.impl.ZemantaEnhancementEngineTest
> >> > > >> >
> >> > > >>
> >> > >
> >> >
> >>
> -------------------------------------------------------------------------------
> >> > > >> > Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed:
> >> > 0.662
> >> > > sec
> >> > > >> > <<< FAILURE! - in
> >> > > >> >
> >> > > >>
> >> > >
> >> >
> >>
> org.apache.stanbol.enhancer.engines.zemanta.impl.ZemantaEnhancementEngineTest
> >> > > >> >
> >> > > >>
> >> > >
> >> >
> >>
> tesetBioText(org.apache.stanbol.enhancer.engines.zemanta.impl.ZemantaEnhancementEngineTest)
> >> > > >> > Time elapsed: 0.573 sec  <<< ERROR!
> >> > > >> > com.hp.hpl.jena.shared.JenaException:
> >> org.xml.sax.SAXParseException;
> >> > > >> > systemId: http://relative-uri.fake/; lineNumber: 1;
> columnNumber:
> >> > > 438;
> >> > > >> The
> >> > > >> > content of elements must consist of well-formed character data
> or
> >> > > markup.
> >> > > >> >     at
> >> > > >> >
> >> > > >>
> >> > >
> >> >
> >>
> org.apache.xerces.util.ErrorHandlerWrapper.createSAXParseException(Unknown
> >> > > >> > Source)
> >> > > >> >     at
> >> org.apache.xerces.util.ErrorHandlerWrapper.fatalError(Unknown
> >> > > >> Source)
> >> > > >> >     at
> org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown
> >> > > >> Source)
> >> > > >> >     at
> org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown
> >> > > >> Source)
> >> > > >> >     at
> org.apache.xerces.impl.XMLScanner.reportFatalError(Unknown
> >> > > Source)
> >> > > >> >     at
> >> > > >> >
> >> > > >>
> >> > >
> >> >
> >>
> org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown
> >> > > >> > Source)
> >> > > >> >     at
> >> > > >> >
> >> > > >>
> >> > >
> >> >
> >>
> org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown
> >> > > >> > Source)
> >> > > >> >     at org.apache.xerces.parsers.DTDConfiguration.parse(Unknown
> >> > > Source)
> >> > > >> >     at org.apache.xerces.parsers.DTDConfiguration.parse(Unknown
> >> > > Source)
> >> > > >> >     at org.apache.xerces.parsers.XMLParser.parse(Unknown
> Source)
> >> > > >> >     at
> org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown
> >> > > Source)
> >> > > >> >     at
> >> > > >> >
> >> > com.hp.hpl.jena.rdf.arp.impl.RDFXMLParser.parse(RDFXMLParser.java:151)
> >> > > >> >     at
> >> com.hp.hpl.jena.rdf.arp.JenaReader.read(JenaReader.java:171)
> >> > > >> >     at
> >> com.hp.hpl.jena.rdf.arp.JenaReader.read(JenaReader.java:158)
> >> > > >> >     at
> >> com.hp.hpl.jena.rdf.arp.JenaReader.read(JenaReader.java:229)
> >> > > >> >     at
> >> > com.hp.hpl.jena.rdf.model.impl.ModelCom.read(ModelCom.java:276)
> >> > > >> >     at
> >> > > >> >
> >> > > >>
> >> > >
> >> >
> >>
> org.apache.clerezza.rdf.jena.parser.JenaParserProvider.parse(JenaParserProvider.java:68)
> >> > > >> >     at
> >> > > >> >
> >> > > >>
> >> > >
> >> >
> >>
> org.apache.stanbol.enhancer.engines.zemanta.impl.ZemantaAPIWrapper.parseResponse(ZemantaAPIWrapper.java:137)
> >> > > >> >     at
> >> > > >> >
> >> > > >>
> >> > >
> >> >
> >>
> org.apache.stanbol.enhancer.engines.zemanta.impl.ZemantaAPIWrapper.enhance(ZemantaAPIWrapper.java:60)
> >> > > >> >     at
> >> > > >> >
> >> > > >>
> >> > >
> >> >
> >>
> org.apache.stanbol.enhancer.engines.zemanta.impl.ZemantaEnhancementEngine.computeEnhancements(ZemantaEnhancementEngine.java:216)
> >> > > >> >     at
> >> > > >> >
> >> > > >>
> >> > >
> >> >
> >>
> org.apache.stanbol.enhancer.engines.zemanta.impl.ZemantaEnhancementEngineTest.tesetBioText(ZemantaEnhancementEngineTest.java:105)
> >> > > >> >
> >> > > >> >
> >> > > >>
> >> > >
> >> >
> >>
> __________________________________________________________________________________________________________
> >> > > >> >
> >> > > >> > Is this an issue that is to be fixed or their is an issue with
> >> > system.
> >> > > >> >
> >> > > >> >
> >> > > >> >
> >> > > >> >
> >> > > >> > On Mon, Mar 31, 2014 at 9:59 AM, Rupert Westenthaler <
> >> > > >> > rupert.westentha...@gmail.com> wrote:
> >> > > >> >
> >> > > >> >> Hi Suman,
> >> > > >> >>
> >> > > >> >> this was fixed with rev 1583176 [1] (see also STANBOL-1248)
> >> > > >> >>
> >> > > >> >>
> >> > > >> >> [1] http://svn.apache.org/r1583176
> >> > > >> >>
> >> > > >> >> On Mon, Mar 31, 2014 at 12:50 AM, Furkan KAMACI <
> >> > > furkankam...@gmail.com
> >> > > >> >
> >> > > >> >> wrote:
> >> > > >> >> > Hi Suman;
> >> > > >> >> >
> >> > > >> >> > Could you apply my patch at STANBOL-1306?
> >> > > >> >> >
> >> > > >> >> > Thanks;
> >> > > >> >> > Furkan KAMACI
> >> > > >> >> >
> >> > > >> >> >
> >> > > >> >> > 2014-03-31 1:25 GMT+03:00 Suman Saurabh <
> >> > > ss.sumansaurab...@gmail.com
> >> > > >> >:
> >> > > >> >> >
> >> > > >> >> >> Hi,
> >> > > >> >> >> I want to know whether 'enhancer-engines-restricted' bundle
> >> are
> >> > > made
> >> > > >> >> >> available, whether code for developing enhancement engine
> >> > requires
> >> > > >> the
> >> > > >> >> >> specified bundle.
> >> > > >> >> >>
> >> > > >> >> >> Sample project gets successfully compiled when I commented
> out
> >> > the
> >> > > >> >> >> following bundle from pom file[1].
> >> > > >> >> >>
> >> > > >> >> >> [1]
> >> > > >> >>
> >> > >
> https://svn.apache.org/repos/asf/stanbol/trunk/launchers/full/pom.xml,
> >> > > >> >> >>
> >> > > >> >> >> Regards,
> >> > > >> >> >> Suman Sauarbh
> >> > > >> >> >>
> >> > > >> >>
> >> > > >> >>
> >> > > >> >>
> >> > > >> >> --
> >> > > >> >> | Rupert Westenthaler
> rupert.westentha...@gmail.com
> >> > > >> >> | Bodenlehenstraße 11
> >> > ++43-699-11108907
> >> > > >> >> | A-5500 Bischofshofen
> >> > > >> >>
> >> > > >>
> >> > > >>
> >> > > >>
> >> > > >> --
> >> > > >> | Rupert Westenthaler             rupert.westentha...@gmail.com
> >> > > >> | Bodenlehenstraße 11
> ++43-699-11108907
> >> > > >> | A-5500 Bischofshofen
> >> > > >>
> >> > >
> >> > >
> >> > >
> >> > > --
> >> > > | Rupert Westenthaler             rupert.westentha...@gmail.com
> >> > > | Bodenlehenstraße 11                             ++43-699-11108907
> >> > > | A-5500 Bischofshofen
> >> > >
> >> >
> >>
>
>
>
> --
> | Rupert Westenthaler             rupert.westentha...@gmail.com
> | Bodenlehenstraße 11                              ++43-699-11108907
> | A-5500 Bischofshofen
> | 
> REDLINK.CO..........................................................................
> | http://redlink.co/
>

Reply via email to