Hello.
I am having a problem with building a freshly cloned XWiki-Platform.
For ease of reading I have created a StackOverflow question.
There is a bug in XWiki that I am trying to fix, and so far this problem is
stopping me.
http://stackoverflow.com/questions/22945881/buidling-xwiki-platform-maven-d…
Thank you,
Anton
I have a custom form (sheet that tells how to display the object data) I
created and when I go to edit a section, I get an uncaught exception.
I looked at the exception it is an IndexOutOfBoundsException. With custom
forms, do you need to create custom section editors?
The error detailed information:
Error number 0 in 11: Uncaught exception
com.xpn.xwiki.XWikiException: Error number 0 in 11: Uncaught exception
at com.xpn.xwiki.web.XWikiAction.execute(XWikiAction.java:317)
at com.xpn.xwiki.web.XWikiAction.execute(XWikiAction.java:129)
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:621)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:728)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:305)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
at com.xpn.xwiki.web.ActionFilter.doFilter(ActionFilter.java:121)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
at
org.xwiki.wysiwyg.server.filter.ConversionFilter.doFilter(ConversionFilter.java:126)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
at
com.xpn.xwiki.plugin.webdav.XWikiDavFilter.doFilter(XWikiDavFilter.java:66)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
at
org.xwiki.container.servlet.filters.internal.SavedRequestRestorerFilter.doFilter(SavedRequestRestorerFilter.java:208)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
at
org.xwiki.container.servlet.filters.internal.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:111)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:222)
at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:123)
at
org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:502)
at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:171)
at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:99)
at
org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:953)
at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:118)
at
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:408)
at
org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1024)
at
org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:589)
at
org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:310)
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:744)
Caused by: java.lang.IndexOutOfBoundsException: Index: 0, Size: 0
at java.util.ArrayList.rangeCheck(ArrayList.java:635)
at java.util.ArrayList.get(ArrayList.java:411)
at
com.xpn.xwiki.doc.XWikiDocument.getDocumentSection(XWikiDocument.java:7396)
at
com.xpn.xwiki.web.EditAction.updateDocumentTitleAndContentFromRequest(EditAction.java:209)
at com.xpn.xwiki.web.EditAction.prepareEditedDocument(EditAction.java:87)
at com.xpn.xwiki.web.EditAction.render(EditAction.java:50)
at com.xpn.xwiki.web.XWikiAction.execute(XWikiAction.java:294)
... 38 more
--
View this message in context: http://xwiki.475771.n2.nabble.com/Uncaught-exception-when-Editing-Section-t…
Sent from the XWiki- Dev mailing list archive at Nabble.com.
Hi devs,
Marius and Eduard before him have done a great job on SOLR module so
it's now far better than the Lucenen module that we don't want to
continue so I'm proposing to move it in xwiki-contrib (and of course
remove it from XE).
I improved a bit the plugin manager so that a plugin installed as
extension is found (you still have to list it in xwiki.cfg) so it
won't be too difficult to install the last version for someone that
really want to use it and it should continue to work as such for a
long time.
WDYT ?
Here is my +1
--
Thomas Mortagne
Hi,
I downloaded the source code of RealTime Wiki Editor from the following
link:
http://extensions.xwiki.org/xwiki/bin/view/Extension/RealTime+Wiki+Editor
I changed the transformation java files, and want to test.
Does anyone know how to build the project to generate the .jar file and
.xar file?
I tried Maven, but in the .pom file of client folder, there are two
dependencies that cannot be found in Maven repository.
If anyone could help me, thanks a lot.
Best regards,
Lawson
Hi devs,
On http://dev.xwiki.org/xwiki/bin/view/Community/ApplicationDevelopmentBestPra… we list some app dev best practices. I’m proposing to add one more bullet point which is to add a template provider. The goal is to make it as easy as possible for end users to add new items for the concerned app.
For example, the blog app would have a Blog Template to create new blog post directly from the Add menu, the FAQ app would add a FAQ Template to do the same for the FAQ app, etc.
WDYT?
Thanks
-Vincent
I have some groovy code and in it I am grabbing the value from a field and
storing it in an object. When the value has spaces, it is encoded with
" ". Is there a way to remove HTML encoding from a string? I looked
in Util and didn't see anything.
Thanks.
--
View this message in context: http://xwiki.475771.n2.nabble.com/Decode-HTML-tp7589862.html
Sent from the XWiki- Dev mailing list archive at Nabble.com.
I am trying to modify the following code so when the user enters a new
documentName, it will set the title and rename the document. If I uncomment
the saveDocument line, it works. So I know the rest of the code is working.
Can anyone see what I am doing wrong?
{{groovy}}
import org.xwiki.observation.*
import org.xwiki.observation.event.*
import org.xwiki.bridge.event.*
import org.xwiki.context.*
import com.xpn.xwiki.web.*
import com.xpn.xwiki.*
import org.apache.velocity.VelocityContext;
class ProcessDocumentRenamer implements EventListener
{
def xwiki
def context
ProcessDocumentRenamer(xwiki, context)
{
this.xwiki = xwiki
this.context = context
}
String getName()
{
// The unique name of this event listener
return "ProcessDocumentRenamer"
}
List<Event> getEvents()
{
// The list of events this listener listens to
return Arrays.asList(new DocumentCreatedEvent(), new
DocumentUpdatedEvent())
}
// Called by the Observation Manager when an event matches the list of
events returned
// by getEvents()
void onEvent(Event event, Object source, Object data)
{
// Current context
def crtContext =
Utils.getComponent(Execution.class).getContext().getProperty('xwikicontext')
// Defines the type of object that should be looked for
def myObject =
source.getObject("DocumentationTemplates.ProcessClass");
// If the page has an object of the specified class, we get the
value of the relevant property and assign it to our documentName variable
if (myObject != null) {
// Defines the variable that we will later use to update the title
of the document
def documentName = myObject.get("processName").value
// Defines the Complete name we will use later when we rename the
document.
def FullDocumentName = source.getWikiName() + "!" +
source.getSpaceName() + "." + documentName;
// If the name has changed, we need to update and rename the
document.
if (source.getName() != documentName) {
source.setTitle(documentName)
// Force the storage to keep the same version number, so that
this looks like a single save event
source.setMetaDataDirty(false);
source.setContentDirty(false);
// crtContext.getWiki().saveDocument(source,
source.getComment(), source.isMinorEdit(), crtContext);
crtContext.getWiki().renamePage(source, FullDocumentName);
}
}
}
}
// Register against the Observation Manager
def observation = Utils.getComponent(ObservationManager.class)
observation.removeListener("ProcessDocumentRenamer")
def listener = new ProcessDocumentRenamer(xwiki, xcontext)
observation.addListener(listener)
{{/groovy}}
--
View this message in context: http://xwiki.475771.n2.nabble.com/Looking-for-help-with-groovy-tp7589782.ht…
Sent from the XWiki- Dev mailing list archive at Nabble.com.