Hello all,
after I changed my max upload size to 2Gb, and after having used the filesystem attachment, I thought it would be flawless to upload a 600 Mb but no. I get the following exception:
> Caused by: java.lang.OutOfMemoryError: Java heap space
> at java.util.Arrays.copyOf(Arrays.java:2786)
> at java.io.ByteArrayOutputStream.write(ByteArrayOutputStream.java:94)
> at org.apache.commons.io.output.ProxyOutputStream.write(ProxyOutputStream.java:90)
> at org.apache.commons.codec.binary.BaseNCodecOutputStream.flush(BaseNCodecOutputStream.java:116)
> at org.apache.commons.codec.binary.BaseNCodecOutputStream.write(BaseNCodecOutputStream.java:97)
> at org.apache.commons.io.IOUtils.copyLarge(IOUtils.java:1720)
> at org.apache.commons.io.IOUtils.copyLarge(IOUtils.java:1696)
> at org.apache.commons.io.IOUtils.copy(IOUtils.java:1671)
> at com.xpn.xwiki.internal.xml.XMLWriter.writeBase64(XMLWriter.java:182)
> at com.xpn.xwiki.doc.XWikiAttachment.toXML(XWikiAttachment.java:413)
> at com.xpn.xwiki.doc.XWikiAttachment.toStringXML(XWikiAttachment.java:340)
> at com.xpn.xwiki.doc.XWikiAttachmentArchive.updateArchive(XWikiAttachmentArchive.java:180)
> at com.xpn.xwiki.doc.XWikiAttachment.updateContentArchive(XWikiAttachment.java:718)
> at com.xpn.xwiki.store.XWikiHibernateStore.saveAttachment(XWikiHibernateStore.java:1528)
> at com.xpn.xwiki.store.XWikiHibernateStore.saveAttachmentList(XWikiHibernateStore.java:1496)
Could it be that this copy is indeed copying the whole file?
paul
Hello all,
I've implemented some client side page validation using JavaScript which works well, but I want to implement some simple checks on server side also. I know how to evaluate the values in my UI using velocity after the page is submitted, but how do I prevent the page from saving if my criteria isn't met?
I'm getting the majorminor 51.0 error when running Xwiki v 6.3 on a Mac
with Java 8. From what I have been reading from support pages Xwiki 6.3
should work with Java 7 and later. I don't care to install Java 7 but
maybe I have to?
Jason
Hello,
To clean and Pull Request my patch I need to launch "mvn xar:format" command but I didn't managed to use it and didn't found a simple documentation about it (notice, I didn't eat a maven book either)
I don't want rebuild Xwiki package but I want only check/clean xml file (from XAR) before to pull request it on github.
Here my manipulation on my debian testing:- I installed current maven package (3.0.4 version)
- I create the conf file ~/.m2/settings.xml provided here: http://dev.xwiki.org/xwiki/bin/view/Community/Building#HInstallingMaven
(I'm behind a http proxy, then I add http://dev.xwiki.org/xwiki/bin/view/Community/Building#HBuildingbehindaproxy parameter in ~/.m2/settings.xm)
I download Xwiki source with theses commands:#Only first time
cd /home/git-wiki/
git clone https://github.com/XXXX/xwiki-platform.git
cd xwiki-platform/
git remote add upstream https://github.com/xwiki/xwiki-platform.git
git remote -v
# synchro before modify
cd /home/git-wiki/xwiki-platform/
git fetch upstream
git checkout master
git merge upstream/master
#branch creation and modif of files
git checkout -B XWIKI-MaBranche
vi /home/git-wiki/xwiki-platform/xwiki-platform-core/xwiki-platform-tag/xwiki-platform-tag-ui/src/main/resources/XWiki/TagCloud.xm
Here my problems, I want to check TagCloud.xm with mvn xar:format:cd /home/git-wiki/xwiki-platform/xwiki-platform-core/xwiki-platform-tag/xwiki-platform-tag-ui mvn -e xar:formatI obtain the insanity that I paste at the end of this mail!
To resume, howto check my tiny improvment with mvn xar:format?In the same time, I want to avoid maven download the entire world each time I launch it :-))
Thxs for yor help.
Pascal B
*****************************
root@buttle:/home/git-wiki/xwiki-platform/xwiki-platform-core/xwiki-platform-tag/xwiki-platform-tag-ui# mvn -e xar:format
[INFO] Error stacktraces are turned on.
[INFO] Scanning for projects...
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building XWiki Platform - Tag - UI 6.4-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 5.962s
[INFO] Finished at: Fri Jan 09 10:24:42 CET 2015
[INFO] Final Memory: 19M/228M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal on project xwiki-platform-tag-ui: Could not resolve dependencies for project org.xwiki.platform:xwiki-platform-tag-ui:xar:6.4-SNAPSHOT: Could not find artifact com.sun:tools:jar:1.5.0 at specified path /usr/lib/jvm/java-7-openjdk-amd64/jre/../lib/tools.jar -> [Help 1]
org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal on project xwiki-platform-tag-ui: Could not resolve dependencies for project org.xwiki.platform:xwiki-platform-tag-ui:xar:6.4-SNAPSHOT: Could not find artifact com.sun:tools:jar:1.5.0 at specified path /usr/lib/jvm/java-7-openjdk-amd64/jre/../lib/tools.jar
at org.apache.maven.lifecycle.internal.LifecycleDependencyResolver.getDependencies(LifecycleDependencyResolver.java:210)
at org.apache.maven.lifecycle.internal.LifecycleDependencyResolver.resolveProjectDependencies(LifecycleDependencyResolver.java:117)
at org.apache.maven.lifecycle.internal.MojoExecutor.ensureDependenciesAreResolved(MojoExecutor.java:258)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:201)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145)
at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:84)
at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:59)
at org.apache.maven.lifecycle.internal.LifecycleStarter.singleThreadedBuild(LifecycleStarter.java:183)
at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:161)
at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:320)
at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:156)
at org.apache.maven.cli.MavenCli.execute(MavenCli.java:537)
at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:196)
at org.apache.maven.cli.MavenCli.main(MavenCli.java:141)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:290)
at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:230)
at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:409)
at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:352)
Caused by: org.apache.maven.project.DependencyResolutionException: Could not resolve dependencies for project org.xwiki.platform:xwiki-platform-tag-ui:xar:6.4-SNAPSHOT: Could not find artifact com.sun:tools:jar:1.5.0 at specified path /usr/lib/jvm/java-7-openjdk-amd64/jre/../lib/tools.jar
at org.apache.maven.project.DefaultProjectDependenciesResolver.resolve(DefaultProjectDependenciesResolver.java:189)
at org.apache.maven.lifecycle.internal.LifecycleDependencyResolver.getDependencies(LifecycleDependencyResolver.java:185)
... 22 more
Caused by: org.sonatype.aether.resolution.DependencyResolutionException: Could not find artifact com.sun:tools:jar:1.5.0 at specified path /usr/lib/jvm/java-7-openjdk-amd64/jre/../lib/tools.jar
at org.sonatype.aether.impl.internal.DefaultRepositorySystem.resolveDependencies(DefaultRepositorySystem.java:375)
at org.apache.maven.project.DefaultProjectDependenciesResolver.resolve(DefaultProjectDependenciesResolver.java:183)
... 23 more
Caused by: org.sonatype.aether.resolution.ArtifactResolutionException: Could not find artifact com.sun:tools:jar:1.5.0 at specified path /usr/lib/jvm/java-7-openjdk-amd64/jre/../lib/tools.jar
at org.sonatype.aether.impl.internal.DefaultArtifactResolver.resolve(DefaultArtifactResolver.java:538)
at org.sonatype.aether.impl.internal.DefaultArtifactResolver.resolveArtifacts(DefaultArtifactResolver.java:216)
at org.sonatype.aether.impl.internal.DefaultRepositorySystem.resolveDependencies(DefaultRepositorySystem.java:358)
... 24 more
Caused by: org.sonatype.aether.transfer.ArtifactNotFoundException: Could not find artifact com.sun:tools:jar:1.5.0 at specified path /usr/lib/jvm/java-7-openjdk-amd64/jre/../lib/tools.jar
at org.sonatype.aether.impl.internal.DefaultArtifactResolver.resolve(DefaultArtifactResolver.java:256)
... 26 more
[ERROR]
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/DependencyResolutionExcept…
*******************If I launch mvn -e xar:format from a directory without pom.xml file:
[ERROR] No plugin found for prefix 'xar' in the current project and in the plugin groups [org.apache.maven.plugins, org.codehaus.mojo] available from the repositories [local (/root/.m2/repository), xwiki-plugins-snapshots (http://nexus.xwiki.org/nexus/content/groups/public-snapshots), xwiki-plugins-releases (http://nexus.xwiki.org/nexus/content/groups/public), central (http://repo.maven.apache.org/maven2)] -> [Help 1]
org.apache.maven.plugin.prefix.NoPluginFoundForPrefixException: No plugin found for prefix 'xar' in the current project and in the plugin groups [org.apache.maven.plugins, org.codehaus.mojo] available from the repositories [local (/root/.m2/repository), xwiki-plugins-snapshots (http://nexus.xwiki.org/nexus/content/groups/public-snapshots), xwiki-plugins-releases (http://nexus.xwiki.org/nexus/content/groups/public), central (http://repo.maven.apache.org/maven2)]
Many thanks - the first option works fine for me.
----- Reply message -----
From: "Clemens Klein-Robbenhaar" <c.robbenhaar(a)espresto.com>
To: <users(a)xwiki.org>
Subject: Re: [xwiki-users] Manipulate presentation of LiveTable column data
Date: Thu, Jan 8, 2015 21:23
On 01/08/2015 03:15 AM, Bryn Jeffries wrote:
> I have a custom groovy script at DemoSpace.StudiesJSON that generates JSON of the form:
> {
> "totalrows": 5,
> "matchingtags": {},
> "tags" : [],
> "offset": 1,
> "reqNo": 0,
> "returnedrows": 1,
> "rows": [{"doc_viewable":true,"study_id":3,"study_name":"My Study","description":"A test study"}]
> }
>
> This is then called from a LiveTable macro as
> {{velocity}}
> #set($columns = ["study_name", "description", "study_id"])
> #set($options = {
> "resultPage":"DemoSpace.StudiesJSON"
> })
> #set($columnsProperties = {
> "study_name" : { "type" : "text", "displayName": "Study Name", "filterable": false },
> "description" : { "type" : "text", "displayName": "Description", "filterable": false },
> "study_id" : { "type" : "text", "displayName": "Study ID", "filterable": false }
> })
> #livetable("studyTable" $columns $columnsProperties $options)
> {{/velocity}}
>
> What I'd really like is to put links into each row, for instance replacing each entry in the first ("Study Name") column with a link of the form [[${study_name}>>StudyDetails?study_id=${study_id}]]. Is there a way to do this? I've tried generating a link in the JSON but the query strings seem to get corrupted and the link is lost in any case within the actual LiveTable.
>
I think you can do the following here:
- change the JSON script generating the results so that "study_name" contains the HTML you want, like:
> "rows": [{"doc_viewable":true,"study_id":3,"study_name":"<a href=\"/xwiki/bin/view/StudySpace/StudyDetails?study_id=3\">My Study</a>","description":"A test study"}]
- then set the columnsProperty for study_name to html:
> #set($columnsProperties = {
> "study_name" : { "type" : "html", ...
For a list of accepted options see here:
http://extensions.xwiki.org/xwiki/bin/view/Extension/Livetable+Macro#HParam…
Alternatively you could add your own "LiveTableRow renderer" in JavaScript, as explained in the "All Attachments" example on the same page:
http://extensions.xwiki.org/xwiki/bin/view/Extension/Livetable+Macro#HAllAt…
However this is a "all or nothing" solution - you will need to render all columns in the JavaScript, not only the ones you want to customize.
I would only use this solution if the first option is not sufficient for some reason.
Cheers
Clemens
> Thanks,
>
> Bryn
> _______________________________________________
> users mailing list
> users(a)xwiki.org
> http://lists.xwiki.org/mailman/listinfo/users
>
I have a custom groovy script at DemoSpace.StudiesJSON that generates JSON of the form:
{
"totalrows": 5,
"matchingtags": {},
"tags" : [],
"offset": 1,
"reqNo": 0,
"returnedrows": 1,
"rows": [{"doc_viewable":true,"study_id":3,"study_name":"My Study","description":"A test study"}]
}
This is then called from a LiveTable macro as
{{velocity}}
#set($columns = ["study_name", "description", "study_id"])
#set($options = {
"resultPage":"DemoSpace.StudiesJSON"
})
#set($columnsProperties = {
"study_name" : { "type" : "text", "displayName": "Study Name", "filterable": false },
"description" : { "type" : "text", "displayName": "Description", "filterable": false },
"study_id" : { "type" : "text", "displayName": "Study ID", "filterable": false }
})
#livetable("studyTable" $columns $columnsProperties $options)
{{/velocity}}
What I'd really like is to put links into each row, for instance replacing each entry in the first ("Study Name") column with a link of the form [[${study_name}>>StudyDetails?study_id=${study_id}]]. Is there a way to do this? I've tried generating a link in the JSON but the query strings seem to get corrupted and the link is lost in any case within the actual LiveTable.
Thanks,
Bryn
Hi,
I've started working with XWiki for a short time and I'm facing a probem
with the rights management.
I configured XWiki so every registered users have read permission as
default.
Then I created some private spaces with read access for a specific group
of users. Let's say group A has read permission on space A.
Other groups don't have access to this space A. So it is fine.
But I need sometimes to allow some specific groups or users to access
some specific pages in this space. For example, group B should have read
access on page 1 of space A.
I modified the access rights of the page accordingly. The problem is: it
doesn't work when the page is a subpage. It is working fine if the page
is at the root of the space.
Is it a normal behaviour? What shall I do to make this work?
Thanks.
Yvan Arnaud
Having installed the SVN Application from the extension manager and copying the attached jars into /usr/lib/xwiki/WEB-INF/lib/ I think I've almost got the tool running. However, I still get the following error when I try to list pages to be committed:
org.tmatesoft.svn.core.SVNException: svn: Cannot create directory '/usr/share/tomcat7/.subversion/auth/svn.simple'
Is there a configuration step that I've missed?
Thanks,
Bryn
I've recycled some code from the tutorials and snippets in my own code, and in particular I've used the following in some velocity scripts:
#set($offset = $util.parseInt($request.get('offset')))
which yields the following warning in the log:
WARN o.x.v.i.DefaultVelocityEngine - Deprecated usage of method [com.xpn.xwiki.api.Util.parseInt] in 40:xwiki:DemoSpace.DemoPage@4,29
I notice in http://www.xwiki.org/xwiki/bin/view/FAQ/WhyDoIHaveDeprecatedUsageOfMethodXX… that a very similar warning is mentioned, but in the answer the recomendation is to switch from $xwiki.parseInt to $util.parseInt. But it looks like this has also been deprecated. So what should we be using instead?
Hello,
Is it possible to include a link to a page in edit mode WITH inline editor rather than view mode without using the full URL?
I applied this answer XWiki- Users - Link to page in edit mode without using full url?
but unfortunaly it doesn't work for inline editor :-((xpage=edit&editor=inline)
Thxs
Pascal B
Hi,
i'm new with XWiki. I've just installed the latest version 6.3 using the .deb package xwiki-enterprise-tomcat7-mysql on an Ununtu 14.04LTS server.
There were no issue during the installation. But when i connect to XWiki for the first time via the following URL : http://localhost:8080/xwiki, XWiki starts until 50% and the i get the following result :
Error number 4001 in 4: Error while evaluating velocity template colorThemeInit.vm
com.xpn.xwiki.XWikiException: Error number 4001 in 4: Error while evaluating velocity template colorThemeInit.vm
at com.xpn.xwiki.XWiki.evaluateTemplate(XWiki.java:1637)
at com.xpn.xwiki.XWiki.parseTemplate(XWiki.java:1612)
at com.xpn.xwiki.api.XWiki.parseTemplate(XWiki.java:801)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
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.directive.VelocimacroProxy.render(VelocimacroProxy.java:216)
at org.apache.velocity.runtime.directive.RuntimeMacro.render(RuntimeMacro.java:311)
at org.apache.velocity.runtime.directive.RuntimeMacro.render(RuntimeMacro.java:230)
at org.apache.velocity.runtime.parser.node.ASTDirective.render(ASTDirective.java:207)
at org.apache.velocity.runtime.parser.node.SimpleNode.render(SimpleNode.java:342)
at org.xwiki.velocity.internal.DefaultVelocityEngine.evaluate(DefaultVelocityEngine.java:243)
at org.xwiki.velocity.internal.DefaultVelocityEngine.evaluate(DefaultVelocityEngine.java:198)
at com.xpn.xwiki.internal.template.TemplateManager.evaluateContent(TemplateManager.java:783)
at com.xpn.xwiki.internal.template.TemplateManager.renderFromSkin(TemplateManager.java:689)
at com.xpn.xwiki.internal.template.TemplateManager.renderFromSkin(TemplateManager.java:676)
at com.xpn.xwiki.internal.template.TemplateManager.renderFromSkin(TemplateManager.java:649)
at com.xpn.xwiki.internal.template.TemplateManager.render(TemplateManager.java:642)
at com.xpn.xwiki.XWiki.evaluateTemplate(XWiki.java:1632)
at com.xpn.xwiki.XWiki.parseTemplate(XWiki.java:1612)
at com.xpn.xwiki.api.XWiki.parseTemplate(XWiki.java:801)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
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.directive.VelocimacroProxy.render(VelocimacroProxy.java:216)
at org.apache.velocity.runtime.directive.RuntimeMacro.render(RuntimeMacro.java:311)
at org.apache.velocity.runtime.directive.RuntimeMacro.render(RuntimeMacro.java:230)
at org.apache.velocity.runtime.parser.node.ASTDirective.render(ASTDirective.java:207)
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.SimpleNode.render(SimpleNode.java:342)
at org.xwiki.velocity.internal.DefaultVelocityEngine.evaluate(DefaultVelocityEngine.java:243)
at org.xwiki.velocity.internal.DefaultVelocityEngine.evaluate(DefaultVelocityEngine.java:198)
at com.xpn.xwiki.internal.template.TemplateManager.evaluateContent(TemplateManager.java:783)
at com.xpn.xwiki.internal.template.TemplateManager.renderFromSkin(TemplateManager.java:689)
at com.xpn.xwiki.internal.template.TemplateManager.renderFromSkin(TemplateManager.java:676)
at com.xpn.xwiki.internal.template.TemplateManager.renderFromSkin(TemplateManager.java:649)
at com.xpn.xwiki.internal.template.TemplateManager.render(TemplateManager.java:642)
at com.xpn.xwiki.XWiki.evaluateTemplate(XWiki.java:1632)
at com.xpn.xwiki.XWiki.parseTemplate(XWiki.java:1612)
at com.xpn.xwiki.api.XWiki.parseTemplate(XWiki.java:801)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
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.directive.VelocimacroProxy.render(VelocimacroProxy.java:216)
at org.apache.velocity.runtime.directive.RuntimeMacro.render(RuntimeMacro.java:311)
at org.apache.velocity.runtime.directive.RuntimeMacro.render(RuntimeMacro.java:230)
at org.apache.velocity.runtime.parser.node.ASTDirective.render(ASTDirective.java:207)
at org.apache.velocity.runtime.parser.node.ASTBlock.render(ASTBlock.java:72)
at org.apache.velocity.runtime.directive.VelocimacroProxy.render(VelocimacroProxy.java:216)
at org.apache.velocity.runtime.directive.RuntimeMacro.render(RuntimeMacro.java:311)
at org.apache.velocity.runtime.directive.RuntimeMacro.render(RuntimeMacro.java:230)
at org.apache.velocity.runtime.parser.node.ASTDirective.render(ASTDirective.java:207)
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.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:243)
at org.xwiki.velocity.internal.DefaultVelocityEngine.evaluate(DefaultVelocityEngine.java:198)
at com.xpn.xwiki.internal.template.TemplateManager.evaluateContent(TemplateManager.java:783)
at com.xpn.xwiki.internal.template.TemplateManager.renderFromSkin(TemplateManager.java:689)
at com.xpn.xwiki.internal.template.TemplateManager.access$100(TemplateManager.java:98)
at com.xpn.xwiki.internal.template.TemplateManager$1.call(TemplateManager.java:670)
at com.xpn.xwiki.internal.template.TemplateManager$1.call(TemplateManager.java:666)
at com.xpn.xwiki.internal.template.SUExecutor.call(SUExecutor.java:91)
at com.xpn.xwiki.internal.template.TemplateManager.renderFromSkin(TemplateManager.java:665)
at com.xpn.xwiki.internal.template.TemplateManager.renderFromSkin(TemplateManager.java:649)
at com.xpn.xwiki.internal.template.TemplateManager.render(TemplateManager.java:642)
at com.xpn.xwiki.XWiki.evaluateTemplate(XWiki.java:1632)
at com.xpn.xwiki.web.Utils.parseTemplate(Utils.java:179)
at com.xpn.xwiki.web.XWikiAction.execute(XWikiAction.java:358)
at com.xpn.xwiki.web.XWikiAction.execute(XWikiAction.java:149)
at org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:425)
at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:228)
at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1913)
at org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:449)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:620)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:727)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:303)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
at com.xpn.xwiki.web.ActionFilter.doFilter(ActionFilter.java:115)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
at org.xwiki.wysiwyg.server.filter.ConversionFilter.doFilter(ConversionFilter.java:127)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
at org.xwiki.container.servlet.filters.internal.SetHTTPHeaderFilter.doFilter(SetHTTPHeaderFilter.java:63)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
at com.xpn.xwiki.plugin.webdav.XWikiDavFilter.doFilter(XWikiDavFilter.java:66)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
at org.xwiki.container.servlet.filters.internal.SavedRequestRestorerFilter.doFilter(SavedRequestRestorerFilter.java:208)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
at org.xwiki.container.servlet.filters.internal.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:111)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:220)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:122)
at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:501)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:170)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:98)
at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:950)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:116)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:408)
at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1040)
at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:607)
at org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:315)
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:745)
Caused by: org.xwiki.velocity.XWikiVelocityException: Failed to evaluate content with id [/templates/distribution.vm]
at org.xwiki.velocity.internal.DefaultVelocityEngine.evaluate(DefaultVelocityEngine.java:262)
at org.xwiki.velocity.internal.DefaultVelocityEngine.evaluate(DefaultVelocityEngine.java:198)
at com.xpn.xwiki.internal.template.TemplateManager.evaluateContent(TemplateManager.java:783)
at com.xpn.xwiki.internal.template.TemplateManager.renderFromSkin(TemplateManager.java:689)
at com.xpn.xwiki.internal.template.TemplateManager.renderFromSkin(TemplateManager.java:676)
at com.xpn.xwiki.internal.template.TemplateManager.renderFromSkin(TemplateManager.java:649)
at com.xpn.xwiki.internal.template.TemplateManager.render(TemplateManager.java:642)
at com.xpn.xwiki.XWiki.evaluateTemplate(XWiki.java:1632)
... 135 more
Caused by: org.apache.velocity.exception.MethodInvocationException: Invocation of method 'getColorThemeFromSkinFile' in class org.xwiki.lesscss.LessCompilerScriptService threw exception java.lang.OutOfMemoryError: Java heap space at 46:/templates/distribution.vm[line 105, column 38]
at org.apache.velocity.runtime.parser.node.ASTMethod.handleInvocationException(ASTMethod.java:261)
at org.apache.velocity.runtime.parser.node.ASTMethod.execute(ASTMethod.java:187)
at org.apache.velocity.runtime.parser.node.ASTReference.execute(ASTReference.java:280)
at org.apache.velocity.runtime.parser.node.ASTReference.value(ASTReference.java:567)
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.ASTBlock.render(ASTBlock.java:72)
at org.apache.velocity.runtime.parser.node.ASTIfStatement.render(ASTIfStatement.java:87)
at org.apache.velocity.runtime.parser.node.SimpleNode.render(SimpleNode.java:342)
at org.xwiki.velocity.internal.DefaultVelocityEngine.evaluate(DefaultVelocityEngine.java:243)
... 142 more
Caused by: java.lang.OutOfMemoryError: Java heap space
at org.mozilla.javascript.ScriptableObject.createSlot(ScriptableObject.java:2836)
at org.mozilla.javascript.ScriptableObject.getSlot(ScriptableObject.java:2756)
at org.mozilla.javascript.ScriptableObject.putImpl(ScriptableObject.java:2640)
at org.mozilla.javascript.ScriptableObject.put(ScriptableObject.java:492)
at org.mozilla.javascript.IdScriptableObject.put(IdScriptableObject.java:381)
at org.mozilla.javascript.ScriptableObject.putProperty(ScriptableObject.java:2347)
at org.mozilla.javascript.ScriptRuntime.setObjectProp(ScriptRuntime.java:1598)
at org.mozilla.javascript.ScriptRuntime.setObjectProp(ScriptRuntime.java:1592)
at org.mozilla.javascript.gen.jar_file__usr_lib_xwiki_WEB_INF_lib_xwiki_platform_lesscss_default_6_3_jar__less_rhino_1_7_0_js_2._c_anonymous_437(jar:file:/usr/lib/xwiki/WEB-INF/lib/xwiki-platform-lesscss-default-6.3.jar!/less-rhino-1.7.0.js:5820)
at org.mozilla.javascript.gen.jar_file__usr_lib_xwiki_WEB_INF_lib_xwiki_platform_lesscss_default_6_3_jar__less_rhino_1_7_0_js_2.call(jar:file:/usr/lib/xwiki/WEB-INF/lib/xwiki-platform-lesscss-default-6.3.jar!/less-rhino-1.7.0.js)
at org.mozilla.javascript.BaseFunction.construct(BaseFunction.java:338)
at org.mozilla.javascript.ScriptRuntime.newObject(ScriptRuntime.java:2349)
at org.mozilla.javascript.gen.jar_file__usr_lib_xwiki_WEB_INF_lib_xwiki_platform_lesscss_default_6_3_jar__less_rhino_1_7_0_js_2._c_anonymous_439(jar:file:/usr/lib/xwiki/WEB-INF/lib/xwiki-platform-lesscss-default-6.3.jar!/less-rhino-1.7.0.js:5840)
at org.mozilla.javascript.gen.jar_file__usr_lib_xwiki_WEB_INF_lib_xwiki_platform_lesscss_default_6_3_jar__less_rhino_1_7_0_js_2.call(jar:file:/usr/lib/xwiki/WEB-INF/lib/xwiki-platform-lesscss-default-6.3.jar!/less-rhino-1.7.0.js)
at org.mozilla.javascript.optimizer.OptRuntime.call1(OptRuntime.java:32)
at org.mozilla.javascript.gen.jar_file__usr_lib_xwiki_WEB_INF_lib_xwiki_platform_lesscss_default_6_3_jar__less_rhino_1_7_0_js_2._c_anonymous_434(jar:file:/usr/lib/xwiki/WEB-INF/lib/xwiki-platform-lesscss-default-6.3.jar!/less-rhino-1.7.0.js:5741)
at org.mozilla.javascript.gen.jar_file__usr_lib_xwiki_WEB_INF_lib_xwiki_platform_lesscss_default_6_3_jar__less_rhino_1_7_0_js_2.call(jar:file:/usr/lib/xwiki/WEB-INF/lib/xwiki-platform-lesscss-default-6.3.jar!/less-rhino-1.7.0.js)
at org.mozilla.javascript.optimizer.OptRuntime.callN(OptRuntime.java:52)
at org.mozilla.javascript.gen.jar_file__usr_lib_xwiki_WEB_INF_lib_xwiki_platform_lesscss_default_6_3_jar__less_rhino_1_7_0_js_2._c_anonymous_433(jar:file:/usr/lib/xwiki/WEB-INF/lib/xwiki-platform-lesscss-default-6.3.jar!/less-rhino-1.7.0.js:5641)
at org.mozilla.javascript.gen.jar_file__usr_lib_xwiki_WEB_INF_lib_xwiki_platform_lesscss_default_6_3_jar__less_rhino_1_7_0_js_2.call(jar:file:/usr/lib/xwiki/WEB-INF/lib/xwiki-platform-lesscss-default-6.3.jar!/less-rhino-1.7.0.js)
at org.mozilla.javascript.optimizer.OptRuntime.callN(OptRuntime.java:52)
at org.mozilla.javascript.gen.jar_file__usr_lib_xwiki_WEB_INF_lib_xwiki_platform_lesscss_default_6_3_jar__less_rhino_1_7_0_js_2._c_anonymous_507(jar:file:/usr/lib/xwiki/WEB-INF/lib/xwiki-platform-lesscss-default-6.3.jar!/less-rhino-1.7.0.js:6546)
at org.mozilla.javascript.gen.jar_file__usr_lib_xwiki_WEB_INF_lib_xwiki_platform_lesscss_default_6_3_jar__less_rhino_1_7_0_js_2.call(jar:file:/usr/lib/xwiki/WEB-INF/lib/xwiki-platform-lesscss-default-6.3.jar!/less-rhino-1.7.0.js)
at org.mozilla.javascript.ScriptRuntime.applyOrCall(ScriptRuntime.java:2430)
at org.mozilla.javascript.BaseFunction.execIdCall(BaseFunction.java:269)
at org.mozilla.javascript.IdFunctionObject.call(IdFunctionObject.java:97)
at org.mozilla.javascript.optimizer.OptRuntime.callN(OptRuntime.java:52)
at org.mozilla.javascript.gen.jar_file__usr_lib_xwiki_WEB_INF_lib_xwiki_platform_lesscss_default_6_3_jar__less_rhino_1_7_0_js_2._c_anonymous_483(jar:file:/usr/lib/xwiki/WEB-INF/lib/xwiki-platform-lesscss-default-6.3.jar!/less-rhino-1.7.0.js:6303)
at org.mozilla.javascript.gen.jar_file__usr_lib_xwiki_WEB_INF_lib_xwiki_platform_lesscss_default_6_3_jar__less_rhino_1_7_0_js_2.call(jar:file:/usr/lib/xwiki/WEB-INF/lib/xwiki-platform-lesscss-default-6.3.jar!/less-rhino-1.7.0.js)
at org.mozilla.javascript.optimizer.OptRuntime.call1(OptRuntime.java:32)
at org.mozilla.javascript.gen.jar_file__usr_lib_xwiki_WEB_INF_lib_xwiki_platform_lesscss_default_6_3_jar__less_rhino_1_7_0_js_2._c_anonymous_484(jar:file:/usr/lib/xwiki/WEB-INF/lib/xwiki-platform-lesscss-default-6.3.jar!/less-rhino-1.7.0.js:6329)
at org.mozilla.javascript.gen.jar_file__usr_lib_xwiki_WEB_INF_lib_xwiki_platform_lesscss_default_6_3_jar__less_rhino_1_7_0_js_2.call(jar:file:/usr/lib/xwiki/WEB-INF/lib/xwiki-platform-lesscss-default-6.3.jar!/less-rhino-1.7.0.js)
I don't understand where the problem come from. Any help would be appreciated.
Thanks,
Stacy.
The XWiki development team is proud to announce the availability of XWiki
6.4 Milestone 3.
This milestone integrates the Ratings module inside platform, providing the
ability to rate extensions inside the Extension Repository and visualise
them inside Extension Manager. We have also added improvements for Flamingo
Skin on the responsiveness aspect, reintroduced the Wiki configuration
section in Administration and done massive work in augmenting the Mail
Sender API to be able to send large number of emails.
You can download it here: http://www.xwiki.org/xwiki/bin/view/Main/Download
Make sure to review the release notes:
http://www.xwiki.org/xwiki/bin/view/ReleaseNotes/ReleaseNotesXWiki64M3
Thanks
-The XWiki dev team
Happy new year!
I recently came across this strange behaviour.
We are 20 users on our XWiki, we have identical rights on the wiki, we
authenticate via AD/LDAP.
Now 4 users get an error at the main URL /xwiki/bin/view/Main/ telling them
they do not have access to the page.
When I look at the user rights for Main they have the same rights as
everyone else and should be able to view it.
When the same users go to /xwiki/bin/view/Dashboard/ they can view that
just fine (it's the same content just a different view, right?)
Has anyone seen this behaviour before? Is there a simple fix, am I missing
something?
--
Regards/Mvh
Daniel Lundh
Hello,
I have a question about "create a new wiki" feature on xwiki, regarding the
code and after test, this feature create a schema.
In Oracle, to create a schema, you have to create user.
The problem is : "Oracle administrator don't allow xwiki user to create
user/schema" in oracle database ...
File :
https://github.com/xwiki/xwiki-platform/blob/master/xwiki-platform-core/xwi…
308
Hope it's a lack of understanding on my side ?
What do you think, do you have a workaround ?
Thanks for your help
Hi,
i need to make the addition of 168 objects to a AppWithinMinutes. I can do
it programmatically, because the user should do it in a simple way. Is there
an url which i can use or did someone a workaround for it?
When not the only way i can think of is to create a new document with a
embedded object manually by code.
Regards,
Matthias
--
View this message in context: http://xwiki.475771.n2.nabble.com/AppWithinMinutes-Add-Entry-by-Link-from-a…
Sent from the XWiki- Users mailing list archive at Nabble.com.
The Curriki developers' team is happy to announce that Curriki 1.17 is now released and deployed to www.curriki.org .
This release fixes a number of bugs and adds the support for serving the static resources (such as JS, pictures, or CSS files that are part of the webapp) from a cloud distribution network.
Curriki has chosen the Amazon Web Service S3 upload and Cloudfront CDN solution.
This release required a number of adjustments in the internals (a URL factory) and quite some skin adjustments, often because absolute URLs that refer to CDN resources often get caught by the wiki syntax processor.
We are thrilled to bring this release to the users' community of curriki.org for a better responsiveness and to the developers of the XCLAMS-based platforms.
XCLAMS, the XWiki Collaborative Learning Assets Management System, is a web-service based on the XWiki platform that enables learning resources to be exchanged, developed, and shared following the Open Educational Resources model.
The source of the Curriki.org XCLAMS branch is at:
https://github.com/xwiki-contrib/currikiorg/commit/72b6e963ecd9e9794bda5f8d…
The commit of the release is: https://github.com/xwiki-contrib/currikiorg/
For more details about bug fixes, see the jira version:
http://jira.xwiki.org/secure/ReleaseNote.jspa?projectId=10160&version=15062
More information about XCLAMS in general see http://xclams.xwiki.org .
The XWiki developers' team
Paul, Bob, Todd, and Felix
subject: [myxwiki] new wiki request1
description: collecting ideas and experiance with my own DIY's (mostly private od small user group)
owner name: Frank_Albert
wiki name: ossiostborn
Why does a page containing just the following produce no output?:
{{groovy}}
class Callee {
void hello() {
println "hello, world"
}
}
c = new Callee()
c.hello()
{{/groovy}}
I have programming rights, and running scripts in general works fine. It's just when I try to invoke a method from a locally defined class that I hit problems.
Hello all,
what would be the best way to show pictures/thumbnails from an active directory in an xwiki site?
So far, we are using groovy to contact an active directoy, extract user info, like name, mail, phone etc and return xwiki 2.0 syntax, see code below
Now we would love to extend that contact list with photos stored in the active directory.
Would that be possible? If so, how?
Thanks in advance,
Florian
---
// KE1019746, März 13, fke
// list contact data
// to be included via includeInContext-Marco
//
// CAUTION: has to saved by user with programming rights
// import lib for ldap access
import org.apache.directory.groovyldap.*
// ldap connection
ldap = LDAP.newInstance('ldap://ad-server/', 'ldapbind', 'secret')
ldapsearchParams = new Search()
ldapsearchParams.base = 'OU=People,DC=domain,DC=de'
ldapsearchParams.scope = SearchScope.SUB
// for each letter in the alphabet
//for ( letter in (('A'..'Z') + ('0'..'9')) ) {
for ( letter in [ 'F' ] ) {
ldapsearchParams.filter = '(&(|(memberOf=CN=CN1-FIXME)(memberOf=CN=CN2-FIXME))(sn=' + letter.toLowerCase() + '*))'
// do the query
resultsUnsorted = ldap.search(ldapsearchParams)
// ldap output isn't sorted
// http://www.openldap.org/lists/openldap-software/200003/msg00058.html
// 'A robust client should not rely on servers maintaining any
// particular order over what are defined as unordered sequences.
//
// If your client wants to present the attributes and their values
// in some order, it should order them itself.'
//
// results is an array of hashed maps:
// groovy:000> println results.getClass()
// class java.util.ArrayList
// groovy:000> println results[3].getClass()
// class java.util.HashMap
//
// sort the array depending on the value of the field 'cn'
results = resultsUnsorted.sort { it.sn }
println results
// if results contains at least one cn, i.e. ldap search result isn't emtpy
if ( results.isEmpty() == false) {
println '' // xwiki markup stunt - new line necessary to not merge different letters to one xwiki table
println '==' + letter // xwiki markup - header
println '|=Name|=Funktion|=Tel|=Mobile|=Privat|=Fax'
for (entry in results) {
if ( ! ( entry.dn.toUpperCase() =~ 'DEAKTIVIERT' ) ) {
print '|'
if ( entry.sn ) {
print entry.sn
}
if ( entry.givenname ) {
print " "
print entry.givenname
}
print '|'
if ( entry.title ) {
print entry.title
}
print '|'
if ( entry.telephonenumber ) {
print entry.telephonenumber
}
print '|'
if ( entry.mobile ) {
print entry.mobile
}
print '|'
if ( entry.homephone ) {
print entry.homephone
}
print '|'
if ( entry.facsimiletelephonenumber ) {
print entry.facsimiletelephonenumber
}
print '|'
if ( entry.thumbnailphoto ) {
byte [] picture = entry.thumbnailphoto
//print entry.thumbnailphoto
print picture
}
println '' // xwiki markup to 'close' table
//} else {
// println 'No Match for ' + entry.dn.toUpperCase()
}
} // end for-token-loop
} // end results-isnt-Empty
} // end for-letter-in-alphabet-loop