[ 
https://issues.apache.org/jira/browse/MRM-1980?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Finn updated MRM-1980:
----------------------
    Description: 
I started Archive on a Linux server as well as on my local windows machine, and 
in both cases the url 
[http://\|http://issues.apache.org/]{host}:8080/#rest-docs-archiva-rest-api/application.wadl
 will result in an error:

{\{An error has happened you must contact the administrator to check the logs. 
}}

Accessing the rest service via 
[http://\|http://issues.apache.org/]{host}:8080/restServices works, but 
following any link will result in an empty page and a 404 status code. My first 
assumption was a configuration issue, but I could not find ANY information 
about this and the existing docs don't mention any configuration requirements 
to use the REST API

Additionally the wrapper.logs show the following exception:

 
{noformat}
INFO   | jvm 1    | 2018/06/13 12:35:36 | 2018-06-13 
12:35:35.992:WARN:oejs.ServletHandler:/rest-docs/rest-docs-archiva-rest-api/application.wadl
INFO   | jvm 1    | 2018/06/13 12:35:36 | java.lang.IllegalArgumentException: 
Object must not be null
INFO   | jvm 1    | 2018/06/13 12:35:36 |     at 
org.jsoup.helper.Validate.notNull(Validate.java:16)
INFO   | jvm 1    | 2018/06/13 12:35:36 |     at 
org.jsoup.nodes.Element.appendChild(Element.java:262)
INFO   | jvm 1    | 2018/06/13 12:35:36 |     at 
org.apache.archiva.web.docs.RestDocsServlet.doGet(RestDocsServlet.java:110)
INFO   | jvm 1    | 2018/06/13 12:35:36 |     at 
javax.servlet.http.HttpServlet.service(HttpServlet.java:735)
INFO   | jvm 1    | 2018/06/13 12:35:36 |     at 
javax.servlet.http.HttpServlet.service(HttpServlet.java:848)
INFO   | jvm 1    | 2018/06/13 12:35:36 |     at 
org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:684)
INFO   | jvm 1    | 2018/06/13 12:35:36 |     at 
org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:501)
INFO   | jvm 1    | 2018/06/13 12:35:36 |     at 
org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:137)
INFO   | jvm 1    | 2018/06/13 12:35:36 |     at 
org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:557)
INFO   | jvm 1    | 2018/06/13 12:35:36 |     at 
org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:231)
INFO   | jvm 1    | 2018/06/13 12:35:36 |     at 
org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1086)
INFO   | jvm 1    | 2018/06/13 12:35:36 |     at 
org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:428)
INFO   | jvm 1    | 2018/06/13 12:35:36 |     at 
org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:193)
INFO   | jvm 1    | 2018/06/13 12:35:36 |     at 
org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1020)
INFO   | jvm 1    | 2018/06/13 12:35:36 |     at 
org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:135)
INFO   | jvm 1    | 2018/06/13 12:35:36 |     at 
org.eclipse.jetty.server.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:255)
INFO   | jvm 1    | 2018/06/13 12:35:36 |     at 
org.eclipse.jetty.server.handler.HandlerCollection.handle(HandlerCollection.java:154)
INFO   | jvm 1    | 2018/06/13 12:35:36 |     at 
org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:116)
INFO   | jvm 1    | 2018/06/13 12:35:36 |     at 
org.eclipse.jetty.server.Server.handle(Server.java:370)
INFO   | jvm 1    | 2018/06/13 12:35:36 |     at 
org.eclipse.jetty.server.AbstractHttpConnection.handleRequest(AbstractHttpConnection.java:494)
INFO   | jvm 1    | 2018/06/13 12:35:36 |     at 
org.eclipse.jetty.server.AbstractHttpConnection.headerComplete(AbstractHttpConnection.java:971)
INFO   | jvm 1    | 2018/06/13 12:35:36 |     at 
org.eclipse.jetty.server.AbstractHttpConnection$RequestHandler.headerComplete(AbstractHttpConnection.java:1033)
INFO   | jvm 1    | 2018/06/13 12:35:36 |     at 
org.eclipse.jetty.http.HttpParser.parseNext(HttpParser.java:644)
INFO   | jvm 1    | 2018/06/13 12:35:36 |     at 
org.eclipse.jetty.http.HttpParser.parseAvailable(HttpParser.java:235)
INFO   | jvm 1    | 2018/06/13 12:35:36 |     at 
org.eclipse.jetty.server.AsyncHttpConnection.handle(AsyncHttpConnection.java:82)
INFO   | jvm 1    | 2018/06/13 12:35:36 |     at 
org.eclipse.jetty.io.nio.SelectChannelEndPoint.handle(SelectChannelEndPoint.java:667)
INFO   | jvm 1    | 2018/06/13 12:35:36 |     at 
org.eclipse.jetty.io.nio.SelectChannelEndPoint$1.run(SelectChannelEndPoint.java:52)
INFO   | jvm 1    | 2018/06/13 12:35:36 |     at 
org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:608)
INFO   | jvm 1    | 2018/06/13 12:35:36 |     at 
org.eclipse.jetty.util.thread.QueuedThreadPool$3.run(QueuedThreadPool.java:543)
INFO   | jvm 1    | 2018/06/13 12:35:36 |     at 
java.lang.Thread.run(Thread.java:748){noformat}

  was:
I started Archive on a Linux server as well as on my local windows machine, and 
in both cases the url 
http://\{host}:8080/#rest-docs-archiva-rest-api/application.wadl will result in 
an error:

{{An error has happened you must contact the administrator to check the logs. }}

Accessing the rest service via http://\{host}:8080/restServices works, but 
following any link will result in an empty page and a 404 status code. My first 
assumption was a configuration issue, but I could not find ANY information 
about this and the existing docs don't mention any configuration requirements 
to use the REST API


