Hello,
I have been running xwiki 3.1 for a while now on Fedora 13 with
PostgreSQL/Tomcat.
I decided to upgrade to 3.2 by undeploying the previous version of xwiki and
installing the 3.2 war and default xar files, reconfiguring
hibernate.cfg.xml to access the PostgreSQL database etc.
After the new war install and the hibernate.cfg.xml reconfiguration, when
trying to connect xwiki, I get:
HTTP Status 500 -
_____
type Exception report
message
description The server encountered an internal error () that prevented it
from fulfilling this request.
exception
javax.servlet.ServletException: com.xpn.xwiki.XWikiException: Error number 3
in 0: Could not initialize main XWiki context
Wrapped Exception: Error number 3201 in 3: Exception while saving document
xwiki:XWiki.XWikiPreferences
Wrapped Exception: Error number 3211 in 3: Exception while updating archive
XWiki.XWikiPreferences
Wrapped Exception: Error number 0 in 3: Exception while hibernate execute
Wrapped Exception: could not load an entity:
[com.xpn.xwiki.doc.rcs.XWikiRCSNodeContent#component[docId,version1,version2
]{docId=104408758, version2=1, version1=24}]
org.apache.struts.action.RequestProcessor.processException(RequestProcessor.
java:535)
org.apache.struts.action.RequestProcessor.processActionPerform(RequestProces
sor.java:433)
org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:236)
org.apache.struts.action.ActionServlet.process(ActionServlet.java:1196)
org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:414)
javax.servlet.http.HttpServlet.service(HttpServlet.java:617)
javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
com.xpn.xwiki.web.ActionFilter.doFilter(ActionFilter.java:128)
org.xwiki.wysiwyg.server.filter.ConversionFilter.doFilter(ConversionFilter.j
ava:144)
com.xpn.xwiki.plugin.webdav.XWikiDavFilter.doFilter(XWikiDavFilter.java:68)
org.xwiki.container.servlet.filters.internal.SavedRequestRestorerFilter.doFi
lter(SavedRequestRestorerFilter.java:217)
org.xwiki.container.servlet.filters.internal.SetCharacterEncodingFilter.doFi
lter(SetCharacterEncodingFilter.java:109)
and in catalina.out, I get a lot of those
</property>
<property>
<showannotations></showannotations>
</property>
<property>
<showattachments></showattachments>
</property>
<property>
<showcomments></showcomments>
</property>
<property>
<showhistory></showhistory>
</property>
<property>
<showinformation></showinformation>
</property>
<property>
<skin>XWiki.DefaultSkin</skin>
</property>
<property>
<smtp_port></smtp_port>
</property>
<property>
<smtp_server>127.0.0.1</smtp_server>
</property>
<property>
<smtp_server_password></smtp_server_password>
</property>
<property>
<smtp_server_username></smtp_server_username>
</property>
<property>
<stylesheet>style.css</stylesheet>
</property>
<property>
<stylesheets>style.css</stylesheets>
</property>
<property>
<tags></tags>
</property>
<property>
<title>$tdoc.getRenderedTitle("plain/1.0") ($doc.fullName) - XWiki</title>
</property>
<property>
<upload_maxsize>671088640</upload_maxsize>
</property>
<property>
<validation_email_content>#set ($wikiname = $request.serverName)
#set ($host = ${request.getRequestURL()})
#set ($host = ${host.substring(0, ${host.indexOf('/',
${mathtool.add(${host.indexOf('//')}, 2)})})})
Subject: Validate your account on ${wikiname}
Hello ${xwiki.getUserName("XWiki.$xwikiname", false)},
This email address was used to register a new account on ${wikiname}. If you
did not make the request, please ignore this message.
In order to activate your account, please follow this link:
${host}${xwiki.getURL('XWiki.AccountValidation', 'view',
"validkey=${validkey}&xwikiname=${xwikiname}")}</validation_email_conten
t>
</property>
<property>
<version>XWiki Enterprise $xwiki.getVersion() - <a
onclick="openURL('http://enterprise.xwiki.org/xwiki/bin/view/Main/Documentat
ion', '_blank'); return false;"
href="http://www.xwiki.org/xwiki/bin/view/Main/Documentation">Documentati
on</a></version>
</property>
<property>
<webcopyright>This wiki is licensed under a <a rel="license"
href="http://creativecommons.org/licenses/by/2.0/">Creative Commons
2.0</a> license</webcopyright>
</property>
<property>
<xwiki.title.mandatory>0</xwiki.title.mandatory>
</property>
</object>
<content>{{include document="XWiki.AdminSheet" /}}</content></xwikidoc>
Then a final
2011-10-12 22:56:30,809 [http://192.168.1.1:8080/xwiki/bin/view/Main/] WARN
o.a.s.a.RequestProcessor - Unhandled Exception thrown: class
com.xpn.xwiki.XWikiExcept
Any idea about what's going on ?
Thanks for your help,
Regards
Christophe.
Hi guys,
When deleting attachment, I've got following error message: "Failed to
delete attachment: ( The request was rejected by HTTP filter. Contact server
administrator. )"
It is just a *.doc, added by other user and updated to once to 1.2 version.
Tried also to delete as admin to no success. In Sandbox webspace I create,
update and delete such an attachment without problems.
Search on the web by error message didn't bring correlating results.
Can someone hint why is this happening and how to solve it? May it be smth
about user rights?
Thanks,
Andrey Stoliarov
Hi
We have a script developped in XWiki which does not function anymore?
Probably due to migration or rights...
My problem is that the script is developed by a IT partner 3 years ago, in XWiki 1.6
THere is a button in a screen showing a overview of pages with a button to create a new page.
This button has the following link;
http://www.cdlsworld.org/xwiki/bin/inline/CdlsatdPrivate/DjennaKoekkoek3_do…
?Parent=CdlsatdPrivate.WebHome
&template=CdlsatdCode.CdLS_ATD_UserQuestionsClassTemplate
&name=Djenna
&status=opt_un_answered
&generalize=No
&cdls=DjennaKoekkoek3_doc105
The errorcode is not helping me much...
Caused by: org.xwiki.velocity.XWikiVelocityException: Failed to evaluate content with id [xwiki:CdlsatdPrivate.DjennaKoekkoek3_doc105]
at org.xwiki.velocity.internal.DefaultVelocityEngine.evaluate(DefaultVelocityEngine.java:205)
at org.xwiki.velocity.internal.DefaultVelocityEngine.evaluate(DefaultVelocityEngine.java:161)
at org.xwiki.rendering.internal.macro.velocity.VelocityMacro.evaluateString(VelocityMacro.java:118)
... 87 more
Caused by: org.apache.velocity.exception.MethodInvocationException: Invocation of method 'get' in class java.util.Collections$EmptyList threw exception java.lang.IndexOutOfBoundsException: Index: 0 at xwiki:CdlsatdPrivate.DjennaKoekkoek3_doc105[line 124, column 32]
at org.apache.velocity.runtime.parser.node.ASTMethod.handleInvocationException(ASTMethod.java:337)
at org.apache.velocity.runtime.parser.node.ASTMethod.execute(ASTMethod.java:284)
at org.apache.velocity.runtime.parser.node.ASTReference.execute(ASTReference.java:252)
at org.apache.velocity.runtime.parser.node.ASTReference.value(ASTReference.java:493)
at org.apache.velocity.runtime.parser.node.ASTMathNode.value(ASTMathNode.java:84)
at org.apache.velocity.runtime.parser.node.ASTExpression.value(ASTExpression.java:71)
at org.apache.velocity.runtime.parser.node.ASTExpression.value(ASTExpression.java:71)
at org.apache.velocity.runtime.parser.node.ASTSetDirective.render(ASTSetDirective.java:142)
at org.apache.velocity.runtime.parser.node.SimpleNode.render(SimpleNode.java:336)
at org.xwiki.velocity.internal.DefaultVelocityEngine.evaluate(DefaultVelocityEngine.java:196)
... 89 more
Caused by: java.lang.IndexOutOfBoundsException: Index: 0
at java.util.Collections$EmptyList.get(Collections.java:2970)
at sun.reflect.GeneratedMethodAccessor11070.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
The code around Line 12 (How should I find the linenumber; should I include with counting the comments lines or only the lines with code?)
## This sheet will display and edit a Private Question
##
## Test the language to display the information
#if($request.language)
#set($lang=$request.language)
#else
#set($lang=$context.language)
#end
$lang {{html}}<br/>{{/html}}
## Build a list of possible status the question can have to populate dropdown
## dependant on the language it will take the list from CdlsatdCode.Translations
## the key values of list should, off course, not be translated
## dd_status_question_v1=opt_un_answered,opt_answered,opt_in_progress,opt_more_info_required
##
## First get the translated meanings
#set($engList = $msg.get('dd_status_user_questions_en'))
#set($engStatusList=[])
#foreach( $op in $engList.split("[|,]"))
#set($temp2 = $engStatusList.add($op))
#end
$engStatusList {{html}}<br/>{{/html}}
## Second get the list codes
#set($questionStatusComma = $msg.get('dd_status_question_v1'))
#set($statusList=[])
#foreach($keyStatusTxt in $questionStatusComma.split("[|,]"))
#set($temp3 = $statusList.add($keyStatusTxt))
#end
$statusList {{html}}<br/>{{/html}}
##
## The privat question is a object of class CdlsatdCode.CdLS_ATD_UserQuestionsClass
#set($userQuestionObj = $doc.getObject("CdlsatdCode.CdLS_ATD_UserQuestionsClass"))
## Get the staus of the question
#set($userQnStatus = $userQuestionObj.getProperty('status').getValue())
##
## Evaluate the creation of a new question (or a modification)
#if($request.getParameter('success') == 'true')
## We have a slightly disturbing Rights implementation
## User is a client
## If you are not in User you are considered a Moderator (or question support person)
## But also these people should be allowed to post questions, currently they are not!
## better implementation would be; All approped people should be in User, some have extra rights like Moderator or Global moderator
#if($xwiki.getUser().isUserInGroup("XWiki.User"))
{{info}}{{html clean="false"}}$msg.get('msg_success_question_posted'){{/html}}{{/info}}
#else
{{info}}{{html clean="false"}}$msg.get('msg_success'){{/html}}{{/info}}
#end
#end
It looks like it find an empty object...
This is exactly what I find, it looks like the code is creating a page with a empty object,
but it fails to set values in the object, and after that I understand the error,
What I do not inderstand where the code is that would set the values in the object, I would expect it in the Template?
But maybe it is hidden in the code on the page where the button is in the Form-area
So maybe I should ask the question how I would do this in the new XWiki 2.7 (which we are running) If I should start all new
I would like to create a page with an object of which a few attributes are hidden from the user (containing some ID and status information)
After the click the user should experience that he is on the newly created page and filling in the remaining attributes of the object (a Question and Answer)
Second, since the intention of the page/object is to start a workflow; 1) Create a Question by a user (this step) -> 2) Accepting the Question by a moderator by status change-> 4) Moderator answering the question by typing a answer-> User accepting the answer and closing the case by changing the status
What is the best practise to put the code for each step in the workflow? At this moment all the code is in the templatesheet of the page, making it difficult to maintain and look for the code
Would you advise to put the code in the template or put code in velocity macro's and have buttons in the sheet
Help would be very much appreciated, both on finding the cause of the error and on advise what is the best practise to do such USE-Case
Hello everyone,
I put a space on my favorite and I receive a mail every hour that tells me
all new pages creating on this space (or the pages that have been
editing/deleted). When I look at the code, I see an object of type
Xwiki.Mail.
In this object, there is a code like that :
$msg.get("watchlist.notification.email.greeting")
Where can I find the translations or the file where the sentence
corresponding to this code is ?
Thank for your answer.
Best regards,
Stéphanie
--
View this message in context: http://xwiki.475771.n2.nabble.com/msg-get-tp6885314p6885314.html
Sent from the XWiki- Users mailing list archive at Nabble.com.
Hi
Is there a best-practise implementation of CRUD avents (Create, Read, Update and Delete) in a templatesheet for a class
Default the following is generated for a XWiki class
#set($class = $doc.getObject('CdlsatdCode.CdLSATEPublicQAClass').xWikiClass)
#foreach($prop in $class.properties)
; $prop.prettyName
: $doc.display($prop.getName())
#end
This is fine for Read (=View) and Update events except for rules to be implemented around data integrity with update
When I CREATE the object (test for $doc.isNew() in most cases, unless multiple objects are created on same document, this might be case for internationalization
typical things to do in CREATE is setting of the defaults value, setting keys that link to other objects (child of...)
When I UPDATE the object there might be attributes where we test Old.value against New.Value and NEW.Value might
When I DELETE the object (or the containing document) I might want to prevent that in order for integrity (by example Parent Child relation ships, do not delete the parent while there are still childs)
This is related to my previous post, since I discover the code is really becoming a mess if I do not use a best-practise
Who has implemented a practise and can tell me about the pro's and con's, this might be even a good thing to publish on the documentation of XWiki.org
since i expect many who are involved in building forms run into the same questions
Gerritjan
The XWiki development team is proud to announce the availability of
XWiki Commons, XWiki Rendering, XWiki Platform, XWiki Enterprise and
XWiki Enterprise Manager 3.2. Following the goals established for the
3.x cycle, XWiki Enterprise 3.2 pushes forward in the directions of the
Application Within Minutes and Extension Manager features. The
highlights of this release are:
* many extension manager improvements
* new implementation of the sheet system making it easier to bind sheets
to objects without an explicit inclusion of the sheet in the document
content
* user dashboards giving each user the possibility to configure their
own home page
* introduction of wiki workspaces, as a more collaborative way of
managing an XWiki virtual farm
* improvements of search results scoring
* storage improvements, bringing in numerous performance and
compatibility improvements
* conversion of the panels application to the XWiki 2.0+ syntax
* easier activation and configuration of Google Analytics
And on the developers' front:
* CSRF prevention enabled by default
* support for DocBook syntax
* xwiki-commons and xwiki-rendering are now published on the central
Maven2 repository
* some major code cleanup due to the retirement of some very old plugins
and the move of legacy/deprecated code into separate modules
See the full release notes at
http://www.xwiki.org/xwiki/bin/ReleaseNotes/ReleaseNotesXWikiEnterprise32 for
more details.
--
Sergiu Dumitriu
http://purl.org/net/sergiu/
What is best practice on changing the style of a form while keeping the default colibri-style intact (for easy upgrading)
http://platform.xwiki.org/xwiki/bin/view/DevGuide/VerticalForms
In the Guide the labels, required, help, hint, Error are ALL positioned ON TOP of the input box, selector,...
Label - required -> help
hint
error
INPUT
The request of our people is to have the vertical form layout slightly changed into a so called "two column" layout with use of Group(or Row)
In the left column we would like:
Label
hint
In the right column we would like the remaining
- required -> help
error
Input
Where the label is off course horizontal aligned with Input
1) Should we use a style sheet extension that is applied to all pages (or to pages with a object display and a inline form)?
2) Is this available as a snippet
Gerritjan
Hello,
I have installed xwiki 3.1.1 on a tomcat7+ mysql 5.1 + centos 6
II have nstalled the enterprise xar pack, imported my backup from a 2.7
version on tomcat5.5
All is ok ! ...
Except .. the redirect:
When i try
*http://myip:8080/mywebapp* i am redirected to *http://myip:8080/mywebapp**
http://myip:8080/mywebapp/bin/login/XWiki/XWikiLogin*
When i try *http://myip:8080/mywebapp/*bin/login/XWiki/XWikiLogin .. it is
ok once logged. Same stuff when i logout.
Any idea ? tomcat7 ? my configuration ? A workaround ?
Thanx
--
- Nicolas Hernandez
a-n - aleph-networks*
*http://www.aleph-networks.com
Hi,
Some users on my xwiki 3.1 instance never receive notification emails, while
others do.
I couldn't find any useful difference in their profiles (use of
"Scheduler.WatchListHourlyNotifier", list of space and pages, email
correctly set in profile ...).
Tried to increase logs to debug for com.xpn.xwiki.*, I though it would add
some logs about what was doing com.xpn.xwiki.plugin.watchlist.WatchListJob,
but nothing new appears in the logs (except an important amount of "noise"
from rights check).
Do you have any advice on how to investigate about this issue ?
Thanks,
Jeremie
--
View this message in context: http://xwiki.475771.n2.nabble.com/Watchlist-email-notification-does-not-wor…
Sent from the XWiki- Users mailing list archive at Nabble.com.
I just upgraded our relatively small xwiki instance from 3.0.0 to 3.1.1
I did the upgrade by setting up a new host with tomcat6 etc, putting
the .war file in place, restarting tomcat to automatically expand the
.war and then merging the xwiki.cfg xwiki.properties &
hibernate.cfg.xml files
All storage is in the database (Oracle) and the only skin in use is Colibri
I then uploaded the current Administration.xar apart from the 5 pages
remarked on in the instructions.
All the data is there, but I have a slight problem, there top bar of
the wiki (http://extensions.xwiki.org/xwiki/bin/view/Extension/Colibri+Skin
where the Add Wiki Space etc "buttons are) is not there, the text is,
but without anything to
Any suggestions as to what I've managed to mangle or need to reset
would be appreciated.
Cheers
Hi all,
I found that the user portrait displayed in activity stream macro is scaled
smaller with the following markup:
<img alt="username" src="
xwiki/bin/download/XWiki/yangli/obamaMao.jpg?width=50&height=50&keep
AspectRatio=true" title="username">
However, the quality of the resulted image is very poor and highly distorted
However, if we use an alternative as
<img alt="username" src=" xwiki/bin/download/XWiki/yangli/obamaMao.jpg "
width=50 title="username">
The resulted picture would look much better!
The first way saves network flow, however, I prefer better and larger user
portrait display.
So it seems that I can (maybe cannot) modify the activity stream and comment
macro to get a better display of the user portrait, however, the macro is an
jar, which makes it a little bit difficult for me.
So any suggestions?
Thanks all : )
Hi all,
As I wrote in a former email that the quality of user avatar (user portrait)
is poor, because the macros like
#smallUserAvatar($username) will result like follows
<img
src='/./userPortrait.JPG?width=30&height=30&keepAspectRatio=true'
alt='username' title='username'/>
However, I would like an alternative instead like
<img src='/./userPortrait.JPG' width=30 alt='username' title='username'/>
So how can I do that? Any suggestions?
P.S. I am running an XE 3.1 on win7. And I have found in the mailing list
archive the following proposal but it seems no help for me as a newbie.
http://xwiki.markmail.org/thread/wzrex5j7jxhgjmc6#query:+page:1+mid:c67dra64
2nbm5h3r+state:results
Thanks : )
Hi all,
I would like to know about the architecture, data model of xwiki and so on,
but they are scattered wiki pages, and it is not conveniently for me to
print them out to read. So I am wondering that is there a pdf file that
contains all the information?
Thanks!
The XWiki development team is proud to announce the availability of
XWiki Enterprise 3.2 Release Candidate 1. This is the first (and
hopefully last) release candidate for the 3.2 series.
Apart from a few minor bugfixes, this version brings the Workspace
Manager as a standard feature of the platform, as an alternative way of
using virtual wikis, compared to XEM.
See
http://www.xwiki.org/xwiki/bin/ReleaseNotes/ReleaseNotesXWikiEnterprise32RC1
for more details.
--
Sergiu Dumitriu
http://purl.org/net/sergiu/
Lucene:
I try to find all jpg´s with "foo" in the page content. I only get the jpg
or the content of a page.
(jpg AND type:attachment) AND (foo) not working
(jpg AND type:attachment) AND (Content:foo) not working
(jpg AND type:attachment) AND (foo and object:XWiki.XWikiContent) not
working
Suggestions?
--
View this message in context: http://xwiki.475771.n2.nabble.com/Lucene-find-attachement-with-type-jpg-AND…
Sent from the XWiki- Users mailing list archive at Nabble.com.
Hi,
I'm using the LDAP tool
http://extensions.xwiki.org/xwiki/bin/view/Extension/LDAP+Tools#Comments so
that the config is capable of being modified without shell access on the
server, but since upgrading from milestone 2 to 3.0.36132, I'm seeing two
errors on the page.
Underneath the first section save button, I get a "Failed to execute the
[groovy] macro" error, which expands to
-----------------------------------
at
org.xwiki.rendering.macro.script.AbstractScriptMacro.execute(AbstractScriptMacro.java:195)
at
org.xwiki.rendering.macro.script.AbstractScriptMacro.execute(AbstractScriptMacro.java:57)
at
org.xwiki.rendering.internal.transformation.macro.MacroTransformation.transformOnce(MacroTransformation.java:184)
at
org.xwiki.rendering.internal.transformation.macro.MacroTransformation.transform(MacroTransformation.java:129)
at
org.xwiki.rendering.internal.transformation.DefaultTransformationManager.performTransformations(DefaultTransformationManager.java:72)
at
com.xpn.xwiki.doc.XWikiDocument.performSyntaxConversion(XWikiDocument.java:7605)
at
com.xpn.xwiki.doc.XWikiDocument.performSyntaxConversion(XWikiDocument.java:7554)
at
com.xpn.xwiki.doc.XWikiDocument.getRenderedContent(XWikiDocument.java:836)
at
com.xpn.xwiki.doc.XWikiDocument.getRenderedContent(XWikiDocument.java:785)
at
com.xpn.xwiki.doc.XWikiDocument.getRenderedContent(XWikiDocument.java:879)
at com.xpn.xwiki.api.Document.getRenderedContent(Document.java:557)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at
org.apache.velocity.util.introspection.UberspectImpl$VelMethodImpl.doInvoke(UberspectImpl.java:395)
at
org.apache.velocity.util.introspection.UberspectImpl$VelMethodImpl.invoke(UberspectImpl.java:384)
at
org.apache.velocity.runtime.parser.node.ASTMethod.execute(ASTMethod.java:173)
at
org.apache.velocity.runtime.parser.node.ASTReference.execute(ASTReference.java:280)
at
org.apache.velocity.runtime.parser.node.ASTReference.render(ASTReference.java:369)
at org.apache.velocity.runtime.parser.node.ASTBlock.render(ASTBlock.java:72)
at
org.apache.velocity.runtime.parser.node.ASTIfStatement.render(ASTIfStatement.java:87)
at org.apache.velocity.runtime.parser.node.ASTBlock.render(ASTBlock.java:72)
at
org.apache.velocity.runtime.parser.node.SimpleNode.render(SimpleNode.java:342)
at
org.apache.velocity.runtime.parser.node.ASTIfStatement.render(ASTIfStatement.java:106)
at
org.apache.velocity.runtime.parser.node.SimpleNode.render(SimpleNode.java:342)
at
org.xwiki.velocity.internal.DefaultVelocityEngine.evaluate(DefaultVelocityEngine.java:188)
at
org.xwiki.velocity.internal.DefaultVelocityEngine.evaluate(DefaultVelocityEngine.java:153)
at
com.xpn.xwiki.render.XWikiVelocityRenderer.evaluate(XWikiVelocityRenderer.java:116)
at com.xpn.xwiki.XWiki.evaluateTemplate(XWiki.java:1873)
at com.xpn.xwiki.web.Utils.parseTemplate(Utils.java:154)
at com.xpn.xwiki.web.XWikiAction.execute(XWikiAction.java:226)
at com.xpn.xwiki.web.XWikiAction.execute(XWikiAction.java:117)
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:617)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at com.xpn.xwiki.web.ActionFilter.doFilter(ActionFilter.java:129)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at
org.xwiki.wysiwyg.server.filter.ConversionFilter.doFilter(ConversionFilter.java:152)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at
com.xpn.xwiki.plugin.webdav.XWikiDavFilter.doFilter(XWikiDavFilter.java:68)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at
org.xwiki.container.servlet.filters.internal.SavedRequestRestorerFilter.doFilter(SavedRequestRestorerFilter.java:218)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at
org.xwiki.container.servlet.filters.internal.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:112)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
at
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:298)
at
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:857)
at
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:588)
at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:489)
at java.lang.Thread.run(Thread.java:662)
-----------------------------------
Underneath the second section save button there is then a second "Failed to
execute the [groovy] macro" error, which expands to
-----------------------------------
org.xwiki.rendering.macro.MacroExecutionException: You don't have the right
to execute this script
at
org.xwiki.rendering.macro.script.AbstractScriptMacro.execute(AbstractScriptMacro.java:195)
at
org.xwiki.rendering.macro.script.AbstractScriptMacro.execute(AbstractScriptMacro.java:57)
at
org.xwiki.rendering.internal.transformation.macro.MacroTransformation.transformOnce(MacroTransformation.java:184)
at
org.xwiki.rendering.internal.transformation.macro.MacroTransformation.transform(MacroTransformation.java:129)
at
org.xwiki.rendering.internal.transformation.DefaultTransformationManager.performTransformations(DefaultTransformationManager.java:72)
at
com.xpn.xwiki.doc.XWikiDocument.performSyntaxConversion(XWikiDocument.java:7605)
at
com.xpn.xwiki.doc.XWikiDocument.performSyntaxConversion(XWikiDocument.java:7554)
at
com.xpn.xwiki.doc.XWikiDocument.getRenderedContent(XWikiDocument.java:836)
at
com.xpn.xwiki.doc.XWikiDocument.getRenderedContent(XWikiDocument.java:785)
at
com.xpn.xwiki.doc.XWikiDocument.getRenderedContent(XWikiDocument.java:879)
at com.xpn.xwiki.api.Document.getRenderedContent(Document.java:557)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at
org.apache.velocity.util.introspection.UberspectImpl$VelMethodImpl.doInvoke(UberspectImpl.java:395)
at
org.apache.velocity.util.introspection.UberspectImpl$VelMethodImpl.invoke(UberspectImpl.java:384)
at
org.apache.velocity.runtime.parser.node.ASTMethod.execute(ASTMethod.java:173)
at
org.apache.velocity.runtime.parser.node.ASTReference.execute(ASTReference.java:280)
at
org.apache.velocity.runtime.parser.node.ASTReference.render(ASTReference.java:369)
at org.apache.velocity.runtime.parser.node.ASTBlock.render(ASTBlock.java:72)
at
org.apache.velocity.runtime.parser.node.ASTIfStatement.render(ASTIfStatement.java:87)
at org.apache.velocity.runtime.parser.node.ASTBlock.render(ASTBlock.java:72)
at
org.apache.velocity.runtime.parser.node.SimpleNode.render(SimpleNode.java:342)
at
org.apache.velocity.runtime.parser.node.ASTIfStatement.render(ASTIfStatement.java:106)
at
org.apache.velocity.runtime.parser.node.SimpleNode.render(SimpleNode.java:342)
at
org.xwiki.velocity.internal.DefaultVelocityEngine.evaluate(DefaultVelocityEngine.java:188)
at
org.xwiki.velocity.internal.DefaultVelocityEngine.evaluate(DefaultVelocityEngine.java:153)
at
com.xpn.xwiki.render.XWikiVelocityRenderer.evaluate(XWikiVelocityRenderer.java:116)
at com.xpn.xwiki.XWiki.evaluateTemplate(XWiki.java:1873)
at com.xpn.xwiki.web.Utils.parseTemplate(Utils.java:154)
at com.xpn.xwiki.web.XWikiAction.execute(XWikiAction.java:226)
at com.xpn.xwiki.web.XWikiAction.execute(XWikiAction.java:117)
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:617)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at com.xpn.xwiki.web.ActionFilter.doFilter(ActionFilter.java:129)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at
org.xwiki.wysiwyg.server.filter.ConversionFilter.doFilter(ConversionFilter.java:152)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at
com.xpn.xwiki.plugin.webdav.XWikiDavFilter.doFilter(XWikiDavFilter.java:68)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at
org.xwiki.container.servlet.filters.internal.SavedRequestRestorerFilter.doFilter(SavedRequestRestorerFilter.java:218)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at
org.xwiki.container.servlet.filters.internal.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:112)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
at
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:298)
at
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:857)
at
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:588)
at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:489)
at java.lang.Thread.run(Thread.java:662)
-----------------------------------
I'm guessing that when I upgraded from milestone2 to 3.0.36132 something
didn't happen quite correctly.
I've tried re-importing the LDAP tools xar, but this didn't have any effect.
Any suggestions would be appreciated.
Hi,
Context: a 2.7.2 XEM farm
I'm trying to permanently suppress all the deleted docs of one of the
wiki of the farm using a groovy script included in a page located in
the main wiki.
This is the code. It's a draft... A db query retrieve the list of the
deleted docs (I think it would be better to use the API to obtain this
list), then each document is deleted using the RecycleBinStore.
def emptyDocBin(wiki) {
xcontext.setDatabase(wiki)
def workWiki = xcontext.getXWiki()
def query = "SELECT DISTINCT XDD_FULLNAME FROM " + wiki + ".XWIKIRECYCLEBIN"
def docsResult = runQuery(query)
if (docsResult.size() > 0) {
for (doc in docsResult) {
def docName = doc.get("XDD_FULLNAME")
workWiki.getDeletedDocuments(docName, "", xcontext.context).each{
println "Deleting : " + it.fullName + " - " + it.getDate() + "
- " + it.id
workWiki.getRecycleBinStore().deleteFromRecycleBin(
workWiki.getDocument(it.fullName,xcontext.context),
it.getId(),
xcontext.context,
true);
}
}
}
xcontext.setDatabase(xcontext.getOriginalDatabase())
}
All is working fine, a list of deleted docs is displayed BUT nothing
is deleted and the documents are still present in the recycle bin.
In the xwiki.log, I can read this kind of "things":
2011-10-04 18:51:43,319
[http://www.lclh.org/bin/view/Admin/ShrinkRecycleBins?w=calife&confirmation=1]
[http://www.lclh.org/bin/view/Admin/ShrinkRecycleBins?w=calife&confirmation=1]
WARN store.XWikiHibernateBaseStore - Cleanup of session was needed:
SessionImpl(PersistenceContext[entityKeys=[EntityKey[com.xpn.xwiki.doc.XWikiDeletedDocument#6],
EntityKey[com.xpn.xwiki.doc.XWikiDeletedDocument#11],
EntityKey[com.xpn.xwiki.doc.XWikiDeletedDocument#12],
EntityKey[com.xpn.xwiki.doc.XWikiDeletedDocument#32],
EntityKey[com.xpn.xwiki.doc.XWikiDeletedDocument#33],
EntityKey[com.xpn.xwiki.doc.XWikiDeletedDocument#1],
EntityKey[com.xpn.xwiki.doc.XWikiDeletedDocument#36],
EntityKey[com.xpn.xwiki.doc.XWikiDeletedDocument#37],
EntityKey[com.xpn.xwiki.doc.XWikiDeletedDocument#4],
EntityKey[com.xpn.xwiki.doc.XWikiDeletedDocument#34],
EntityKey[com.xpn.xwiki.doc.XWikiDeletedDocument#35]],collectionKeys=[]];ActionQueue[insertions=[]
updates=[] deletions=[] collectionCreations=[] collectionRemovals=[]
collectionUpdates=[]])
2011-10-04 18:51:43,321 [http://www.lclh.org/bin/view/Main/]
[Statistics storing daemon] ERROR xwiki.DocumentStatsStoreItem -
Failed to save visit statictics object [class
com.xpn.xwiki.stats.impl.xwiki.VisitStatsStoreItem XWiki.Admin
DJ64XAIYEJIPIXOADG9VMJ94RHOHD2U2 DJ64XAIYEJIPIXOADG9VMJ94RHOHD2U2]
2011-10-04 18:51:43,321 [http://www.lclh.org/bin/view/Main/]
[Statistics storing daemon] WARN store.XWikiHibernateBaseStore -
Incompatible session (null) and transaction
(org.hibernate.transaction.JDBCTransaction@d9a754) status
Your help, ideas or other are welcome.
Maxime
I think depending on xwiki version you use, that you can use the watchlist
feature.
Simply go to your "Forms" space, and in the space menu (top of page) choose
"watch".
Then in your own profile, in "watchlist" part, select that you want to be
notified every hour.
I think you won't receive emails only for new documents created, but also
for updated documents.
But if there is no update, you won't receive email at all.
If it does not match your need you might need to use the Scheduler
(Scheduler.WebHome) and create an hourly job to do that and do some
scripting ...
--
View this message in context: http://xwiki.475771.n2.nabble.com/Receive-an-email-every-hour-tp6847029p685…
Sent from the XWiki- Users mailing list archive at Nabble.com.
The XWiki development team is proud to announce the availability of
XWiki Enterprise 3.1.1 and XWiki Enterprise Manager 3.1.1, bugfix
releases on the 3.1.x stable branch.
This is the first (and probably last) bugfix release for the 3.1 series.
It contains only small bugfixes backported from the 3.2 branch, mainly
around missing CSRF-prevention tokens, the extension manager, and build
improvements.
See the full release notes at
http://www.xwiki.org/xwiki/bin/ReleaseNotes/ReleaseNotesXWikiEnterprise311
for more details.
--
Sergiu Dumitriu
http://purl.org/net/sergiu/
----- "Scott Serr" <serrs(a)theserrs.net> wrote:
> I have a page that is creating sub-pages with a button called "Create
> History Log." I create the sub-page name like HistoryLog-2011-09-27
> from the current date programatically. These sub-pages have a
> HistoryLogClass object on them which I begin editing in the inline
> editor. During the save operation on this object, I'd like to rename
> the page if the user has changed a date property on the object. Is
> there a way to do this? I'd like it to work when creating a new page
> or editing and existing page with the inline editor.
>
> Reasoning: The user is creating a HistoryLog page (with object) a few
> days after the fact, so they need to manage the date manually
> sometimes. I like having the date in the page name, to make a unique
> and sortable page list. The user would like to not go through the
> extra step of renaming the page manually.
>
> Sort of like this for page creation:
> $doc.name = "HistoryLog-" + $obj.getProperty("date").getValue()
>
> Would I need to run $doc.rename() code when editing?
>
> Is there a clever solution?
My fall back solution is just create a sequence for the page name.
HistoryLog-00001
HistoryLog-00002
And then just spin through the objects for meaningful date data.
I could do away with the page per object requirement, if there was
such thing as an inline object editor a bit more configurable than
the object editor. I guess you'd need a way to render it to, so
the only way that would work is to have a sort of virtual page for
object editing and rendering.
I might just need pointed in the right direction.
Thanks,
Scott
I have a page that is creating sub-pages with a button called "Create History Log." I create the sub-page name like HistoryLog-2011-09-27 from the current date programatically. These sub-pages have a HistoryLogClass object on them which I begin editing in the inline editor. During the save operation on this object, I'd like to rename the page if the user has changed a date property on the object. Is there a way to do this? I'd like it to work when creating a new page or editing and existing page with the inline editor.
Reasoning: The user is creating a HistoryLog page (with object) a few days after the fact, so they need to manage the date manually sometimes. I like having the date in the page name, to make a unique and sortable page list. The user would like to not go through the extra step of renaming the page manually.
Sort of like this for page creation:
$doc.name = "HistoryLog-" + $obj.getProperty("date").getValue()
Would I need to run $doc.rename() code when editing?
Is there a clever solution?
Thanks,
Scott
----- "Marius Dumitru Florea" <mariusdumitru.florea(a)xwiki.com> wrote:
> On Thu, Sep 29, 2011 at 9:19 PM, Scott Serr <serrs(a)theserrs.net>
> wrote:
> >
> > I ran into an interesting side effect of having a form in my Class
> Sheet.
> >
> > <input type="hidden" name="parent" value="${doc.fullName}" />
> >
> > The above line is in a form which posts to the current page, but
> then redirects to a sub-page. The process is exactly like the FAQ
> Example. The trouble is, when doing Inline Editing on a page with the
> class object. No matter what you put in as the parent in the UI for
> the parent property, it gets reset to itself on save. The wiki and
> WYSYWIG editors don't do this of course.
> >
> > I think this is a problem because...
> >
>
> > 1. Should this form (and form element) really be evaluated? No one
> hit the submit button.
>
> How did you save without hitting the submit button? (You said "it
> gets
> reset to itself on save").
>
> > 2. It doesn't seem very safe for variable spaces to mix so easily.
> Unless this is a feature.
>
> "Inline form" edit mode is used to edit object properties. If you use
> $doc.display method to generate your form fields then you'll see that
> the field IDs/names look like this:
> ClassName_objectIndex_propertyName
> , so they don't interfere with the rest of the (hidden) fields like
> "parent" which is used to set the document title. If you generate the
> form fields yourself then indeed you have to take care to use unique
> IDs/names to prevent conflicts.
>
> Hope this helps,
> Marius
Thanks for the reply.
My page has a form like {{{html}}}<form></form>{{{/html}}} if you look at the wiki code. I'll call this the "embedded form." So when the page is viewed, then the embedded form is available. An aside, the embedded form creates sub-pages. The page also has an object and I'm fine with editing those properties in the inline form editor. And, of course the embedded form on my page is not displayed because the inline editor only shows and edits the object. My trouble comes here, when I save that object in the inline editor, I get the embedded form's hidden post variables evaluated. I did not click my embedded form's submit, I clicked the inline editor's save. It behaves as if I clicked the embedded form's submit just before the inline editor's save.
I know it sounds crazy. I'll try to isolate it to a minimal test case.
Hi all,
After migrating my XE from 2.x to 3.1, I get a bunch of these errors in my
logs : "[Statistics storing daemon] ERROR o.h.u.JDBCExceptionReporter -
Data truncation: Data too long for column 'XWV_IP' at row 1"
I suppose it's a change in the statistics related tables ...
What should I do to remove these errors ?
Full stack trace :
2011-09-14 16:11:50,551 [Statistics storing daemon] ERROR
o.h.u.JDBCExceptionReporter - Data truncation: Data too long for column
'XWV_IP' at row 1
2011-09-14 16:11:50,551 [Statistics storing daemon] ERROR
.AbstractFlushingEventListener - Could not synchronize database state with
session
org.hibernate.exception.DataException: Could not execute JDBC batch update
at
org.hibernate.exception.SQLStateConverter.convert(SQLStateConverter.java:77)
~[hibernate-3.2.6.ga.jar:3.2.6.ga]
at
org.hibernate.exception.JDBCExceptionHelper.convert(JDBCExceptionHelper.java:43)
~[hibernate-3.2.6.ga.jar:3.2.6.ga]
at
org.hibernate.jdbc.AbstractBatcher.executeBatch(AbstractBatcher.java:253)
~[hibernate-3.2.6.ga.jar:3.2.6.ga]
at
org.hibernate.engine.ActionQueue.executeActions(ActionQueue.java:266)
~[hibernate-3.2.6.ga.jar:3.2.6.ga]
at
org.hibernate.engine.ActionQueue.executeActions(ActionQueue.java:167)
~[hibernate-3.2.6.ga.jar:3.2.6.ga]
at
org.hibernate.event.def.AbstractFlushingEventListener.performExecutions(AbstractFlushingEventListener.java:298)
~[hibernate-3.2.6.ga.jar:3.2.6.ga]
at
org.hibernate.event.def.DefaultFlushEventListener.onFlush(DefaultFlushEventListener.java:27)
[hibernate-3.2.6.ga.jar:3.2.6.ga]
at org.hibernate.impl.SessionImpl.flush(SessionImpl.java:1000)
[hibernate-3.2.6.ga.jar:3.2.6.ga]
at org.hibernate.impl.SessionImpl.managedFlush(SessionImpl.java:338)
[hibernate-3.2.6.ga.jar:3.2.6.ga]
at
org.hibernate.transaction.JDBCTransaction.commit(JDBCTransaction.java:106)
[hibernate-3.2.6.ga.jar:3.2.6.ga]
at
com.xpn.xwiki.store.XWikiHibernateBaseStore.endTransaction(XWikiHibernateBaseStore.java:871)
[xwiki-platform-oldcore-3.1.jar:na]
at
com.xpn.xwiki.store.XWikiHibernateBaseStore.endTransaction(XWikiHibernateBaseStore.java:842)
[xwiki-platform-oldcore-3.1.jar:na]
at
com.xpn.xwiki.store.XWikiHibernateStore.saveXWikiCollection(XWikiHibernateStore.java:1054)
[xwiki-platform-oldcore-3.1.jar:na]
at
com.xpn.xwiki.stats.impl.xwiki.VisitStatsStoreItem.storeInternal(VisitStatsStoreItem.java:112)
[xwiki-platform-oldcore-3.1.jar:na]
at
com.xpn.xwiki.stats.impl.xwiki.AbstractStatsStoreItem.store(AbstractStatsStoreItem.java:99)
[xwiki-platform-oldcore-3.1.jar:na]
at
com.xpn.xwiki.stats.impl.xwiki.XWikiStatsStoreService.register(XWikiStatsStoreService.java:167)
[xwiki-platform-oldcore-3.1.jar:na]
at
com.xpn.xwiki.stats.impl.xwiki.XWikiStatsStoreService.runInternal(XWikiStatsStoreService.java:119)
[xwiki-platform-oldcore-3.1.jar:na]
at
com.xpn.xwiki.util.AbstractXWikiRunnable.run(AbstractXWikiRunnable.java:99)
[xwiki-platform-oldcore-3.1.jar:na]
at java.lang.Thread.run(Thread.java:619) [na:1.6.0_11]
Caused by: java.sql.BatchUpdateException: Data truncation: Data too long for
column 'XWV_IP' at row 1
at
com.mysql.jdbc.PreparedStatement.executeBatchSerially(PreparedStatement.java:2007)
~[mysql-connector-java-5.1.10-bin.jar:na]
at
com.mysql.jdbc.PreparedStatement.executeBatch(PreparedStatement.java:1443)
~[mysql-connector-java-5.1.10-bin.jar:na]
at
org.apache.commons.dbcp.DelegatingStatement.executeBatch(DelegatingStatement.java:297)
~[commons-dbcp-1.3.jar:1.3]
at
org.apache.commons.dbcp.DelegatingStatement.executeBatch(DelegatingStatement.java:297)
~[commons-dbcp-1.3.jar:1.3]
at
org.apache.commons.dbcp.DelegatingStatement.executeBatch(DelegatingStatement.java:297)
~[commons-dbcp-1.3.jar:1.3]
at
org.hibernate.jdbc.BatchingBatcher.doExecuteBatch(BatchingBatcher.java:48)
~[hibernate-3.2.6.ga.jar:3.2.6.ga]
at
org.hibernate.jdbc.AbstractBatcher.executeBatch(AbstractBatcher.java:246)
~[hibernate-3.2.6.ga.jar:3.2.6.ga]
... 16 common frames omitted
Thanks !
Jeremie.
--
View this message in context: http://xwiki.475771.n2.nabble.com/Data-too-long-for-column-XWV-IP-tp6792700…
Sent from the XWiki- Users mailing list archive at Nabble.com.