TheProjecter / simal

Automatically exported from code.google.com/p/simal
0 stars 0 forks source link

Support data format provided by Launchpad #234

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Before closing this PLEASE NOTE

The URL in the backtrace DOES NOT MATCH the URL I entered.

I entered: https://launchpad.net/subunit/+rdf
The error complains about: https://launchpad.net/subunit

Which is likely the source of the problem.

This is a dupe of issue 233 which was summarily closed by someone that
didn't read the bug title. I hope I'm clear enough, even if grumpy, in this
report that won't happen - or at least if it does, its not due to me being
unclear.

Unable to add doap from url

Error reported by: class uk.ac.osswatch.simal.wicket.doap.DoapFormPage

Caused by: uk.ac.osswatch.simal.rdf.SimalRepositoryException: Unable to
prepare data from https://launchpad.net/subunit for adding to the repository

uk.ac.osswatch.simal.wicket.UserReportableException: Unable to add doap
from url
    at
uk.ac.osswatch.simal.wicket.doap.DoapFormPage$AddByURLForm.onSubmit(DoapFormPage
.java:232)
    at org.apache.wicket.markup.html.form.Form.delegateSubmit(Form.java:1379)
    at org.apache.wicket.markup.html.form.Form.onFormSubmitted(Form.java:829)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.jav
a:25)
    at java.lang.reflect.Method.invoke(Method.java:597)
    at
org.apache.wicket.RequestListenerInterface.invoke(RequestListenerInterface.java:
182)
    at
org.apache.wicket.request.target.component.listener.ListenerInterfaceRequestTarg
et.processEvents(ListenerInterfaceRequestTarget.java:73)
    at
org.apache.wicket.request.AbstractRequestCycleProcessor.processEvents(AbstractRe
questCycleProcessor.java:91)
    at
org.apache.wicket.RequestCycle.processEventsAndRespond(RequestCycle.java:1169)
    at org.apache.wicket.RequestCycle.step(RequestCycle.java:1246)
    at org.apache.wicket.RequestCycle.steps(RequestCycle.java:1347)
    at org.apache.wicket.RequestCycle.request(RequestCycle.java:497)
    at org.apache.wicket.protocol.http.WicketFilter.doGet(WicketFilter.java:387)
    at
org.apache.wicket.protocol.http.WicketFilter.doFilter(WicketFilter.java:199)
    at
org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.jav
a:1112)
    at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:363)
    at
org.mortbay.jetty.security.ConstraintsSecurityHandler.handle(ConstraintsSecurity
Handler.java:220)
    at org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:181)
    at org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:822)
    at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:305)
    at
org.mortbay.jetty.handler.ContextHandlerCollection.handle(ContextHandlerCollecti
on.java:229)
    at
org.mortbay.jetty.handler.HandlerCollection.handle(HandlerCollection.java:113)
    at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:152)
    at org.mortbay.jetty.Server.handle(Server.java:324)
    at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:550)
    at
org.mortbay.jetty.HttpConnection$RequestHandler.content(HttpConnection.java:890)
    at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:743)
    at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:215)
    at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:407)
    at
org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java:421)
    at
org.mortbay.thread.QueuedThreadPool$PoolThread.run(QueuedThreadPool.java:520)
Caused by: uk.ac.osswatch.simal.rdf.SimalRepositoryException: Unable to
prepare data from https://launchpad.net/subunit for adding to the repository
    at
uk.ac.osswatch.simal.rdf.AbstractSimalRepository.addProject(AbstractSimalReposit
ory.java:318)
    at
uk.ac.osswatch.simal.wicket.doap.DoapFormPage$AddByURLForm.onSubmit(DoapFormPage
.java:228)
    ... 32 more
Caused by: java.io.IOException: Server returned HTTP response code: 503 for
URL: http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd
    at
sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.jav
a:1241)
    at org.apache.xerces.impl.XMLEntityManager.setupCurrentEntity(Unknown Source)
    at org.apache.xerces.impl.XMLEntityManager.startEntity(Unknown Source)
    at org.apache.xerces.impl.XMLEntityManager.startDTDEntity(Unknown Source)
    at org.apache.xerces.impl.XMLDTDScannerImpl.setInputSource(Unknown Source)
    at
org.apache.xerces.impl.XMLDocumentScannerImpl$DTDDispatcher.dispatch(Unknown 
Source)
    at
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown
Source)
    at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
    at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
    at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
    at org.apache.xerces.parsers.DOMParser.parse(Unknown Source)
    at org.apache.xerces.jaxp.DocumentBuilderImpl.parse(Unknown Source)
    at javax.xml.parsers.DocumentBuilder.parse(DocumentBuilder.java:124)
    at
uk.ac.osswatch.simal.rdf.AbstractSimalRepository.addProject(AbstractSimalReposit
ory.java:309)
    ... 33 more

Original issue reported on code.google.com by robert.c...@gmail.com on 31 Aug 2009 at 10:52

GoogleCodeExporter commented 9 years ago
Thanks for the clarification, you are correct, I missed the subtle difference 
between
the URL in the subject and the URL in the error report.

Please note that the file at https://launchpad.net/subunit/+rdf is not a DOAP 
file
and therefore will not work. It would be a nice feature to be able able to 
import
Launchpad project details into Simal.

You are correct to point out at the submitted URL is not the same as the 
reported URL
so I will leave this issue open until we check the problem and also create a new
feature request to support Launchpad files.

Original comment by ross.gardler on 31 Aug 2009 at 3:35

GoogleCodeExporter commented 9 years ago
Thank you. I hadn't even noticed that the rdf launchpad uses isn't proper doap 
:(. Ah
well - I appreciate you taking the time to look into that.
Cheers,
Rob

Original comment by robert.c...@gmail.com on 2 Sep 2009 at 8:55

GoogleCodeExporter commented 9 years ago
Launchpad provides project data via RDF, but it is not a DOAP format.

We could support this format if there is enough demand.

See, for example, https://launchpad.net/subunit/+rdf

Original comment by ross.gardler on 25 Oct 2009 at 11:50

GoogleCodeExporter commented 9 years ago

Original comment by ross.gardler on 24 Nov 2009 at 5:00