Hello.
I created a class and template using the Static List class property. But
when I want to create a new document, the following error is shown
Error number 4001 in 4: Error while parsing velocity page PMT.NewDoc
Wrapped Exception: Invocation of method 'substring' in class
java.lang.String threw exception
java.lang.StringIndexOutOfBoundsException: String index out of range: -1 @
PMT.NewDoc4,26?
I tried to use small lists and other variations but the error seems to
come from an entirely different place... please help asap.
regards,
V. Harikrishnan Nair
|| Lokah Samastah sukhino bhavantu ||
Hi all,
I am getting the following error when I edited my class to add the Level
Class property -
Error number 0 in 11: Uncaught exception
Wrapped Exception: com.xpn.xwiki.objects.meta.LevelsMetaClass cannot be
cast to com.xpn.xwiki.objects.classes.PropertyClass
com.xpn.xwiki.XWikiException: Error number 0 in 11: Uncaught exception
Wrapped Exception: com.xpn.xwiki.objects.meta.LevelsMetaClass cannot be
cast to com.xpn.xwiki.objects.classes.PropertyClass
at com.xpn.xwiki.web.XWikiAction.execute(XWikiAction.java:163)
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.doPost(ActionServlet.java:432)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:616)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:689)
at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:428)
at
org.mortbay.jetty.servlet.WebApplicationHandler$CachedChain.doFilter(WebApplicationHandler.java:830)
at
com.xpn.xwiki.web.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:117)
at
org.mortbay.jetty.servlet.WebApplicationHandler$CachedChain.doFilter(WebApplicationHandler.java:821)
at
org.mortbay.jetty.servlet.WebApplicationHandler.dispatch(WebApplicationHandler.java:471)
at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:568)
at org.mortbay.http.HttpContext.handle(HttpContext.java:1565)
at
org.mortbay.jetty.servlet.WebApplicationContext.handle(WebApplicationContext.java:633)
at org.mortbay.http.HttpContext.handle(HttpContext.java:1517)
at org.mortbay.http.HttpServer.service(HttpServer.java:954)
at org.mortbay.http.HttpConnection.service(HttpConnection.java:816)
at org.mortbay.http.HttpConnection.handleNext(HttpConnection.java:983)
at org.mortbay.http.HttpConnection.handle(HttpConnection.java:833)
at org.mortbay.http.SocketListener.handleConnection(SocketListener.java:244)
at org.mortbay.util.ThreadedServer.handle(ThreadedServer.java:357)
at org.mortbay.util.ThreadPool$PoolThread.run(ThreadPool.java:534)
Wrapped Exception:
java.lang.ClassCastException: com.xpn.xwiki.objects.meta.LevelsMetaClass
cannot be cast to com.xpn.xwiki.objects.classes.PropertyClass
at com.xpn.xwiki.web.PropAddAction.action(PropAddAction.java:55)
at com.xpn.xwiki.web.XWikiAction.execute(XWikiAction.java:147)
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.doPost(ActionServlet.java:432)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:616)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:689)
at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:428)
at
org.mortbay.jetty.servlet.WebApplicationHandler$CachedChain.doFilter(WebApplicationHandler.java:830)
at
com.xpn.xwiki.web.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:117)
at
org.mortbay.jetty.servlet.WebApplicationHandler$CachedChain.doFilter(WebApplicationHandler.java:821)
at
org.mortbay.jetty.servlet.WebApplicationHandler.dispatch(WebApplicationHandler.java:471)
at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:568)
at org.mortbay.http.HttpContext.handle(HttpContext.java:1565)
at
org.mortbay.jetty.servlet.WebApplicationContext.handle(WebApplicationContext.java:633)
at org.mortbay.http.HttpContext.handle(HttpContext.java:1517)
at org.mortbay.http.HttpServer.service(HttpServer.java:954)
at org.mortbay.http.HttpConnection.service(HttpConnection.java:816)
at org.mortbay.http.HttpConnection.handleNext(HttpConnection.java:983)
at org.mortbay.http.HttpConnection.handle(HttpConnection.java:833)
at org.mortbay.http.SocketListener.handleConnection(SocketListener.java:244)
at org.mortbay.util.ThreadedServer.handle(ThreadedServer.java:357)
at org.mortbay.util.ThreadPool$PoolThread.run(ThreadPool.java:534)
Can anyone check this out ?
regards,
V. Harikrishnan Nair
|| Lokah Samastah sukhino bhavantu ||
Hi Everybody,
Can anybody please tell me steps to disable WYSIWYG editor.
Also please let me know how to upgrade xwiki.I have 1.1 milestone 4 and getting problem in its editor.
Please ,Its Urgent....
ANUJ SHARMA.
---------------------------------
Flying to Bangalore or Bhopal? Search for tickets here.
Hi,
In order to properly fix the issues with escaping of single quote
characters, I'd like to propose adding the following methods in
*.api.XWiki:
public List searchDocuments(String wheresql, List whereParams)
throws XWikiException
public List searchDocuments(String wheresql, int nb, int start,
List whereParams) throws XWikiException
The idea is to allow parametrized HQL queries in XWiki documents
hence removing the issues with SQL escaping (For example this will
allow solving http://jira.xwiki.org/jira/browse/XWIKI-1768).
Here's my +1
Thanks
-Vincent
Hi,
Can we change default editor for users from WYSWYG to Wiki.If yes,then how can we do it?
ANUJ SHARMA.
---------------------------------
Unlimited freedom, unlimited storage. Get it now
Hi,
Anybody can tell me how the email field in the registration page can be made mandatory and where does it gets stored?
Thanks,
Anuj
ANUJ SHARMA.
---------------------------------
Now you can chat without downloading messenger. Click here to know how.
2007/9/26, Vincent Massol <vincent(a)massol.net>:
>
> On Sep 26, 2007, at 4:13 PM, Vincent Massol wrote:
>
> >
> > On Sep 26, 2007, at 3:19 PM, Thomas Mortagne wrote:
> >
> >> +1
> >>
> >> (this new api concept would also be great to add to
> >> com.xpn.xwiki.store.XWikiStoreInterface.searchDocuments and not just
> >> searchDocumentsNames)
> >
> > Yes, I know... but I always like to only introduce new APIs that are
> > used at least in one place and since I have had that need yet...
Well I said this because I would like to use it for SuperClass that
search in documents containing class with conditions on class fields
:)
>
> Sorry, I meant: "since I haven't had that need yet..."
>
> -Vincent
> [snip]
>
> _______________________________________________
> devs mailing list
> devs(a)xwiki.org
> http://lists.xwiki.org/mailman/listinfo/devs
>
--
Thomas Mortagne
Hi,
Can anybody please tell me why all the data in the editor gets erased when i switch from WYSIWYG to Wiki editor.Also the data is not displayed in the page when i click save and view n WYSIWYG editor.
ANUJ SHARMA.
---------------------------------
Forgot the famous last words? Access your message archive online. Click here.