Re: [xwiki-users] NullPointerException at HqlSqlWalker.lookupProperty( HqlSqlWalker.java:560)
Hi, I found the reason. It's all beacause ojdbc6.jar. There are different jars for every different minor version change. I used jdbc connector for Oracle 11g ( 11.2.0.4.0 ) and my database version is 11.2.0.1.0. After i download correct one, problem solved. One thing to remember is Oracle named all of them as ojdbc6.jar. Thanks all. -Original Message- From: users [mailto:users-boun...@xwiki.org] On Behalf Of Kemalettin OCAK Sent: Wednesday, June 29, 2016 3:02 PM To: XWiki Users Subject: Re: [xwiki-users] NullPointerException at HqlSqlWalker.lookupProperty( HqlSqlWalker.java:560) 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-boun...@xwiki.org] On Behalf Of Clemens Klein-Robbenhaar Sent: Wednesday, June 29, 2016 2:54 PM To: users@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 :-/
Re: [xwiki-users] NullPointerException at HqlSqlWalker.lookupProperty( HqlSqlWalker.java:560)
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-boun...@xwiki.org] On Behalf Of Clemens Klein-Robbenhaar Sent: Wednesday, June 29, 2016 2:54 PM To: users@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@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 sy
Re: [xwiki-users] NullPointerException at HqlSqlWalker.lookupProperty( HqlSqlWalker.java:560)
) org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:53) org.xwiki.container.servlet.filters.internal.SetHTTPHeaderFilter.doFilter(SetHTTPHeaderFilter.java:63) org.xwiki.container.servlet.filters.internal.SavedRequestRestorerFilter.doFilter(SavedRequestRestorerFilter.java:208) org.xwiki.container.servlet.filters.internal.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:111) org.xwiki.resource.servlet.RoutingFilter.doFilter(RoutingFilter.java:137) -Original Message- From: users [mailto:users-boun...@xwiki.org] On Behalf Of Vincent Massol Sent: Wednesday, June 29, 2016 11:09 AM To: XWiki Users Subject: Re: [xwiki-users] NullPointerException at HqlSqlWalker.lookupProperty( HqlSqlWalker.java:560) Hi, > On 29 Jun 2016, at 09:37, Kemalettin OCAK <ko...@havelsan.com.tr> wrote: > > Hi, > > I am trying to deploy production version( .war deployment ) of XWIKI > to Oracle11g and Tomcat environment. I tried every version of xwiki with > different versions of Tomcat. It deploys the application succesfully but > when i request http://localhost:8080/xwiki keep getting "NullPointerException > at HqlSqlWalker.lookupProperty( HqlSqlWalker.java:560)" error. As far as i > see, tables are created at the database but i cant pass this error. You should be able to check the xwiki log files to provide the full stack trace. Thanks -Vincent > I also tried with tomcat and h2 database to check whether it's database > related issue and same stack trace. > I also tried with Weblogic 11g application server and Oracle 11g database and > same stack trace. > > > P.S: I could run standalone version. > > Kemalettin Ocak > Uzman Mühendis > Havelsan A.Ş. ___ users mailing list users@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. ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
[xwiki-users] NullPointerException at HqlSqlWalker.lookupProperty( HqlSqlWalker.java:560)
Hi, I am trying to deploy production version( .war deployment ) of XWIKI to Oracle11g and Tomcat environment. I tried every version of xwiki with different versions of Tomcat. It deploys the application succesfully but when i request http://localhost:8080/xwiki keep getting "NullPointerException at HqlSqlWalker.lookupProperty( HqlSqlWalker.java:560)" error. As far as i see, tables are created at the database but i cant pass this error. I also tried with tomcat and h2 database to check whether it's database related issue and same stack trace. I also tried with Weblogic 11g application server and Oracle 11g database and same stack trace. P.S: I could run standalone version. Kemalettin Ocak Uzman Mühendis Havelsan A.Ş. 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. ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users