Uh, oh, this looks like this problem reported last year: http://markmail.org/thread/4iigsjpxdaw2qzzq the issue went away there when using mySQL - for unknown reasons, so that time we did not really find a solution. hope we can do better this time. ----- Ursprüngliche Nachricht ----- Von: Kemalettin Ocak Am: Wednesday, 29.06.2016, 12:20 An: Xwiki Users Betreff: Re: [xwiki-users] NullPointerException at HqlSqlWalker.lookupProperty( HqlSqlWalker.java:560)
Here is the root cause:
HTTP Status 500 - com.xpn.xwiki.XWikiException: Error number 11007 in 0: Failed to extract Entity Resource Reference from URL [http://localhost:8080/xwiki/bin/view/Main/]
type Exception report
message com.xpn.xwiki.XWikiException: Error number 11007 in 0: Failed to extract Entity Resource Reference from URL [http://localhost:8080/xwiki/bin/view/Main/]
description The server encountered an internal error that prevented it from fulfilling this request.
exception
javax.servlet.ServletException: com.xpn.xwiki.XWikiException: Error number 11007 in 0: Failed to extract Entity Resource Reference from URL [http://localhost:8080/xwiki/bin/view/Main/] org.apache.struts.action.RequestProcessor.processException(RequestProcessor.java:520) [...]
root cause
com.xpn.xwiki.XWikiException: Error number 11007 in 0: Failed to extract Entity Resource Reference from URL [http://localhost:8080/xwiki/bin/view/Main/] com.xpn.xwiki.XWiki.initializeResourceFromURL(XWiki.java:821) com.xpn.xwiki.XWiki.getXWiki(XWiki.java:764) [...] root cause
java.lang.RuntimeException: Failed to locate wiki descriptor for alias [localhost] org.xwiki.url.internal.standard.AbstractWikiReferenceExtractor.getWikiDescriptorByAlias(AbstractWikiReferenceExtractor.java:80) org.xwiki.url.internal.standard.DomainWikiReferenceExtractor.resolveDomainBasedWikiReference(DomainWikiReferenceExtractor.java:61) [...]
here is where the XWQL query is send as HQL query instead of being translated:
root cause
org.xwiki.query.QueryException: Exception while executing query. Query statement = [ select doc.fullName from XWikiDocument as doc , BaseObject as _o1 where ( doc.object ( XWiki.XWikiServerClass ) . server = :wikiAlias and doc.name like 'XWikiServer%' ) and doc.fullName=_o1.name and _o1.className='XWiki.XWikiServerClass' ] com.xpn.xwiki.store.hibernate.query.HqlQueryExecutor.execute(HqlQueryExecutor.java:175) org.xwiki.query.internal.DefaultQueryExecutorManager.execute(DefaultQueryExecutorManager.java:72) org.xwiki.query.internal.DefaultQuery.execute(DefaultQuery.java:287) org.xwiki.query.xwql.internal.XWQLQueryExecutor.execute(XWQLQueryExecutor.java:118)
[..]
root cause
java.lang.NullPointerException org.hibernate.hql.ast.HqlSqlWalker.lookupProperty(HqlSqlWalker.java:560) org.hibernate.hql.antlr.HqlSqlBaseWalker.addrExpr(HqlSqlBaseWalker.java:4774) org.hibernate.hql.antlr.HqlSqlBaseWalker.expr(HqlSqlBaseWalker.java:1326) [...]
and here the dot in " doc.fullName" or "doc.object" triggers the NPE in the hibernate HQL Query parser :-/