Hello,
We're using the Code Macro estension (
http://extensions.xwiki.org/xwiki/bin/view/Extension/Code+Macro ). We are
using it like this:
{{code language="java"}}
our code
{{/code}}
And then this error appears:
org.xwiki.rendering.macro.MacroExecutionException: Failed to highlight
content
at
org.xwiki.rendering.internal.macro.code.CodeMacro.parseContent(CodeMacro.java:108)
at
org.xwiki.rendering.internal.macro.code.CodeMacro.parseContent(CodeMacro.java:48)
at
org.xwiki.rendering.macro.box.AbstractBoxMacro.execute(AbstractBoxMacro.java:146)
at
org.xwiki.rendering.macro.box.AbstractBoxMacro.execute(AbstractBoxMacro.java:51)
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)
...........
Caused by: org.xwiki.component.manager.ComponentLookupException: Failed to
lookup component [role = [org.xwiki.rendering.parser.HighlightParser] hint
= [default]]
at
org.xwiki.component.embed.EmbeddableComponentManager.initialize(EmbeddableComponentManager.java:368)
at
org.xwiki.component.embed.EmbeddableComponentManager.lookup(EmbeddableComponentManager.java:126)
at
org.xwiki.component.internal.DefaultComponentManager.lookup(DefaultComponentManager.java:85)
at
org.xwiki.rendering.internal.macro.code.CodeMacro.highlight(CodeMacro.java:144)
at
org.xwiki.rendering.internal.macro.code.CodeMacro.parseContent(CodeMacro.java:105)
... 104 more
Caused by: Traceback (most recent call last):
File "<string>", line 1, in <module>
File "__pyclasspath__/pygments/__init__.py", line 37, in <module>
File "__pyclasspath__/pygments/util.py", line 12, in <module>
ImportError: No module named re
at
org.python.core.PyException.fillInStackTrace(PyException.java:70)
at java.lang.Throwable.<init>(Throwable.java:56)
at org.python.core.PyException.<init>(PyException.java:46)
at org.python.core.PyException.<init>(PyException.java:43)
at org.python.core.PyException.<init>(PyException.java:61)
at org.python.core.Py.ImportError(Py.java:290)
......
We thought that the code we added may be wrong, but if we just write {{code
language="java"}}{{/code}} , we get the same error.
Any clue of what's causing this error?
Thanks in Advance
Sergio Carrasco
Please create an Xwiki on the farm.
Would like a wiki to test our xwiki and to store research content.
Username: kentpalmer
thinknet.myxwiki.org
Thanks,
Kent Palmer
http://kdp.mehttp://think.net
Reference:
If you’re interested in having a wiki hosted on this farm please send an
email to the XWiki user mailing
list<http://dev.xwiki.org/xwiki/bin/view/Community/MailingLists> with
a subject of [myxwiki] new wiki request and explaining briefly what you
want to use this wiki for (give a brief description). You’ll also need to
register :on myxwiki.org (this wiki) and give your user name in the mail,
as well as the server name you want for your wiki (the name that will be
used before .myxwiki.org to access the wiki). Then one of the community
Admins will create it for you.
Hello XWikiers,
I've been following the tutorial:
http://platform.xwiki.org/xwiki/bin/view/AdminGuide/DistributedEventCluster…
and the two consoles show me a successful:
grep -i channel mytomcat/logs/tomcat.log
> 2012-07-06 08:28:02,901 INFO jgroups.JChannel - JGroups version: 2.12.2.Final
> 2012-07-06 08:28:05,262 [main] INFO .o.r.i.j.JGroupsNetworkAdapter - Channel [udp] started
grep -i channel myothertomcat/logs/tomcat.log
> 2012-07-06 08:29:11,857 INFO jgroups.JChannel - JGroups version: 2.12.2.Final
> 2012-07-06 08:29:14,251 [main] INFO .o.r.i.j.JGroupsNetworkAdapter - Channel [udp] started
also;
GMS: address=atlas-56733, cluster=event, physical address=fe80:0:0:0:223:dfff:fedf:591d%5:2273
GMS: address=atlas-26026, cluster=event, physical address=fe80:0:0:0:223:dfff:fedf:591d%5:20950
with unchanged udp.xml as extracted with jar -xf from the jgroups jar in WEB-INF.
However the two xwiki's seem to work separately, the data of the other is only fetched if it has not yet come into cache.
The only suspicious log is, in both consoles:
> 2012-07-06 08:28:03,208 WARN protocols.UDP - receive buffer of socket java.net.MulticastSocket@40d3ab8b was set to 25MB, but the OS only allocated 65.51KB. This might lead to performance problems. Please set your max receive buffer in the OS correctly (e.g. net.core.rmem_max on Linux)
Is there anything else I need to watch?
The README in the directory of udp.xml was absolutely useless, or at least lead me to no change... have badly read it?
thanks in advance
Paul
I would like to capture all of the historical mailing list traffic locally
for further processing (formatting and searching). At
http://lists.xwiki.org/pipermail/users/ I am able to download each month's
traffic in a "Gzip'd Text" format. Can anyone tell me how to convert these
files to something useful? I researched this subject on Google and, while
there is a fair amount of information and even some scripts for converting
this Pipermail gzipped format to mbox format, it doesn't match up with what
I actually find in the download files from this list, whether in the
original gz format or after uncompressing. For example, the scripts expect
to find "From:" literals in clear text, and that is not the case in these
files.
--Gary
Hello fellow XWiki developers and users,
would it be possible to share an export of parts of your XWiki installations to help Savitha's testings in her XWiki Solr project?
Among interesting things, I'd wish:
- a few spaces with objects and their displayers
- a clean series of multilingual pages.
It can be somewhat big (e.g thousands of documents) but not too much (less than 1Gb).
Ideally you reply with an offer on the mailing list then we can exchange directly a link to the xar. I do not think it's a good idea to send the xar as attachment to the list!
paul
Hello,
i altered the MenuCode Extension to use the XWIKI CSS only menu:
{{velocity}}
##$xwiki.ssx.use('xwiki:XWikiOrgCode.MenuMacro')
##{{menu id="navigationMenu"}}
{{menu type="horizontal" position="left" id="mainMenu"}}
#set($menuContentProperty =
$xwiki.getDocument("MenuCode.MenuConfig").getObject("MenuCode.MenuConfig").getProperty('content').value)
#if("$!menuContentProperty" == '' or "$!menuContentProperty" == "\\")
* [[Edit the menu in
administration>>XWiki.XWikiPreferences?editor=globaladmin§ion=MenuConfig]]
#else
$menuContentProperty
#end
{{/menu}}
{{/velocity}}
Unfortunately the manu is not rendered to the top of the page like the
normal Menu Macro. Can someone give me a hint how to include the xwiki
menu to the top of the page. I'm new to xwiki and i do not know if i can
set the menu globally for all spaces without the MenuCode Panel Extension.
Thank you very much
--
Andreas Niekler, Dipl. Ing. (FH)
NLP Group | Department of Computer Science
University of Leipzig
Johannisgasse 26 | 04103 Leipzig
mail: aniekler(a)informatik.uni-leipzig.deg.de
Hello XWiki ers,
on #xwiki, Sergiu was kind enough to indicate that my current bug, the fact that $!xwiki.getXWiki().Param(...) returns empty is a programming rights issue: the problem seems to be that the resource page, whose rendering is entirely made outside of the wiki-page-content.
And I could verify that by having, in all pages where the above is empty, an output that of $doc.hasProgrammingRight() which is false.
Question 1: how can I evaluate that another page has programming rights?
Question 2: is there a way to give programming rights to everything in a space? to all code in included .vm files?
thanks in advance
Paul
Hello,
right now I'm trying to use the minificated
Scriptaculous.js/Prototype.js, but I don't have a clue how it works.
I tested my application with the original files and it works. Could
somebody explain to me how I have to transform my code e.g. see below to
make it work with the minificated files brought by xwiki.
<script type="text/javascript" language="javascript" charset="utf-8">
// <![CDATA[
Sortable.create('testlist',{ghosting:false,constraint:false,hoverclass:'
over',
onChange:function(element){$('testlist_serialize').innerHTML =
Sortable.serialize(element.parentNode)}
});
// ]]>
</script>
Many thanks in advance,
Josef Haimerl
I'm developing a Java servlet application that needs to fetch pages from an
XWiki instance in the same container. It needs the content rendered in
XHTML. Ideally, I'd like to get just the page content, without any of the
extra navigation/layout markup. Whats the best way to do this?
I've looked at using the REST API, but as far as I can figure out it only
provides the content in the xwiki syntax. Is there a way to get the content
rendered in XHTML through this API?
--Maxwell Terpstra
--
View this message in context: http://xwiki.475771.n2.nabble.com/API-to-get-page-content-in-XHTML-tp758053…
Sent from the XWiki- Users mailing list archive at Nabble.com.
Hello
I cannot manage to use standard option to print several pages. When i use
children pages, it works but page break option won t work, pages titles and
pictures inside pages either. I also uses specific panel dowloaded on xwiki
site. The pdf option gui works but i still have the same problems.
Thanks
Another newbie question, I'm afraid.
I have a simple Glossary application that I've written, and I've managed to
figure out how to write a velocity script to retrieve all of the glossary
terms and put them into a JSON array. The problem is, the velocity script
output is being html encoded and sent to the browser as text, including the
enclosing <script> blocks. If I wrap the whole thing in {{html}} macro
calls, the velocity script doesn't run. If I just enclose the <script>
opening and closing tags in their own {{html}} macro call, the calls fail.
What am I missing here? How do I get velocity script to render as HTML/JS?
Yours,
David Baltusavich
------------------------------
<http://www.synatree.com>
1001 State Street, Suite 1123
Erie, PA 16501
(814) 422-5887
(321) 800-8733
Hello,
right now I'm trying to modify the pdf-export for adding attached
pdf-files to the end of the export like the existing functionality for
adding attached images.
Starting from the beginning with the pdf.vm I couldn't find an analogy
to include the pdf-files in the way of image-files, because as I see it
the images just get rendered as html.
Can anybody give me a hint how to proceed to solve this task?
Many thanks in advance,
Josef Haimerl
I have developed a simple glossary app for my XWiki instance.
Everything works great until I try to add an Annotation to the page,
generally on content that is a TextArea type. As soon as I save the
annotation, all of the fields of the app immediately disappear.
They won't re-appear until I delete the Annotation.
What am I missing? Does my TextArea have to somehow link to
the AnnotationClass?
Sorry if this is a newbie question; I'm just getting started with XWiki.
David
Hi there,
we have to parse and generate JSON in our code; we wonder wich is the
bast way/language (Velocity or Groovy) to do that in XWiki?
Thx by advance,
Nicolas
Hello all,
I am very enthusiast about using the Lyrebird skin.
I downloaded the XAR, imported it in my wiki. But unfortunately
nothing happen when I enter 'Lyrebird' in the field where we have to
set the skin. Nor when I add skin=Lyrebird in the parameters of my
query...
Could anyone help in setting this skin in my wiki?!
Thanks for your help,
Nicolas
" file:///C:\path\to\resource\Instructions.txt "
that is broken path.
DOS used slash for command line options instead of dash on traditional
systems.
So when folders were aadded to later DOs versions, they had to use
back-slashes.
But outside of DOS-Win-OS/2 world the regular slashes are used still.
Try converting all the back-slashes into proper ones.
Also read https://www.google.com/?q=backslash+string+escaping+c
I think your string just contained non-printable special code as a result of
wrong slashes used.
--
View this message in context: http://xwiki.475771.n2.nabble.com/Adding-link-to-file-on-local-area-network…
Sent from the XWiki- Users mailing list archive at Nabble.com.
Je suis absent(e) du bureau jusqu'au 13/08/2012
Remarque : ceci est une réponse automatique à votre message "users Digest,
Vol 60, Issue 41" envoyé le 7/21/2012 2:00:02 PM.
C'est la seule notification que vous recevrez pendant l'absence de cette
personne.
Ik ben afwezig van Vr 07/20/2012 tot Di 08/14/2012.
Geachte mevrouw, mijnheer,
Op het moment kan ik uw mail niet beantwoorden. Voor dringende zaken kunt u
zich wenden tot het secretariaat van het EMI:
anne.marie.van.kleef(a)rivm.nl, T 030-2748570
Met vriendelijke groet,
Wouter Boasson
Note: This is an automated response to your message "users Digest, Vol 60,
Issue 40" sent on 20-7-2012 14:00:03.
This is the only notification you will receive while this person is away.
Hi,
I have realized that some fonts having more than 1 word in their font names (not font file name) not embedded in the exported PDF file. (i.e. "Courier New", "Trebuchet MS", "Comic Sans MS", etc..) Other fonts embedded into the PDF without problems.
Any comments?
Thanks.