Problem with dashboard gadgets with XWiki 5.0 RC1

classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

Problem with dashboard gadgets with XWiki 5.0 RC1

Hoani CROSS
Hi,

Installed last version of XWiki on CentOS 5 (with tomcat 5) on postgresql
and CentOS 6 (with tomcat 7) on mysql and go the same error while trying to
deal with dashboard gadgets, I get this error, reported from the tomcat
logs :

SEVERE: Servlet.service() for servlet [gwtrpc] in context with path
[/xwiki] threw exception [Failed to initialize the XWiki context.] with
root cause
com.xpn.xwiki.XWikiException: Error number 2 in 0: The wiki
[subdomain-of-my-server] does not exist
        at com.xpn.xwiki.XWiki.getXWiki(XWiki.java:505)
        at
org.xwiki.wysiwyg.server.filter.XWikiContextInitializationFilter.initializeXWikiContext(XWikiContextInitializationFilter.java:134)
        at
org.xwiki.wysiwyg.server.filter.XWikiContextInitializationFilter.doFilter(XWikiContextInitializationFilter.java:83)
        at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)
        at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
        at
com.xpn.xwiki.plugin.webdav.XWikiDavFilter.doFilter(XWikiDavFilter.java:66)
        at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)
        at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
        at
org.xwiki.container.servlet.filters.internal.SavedRequestRestorerFilter.doFilter(SavedRequestRestorerFilter.java:208)
        at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)
        at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
        at
org.xwiki.container.servlet.filters.internal.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:111)
        at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)
        at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
        at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:222)
        at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:123)
        at
org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:472)
        at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:171)
        at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:99)
        at
org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:947)
        at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:118)
        at
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:408)
        at
org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1009)
        at
org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:589)
        at
org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:312)
        at
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
        at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
        at java.lang.Thread.run(Thread.java:722)

Can anyone help ?

