Hello, I made a simple example using XWiki XML/RPC API, and I'm facing something bizarre. The example is located at: http://www.xwiki.org/xwiki/bin/view/UserGuide/XMLRPCExample It's a work in progress; is it OK to put it on www.xwiki.org user guide? The idea is to make it a reusable example of XML/RCP API use. The archive contains the source code, an Ant build file to compile and run the example, an Eclipse project. I do the following: 1- I run 'ant login': result is ok 2- I run 'ant create': result is ok, seen from the XML/RPC client side 3- I visit Sandbox.WebHome using firefox: Test page appears in Sandbox space pages, but as a link to a non existing page; clicking on the link brings to editing an empty page 4- I run 'ant get': the page is received ok, with same content as when created (i.e. "This content was created by XMLRPC") 5- I visit Sandbox.WebHome using firefox: same as before. Clearing the cache, quitting firefox does not change anything 6- I run 'ant edit': the page is edited ok 7- I run 'ant get': the content is correct w.r.t. previous editing 8- I visit Sandbox.WebHome with firefox: idem as before (page Sandbox.Test is non existant) 9- I restart Tomcat 10- I visit Sandbox.WebHome with firefox: page is there 11- I visit Sandbox.Test with firefox: content is correct Looks like a cache problem, but where? The source code of the example may seem unnecessarily complicated (use of properties, separation in several classes), but the idea is to move it to Ant task easily. Any idea? François
It's a very good example! I used this example in my local xwiki and works very well. But, if I change the properties and put a xwiki address, for example, panteao.xwiki.com or projetoftn.xwiki.com, the example and my application that uses xml-rpc doesn't work. When I execute the application I get the problem: org.apache.xmlrpc.XmlRpcException: Failed to invoke method login in class com.xpn.xwiki.xmlrpc.ConfluenceRpcHandler: Error number 2 in 0: The wiki noctua does not exist I don't know what to do. Probably the problem is in the server side. What I can do to solve this problem? Fabrício. Em Qui, 2007-04-19 às 15:43 +0200, François Déchelle escreveu:
Hello,
I made a simple example using XWiki XML/RPC API, and I'm facing something bizarre.
The example is located at: http://www.xwiki.org/xwiki/bin/view/UserGuide/XMLRPCExample
It's a work in progress; is it OK to put it on www.xwiki.org user guide? The idea is to make it a reusable example of XML/RCP API use.
The archive contains the source code, an Ant build file to compile and run the example, an Eclipse project.
I do the following: 1- I run 'ant login': result is ok 2- I run 'ant create': result is ok, seen from the XML/RPC client side 3- I visit Sandbox.WebHome using firefox: Test page appears in Sandbox space pages, but as a link to a non existing page; clicking on the link brings to editing an empty page 4- I run 'ant get': the page is received ok, with same content as when created (i.e. "This content was created by XMLRPC") 5- I visit Sandbox.WebHome using firefox: same as before. Clearing the cache, quitting firefox does not change anything 6- I run 'ant edit': the page is edited ok 7- I run 'ant get': the content is correct w.r.t. previous editing 8- I visit Sandbox.WebHome with firefox: idem as before (page Sandbox.Test is non existant) 9- I restart Tomcat 10- I visit Sandbox.WebHome with firefox: page is there 11- I visit Sandbox.Test with firefox: content is correct
Looks like a cache problem, but where?
The source code of the example may seem unnecessarily complicated (use of properties, separation in several classes), but the idea is to move it to Ant task easily.
Any idea?
François
anexo Documento somente texto (message-footer.txt) -- You receive this message as a subscriber of the [email protected] mailing list. To unsubscribe: mailto:[email protected] For general help: mailto:[email protected]?subject=help ObjectWeb mailing lists service home page: http://www.objectweb.org/wws
On Apr 26, 2007, at 3:58 PM, Fabrício J. Barth wrote:
It's a very good example!
I used this example in my local xwiki and works very well. But, if I change the properties and put a xwiki address, for example, panteao.xwiki.com or projetoftn.xwiki.com, the example and my application that uses xml-rpc doesn't work.
The xwiki.com farm is still on XWiki 1.0 Beta 3 so maybe that's the reason? We're planning to move them to 1.0 RC2 real soon now. Can you try with a RC2 remote wiki? Thanks -Vincent
When I execute the application I get the problem:
org.apache.xmlrpc.XmlRpcException: Failed to invoke method login in class com.xpn.xwiki.xmlrpc.ConfluenceRpcHandler: Error number 2 in 0: The wiki noctua does not exist
I don't know what to do. Probably the problem is in the server side.
What I can do to solve this problem?
Fabrício.
Em Qui, 2007-04-19 às 15:43 +0200, François Déchelle escreveu:
Hello,
I made a simple example using XWiki XML/RPC API, and I'm facing something bizarre.
The example is located at: http://www.xwiki.org/xwiki/bin/view/UserGuide/XMLRPCExample
It's a work in progress; is it OK to put it on www.xwiki.org user guide? The idea is to make it a reusable example of XML/RCP API use.
The archive contains the source code, an Ant build file to compile and run the example, an Eclipse project.
I do the following: 1- I run 'ant login': result is ok 2- I run 'ant create': result is ok, seen from the XML/RPC client side 3- I visit Sandbox.WebHome using firefox: Test page appears in Sandbox space pages, but as a link to a non existing page; clicking on the link brings to editing an empty page 4- I run 'ant get': the page is received ok, with same content as when created (i.e. "This content was created by XMLRPC") 5- I visit Sandbox.WebHome using firefox: same as before. Clearing the cache, quitting firefox does not change anything 6- I run 'ant edit': the page is edited ok 7- I run 'ant get': the content is correct w.r.t. previous editing 8- I visit Sandbox.WebHome with firefox: idem as before (page Sandbox.Test is non existant) 9- I restart Tomcat 10- I visit Sandbox.WebHome with firefox: page is there 11- I visit Sandbox.Test with firefox: content is correct
Looks like a cache problem, but where?
The source code of the example may seem unnecessarily complicated (use of properties, separation in several classes), but the idea is to move it to Ant task easily.
Any idea?
François
anexo Documento somente texto (message-footer.txt) -- You receive this message as a subscriber of the xwiki- [email protected] mailing list. To unsubscribe: mailto:[email protected] For general help: mailto:[email protected]?subject=help ObjectWeb mailing lists service home page: http:// www.objectweb.org/wws
-- You receive this message as a subscriber of the xwiki- [email protected] mailing list. To unsubscribe: mailto:[email protected] For general help: mailto:[email protected]?subject=help ObjectWeb mailing lists service home page: http://www.objectweb.org/ wws
Thank you Vincent, Sorry, but I don't know any RC2 remote wiki. Do you have any suggestion? Best regards, Fabrício. Em Qui, 2007-04-26 às 16:18 +0200, Vincent Massol escreveu:
On Apr 26, 2007, at 3:58 PM, Fabrício J. Barth wrote:
It's a very good example!
I used this example in my local xwiki and works very well. But, if I change the properties and put a xwiki address, for example, panteao.xwiki.com or projetoftn.xwiki.com, the example and my application that uses xml-rpc doesn't work.
The xwiki.com farm is still on XWiki 1.0 Beta 3 so maybe that's the reason? We're planning to move them to 1.0 RC2 real soon now. Can you try with a RC2 remote wiki?
Thanks -Vincent
When I execute the application I get the problem:
org.apache.xmlrpc.XmlRpcException: Failed to invoke method login in class com.xpn.xwiki.xmlrpc.ConfluenceRpcHandler: Error number 2 in 0: The wiki noctua does not exist
I don't know what to do. Probably the problem is in the server side.
What I can do to solve this problem?
Fabrício.
Em Qui, 2007-04-19 às 15:43 +0200, François Déchelle escreveu:
Hello,
I made a simple example using XWiki XML/RPC API, and I'm facing something bizarre.
The example is located at: http://www.xwiki.org/xwiki/bin/view/UserGuide/XMLRPCExample
It's a work in progress; is it OK to put it on www.xwiki.org user guide? The idea is to make it a reusable example of XML/RCP API use.
The archive contains the source code, an Ant build file to compile and run the example, an Eclipse project.
I do the following: 1- I run 'ant login': result is ok 2- I run 'ant create': result is ok, seen from the XML/RPC client side 3- I visit Sandbox.WebHome using firefox: Test page appears in Sandbox space pages, but as a link to a non existing page; clicking on the link brings to editing an empty page 4- I run 'ant get': the page is received ok, with same content as when created (i.e. "This content was created by XMLRPC") 5- I visit Sandbox.WebHome using firefox: same as before. Clearing the cache, quitting firefox does not change anything 6- I run 'ant edit': the page is edited ok 7- I run 'ant get': the content is correct w.r.t. previous editing 8- I visit Sandbox.WebHome with firefox: idem as before (page Sandbox.Test is non existant) 9- I restart Tomcat 10- I visit Sandbox.WebHome with firefox: page is there 11- I visit Sandbox.Test with firefox: content is correct
Looks like a cache problem, but where?
The source code of the example may seem unnecessarily complicated (use of properties, separation in several classes), but the idea is to move it to Ant task easily.
Any idea?
François
anexo Documento somente texto (message-footer.txt) -- You receive this message as a subscriber of the xwiki- [email protected] mailing list. To unsubscribe: mailto:[email protected] For general help: mailto:[email protected]?subject=help ObjectWeb mailing lists service home page: http:// www.objectweb.org/wws
-- You receive this message as a subscriber of the xwiki- [email protected] mailing list. To unsubscribe: mailto:[email protected] For general help: mailto:[email protected]?subject=help ObjectWeb mailing lists service home page: http://www.objectweb.org/ wws
anexo Documento somente texto (message-footer.txt) -- You receive this message as a subscriber of the [email protected] mailing list. To unsubscribe: mailto:[email protected] For general help: mailto:[email protected]?subject=help ObjectWeb mailing lists service home page: http://www.objectweb.org/wws
Hello, Fabrício J. Barth a écrit :
It's a very good example!
Thank you!
I used this example in my local xwiki and works very well. But, if I change the properties and put a xwiki address, for example, panteao.xwiki.com or projetoftn.xwiki.com, the example and my application that uses xml-rpc doesn't work.
Did you check also the pages that were edited via xml-rpc in a navigator? I'd like to know if you are facing the same problem that I had: when edited via xml-rpc, changes are not visible from a navigator browsing the same page that was edited until you restart tomcat.
[...]
François
Hello, I had the same problem. Fabrício. Em Seg, 2007-04-30 às 10:55 +0200, François Déchelle escreveu:
Hello,
Fabrício J. Barth a écrit :
It's a very good example!
Thank you!
I used this example in my local xwiki and works very well. But, if I change the properties and put a xwiki address, for example, panteao.xwiki.com or projetoftn.xwiki.com, the example and my application that uses xml-rpc doesn't work.
Did you check also the pages that were edited via xml-rpc in a navigator? I'd like to know if you are facing the same problem that I had: when edited via xml-rpc, changes are not visible from a navigator browsing the same page that was edited until you restart tomcat.
[...]
François
anexo Documento somente texto (message-footer.txt) -- You receive this message as a subscriber of the [email protected] mailing list. To unsubscribe: mailto:[email protected] For general help: mailto:[email protected]?subject=help ObjectWeb mailing lists service home page: http://www.objectweb.org/wws
Hi, Fabrício J. Barth a écrit :
Hello,
I had the same problem.
Great! Well, sort of... Is it reasonnable to add a JIRA issue about this?
Em Seg, 2007-04-30 às 10:55 +0200, François Déchelle escreveu: [...]
Did you check also the pages that were edited via xml-rpc in a navigator? I'd like to know if you are facing the same problem that I had: when edited via xml-rpc, changes are not visible from a navigator browsing the same page that was edited until you restart tomcat.
participants (3)
-
Fabrício J. Barth -
François Déchelle -
Vincent Massol