org.apache.xmlrpc.XmlRpcException: Failed to invoke method getObject in class com.xpn.xwiki.xmlrpc.XWikiXmlRpcApiImpl: [Unable to find object XWiki.TagClass[0] on page 'Sandbox.TestTags']

XWiki.org JIRA | Martin W. Kirst | 6 years ago
  1. 0

    Fetching the object XWiki.TagClass from a newly created page via XMLRPC-API, will cause a org.apache.xmlrpc.XmlRpcException. Steps to reproduce * create a new page, example Space: Sandbox, Page: TestTags * Use the XMLRPC example program "Page: List Tags" (http://platform.xwiki.org/xwiki/bin/view/Features/XMLRPCJavaExamples#HPage:ListTags) * Change the code to point to {{pageId = "Sandbox.TestTags"}} * Run it --> Exception see below Remarks/Workaround: * Once, you've added some tags manually to the page the code sample works perfectly * Even if you delete on a random page all existing tags, the sample code works perfectly Expected Behavior: * When fetching tags from a new page, I just want to have an empty list of tags. * The XmlRpcException is to much generous to react properly on this fact. * There should be a consisted behavior, when retrieving tags from a new page or an older page, where all the tags where deleted. This Exception happens: ---------------------------- org.apache.xmlrpc.XmlRpcException: Failed to invoke method getObject in class com.xpn.xwiki.xmlrpc.XWikiXmlRpcApiImpl: [Unable to find object XWiki.TagClass[0] on page 'Sandbox.TestTags'] at org.apache.xmlrpc.client.XmlRpcStreamTransport.readResponse(XmlRpcStreamTransport.java:186) at org.apache.xmlrpc.client.XmlRpcStreamTransport.sendRequest(XmlRpcStreamTransport.java:145) at org.apache.xmlrpc.client.XmlRpcHttpTransport.sendRequest(XmlRpcHttpTransport.java:94) at org.apache.xmlrpc.client.XmlRpcSunHttpTransport.sendRequest(XmlRpcSunHttpTransport.java:44) at org.apache.xmlrpc.client.XmlRpcClientWorker.execute(XmlRpcClientWorker.java:53) at org.apache.xmlrpc.client.XmlRpcClient.execute(XmlRpcClient.java:166) at org.apache.xmlrpc.client.XmlRpcClient.execute(XmlRpcClient.java:136) at org.apache.xmlrpc.client.XmlRpcClient.execute(XmlRpcClient.java:125) at org.xwiki.xmlrpc.XWikiXmlRpcClient.invokeRpc(XWikiXmlRpcClient.java:1023) at org.xwiki.xmlrpc.XWikiXmlRpcClient.getObject(XWikiXmlRpcClient.java:716) at org.xwiki.xmlrpc.XWikiXmlRpcClient.getObject(XWikiXmlRpcClient.java:782) at ListTags.main(ListTags.java:28)

    XWiki.org JIRA | 6 years ago | Martin W. Kirst
    org.apache.xmlrpc.XmlRpcException: Failed to invoke method getObject in class com.xpn.xwiki.xmlrpc.XWikiXmlRpcApiImpl: [Unable to find object XWiki.TagClass[0] on page 'Sandbox.TestTags']
  2. 0

    Regression in ant adduser task; creating users break the admin client

    GitHub | 3 years ago | public-user
    org.apache.xmlrpc.XmlRpcException: Failed to invoke method getSubCollectionPermissions in class org.exist.xmlrpc.RpcConnection: nul
  3. 0

    Cannot delete testbed

    GitHub | 3 years ago | CJHoffmann
    org.apache.xmlrpc.XmlRpcException: 'PORT05'
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    XMLRPC IP.Board could not locate an API module called

    Stack Overflow | 5 years ago | Dmitry Nelepov
    org.apache.xmlrpc.XmlRpcException: IP.Board could not locate an API module called ''
  6. 0

    How to query eXist db from java

    Stack Overflow | 4 years ago | Sam Ben
    org.xmldb.api.base.XMLDBException: Failed to invoke method queryP in class org.exist.xmlrpc.RpcConnection: org.exist.xquery.StaticXQueryException: exerr:ERROR org.exist.xquery.XPathException: exerr:ERROR err:XPST0003 in line 1, column 58: unexpected token: .

    4 unregistered visitors
    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. org.apache.xmlrpc.XmlRpcException

      Failed to invoke method getObject in class com.xpn.xwiki.xmlrpc.XWikiXmlRpcApiImpl: [Unable to find object XWiki.TagClass[0] on page 'Sandbox.TestTags']

      at org.apache.xmlrpc.client.XmlRpcStreamTransport.readResponse()
    2. Apache XML-RPC Client Library
      XmlRpcClient.execute
      1. org.apache.xmlrpc.client.XmlRpcStreamTransport.readResponse(XmlRpcStreamTransport.java:186)
      2. org.apache.xmlrpc.client.XmlRpcStreamTransport.sendRequest(XmlRpcStreamTransport.java:145)
      3. org.apache.xmlrpc.client.XmlRpcHttpTransport.sendRequest(XmlRpcHttpTransport.java:94)
      4. org.apache.xmlrpc.client.XmlRpcSunHttpTransport.sendRequest(XmlRpcSunHttpTransport.java:44)
      5. org.apache.xmlrpc.client.XmlRpcClientWorker.execute(XmlRpcClientWorker.java:53)
      6. org.apache.xmlrpc.client.XmlRpcClient.execute(XmlRpcClient.java:166)
      7. org.apache.xmlrpc.client.XmlRpcClient.execute(XmlRpcClient.java:136)
      8. org.apache.xmlrpc.client.XmlRpcClient.execute(XmlRpcClient.java:125)
      8 frames
    3. org.xwiki.xmlrpc
      XWikiXmlRpcClient.getObject
      1. org.xwiki.xmlrpc.XWikiXmlRpcClient.invokeRpc(XWikiXmlRpcClient.java:1023)
      2. org.xwiki.xmlrpc.XWikiXmlRpcClient.getObject(XWikiXmlRpcClient.java:716)
      3. org.xwiki.xmlrpc.XWikiXmlRpcClient.getObject(XWikiXmlRpcClient.java:782)
      3 frames
    4. Unknown
      ListTags.main
      1. ListTags.main(ListTags.java:28)
      1 frame