Hoani CROSS
Globotraders Tahiti Founder [http://globotraders-tahiti.com]
_______________________________________________
users mailing list
[hidden email]
http://lists.xwiki.org/mailman/listinfo/users
Reply | Threaded
Open this post in threaded view
|

Re: Problem with dashboard gadgets with XWiki 5.0 RC1

vmassol
Administrator
Hi Hoani,

Long time no talk! Good to see that you're still an XWiki user ;)

See below

On May 3, 2013, at 5:02 AM, Hoani Cross <[hidden email]> wrote:

> Hi,
>
> Installed last version of XWiki on CentOS 5 (with tomcat 5) on postgresql
> and CentOS 6 (with tomcat 7) on mysql and go the same error while trying to
> deal with dashboard gadgets, I get this error, reported from the tomcat
> logs :
>
> SEVERE: Servlet.service() for servlet [gwtrpc] in context with path
> [/xwiki] threw exception [Failed to initialize the XWiki context.] with
> root cause
> com.xpn.xwiki.XWikiException: Error number 2 in 0: The wiki
> [subdomain-of-my-server] does not exist
>        at com.xpn.xwiki.XWiki.getXWiki(XWiki.java:505)

[snip]

The code at line 505 is:

        XWikiDocument doc = xwiki.getDocument(wikiDescriptorDocument, context);
        if (doc.isNew()) {
            throw new XWikiException(XWikiException.MODULE_XWIKI, XWikiException.ERROR_XWIKI_DOES_NOT_EXIST,
                String.format("The wiki [%s] does not exist", wikiName));
        }


So this means that the descriptor page for the wiki named "subdomain-of-my-server" doesn't exist.

The doc name is computed like this:

        DocumentReference wikiDescriptorReference =
            new DocumentReference(context.getMainXWiki(), XWiki.SYSTEM_SPACE, String.format("XWikiServer%s",
                StringUtils.capitalize(wikiName.toLowerCase())));
        XWikiDocument wikiDescriptorDocument = xwiki.getDocument(wikiDescriptorReference, context);

So in your case that would be:

XWiki.XWikiServerSubdomain-of-my-server

Hope it helps,
-Vincent




_______________________________________________
users mailing list
[hidden email]
http://lists.xwiki.org/mailman/listinfo/users
Reply | Threaded
Open this post in threaded view
|

Re: Problem with dashboard gadgets with XWiki 5.0 RC1

Hoani CROSS
I tried to create an empty document for my subdomain (which is 'eu' in
fact) at XWiki.XWikiServerEu and now my whole XWiki setup is screwed with
this error on the navigator :

Detailed information:

    Error number 3202 in 3: Exception while reading document [eu:Main.WebHome]
Wrapped Exception: Error number 3301 in 3: Exception while switching
to database eu
Wrapped Exception: error executing work
com.xpn.xwiki.XWikiException: Error number 3202 in 3: Exception while
reading document [eu:Main.WebHome]
Wrapped Exception: Error number 3301 in 3: Exception while switching
to database eu
Wrapped Exception: error executing work
        at com.xpn.xwiki.store.XWikiHibernateStore.loadXWikiDoc(XWikiHibernateStore.java:901)
        at com.xpn.xwiki.store.XWikiCacheStore.loadXWikiDoc(XWikiCacheStore.java:290)
        at com.xpn.xwiki.XWiki.getDocument(XWiki.java:1488)
        at com.xpn.xwiki.XWiki.getDocument(XWiki.java:1531)
        at com.xpn.xwiki.XWiki.prepareDocuments(XWiki.java:4747)
        at com.xpn.xwiki.web.XWikiAction.execute(XWikiAction.java:237)
        at com.xpn.xwiki.web.XWikiAction.execute(XWikiAction.java:123)
        at org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:431)
        at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:236)
        at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1196)
        at org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:414)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:690)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:269)
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)
        at com.xpn.xwiki.web.ActionFilter.doFilter(ActionFilter.java:120)
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:215)
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)
        at org.xwiki.wysiwyg.server.filter.ConversionFilter.doFilter(ConversionFilter.java:144)
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:215)
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)
        at com.xpn.xwiki.plugin.webdav.XWikiDavFilter.doFilter(XWikiDavFilter.java:66)
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:215)
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)
        at org.xwiki.container.servlet.filters.internal.SavedRequestRestorerFilter.doFilter(SavedRequestRestorerFilter.java:208)
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:215)
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)
        at org.xwiki.container.servlet.filters.internal.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:111)
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:215)
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)
        at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:210)
        at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:172)
        at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
        at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:117)
        at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:108)
        at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:151)
        at org.apache.jk.server.JkCoyoteHandler.invoke(JkCoyoteHandler.java:200)
        at org.apache.jk.common.HandlerRequest.invoke(HandlerRequest.java:291)
        at org.apache.jk.common.ChannelSocket.invoke(ChannelSocket.java:775)
        at org.apache.jk.common.ChannelSocket.processConnection(ChannelSocket.java:704)
        at org.apache.jk.common.ChannelSocket$SocketConnection.runIt(ChannelSocket.java:897)
        at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:685)
        at java.lang.Thread.run(Thread.java:662)
Caused by: com.xpn.xwiki.XWikiException: Error number 3301 in 3:
Exception while switching to database eu
Wrapped Exception: error executing work
        at com.xpn.xwiki.store.XWikiHibernateBaseStore.setDatabase(XWikiHibernateBaseStore.java:701)
        at com.xpn.xwiki.store.XWikiHibernateBaseStore.beginTransaction(XWikiHibernateBaseStore.java:873)
        at com.xpn.xwiki.store.XWikiHibernateBaseStore.beginTransaction(XWikiHibernateBaseStore.java:805)
        at com.xpn.xwiki.store.XWikiHibernateStore.loadXWikiDoc(XWikiHibernateStore.java:777)
        ... 42 more
Caused by: org.hibernate.exception.GenericJDBCException: error executing work
        at org.hibernate.exception.SQLStateConverter.handledNonSpecificException(SQLStateConverter.java:140)
        at org.hibernate.exception.SQLStateConverter.convert(SQLStateConverter.java:128)
        at org.hibernate.exception.JDBCExceptionHelper.convert(JDBCExceptionHelper.java:66)
        at org.hibernate.exception.JDBCExceptionHelper.convert(JDBCExceptionHelper.java:52)
        at org.hibernate.impl.SessionImpl.doWork(SessionImpl.java:2001)
        at com.xpn.xwiki.store.XWikiHibernateBaseStore.executeSQL(XWikiHibernateBaseStore.java:715)
        at com.xpn.xwiki.store.XWikiHibernateBaseStore.setDatabase(XWikiHibernateBaseStore.java:686)
        ... 45 more
