Has anyone successfully created a second blog in a single wiki? If so, please give me some guidence on how to do this task. Also, what could be a source of a velocity parsing error while creating a class sheet? Please respond to help progress my research.
Thanks in advance,
Tim
Hello,
I'm using the (fantastic) new live tables to display components of a certain
class.
Everything works well, except for one thing - but functionality may be
discutable...
One of the fields of my class is of type Static List, is displayed as
checkboxes and has multi-select activated.
This field is correctly displayed in live table, with "type" : "list", and
all checked values are displayed separated by a space character (not that
good though, if some of the values contain spaces...).
Problem is for sorting and filtering :
- filtering on a value just leaves the table as it is (displays all entries)
[Note : it seems in 2.0-RC2, filtering this kind of field removes all
entries]
- sorting table on this field just changes order, but with no link to values
(no link I could infer).
I believe sorting a multi-valued field is not really a good idea, and I
wonder what to expect. As order of values is kept, it might have a sense
maybe. But filtering would be helpful though. I think a line should be
retained if one of the values matches the filter.
Except for this case, the live table works perfectly well.
WDYT ? (did not find any jira about that, maybe missed it).
Regards,
Jeremie
What I have discovered is that this is happening when I try to use an Oracle
user other than "xwiki". Somehow the code to run the initialization oracle
script has been bound to this user. It is a problem cause you can never have
two different xwiki installations working with the same oracle SID (i.e. on
the same instance of oracle XE).
anyone that can look in the code and try to verify this?
Hi,
I am currently trying to set up XWiki Enterprise 1.6.1 to use JBossCache in
REPL_ASYNC mode, but I am current experiencing a few issues.
I discovered that the directory structure WEB-INF/cache/jbosscache is not
correct, so I renamed the folder jbosscache to jboss. The default.xml file
had an incorrect tag EvictionConfig instead of the correct
EvictionPolicyConfig.
After fixing the 2 minor issues (tested in LOCAL mode) mentioned above,
nothing can be stored in the cache due to serializable issue, the stack
traces:
With UseLazyDeserialization = true
2009-07-13 12:30:05,080 ERROR [STDERR] org.jboss.cache.CacheException:
java.io.NotSerializableException: Marshalled values can only wrap Objects
that are serializable! Instance of class com.xpn.xwiki.doc.XWikiD
ocument won't Serialize.
2009-07-13 12:30:05,081 ERROR [STDERR] at
org.jboss.cache.interceptors.InterceptorChain.invoke(InterceptorChain.java:227)
2009-07-13 12:30:05,081 ERROR [STDERR] at
org.jboss.cache.invocation.CacheInvocationDelegate.put(CacheInvocationDelegate.java:480)
2009-07-13 12:30:05,081 ERROR [STDERR] at
org.xwiki.cache.jbosscache.internal.JBossCacheCache.set(JBossCacheCache.java:146)
2009-07-13 12:30:05,081 ERROR [STDERR] at
com.xpn.xwiki.store.XWikiCacheStore.saveXWikiDoc(XWikiCacheStore.java:143)
2009-07-13 12:30:05,081 ERROR [STDERR] at
com.xpn.xwiki.store.XWikiCacheStore.saveXWikiDoc(XWikiCacheStore.java:128)
2009-07-13 12:30:05,081 ERROR [STDERR] at
com.xpn.xwiki.XWiki.saveDocument(XWiki.java:1271)
2009-07-13 12:30:05,081 ERROR [STDERR] at
com.xpn.xwiki.XWiki.saveDocument(XWiki.java:1233)
2009-07-13 12:30:05,081 ERROR [STDERR] at
com.xpn.xwiki.XWiki.saveDocument(XWiki.java:1228)
2009-07-13 12:30:05,081 ERROR [STDERR] at
com.xpn.xwiki.plugin.calendar.CalendarPlugin.getCalendarEventClass(CalendarPlugin.java:84)
2009-07-13 12:30:05,081 ERROR [STDERR] at
com.xpn.xwiki.plugin.calendar.CalendarPlugin.init(CalendarPlugin.java:335)
2009-07-13 12:30:05,081 ERROR [STDERR] at
com.xpn.xwiki.plugin.XWikiPluginManager.initPlugin(XWikiPluginManager.java:155)
2009-07-13 12:30:05,081 ERROR [STDERR] at
com.xpn.xwiki.plugin.XWikiPluginManager.addPlugin(XWikiPluginManager.java:92)
2009-07-13 12:30:05,081 ERROR [STDERR] at
com.xpn.xwiki.plugin.XWikiPluginManager.addPlugins(XWikiPluginManager.java:120)
2009-07-13 12:30:05,081 ERROR [STDERR] at
com.xpn.xwiki.XWiki.preparePlugins(XWiki.java:1008)
2009-07-13 12:30:05,081 ERROR [STDERR] at
com.xpn.xwiki.XWiki.initXWiki(XWiki.java:727)
2009-07-13 12:30:05,081 ERROR [STDERR] at
com.xpn.xwiki.XWiki.<init>(XWiki.java:655)
2009-07-13 12:30:05,081 ERROR [STDERR] at
com.xpn.xwiki.XWiki.getMainXWiki(XWiki.java:315)
2009-07-13 12:30:05,081 ERROR [STDERR] at
com.xpn.xwiki.XWiki.getXWiki(XWiki.java:386)
2009-07-13 12:30:05,081 ERROR [STDERR] at
com.xpn.xwiki.xmlrpc.XWikiReflectiveXmlRpcHandler.execute(XWikiReflectiveXmlRpcHandler.java:85)
2009-07-13 12:30:05,081 ERROR [STDERR] at
org.apache.xmlrpc.server.XmlRpcServerWorker.execute(XmlRpcServerWorker.java:43)
2009-07-13 12:30:05,081 ERROR [STDERR] at
org.apache.xmlrpc.server.XmlRpcServer.execute(XmlRpcServer.java:83)
2009-07-13 12:30:05,081 ERROR [STDERR] at
org.apache.xmlrpc.server.XmlRpcStreamServer.execute(XmlRpcStreamServer.java:182)
2009-07-13 12:30:05,081 ERROR [STDERR] at
org.apache.xmlrpc.webserver.XmlRpcServletServer.execute(XmlRpcServletServer.java:103)
2009-07-13 12:30:05,081 ERROR [STDERR] at
org.apache.xmlrpc.webserver.XmlRpcServlet.doPost(XmlRpcServlet.java:120)
2009-07-13 12:30:05,081 ERROR [STDERR] at
javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
..............
And with UseLazyDeserialization = false
2009-07-13 12:38:57,160 ERROR [STDERR] org.jboss.cache.CacheException:
Unable to invoke method public void org.jboss.cache.RPCManagerImpl.start()
on object instance org.jboss.cache.RPCManagerImpl@1938222
2009-07-13 12:38:57,161 ERROR [STDERR] at
org.jboss.cache.util.reflect.ReflectionUtil.invokeAccessibly(ReflectionUtil.java:127)
2009-07-13 12:38:57,161 ERROR [STDERR] at
org.jboss.cache.factories.ComponentRegistry$PrioritizedMethod.invoke(ComponentRegistry.java:932)
2009-07-13 12:38:57,161 ERROR [STDERR] at
org.jboss.cache.factories.ComponentRegistry.internalStart(ComponentRegistry.java:718)
2009-07-13 12:38:57,161 ERROR [STDERR] at
org.jboss.cache.factories.ComponentRegistry.start(ComponentRegistry.java:582)
2009-07-13 12:38:57,161 ERROR [STDERR] at
org.jboss.cache.invocation.CacheInvocationDelegate.start(CacheInvocationDelegate.java:279)
2009-07-13 12:38:57,161 ERROR [STDERR] at
org.jboss.cache.DefaultCacheFactory.createCache(DefaultCacheFactory.java:95)
2009-07-13 12:38:57,161 ERROR [STDERR] at
org.jboss.cache.DefaultCacheFactory.createCache(DefaultCacheFactory.java:79)
2009-07-13 12:38:57,161 ERROR [STDERR] at
org.xwiki.cache.jbosscache.internal.JBossCacheCache.initialize(JBossCacheCache.java:101)
2009-07-13 12:38:57,161 ERROR [STDERR] at
org.xwiki.cache.jbosscache.internal.JBossCacheCacheFactory.newCache(JBossCacheCacheFactory.java:78)
2009-07-13 12:38:57,161 ERROR [STDERR] at
com.xpn.xwiki.store.XWikiCacheStore.initCache(XWikiCacheStore.java:99)
2009-07-13 12:38:57,161 ERROR [STDERR] at
com.xpn.xwiki.store.XWikiCacheStore.initCache(XWikiCacheStore.java:84)
2009-07-13 12:38:57,161 ERROR [STDERR] at
com.xpn.xwiki.store.XWikiCacheStore.<init>(XWikiCacheStore.java:64)
2009-07-13 12:38:57,161 ERROR [STDERR] at
com.xpn.xwiki.XWiki.initXWiki(XWiki.java:679)
2009-07-13 12:38:57,161 ERROR [STDERR] at
com.xpn.xwiki.XWiki.<init>(XWiki.java:655)
2009-07-13 12:38:57,161 ERROR [STDERR] at
com.xpn.xwiki.XWiki.getMainXWiki(XWiki.java:315)
2009-07-13 12:38:57,161 ERROR [STDERR] at
com.xpn.xwiki.XWiki.getXWiki(XWiki.java:386)
2009-07-13 12:38:57,161 ERROR [STDERR] at
com.xpn.xwiki.web.XWikiAction.execute(XWikiAction.java:135)
2009-07-13 12:38:57,161 ERROR [STDERR] at
com.xpn.xwiki.web.XWikiAction.execute(XWikiAction.java:115)
2009-07-13 12:38:57,161 ERROR [STDERR] at
org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:431)
2009-07-13 12:38:57,161 ERROR [STDERR] at
org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:236)
2009-07-13 12:38:57,161 ERROR [STDERR] at
org.apache.struts.action.ActionServlet.process(ActionServlet.java:1196)
2009-07-13 12:38:57,161 ERROR [STDERR] at
org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:414)
2009-07-13 12:38:57,162 ERROR [STDERR] at
javax.servlet.http.HttpServlet.service(HttpServlet.java:697)
2009-07-13 12:38:57,162 ERROR [STDERR] at
javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
2009-07-13 12:38:57,162 ERROR [STDERR] at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
2009-07-13 12:38:57,162 ERROR [STDERR] at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
2009-07-13 12:38:57,162 ERROR [STDERR] at
com.xpn.xwiki.wysiwyg.server.filter.ConversionFilter.doFilter(ConversionFilter.java:94)
2009-07-13 12:38:57,162 ERROR [STDERR] at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
2009-07-13 12:38:57,162 ERROR [STDERR] at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
Has anyone ever managed to get XWiki running with a replicated cache (JBoss
or OSCache) ????
Any help is greatly appreciated.
Cheers,
Andy
Hello XWiki users,
I have worked a lot with XWiki Skins on the top of XWiki Enterprise
instances and I wanted to share my experience with you all. This is why
I created a new XWiki Skins tutorial that you can find it here:
http://dev.xwiki.org/xwiki/bin/view/Drafts/XWikiNewSkin . It would be
great if you could give me your feedback about this tutorial.
Enjoy customizing your XWiki Enterprise instances!
Raluca Stavro.
When we try to search this is what we get. What am I missing?
Thanks for any help!
org.xwiki.rendering.macro.MacroExecutionException: Failed to evaluate
Velocity Macro for content [$xwiki.jsfx.use("uicomponents/search/search.js",
false)##
$xwiki.ssfx.use("uicomponents/search/search.css", true)##
## Disable the document extra data: comments, attachments, history...
#set($docextras = [])
#set ($rssmode = ("$!request.xpage" == 'plain'))
## ---------------
## Space filtering
## ---------------
#set($spaces = $xwiki.spaces)
#set($selectedSpace = "$!request.space")
## ---------------
## Space macros
## ---------------
#macro(spaceoption $space $selectedSpace)
<option value="${space}" #if($selectedSpace ==
$space)selected="selected"#end>$space</option>
#end
#macro(spaceselect $selectedSpace $spaces)
<select name="space" title="$msg.get('xe.search.bar.spaces.title')">
<option value="" #if($selectedSpace ==
'')selected="selected"#end>$msg.get('xe.search.bar.spaces.all')</option>
#foreach($space in $spaces)
#if (!$blacklistedSpaces.contains($space))
#spaceoption($space $selectedSpace)
#end
#end
</select>
#end
##
##
#set($text = "$!request.getParameter('text')")
#set($utext = $util.encodeURI($text))
##
{{html}}
<form action="" id="searchBar">
<div class="centered">
<input type="text" name="text" class="searchQuery #if($text == '')
defaultText#end" #if($text == '')
value="$msg.get('xe.search.bar.query.tip')" #else
value="$xwiki.getXMLEncoded(${text})" #end
title="$msg.get('xe.search.bar.query.title')"/>
#spaceselect($selectedSpace $spaces)
<input type="submit" class="searchButton"
value="$msg.get('xe.search.bar.submit')"
title="$msg.get('xe.search.bar.submit.title')"/>
</div>
</form>
{{/html}}
##
#set($space = $selectedSpace)
#set($datedlist = $util.arrayList)
#if("$!text" == '')
## No search
#else
#set($text = $text.replaceAll("'", "''").replaceAll("%", "\\%"))
#set($nbitems = 50)
## ----------------------------------------------------------------------
## Exclude Blacklisted spaces ($blacklistedSpaces is set in xwikivars.vm)
## Also exclude WebPreferences.
## ----------------------------------------------------------------------
#set ($webClause = '')
#foreach ($blacklistedSpace in $blacklistedSpaces)
#set ($webClause = "${webClause} doc.space <> '$blacklistedSpace' and")
#end
#if(!$hasAdmin && !$isAdvancedUser)
#set ($webClause = "${webClause} doc.name<>'WebPreferences' and")
#end
## -----------------------------------------------------------
## Display only a given space if $request.space is defined
## -----------------------------------------------------------
#if("$!space" != '')
#set ($webClause = "${webClause} doc.space='$space' and")
#end
#macro(addelement $item $list)
#if($xwiki.hasAccessLevel('view', $context.user,
"${context.database}:${item}"))
#set($itemdoc = $xwiki.getDocument($item))
## All items will be sorted by the date; since the list is obtained
from several queries, we can't order in the HQL.
## Prefix all item names with the date for sorting the combined
results.
#set($sdate = $xwiki.formatDate($itemdoc.date, 'yyyyMMddHHmmss'))
#set($sitem = "${sdate}${item}")
#if(!$list.contains($sitem))
#set($discard = $list.add($sitem))
#end
#end
#end
## -----------------------------------------------------------
## Search in the page names
## -----------------------------------------------------------
#set ($sql = "where $webClause upper(doc.fullName) like upper('%$!text%')
order by doc.date desc")
#foreach ($item in $xwiki.searchDocuments($sql , $nbitems, 0))
#addelement($item $datedlist)
#end
## -----------------------------------------------------------
## Search in page content
## -----------------------------------------------------------
#set ($sql = "where $webClause upper(doc.content) like upper('%$!text%')
order by doc.date desc")
#foreach ($item in $xwiki.searchDocuments($sql , $nbitems, 0))
#addelement($item $datedlist)
#end
## -----------------------------------------------------------
## Search in text fields (simple String properties)
## -----------------------------------------------------------
#set($sql= ", BaseObject as obj, StringProperty as prop where $webClause
obj.name=doc.fullName and prop.id.id = obj.id and upper(prop.value) like
upper('%$!text%')")
#foreach ($item in $xwiki.searchDocuments($sql , $nbitems, 0))
#addelement($item $datedlist)
#end
## -----------------------------------------------------------
## Search in big text fields (textarea properties)
## -----------------------------------------------------------
#set($sql= ", BaseObject as obj, LargeStringProperty as prop where
$webClause obj.name=doc.fullName and prop.id.id = obj.id and
upper(prop.value) like upper('%$!text%')")
#foreach ($item in $xwiki.searchDocuments($sql , $nbitems, 0))
#addelement($item $datedlist)
#end
#end
#set($list = $util.arrayList)
#foreach($item in $util.sort($datedlist))
## datedlist contains items prefixed with the date; strip the date from
the actual item name:
#set($ok = $list.add(0, $item.substring(14)))
#end
#if ("$!utext" != '')
#if($rssmode)
#set ($feed = $xwiki.feed.getDocumentFeed($list, $util.getHashMap()))
#set ($feedURI = $doc.getExternalURL("view"))
#set ($discard = $feed.setLink($feedURI))
#set ($discard = $feed.setUri($feedURI))
#set ($discard = $feed.setAuthor('XWiki'))
#set ($discard = $feed.setTitle($msg.get('xe.search.rss', [$text])))
#set ($discard = $feed.setDescription($msg.get('xe.search.rss',
[$text])))
#set ($discard = $feed.setLanguage($context.language))
#set ($discard =
$feed.setCopyright($xwiki.getXWikiPreference('copyright')))
$xwiki.feed.getFeedOutput($feed, $xwiki.getXWikiPreference('feed_type',
'rss_2.0'))
#else
{{include document="XWiki.Results"/}}
#if($selectedSpace == '')
#set($rssURL = $xwiki.getURL($doc.fullName, 'view',
"xpage=plain&outputSyntax=plain&text=${utext}" ))
#else
#set($rssURL = $xwiki.getURL($doc.fullName, 'view',
"xpage=plain&outputSyntax=plain&space=${selectedSpace}&text=${utext}"))
#end
{{html}}
${rssURL} $xwiki.getSkinFile( $msg.get("xe.search.rss", ["[$text]"])
{{/html}}
#set($luceneSearch = "[[Main.LuceneSearch?text=$!utext]]")
{{info}}$msg.get('xe.search.lucene.try', [$luceneSearch]){{/info}}
#end
#end
{{velocity}}]
at
org.xwiki.rendering.internal.macro.velocity.VelocityMacro.evaluate(VelocityMacro.java:118)
at
org.xwiki.rendering.internal.macro.velocity.VelocityMacro.evaluate(VelocityMacro.java:44)
at
org.xwiki.rendering.macro.script.AbstractScriptMacro.execute(AbstractScriptMacro.java:190)
at
org.xwiki.rendering.macro.script.AbstractScriptMacro.execute(AbstractScriptMacro.java:52)
at
org.xwiki.rendering.internal.transformation.MacroTransformation.transformOnce(MacroTransformation.java:176)
at
org.xwiki.rendering.internal.transformation.MacroTransformation.transform(MacroTransformation.java:120)
at
org.xwiki.rendering.internal.transformation.DefaultTransformationManager.performTransformations(DefaultTransformationManager.java:72)
at
com.xpn.xwiki.doc.XWikiDocument.performSyntaxConversion(XWikiDocument.java:5569)
at
com.xpn.xwiki.doc.XWikiDocument.performSyntaxConversion(XWikiDocument.java:5544)
at
com.xpn.xwiki.doc.XWikiDocument.getRenderedContent(XWikiDocument.java:550)
at
com.xpn.xwiki.doc.XWikiDocument.getRenderedContent(XWikiDocument.java:564)
at com.xpn.xwiki.api.Document.getRenderedContent(Document.java:475)
at sun.reflect.GeneratedMethodAccessor289.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at
org.apache.velocity.util.introspection.UberspectImpl$VelMethodImpl.doInvoke(UberspectImpl.java:389)
at
org.apache.velocity.util.introspection.UberspectImpl$VelMethodImpl.invoke(UberspectImpl.java:378)
at
org.apache.velocity.runtime.parser.node.ASTMethod.execute(ASTMethod.java:270)
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.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.SimpleNode.render(SimpleNode.java:336)
at
org.apache.velocity.runtime.parser.node.ASTIfStatement.render(ASTIfStatement.java:106)
at
org.apache.velocity.runtime.parser.node.SimpleNode.render(SimpleNode.java:336)
at
org.xwiki.velocity.internal.DefaultVelocityEngine.evaluate(DefaultVelocityEngine.java:191)
at
org.xwiki.velocity.internal.DefaultVelocityEngine.evaluate(DefaultVelocityEngine.java:156)
at
com.xpn.xwiki.render.XWikiVelocityRenderer.evaluate(XWikiVelocityRenderer.java:108)
at com.xpn.xwiki.XWiki.parseTemplate(XWiki.java:1694)
at com.xpn.xwiki.XWiki.parseTemplate(XWiki.java:1615)
at com.xpn.xwiki.api.XWiki.parseTemplate(XWiki.java:657)
at sun.reflect.GeneratedMethodAccessor116.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at
org.apache.velocity.util.introspection.UberspectImpl$VelMethodImpl.doInvoke(UberspectImpl.java:389)
at
org.apache.velocity.util.introspection.UberspectImpl$VelMethodImpl.invoke(UberspectImpl.java:378)
at
org.apache.velocity.runtime.parser.node.ASTMethod.execute(ASTMethod.java:270)
at
org.apache.velocity.runtime.parser.node.ASTReference.execute(ASTReference.java:252)
at
org.apache.velocity.runtime.parser.node.ASTReference.render(ASTReference.java:332)
at
org.apache.velocity.runtime.parser.node.ASTBlock.render(ASTBlock.java:72)
at
org.apache.velocity.runtime.directive.VelocimacroProxy.render(VelocimacroProxy.java:212)
at
org.apache.velocity.runtime.directive.RuntimeMacro.render(RuntimeMacro.java:247)
at
org.apache.velocity.runtime.parser.node.ASTDirective.render(ASTDirective.java:175)
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:336)
at
org.apache.velocity.runtime.parser.node.ASTIfStatement.render(ASTIfStatement.java:106)
at
org.apache.velocity.runtime.parser.node.SimpleNode.render(SimpleNode.java:336)
at
org.xwiki.velocity.internal.DefaultVelocityEngine.evaluate(DefaultVelocityEngine.java:191)
at
org.xwiki.velocity.internal.DefaultVelocityEngine.evaluate(DefaultVelocityEngine.java:156)
at
com.xpn.xwiki.render.XWikiVelocityRenderer.evaluate(XWikiVelocityRenderer.java:108)
at com.xpn.xwiki.XWiki.parseTemplate(XWiki.java:1694)
at com.xpn.xwiki.XWiki.parseTemplate(XWiki.java:1615)
at com.xpn.xwiki.web.Utils.parseTemplate(Utils.java:124)
at com.xpn.xwiki.web.XWikiAction.execute(XWikiAction.java:224)
at com.xpn.xwiki.web.XWikiAction.execute(XWikiAction.java:115)
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:707)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:511)
at
org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1166)
at
com.xpn.xwiki.wysiwyg.server.filter.ConversionFilter.doFilter(ConversionFilter.java:155)
at
org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1157)
at com.xpn.xwiki.web.ActionFilter.doFilter(ActionFilter.java:117)
at
org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1157)
at
com.xpn.xwiki.plugin.webdav.XWikiDavFilter.doFilter(XWikiDavFilter.java:68)
at
org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1157)
at
com.xpn.xwiki.web.SavedRequestRestorerFilter.doFilter(SavedRequestRestorerFilter.java:295)
at
org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1157)
at
com.xpn.xwiki.web.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:112)
at
org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1157)
at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:388)
at
org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java:216)
at org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:182)
at org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:765)
at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:418)
at
org.mortbay.jetty.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:230)
at
org.mortbay.jetty.handler.HandlerCollection.handle(HandlerCollection.java:114)
at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:152)
at org.mortbay.jetty.Server.handle(Server.java:326)
at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:536)
at
org.mortbay.jetty.HttpConnection$RequestHandler.headerComplete(HttpConnection.java:915)
at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:539)
at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:212)
at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:405)
at
org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java:409)
at
org.mortbay.thread.QueuedThreadPool$PoolThread.run(QueuedThreadPool.java:582)
Caused by: org.xwiki.velocity.XWikiVelocityException: Failed to evaluate
content with id [velocity macro]
at
org.xwiki.velocity.internal.DefaultVelocityEngine.evaluate(DefaultVelocityEngine.java:200)
at
org.xwiki.velocity.internal.DefaultVelocityEngine.evaluate(DefaultVelocityEngine.java:156)
at
org.xwiki.rendering.internal.macro.velocity.VelocityMacro.evaluate(VelocityMacro.java:110)
... 91 more
Caused by: org.apache.velocity.exception.MethodInvocationException:
Invocation of method 'searchDocuments' in class com.xpn.xwiki.api.XWiki
threw exception com.xpn.xwiki.XWikiException: Error number 3223 in 3:
Exception while searching documents with SQL [select distinct doc.space,
doc.name, doc.date from XWikiDocument as doc where (doc.hidden <> true or
doc.hidden is null) and upper(doc.content) like upper('%search...%') order
by doc.date desc]
Wrapped Exception: could not execute query at velocity macro[line 89, column
27]
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.directive.Foreach.render(Foreach.java:282)
at
org.apache.velocity.runtime.parser.node.ASTDirective.render(ASTDirective.java:175)
at
org.apache.velocity.runtime.parser.node.ASTBlock.render(ASTBlock.java:72)
at
org.apache.velocity.runtime.parser.node.SimpleNode.render(SimpleNode.java:336)
at
org.apache.velocity.runtime.parser.node.ASTIfStatement.render(ASTIfStatement.java:106)
at
org.apache.velocity.runtime.parser.node.SimpleNode.render(SimpleNode.java:336)
at
org.xwiki.velocity.internal.DefaultVelocityEngine.evaluate(DefaultVelocityEngine.java:191)
... 93 more
Caused by: com.xpn.xwiki.XWikiException: Error number 3223 in 3: Exception
while searching documents with SQL [select distinct doc.space, doc.name,
doc.date from XWikiDocument as doc where (doc.hidden <> true or doc.hidden
is null) and upper(doc.content) like upper('%search...%') order by doc.date
desc]
Wrapped Exception: could not execute query
at
com.xpn.xwiki.store.XWikiHibernateStore.searchDocumentsNamesInternal(XWikiHibernateStore.java:2306)
at
com.xpn.xwiki.store.XWikiHibernateStore.searchDocumentsNames(XWikiHibernateStore.java:2270)
at
com.xpn.xwiki.store.XWikiHibernateStore.searchDocumentsNames(XWikiHibernateStore.java:2751)
at
com.xpn.xwiki.store.XWikiCacheStore.searchDocumentsNames(XWikiCacheStore.java:346)
at com.xpn.xwiki.api.XWiki.searchDocuments(XWiki.java:408)
at sun.reflect.GeneratedMethodAccessor272.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at
org.apache.velocity.util.introspection.UberspectImpl$VelMethodImpl.doInvoke(UberspectImpl.java:389)
at
org.apache.velocity.util.introspection.UberspectImpl$VelMethodImpl.invoke(UberspectImpl.java:378)
at
org.apache.velocity.runtime.parser.node.ASTMethod.execute(ASTMethod.java:270)
... 102 more
--
View this message in context: http://n2.nabble.com/Error-in-Xwiki-2-0-when-searching-tp3879029p3879029.ht…
Sent from the XWiki- Users mailing list archive at Nabble.com.
Hi Fabio,
>The semantics of the "query" parameter of the search method is just a
>free text that is matched agains document names or content.
>
>You cannot execute arbitrary HQL queries using the search method, nor
>there exist a method for doing so in the current XMLRPC api.
>
>-Fabio
You were absolutely right. This method only takes "free text" and searches
it through document names & content.
The results varied greatly if I changed the order of the words being passed
into the "query" parameter.
Also, I wasn't able to retrieve the URL from the search results. Only the
title could be accessed. As a result, I had to pass the top 10 results
iteratively to the getPage method to obtain the URL. The objective here was
to display search results from the XWiki into another application. The
application would pass certain query parameters to XWiki & XWiki would then
return document URLs which might be of help in the other application.
I also began fiddling with the REST api a little bit. I see that a lot of
methods in the examples at
http://platform.xwiki.org/xwiki/bin/view/Features/XWikiRESTfulAPI were based
on HttpClient 3.x api & the latest one is 4.0. Also, the JAXB I happen to
use is 2.1 (available in Netbeans as a default plugin). Since, I am new to
this, it will take a lot of time, effort & of course help from friends at
XWiki community to get up to date with the latest api :)
Just a question though - will the REST getMethod call for the
/wikis/{wikiName}/spaces/{spaceName}/search?q={keywords}[[&scope={name,conte
nt,title,objects}...]&number=n] resource result in the same search result as
does the internal wiki default/lucene search. My belief is it will return
the same result since we are fetching the same page.
Thanks for your help & timely response Fabio.
Hello. I'm Eduardo from Barcelona (Spain)
New wiki: "Magia a cascoporro Wiki"
Content/Motivation: To gather secret info (tricks, variations, etc.) between
a group of spanish magicians (illusionists)
And to share another kind of free info
with everybody (about magic also)
My user is : dodonpachi
Server name: magiaacascoporro.myxwiki.org (Yes, there are two "a" in a
row)
Thanks in advance. And see you soon ^_^
Eduardo.
Hi,
some questions:
1) section editing
Edit button is also displayed for unregistered users (when nobody is logged
in and has edit rights).
disabled section editing in xwiki.cfg
Edit button is still there
2) Title handling
tryed to disable it in xwiki.cfg
Get Title and Heading always but was awaiting old behavior.
Also had a problem with a long heading:
Entwicklung der empirischen Sozialforschung in Deutschland seit 1945 -
Aufgaben für die Zukunft
Head it as Title and as heading 1 (also tried heading 2).
Was always displayed twice (title + heading). Is there a length restriction
for the title.
Thanks
hel.
-----
semantic-web.hel.at
hel(a)hel.at
--
View this message in context: http://n2.nabble.com/xwiki-2-0-issues-tp3729506p3729506.html
Sent from the XWiki- Users mailing list archive at Nabble.com.