> Rest documentation & Rest services don't work
> ---------------------------------------------
>
>                 Key: MRM-1980
>                 URL: https://issues.apache.org/jira/browse/MRM-1980
>             Project: Archiva
>          Issue Type: Bug
>          Components: rest services
>    Affects Versions: 2.2.3
>            Reporter: Finn
>            Priority: Major
>
> I started Archive on a Linux server as well as on my local windows machine, 
> and in both cases the url 
> [http://\|http://issues.apache.org/]{host}:8080/#rest-docs-archiva-rest-api/application.wadl
>  will result in an error:
> {\{An error has happened you must contact the administrator to check the 
> logs. }}
> Accessing the rest service via 
> [http://\|http://issues.apache.org/]{host}:8080/restServices works, but 
> following any link will result in an empty page and a 404 status code. My 
> first assumption was a configuration issue, but I could not find ANY 
> information about this and the existing docs don't mention any configuration 
> requirements to use the REST API
> Additionally the wrapper.logs show the following exception:
>  
> {noformat}
> INFO   | jvm 1    | 2018/06/13 12:35:36 | 2018-06-13 
> 12:35:35.992:WARN:oejs.ServletHandler:/rest-docs/rest-docs-archiva-rest-api/application.wadl
> INFO   | jvm 1    | 2018/06/13 12:35:36 | java.lang.IllegalArgumentException: 
> Object must not be null
> INFO   | jvm 1    | 2018/06/13 12:35:36 |     at 
> org.jsoup.helper.Validate.notNull(Validate.java:16)
> INFO   | jvm 1    | 2018/06/13 12:35:36 |     at 
> org.jsoup.nodes.Element.appendChild(Element.java:262)
> INFO   | jvm 1    | 2018/06/13 12:35:36 |     at 
> org.apache.archiva.web.docs.RestDocsServlet.doGet(RestDocsServlet.java:110)
> INFO   | jvm 1    | 2018/06/13 12:35:36 |     at 
> javax.servlet.http.HttpServlet.service(HttpServlet.java:735)
> INFO   | jvm 1    | 2018/06/13 12:35:36 |     at 
> javax.servlet.http.HttpServlet.service(HttpServlet.java:848)
> INFO   | jvm 1    | 2018/06/13 12:35:36 |     at 
> org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:684)
> INFO   | jvm 1    | 2018/06/13 12:35:36 |     at 
> org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:501)
> INFO   | jvm 1    | 2018/06/13 12:35:36 |     at 
> org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:137)
> INFO   | jvm 1    | 2018/06/13 12:35:36 |     at 
> org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:557)
> INFO   | jvm 1    | 2018/06/13 12:35:36 |     at 
> org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:231)
> INFO   | jvm 1    | 2018/06/13 12:35:36 |     at 
> org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1086)
> INFO   | jvm 1    | 2018/06/13 12:35:36 |     at 
> org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:428)
> INFO   | jvm 1    | 2018/06/13 12:35:36 |     at 
> org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:193)
> INFO   | jvm 1    | 2018/06/13 12:35:36 |     at 
> org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1020)
> INFO   | jvm 1    | 2018/06/13 12:35:36 |     at 
> org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:135)
> INFO   | jvm 1    | 2018/06/13 12:35:36 |     at 
> org.eclipse.jetty.server.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:255)
> INFO   | jvm 1    | 2018/06/13 12:35:36 |     at 
> org.eclipse.jetty.server.handler.HandlerCollection.handle(HandlerCollection.java:154)
> INFO   | jvm 1    | 2018/06/13 12:35:36 |     at 
> org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:116)
> INFO   | jvm 1    | 2018/06/13 12:35:36 |     at 
> org.eclipse.jetty.server.Server.handle(Server.java:370)
> INFO   | jvm 1    | 2018/06/13 12:35:36 |     at 
> org.eclipse.jetty.server.AbstractHttpConnection.handleRequest(AbstractHttpConnection.java:494)
> INFO   | jvm 1    | 2018/06/13 12:35:36 |     at 
> org.eclipse.jetty.server.AbstractHttpConnection.headerComplete(AbstractHttpConnection.java:971)
> INFO   | jvm 1    | 2018/06/13 12:35:36 |     at 
> org.eclipse.jetty.server.AbstractHttpConnection$RequestHandler.headerComplete(AbstractHttpConnection.java:1033)
> INFO   | jvm 1    | 2018/06/13 12:35:36 |     at 
> org.eclipse.jetty.http.HttpParser.parseNext(HttpParser.java:644)
> INFO   | jvm 1    | 2018/06/13 12:35:36 |     at 
> org.eclipse.jetty.http.HttpParser.parseAvailable(HttpParser.java:235)
> INFO   | jvm 1    | 2018/06/13 12:35:36 |     at 
> org.eclipse.jetty.server.AsyncHttpConnection.handle(AsyncHttpConnection.java:82)
> INFO   | jvm 1    | 2018/06/13 12:35:36 |     at 
> org.eclipse.jetty.io.nio.SelectChannelEndPoint.handle(SelectChannelEndPoint.java:667)
> INFO   | jvm 1    | 2018/06/13 12:35:36 |     at 
> org.eclipse.jetty.io.nio.SelectChannelEndPoint$1.run(SelectChannelEndPoint.java:52)
> INFO   | jvm 1    | 2018/06/13 12:35:36 |     at 
> org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:608)
> INFO   | jvm 1    | 2018/06/13 12:35:36 |     at 
> org.eclipse.jetty.util.thread.QueuedThreadPool$3.run(QueuedThreadPool.java:543)
> INFO   | jvm 1    | 2018/06/13 12:35:36 |     at 
> java.lang.Thread.run(Thread.java:748){noformat}



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to