Caused by: org.postgresql.util.PSQLException: ERREUR: le schéma « eu »
n'existe pas
        at org.postgresql.core.v3.QueryExecutorImpl.receiveErrorResponse(QueryExecutorImpl.java:1525)
        at org.postgresql.core.v3.QueryExecutorImpl.processResults(QueryExecutorImpl.java:1309)
        at org.postgresql.core.v3.QueryExecutorImpl.execute(QueryExecutorImpl.java:188)
        at org.postgresql.jdbc2.AbstractJdbc2Statement.execute(AbstractJdbc2Statement.java:452)
        at org.postgresql.jdbc2.AbstractJdbc2Statement.executeWithFlags(AbstractJdbc2Statement.java:340)
        at org.postgresql.jdbc2.AbstractJdbc2Statement.execute(AbstractJdbc2Statement.java:332)
        at org.apache.commons.dbcp.DelegatingStatement.execute(DelegatingStatement.java:264)
        at org.apache.commons.dbcp.DelegatingStatement.execute(DelegatingStatement.java:264)
        at com.xpn.xwiki.store.XWikiHibernateBaseStore$1.execute(XWikiHibernateBaseStore.java:722)
        at org.hibernate.impl.SessionImpl.doWork(SessionImpl.java:1997)
        ... 47 more


Wrapped Exception:

org.hibernate.exception.GenericJDBCException: error executing work
        at org.hibernate.exception.SQLStateConverter.handledNonSpecificException(SQLStateConverter.java:140)
        at org.hibernate.exception.SQLStateConverter.convert(SQLStateConverter.java:128)
        at org.hibernate.exception.JDBCExceptionHelper.convert(JDBCExceptionHelper.java:66)
        at org.hibernate.exception.JDBCExceptionHelper.convert(JDBCExceptionHelper.java:52)
        at org.hibernate.impl.SessionImpl.doWork(SessionImpl.java:2001)
        at com.xpn.xwiki.store.XWikiHibernateBaseStore.executeSQL(XWikiHibernateBaseStore.java:715)
        at com.xpn.xwiki.store.XWikiHibernateBaseStore.setDatabase(XWikiHibernateBaseStore.java:686)
        at com.xpn.xwiki.store.XWikiHibernateBaseStore.beginTransaction(XWikiHibernateBaseStore.java:873)
        at com.xpn.xwiki.store.XWikiHibernateBaseStore.beginTransaction(XWikiHibernateBaseStore.java:805)
        at com.xpn.xwiki.store.XWikiHibernateStore.loadXWikiDoc(XWikiHibernateStore.java:777)
        at com.xpn.xwiki.store.XWikiCacheStore.loadXWikiDoc(XWikiCacheStore.java:290)
        at com.xpn.xwiki.XWiki.getDocument(XWiki.java:1488)
        at com.xpn.xwiki.XWiki.getDocument(XWiki.java:1531)
        at com.xpn.xwiki.XWiki.prepareDocuments(XWiki.java:4747)
        at com.xpn.xwiki.web.XWikiAction.execute(XWikiAction.java:237)
        at com.xpn.xwiki.web.XWikiAction.execute(XWikiAction.java:123)
        at org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:431)
        at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:236)
        at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1196)
        at org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:414)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:690)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:269)
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)
        at com.xpn.xwiki.web.ActionFilter.doFilter(ActionFilter.java:120)
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:215)
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)
        at org.xwiki.wysiwyg.server.filter.ConversionFilter.doFilter(ConversionFilter.java:144)
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:215)
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)
        at com.xpn.xwiki.plugin.webdav.XWikiDavFilter.doFilter(XWikiDavFilter.java:66)
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:215)
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)
        at org.xwiki.container.servlet.filters.internal.SavedRequestRestorerFilter.doFilter(SavedRequestRestorerFilter.java:208)
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:215)
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)
        at org.xwiki.container.servlet.filters.internal.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:111)
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:215)
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)
        at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:210)
        at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:172)
        at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
        at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:117)
        at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:108)
        at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:151)
        at org.apache.jk.server.JkCoyoteHandler.invoke(JkCoyoteHandler.java:200)
        at org.apache.jk.common.HandlerRequest.invoke(HandlerRequest.java:291)
        at org.apache.jk.common.ChannelSocket.invoke(ChannelSocket.java:775)
        at org.apache.jk.common.ChannelSocket.processConnection(ChannelSocket.java:704)
        at org.apache.jk.common.ChannelSocket$SocketConnection.runIt(ChannelSocket.java:897)
        at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:685)
        at java.lang.Thread.run(Thread.java:662)
