Hi All,
I am very new to XWiki and also to rest api. I have gone through the link
given by xwiki for rest api
http://platform.xwiki.org/xwiki/bin/view/Features/XWikiRESTfulAPI.
But i dont getting clear idea, how can i create a page under space with
some contents.. and i am not getting any good samples for xwiki rest api.
Normally through httpclient we can send the url with contents like
eg :String url = "http://localhost:8080/jforum/jforum.page?"
+ "module=adminCategories" + "&action=insertSave"
+ "&category_name=" + categoryName + "&moderate=0"
+ "&groups=1" + "&groups=2" + "&groups=3" + "&groups=4";
using POST method in httpclient and the data get stored in the respective
place.
Kindly anyone give me idea how rest will get differentiate in xwiki
manner..
Can anyone give me a code snippet for this requirement so that i can
improve my progress in my project..
Any help greatly appreciated.
Thanks in advance.
Regards,
Nithya.
--
View this message in context: http://n2.nabble.com/How-to-add-a-page-with-contents-in-xwiki-through-Rest-…
Sent from the XWiki- Users mailing list archive at Nabble.com.
Greetings
On my wiki using swedish characters for xwiki page titles give ugly but
working entries in all panels, e.g. "Backlinks" "Recent modifications" and "My
recent modifications"
An example is having:
"Startsidor för våra intresseområden"
...instead of the correct:
"Startsidor för våra intresseområden"
Another example is putting thiss wiki code on top of a page:
= header that <look ugly> here =
The script responsible for for the texts in the panels is as follow:
<span class="panelitem">
<a href="$rdoc.getURL('view')">
$xwiki.getXMLEncoded($rdoc.displayTitle)
</a></span>
I've noticed that changing the third line into only $rdoc.displayTitle will
produce a nice looking entry, and $rdoc is set via
#set($rdoc = $xwiki.getDocument($docname).getTranslatedDocument())
Now, can anyone see a purpose of using getXMLEncoded() for this? As far as I
have seen, it only breaks things.
-Joel
- - - - - - - - - - - - - - - - - - - - - - - - - - - -
(Grad. student) Joel Forsberg
KTH Kemisk Teknologi
Teknikringen 41B
100 44 Stockholm
Work +46 8 7908252
e-mail: joelfo(a)kth.se
Hi,
I was wondering what is the best way to give wiki users the possibility to
create xwiki pages from a template. I was thinking of something like the
"CREATE PAGE" feature on xwiki but with an additional field called template
page. So when the page is created it has the same content as the template
page. Is there a plugin or application that already does that?
Regards,
Abel
Hi All
I am having a problem uploading a xar file. I get "Java Heap Space, Out
of memory exception" (full message below).
I've downloaded the latest version of XWiki for windows xp (beginner's
version with HSQLDB & Jetty).
In my start_xwiki.bat I have set "set JAVA_OPTS=-Xmx1600m -Xms512m".
1.6gb is the maximum as xwiki would not start if I go over this.
I don't think I have CATALINA.bat any ware so I din not find where to
set CATALINA_OPTS.
I have changed file upload size to 133MB by going to
http://localhost:8080/xwiki/bin/edit/XWiki/XWikiPreferences?editor=objec
t and changing Maximum Upload Size:.
The .xar file is 90MB downloaded as backup from
http://patternlanguagenetwork.myxwiki.org/xwiki/bin/view/Main/WebHome.
I do not know what version this runs on since it is on one of the xwiki
farm things :-).
I have Win XP with 3.5gb memory available.
Has anyone had this error recently?
Regards
Ajdin Brandic
Here is the full error message:
A problem occured while trying to service your request. Please contact
the support if this happens again.
Detailed information:
Error number 11014 in 11: Java Heap Space, Out of memory
exception
Wrapped Exception: null
com.xpn.xwiki.XWikiException: Error number 11014 in 11: Java Heap Space,
Out of memory exception
Wrapped Exception: null
at
com.xpn.xwiki.plugin.fileupload.FileUploadPlugin.getFileItemData(FileUpl
oadPlugin.java:297)
at com.xpn.xwiki.web.UploadAction.action(UploadAction.java:78)
at com.xpn.xwiki.web.XWikiAction.execute(XWikiAction.java:215)
at com.xpn.xwiki.web.XWikiAction.execute(XWikiAction.java:115)
at
org.apache.struts.action.RequestProcessor.processActionPerform(RequestPr
ocessor.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(Web
ApplicationHandler.java:830)
at
com.xpn.xwiki.wysiwyg.server.filter.ConversionFilter.doFilter(Conversion
Filter.java:94)
at
org.mortbay.jetty.servlet.WebApplicationHandler$CachedChain.doFilter(Web
ApplicationHandler.java:821)
at
com.xpn.xwiki.web.SavedRequestRestorerFilter.doFilter(SavedRequestRestor
erFilter.java:287)
at
org.mortbay.jetty.servlet.WebApplicationHandler$CachedChain.doFilter(Web
ApplicationHandler.java:821)
at
com.xpn.xwiki.web.SetCharacterEncodingFilter.doFilter(SetCharacterEncodi
ngFilter.java:112)
at
org.mortbay.jetty.servlet.WebApplicationHandler$CachedChain.doFilter(Web
ApplicationHandler.java:821)
at
org.mortbay.jetty.servlet.WebApplicationHandler.dispatch(WebApplicationH
andler.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(WebApplicationCon
text.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.OutOfMemoryError
at java.io.FileInputStream.readBytes(Native Method)
at java.io.FileInputStream.read(Unknown Source)
at
com.xpn.xwiki.plugin.fileupload.FileUploadPlugin.getFileItemData(FileUpl
oadPlugin.java:293)
at com.xpn.xwiki.web.UploadAction.action(UploadAction.java:78)
at com.xpn.xwiki.web.XWikiAction.execute(XWikiAction.java:215)
at com.xpn.xwiki.web.XWikiAction.execute(XWikiAction.java:115)
at
org.apache.struts.action.RequestProcessor.processActionPerform(RequestPr
ocessor.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(Web
ApplicationHandler.java:830)
at
com.xpn.xwiki.wysiwyg.server.filter.ConversionFilter.doFilter(Conversion
Filter.java:94)
at
org.mortbay.jetty.servlet.WebApplicationHandler$CachedChain.doFilter(Web
ApplicationHandler.java:821)
at
com.xpn.xwiki.web.SavedRequestRestorerFilter.doFilter(SavedRequestRestor
erFilter.java:287)
at
org.mortbay.jetty.servlet.WebApplicationHandler$CachedChain.doFilter(Web
ApplicationHandler.java:821)
at
com.xpn.xwiki.web.SetCharacterEncodingFilter.doFilter(SetCharacterEncodi
ngFilter.java:112)
at
org.mortbay.jetty.servlet.WebApplicationHandler$CachedChain.doFilter(Web
ApplicationHandler.java:821)
at
org.mortbay.jetty.servlet.WebApplicationHandler.dispatch(WebApplicationH
andler.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(WebApplicationCon
text.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)
--------------------------------------------------------
NOTICE
This message and any files transmitted with it is intended for the addressee only and may contain information that is confidential or privileged. Unauthorised use is strictly prohibited. If you are not the addressee, you should not read, copy, disclose or otherwise use this message, except for the purpose of delivery to the addressee.
Any views or opinions expressed within this e-mail are those of the author and do not necessarily represent those of Coventry University.
A small variation for Version 3
http://incubator.myxwiki.org/xwiki/bin/view/Improvements/Rights3AProposal
Changes:
- improved the display of inheritance of rights within a role
description;
- emphasize the display of "Inherited"|"Allow"|"Deny" by using color and
icon representation.
For Rights version 4 I'll remove the concept of Role.
Thanks,
Caty
On Thu, May 20, 2010 at 15:30, Ecaterina Valica <valicac(a)gmail.com> wrote:
>
>
> On Wed, May 19, 2010 at 21:04, Denis Gervalle <dgl(a)softec.lu> wrote:
>
>> On Wed, May 19, 2010 at 16:33, Ecaterina Valica <valicac(a)gmail.com>
>> wrote:
>>
>> > Hi Denis,
>> >
>> > On Wed, May 19, 2010 at 16:52, Denis Gervalle <dgl(a)softec.lu> wrote:
>> >
>> > > On Wed, May 19, 2010 at 12:39, Ecaterina Valica <valicac(a)gmail.com>
>> > wrote:
>> > >
>> > > > On Tue, May 18, 2010 at 18:29, Denis Gervalle <dgl(a)softec.lu>
>> wrote:
>> > > >
>> > > > > On Tue, May 18, 2010 at 17:08, Guillaume Lerouge <
>> > guillaume(a)xwiki.com
>> > > > > >wrote:
>> > > > >
>> > > > > > Hi,
>> > > > > >
>> > > > > > On Tue, May 18, 2010 at 11:03, Ecaterina Valica <
>> valicac(a)gmail.com
>> > >
>> > > > > wrote:
>> > > > > >
>> > > > > > > Hi,
>> > > > > > >
>> > > > > > > I've reviewed some of your feedback and added them to Rights
>> > > > Management
>> > > > > > UI
>> > > > > > > Proposal *VERSION 3*:
>> > > > > > >
>> > > > > > > *Partial Prototype*
>> > > > > > >
>> > > > > > > - Wiki Level:
>> > > > > > >
>> > > >
>> http://incubator.myxwiki.org/xwiki/bin/view/Improvements/Rights3Wiki
>> > > > > > > - Space Level:
>> > > > > > >
>> > > > >
>> > http://incubator.myxwiki.org/xwiki/bin/view/Improvements/Rights3Space
>> > > > > > > - Page Level:
>> > > > > > >
>> > > >
>> http://incubator.myxwiki.org/xwiki/bin/view/Improvements/Rights3Page
>> > > > > > >
>> > > > > > > *Desired Interaction*
>> > > > > > >
>> > > > > > > -
>> > > > > > >
>> > > > > >
>> > > >
>> >
>> http://incubator.myxwiki.org/xwiki/bin/view/Improvements/Rights3Proposal
>> > > > > > >
>> > > > > > > Thanks,
>> > > > > > > Caty
>> > > > > > >
>> > > > > >
>> > > > > > I like the separation between rights definition and rights
>> > > affectation.
>> > > > > > Only
>> > > > > >
>> > > > >
>> > > > > Nice indeed, but I do not understand how it could fits with
>> current
>> > > > > implementation.
>> > > > >
>> > > > >
>> > > > > > downside -> inherited rights are displayed less clearly than
>> what
>> > > they
>> > > > > were
>> > > > > > in version 2.
>> > > > > >
>> > > > >
>> > > > > and I do not see any inherited information anymore.
>> > > > >
>> > > >
>> > > > For example, in Space Level
>> > > > http://localhost:8084/xwiki/bin/view/Improvements/Rights3Space
>> > > > the text in yellow represents the inherited users and inherited
>> roles
>> > > from
>> > > > upper level.
>> > > >
>> > > > The text in black (evalica with Reviewer and the Reviewer
>> definition)
>> > is
>> > > > specified only for this level.
>> > > >
>> > > > After the save the added "Reviewer" right is gonna look like this:
>> > > >
>> > > >
>> > >
>> >
>> http://localhost:8084/xwiki/bin/download/Improvements/Rights3Proposal/addU6…
>> > >
>> > >
>> > > Thanks for these precision, I have better understand your idea.
>> > (Personally
>> > > I have some difficulties with colors (partially color blind), so
>> > > information
>> > > based on colors is not always easy for me.)
>> > >
>> >
>> > So you're a great test candidate :). I also received a mail from Roman
>> (he
>> > wanted icons to represent rights), so what I can do for you is to try a
>> > version with color + little icon to represent
>> "Inherited"|"Allow"|"Deny". I
>> > will think about it.
>> >
>>
>> I think that could be nice to have more visual than color information
>> for inheritance. The way it was in proposal 2 was fine, since this was
>> more
>> intensity than color.
>> And I will be pleased to be your candidate. Be careful that using icons
>> for
>> representing specific rights could add complexity when (later) components
>> add new rights dynamically.
>>
>>
>> >
>> >
>> > >
>> > >
>> > > > >
>> > > > > So, proposal 3 seems less interesting than proposal 2. I do not
>> see
>> > > what
>> > > > it
>> > > > > solves based on previous comments either.
>> > > > > Caty, could you explain further your goals with this proposal ?
>> > > > >
>> > > >
>> > > > I tried in proposal 3 to make it more easy to use. People told me
>> that
>> > > they
>> > > > didn't understood the "Containing Spaces/Pages" so I've removed it.
>> > > > This proposal gives the users the possibility to create Roles that
>> can
>> > > have
>> > > > semantically value to them and thus making the rights more easy to
>> use.
>> > > >
>> > > > This proposal accommodates the case: "Not sure it's scalable. In the
>> > > future
>> > > > applications/components will be able to register new rights".
>> > > > Having the rights displayed vertically and only on Add, makes the UI
>> > more
>> > > > scalable, and in the code we could add as many rights as we would
>> want.
>> > > > Also
>> > > > the spaces is now more economical having just "Allow"/"Deny"
>> columns.
>> > > >
>> > >
>> > > I completely agree that proposal 3 is clearer. The problem is that
>> > > your samples and the structure of this proposal are really far from
>> > current
>> > > implementation.
>> > > Proposal 2 were fitting better but the samples where also not
>> realistic
>> > and
>> > > remarks from Thomas about global wiki users should also be integrated.
>> > >
>> >
>> > About Thomas feedback, don't you like
>> >
>> >
>> http://incubator.myxwiki.org/xwiki/bin/view/Improvements/Rights3Proposal#HN…
>> > ?
>> >
>> >
>> > >
>> > > So, I am puzzle by your goals here. Aren't we going too fast ?
>> > > Since there is very poor documentation about the way XWiki rights
>> works
>> > (I
>> > > would be happy to improve that, but it will require some time), I have
>> > the
>> > > impression that there is a important misunderstanding of how
>> inheritance
>> > is
>> > > effectively applied. So the design of a proper UI is not easy. I have
>> > also
>> > > read the draft of Sergiu that aims to improve the documentation, but
>> > either
>> > > I have not understand it or it does not describe current behavior.
>> > >
>> > > So the question is for me, are we designing this UI to think about
>> future
>> > > possibilities or to replace the current UI ?
>> > >
>> >
>> >
>> > My purpose is "to make rights easy to use at last". IMO this means do
>> > whatever it takes to make them "easy to use" :) I try to base my
>> proposal
>> > on
>> > existing code, but I never disregard new functionalities that I can add
>> if
>> > this means the UI and experience is gonna be improved.
>> >
>> > The only thing Rights version 3 is adding is the "Role" part, which is
>> some
>> > kind of groups for rights. If the solution given is gonna be convincing
>> > enough to be use in the rights part (not yet .... but maybe some version
>> of
>> > it) I'm sure there will be someone that is gonna want to implement it.
>> > Until
>> > then I will continue to prototype and find out how we can add all that
>> > functionality in one place.
>> >
>>
>> Well, this precisely the grouping of right that is a big change.
>> Currently,
>> right are inherit individually, not as a group.
>> Moreover, the inheritance is a little bit particular, since allowing a
>> given
>> right at lower level, will deny that same right for anybody else even if
>> this right is allowed at a higher level.
>> Said another way, once an allowance for a given right has been found and
>> you
>> are not part of it, you are denied.
>> Of course, there is an exception to this rules regarding global admin
>> rights, these ones are evaluated before and gets priority.
>>
>> I would agree if you find this to be not the correct way of evaluating
>> right, but this is the way it works since the beginning. There is also an
>> option to evaluate rights based on a hierarchy of spaces, but this one is
>> usually disabled. It will probably be revived when such hierarchy of space
>> are bring back using the new reference model.
>>
>> So, I am convinced that current right management is poor, but changing it
>> will require important changes, and time.
>>
>> Hope you get a better idea of my concerns. For detailled information on
>> how
>> rights are processed, you may want to have a look at
>> http://dev.xwiki.org/xwiki/bin/view/Drafts/XWikiRightServiceReversed.
>> This
>> is really bare documentation of the code, but it tells the truths.
>>
>
> Denis, thanks for the extra info
> Caty
>
>
>>
>> Denis
>>
>>
>> >
>> > And yes... I need to focus more on the inheritance again.
>> >
>> > Thanks,
>> > Caty
>> >
>> >
>> > > Denis
>> > >
>> > >
>> > > > Thanks,
>> > > > Caty
>> > > >
>> > > > >
>> > > > > Denis
>> > > > >
>> > > > >
>> > > > > >
>> > > > > > Also, a drop-down might be better than an autosuggest when
>> > selecting
>> > > > > which
>> > > > > > right should be added to a role.
>> > > > > >
>> > > > > > Guillaume
>> > > > > >
>> > > > > >
>> > > > > > > _______________________________________________
>> > > > > > > devs mailing list
>> > > > > > > devs(a)xwiki.org
>> > > > > > > http://lists.xwiki.org/mailman/listinfo/devs
>> > > > > > >
>> > > > > >
>> > > > > >
>> > > > > >
>> > > > > > --
>> > > > > > Guillaume Lerouge
>> > > > > > Product Manager - XWiki SAS
>> > > > > > Skype: wikibc
>> > > > > > Twitter: glerouge
>> > > > > > http://guillaumelerouge.com/
>> > > > > > _______________________________________________
>> > > > > > devs mailing list
>> > > > > > devs(a)xwiki.org
>> > > > > > http://lists.xwiki.org/mailman/listinfo/devs
>> > > > > >
>> > > > >
>> > > > >
>> > > > >
>> > > > > --
>> > > > > Denis Gervalle
>> > > > > SOFTEC sa - CEO
>> > > > > eGuilde sarl - CTO
>> > > > > _______________________________________________
>> > > > > users mailing list
>> > > > > users(a)xwiki.org
>> > > > > http://lists.xwiki.org/mailman/listinfo/users
>> > > > >
>> > > > _______________________________________________
>> > > > users mailing list
>> > > > users(a)xwiki.org
>> > > > http://lists.xwiki.org/mailman/listinfo/users
>> > > >
>> > >
>> > >
>> > >
>> > > --
>> > > Denis Gervalle
>> > > SOFTEC sa - CEO
>> > > eGuilde sarl - CTO
>> > > _______________________________________________
>> > > devs mailing list
>> > > devs(a)xwiki.org
>> > > http://lists.xwiki.org/mailman/listinfo/devs
>> > >
>> > _______________________________________________
>> > devs mailing list
>> > devs(a)xwiki.org
>> > http://lists.xwiki.org/mailman/listinfo/devs
>> >
>>
>>
>>
>> --
>> Denis Gervalle
>> SOFTEC sa - CEO
>> eGuilde sarl - CTO
>> _______________________________________________
>> devs mailing list
>> devs(a)xwiki.org
>> http://lists.xwiki.org/mailman/listinfo/devs
>>
>
>
Hi,
I'm trying to install xwiki following all the steps included in
http://platform.xwiki.org/xwiki/bin/view/AdminGuide/InstallationMySQL.
I'm working with jboss and MySQL.
* First I download xwiki-enterprise-web-1.9.3.war then,
* I installed MySQL 5.1 in this step I created the Data base
- mysql -u root -e "create database xwiki"
- mysql -u root -e "grant all privileges on xwiki.* to
xwiki(a)127.0.0.1 identified by 'xwiki'"
- I included the MySQL JDBC Driver JAR in the WEB-INF/lib
folder
- I changed hibernate.xml with mysql properties
* I installed jboss-4.0.5.GA
- I tried to use a datasource but doesn't work for me, so I am
working without it.
As you see, I followed all the steps described in xwiki site, but I have
many errors and I haven't done nothing different
16:47:20,204 INFO [DefaultLoadEventListener] Error performing load
command
org.hibernate.ObjectNotFoundException: No row with the given identifier
exists: [com.xpn.xwiki.doc.XWikiDocument#104408758]
16:47:20,375 WARN [XWiki] Exception while getting wiki preference
[macros_languages]
java.lang.NullPointerException
16:47:20,469 WARN [XWiki] Exception while getting wiki preference
[macros_velocity]
java.lang.NullPointerException
16:47:20,547 WARN [XWiki] Exception while getting wiki preference
[macros_groovy]
java.lang.NullPointerException
16:47:42,032 WARN [XWiki] Exception while getting wiki preference
[macros_mapping]
java.lang.NullPointerException
16:47:43,313 INFO [DefaultLoadEventListener] Error performing load
command
org.hibernate.ObjectNotFoundException: No row with the given identifier
exists: [com.xpn.xwiki.objects.classes.BaseClass#-629142642]
16:47:56,048 INFO [DefaultLoadEventListener] Error performing load
command
org.hibernate.ObjectNotFoundException: No row with the given identifier
exists: [com.xpn.xwiki.doc.XWikiDocument#-1905796263]
16:47:56,439 WARN [XWiki] Exception while getting wiki preference
[backlinks]
java.lang.NullPointerException
I supposed that all of this errors are happening because I have to
install the *.xar files
And then I got this error and that's all. I can't see nothing else.
16:48:03,158 INFO [STDOUT] Hibernate: select xwikidocum0_.XWD_ID as
XWD1_0_0_, xwikidocum0_.XWD_FULLNAME as XWD2_0_0_, xwikidocum0_.XWD_NAME
as XWD3_0_0_, xwikidocum0_.XWD_TITLE as XWD4_0_0_,
xwikidocum0_.XWD_LANGUAGE as XWD5_0_0_,
xwikidocum0_.XWD_DEFAULT_LANGUAGE as XWD6_0_0_,
xwikidocum0_.XWD_TRANSLATION as XWD7_0_0_, xwikidocum0_.XWD_DATE as
XWD8_0_0_, xwikidocum0_.XWD_CONTENT_UPDATE_DATE as XWD9_0_0_,
xwikidocum0_.XWD_CREATION_DATE as XWD10_0_0_, xwikidocum0_.XWD_AUTHOR as
XWD11_0_0_, xwik
idocum0_.XWD_CONTENT_AUTHOR as XWD12_0_0_, xwikidocum0_.XWD_CREATOR as
XWD13_0_0_, xwikidocum0_.XWD_WEB as XWD14_0_0_, xwikidocum0_.XWD_CONTENT
as XWD15_0_0_, xwikidocum0_.XWD_VERSION as XWD16_0_0_,
xwikidocum0_.XWD_CUSTOM_CLASS as XWD17_0_0_, xwikidocum0_.XWD_PARENT as
XWD18_0_0_, xwikidocum0_.XWD_CLASS_XML as XWD19_0_0_,
xwikidocum0_.XWD_ELEMENTS as XWD20_0_0_,
xwikidocum0_.XWD_DEFAULT_TEMPLATE as XWD21_0_0_,
xwikidocum0_.XWD_VALIDATION_SCRIPT as XWD22_0_0_,
xwikidocum0_.XWD_COMMENT as XWD23_0
_0_, xwikidocum0_.XWD_MINOREDIT as XWD24_0_0_,
xwikidocum0_.XWD_SYNTAX_ID as XWD25_0_0_, xwikidocum0_.XWD_HIDDEN as
XWD26_0_0_ from xwikidoc xwikidocum0_ where xwikidocum0_.XWD_ID=?
16:48:03,173 ERROR [[action]] Servlet.service() for servlet action threw
exception
java.lang.NoSuchMethodError:
org.apache.commons.lang.StringUtils.join(Ljava/util/Collection;Ljava/lan
g/String;)Ljava/lang/Stri
at
com.xpn.xwiki.plugin.watchlist.WatchListPlugin.globalSearchDocuments(Wat
chListPlugin.java:596)
at
com.xpn.xwiki.plugin.watchlist.WatchListPlugin.sanitizeWatchlists(WatchL
istPlugin.java:629)
at
com.xpn.xwiki.plugin.watchlist.WatchListPlugin.init(WatchListPlugin.java
:122)
at
com.xpn.xwiki.plugin.XWikiPluginManager.initPlugin(XWikiPluginManager.ja
va:155)
at
com.xpn.xwiki.plugin.XWikiPluginManager.addPlugin(XWikiPluginManager.jav
a:92)
at
com.xpn.xwiki.plugin.XWikiPluginManager.addPlugins(XWikiPluginManager.ja
va:120)
at com.xpn.xwiki.XWiki.preparePlugins(XWiki.java:1022)
at com.xpn.xwiki.XWiki.initXWiki(XWiki.java:742)
at com.xpn.xwiki.XWiki.<init>(XWiki.java:670)
at com.xpn.xwiki.XWiki.getMainXWiki(XWiki.java:317)
at com.xpn.xwiki.XWiki.getXWiki(XWiki.java:388)
at com.xpn.xwiki.web.XWikiAction.execute(XWikiAction.java:135)
at com.xpn.xwiki.web.XWikiAction.execute(XWikiAction.java:115)
at
org.apache.struts.action.RequestProcessor.processActionPerform(RequestPr
ocessor.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:697)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Applica
tionFilterChain.java:252)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilt
erChain.java:173)
at
com.xpn.xwiki.wysiwyg.server.filter.ConversionFilter.doFilter(Conversion
Filter.java:155)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Applica
tionFilterChain.java:202)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilt
erChain.java:173)
at
com.xpn.xwiki.web.ActionFilter.doFilter(ActionFilter.java:117)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Applica
tionFilterChain.java:202)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilt
erChain.java:173)
at
com.xpn.xwiki.plugin.webdav.XWikiDavFilter.doFilter(XWikiDavFilter.java:
68)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Applica
tionFilterChain.java:202)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilt
erChain.java:173)
at
com.xpn.xwiki.web.SavedRequestRestorerFilter.doFilter(SavedRequestRestor
erFilter.java:295)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Applica
tionFilterChain.java:202)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilt
erChain.java:173)
at
com.xpn.xwiki.web.SetCharacterEncodingFilter.doFilter(SetCharacterEncodi
ngFilter.java:112)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Applica
tionFilterChain.java:202)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilt
erChain.java:173)
at
org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilte
r.java:96)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Applica
tionFilterChain.java:202)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilt
erChain.java:173)
at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValv
e.java:213)
at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValv
e.java:178)
at
org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAs
sociationValve.java:175)
at
org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.j
ava:74)
at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java
:126)
at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java
:105)
at
org.jboss.web.tomcat.tc5.jca.CachedConnectionValve.invoke(CachedConnecti
onValve.java:156)
at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.
java:107)
at
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:1
48)
at
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:86
9)
at
org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.proc
essConnection(Http11BaseProtocol.java:664)
at
org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint
.java:527)
at
org.apache.tomcat.util.net.MasterSlaveWorkerThread.run(MasterSlaveWorker
Thread.java:112)
at java.lang.Thread.run(Thread.java:619)
16:48:13,001 INFO [IndexUpdater] deleting 8 docs from lucene index
16:48:13,189 INFO [IndexUpdater] deleted 8 docs from lucene index
16:48:13,220 INFO [IndexUpdater] indexing 8 docs to lucene index
16:48:13,236 INFO [STDOUT] Hibernate: select xwikidocum0_.XWD_ID as
XWD1_0_0_, xwikidocum0_.XWD_FULLNAME as XWD2_0_0_, xwikid
idocum0_.XWD_CONTENT_AUTHOR as XWD12_0_0_, xwikidocum0_.XWD_CREATOR as
XWD13_0_0_, xwikidocum0_.XWD_WEB as XWD14_0_0_, xwikido
_0_, xwikidocum0_.XWD_MINOREDIT as XWD24_0_0_,
xwikidocum0_.XWD_SYNTAX_ID as XWD25_0_0_, xwikidocum0_.XWD_HIDDEN as
XWD26_0_0_
16:48:13,251 INFO [DefaultLoadEventListener] Error performing load
command
org.hibernate.ObjectNotFoundException: No row with the given identifier
exists: [com.xpn.xwiki.doc.XWikiDocument#723512152]
at
org.hibernate.impl.SessionFactoryImpl$1.handleEntityNotFound(SessionFact
oryImpl.java:375)
at
org.hibernate.event.def.DefaultLoadEventListener.load(DefaultLoadEventLi
stener.java:143)
at
org.hibernate.event.def.DefaultLoadEventListener.proxyOrLoad(DefaultLoad
EventListener.java:193)
at
org.hibernate.event.def.DefaultLoadEventListener.onLoad(DefaultLoadEvent
Listener.java:101)
at org.hibernate.impl.SessionImpl.fireLoad(SessionImpl.java:878)
at org.hibernate.impl.SessionImpl.load(SessionImpl.java:784)
at
com.xpn.xwiki.store.XWikiHibernateStore.loadXWikiDoc(XWikiHibernateStore
.java:641)
at
com.xpn.xwiki.store.XWikiCacheStore.loadXWikiDoc(XWikiCacheStore.java:20
9)
at
com.xpn.xwiki.doc.XWikiDocument.getTranslatedDocument(XWikiDocument.java
:3676)
at
com.xpn.xwiki.plugin.lucene.IndexUpdater.runMainLoop(IndexUpdater.java:2
21)
at
com.xpn.xwiki.plugin.lucene.IndexUpdater.run(IndexUpdater.java:117)
at java.lang.Thread.run(Thread.java:619)
........
I hope that someone can help me!
Thanks in advance!
Carolina Ramirez P
Hello,
As I didn't find a solution about my native renderer problem issue, so I
tried the google charts API one. Unfortunatly, when I write more than a
certain number (not too many) of characters in formula tags, I have an
error. Instead of using the google charts renderer, the snuggletex one is
used...
For instance when I wrote this simple code :
{{formula}}
111111111111111111111111111111\\
111111111111111111111111111111\\
111111111111111111111111111111\\
111111111111111111111111111111\\
111111111111111111111111111111\\
111111111111111111111111111111\\
111111111111111111111111111111\\
111111111111111111111111111111
{{/formula}}
All break lines (\\) weren't rendered. But ! If I write only the four first
lines, all is fine.
Is this a know issue ? What can I do ?
Last question : : When my wiki is local, can it make external HTTP ?
Because, When I want to use the mathtran renderer I have this error :
2010-04-23 15:49:26,238 [
http://localhost:8080/xwiki/bin/tex/Public/FormulaMacro
Again/440bdc8f8001d9d387dbb95e1f1328998c35678a03e22bbf8eb747dc9de8a34d]
ERROR web.XWikiAction - Connection aborted
See Google Charts renderer error lines :
2010-04-23 12:04:37,463 [
http://localhost:8080/xwiki/bin/view/Public/FormulaMacroAgain] ERROR
formula.FormulaMacro
- Invalid renderer: [googlecharts]. Falling back to the safe
renderer.org.xwiki.component.manager.ComponentLookupException:
Failed to render formula using [googlecharts] renderer
at
org.xwiki.rendering.internal.macro.formula.FormulaMacro.render(FormulaMacro.java:162)
at
org.xwiki.rendering.internal.macro.formula.FormulaMacro.execute(FormulaMacro.java:112)
at
org.xwiki.rendering.internal.macro.formula.FormulaMacro.execute(FormulaMacro.java:57)
at
org.xwiki.rendering.internal.transformation.MacroTransformation.transformOnce(MacroTransformation.java:175)
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:5696)
at
com.xpn.xwiki.doc.XWikiDocument.performSyntaxConversion(XWikiDocument.java:5671)
at
com.xpn.xwiki.doc.XWikiDocument.getRenderedContent(XWikiDocument.java:626)
at
com.xpn.xwiki.doc.XWikiDocument.getRenderedContent(XWikiDocument.java:595)
at com.xpn.xwiki.api.Document.getRenderedContent(Document.java:497)
at sun.reflect.GeneratedMethodAccessor236.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.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:116)
at com.xpn.xwiki.XWiki.parseTemplate(XWiki.java:1710)
at com.xpn.xwiki.XWiki.parseTemplate(XWiki.java:1631)
at com.xpn.xwiki.web.Utils.parseTemplate(Utils.java:123)
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.doPost(ActionServlet.java:432)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:727)
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:152)
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.servlet.Dispatcher.forward(Dispatcher.java:327)
at org.mortbay.jetty.servlet.Dispatcher.forward(Dispatcher.java:126)
at com.xpn.xwiki.web.ActionFilter.doFilter(ActionFilter.java:109)
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.content(HttpConnection.java:930)
at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:747)
at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:218)
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)
--
Marine JULIAN
Hello,
I use a 2.1.2 XWiki XE and the stats are activated. Is it possible to reset
the counters of the Stats space ?
Don't read anything on this topic in the manual.
Thank you for your help.
Maxime
Hi All,
Currently i am working in xwiki and facing some issues which i am not able
to solve. I want to create a tree structure for the space and subspace and
the pages inside it.
Eg : I am creating
Space Name : HelloMajor, Parent : nothing (by default it takes WebHome)
Page Name : HelloMajorPage1 : Parent : HelloMajor
Page Name : HelloMajorPage2 : Parent : HelloMajorPage1
If i use document tree its displaying like
HelloMajor
|___ HelloMajorPage1
|____HelloMajorPage2
Another space creation : HelloMinor; Parent : HelloMajor.WebHome
Page Name : HelloMinorPage Parent : HelloMinor
Now i want to display the tree structure like this
HelloMajor
|___ HelloMajorPage1
| |____HelloMajorPage2
|___HelloMinorPage
|____HelloMinorPage
I want to display the subspace under the related space itself. I tried with
child parent snippets but it didnt worked. As i explored i didnt get the
solution to get the parent of the subspace. Normally in db its storing under
XWD_Parent field in xwiki_doc table. I would like to give the subspace name
as parameter so that i can get the parent name which i mean is
"HelloMajor.WebHome".
My requirement is to build a tree structure. I tried with space explorer,mk
tree, document tree and spaceAllDocs. No one fitting my requirement.
*Spacename
* Subspacename
* subspacepages
* SpacePages
In this manner i want to display. IS there any solution.
Kindly help me.
Thanks in advance.
Regards,
Nithya.Vembu.
--
View this message in context: http://xwiki.475771.n2.nabble.com/How-to-list-the-subspace-under-the-space-…
Sent from the XWiki- Users mailing list archive at Nabble.com.
Hi guys,
I found a code snippet on xwiki.org, that does a TreeNav feature, but
actually, this is not what I want. I would like to have the Treeview,
as on /XWiki/Treeview inside a panel. As a matter of fact, it seems
the code for Treeview does only work, when there is nothing else on
that page, so adding just a line of text in the beginning of the
XWiki/Treeview page seems to make the "+"-signs to open the
tree-structure unusable. Probably for the same reason, I did not
manage yet, to get it inside a panel. Do you have some ideas, what I
could do to get what I want?
Thanx,
Sebastian