Good day.
Had xwiki set up and running for a while now. This morning windows 7 dicided
to do a system recovery on startup. Now when I try to run XWiki I get a HTTP
500 error:
java.lang.NullPointerException
com.xpn.xwiki.web.Utils.getContextComponentManager(Utils.java:695)
com.xpn.xwiki.web.Utils.getComponent(Utils.java:752)
com.xpn.xwiki.web.Utils.getComponent(Utils.java:719)
com.xpn.xwiki.web.XWikiRequestProcessor.processPath(XWikiRequestProcessor.java:47)
org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:154)
org.apache.struts.action.ActionServlet.process(ActionServlet.java:1913)
org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:449)
javax.servlet.http.HttpServlet.service(HttpServlet.java:624)
javax.servlet.http.HttpServlet.service(HttpServlet.java:731)
com.xpn.xwiki.web.ActionFilter.doFilter(ActionFilter.java:115)
org.xwiki.wysiwyg.server.filter.ConversionFilter.doFilter(ConversionFilter.java:127)
org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)
org.xwiki.container.servlet.filters.internal.SetHTTPHeaderFilter.doFilter(SetHTTPHeaderFilter.java:63)
com.xpn.xwiki.plugin.webdav.XWikiDavFilter.doFilter(XWikiDavFilter.java:66)
org.xwiki.container.servlet.filters.internal.SavedRequestRestorerFilter.doFilter(SavedRequestRestorerFilter.java:208)
org.xwiki.container.servlet.filters.internal.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:111)
org.xwiki.resource.servlet.RoutingFilter.doFilter(RoutingFilter.java:137)
Any ideas where to start looking for the problem? I went over the
configuration and all looks fine and MySQL is running and tomcat7 is
running..
Not sure how to recover.
Thanks
--
View this message in context: http://xwiki.475771.n2.nabble.com/XWiki-startup-HTTP-500-issue-tp7596904.ht…
Sent from the XWiki- Users mailing list archive at Nabble.com.
Hi all,
I'm trying the new stable version of XWiki (7.3) and I'm facing problems
with group rights.
I'm unable to keep them set, as if I leave Rights page and then come
back again all rights I've tuned up remain unset (reseted to "default" I
think...)
Is anybody else having this issue? Any workaround?
Thanks in advance!
--
ASOL Email Un cordial saludo,
Iago Lluque
/
*Alínea Software Solutions S.L.*
Travesía del Comercio 3, 2º 36002 Pontevedra España
Tel: +34 986 845 699
Email: info(a)alineasol.com <mailto:info@alineasol.com>
Web: http://www.alineasol.com
/
Hi Thomas,
I managed to do what I wanted. Apparently I mixed up some of the environments. I used the DocumentClass to get a document after I set did the setWiki() but that didn’t work. Once I switched to the XWikiDocument, it worked like a charm. I will most likely have to do some rework to have access to my components from a job :-)
Thanks for the help by answering my questions.
Br,
Peter
Van: Thomas Mortagne <thomas.mortagne(a)xwiki.com <mailto:thomas.mortagne@xwiki.com>>
Onderwerp: Antw.: [xwiki-users] Question on Jobs and context (Peter Huisman)
Datum: 16 november 2015 18:27:13 CET
Aan: XWiki Users <users(a)xwiki.org <mailto:users@xwiki.org>>
Antwoord aan: XWiki Users <users(a)xwiki.org <mailto:users@xwiki.org>>
You should never use the same ExecutionContext or XWikiContext in
different threads since they are really not designed for this and you
will have weird random issue at best.
You can find a example of a component getting the current XWikiContext
and setting the current wiki id on
https://github.com/xwiki/xwiki-platform/blob/master/xwiki-platform-core/xwi… <https://github.com/xwiki/xwiki-platform/blob/master/xwiki-platform-core/xwi…>.
We just switched to 7.3 and loved it! Cleaner look and Nested Spaces was what
we where looking for. Thank you very much for this awesome work!
What we are irritated about is something which is hopefully just a lack of
understanding about rights. We have had groups and adjusted single pages
according to our access policies. Everything worked as expected. After
update to 7.3 all rights do not function anymore! The rights were not
changed but now every user can access every single page - even "Administer
Wiki" on the main wiki and on each subwiki!
We reinvented our whole security rules and rights to the certain pages with
no success.
Could someone please support us in narrowing down this issue?
--
View this message in context: http://xwiki.475771.n2.nabble.com/Irritating-problems-with-rights-tp7596882…
Sent from the XWiki- Users mailing list archive at Nabble.com.
I want to upgrade from Xwiki-5.4.5 to 7.3, but some problems occurs.
I create a backup db, and run 7.3 instance on the backup one.
1. The "Spaces" feature seems disappears, all old spaces are organized in a single root tree.
I can not manage access privilege by Space.
2. The wikis application can not be removed, there is nothing in the "Installed Application", and I DO NOT want the multi wikis.
3. I want to export the old content from the old wiki, and import it into new wiki, but I cannot export only my selected Spaces.
Anyone can point me some way to solve?
Hi Thomas,
I figured something like this. I have however been trying to pass various parameters to the request but this has not resulted in any succes: Passing the entire context (either ExecutionContext or XWikiContext) did’t work and neither did setting the WikiId or the database. Can you help me on this with an example on what (and how) to set?
Br,
Peter
Van: Thomas Mortagne <thomas.mortagne(a)xwiki.com <mailto:thomas.mortagne@xwiki.com>>
Onderwerp: Antw.: [xwiki-users] Question on Jobs and context
Datum: 14 november 2015 14:13:17 CET
Aan: XWiki Users <users(a)xwiki.org <mailto:users@xwiki.org>>
Antwoord aan: XWiki Users <users(a)xwiki.org <mailto:users@xwiki.org>>
You can change the context with in the XWikiContext. See
http://platform.xwiki.org/xwiki/bin/view/DevGuide/WritingComponents#HTheXWi… <http://platform.xwiki.org/xwiki/bin/view/DevGuide/WritingComponents#HTheXWi…>
for how to access it from a component.
Hi,
I downloaded xwiki-enterprise-xwiki-enterprise-7.3 source and try to build
it.
I have created settings.xml following the instruction in
http://dev.open-sankore.org/xwiki/bin/view/Community/Building.
At first, it is failed when building xwiki-enterprise-ui-common. Maven
complain that Could not find artifact
uk.ac.ed.ph.snuggletex:snuggletex-jeuclid:jar:1.1.0.
So I add
<!-- snuggletex-jeuclid -->
<repository>
<id>www2.ph.ed.ac.uk-releases</id>
<url>http://www2.ph.ed.ac.uk/maven2</url>
</repository>
to settings.xml, remove ./m2/respository/uk (to prevent stopping building
from the cache), then build from start again.
xwiki-enterprise-ui-common built successfully, but when building building
xwiki-enterprise-data-hsqldb, I got the following error:
[ERROR] Failed to execute goal
org.xwiki.platform:xwiki-platform-tool-packager-plugin:7.3:import (default)
on project xwiki-enterprise-data-hsqldb: Execution default of goal
org.xwiki.platform:xwiki-platform-tool-packager-plugin:7.3:import failed:
Plugin org.xwiki.platform:xwiki-platform-tool-packager-plugin:7.3 or one of
its dependencies could not be resolved: The following artifacts could not
be resolved: uk.ac.ed.ph.snuggletex:snuggletex-jeuclid:jar:1.1.0,
org.restlet.jse:org.restlet:jar:2.0.14,
org.restlet.jee:org.restlet.ext.servlet:jar:2.0.14,
org.restlet.jse:org.restlet.ext.jaxrs:jar:2.0.14,
org.restlet.jse:org.restlet.ext.jackson:jar:2.0.14,
org.restlet.jse:org.restlet.ext.jaxb:jar:2.0.14: Failure to find
uk.ac.ed.ph.snuggletex:snuggletex-jeuclid:jar:1.1.0 in
http://maven.xwiki.org/externals was cached in the local repository,
resolution will not be reattempted until the update interval of
xwiki-plugins-externals has elapsed or updates are forced -> [Help 1]
uk.ac.ed.ph.snuggletex:snuggletex-jeuclid:jar:1.1.0 has just been
downloaded when building xwiki-enterprise-ui-common.
I do not know how to fix it, your help is appreciated.
NOTE: I have also added
<!-- use Restlet -->
<repository>
<id>maven-restlet</id>
<name>Public online Restlet repository</name>
<url>http://maven.restlet.org</url>
</repository>
to settings.xml before.
Thanks for your help
Guofeng
Hello,
I think I resoved my issue with an include to launch my query:
In my Class in "Computed Field" to display a query in "Custom Display", I simply inserted an include function
#set ($HqlQuery ="select distinct doc.fullName, doc.name, doc.creationDate, CategorieProp.value, ProcessusProp.value from XWikiDocument as doc
, xxxxxxxxxxxxxxxxxxxxxxx
order by doc.creationDate desc")
##
#includeInContext("FormSMQ.MyQuery")
## set ($ResultQuery=$services.query.hql("$HqlQuery").execute())
#if ($listtool.isEmpty($!ResultQuery) || ! $ResultQuery )
* //(Aucune amélioration)//
#else
yyyyyyy
and FormSMQ.MyQuery, who's belong to Admin user, contains
{{velocity}}
#set ($ResultQuery=$services.query.hql("$HqlQuery").execute())
{{/velocity}}
Pascal
--------------------------------------------
En date de : Lun 16.11.15, Pascal BASTIEN <pbasnews-xwiki(a)yahoo.fr> a écrit :
Objet: Full form statements requires programming right issue?
À: "XWiki Users" <users(a)xwiki.org>
Date: Lundi 16 novembre 2015, 11h36
Hi,
I writed an application form with template + class + sheet
(owner is admin).
In my Class I use a "Computed Field" to display a query
result with "Custom Display".
It is an hql query with select. I know that we must have PR
to launch a hql query with select but my template + class +
sheet owner is admin.
If a "simple" user create a new form (with myClass object)
he obtain a naughty velocity error: <<Full form
statements requires programming right>>
How can I resolve this problem? It it a bug?
Thxs for any help
Hi,
I writed an application form with template + class + sheet (owner is admin).
In my Class I use a "Computed Field" to display a query result with "Custom Display".
It is an hql query with select. I know that we must have PR to launch a hql query with select but my template + class + sheet owner is admin.
If a "simple" user create a new form (with myClass object) he obtain a naughty velocity error: <<Full form statements requires programming right>>
How can I resolve this problem? It it a bug?
Thxs for any help