Caused by: org.postgresql.util.PSQLException: ERREUR: le schéma « eu »
n'existe pas
        at org.postgresql.core.v3.QueryExecutorImpl.receiveErrorResponse(QueryExecutorImpl.java:1525)
        at org.postgresql.core.v3.QueryExecutorImpl.processResults(QueryExecutorImpl.java:1309)
        at org.postgresql.core.v3.QueryExecutorImpl.execute(QueryExecutorImpl.java:188)
        at org.postgresql.jdbc2.AbstractJdbc2Statement.execute(AbstractJdbc2Statement.java:452)
        at org.postgresql.jdbc2.AbstractJdbc2Statement.executeWithFlags(AbstractJdbc2Statement.java:340)
        at org.postgresql.jdbc2.AbstractJdbc2Statement.execute(AbstractJdbc2Statement.java:332)
        at org.apache.commons.dbcp.DelegatingStatement.execute(DelegatingStatement.java:264)
        at org.apache.commons.dbcp.DelegatingStatement.execute(DelegatingStatement.java:264)
        at com.xpn.xwiki.store.XWikiHibernateBaseStore$1.execute(XWikiHibernateBaseStore.java:722)
        at org.hibernate.impl.SessionImpl.doWork(SessionImpl.java:1997)
        ... 47 more


The 5.0 version of XWiki is multi-wiki but its seems that it
automatically denote subdomain as virtual wiki but obviously I did
something wrong.


Heeeelp ! :)


Hoani CROSS
Globotraders Tahiti Founder [http://globotraders-tahiti.com]


2013/5/2 Vincent Massol <[hidden email]>

> Hi Hoani,
>
> Long time no talk! Good to see that you're still an XWiki user ;)
>
> See below
>
> On May 3, 2013, at 5:02 AM, Hoani Cross <[hidden email]>
> wrote:
>
> > Hi,
> >
> > Installed last version of XWiki on CentOS 5 (with tomcat 5) on postgresql
> > and CentOS 6 (with tomcat 7) on mysql and go the same error while trying
> to
> > deal with dashboard gadgets, I get this error, reported from the tomcat
> > logs :
> >
> > SEVERE: Servlet.service() for servlet [gwtrpc] in context with path
> > [/xwiki] threw exception [Failed to initialize the XWiki context.] with
> > root cause
> > com.xpn.xwiki.XWikiException: Error number 2 in 0: The wiki
> > [subdomain-of-my-server] does not exist
> >        at com.xpn.xwiki.XWiki.getXWiki(XWiki.java:505)
>
> [snip]
>
> The code at line 505 is:
>
>         XWikiDocument doc = xwiki.getDocument(wikiDescriptorDocument,
> context);
>         if (doc.isNew()) {
>             throw new XWikiException(XWikiException.MODULE_XWIKI,
> XWikiException.ERROR_XWIKI_DOES_NOT_EXIST,
>                 String.format("The wiki [%s] does not exist", wikiName));
>         }
>
>
> So this means that the descriptor page for the wiki named
> "subdomain-of-my-server" doesn't exist.
>
> The doc name is computed like this:
>
>         DocumentReference wikiDescriptorReference =
>             new DocumentReference(context.getMainXWiki(),
> XWiki.SYSTEM_SPACE, String.format("XWikiServer%s",
>                 StringUtils.capitalize(wikiName.toLowerCase())));
>         XWikiDocument wikiDescriptorDocument =
> xwiki.getDocument(wikiDescriptorReference, context);
>
> So in your case that would be:
>
> XWiki.XWikiServerSubdomain-of-my-server
>
> Hope it helps,
> -Vincent
>
>
>
>
> _______________________________________________
> users mailing list
> [hidden email]
> http://lists.xwiki.org/mailman/listinfo/users
>
_______________________________________________
users mailing list
[hidden email]
http://lists.xwiki.org/mailman/listinfo/users
Reply | Threaded
Open this post in threaded view
|

Re: Problem with dashboard gadgets with XWiki 5.0 RC1

zzeroo
And again Stackoverflow held the answer:

http://stackoverflow.com/questions/16605762/xwiki-servlet-exception

This may solve your problem.