Hello! I need an HQL query that does the following:
Last modified date should be less than 15 days from today
This is what I've tried:
#set($sql = ", BaseObject as obj, $proptype as prop where
obj.className='${ISDclassname}' and obj.id=prop.id.id and
prop.name='${viewby}' and doc.fullName=obj.name and
doc.fullName!='${ISDclasstemplate}' and ($xwiki.getDate() -
doc.contentUpdateDate) < 15 order by prop.value")
But I'm getting an error on the and ($xwiki.getDate() -
doc.contentUpdateDate) < 15 statement. What should I write instead?
Mary Ellen Coleman
hi all
i just accidently remove my default skin of my www.jug-asia.org, and i
still cannot recover to default skin, anyone can help
and i still cannot change the logo, anyone can help?
i
--
--
Frans Thamura
Meruvian
One Stop Java and Enterprise OSS Provider
Mobile: +62 855 7888 699
Blog & Profile: http://frans.thamura.info
Training JENI, Medallion (Alfresco, Liferay dan Compiere).. buruan...
URL: http://www.meruvian.com
Promo: Beli Zmanda Backup di Meruvian, 10% discount dari pricelist..
Buruan sekarang!!!
Hi,
Guillaume (Lerouge) has done incredible work to transform all hardcoded
strings in XWiki Enterprise to translations strings.
We now have 620 translations strings more !!!!
So we need all the help we can to get these translated before 1.8 final.
I think we can achieve the following languages:
French: 622 translations to do
German: 629 translations to do
Romanian: 1516 translations to do
French and German were complete before we added the 620 more
translations, and Romanian we HAVE to be able to do it with the number
of romanians in the team !
Guillaume will coordinate the French translation. We need a volunteer
from the Romanian team to coordinate the Ro translation.
Let me know if there are volunteers to coordinate the translations
effort in Geman or other languages before the final 1.8 release.
Ludovic
--
Ludovic Dubost
Blog: http://blog.ludovic.org/
XWiki: http://www.xwiki.com
Skype: ldubost GTalk: ldubost
I'm using the xwiki snippet code to delete spaces. I've had success
with a few of them, but I've run into a problem.
When trying to delete on particular space, I get the following error:
Error number 4001 in 4: Error while parsing velocity page
Rocks.deletespaces Wrapped Exception: Failed to evaluate content with
id deletespaces
Error number 4001 in 4: Error while parsing velocity page
Rocks.deletespaces
Wrapped Exception: Failed to evaluate content with id deletespaces
com.xpn.xwiki.XWikiException: Error number 4001 in 4: Error while
parsing velocity page Rocks.deletespaces
Wrapped Exception: Failed to evaluate content with id deletespaces
at
com
.xpn
.xwiki
.render.XWikiVelocityRenderer.evaluate(XWikiVelocityRenderer.java:113)
at
com
.xpn
.xwiki.render.XWikiVelocityRenderer.render(XWikiVelocityRenderer.java:
84)
at
com
.xpn
.xwiki
.render
.DefaultXWikiRenderingEngine
.renderText(DefaultXWikiRenderingEngine.java:272)
at
com
.xpn
.xwiki
.render
.DefaultXWikiRenderingEngine
.renderText(DefaultXWikiRenderingEngine.java:202)
at
com
.xpn
.xwiki
.render
.DefaultXWikiRenderingEngine
.renderText(DefaultXWikiRenderingEngine.java:170)
at
com
.xpn
.xwiki
.render
.DefaultXWikiRenderingEngine
.renderDocument(DefaultXWikiRenderingEngine.java:159)
at
com.xpn.xwiki.doc.XWikiDocument.getRenderedContent(XWikiDocument.java:
438)
at com.xpn.xwiki.api.Document.getRenderedContent(Document.java:371)
at sun.reflect.GeneratedMethodAccessor224.invoke(Unknown Source)
at
sun
.reflect
.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:
25)
at java.lang.reflect.Method.invoke(Method.java:585)
at org.apache.velocity.util.introspection.UberspectImpl
$VelMethodImpl.invoke(UberspectImpl.java:295)
at
org
.apache.velocity.runtime.parser.node.ASTMethod.execute(ASTMethod.java:
245)
at
org
.apache
.velocity.runtime.parser.node.ASTReference.execute(ASTReference.java:
203)
at
org
.apache
.velocity.runtime.parser.node.ASTReference.render(ASTReference.java:294)
at
org
.apache.velocity.runtime.parser.node.SimpleNode.render(SimpleNode.java:
318)
at
org
.xwiki
.velocity.DefaultVelocityEngine.evaluate(DefaultVelocityEngine.java:178)
at
org
.xwiki
.velocity.DefaultVelocityEngine.evaluate(DefaultVelocityEngine.java:143)
at
com
.xpn
.xwiki
.render.XWikiVelocityRenderer.evaluate(XWikiVelocityRenderer.java:107)
at com.xpn.xwiki.XWiki.parseTemplate(XWiki.java:1599)
at com.xpn.xwiki.api.XWiki.parseTemplate(XWiki.java:619)
at sun.reflect.GeneratedMethodAccessor144.invoke(Unknown Source)
at
sun
.reflect
.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:
25)
at java.lang.reflect.Method.invoke(Method.java:585)
at org.apache.velocity.util.introspection.UberspectImpl
$VelMethodImpl.invoke(UberspectImpl.java:295)
at
org
.apache.velocity.runtime.parser.node.ASTMethod.execute(ASTMethod.java:
245)
at
org
.apache
.velocity.runtime.parser.node.ASTReference.execute(ASTReference.java:
203)
at
org
.apache
.velocity.runtime.parser.node.ASTReference.render(ASTReference.java:294)
at
org
.apache.velocity.runtime.parser.node.SimpleNode.render(SimpleNode.java:
318)
at
org
.apache
.velocity
.runtime.directive.VelocimacroProxy.render(VelocimacroProxy.java:194)
at
org
.apache
.velocity.runtime.parser.node.ASTDirective.render(ASTDirective.java:170)
at
org.apache.velocity.runtime.parser.node.ASTBlock.render(ASTBlock.java:
74)
at
org
.apache
.velocity
.runtime.parser.node.ASTIfStatement.render(ASTIfStatement.java:88)
at
org.apache.velocity.runtime.parser.node.ASTBlock.render(ASTBlock.java:
74)
at
org
.apache.velocity.runtime.parser.node.SimpleNode.render(SimpleNode.java:
318)
at
org
.apache
.velocity
.runtime.parser.node.ASTIfStatement.render(ASTIfStatement.java:107)
at
org
.apache.velocity.runtime.parser.node.SimpleNode.render(SimpleNode.java:
318)
at
org
.xwiki
.velocity.DefaultVelocityEngine.evaluate(DefaultVelocityEngine.java:178)
at
org
.xwiki
.velocity.DefaultVelocityEngine.evaluate(DefaultVelocityEngine.java:143)
at
com
.xpn
.xwiki
.render.XWikiVelocityRenderer.evaluate(XWikiVelocityRenderer.java:107)
at com.xpn.xwiki.XWiki.parseTemplate(XWiki.java:1599)
at com.xpn.xwiki.web.Utils.parseTemplate(Utils.java:124)
at com.xpn.xwiki.web.XWikiAction.execute(XWikiAction.java:226)
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: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
.wysiwyg.server.filter.ConversionFilter.doFilter(ConversionFilter.java:
94)
at
org
.apache
.catalina
.core
.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:
235)
at
org
.apache
.catalina
.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at
com
.xpn
.xwiki
.web
.SavedRequestRestorerFilter.doFilter(SavedRequestRestorerFilter.java:
287)
at
org
.apache
.catalina
.core
.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:
235)
at
org
.apache
.catalina
.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at
com
.xpn
.xwiki
.web
.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:
128)
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:
286)
at org.apache.jk.server.JkCoyoteHandler.invoke(JkCoyoteHandler.java:
190)
at org.apache.jk.common.HandlerRequest.invoke(HandlerRequest.java:283)
at org.apache.jk.common.ChannelSocket.invoke(ChannelSocket.java:767)
at
org
.apache.jk.common.ChannelSocket.processConnection(ChannelSocket.java:
697)
at org.apache.jk.common.ChannelSocket
$SocketConnection.runIt(ChannelSocket.java:889)
at org.apache.tomcat.util.threads.ThreadPool
$ControlRunnable.run(ThreadPool.java:690)
at java.lang.Thread.run(Thread.java:595)
Wrapped Exception:
org.apache.velocity.exception.MethodInvocationException: Invocation of
method 'delete' in class com.xpn.xwiki.api.Document threw exception
java.lang.OutOfMemoryError: Java heap space @ Rocks.deletespaces6,71?
at
org
.apache.velocity.runtime.parser.node.ASTMethod.execute(ASTMethod.java:
300) at
org
.apache
.velocity.runtime.parser.node.ASTReference.execute(ASTReference.java:
203) at
org
.apache
.velocity.runtime.parser.node.ASTReference.render(ASTReference.java:
294) at
org.apache.velocity.runtime.parser.node.ASTBlock.render(ASTBlock.java:
74) at
org.apache.velocity.runtime.directive.Foreach.render(Foreach.java:448)
at
org
.apache
.velocity.runtime.parser.node.ASTDirective.render(ASTDirective.java:
170) at
org.apache.velocity.runtime.parser.node.ASTBlock.render(ASTBlock.java:
74) at
org
.apache
.velocity
.runtime.parser.node.ASTIfStatement.render(ASTIfStatement.java:88) at
org.apache.velocity.runtime.parser.node.ASTBlock.render(ASTBlock.java:
74) at
org
.apache
.velocity
.runtime.parser.node.ASTIfStatement.render(ASTIfStatement.java:88) at
org
.apache.velocity.runtime.parser.node.SimpleNode.render(SimpleNode.java:
318) at
org
.xwiki
.velocity.DefaultVelocityEngine.evaluate(DefaultVelocityEngine.java:
178) at
org
.xwiki
.velocity.DefaultVelocityEngine.evaluate(DefaultVelocityEngine.java:
143) at
com
.xpn
.xwiki
.render.XWikiVelocityRenderer.evaluate(XWikiVelocityRenderer.java:107)
at
com
.xpn
.xwiki.render.XWikiVelocityRenderer.render(XWikiVelocityRenderer.java:
84) at
com
.xpn
.xwiki
.render
.DefaultXWikiRenderingEngine
.renderText(DefaultXWikiRenderingEngine.java:272) at
com
.xpn
.xwiki
.render
.DefaultXWikiRenderingEngine
.renderText(DefaultXWikiRenderingEngine.java:202) at
com
.xpn
.xwiki
.render
.DefaultXWikiRenderingEngine
.renderText(DefaultXWikiRenderingEngine.java:170) at
com
.xpn
.xwiki
.render
.DefaultXWikiRenderingEngine
.renderDocument(DefaultXWikiRenderingEngine.java:159) at
com.xpn.xwiki.doc.XWikiDocument.getRenderedContent(XWikiDocument.java:
438) at com.xpn.xwiki.api.Document.getRenderedContent(Document.java:
371) at sun.reflect.GeneratedMethodAccessor224.invoke(Unknown Source)
at
sun
.reflect
.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:
25) at java.lang.reflect.Method.invoke(Method.java:585) at
org.apache.velocity.util.introspection.UberspectImpl
$VelMethodImpl.invoke(UberspectImpl.java:295) at
org
.apache.velocity.runtime.parser.node.ASTMethod.execute(ASTMethod.java:
245) at
org
.apache
.velocity.runtime.parser.node.ASTReference.execute(ASTReference.java:
203) at
org
.apache
.velocity.runtime.parser.node.ASTReference.render(ASTReference.java:
294) at
org
.apache.velocity.runtime.parser.node.SimpleNode.render(SimpleNode.java:
318) at
org
.xwiki
.velocity.DefaultVelocityEngine.evaluate(DefaultVelocityEngine.java:
178) at
org
.xwiki
.velocity.DefaultVelocityEngine.evaluate(DefaultVelocityEngine.java:
143) at
com
.xpn
.xwiki
.render.XWikiVelocityRenderer.evaluate(XWikiVelocityRenderer.java:107)
at com.xpn.xwiki.XWiki.parseTemplate(XWiki.java:1599) at
com.xpn.xwiki.api.XWiki.parseTemplate(XWiki.java:619) at
sun.reflect.GeneratedMethodAccessor144.invoke(Unknown Source) at
sun
.reflect
.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:
25) at java.lang.reflect.Method.invoke(Method.java:585) at
org.apache.velocity.util.introspection.UberspectImpl
$VelMethodImpl.invoke(UberspectImpl.java:295) at
org
.apache.velocity.runtime.parser.node.ASTMethod.execute(ASTMethod.java:
245) at
org
.apache
.velocity.runtime.parser.node.ASTReference.execute(ASTReference.java:
203) at
org
.apache
.velocity.runtime.parser.node.ASTReference.render(ASTReference.java:
294) at
org
.apache.velocity.runtime.parser.node.SimpleNode.render(SimpleNode.java:
318) at
org
.apache
.velocity
.runtime.directive.VelocimacroProxy.render(VelocimacroProxy.java:194)
at
org
.apache
.velocity.runtime.parser.node.ASTDirective.render(ASTDirective.java:
170) at
org.apache.velocity.runtime.parser.node.ASTBlock.render(ASTBlock.java:
74) at
org
.apache
.velocity
.runtime.parser.node.ASTIfStatement.render(ASTIfStatement.java:88) at
org.apache.velocity.runtime.parser.node.ASTBlock.render(ASTBlock.java:
74) at
org
.apache.velocity.runtime.parser.node.SimpleNode.render(SimpleNode.java:
318) at
org
.apache
.velocity
.runtime.parser.node.ASTIfStatement.render(ASTIfStatement.java:107) at
org
.apache.velocity.runtime.parser.node.SimpleNode.render(SimpleNode.java:
318) at
org
.xwiki
.velocity.DefaultVelocityEngine.evaluate(DefaultVelocityEngine.java:
178) at
org
.xwiki
.velocity.DefaultVelocityEngine.evaluate(DefaultVelocityEngine.java:
143) at
com
.xpn
.xwiki
.render.XWikiVelocityRenderer.evaluate(XWikiVelocityRenderer.java:107)
at com.xpn.xwiki.XWiki.parseTemplate(XWiki.java:1599) at com.xpn.xwiki.web.Utils.parseTemplate
(Utils.java:124) at
com.xpn.xwiki.web.XWikiAction.execute(XWikiAction.java:226) 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: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
.wysiwyg.server.filter.ConversionFilter.doFilter(ConversionFilter.java:
94) at
org
.apache
.catalina
.core
.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:
235) at
org
.apache
.catalina
.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at
com
.xpn
.xwiki
.web
.SavedRequestRestorerFilter.doFilter(SavedRequestRestorerFilter.java:
287) at
org
.apache
.catalina
.core
.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:
235) at
org
.apache
.catalina
.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at
com
.xpn
.xwiki
.web
.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:
128) 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:
286) at
org.apache.jk.server.JkCoyoteHandler.invoke(JkCoyoteHandler.java:190)
at org.apache.jk.common.HandlerRequest.invoke(HandlerRequest.java:283)
at org.apache.jk.common.ChannelSocket.invoke(ChannelSocket.java:767)
at
org
.apache.jk.common.ChannelSocket.processConnection(ChannelSocket.java:
697) at org.apache.jk.common.ChannelSocket
$SocketConnection.runIt(ChannelSocket.java:889) at
org.apache.tomcat.util.threads.ThreadPool
$ControlRunnable.run(ThreadPool.java:690) at
java.lang.Thread.run(Thread.java:595)
Caused by: java.lang.OutOfMemoryError: Java heap space
Any ideas?
Sam