Yes, i read that thread till the end but didn't tried MySql. I tried H2 to be sure if
it's database related issue but same stack trace. I am planning to use that wiki in
our server environment. We use weblogic as application server and Oracle11g as database
server. Actually, after i test standalone version in my desktop, i tried to deploy xwiki
to weblogic and had several errors. I passed all of them and stucked at this one. After
that i gave a try to Apache Tomcat and same issue. I am trying to make it work for a week
but i am desperate now. I think, i will use standalone version at the production
environment :)
-----Original Message-----
From: users [mailto:users-bounces@xwiki.org] On Behalf Of Clemens Klein-Robbenhaar
Sent: Wednesday, June 29, 2016 2:54 PM
To: users(a)xwiki.org
Subject: Re: [xwiki-users] NullPointerException at HqlSqlWalker.lookupProperty(
HqlSqlWalker.java:560)
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 :-/
_______________________________________________
users mailing list
users(a)xwiki.org
http://lists.xwiki.org/mailman/listinfo/users
Dikkat: Bu elektronik posta mesaji kisisel ve ozeldir. Eger size gonderilmediyse lutfen
gondericiyi bilgilendirip mesaji siliniz.Firmamiza gelen ve giden mesajlar virus
taramasindan gecirilmektedir. Mesajdaki gorusler gondericiye ait olup HAVELSAN A.S. resmi
gorusu olmak zorunda degildir. Attention: This e-mail message is private and privileged.If
you are not the recipient for whom this e-mail message is intended, please notify the
sender immediately and delete this e-mail message from your system.All sent and received
e-mail messages go through a virus scan. Any opinions presented in this e-mail message are
solely those of the author and do not necessarily represent HAVELSAN A.S.`s formal and
authorized views.