Hi,
I'm trying to create an instance of a class using the restful api however I keep getting back http error 400 bad request messages.
We are posting a string of propertyname=value pairs seperated by ampersands with a className property at the end set to the type of xwiki class that we would like to create.
1. Is a string of property=value pairs the right way to do this?
2. do I need to prefix "property#" infront of each property name?
3. Are there any logs which might give more insight into why http 400 bad request is being returned? Ive checked the xwiki.log and Jetty/logs/ folder but couldn't find anything detailed.
Thanks in advance
Radek
Evening, or at least here is starting to be late... :)
i am stuck at an issue here. is there a way to copy for instance(from the
ValidationSample.xar...the formulary...) the ValidationSampleCode[0] into
anothe space, as a class to a page in that page.
so if the class has 3 properties...string textarea number, then these to be
copied in a clone class .
ex:
page Val1 has the ValidationSample.ValidationSampleCode[0] attached
i want for the page TestPage(from another space) to have the
TestSpace.TestPageClass[0] attached to it.(this TestSpace.TestPageClass[0]
to be a clone of another class obj).
am i making any sense here for you
--
View this message in context: http://n2.nabble.com/copy-a-Class-into-a-space-tp4061342p4061342.html
Sent from the XWiki- Users mailing list archive at Nabble.com.
Hi is it only my part of the myxwiki that is hungup?
If I push the edit button the page loads and loads but doesn't get
anywhere.
One of the panels is also failing:
Error number 4001 in 4: Error while parsing velocity page
pulven:Main.WebHome Wrapped Exception: Failed to evaluate content with
id Web Home
-Rune
Hello,
I upgraded my wiki (webapp and xar) from 2.0.RC1 to 2.0.3.
While statistics are supposed to work (they were in RC1) as a bug was
solved, it seems in fact in 2.0.3 my statistics tables are not updated
anymore.
I did not change the xwiki.cfg so they should be activated as they used to.
I checked the list of plugins which seems ok.
There is no exception related to statistics in my logs.
Am I missing something ?
Thanks,
Jeremie
Hi,
I have a groovy script in a page, that loads some data and create pages and
objects with it.
Basically for each it gets a new Document, create a new Object in it, use it
to set all fields (no one is null), then create a new Object
"XWiki.TagClass", sets the tags, and then saves the document. This process
is repeated, as each input data will generate 2 documents/objects for 2
different custom classes.
For most documents there is no problem, while for some I get the following
kind of exceptions (always for one of the classes, never for the other) :
Error number 3201 in 3: Exception while saving document
MailArchive.MMKSonLinuxpatch22-01
Wrapped Exception: Row was updated or deleted by another transaction (or
unsaved-value mapping was incorrect):
[com.xpn.xwiki.objects.DateProperty#2009-09-14 15:57:26.0]
The exact same date string is used to save another document/object without
any problem (the Date fields have exactly same format).
It's not always a DateProperty that cause issues, it can also be Strings or
LargeStrings.
I tried to delete my custom class and recreate it, purge all created
documents (with doc.delete()), and also to purge all entries that were left
even after delete(), directly in database (in tables xwikidoc, xwikiobjects,
xwikistrings, xwikilargestrings, xwikidates and xwikirecyclebin), but it
seems the same input data will always have document.save() fail this way.
It seems it's always the second save() that can fail. This second save()
targets a different document, object and class, and it's not the same groovy
variables either. Could it happen that the first save() is not completely
finished and there is some problem with tables updates ? Would I have
something else to do to make sure previous transaction is finished ?
I believe it must be something in the data, but it's only strings,
largestrings and a date, so I don't know how to investigate more...
Thanks for any help,
Jeremie
PS : I'm on XWiki 2.0.3, MySQL 5.1.38, Linux RH Rel 4
I have installed the enterprise xwiki.war completed all intructions for
Tomcat Servlet and MySQL Database configuration. When I try to connect from
my browser the error occurs below. The Wiki is running on a hosted tomcat
webserver.
I've found the general error alot but not with the following line code:
Wrapped Exception: Could not parse mapping document from resource
xwiki.hbm.xml
I thought the error might be related to some mistakes in the
hibernate.cfg.xml
Name of database: 24_xwiki
Password: xwiki123
<property
name="connection.url">jdbc:mysql://localhost/xwiki?useServerPrepStmts=false</property>
<property name="connection.username">24_xwiki</property>
<property name="connection.password">xwiki123</property>
<property
name="connection.driver_class">com.mysql.jdbc.Driver</property>
<property name="dialect">org.hibernate.dialect.MySQLDialect</property>
<property name="connection.provider_class">
I'm a newbie concerning web hosting so thanks for any help as I' ve got
stuck since Saturday :(
javax.servlet.ServletException: com.xpn.xwiki.XWikiException: Error number 3
in 0: Could not initialize main XWiki context
Wrapped Exception: Error number 3001 in 3: Cannot load class
com.xpn.xwiki.store.migration.hibernate.XWikiHibernateMigrationManager from
param xwiki.store.migration.manager.class
Wrapped Exception: Error number 0 in 3: Exception while hibernate execute
Wrapped Exception: Could not parse mapping document from resource
xwiki.hbm.xml
org.apache.struts.action.RequestProcessor.processException(RequestProcessor.java:535)
org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:433)
org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:236)
org.apache.struts.action.ActionServlet.process(ActionServlet.java:1196)
org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:414)
javax.servlet.http.HttpServlet.service(HttpServlet.java:617)
javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
com.xpn.xwiki.wysiwyg.server.filter.ConversionFilter.doFilter(ConversionFilter.java:152)
com.xpn.xwiki.web.ActionFilter.doFilter(ActionFilter.java:117)
com.xpn.xwiki.plugin.webdav.XWikiDavFilter.doFilter(XWikiDavFilter.java:68)
com.xpn.xwiki.web.SavedRequestRestorerFilter.doFilter(SavedRequestRestorerFilter.java:295)
com.xpn.xwiki.web.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:112)
root cause
com.xpn.xwiki.XWikiException: Error number 3 in 0: Could not initialize main
XWiki context
Wrapped Exception: Error number 3001 in 3: Cannot load class
com.xpn.xwiki.store.migration.hibernate.XWikiHibernateMigrationManager from
param xwiki.store.migration.manager.class
Wrapped Exception: Error number 0 in 3: Exception while hibernate execute
Wrapped Exception: Could not parse mapping document from resource
xwiki.hbm.xml
com.xpn.xwiki.XWiki.getMainXWiki(XWiki.java:339)
com.xpn.xwiki.XWiki.getXWiki(XWiki.java:400)
com.xpn.xwiki.web.XWikiAction.execute(XWikiAction.java:135)
com.xpn.xwiki.web.XWikiAction.execute(XWikiAction.java:115)
org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:431)
org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:236)
org.apache.struts.action.ActionServlet.process(ActionServlet.java:1196)
org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:414)
javax.servlet.http.HttpServlet.service(HttpServlet.java:617)
javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
com.xpn.xwiki.wysiwyg.server.filter.ConversionFilter.doFilter(ConversionFilter.java:152)
com.xpn.xwiki.web.ActionFilter.doFilter(ActionFilter.java:117)
com.xpn.xwiki.plugin.webdav.XWikiDavFilter.doFilter(XWikiDavFilter.java:68)
com.xpn.xwiki.web.SavedRequestRestorerFilter.doFilter(SavedRequestRestorerFilter.java:295)
com.xpn.xwiki.web.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:112)
--
View this message in context: http://n2.nabble.com/Could-not-initialize-main-XWiki-context-tp4051328p4051…
Sent from the XWiki- Users mailing list archive at Nabble.com.