Re: [xwiki-users] XWiki 5.4.6 standalone: Failed to extract Entity Resource from URL
Hi Holger, In the end I’ve considered it a bug because if URL allows it then we should as XWiki’s inputs are URLs (the fact that we use URI internally is an implementation detail). So I’ve created http://jira.xwiki.org/browse/XWIKI-11401 and I’ve fixed it. Thanks -Vincent On 31 Oct 2014 at 15:48:35, Holger Zimmermann (holger.zimmerm...@eboek.de(mailto:holger.zimmerm...@eboek.de)) wrote: Hi Vincent, thanks for the quick answer... I can't ask companies admin to change the host name just for testing xwiki. I will install a serious XWiki-instance using MySQL on a machine without the _ character in name. May be this should go into installation notes or something. Thank you very much! Holger -Ursprüngliche Nachricht- Von: Vincent Massol [mailto:vmas...@gmail.com] Im Auftrag von vinc...@massol.net Gesendet: Freitag, 31. Oktober 2014 15:38 An: XWiki Users; Holger Zimmermann Betreff: Re: AW: [xwiki-users] XWiki 5.4.6 standalone: Failed to extract Entity Resource from URL Hi again, The issue is that we convert a URL to a URI (since the URL class has so many problems) and calling URI.getHost() returns null in your case and that’s because your host name contains the “_” character which is invalid for a URI (see http://docs.oracle.com/javase/7/docs/api/java/net/URI.html#getHost()), only “-“ (hyphen) is allowed. However URL.getHost() works fine for your case… But it’s probably wrong and shouldn’t since it’s not following the RFC 2396 (see http://www.ietf.org/rfc/rfc2396.txt). In any case, to fix your issue, you need to use a valid domain label ;) (remove the “_” or replace with “-“). I’m still hesitating about whether to call this a bug or a feature ;) Thanks -Vincent On 31 Oct 2014 at 15:01:57, Holger Zimmermann (holger.zimmerm...@eboek.de(mailto:holger.zimmerm...@eboek.de)) wrote: Hi Vincent, Thanks for picking this up… The whole stacktrace: Caused by: com.xpn.xwiki.XWikiException: Error number 11007 in 0: Failed to extract Entity Resource from URL [http://ricardo_tubbs.eboek.local:8080/xwiki/bin/view/Main/] at com.xpn.xwiki.XWiki.initializeResourceFromURL(XWiki.java:546) at com.xpn.xwiki.XWiki.getXWiki(XWiki.java:496) at com.xpn.xwiki.web.XWikiAction.execute(XWikiAction.java:153) at com.xpn.xwiki.web.XWikiAction.execute(XWikiAction.java:129) at org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:425) at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:228) at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1913) at org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:449) at javax.servlet.http.HttpServlet.service(HttpServlet.java:735) at javax.servlet.http.HttpServlet.service(HttpServlet.java:848) at org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:669) at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1448) at com.xpn.xwiki.web.ActionFilter.doFilter(ActionFilter.java:121) at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1419) at org.xwiki.wysiwyg.server.filter.ConversionFilter.doFilter(ConversionFilter.java:126) at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1419) at com.xpn.xwiki.plugin.webdav.XWikiDavFilter.doFilter(XWikiDavFilter.java:66) at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1419) at org.xwiki.container.servlet.filters.internal.SavedRequestRestorerFilter.doFilter(SavedRequestRestorerFilter.java:208) at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1419) at org.xwiki.container.servlet.filters.internal.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:111) at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1419) at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:455) at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:137) at org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:557) at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:231) at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1075) at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:384) at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:193) at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1009) at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:135
[xwiki-users] XWiki 5.4.6 standalone: Failed to extract Entity Resource from URL
Hello everybody, I just started to check out XWiki 5.4.6 in the standalone package (Win7, 32bit). It installed fine and I can play with it locally (http://localhost:8080). If I put http://hostname.domain:8080/ in a browser on a _remote_ machine, I get a HTTP error 500 telling me: Error number 11007 in 0: Failed to extract Entity Resource from URL [http://ricardo_tubbs.eboek.local:8080/xwiki/bin/view/Main/]; Is the standalone version meant to work just locally and that's it? If not: what should I check or fix in any way? Thanks, Holger ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
Re: [xwiki-users] XWiki 5.4.6 standalone: Failed to extract Entity Resource from URL
Hi Holger, On 31 Oct 2014 at 14:53:05, Holger Zimmermann (holger.zimmerm...@eboek.de(mailto:holger.zimmerm...@eboek.de)) wrote: Hello everybody, I just started to check out XWiki 5.4.6 in the standalone package (Win7, 32bit). It installed fine and I can play with it locally (http://localhost:8080). If I put http://.:8080/; in a browser on a _remote_ machine, I get a HTTP error 500 telling me: Error number 11007 in 0: Failed to extract Entity Resource from URL [http://ricardo_tubbs.eboek.local:8080/xwiki/bin/view/Main/]; Is the standalone version meant to work just locally and that's it? If not: what should I check or fix in any way? Could you paste the full stack trace you get? Thanks -Vincent Thanks, Holger ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
Re: [xwiki-users] XWiki 5.4.6 standalone: Failed to extract Entity Resource from URL
:455) at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:137) at org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:557) at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:231) at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1075) at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:384) at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:193) at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1009) at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:135) at org.eclipse.jetty.server.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:255) at org.eclipse.jetty.server.handler.HandlerCollection.handle(HandlerCollection.java:154) at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:116) at org.eclipse.jetty.server.Server.handle(Server.java:368) at org.eclipse.jetty.server.AbstractHttpConnection.handleRequest(AbstractHttpConnection.java:488) at org.eclipse.jetty.server.AbstractHttpConnection.headerComplete(AbstractHttpConnection.java:932) at org.eclipse.jetty.server.AbstractHttpConnection$RequestHandler.headerComplete(AbstractHttpConnection.java:994) at org.eclipse.jetty.http.HttpParser.parseNext(HttpParser.java:640) at org.eclipse.jetty.http.HttpParser.parseAvailable(HttpParser.java:235) at org.eclipse.jetty.server.AsyncHttpConnection.handle(AsyncHttpConnection.java:82) at org.eclipse.jetty.io.nio.SelectChannelEndPoint.handle(SelectChannelEndPoint.java:628) at org.eclipse.jetty.io.nio.SelectChannelEndPoint$1.run(SelectChannelEndPoint.java:52) at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:608) at org.eclipse.jetty.util.thread.QueuedThreadPool$3.run(QueuedThreadPool.java:543) at java.lang.Thread.run(Unknown Source) kind regards, Holger Von: Vincent Massol [mailto:vmas...@gmail.com] Im Auftrag von vinc...@massol.net Gesendet: Freitag, 31. Oktober 2014 14:59 An: Holger Zimmermann; XWiki Users Betreff: Re: [xwiki-users] XWiki 5.4.6 standalone: Failed to extract Entity Resource from URL Hi Holger, On 31 Oct 2014 at 14:53:05, Holger Zimmermann (holger.zimmerm...@eboek.de(mailto:holger.zimmerm...@eboek.de))mailto:holger.zimmerm...@eboek.de(mailto:holger.zimmerm...@eboek.de)) wrote: Hello everybody, I just started to check out XWiki 5.4.6 in the standalone package (Win7, 32bit). It installed fine and I can play with it locally (http://localhost:8080). If I put http://.:8080/; in a browser on a _remote_ machine, I get a HTTP error 500 telling me: Error number 11007 in 0: Failed to extract Entity Resource from URL [http://ricardo_tubbs.eboek.local:8080/xwiki/bin/view/Main/]; Is the standalone version meant to work just locally and that's it? If not: what should I check or fix in any way? Could you paste the full stack trace you get? Thanks -Vincent Thanks, Holger ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
Re: [xwiki-users] XWiki 5.4.6 standalone: Failed to extract Entity Resource from URL
Hi Vincent, thanks for the quick answer... I can't ask companies admin to change the host name just for testing xwiki. I will install a serious XWiki-instance using MySQL on a machine without the _ character in name. May be this should go into installation notes or something. Thank you very much! Holger -Ursprüngliche Nachricht- Von: Vincent Massol [mailto:vmas...@gmail.com] Im Auftrag von vinc...@massol.net Gesendet: Freitag, 31. Oktober 2014 15:38 An: XWiki Users; Holger Zimmermann Betreff: Re: AW: [xwiki-users] XWiki 5.4.6 standalone: Failed to extract Entity Resource from URL Hi again, The issue is that we convert a URL to a URI (since the URL class has so many problems) and calling URI.getHost() returns null in your case and that’s because your host name contains the “_” character which is invalid for a URI (see http://docs.oracle.com/javase/7/docs/api/java/net/URI.html#getHost()), only “-“ (hyphen) is allowed. However URL.getHost() works fine for your case… But it’s probably wrong and shouldn’t since it’s not following the RFC 2396 (see http://www.ietf.org/rfc/rfc2396.txt). In any case, to fix your issue, you need to use a valid domain label ;) (remove the “_” or replace with “-“). I’m still hesitating about whether to call this a bug or a feature ;) Thanks -Vincent On 31 Oct 2014 at 15:01:57, Holger Zimmermann (holger.zimmerm...@eboek.de(mailto:holger.zimmerm...@eboek.de)) wrote: Hi Vincent, Thanks for picking this up… The whole stacktrace: Caused by: com.xpn.xwiki.XWikiException: Error number 11007 in 0: Failed to extract Entity Resource from URL [http://ricardo_tubbs.eboek.local:8080/xwiki/bin/view/Main/] at com.xpn.xwiki.XWiki.initializeResourceFromURL(XWiki.java:546) at com.xpn.xwiki.XWiki.getXWiki(XWiki.java:496) at com.xpn.xwiki.web.XWikiAction.execute(XWikiAction.java:153) at com.xpn.xwiki.web.XWikiAction.execute(XWikiAction.java:129) at org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:425) at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:228) at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1913) at org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:449) at javax.servlet.http.HttpServlet.service(HttpServlet.java:735) at javax.servlet.http.HttpServlet.service(HttpServlet.java:848) at org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:669) at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1448) at com.xpn.xwiki.web.ActionFilter.doFilter(ActionFilter.java:121) at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1419) at org.xwiki.wysiwyg.server.filter.ConversionFilter.doFilter(ConversionFilter.java:126) at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1419) at com.xpn.xwiki.plugin.webdav.XWikiDavFilter.doFilter(XWikiDavFilter.java:66) at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1419) at org.xwiki.container.servlet.filters.internal.SavedRequestRestorerFilter.doFilter(SavedRequestRestorerFilter.java:208) at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1419) at org.xwiki.container.servlet.filters.internal.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:111) at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1419) at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:455) at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:137) at org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:557) at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:231) at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1075) at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:384) at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:193) at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1009) at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:135) at org.eclipse.jetty.server.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:255) at org.eclipse.jetty.server.handler.HandlerCollection.handle(HandlerCollection.java:154) at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:116) at org.eclipse.jetty.server.Server.handle(Server.java:368) at org.eclipse.jetty.server.AbstractHttpConnection.handleRequest(AbstractHttpConnection.java:488