[xwiki-users] Unable to deploy xwiki with weblogic portal & oracle
Hi I downloaded xwiki war file and changed the hbm.cfg.xml , xwiki.hbm.xml I am using weblogic portal and oracle9i. After deploying when i used the following url http://localhost:7788/xwiki/bin/view/Main/WebHome. I got the following error Error number 3 in 0: Could not initialize main XWiki context Wrapped Exception: Error number 3202 in 3: Exception while reading document XWiki.XWikiPreferences Wrapped Exception: could not load an entity: [com.xpn.xwiki.doc.XWikiDocument#104408758] Can somebody help me out -- View this message in context: http://www.nabble.com/Unable-to-deploy-xwiki-with-weblogic-portal---oracle-t... Sent from the XWiki- Users mailing list archive at Nabble.com.
sanjayV wrote:
Hi
I downloaded xwiki war file and changed the hbm.cfg.xml , xwiki.hbm.xml I am using weblogic portal and oracle9i. After deploying when i used the following url http://localhost:7788/xwiki/bin/view/Main/WebHome.
I got the following error Error number 3 in 0: Could not initialize main XWiki context Wrapped Exception: Error number 3202 in 3: Exception while reading document XWiki.XWikiPreferences Wrapped Exception: could not load an entity: [com.xpn.xwiki.doc.XWikiDocument#104408758]
Can somebody help me out
Hi, Can you give some more details? - What version of XWiki Enterprise are you using? - Did you also add the oracle jdbc connector? - Can you give a longer stacktrace? Don't be too pushy, we got all your past messages. Just be patient. -- Sergiu Dumitriu http://purl.org/net/sergiu/
Sorry for that. i was not sure my message was submitted for the first time. thats the reason i tried couple of times I am using xwiki-web-1.1.2. Not sure what do you mean by oracle jdbc connector. The following is the stack Wrapped Exception: com.xpn.xwiki.XWikiException: Error number 3212 in 3: Exception while loading ar chive -237,561,194 Wrapped Exception: could not load an entity: [com.xpn.xwiki.doc.XWikiDocumentArc hive#-237561194] at com.xpn.xwiki.store.XWikiHibernateVersioningStore.loadXWikiDocArchive (XWikiHibernateVersioningStore.java:118) at com.xpn.xwiki.store.XWikiHibernateVersioningStore.getXWikiDocumentArc hive(XWikiHibernateVersioningStore.java:87) at com.xpn.xwiki.store.XWikiHibernateVersioningStore.updateXWikiDocArchi ve(XWikiHibernateVersioningStore.java:238) at com.xpn.xwiki.store.XWikiHibernateStore.saveXWikiDoc(XWikiHibernateSt ore.java:245) at com.xpn.xwiki.store.XWikiCacheStore.saveXWikiDoc(XWikiCacheStore.java :97) at com.xpn.xwiki.store.XWikiCacheStore.saveXWikiDoc(XWikiCacheStore.java :91) at com.xpn.xwiki.XWiki.saveDocument(XWiki.java:957) at com.xpn.xwiki.XWiki.saveDocument(XWiki.java:935) at com.xpn.xwiki.plugin.calendar.CalendarPlugin.getCalendarEventClass(Ca lendarPlugin.java:82) at com.xpn.xwiki.plugin.calendar.CalendarPlugin.init(CalendarPlugin.java :294) at com.xpn.xwiki.plugin.XWikiPluginManager.initPlugin(XWikiPluginManager .java:130) at com.xpn.xwiki.plugin.XWikiPluginManager.addPlugin(XWikiPluginManager. java:69) at com.xpn.xwiki.plugin.XWikiPluginManager.addPlugins(XWikiPluginManager .java:95) at com.xpn.xwiki.XWiki.preparePlugins(XWiki.java:754) at com.xpn.xwiki.XWiki.initXWiki(XWiki.java:708) at com.xpn.xwiki.XWiki.<init>(XWiki.java:611) at com.xpn.xwiki.XWiki.getMainXWiki(XWiki.java:238) at com.xpn.xwiki.XWiki.getXWiki(XWiki.java:397) at com.xpn.xwiki.web.XWikiAction.execute(XWikiAction.java:94) at org.apache.struts.action.RequestProcessor.processActionPerform(Reques tProcessor.java:431) at org.apache.struts.action.RequestProcessor.process(RequestProcessor.ja va:236) at org.apache.struts.action.ActionServlet.process(ActionServlet.java:119 6) at org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:414) at javax.servlet.http.HttpServlet.service(HttpServlet.java:740) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at weblogic.servlet.internal.ServletStubImpl$ServletInvocationAction.run (ServletStubImpl.java:1006) at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubIm pl.java:419) at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:28) at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.ja va:27) at com.bea.p13n.servlets.PortalServletFilter.doFilter(PortalServletFilte r.java:293) at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.ja va:27) at com.xpn.xwiki.web.SetCharacterEncodingFilter.doFilter(SetCharacterEnc odingFilter.java:117) at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.ja va:27) at weblogic.servlet.internal.WebAppServletContext$ServletInvocationActio n.run(WebAppServletContext.java:6724) at weblogic.security.acl.internal.AuthenticatedSubject.doAs(Authenticate dSubject.java:321) at weblogic.security.service.SecurityManager.runAs(SecurityManager.java: 121) at weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppSe rvletContext.java:3764) at weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestIm pl.java:2644) at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:219) at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:178) Wrapped Exception: java.sql.SQLException: ORA-00942: table or view does not exist at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java :125) at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:305) at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:272) at oracle.jdbc.driver.T4C8Oall.receive(T4C8Oall.java:623) at oracle.jdbc.driver.T4CPreparedStatement.doOall8(T4CPreparedStatement. java:181) at oracle.jdbc.driver.T4CPreparedStatement.execute_for_describe(T4CPrepa redStatement.java:420) at oracle.jdbc.driver.OracleStatement.execute_maybe_describe(OracleState ment.java:894) at oracle.jdbc.driver.T4CPreparedStatement.execute_maybe_describe(T4CPre paredStatement.java:452) at oracle.jdbc.driver.OracleStatement.doExecuteWithTimeout(OracleStateme nt.java:984) at oracle.jdbc.driver.OraclePreparedStatement.executeInternal(OraclePrep aredStatement.java:2885) at oracle.jdbc.driver.OraclePreparedStatement.executeQuery(OraclePrepare dStatement.java:2926) at org.apache.commons.dbcp.DelegatingPreparedStatement.executeQuery(Dele gatingPreparedStatement.java:93) at org.hibernate.jdbc.AbstractBatcher.getResultSet(AbstractBatcher.java: 139) at org.hibernate.loader.Loader.getResultSet(Loader.java:1669) at org.hibernate.loader.Loader.doQuery(Loader.java:662) at org.hibernate.loader.Loader.doQueryAndInitializeNonLazyCollections(Lo ader.java:224) at org.hibernate.loader.Loader.loadEntity(Loader.java:1785) at org.hibernate.loader.entity.AbstractEntityLoader.load(AbstractEntityL oader.java:93) at org.hibernate.loader.entity.AbstractEntityLoader.load(AbstractEntityL oader.java:81) at org.hibernate.persister.entity.AbstractEntityPersister.load(AbstractE ntityPersister.java:2730) at org.hibernate.event.def.DefaultLoadEventListener.loadFromDatasource(D efaultLoadEventListener.java:365) at org.hibernate.event.def.DefaultLoadEventListener.doLoad(DefaultLoadEv entListener.java:346) at org.hibernate.event.def.DefaultLoadEventListener.load(DefaultLoadEven tListener.java:123) at org.hibernate.event.def.DefaultLoadEventListener.proxyOrLoad(DefaultL oadEventListener.java:177) at org.hibernate.event.def.DefaultLoadEventListener.onLoad(DefaultLoadEv entListener.java:87) at org.hibernate.impl.SessionImpl.fireLoad(SessionImpl.java:891) at org.hibernate.impl.SessionImpl.load(SessionImpl.java:799) at com.xpn.xwiki.store.XWikiHibernateVersioningStore.loadXWikiDocArchive (XWikiHibernateVersioningStore.java:108) at com.xpn.xwiki.store.XWikiHibernateVersioningStore.getXWikiDocumentArc hive(XWikiHibernateVersioningStore.java:87) at com.xpn.xwiki.store.XWikiHibernateVersioningStore.updateXWikiDocArchi ve(XWikiHibernateVersioningStore.java:238) at com.xpn.xwiki.store.XWikiHibernateStore.saveXWikiDoc(XWikiHibernateSt ore.java:245) at com.xpn.xwiki.store.XWikiCacheStore.saveXWikiDoc(XWikiCacheStore.java :97) at com.xpn.xwiki.store.XWikiCacheStore.saveXWikiDoc(XWikiCacheStore.java :91) at com.xpn.xwiki.XWiki.saveDocument(XWiki.java:957) at com.xpn.xwiki.XWiki.saveDocument(XWiki.java:935) at com.xpn.xwiki.plugin.calendar.CalendarPlugin.getCalendarEventClass(Ca lendarPlugin.java:82) at com.xpn.xwiki.plugin.calendar.CalendarPlugin.init(CalendarPlugin.java :294) at com.xpn.xwiki.plugin.XWikiPluginManager.initPlugin(XWikiPluginManager .java:130) at com.xpn.xwiki.plugin.XWikiPluginManager.addPlugin(XWikiPluginManager. java:69) at com.xpn.xwiki.plugin.XWikiPluginManager.addPlugins(XWikiPluginManager .java:95) at com.xpn.xwiki.XWiki.preparePlugins(XWiki.java:754) at com.xpn.xwiki.XWiki.initXWiki(XWiki.java:708) at com.xpn.xwiki.XWiki.<init>(XWiki.java:611) at com.xpn.xwiki.XWiki.getMainXWiki(XWiki.java:238) at com.xpn.xwiki.XWiki.getXWiki(XWiki.java:397) at com.xpn.xwiki.web.XWikiAction.execute(XWikiAction.java:94) at org.apache.struts.action.RequestProcessor.processActionPerform(Reques tProcessor.java:431) at org.apache.struts.action.RequestProcessor.process(RequestProcessor.ja va:236) at org.apache.struts.action.ActionServlet.process(ActionServlet.java:119 6) at org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:414) at javax.servlet.http.HttpServlet.service(HttpServlet.java:740) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at weblogic.servlet.internal.ServletStubImpl$ServletInvocationAction.run (ServletStubImpl.java:1006) at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubIm pl.java:419) at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:28) at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.ja va:27) at com.bea.p13n.servlets.PortalServletFilter.doFilter(PortalServletFilte r.java:293) at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.ja va:27) at com.xpn.xwiki.web.SetCharacterEncodingFilter.doFilter(SetCharacterEnc odingFilter.java:117) at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.ja va:27) at weblogic.servlet.internal.WebAppServletContext$ServletInvocationActio n.run(WebAppServletContext.java:6724) at weblogic.security.acl.internal.AuthenticatedSubject.doAs(Authenticate dSubject.java:321) at weblogic.security.service.SecurityManager.runAs(SecurityManager.java: 121) at weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppSe rvletContext.java:3764) at weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestIm pl.java:2644) at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:219) at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:178) com.xpn.xwiki.XWikiException: Error number 3223 in 3: Exception while searching documents with SQL [select distinct doc.web, doc.name from XWikiDocument as doc] Wrapped Exception: ClassNotFoundException: org.hibernate.hql.ast.HqlToken [selec t distinct doc.web, doc.name from com.xpn.xwiki.doc.XWikiDocument as doc] at com.xpn.xwiki.store.XWikiHibernateStore.searchDocumentsNamesInternal( XWikiHibernateStore.java:1852) at com.xpn.xwiki.store.XWikiHibernateStore.searchDocumentsNames(XWikiHib ernateStore.java:1811) at com.xpn.xwiki.store.XWikiHibernateStore.searchDocumentsNames(XWikiHib ernateStore.java:2231) at com.xpn.xwiki.store.XWikiCacheStore.searchDocumentsNames(XWikiCacheSt ore.java:200) at com.xpn.xwiki.plugin.lucene.IndexRebuilder.indexWiki(IndexRebuilder.j ava:116) at com.xpn.xwiki.plugin.lucene.IndexRebuilder.rebuildIndex(IndexRebuilde r.java:92) at com.xpn.xwiki.plugin.lucene.IndexRebuilder.<init>(IndexRebuilder.java :57) at com.xpn.xwiki.plugin.lucene.LucenePlugin.init(LucenePlugin.java:361) at com.xpn.xwiki.plugin.XWikiPluginManager.initPlugin(XWikiPluginManager .java:130) at com.xpn.xwiki.plugin.XWikiPluginManager.addPlugin(XWikiPluginManager. java:69) at com.xpn.xwiki.plugin.XWikiPluginManager.addPlugins(XWikiPluginManager .java:95) at com.xpn.xwiki.XWiki.preparePlugins(XWiki.java:754) at com.xpn.xwiki.XWiki.initXWiki(XWiki.java:708) at com.xpn.xwiki.XWiki.<init>(XWiki.java:611) at com.xpn.xwiki.XWiki.getMainXWiki(XWiki.java:238) at com.xpn.xwiki.XWiki.getXWiki(XWiki.java:397) at com.xpn.xwiki.web.XWikiAction.execute(XWikiAction.java:94) at org.apache.struts.action.RequestProcessor.processActionPerform(Reques tProcessor.java:431) at org.apache.struts.action.RequestProcessor.process(RequestProcessor.ja va:236) at org.apache.struts.action.ActionServlet.process(ActionServlet.java:119 6) at org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:414) at javax.servlet.http.HttpServlet.service(HttpServlet.java:740) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at weblogic.servlet.internal.ServletStubImpl$ServletInvocationAction.run (ServletStubImpl.java:1006) at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubIm pl.java:419) at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:28) at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.ja va:27) at com.bea.p13n.servlets.PortalServletFilter.doFilter(PortalServletFilte r.java:293) at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.ja va:27) at com.xpn.xwiki.web.SetCharacterEncodingFilter.doFilter(SetCharacterEnc odingFilter.java:117) at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.ja va:27) at weblogic.servlet.internal.WebAppServletContext$ServletInvocationActio n.run(WebAppServletContext.java:6724) at weblogic.security.acl.internal.AuthenticatedSubject.doAs(Authenticate dSubject.java:321) at weblogic.security.service.SecurityManager.runAs(SecurityManager.java: 121) at weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppSe rvletContext.java:3764) at weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestIm pl.java:2644) at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:219) at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:178) Sergiu Dumitriu-2 wrote:
sanjayV wrote:
Hi
I downloaded xwiki war file and changed the hbm.cfg.xml , xwiki.hbm.xml I am using weblogic portal and oracle9i. After deploying when i used the following url http://localhost:7788/xwiki/bin/view/Main/WebHome.
I got the following error Error number 3 in 0: Could not initialize main XWiki context Wrapped Exception: Error number 3202 in 3: Exception while reading document XWiki.XWikiPreferences Wrapped Exception: could not load an entity: [com.xpn.xwiki.doc.XWikiDocument#104408758]
Can somebody help me out
Hi,
Can you give some more details? - What version of XWiki Enterprise are you using? - Did you also add the oracle jdbc connector? - Can you give a longer stacktrace?
Don't be too pushy, we got all your past messages. Just be patient.
-- Sergiu Dumitriu http://purl.org/net/sergiu/ _______________________________________________ users mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/users
-- View this message in context: http://www.nabble.com/Unable-to-deploy-xwiki-with-weblogic-portal---oracle-t... Sent from the XWiki- Users mailing list archive at Nabble.com.
sanjayV wrote:
Sorry for that. i was not sure my message was submitted for the first time. thats the reason i tried couple of times I am using xwiki-web-1.1.2. Not sure what do you mean by oracle jdbc connector.
The following is the stack
Wrapped Exception:
Wrapped Exception:
java.sql.SQLException: ORA-00942: table or view does not exist
at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java :125)
what is the name of the Oracle DB user? -- Regards Gabe Wong NGASI AppServer Manager JAVA AUTOMATION and SaaS Enablement <a href=http://www.ngasi.com>http://www.ngasi.com</a> NEW! 8.0 - Centrally manage multiple physical servers
Hello, I have installed xwiki 1.2 (MySql, Tomcat 5), and created a second blog following a suggestion in a previous postage to this list (by adding the $space variable to the blog macro). Everything seems to work just fine, but nevertheless I get error messages displayed on the Tomcat console, such as: 16:40:41,008 [http://iiscs.wssu.edu/xwiki/bin/view/Blog/] [http-80-Processor4] ERROR log.SimpleLog4JLogSystem - Left side ($bentrydoc.fullName) of '==' operation has null value. If a reference, it may not be in the context. Operation not possible. Blog.WebHome [line 20, column 28] It seems that the error is in the Blog.Macros' line below (I edited the original line to include $space): #if(($bentrydoc.fullName == $item)&& (!$space ||($space=="") || ($bentrydoc.getSpace()==$space)) ) Is it normal to get those kind of messages, and if not, is this a result of my modification, and how can I fix it? Since I don't really know Velocity, any advice will be highly appreciated. Thanks, Darina
sanjayV wrote:
Sorry for that. i was not sure my message was submitted for the first time. thats the reason i tried couple of times I am using xwiki-web-1.1.2. Not sure what do you mean by oracle jdbc connector.
The connector is there, as the stacktrace shows. I would recommend switching to XWiki 1.2.1, as it fixes several problems with Oracle. The problem is that the database schema is not correctly created. When you said that you changed xwiki.hbm.xml, what exactly did you change? Were there other errors before this one in the log? If you connect directly to the database, can you see some tables in the xwiki database?
The following is the stack
Wrapped Exception:
com.xpn.xwiki.XWikiException: Error number 3212 in 3: Exception while loading ar chive -237,561,194 Wrapped Exception: could not load an entity: [com.xpn.xwiki.doc.XWikiDocumentArc hive#-237561194] at com.xpn.xwiki.store.XWikiHibernateVersioningStore.loadXWikiDocArchive (XWikiHibernateVersioningStore.java:118) at com.xpn.xwiki.store.XWikiHibernateVersioningStore.getXWikiDocumentArc hive(XWikiHibernateVersioningStore.java:87) at com.xpn.xwiki.store.XWikiHibernateVersioningStore.updateXWikiDocArchi ve(XWikiHibernateVersioningStore.java:238) at com.xpn.xwiki.store.XWikiHibernateStore.saveXWikiDoc(XWikiHibernateSt ore.java:245) at com.xpn.xwiki.store.XWikiCacheStore.saveXWikiDoc(XWikiCacheStore.java :97) at com.xpn.xwiki.store.XWikiCacheStore.saveXWikiDoc(XWikiCacheStore.java :91) at com.xpn.xwiki.XWiki.saveDocument(XWiki.java:957) at com.xpn.xwiki.XWiki.saveDocument(XWiki.java:935) at com.xpn.xwiki.plugin.calendar.CalendarPlugin.getCalendarEventClass(Ca lendarPlugin.java:82) at com.xpn.xwiki.plugin.calendar.CalendarPlugin.init(CalendarPlugin.java :294) at com.xpn.xwiki.plugin.XWikiPluginManager.initPlugin(XWikiPluginManager .java:130) at com.xpn.xwiki.plugin.XWikiPluginManager.addPlugin(XWikiPluginManager. java:69) at com.xpn.xwiki.plugin.XWikiPluginManager.addPlugins(XWikiPluginManager .java:95) at com.xpn.xwiki.XWiki.preparePlugins(XWiki.java:754) at com.xpn.xwiki.XWiki.initXWiki(XWiki.java:708) at com.xpn.xwiki.XWiki.<init>(XWiki.java:611) at com.xpn.xwiki.XWiki.getMainXWiki(XWiki.java:238) at com.xpn.xwiki.XWiki.getXWiki(XWiki.java:397) at com.xpn.xwiki.web.XWikiAction.execute(XWikiAction.java:94) at org.apache.struts.action.RequestProcessor.processActionPerform(Reques tProcessor.java:431) at org.apache.struts.action.RequestProcessor.process(RequestProcessor.ja va:236) at org.apache.struts.action.ActionServlet.process(ActionServlet.java:119 6) at org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:414) at javax.servlet.http.HttpServlet.service(HttpServlet.java:740) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at weblogic.servlet.internal.ServletStubImpl$ServletInvocationAction.run (ServletStubImpl.java:1006) at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubIm pl.java:419) at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:28) at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.ja va:27) at com.bea.p13n.servlets.PortalServletFilter.doFilter(PortalServletFilte r.java:293) at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.ja va:27) at com.xpn.xwiki.web.SetCharacterEncodingFilter.doFilter(SetCharacterEnc odingFilter.java:117) at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.ja va:27) at weblogic.servlet.internal.WebAppServletContext$ServletInvocationActio n.run(WebAppServletContext.java:6724) at weblogic.security.acl.internal.AuthenticatedSubject.doAs(Authenticate dSubject.java:321) at weblogic.security.service.SecurityManager.runAs(SecurityManager.java: 121) at weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppSe rvletContext.java:3764) at weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestIm pl.java:2644) at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:219) at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:178)
Wrapped Exception:
java.sql.SQLException: ORA-00942: table or view does not exist
at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java :125) at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:305) at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:272) at oracle.jdbc.driver.T4C8Oall.receive(T4C8Oall.java:623) at oracle.jdbc.driver.T4CPreparedStatement.doOall8(T4CPreparedStatement. java:181) at oracle.jdbc.driver.T4CPreparedStatement.execute_for_describe(T4CPrepa redStatement.java:420) at oracle.jdbc.driver.OracleStatement.execute_maybe_describe(OracleState ment.java:894) at oracle.jdbc.driver.T4CPreparedStatement.execute_maybe_describe(T4CPre paredStatement.java:452) at oracle.jdbc.driver.OracleStatement.doExecuteWithTimeout(OracleStateme nt.java:984) at oracle.jdbc.driver.OraclePreparedStatement.executeInternal(OraclePrep aredStatement.java:2885) at oracle.jdbc.driver.OraclePreparedStatement.executeQuery(OraclePrepare dStatement.java:2926) at org.apache.commons.dbcp.DelegatingPreparedStatement.executeQuery(Dele gatingPreparedStatement.java:93) at org.hibernate.jdbc.AbstractBatcher.getResultSet(AbstractBatcher.java: 139) at org.hibernate.loader.Loader.getResultSet(Loader.java:1669) at org.hibernate.loader.Loader.doQuery(Loader.java:662) at org.hibernate.loader.Loader.doQueryAndInitializeNonLazyCollections(Lo ader.java:224) at org.hibernate.loader.Loader.loadEntity(Loader.java:1785) at org.hibernate.loader.entity.AbstractEntityLoader.load(AbstractEntityL oader.java:93) at org.hibernate.loader.entity.AbstractEntityLoader.load(AbstractEntityL oader.java:81) at org.hibernate.persister.entity.AbstractEntityPersister.load(AbstractE ntityPersister.java:2730) at org.hibernate.event.def.DefaultLoadEventListener.loadFromDatasource(D efaultLoadEventListener.java:365) at org.hibernate.event.def.DefaultLoadEventListener.doLoad(DefaultLoadEv entListener.java:346) at org.hibernate.event.def.DefaultLoadEventListener.load(DefaultLoadEven tListener.java:123) at org.hibernate.event.def.DefaultLoadEventListener.proxyOrLoad(DefaultL oadEventListener.java:177) at org.hibernate.event.def.DefaultLoadEventListener.onLoad(DefaultLoadEv entListener.java:87) at org.hibernate.impl.SessionImpl.fireLoad(SessionImpl.java:891) at org.hibernate.impl.SessionImpl.load(SessionImpl.java:799) at com.xpn.xwiki.store.XWikiHibernateVersioningStore.loadXWikiDocArchive (XWikiHibernateVersioningStore.java:108) at com.xpn.xwiki.store.XWikiHibernateVersioningStore.getXWikiDocumentArc hive(XWikiHibernateVersioningStore.java:87) at com.xpn.xwiki.store.XWikiHibernateVersioningStore.updateXWikiDocArchi ve(XWikiHibernateVersioningStore.java:238) at com.xpn.xwiki.store.XWikiHibernateStore.saveXWikiDoc(XWikiHibernateSt ore.java:245) at com.xpn.xwiki.store.XWikiCacheStore.saveXWikiDoc(XWikiCacheStore.java :97) at com.xpn.xwiki.store.XWikiCacheStore.saveXWikiDoc(XWikiCacheStore.java :91) at com.xpn.xwiki.XWiki.saveDocument(XWiki.java:957) at com.xpn.xwiki.XWiki.saveDocument(XWiki.java:935) at com.xpn.xwiki.plugin.calendar.CalendarPlugin.getCalendarEventClass(Ca lendarPlugin.java:82) at com.xpn.xwiki.plugin.calendar.CalendarPlugin.init(CalendarPlugin.java :294) at com.xpn.xwiki.plugin.XWikiPluginManager.initPlugin(XWikiPluginManager .java:130) at com.xpn.xwiki.plugin.XWikiPluginManager.addPlugin(XWikiPluginManager. java:69) at com.xpn.xwiki.plugin.XWikiPluginManager.addPlugins(XWikiPluginManager .java:95) at com.xpn.xwiki.XWiki.preparePlugins(XWiki.java:754) at com.xpn.xwiki.XWiki.initXWiki(XWiki.java:708) at com.xpn.xwiki.XWiki.<init>(XWiki.java:611) at com.xpn.xwiki.XWiki.getMainXWiki(XWiki.java:238) at com.xpn.xwiki.XWiki.getXWiki(XWiki.java:397) at com.xpn.xwiki.web.XWikiAction.execute(XWikiAction.java:94) at org.apache.struts.action.RequestProcessor.processActionPerform(Reques tProcessor.java:431) at org.apache.struts.action.RequestProcessor.process(RequestProcessor.ja va:236) at org.apache.struts.action.ActionServlet.process(ActionServlet.java:119 6) at org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:414) at javax.servlet.http.HttpServlet.service(HttpServlet.java:740) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at weblogic.servlet.internal.ServletStubImpl$ServletInvocationAction.run (ServletStubImpl.java:1006) at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubIm pl.java:419) at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:28) at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.ja va:27) at com.bea.p13n.servlets.PortalServletFilter.doFilter(PortalServletFilte r.java:293) at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.ja va:27) at com.xpn.xwiki.web.SetCharacterEncodingFilter.doFilter(SetCharacterEnc odingFilter.java:117) at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.ja va:27) at weblogic.servlet.internal.WebAppServletContext$ServletInvocationActio n.run(WebAppServletContext.java:6724) at weblogic.security.acl.internal.AuthenticatedSubject.doAs(Authenticate dSubject.java:321) at weblogic.security.service.SecurityManager.runAs(SecurityManager.java: 121) at weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppSe rvletContext.java:3764) at weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestIm pl.java:2644) at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:219) at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:178) com.xpn.xwiki.XWikiException: Error number 3223 in 3: Exception while searching documents with SQL [select distinct doc.web, doc.name from XWikiDocument as doc]
Wrapped Exception: ClassNotFoundException: org.hibernate.hql.ast.HqlToken [selec t distinct doc.web, doc.name from com.xpn.xwiki.doc.XWikiDocument as doc] at com.xpn.xwiki.store.XWikiHibernateStore.searchDocumentsNamesInternal( XWikiHibernateStore.java:1852) at com.xpn.xwiki.store.XWikiHibernateStore.searchDocumentsNames(XWikiHib ernateStore.java:1811) at com.xpn.xwiki.store.XWikiHibernateStore.searchDocumentsNames(XWikiHib ernateStore.java:2231) at com.xpn.xwiki.store.XWikiCacheStore.searchDocumentsNames(XWikiCacheSt ore.java:200) at com.xpn.xwiki.plugin.lucene.IndexRebuilder.indexWiki(IndexRebuilder.j ava:116) at com.xpn.xwiki.plugin.lucene.IndexRebuilder.rebuildIndex(IndexRebuilde r.java:92) at com.xpn.xwiki.plugin.lucene.IndexRebuilder.<init>(IndexRebuilder.java :57) at com.xpn.xwiki.plugin.lucene.LucenePlugin.init(LucenePlugin.java:361) at com.xpn.xwiki.plugin.XWikiPluginManager.initPlugin(XWikiPluginManager .java:130) at com.xpn.xwiki.plugin.XWikiPluginManager.addPlugin(XWikiPluginManager. java:69) at com.xpn.xwiki.plugin.XWikiPluginManager.addPlugins(XWikiPluginManager .java:95) at com.xpn.xwiki.XWiki.preparePlugins(XWiki.java:754) at com.xpn.xwiki.XWiki.initXWiki(XWiki.java:708) at com.xpn.xwiki.XWiki.<init>(XWiki.java:611) at com.xpn.xwiki.XWiki.getMainXWiki(XWiki.java:238) at com.xpn.xwiki.XWiki.getXWiki(XWiki.java:397) at com.xpn.xwiki.web.XWikiAction.execute(XWikiAction.java:94) at org.apache.struts.action.RequestProcessor.processActionPerform(Reques tProcessor.java:431) at org.apache.struts.action.RequestProcessor.process(RequestProcessor.ja va:236) at org.apache.struts.action.ActionServlet.process(ActionServlet.java:119 6) at org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:414) at javax.servlet.http.HttpServlet.service(HttpServlet.java:740) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at weblogic.servlet.internal.ServletStubImpl$ServletInvocationAction.run (ServletStubImpl.java:1006) at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubIm pl.java:419) at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:28) at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.ja va:27) at com.bea.p13n.servlets.PortalServletFilter.doFilter(PortalServletFilte r.java:293) at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.ja va:27) at com.xpn.xwiki.web.SetCharacterEncodingFilter.doFilter(SetCharacterEnc odingFilter.java:117) at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.ja va:27) at weblogic.servlet.internal.WebAppServletContext$ServletInvocationActio n.run(WebAppServletContext.java:6724) at weblogic.security.acl.internal.AuthenticatedSubject.doAs(Authenticate dSubject.java:321) at weblogic.security.service.SecurityManager.runAs(SecurityManager.java: 121) at weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppSe rvletContext.java:3764) at weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestIm pl.java:2644) at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:219) at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:178)
Sergiu Dumitriu-2 wrote:
sanjayV wrote:
Hi
I downloaded xwiki war file and changed the hbm.cfg.xml , xwiki.hbm.xml I am using weblogic portal and oracle9i. After deploying when i used the following url http://localhost:7788/xwiki/bin/view/Main/WebHome.
I got the following error Error number 3 in 0: Could not initialize main XWiki context Wrapped Exception: Error number 3202 in 3: Exception while reading document XWiki.XWikiPreferences Wrapped Exception: could not load an entity: [com.xpn.xwiki.doc.XWikiDocument#104408758]
Can somebody help me out Hi,
Can you give some more details? - What version of XWiki Enterprise are you using? - Did you also add the oracle jdbc connector? - Can you give a longer stacktrace?
-- Sergiu Dumitriu http://purl.org/net/sergiu/
Dicheva, Darina wrote:
Hello,
I have installed xwiki 1.2 (MySql, Tomcat 5), and created a second blog following a suggestion in a previous postage to this list (by adding the $space variable to the blog macro). Everything seems to work just fine, but nevertheless I get error messages displayed on the Tomcat console, such as:
16:40:41,008 [http://iiscs.wssu.edu/xwiki/bin/view/Blog/] [http-80-Processor4] ERROR log.SimpleLog4JLogSystem - Left side ($bentrydoc.fullName) of '==' operation has null value. If a reference, it may not be in the context. Operation not possible. Blog.WebHome [line 20, column 28]
It seems that the error is in the Blog.Macros' line below (I edited the original line to include $space):
#if(($bentrydoc.fullName == $item)&& (!$space ||($space=="") || ($bentrydoc.getSpace()==$space)) )
Is it normal to get those kind of messages, and if not, is this a result of my modification, and how can I fix it?
Since I don't really know Velocity, any advice will be highly appreciated.
Thanks, Darina
Hi, The error is not cause by adding $space in there. I think this is an error in the original script, but it is not a severe one. You can fix it if you replace the line with: #if($bentrydoc && ($bentrydoc.fullName == $item) && (!$space || ($space=="") || ($bentrydoc.getSpace()==$space))) -- Sergiu Dumitriu http://purl.org/net/sergiu/
Sergiu, Thanks a lot for your quick reply and help. May I ask one more question, related to errors displayed on the Tomcat console? Any idea why I am getting the following exception (http://www.airl ine-tickets.dl.pl is not something I have entered anywhere ...)? Thanks in advance. Darina 20:12:08,241 [http://iiscs.wssu.edu/xwiki/bin/viewrev/Photos/URL=http://www.airl ine-tickets.dl.pl] [http-80-Processor8] ERROR log.SimpleLog4JLogSystem - Method display threw exception for reference $doc in template at [12,7] org.apache.velocity.exception.MethodInvocationException: Invocation of method 'display' in class com.xpn.xwiki.api.Document threw exception java.lang.NullPoint erException @ <unknown template>[12,13] at org.apache.velocity.runtime.parser.node.ASTMethod.execute(ASTMethod.j ava:286) at org.apache.velocity.runtime.parser.node.ASTReference.execute(ASTRefer ence.java:203) at org.apache.velocity.runtime.parser.node.ASTReference.render(ASTRefere nce.java:294) at org.apache.velocity.runtime.parser.node.ASTBlock.render(ASTBlock.java :74) at org.apache.velocity.runtime.parser.node.SimpleNode.render(SimpleNode. java:318) at org.apache.velocity.runtime.parser.node.ASTIfStatement.render(ASTIfSt atement.java:107) at org.apache.velocity.runtime.parser.node.ASTBlock.render(ASTBlock.java :74) at org.apache.velocity.runtime.parser.node.ASTIfStatement.render(ASTIfSt atement.java:88) at org.apache.velocity.runtime.parser.node.SimpleNode.render(SimpleNode. java:318) at org.apache.velocity.runtime.directive.VelocimacroProxy.render(Velocim acroProxy.java:194) at org.apache.velocity.runtime.parser.node.ASTDirective.render(ASTDirect ive.java:170) at org.apache.velocity.runtime.parser.node.ASTBlock.render(ASTBlock.java :74) at org.apache.velocity.runtime.directive.Foreach.render(Foreach.java:448 ) at org.apache.velocity.runtime.parser.node.ASTDirective.render(ASTDirect ive.java:170) at org.apache.velocity.runtime.parser.node.ASTBlock.render(ASTBlock.java :74) at org.apache.velocity.runtime.parser.node.ASTIfStatement.render(ASTIfSt atement.java:88) at org.apache.velocity.runtime.parser.node.SimpleNode.render(SimpleNode. java:318) at com.xpn.xwiki.render.XWikiVelocityRenderer.evaluate(XWikiVelocityRend erer.java:238) at com.xpn.xwiki.render.XWikiVelocityRenderer.evaluate(XWikiVelocityRend erer.java:152) at com.xpn.xwiki.XWiki.parseTemplate(XWiki.java:1366) at com.xpn.xwiki.XWiki.parseTemplate(XWiki.java:1335) at com.xpn.xwiki.api.XWiki.parseTemplate(XWiki.java:607) at sun.reflect.GeneratedMethodAccessor162.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces sorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:585) at org.apache.velocity.util.introspection.UberspectImpl$VelMethodImpl.in voke(UberspectImpl.java:295) at org.apache.velocity.runtime.parser.node.ASTMethod.execute(ASTMethod.j ava:245) at org.apache.velocity.runtime.parser.node.ASTReference.execute(ASTRefer ence.java:203) at org.apache.velocity.runtime.parser.node.ASTReference.render(ASTRefere nce.java:294) at org.apache.velocity.runtime.parser.node.SimpleNode.render(SimpleNode. java:318) at org.apache.velocity.runtime.directive.VelocimacroProxy.render(Velocim acroProxy.java:194) at org.apache.velocity.runtime.parser.node.ASTDirective.render(ASTDirect ive.java:170) at org.apache.velocity.runtime.parser.node.SimpleNode.render(SimpleNode. java:318) at com.xpn.xwiki.render.XWikiVelocityRenderer.evaluate(XWikiVelocityRend erer.java:238) at com.xpn.xwiki.render.XWikiVelocityRenderer.evaluate(XWikiVelocityRend erer.java:152) at com.xpn.xwiki.XWiki.parseTemplate(XWiki.java:1366) at com.xpn.xwiki.XWiki.parseTemplate(XWiki.java:1335) at com.xpn.xwiki.api.XWiki.parseTemplate(XWiki.java:607) at sun.reflect.GeneratedMethodAccessor162.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces sorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:585) at org.apache.velocity.util.introspection.UberspectImpl$VelMethodImpl.in voke(UberspectImpl.java:295) at org.apache.velocity.runtime.parser.node.ASTMethod.execute(ASTMethod.j ava:245) at org.apache.velocity.runtime.parser.node.ASTReference.execute(ASTRefer ence.java:203) at org.apache.velocity.runtime.parser.node.ASTReference.render(ASTRefere nce.java:294) at org.apache.velocity.runtime.parser.node.SimpleNode.render(SimpleNode. java:318) at org.apache.velocity.runtime.directive.VelocimacroProxy.render(Velocim acroProxy.java:194) at org.apache.velocity.runtime.parser.node.ASTDirective.render(ASTDirect ive.java:170) at org.apache.velocity.runtime.parser.node.SimpleNode.render(SimpleNode. java:318) at com.xpn.xwiki.render.XWikiVelocityRenderer.evaluate(XWikiVelocityRend erer.java:238) at com.xpn.xwiki.render.XWikiVelocityRenderer.evaluate(XWikiVelocityRend erer.java:152) at com.xpn.xwiki.XWiki.parseTemplate(XWiki.java:1366) at com.xpn.xwiki.XWiki.parseTemplate(XWiki.java:1335) at com.xpn.xwiki.web.Utils.parseTemplate(Utils.java:105) at com.xpn.xwiki.web.Utils.parseTemplate(Utils.java:48) at com.xpn.xwiki.web.XWikiAction.execute(XWikiAction.java:186) at org.apache.struts.action.RequestProcessor.processActionPerform(Reques tProcessor.java:431) at org.apache.struts.action.RequestProcessor.process(RequestProcessor.ja va:236) at org.apache.struts.action.ActionServlet.process(ActionServlet.java:119 6) at org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:414) at javax.servlet.http.HttpServlet.service(HttpServlet.java:689) at javax.servlet.http.HttpServlet.service(HttpServlet.java:802) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Appl icationFilterChain.java:252) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationF ilterChain.java:173) at com.xpn.xwiki.web.SetCharacterEncodingFilter.doFilter(SetCharacterEnc odingFilter.java:117) -----Original Message----- From: [email protected] [mailto:[email protected]] On Behalf Of Sergiu Dumitriu Sent: Thursday, February 07, 2008 8:27 PM To: XWiki Users Subject: Re: [xwiki-users] Error on Tomcat console possibly related to adding a second blog Dicheva, Darina wrote:
Hello,
I have installed xwiki 1.2 (MySql, Tomcat 5), and created a second blog following a suggestion in a previous postage to this list (by adding the $space variable to the blog macro). Everything seems to work just fine, but nevertheless I get error messages displayed on the Tomcat console, such as:
16:40:41,008 [http://iiscs.wssu.edu/xwiki/bin/view/Blog/] [http-80-Processor4] ERROR log.SimpleLog4JLogSystem - Left side ($bentrydoc.fullName) of '==' operation has null value. If a reference, it may not be in the context. Operation not possible. Blog.WebHome [line 20, column 28]
It seems that the error is in the Blog.Macros' line below (I edited the original line to include $space):
#if(($bentrydoc.fullName == $item)&& (!$space ||($space=="") || ($bentrydoc.getSpace()==$space)) )
Is it normal to get those kind of messages, and if not, is this a result of my modification, and how can I fix it?
Since I don't really know Velocity, any advice will be highly appreciated.
Thanks, Darina
Hi, The error is not cause by adding $space in there. I think this is an error in the original script, but it is not a severe one. You can fix it if you replace the line with: #if($bentrydoc && ($bentrydoc.fullName == $item) && (!$space || ($space=="") || ($bentrydoc.getSpace()==$space))) -- Sergiu Dumitriu http://purl.org/net/sergiu/ _______________________________________________ users mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/users
On Feb 8, 2008, at 2:22 AM, Sergiu Dumitriu wrote:
sanjayV wrote:
Sorry for that. i was not sure my message was submitted for the first time. thats the reason i tried couple of times I am using xwiki-web-1.1.2. Not sure what do you mean by oracle jdbc connector.
The connector is there, as the stacktrace shows.
I would recommend switching to XWiki 1.2.1, as it fixes several problems with Oracle.
Also make sure to read the release notes since you need to upgrade the Hibernate version if you're using 1.2. This is fixed in 1.3M1. -Vincent
The problem is that the database schema is not correctly created. When you said that you changed xwiki.hbm.xml, what exactly did you change? Were there other errors before this one in the log? If you connect directly to the database, can you see some tables in the xwiki database?
The following is the stack
Wrapped Exception:
com.xpn.xwiki.XWikiException: Error number 3212 in 3: Exception while loading ar chive -237,561,194 Wrapped Exception: could not load an entity: [com.xpn.xwiki.doc.XWikiDocumentArc hive#-237561194] at com.xpn.xwiki.store.XWikiHibernateVersioningStore.loadXWikiDocArchive (XWikiHibernateVersioningStore.java:118) at com.xpn.xwiki.store.XWikiHibernateVersioningStore.getXWikiDocumentArc hive(XWikiHibernateVersioningStore.java:87) at com.xpn.xwiki.store.XWikiHibernateVersioningStore.updateXWikiDocArchi ve(XWikiHibernateVersioningStore.java:238) at com.xpn.xwiki.store.XWikiHibernateStore.saveXWikiDoc(XWikiHibernateSt ore.java:245) at com.xpn.xwiki.store.XWikiCacheStore.saveXWikiDoc(XWikiCacheStore.java :97) at com.xpn.xwiki.store.XWikiCacheStore.saveXWikiDoc(XWikiCacheStore.java :91) at com.xpn.xwiki.XWiki.saveDocument(XWiki.java:957) at com.xpn.xwiki.XWiki.saveDocument(XWiki.java:935) at com.xpn.xwiki.plugin.calendar.CalendarPlugin.getCalendarEventClass(Ca lendarPlugin.java:82) at com.xpn.xwiki.plugin.calendar.CalendarPlugin.init(CalendarPlugin.java :294) at com.xpn.xwiki.plugin.XWikiPluginManager.initPlugin(XWikiPluginManager .java:130) at com.xpn.xwiki.plugin.XWikiPluginManager.addPlugin(XWikiPluginManager. java:69) at com.xpn.xwiki.plugin.XWikiPluginManager.addPlugins(XWikiPluginManager .java:95) at com.xpn.xwiki.XWiki.preparePlugins(XWiki.java:754) at com.xpn.xwiki.XWiki.initXWiki(XWiki.java:708) at com.xpn.xwiki.XWiki.<init>(XWiki.java:611) at com.xpn.xwiki.XWiki.getMainXWiki(XWiki.java:238) at com.xpn.xwiki.XWiki.getXWiki(XWiki.java:397) at com.xpn.xwiki.web.XWikiAction.execute(XWikiAction.java:94) at org.apache.struts.action.RequestProcessor.processActionPerform(Reques tProcessor.java:431) at org.apache.struts.action.RequestProcessor.process(RequestProcessor.ja va:236) at org.apache.struts.action.ActionServlet.process(ActionServlet.java:119 6) at org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:414) at javax.servlet.http.HttpServlet.service(HttpServlet.java: 740) at javax.servlet.http.HttpServlet.service(HttpServlet.java: 853) at weblogic.servlet.internal.ServletStubImpl$ServletInvocationAction.run (ServletStubImpl.java:1006) at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubIm pl.java:419) at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:28) at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.ja va:27) at com.bea.p13n.servlets.PortalServletFilter.doFilter(PortalServletFilte r.java:293) at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.ja va:27) at com.xpn.xwiki.web.SetCharacterEncodingFilter.doFilter(SetCharacterEnc odingFilter.java:117) at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.ja va:27) at weblogic.servlet.internal.WebAppServletContext$ServletInvocationActio n.run(WebAppServletContext.java:6724) at weblogic.security.acl.internal.AuthenticatedSubject.doAs(Authenticate dSubject.java:321) at weblogic.security.service.SecurityManager.runAs(SecurityManager.java: 121) at weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppSe rvletContext.java:3764) at weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestIm pl.java:2644) at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java: 219) at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:178)
Wrapped Exception:
java.sql.SQLException: ORA-00942: table or view does not exist
at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java :125) at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java: 305) at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java: 272) at oracle.jdbc.driver.T4C8Oall.receive(T4C8Oall.java:623) at oracle.jdbc.driver.T4CPreparedStatement.doOall8(T4CPreparedStatement. java:181) at oracle.jdbc.driver.T4CPreparedStatement.execute_for_describe(T4CPrepa redStatement.java:420) at oracle.jdbc.driver.OracleStatement.execute_maybe_describe(OracleState ment.java:894) at oracle.jdbc.driver.T4CPreparedStatement.execute_maybe_describe(T4CPre paredStatement.java:452) at oracle.jdbc.driver.OracleStatement.doExecuteWithTimeout(OracleStateme nt.java:984) at oracle.jdbc.driver.OraclePreparedStatement.executeInternal(OraclePrep aredStatement.java:2885) at oracle.jdbc.driver.OraclePreparedStatement.executeQuery(OraclePrepare dStatement.java:2926) at org.apache.commons.dbcp.DelegatingPreparedStatement.executeQuery(Dele gatingPreparedStatement.java:93) at org.hibernate.jdbc.AbstractBatcher.getResultSet(AbstractBatcher.java: 139) at org.hibernate.loader.Loader.getResultSet(Loader.java:1669) at org.hibernate.loader.Loader.doQuery(Loader.java:662) at org.hibernate.loader.Loader.doQueryAndInitializeNonLazyCollections(Lo ader.java:224) at org.hibernate.loader.Loader.loadEntity(Loader.java:1785) at org.hibernate.loader.entity.AbstractEntityLoader.load(AbstractEntityL oader.java:93) at org.hibernate.loader.entity.AbstractEntityLoader.load(AbstractEntityL oader.java:81) at org.hibernate.persister.entity.AbstractEntityPersister.load(AbstractE ntityPersister.java:2730) at org.hibernate.event.def.DefaultLoadEventListener.loadFromDatasource(D efaultLoadEventListener.java:365) at org.hibernate.event.def.DefaultLoadEventListener.doLoad(DefaultLoadEv entListener.java:346) at org.hibernate.event.def.DefaultLoadEventListener.load(DefaultLoadEven tListener.java:123) at org.hibernate.event.def.DefaultLoadEventListener.proxyOrLoad(DefaultL oadEventListener.java:177) at org.hibernate.event.def.DefaultLoadEventListener.onLoad(DefaultLoadEv entListener.java:87) at org.hibernate.impl.SessionImpl.fireLoad(SessionImpl.java: 891) at org.hibernate.impl.SessionImpl.load(SessionImpl.java:799) at com.xpn.xwiki.store.XWikiHibernateVersioningStore.loadXWikiDocArchive (XWikiHibernateVersioningStore.java:108) at com.xpn.xwiki.store.XWikiHibernateVersioningStore.getXWikiDocumentArc hive(XWikiHibernateVersioningStore.java:87) at com.xpn.xwiki.store.XWikiHibernateVersioningStore.updateXWikiDocArchi ve(XWikiHibernateVersioningStore.java:238) at com.xpn.xwiki.store.XWikiHibernateStore.saveXWikiDoc(XWikiHibernateSt ore.java:245) at com.xpn.xwiki.store.XWikiCacheStore.saveXWikiDoc(XWikiCacheStore.java :97) at com.xpn.xwiki.store.XWikiCacheStore.saveXWikiDoc(XWikiCacheStore.java :91) at com.xpn.xwiki.XWiki.saveDocument(XWiki.java:957) at com.xpn.xwiki.XWiki.saveDocument(XWiki.java:935) at com.xpn.xwiki.plugin.calendar.CalendarPlugin.getCalendarEventClass(Ca lendarPlugin.java:82) at com.xpn.xwiki.plugin.calendar.CalendarPlugin.init(CalendarPlugin.java :294) at com.xpn.xwiki.plugin.XWikiPluginManager.initPlugin(XWikiPluginManager .java:130) at com.xpn.xwiki.plugin.XWikiPluginManager.addPlugin(XWikiPluginManager. java:69) at com.xpn.xwiki.plugin.XWikiPluginManager.addPlugins(XWikiPluginManager .java:95) at com.xpn.xwiki.XWiki.preparePlugins(XWiki.java:754) at com.xpn.xwiki.XWiki.initXWiki(XWiki.java:708) at com.xpn.xwiki.XWiki.<init>(XWiki.java:611) at com.xpn.xwiki.XWiki.getMainXWiki(XWiki.java:238) at com.xpn.xwiki.XWiki.getXWiki(XWiki.java:397) at com.xpn.xwiki.web.XWikiAction.execute(XWikiAction.java:94) at org.apache.struts.action.RequestProcessor.processActionPerform(Reques tProcessor.java:431) at org.apache.struts.action.RequestProcessor.process(RequestProcessor.ja va:236) at org.apache.struts.action.ActionServlet.process(ActionServlet.java:119 6) at org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:414) at javax.servlet.http.HttpServlet.service(HttpServlet.java: 740) at javax.servlet.http.HttpServlet.service(HttpServlet.java: 853) at weblogic.servlet.internal.ServletStubImpl$ServletInvocationAction.run (ServletStubImpl.java:1006) at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubIm pl.java:419) at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:28) at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.ja va:27) at com.bea.p13n.servlets.PortalServletFilter.doFilter(PortalServletFilte r.java:293) at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.ja va:27) at com.xpn.xwiki.web.SetCharacterEncodingFilter.doFilter(SetCharacterEnc odingFilter.java:117) at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.ja va:27) at weblogic.servlet.internal.WebAppServletContext$ServletInvocationActio n.run(WebAppServletContext.java:6724) at weblogic.security.acl.internal.AuthenticatedSubject.doAs(Authenticate dSubject.java:321) at weblogic.security.service.SecurityManager.runAs(SecurityManager.java: 121) at weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppSe rvletContext.java:3764) at weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestIm pl.java:2644) at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java: 219) at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:178) com.xpn.xwiki.XWikiException: Error number 3223 in 3: Exception while searching documents with SQL [select distinct doc.web, doc.name from XWikiDocument as doc]
Wrapped Exception: ClassNotFoundException: org.hibernate.hql.ast.HqlToken [selec t distinct doc.web, doc.name from com.xpn.xwiki.doc.XWikiDocument as doc] at com.xpn.xwiki.store.XWikiHibernateStore.searchDocumentsNamesInternal( XWikiHibernateStore.java:1852) at com.xpn.xwiki.store.XWikiHibernateStore.searchDocumentsNames(XWikiHib ernateStore.java:1811) at com.xpn.xwiki.store.XWikiHibernateStore.searchDocumentsNames(XWikiHib ernateStore.java:2231) at com.xpn.xwiki.store.XWikiCacheStore.searchDocumentsNames(XWikiCacheSt ore.java:200) at com.xpn.xwiki.plugin.lucene.IndexRebuilder.indexWiki(IndexRebuilder.j ava:116) at com.xpn.xwiki.plugin.lucene.IndexRebuilder.rebuildIndex(IndexRebuilde r.java:92) at com.xpn.xwiki.plugin.lucene.IndexRebuilder.<init>(IndexRebuilder.java :57) at com.xpn.xwiki.plugin.lucene.LucenePlugin.init(LucenePlugin.java:361) at com.xpn.xwiki.plugin.XWikiPluginManager.initPlugin(XWikiPluginManager .java:130) at com.xpn.xwiki.plugin.XWikiPluginManager.addPlugin(XWikiPluginManager. java:69) at com.xpn.xwiki.plugin.XWikiPluginManager.addPlugins(XWikiPluginManager .java:95) at com.xpn.xwiki.XWiki.preparePlugins(XWiki.java:754) at com.xpn.xwiki.XWiki.initXWiki(XWiki.java:708) at com.xpn.xwiki.XWiki.<init>(XWiki.java:611) at com.xpn.xwiki.XWiki.getMainXWiki(XWiki.java:238) at com.xpn.xwiki.XWiki.getXWiki(XWiki.java:397) at com.xpn.xwiki.web.XWikiAction.execute(XWikiAction.java:94) at org.apache.struts.action.RequestProcessor.processActionPerform(Reques tProcessor.java:431) at org.apache.struts.action.RequestProcessor.process(RequestProcessor.ja va:236) at org.apache.struts.action.ActionServlet.process(ActionServlet.java:119 6) at org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:414) at javax.servlet.http.HttpServlet.service(HttpServlet.java: 740) at javax.servlet.http.HttpServlet.service(HttpServlet.java: 853) at weblogic.servlet.internal.ServletStubImpl$ServletInvocationAction.run (ServletStubImpl.java:1006) at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubIm pl.java:419) at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:28) at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.ja va:27) at com.bea.p13n.servlets.PortalServletFilter.doFilter(PortalServletFilte r.java:293) at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.ja va:27) at com.xpn.xwiki.web.SetCharacterEncodingFilter.doFilter(SetCharacterEnc odingFilter.java:117) at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.ja va:27) at weblogic.servlet.internal.WebAppServletContext$ServletInvocationActio n.run(WebAppServletContext.java:6724) at weblogic.security.acl.internal.AuthenticatedSubject.doAs(Authenticate dSubject.java:321) at weblogic.security.service.SecurityManager.runAs(SecurityManager.java: 121) at weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppSe rvletContext.java:3764) at weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestIm pl.java:2644) at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java: 219) at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:178)
Sergiu Dumitriu-2 wrote:
sanjayV wrote:
Hi
I downloaded xwiki war file and changed the hbm.cfg.xml , xwiki.hbm.xml I am using weblogic portal and oracle9i. After deploying when i used the following url http://localhost:7788/xwiki/bin/view/Main/WebHome.
I got the following error Error number 3 in 0: Could not initialize main XWiki context Wrapped Exception: Error number 3202 in 3: Exception while reading document XWiki.XWikiPreferences Wrapped Exception: could not load an entity: [com.xpn.xwiki.doc.XWikiDocument#104408758]
Can somebody help me out Hi,
Can you give some more details? - What version of XWiki Enterprise are you using? - Did you also add the oracle jdbc connector? - Can you give a longer stacktrace?
-- Sergiu Dumitriu http://purl.org/net/sergiu/ _______________________________________________ users mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/users
Dicheva, Darina wrote:
Sergiu,
Thanks a lot for your quick reply and help. May I ask one more question, related to errors displayed on the Tomcat console?
Any idea why I am getting the following exception (http://www.airl ine-tickets.dl.pl is not something I have entered anywhere ...)?
Thanks in advance.
I searched the site, and couldn't find that string anywhere. I don't think that is an URL generated by XWiki, so I'd say that most probably somebody browsing the site accidentally entered a wrong URL. Does that exception appear more than once?
Darina
20:12:08,241 [http://iiscs.wssu.edu/xwiki/bin/viewrev/Photos/URL=http://www.airl ine-tickets.dl.pl] [http-80-Processor8] ERROR log.SimpleLog4JLogSystem - Method display threw exception for reference $doc in template at [12,7] org.apache.velocity.exception.MethodInvocationException: Invocation of method 'display' in class com.xpn.xwiki.api.Document threw exception java.lang.NullPoint erException @ <unknown template>[12,13] at org.apache.velocity.runtime.parser.node.ASTMethod.execute(ASTMethod.j ava:286) at org.apache.velocity.runtime.parser.node.ASTReference.execute(ASTRefer ence.java:203) at org.apache.velocity.runtime.parser.node.ASTReference.render(ASTRefere nce.java:294) at org.apache.velocity.runtime.parser.node.ASTBlock.render(ASTBlock.java :74) at org.apache.velocity.runtime.parser.node.SimpleNode.render(SimpleNode. java:318) at org.apache.velocity.runtime.parser.node.ASTIfStatement.render(ASTIfSt atement.java:107) at org.apache.velocity.runtime.parser.node.ASTBlock.render(ASTBlock.java :74) at org.apache.velocity.runtime.parser.node.ASTIfStatement.render(ASTIfSt atement.java:88) at org.apache.velocity.runtime.parser.node.SimpleNode.render(SimpleNode. java:318) at org.apache.velocity.runtime.directive.VelocimacroProxy.render(Velocim acroProxy.java:194) at org.apache.velocity.runtime.parser.node.ASTDirective.render(ASTDirect ive.java:170) at org.apache.velocity.runtime.parser.node.ASTBlock.render(ASTBlock.java :74) at org.apache.velocity.runtime.directive.Foreach.render(Foreach.java:448 ) at org.apache.velocity.runtime.parser.node.ASTDirective.render(ASTDirect ive.java:170) at org.apache.velocity.runtime.parser.node.ASTBlock.render(ASTBlock.java :74) at org.apache.velocity.runtime.parser.node.ASTIfStatement.render(ASTIfSt atement.java:88) at org.apache.velocity.runtime.parser.node.SimpleNode.render(SimpleNode. java:318) at com.xpn.xwiki.render.XWikiVelocityRenderer.evaluate(XWikiVelocityRend erer.java:238) at com.xpn.xwiki.render.XWikiVelocityRenderer.evaluate(XWikiVelocityRend erer.java:152) at com.xpn.xwiki.XWiki.parseTemplate(XWiki.java:1366) at com.xpn.xwiki.XWiki.parseTemplate(XWiki.java:1335) at com.xpn.xwiki.api.XWiki.parseTemplate(XWiki.java:607) at sun.reflect.GeneratedMethodAccessor162.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces sorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:585) at org.apache.velocity.util.introspection.UberspectImpl$VelMethodImpl.in voke(UberspectImpl.java:295) at org.apache.velocity.runtime.parser.node.ASTMethod.execute(ASTMethod.j ava:245) at org.apache.velocity.runtime.parser.node.ASTReference.execute(ASTRefer ence.java:203) at org.apache.velocity.runtime.parser.node.ASTReference.render(ASTRefere nce.java:294) at org.apache.velocity.runtime.parser.node.SimpleNode.render(SimpleNode. java:318) at org.apache.velocity.runtime.directive.VelocimacroProxy.render(Velocim acroProxy.java:194) at org.apache.velocity.runtime.parser.node.ASTDirective.render(ASTDirect ive.java:170) at org.apache.velocity.runtime.parser.node.SimpleNode.render(SimpleNode. java:318) at com.xpn.xwiki.render.XWikiVelocityRenderer.evaluate(XWikiVelocityRend erer.java:238) at com.xpn.xwiki.render.XWikiVelocityRenderer.evaluate(XWikiVelocityRend erer.java:152) at com.xpn.xwiki.XWiki.parseTemplate(XWiki.java:1366) at com.xpn.xwiki.XWiki.parseTemplate(XWiki.java:1335) at com.xpn.xwiki.api.XWiki.parseTemplate(XWiki.java:607) at sun.reflect.GeneratedMethodAccessor162.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces sorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:585) at org.apache.velocity.util.introspection.UberspectImpl$VelMethodImpl.in voke(UberspectImpl.java:295) at org.apache.velocity.runtime.parser.node.ASTMethod.execute(ASTMethod.j ava:245) at org.apache.velocity.runtime.parser.node.ASTReference.execute(ASTRefer ence.java:203) at org.apache.velocity.runtime.parser.node.ASTReference.render(ASTRefere nce.java:294) at org.apache.velocity.runtime.parser.node.SimpleNode.render(SimpleNode. java:318) at org.apache.velocity.runtime.directive.VelocimacroProxy.render(Velocim acroProxy.java:194) at org.apache.velocity.runtime.parser.node.ASTDirective.render(ASTDirect ive.java:170) at org.apache.velocity.runtime.parser.node.SimpleNode.render(SimpleNode. java:318) at com.xpn.xwiki.render.XWikiVelocityRenderer.evaluate(XWikiVelocityRend erer.java:238) at com.xpn.xwiki.render.XWikiVelocityRenderer.evaluate(XWikiVelocityRend erer.java:152) at com.xpn.xwiki.XWiki.parseTemplate(XWiki.java:1366) at com.xpn.xwiki.XWiki.parseTemplate(XWiki.java:1335) at com.xpn.xwiki.web.Utils.parseTemplate(Utils.java:105) at com.xpn.xwiki.web.Utils.parseTemplate(Utils.java:48) at com.xpn.xwiki.web.XWikiAction.execute(XWikiAction.java:186) at org.apache.struts.action.RequestProcessor.processActionPerform(Reques tProcessor.java:431) at org.apache.struts.action.RequestProcessor.process(RequestProcessor.ja va:236) at org.apache.struts.action.ActionServlet.process(ActionServlet.java:119 6) at org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:414) at javax.servlet.http.HttpServlet.service(HttpServlet.java:689) at javax.servlet.http.HttpServlet.service(HttpServlet.java:802) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Appl icationFilterChain.java:252) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationF ilterChain.java:173) at com.xpn.xwiki.web.SetCharacterEncodingFilter.doFilter(SetCharacterEnc odingFilter.java:117)
-----Original Message----- From: [email protected] [mailto:[email protected]] On Behalf Of Sergiu Dumitriu Sent: Thursday, February 07, 2008 8:27 PM To: XWiki Users Subject: Re: [xwiki-users] Error on Tomcat console possibly related to adding a second blog
Dicheva, Darina wrote:
Hello,
I have installed xwiki 1.2 (MySql, Tomcat 5), and created a second blog following a suggestion in a previous postage to this list (by adding the $space variable to the blog macro). Everything seems to work just fine, but nevertheless I get error messages displayed on the Tomcat console, such as:
16:40:41,008 [http://iiscs.wssu.edu/xwiki/bin/view/Blog/] [http-80-Processor4] ERROR log.SimpleLog4JLogSystem - Left side ($bentrydoc.fullName) of '==' operation has null value. If a reference, it may not be in the context. Operation not possible. Blog.WebHome [line 20, column 28]
It seems that the error is in the Blog.Macros' line below (I edited the original line to include $space):
#if(($bentrydoc.fullName == $item)&& (!$space ||($space=="") || ($bentrydoc.getSpace()==$space)) )
Is it normal to get those kind of messages, and if not, is this a result of my modification, and how can I fix it?
Since I don't really know Velocity, any advice will be highly appreciated.
Thanks, Darina
Hi,
The error is not cause by adding $space in there. I think this is an error in the original script, but it is not a severe one. You can fix it
if you replace the line with:
#if($bentrydoc && ($bentrydoc.fullName == $item) && (!$space || ($space=="") || ($bentrydoc.getSpace()==$space)))
-- Sergiu Dumitriu http://purl.org/net/sergiu/
Sergiu,
Any idea why I am getting the following exception (http://www.airl ine-tickets.dl.pl is not something I have entered anywhere ...)?
Thanks in advance.
I searched the site, and couldn't find that string anywhere.
I know, I have searched the site for urs appearing in different exceptions ...
I don't think that is an URL generated by XWiki, so I'd say that most probably somebody browsing the site accidentally entered a wrong URL. Does that exception appear more than once?
In fact, yes, I get such exceptions all the time (see the latest three below). Interesting, while in exceptions with url (eg 1st and 2nd), urls change, the third exception ([http://iiscs.wssu.edu/xwiki/bin/viewrev/Photos/IISMembers?xpage=pr int&rev=1.158]) reoccurs. Perhaps these are two different cases. I did have an older version of xwiki installed before, where I think I had a page IISMembers, however, I deleted that installation completely, including the xwiki database (in MySQL) and did a new installation, so there is nowhere this page could come from ... Complete mystery ... As to the first case, I wonder can this browsing be done by programs that try to insert somehow various urls in the wiki site, and if it is so, whether can I prevent this ... also, if this is the reason, should it really cause exception but not just a warning message that there is no such document? Thanks a lot for your help, Darina -------------------- 09:28:26,247 [http://iiscs.wssu.edu/xwiki/bin/view/Photos/url=http://www.quizill a.com/users/ringtone-807/journal/572561/] [http-80-Processor29] ERROR log.Simple Log4JLogSystem - Method display threw exception for reference $doc in template at [12,7] org.apache.velocity.exception.MethodInvocationException: Invocation of method 'display' in class com.xpn.xwiki.api.Document threw exception java.lang.NullPointerException @ <unknown template>[12,13] at org.apache.velocity.runtime.parser.node.ASTMethod.execute(ASTMethod.j ava:286) at org.apache.velocity.runtime.parser.node.ASTReference.execute(ASTRefer ence.java:203) at ----------------------- 09:52:28,563 [http://iiscs.wssu.edu/xwiki/bin/viewrev/Photos/url=http://herbalph enik.ovp.pl] [http-80-Processor26] ERROR log.SimpleLog4JLogSystem - Method display threw exception for reference $doc in template at [12,7] org.apache.velocity.exception.MethodInvocationException: Invocation of method 'display' in class com.xpn.xwiki.api.Document threw exception java.lang.NullPoint erException @ <unknown template>[12,13] at org.apache.velocity.runtime.parser.node.ASTMethod.execute(ASTMethod.j ava:286) at org.apache.velocity.runtime.parser.node.ASTReference.execute(ASTRefer ence.java:203) at org.apache.velocity.runtime.parser.node.ASTReference.render(ASTRefere nce.java:294) at org.apache.velocity.runtime.parser.node.ASTBlock.render(ASTBlock.java :74) at org.apache.velocity.runtime.parser.node.SimpleNode.render(SimpleNode. java:318) at org.apache.velocity.runtime.parser.node.ASTIfStatement.render(ASTIfSt --------------------- 09:40:11,202 [http://iiscs.wssu.edu/xwiki/bin/viewrev/Photos/IISMembers?xpage=pr int&rev=1.158] [http-80-Processor29] ERROR log.SimpleLog4JLogSystem - Method getRenderedContent threw exception for reference $cdoc in template at [7,1] org.apache.velocity.exception.MethodInvocationException: Invocation of method 'getRenderedContent' in class com.xpn.xwiki.api.Document threw exception com.xpn. xwiki.XWikiException: Error number 3205 in 3: Version 1.158 does not exist while reading document Photos.IISMembers @ <unknown template>[7,7] at org.apache.velocity.runtime.parser.node.ASTMethod.execute(ASTMethod.j ava:286) at org.apache.velocity.runtime.parser.node.ASTReference.execute(ASTRefer ence.java:203) at org.apache.velocity.runtime.parser.node.ASTReference.render(ASTRefere nce.java:294) at org.apache.velocity.runtime.parser.node.SimpleNode.render(SimpleNode. java:318) at com.xpn.xwiki.render.XWikiVelocityRenderer.evaluate(XWikiVelocityRend erer.java:238) at com.xpn.xwiki.render.XWikiVelocityRenderer.evaluate(XWikiVelocityRend erer.java:152) at com.xpn.xwiki.XWiki.parseTemplate(XWiki.java:1366) at com.xpn.xwiki.XWiki.parseTemplate(XWiki.java:1335) at com.xpn.xwiki.api.XWiki.parseTemplate(XWiki.java:607) at sun.reflect.GeneratedMethodAccessor162.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces sorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:585) at org.apache.velocity.util.introspection.UberspectImpl$VelMethodImpl.in voke(UberspectImpl.java:295) at org.apache.velocity.runtime.parser.node.ASTMethod.execute(ASTMethod.j ava:245) at org.apache.velocity.runtime.parser.node.ASTReference.execute(ASTRefer ence.java:203) at org.apache.velocity.runtime.parser.node.ASTReference.render(ASTRefere nce.java:294) at org.apache.velocity.runtime.parser.node.SimpleNode.render(SimpleNode. java:318)
Darina
20:12:08,241 [http://iiscs.wssu.edu/xwiki/bin/viewrev/Photos/URL=http://www.airl ine-tickets.dl.pl] [http-80-Processor8] ERROR log.SimpleLog4JLogSystem - Method display threw exception for reference $doc in template at [12,7] org.apache.velocity.exception.MethodInvocationException: Invocation of method 'display' in class com.xpn.xwiki.api.Document threw exception java.lang.NullPoint erException @ <unknown template>[12,13] at org.apache.velocity.runtime.parser.node.ASTMethod.execute(ASTMethod.j ava:286) at org.apache.velocity.runtime.parser.node.ASTReference.execute(ASTRefer ence.java:203) at org.apache.velocity.runtime.parser.node.ASTReference.render(ASTRefere nce.java:294) at org.apache.velocity.runtime.parser.node.ASTBlock.render(ASTBlock.java :74) at org.apache.velocity.runtime.parser.node.SimpleNode.render(SimpleNode. java:318) at org.apache.velocity.runtime.parser.node.ASTIfStatement.render(ASTIfSt atement.java:107) at org.apache.velocity.runtime.parser.node.ASTBlock.render(ASTBlock.java :74) at org.apache.velocity.runtime.parser.node.ASTIfStatement.render(ASTIfSt atement.java:88) at org.apache.velocity.runtime.parser.node.SimpleNode.render(SimpleNode. java:318) at org.apache.velocity.runtime.directive.VelocimacroProxy.render(Velocim acroProxy.java:194) at org.apache.velocity.runtime.parser.node.ASTDirective.render(ASTDirect ive.java:170) at org.apache.velocity.runtime.parser.node.ASTBlock.render(ASTBlock.java :74) at org.apache.velocity.runtime.directive.Foreach.render(Foreach.java:448 ) at org.apache.velocity.runtime.parser.node.ASTDirective.render(ASTDirect ive.java:170) at org.apache.velocity.runtime.parser.node.ASTBlock.render(ASTBlock.java :74) at org.apache.velocity.runtime.parser.node.ASTIfStatement.render(ASTIfSt atement.java:88) at org.apache.velocity.runtime.parser.node.SimpleNode.render(SimpleNode. java:318) at com.xpn.xwiki.render.XWikiVelocityRenderer.evaluate(XWikiVelocityRend erer.java:238) at com.xpn.xwiki.render.XWikiVelocityRenderer.evaluate(XWikiVelocityRend erer.java:152) at com.xpn.xwiki.XWiki.parseTemplate(XWiki.java:1366) at com.xpn.xwiki.XWiki.parseTemplate(XWiki.java:1335) at com.xpn.xwiki.api.XWiki.parseTemplate(XWiki.java:607) at sun.reflect.GeneratedMethodAccessor162.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces sorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:585) at org.apache.velocity.util.introspection.UberspectImpl$VelMethodImpl.in voke(UberspectImpl.java:295) at org.apache.velocity.runtime.parser.node.ASTMethod.execute(ASTMethod.j ava:245) at org.apache.velocity.runtime.parser.node.ASTReference.execute(ASTRefer ence.java:203) at org.apache.velocity.runtime.parser.node.ASTReference.render(ASTRefere nce.java:294) at org.apache.velocity.runtime.parser.node.SimpleNode.render(SimpleNode. java:318) at org.apache.velocity.runtime.directive.VelocimacroProxy.render(Velocim acroProxy.java:194) at org.apache.velocity.runtime.parser.node.ASTDirective.render(ASTDirect ive.java:170) at org.apache.velocity.runtime.parser.node.SimpleNode.render(SimpleNode. java:318) at com.xpn.xwiki.render.XWikiVelocityRenderer.evaluate(XWikiVelocityRend erer.java:238) at com.xpn.xwiki.render.XWikiVelocityRenderer.evaluate(XWikiVelocityRend erer.java:152) at com.xpn.xwiki.XWiki.parseTemplate(XWiki.java:1366) at com.xpn.xwiki.XWiki.parseTemplate(XWiki.java:1335) at com.xpn.xwiki.api.XWiki.parseTemplate(XWiki.java:607) at sun.reflect.GeneratedMethodAccessor162.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces sorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:585) at org.apache.velocity.util.introspection.UberspectImpl$VelMethodImpl.in voke(UberspectImpl.java:295) at org.apache.velocity.runtime.parser.node.ASTMethod.execute(ASTMethod.j ava:245) at org.apache.velocity.runtime.parser.node.ASTReference.execute(ASTRefer ence.java:203) at org.apache.velocity.runtime.parser.node.ASTReference.render(ASTRefere nce.java:294) at org.apache.velocity.runtime.parser.node.SimpleNode.render(SimpleNode. java:318) at org.apache.velocity.runtime.directive.VelocimacroProxy.render(Velocim acroProxy.java:194) at org.apache.velocity.runtime.parser.node.ASTDirective.render(ASTDirect ive.java:170) at org.apache.velocity.runtime.parser.node.SimpleNode.render(SimpleNode. java:318) at com.xpn.xwiki.render.XWikiVelocityRenderer.evaluate(XWikiVelocityRend erer.java:238) at com.xpn.xwiki.render.XWikiVelocityRenderer.evaluate(XWikiVelocityRend erer.java:152) at com.xpn.xwiki.XWiki.parseTemplate(XWiki.java:1366) at com.xpn.xwiki.XWiki.parseTemplate(XWiki.java:1335) at com.xpn.xwiki.web.Utils.parseTemplate(Utils.java:105) at com.xpn.xwiki.web.Utils.parseTemplate(Utils.java:48) at com.xpn.xwiki.web.XWikiAction.execute(XWikiAction.java:186) at org.apache.struts.action.RequestProcessor.processActionPerform(Reques tProcessor.java:431) at org.apache.struts.action.RequestProcessor.process(RequestProcessor.ja va:236) at org.apache.struts.action.ActionServlet.process(ActionServlet.java:119 6) at org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:414) at javax.servlet.http.HttpServlet.service(HttpServlet.java:689) at javax.servlet.http.HttpServlet.service(HttpServlet.java:802) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Appl icationFilterChain.java:252) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationF ilterChain.java:173) at com.xpn.xwiki.web.SetCharacterEncodingFilter.doFilter(SetCharacterEnc odingFilter.java:117)
-----Original Message----- From: [email protected] [mailto:[email protected]] On Behalf Of Sergiu Dumitriu Sent: Thursday, February 07, 2008 8:27 PM To: XWiki Users Subject: Re: [xwiki-users] Error on Tomcat console possibly related to adding a second blog
Dicheva, Darina wrote:
Hello,
I have installed xwiki 1.2 (MySql, Tomcat 5), and created a second blog following a suggestion in a previous postage to this list (by adding the $space variable to the blog macro). Everything seems to work just fine, but nevertheless I get error messages displayed on the Tomcat console, such as:
16:40:41,008 [http://iiscs.wssu.edu/xwiki/bin/view/Blog/] [http-80-Processor4] ERROR log.SimpleLog4JLogSystem - Left side ($bentrydoc.fullName) of '==' operation has null value. If a reference, it may not be in the context. Operation not possible. Blog.WebHome [line 20, column 28]
It seems that the error is in the Blog.Macros' line below (I edited the original line to include $space):
#if(($bentrydoc.fullName == $item)&& (!$space ||($space=="") || ($bentrydoc.getSpace()==$space)) )
Is it normal to get those kind of messages, and if not, is this a result of my modification, and how can I fix it?
Since I don't really know Velocity, any advice will be highly appreciated.
Thanks, Darina
Hi,
The error is not cause by adding $space in there. I think this is an error in the original script, but it is not a severe one. You can fix it
if you replace the line with:
#if($bentrydoc && ($bentrydoc.fullName == $item) && (!$space || ($space=="") || ($bentrydoc.getSpace()==$space)))
-- Sergiu Dumitriu http://purl.org/net/sergiu/ _______________________________________________ users mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/users
Dicheva, Darina wrote:
Sergiu,
Any idea why I am getting the following exception (http://www.airl ine-tickets.dl.pl is not something I have entered anywhere ...)?
Thanks in advance.
I searched the site, and couldn't find that string anywhere.
I know, I have searched the site for urs appearing in different exceptions ...
I don't think that is an URL generated by XWiki, so I'd say that most probably somebody browsing the site accidentally entered a wrong URL. Does that exception appear more than once?
In fact, yes, I get such exceptions all the time (see the latest three below). Interesting, while in exceptions with url (eg 1st and 2nd), urls change, the third exception ([http://iiscs.wssu.edu/xwiki/bin/viewrev/Photos/IISMembers?xpage=pr int&rev=1.158]) reoccurs. Perhaps these are two different cases. I did have an older version of xwiki installed before, where I think I had a page IISMembers, however, I deleted that installation completely, including the xwiki database (in MySQL) and did a new installation, so there is nowhere this page could come from ... Complete mystery ...
Not a mystery, I think Google is causing some of the errors (exceptions for old pages). Sometime these links used to be there, Google indexed them, and now it tries to reindex them. The rest of the exceptions are indeed spam attempts. I've seen them too on one of the servers I manage, but they don't succeed in doing anything. Probably a spambot trying URLs that work on other sites, but that don't affect XWiki.
As to the first case, I wonder can this browsing be done by programs that try to insert somehow various urls in the wiki site, and if it is so, whether can I prevent this ... also, if this is the reason, should it really cause exception but not just a warning message that there is no such document?
Normally, it should say that the document does not exist, but the URL is so malformed, that the engine gets an error. I'll try to fix this, but it will help you only if you upgrade to the next XWiki version. As long as these exceptions don't affect the users, but just confuse Google and fill the logs, I'd say they are not of great importance. Watch http://jira.xwiki.org/jira/browse/XWIKI-2091 for details.
Thanks a lot for your help, Darina -------------------- 09:28:26,247 [http://iiscs.wssu.edu/xwiki/bin/view/Photos/url=http://www.quizill a.com/users/ringtone-807/journal/572561/] [http-80-Processor29] ERROR log.Simple Log4JLogSystem - Method display threw exception for reference $doc in template at [12,7] org.apache.velocity.exception.MethodInvocationException: Invocation of method 'display' in class com.xpn.xwiki.api.Document threw exception java.lang.NullPointerException @ <unknown template>[12,13] at org.apache.velocity.runtime.parser.node.ASTMethod.execute(ASTMethod.j ava:286) at org.apache.velocity.runtime.parser.node.ASTReference.execute(ASTRefer ence.java:203) at ----------------------- 09:52:28,563 [http://iiscs.wssu.edu/xwiki/bin/viewrev/Photos/url=http://herbalph enik.ovp.pl] [http-80-Processor26] ERROR log.SimpleLog4JLogSystem - Method display threw exception for reference $doc in template at [12,7] org.apache.velocity.exception.MethodInvocationException: Invocation of method 'display' in class com.xpn.xwiki.api.Document threw exception java.lang.NullPoint erException @ <unknown template>[12,13] at org.apache.velocity.runtime.parser.node.ASTMethod.execute(ASTMethod.j ava:286) at org.apache.velocity.runtime.parser.node.ASTReference.execute(ASTRefer ence.java:203) at org.apache.velocity.runtime.parser.node.ASTReference.render(ASTRefere nce.java:294) at org.apache.velocity.runtime.parser.node.ASTBlock.render(ASTBlock.java :74) at org.apache.velocity.runtime.parser.node.SimpleNode.render(SimpleNode. java:318) at org.apache.velocity.runtime.parser.node.ASTIfStatement.render(ASTIfSt --------------------- 09:40:11,202 [http://iiscs.wssu.edu/xwiki/bin/viewrev/Photos/IISMembers?xpage=pr int&rev=1.158] [http-80-Processor29] ERROR log.SimpleLog4JLogSystem - Method getRenderedContent threw exception for reference $cdoc in template at [7,1] org.apache.velocity.exception.MethodInvocationException: Invocation of method 'getRenderedContent' in class com.xpn.xwiki.api.Document threw exception com.xpn. xwiki.XWikiException: Error number 3205 in 3: Version 1.158 does not exist while reading document Photos.IISMembers @ <unknown template>[7,7] at org.apache.velocity.runtime.parser.node.ASTMethod.execute(ASTMethod.j ava:286) at org.apache.velocity.runtime.parser.node.ASTReference.execute(ASTRefer ence.java:203) at org.apache.velocity.runtime.parser.node.ASTReference.render(ASTRefere nce.java:294) at org.apache.velocity.runtime.parser.node.SimpleNode.render(SimpleNode. java:318) at com.xpn.xwiki.render.XWikiVelocityRenderer.evaluate(XWikiVelocityRend erer.java:238) at com.xpn.xwiki.render.XWikiVelocityRenderer.evaluate(XWikiVelocityRend erer.java:152) at com.xpn.xwiki.XWiki.parseTemplate(XWiki.java:1366) at com.xpn.xwiki.XWiki.parseTemplate(XWiki.java:1335) at com.xpn.xwiki.api.XWiki.parseTemplate(XWiki.java:607) at sun.reflect.GeneratedMethodAccessor162.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces sorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:585) at org.apache.velocity.util.introspection.UberspectImpl$VelMethodImpl.in voke(UberspectImpl.java:295) at org.apache.velocity.runtime.parser.node.ASTMethod.execute(ASTMethod.j ava:245) at org.apache.velocity.runtime.parser.node.ASTReference.execute(ASTRefer ence.java:203) at org.apache.velocity.runtime.parser.node.ASTReference.render(ASTRefere nce.java:294) at org.apache.velocity.runtime.parser.node.SimpleNode.render(SimpleNode. java:318)
-- Sergiu Dumitriu http://purl.org/net/sergiu/
Thanks for the response No tables are created in my database. I am attaching xwiki.hbm.xml Below is hbm.cfg.xml <?xml version='1.0' encoding='utf-8'?> <!DOCTYPE hibernate-configuration PUBLIC "-//Hibernate/Hibernate Configuration DTD//EN" "http://hibernate.sourceforge.net/hibernate-configuration-3.0.dtd"> <hibernate-configuration> <session-factory> <property name="connection.url">jdbc:oracle:thin:@xxx</property> <property name="connection.username">xxx</property> <property name="connection.password">xxx</property> <property name="connection.driver_class">oracle.jdbc.driver.OracleDriver</property> <property name="connection.provider_class">com.xpn.xwiki.store.DBCPConnectionProvider</property> <property name="connection.pool_size">8</property> <property name="statement_cache.size">8</property> <property name="hibernate.dialect">org.hibernate.dialect.OracleDialect</property> <property name="hibernate.query.substitutions">true=1, false=0</property> <!-- Mapping files --> <mapping resource="xwiki.hbm.xml"/> </session-factory> </hibernate-configuration> vmassol wrote:
On Feb 8, 2008, at 2:22 AM, Sergiu Dumitriu wrote:
sanjayV wrote:
Sorry for that. i was not sure my message was submitted for the first time. thats the reason i tried couple of times I am using xwiki-web-1.1.2. Not sure what do you mean by oracle jdbc connector.
The connector is there, as the stacktrace shows.
I would recommend switching to XWiki 1.2.1, as it fixes several problems with Oracle.
Also make sure to read the release notes since you need to upgrade the Hibernate version if you're using 1.2. This is fixed in 1.3M1.
-Vincent
The problem is that the database schema is not correctly created. When you said that you changed xwiki.hbm.xml, what exactly did you change? Were there other errors before this one in the log? If you connect directly to the database, can you see some tables in the xwiki database?
The following is the stack
Wrapped Exception:
com.xpn.xwiki.XWikiException: Error number 3212 in 3: Exception while loading ar chive -237,561,194 Wrapped Exception: could not load an entity: [com.xpn.xwiki.doc.XWikiDocumentArc hive#-237561194] at com.xpn.xwiki.store.XWikiHibernateVersioningStore.loadXWikiDocArchive (XWikiHibernateVersioningStore.java:118) at com.xpn.xwiki.store.XWikiHibernateVersioningStore.getXWikiDocumentArc hive(XWikiHibernateVersioningStore.java:87) at com.xpn.xwiki.store.XWikiHibernateVersioningStore.updateXWikiDocArchi ve(XWikiHibernateVersioningStore.java:238) at com.xpn.xwiki.store.XWikiHibernateStore.saveXWikiDoc(XWikiHibernateSt ore.java:245) at com.xpn.xwiki.store.XWikiCacheStore.saveXWikiDoc(XWikiCacheStore.java :97) at com.xpn.xwiki.store.XWikiCacheStore.saveXWikiDoc(XWikiCacheStore.java :91) at com.xpn.xwiki.XWiki.saveDocument(XWiki.java:957) at com.xpn.xwiki.XWiki.saveDocument(XWiki.java:935) at com.xpn.xwiki.plugin.calendar.CalendarPlugin.getCalendarEventClass(Ca lendarPlugin.java:82) at com.xpn.xwiki.plugin.calendar.CalendarPlugin.init(CalendarPlugin.java :294) at com.xpn.xwiki.plugin.XWikiPluginManager.initPlugin(XWikiPluginManager .java:130) at com.xpn.xwiki.plugin.XWikiPluginManager.addPlugin(XWikiPluginManager. java:69) at com.xpn.xwiki.plugin.XWikiPluginManager.addPlugins(XWikiPluginManager .java:95) at com.xpn.xwiki.XWiki.preparePlugins(XWiki.java:754) at com.xpn.xwiki.XWiki.initXWiki(XWiki.java:708) at com.xpn.xwiki.XWiki.<init>(XWiki.java:611) at com.xpn.xwiki.XWiki.getMainXWiki(XWiki.java:238) at com.xpn.xwiki.XWiki.getXWiki(XWiki.java:397) at com.xpn.xwiki.web.XWikiAction.execute(XWikiAction.java:94) at org.apache.struts.action.RequestProcessor.processActionPerform(Reques tProcessor.java:431) at org.apache.struts.action.RequestProcessor.process(RequestProcessor.ja va:236) at org.apache.struts.action.ActionServlet.process(ActionServlet.java:119 6) at org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:414) at javax.servlet.http.HttpServlet.service(HttpServlet.java: 740) at javax.servlet.http.HttpServlet.service(HttpServlet.java: 853) at weblogic.servlet.internal.ServletStubImpl$ServletInvocationAction.run (ServletStubImpl.java:1006) at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubIm pl.java:419) at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:28) at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.ja va:27) at com.bea.p13n.servlets.PortalServletFilter.doFilter(PortalServletFilte r.java:293) at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.ja va:27) at com.xpn.xwiki.web.SetCharacterEncodingFilter.doFilter(SetCharacterEnc odingFilter.java:117) at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.ja va:27) at weblogic.servlet.internal.WebAppServletContext$ServletInvocationActio n.run(WebAppServletContext.java:6724) at weblogic.security.acl.internal.AuthenticatedSubject.doAs(Authenticate dSubject.java:321) at weblogic.security.service.SecurityManager.runAs(SecurityManager.java: 121) at weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppSe rvletContext.java:3764) at weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestIm pl.java:2644) at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java: 219) at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:178)
Wrapped Exception:
java.sql.SQLException: ORA-00942: table or view does not exist
at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java :125) at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java: 305) at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java: 272) at oracle.jdbc.driver.T4C8Oall.receive(T4C8Oall.java:623) at oracle.jdbc.driver.T4CPreparedStatement.doOall8(T4CPreparedStatement. java:181) at oracle.jdbc.driver.T4CPreparedStatement.execute_for_describe(T4CPrepa redStatement.java:420) at oracle.jdbc.driver.OracleStatement.execute_maybe_describe(OracleState ment.java:894) at oracle.jdbc.driver.T4CPreparedStatement.execute_maybe_describe(T4CPre paredStatement.java:452) at oracle.jdbc.driver.OracleStatement.doExecuteWithTimeout(OracleStateme nt.java:984) at oracle.jdbc.driver.OraclePreparedStatement.executeInternal(OraclePrep aredStatement.java:2885) at oracle.jdbc.driver.OraclePreparedStatement.executeQuery(OraclePrepare dStatement.java:2926) at org.apache.commons.dbcp.DelegatingPreparedStatement.executeQuery(Dele gatingPreparedStatement.java:93) at org.hibernate.jdbc.AbstractBatcher.getResultSet(AbstractBatcher.java: 139) at org.hibernate.loader.Loader.getResultSet(Loader.java:1669) at org.hibernate.loader.Loader.doQuery(Loader.java:662) at org.hibernate.loader.Loader.doQueryAndInitializeNonLazyCollections(Lo ader.java:224) at org.hibernate.loader.Loader.loadEntity(Loader.java:1785) at org.hibernate.loader.entity.AbstractEntityLoader.load(AbstractEntityL oader.java:93) at org.hibernate.loader.entity.AbstractEntityLoader.load(AbstractEntityL oader.java:81) at org.hibernate.persister.entity.AbstractEntityPersister.load(AbstractE ntityPersister.java:2730) at org.hibernate.event.def.DefaultLoadEventListener.loadFromDatasource(D efaultLoadEventListener.java:365) at org.hibernate.event.def.DefaultLoadEventListener.doLoad(DefaultLoadEv entListener.java:346) at org.hibernate.event.def.DefaultLoadEventListener.load(DefaultLoadEven tListener.java:123) at org.hibernate.event.def.DefaultLoadEventListener.proxyOrLoad(DefaultL oadEventListener.java:177) at org.hibernate.event.def.DefaultLoadEventListener.onLoad(DefaultLoadEv entListener.java:87) at org.hibernate.impl.SessionImpl.fireLoad(SessionImpl.java: 891) at org.hibernate.impl.SessionImpl.load(SessionImpl.java:799) at com.xpn.xwiki.store.XWikiHibernateVersioningStore.loadXWikiDocArchive (XWikiHibernateVersioningStore.java:108) at com.xpn.xwiki.store.XWikiHibernateVersioningStore.getXWikiDocumentArc hive(XWikiHibernateVersioningStore.java:87) at com.xpn.xwiki.store.XWikiHibernateVersioningStore.updateXWikiDocArchi ve(XWikiHibernateVersioningStore.java:238) at com.xpn.xwiki.store.XWikiHibernateStore.saveXWikiDoc(XWikiHibernateSt ore.java:245) at com.xpn.xwiki.store.XWikiCacheStore.saveXWikiDoc(XWikiCacheStore.java :97) at com.xpn.xwiki.store.XWikiCacheStore.saveXWikiDoc(XWikiCacheStore.java :91) at com.xpn.xwiki.XWiki.saveDocument(XWiki.java:957) at com.xpn.xwiki.XWiki.saveDocument(XWiki.java:935) at com.xpn.xwiki.plugin.calendar.CalendarPlugin.getCalendarEventClass(Ca lendarPlugin.java:82) at com.xpn.xwiki.plugin.calendar.CalendarPlugin.init(CalendarPlugin.java :294) at com.xpn.xwiki.plugin.XWikiPluginManager.initPlugin(XWikiPluginManager .java:130) at com.xpn.xwiki.plugin.XWikiPluginManager.addPlugin(XWikiPluginManager. java:69) at com.xpn.xwiki.plugin.XWikiPluginManager.addPlugins(XWikiPluginManager .java:95) at com.xpn.xwiki.XWiki.preparePlugins(XWiki.java:754) at com.xpn.xwiki.XWiki.initXWiki(XWiki.java:708) at com.xpn.xwiki.XWiki.<init>(XWiki.java:611) at com.xpn.xwiki.XWiki.getMainXWiki(XWiki.java:238) at com.xpn.xwiki.XWiki.getXWiki(XWiki.java:397) at com.xpn.xwiki.web.XWikiAction.execute(XWikiAction.java:94) at org.apache.struts.action.RequestProcessor.processActionPerform(Reques tProcessor.java:431) at org.apache.struts.action.RequestProcessor.process(RequestProcessor.ja va:236) at org.apache.struts.action.ActionServlet.process(ActionServlet.java:119 6) at org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:414) at javax.servlet.http.HttpServlet.service(HttpServlet.java: 740) at javax.servlet.http.HttpServlet.service(HttpServlet.java: 853) at weblogic.servlet.internal.ServletStubImpl$ServletInvocationAction.run (ServletStubImpl.java:1006) at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubIm pl.java:419) at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:28) at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.ja va:27) at com.bea.p13n.servlets.PortalServletFilter.doFilter(PortalServletFilte r.java:293) at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.ja va:27) at com.xpn.xwiki.web.SetCharacterEncodingFilter.doFilter(SetCharacterEnc odingFilter.java:117) at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.ja va:27) at weblogic.servlet.internal.WebAppServletContext$ServletInvocationActio n.run(WebAppServletContext.java:6724) at weblogic.security.acl.internal.AuthenticatedSubject.doAs(Authenticate dSubject.java:321) at weblogic.security.service.SecurityManager.runAs(SecurityManager.java: 121) at weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppSe rvletContext.java:3764) at weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestIm pl.java:2644) at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java: 219) at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:178) com.xpn.xwiki.XWikiException: Error number 3223 in 3: Exception while searching documents with SQL [select distinct doc.web, doc.name from XWikiDocument as doc]
Wrapped Exception: ClassNotFoundException: org.hibernate.hql.ast.HqlToken [selec t distinct doc.web, doc.name from com.xpn.xwiki.doc.XWikiDocument as doc] at com.xpn.xwiki.store.XWikiHibernateStore.searchDocumentsNamesInternal( XWikiHibernateStore.java:1852) at com.xpn.xwiki.store.XWikiHibernateStore.searchDocumentsNames(XWikiHib ernateStore.java:1811) at com.xpn.xwiki.store.XWikiHibernateStore.searchDocumentsNames(XWikiHib ernateStore.java:2231) at com.xpn.xwiki.store.XWikiCacheStore.searchDocumentsNames(XWikiCacheSt ore.java:200) at com.xpn.xwiki.plugin.lucene.IndexRebuilder.indexWiki(IndexRebuilder.j ava:116) at com.xpn.xwiki.plugin.lucene.IndexRebuilder.rebuildIndex(IndexRebuilde r.java:92) at com.xpn.xwiki.plugin.lucene.IndexRebuilder.<init>(IndexRebuilder.java :57) at com.xpn.xwiki.plugin.lucene.LucenePlugin.init(LucenePlugin.java:361) at com.xpn.xwiki.plugin.XWikiPluginManager.initPlugin(XWikiPluginManager .java:130) at com.xpn.xwiki.plugin.XWikiPluginManager.addPlugin(XWikiPluginManager. java:69) at com.xpn.xwiki.plugin.XWikiPluginManager.addPlugins(XWikiPluginManager .java:95) at com.xpn.xwiki.XWiki.preparePlugins(XWiki.java:754) at com.xpn.xwiki.XWiki.initXWiki(XWiki.java:708) at com.xpn.xwiki.XWiki.<init>(XWiki.java:611) at com.xpn.xwiki.XWiki.getMainXWiki(XWiki.java:238) at com.xpn.xwiki.XWiki.getXWiki(XWiki.java:397) at com.xpn.xwiki.web.XWikiAction.execute(XWikiAction.java:94) at org.apache.struts.action.RequestProcessor.processActionPerform(Reques tProcessor.java:431) at org.apache.struts.action.RequestProcessor.process(RequestProcessor.ja va:236) at org.apache.struts.action.ActionServlet.process(ActionServlet.java:119 6) at org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:414) at javax.servlet.http.HttpServlet.service(HttpServlet.java: 740) at javax.servlet.http.HttpServlet.service(HttpServlet.java: 853) at weblogic.servlet.internal.ServletStubImpl$ServletInvocationAction.run (ServletStubImpl.java:1006) at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubIm pl.java:419) at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:28) at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.ja va:27) at com.bea.p13n.servlets.PortalServletFilter.doFilter(PortalServletFilte r.java:293) at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.ja va:27) at com.xpn.xwiki.web.SetCharacterEncodingFilter.doFilter(SetCharacterEnc odingFilter.java:117) at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.ja va:27) at weblogic.servlet.internal.WebAppServletContext$ServletInvocationActio n.run(WebAppServletContext.java:6724) at weblogic.security.acl.internal.AuthenticatedSubject.doAs(Authenticate dSubject.java:321) at weblogic.security.service.SecurityManager.runAs(SecurityManager.java: 121) at weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppSe rvletContext.java:3764) at weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestIm pl.java:2644) at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java: 219) at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:178)
Sergiu Dumitriu-2 wrote:
sanjayV wrote:
Hi
I downloaded xwiki war file and changed the hbm.cfg.xml , xwiki.hbm.xml I am using weblogic portal and oracle9i. After deploying when i used the following url http://localhost:7788/xwiki/bin/view/Main/WebHome.
I got the following error Error number 3 in 0: Could not initialize main XWiki context Wrapped Exception: Error number 3202 in 3: Exception while reading document XWiki.XWikiPreferences Wrapped Exception: could not load an entity: [com.xpn.xwiki.doc.XWikiDocument#104408758]
Can somebody help me out Hi,
Can you give some more details? - What version of XWiki Enterprise are you using? - Did you also add the oracle jdbc connector? - Can you give a longer stacktrace?
-- Sergiu Dumitriu http://purl.org/net/sergiu/ _______________________________________________ users mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/users
_______________________________________________ users mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/users
http://www.nabble.com/file/p15358347/xwiki.hbm.xml xwiki.hbm.xml -- View this message in context: http://www.nabble.com/Unable-to-deploy-xwiki-with-weblogic-portal---oracle-t... Sent from the XWiki- Users mailing list archive at Nabble.com.
Thanks so much, Sergiu - I do appreciate your explanation. It feels better when one knows what is going on :-) And I will watch the jira 2091 issue. All the very best, Darina -----Original Message----- From: [email protected] [mailto:[email protected]] On Behalf Of Sergiu Dumitriu Sent: Friday, February 08, 2008 10:48 AM To: XWiki Users Subject: Re: [xwiki-users] Error on Tomcat console possibly related to adding asecond blog Dicheva, Darina wrote:
Sergiu,
Any idea why I am getting the following exception (http://www.airl ine-tickets.dl.pl is not something I have entered anywhere ...)?
Thanks in advance.
I searched the site, and couldn't find that string anywhere.
I know, I have searched the site for urs appearing in different exceptions ...
I don't think that is an URL generated by XWiki, so I'd say that most probably somebody browsing the site accidentally entered a wrong URL.
Does that exception appear more than once?
In fact, yes, I get such exceptions all the time (see the latest three below). Interesting, while in exceptions with url (eg 1st and 2nd), urls change, the third exception ([http://iiscs.wssu.edu/xwiki/bin/viewrev/Photos/IISMembers?xpage=pr int&rev=1.158]) reoccurs. Perhaps these are two different cases. I did have an older version of xwiki installed before, where I think I had a page IISMembers, however, I deleted that installation completely, including the xwiki database (in MySQL) and did a new installation, so there is nowhere this page could come from ... Complete mystery ...
Not a mystery, I think Google is causing some of the errors (exceptions for old pages). Sometime these links used to be there, Google indexed them, and now it tries to reindex them. The rest of the exceptions are indeed spam attempts. I've seen them too on one of the servers I manage, but they don't succeed in doing anything. Probably a spambot trying URLs that work on other sites, but that don't affect XWiki.
As to the first case, I wonder can this browsing be done by programs that try to insert somehow various urls in the wiki site, and if it is so, whether can I prevent this ... also, if this is the reason, should it really cause exception but not just a warning message that there is no such document?
Normally, it should say that the document does not exist, but the URL is so malformed, that the engine gets an error. I'll try to fix this, but it will help you only if you upgrade to the next XWiki version. As long as these exceptions don't affect the users, but just confuse Google and fill the logs, I'd say they are not of great importance. Watch http://jira.xwiki.org/jira/browse/XWIKI-2091 for details.
Thanks a lot for your help, Darina -------------------- 09:28:26,247 [http://iiscs.wssu.edu/xwiki/bin/view/Photos/url=http://www.quizill a.com/users/ringtone-807/journal/572561/] [http-80-Processor29] ERROR log.Simple Log4JLogSystem - Method display threw exception for reference $doc in template at [12,7] org.apache.velocity.exception.MethodInvocationException: Invocation of method 'display' in class com.xpn.xwiki.api.Document threw exception java.lang.NullPointerException @ <unknown template>[12,13] at org.apache.velocity.runtime.parser.node.ASTMethod.execute(ASTMethod.j ava:286) at org.apache.velocity.runtime.parser.node.ASTReference.execute(ASTRefer ence.java:203) at ----------------------- 09:52:28,563 [http://iiscs.wssu.edu/xwiki/bin/viewrev/Photos/url=http://herbalph enik.ovp.pl] [http-80-Processor26] ERROR log.SimpleLog4JLogSystem - Method display threw exception for reference $doc in template at [12,7] org.apache.velocity.exception.MethodInvocationException: Invocation of method 'display' in class com.xpn.xwiki.api.Document threw exception java.lang.NullPoint erException @ <unknown template>[12,13] at org.apache.velocity.runtime.parser.node.ASTMethod.execute(ASTMethod.j ava:286) at org.apache.velocity.runtime.parser.node.ASTReference.execute(ASTRefer ence.java:203) at org.apache.velocity.runtime.parser.node.ASTReference.render(ASTRefere nce.java:294) at org.apache.velocity.runtime.parser.node.ASTBlock.render(ASTBlock.java :74) at org.apache.velocity.runtime.parser.node.SimpleNode.render(SimpleNode. java:318) at org.apache.velocity.runtime.parser.node.ASTIfStatement.render(ASTIfSt --------------------- 09:40:11,202 [http://iiscs.wssu.edu/xwiki/bin/viewrev/Photos/IISMembers?xpage=pr int&rev=1.158] [http-80-Processor29] ERROR log.SimpleLog4JLogSystem - Method getRenderedContent threw exception for reference $cdoc in template at [7,1] org.apache.velocity.exception.MethodInvocationException: Invocation of method 'getRenderedContent' in class com.xpn.xwiki.api.Document threw exception com.xpn. xwiki.XWikiException: Error number 3205 in 3: Version 1.158 does not exist while reading document Photos.IISMembers @ <unknown template>[7,7] at org.apache.velocity.runtime.parser.node.ASTMethod.execute(ASTMethod.j ava:286) at org.apache.velocity.runtime.parser.node.ASTReference.execute(ASTRefer ence.java:203) at org.apache.velocity.runtime.parser.node.ASTReference.render(ASTRefere nce.java:294) at org.apache.velocity.runtime.parser.node.SimpleNode.render(SimpleNode. java:318) at com.xpn.xwiki.render.XWikiVelocityRenderer.evaluate(XWikiVelocityRend erer.java:238) at com.xpn.xwiki.render.XWikiVelocityRenderer.evaluate(XWikiVelocityRend erer.java:152) at com.xpn.xwiki.XWiki.parseTemplate(XWiki.java:1366) at com.xpn.xwiki.XWiki.parseTemplate(XWiki.java:1335) at com.xpn.xwiki.api.XWiki.parseTemplate(XWiki.java:607) at sun.reflect.GeneratedMethodAccessor162.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces sorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:585) at org.apache.velocity.util.introspection.UberspectImpl$VelMethodImpl.in voke(UberspectImpl.java:295) at org.apache.velocity.runtime.parser.node.ASTMethod.execute(ASTMethod.j ava:245) at org.apache.velocity.runtime.parser.node.ASTReference.execute(ASTRefer ence.java:203) at org.apache.velocity.runtime.parser.node.ASTReference.render(ASTRefere nce.java:294) at org.apache.velocity.runtime.parser.node.SimpleNode.render(SimpleNode. java:318)
-- Sergiu Dumitriu http://purl.org/net/sergiu/ _______________________________________________ users mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/users
participants (5)
-
Dicheva, Darina -
Gabe Wong -
sanjayV -
Sergiu Dumitriu -
Vincent Massol