br.eti.kinoshita.testlinkjavaapi.TestLinkAPIException: Error verifying developer key: Failed to parse server's response: The processing instruction target matching "[xX][mM][lL]" is not allowed.

Jenkins JIRA | Ludovic Cintrat | 5 years ago
  1. 0

    TestLink plugin can not verify developer key. Here is the trace from the Jenkins console. After this trace, please find a network capture of the XML RPC call (made with tcpdump) Jenkins console: ---------------- Preparing TestLink client API. Using TestLink URL: http://testlink.neomura.int/lib/api/xmlrpc.php. FATAL: Error verifying developer key: Failed to parse server's response: The processing instruction target matching "[xX][mM][lL]" is not allowed. br.eti.kinoshita.testlinkjavaapi.TestLinkAPIException: Error verifying developer key: Failed to parse server's response: The processing instruction target matching "[xX][mM][lL]" is not allowed. at br.eti.kinoshita.testlinkjavaapi.MiscService.checkDevKey(MiscService.java:71) at br.eti.kinoshita.testlinkjavaapi.TestLinkAPI.<init>(TestLinkAPI.java:150) at hudson.plugins.testlink.TestLinkHandler.<init>(TestLinkHandler.java:99) at hudson.plugins.testlink.TestLinkBuilder.createTestLinkHandler(TestLinkBuilder.java:320) at hudson.plugins.testlink.TestLinkBuilder.perform(TestLinkBuilder.java:139) at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:19) at hudson.model.AbstractBuild$AbstractRunner.perform(AbstractBuild.java:682) at hudson.model.Build$RunnerImpl.build(Build.java:178) at hudson.model.Build$RunnerImpl.doRun(Build.java:139) at hudson.model.AbstractBuild$AbstractRunner.run(AbstractBuild.java:448) at hudson.model.Run.run(Run.java:1376) at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:46) at hudson.model.ResourceController.execute(ResourceController.java:88) at hudson.model.Executor.run(Executor.java:230) Caused by: org.apache.xmlrpc.client.XmlRpcClientException: Failed to parse server's response: The processing instruction target matching "[xX][mM][lL]" is not allowed. at org.apache.xmlrpc.client.XmlRpcStreamTransport.readResponse(XmlRpcStreamTransport.java:188) at org.apache.xmlrpc.client.XmlRpcStreamTransport.sendRequest(XmlRpcStreamTransport.java:156) at org.apache.xmlrpc.client.XmlRpcHttpTransport.sendRequest(XmlRpcHttpTransport.java:143) at org.apache.xmlrpc.client.XmlRpcSunHttpTransport.sendRequest(XmlRpcSunHttpTransport.java:69) at org.apache.xmlrpc.client.XmlRpcClientWorker.execute(XmlRpcClientWorker.java:56) at org.apache.xmlrpc.client.XmlRpcClient.execute(XmlRpcClient.java:167) at org.apache.xmlrpc.client.XmlRpcClient.execute(XmlRpcClient.java:158) at org.apache.xmlrpc.client.XmlRpcClient.execute(XmlRpcClient.java:147) at br.eti.kinoshita.testlinkjavaapi.BaseService.executeXmlRpcCall(BaseService.java:90) at br.eti.kinoshita.testlinkjavaapi.MiscService.checkDevKey(MiscService.java:65) ... 13 more Caused by: org.xml.sax.SAXParseException; lineNumber: 2; columnNumber: 6; The processing instruction target matching "[xX][mM][lL]" is not allowed. at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source) at org.apache.xerces.jaxp.SAXParserImpl$JAXPSAXParser.parse(Unknown Source) at org.apache.xmlrpc.client.XmlRpcStreamTransport.readResponse(XmlRpcStreamTransport.java:186) ... 22 more XML RPC call capture: -------------------- POST /lib/api/xmlrpc.php HTTP/1.1 Content-Type: text/xml User-Agent: Apache XML RPC 3.1.3 (Sun HTTP Transport) Cache-Control: no-cache Pragma: no-cache Host: testlink.neomura.int Accept: text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2 Connection: keep-alive Content-Length: 310 <?xml version="1.0" encoding="UTF-8"?><methodCall xmlns:ex="http://ws.apache.org/xmlrpc/namespaces/extensions"><methodName>tl.checkDevKey</methodName><params><param><value><struct><member><name>devKey</name><value>84d19df078791f4ed09ee99be327437d</value></member></struct></value></param></params></methodCall>HTTP/1.1 200 OK Date: Thu, 01 Sep 2011 14:56:12 GMT Server: Apache/2.2.14 (Ubuntu) X-Powered-By: PHP/5.3.2-1ubuntu4.9 Connection: close Content-Length: 164 Vary: Accept-Encoding Content-Type: text/xml <?xml version="1.0"?> <methodResponse> <params> <param> <value> <boolean>1</boolean> </value> </param> </params> </methodResponse>

    Jenkins JIRA | 5 years ago | Ludovic Cintrat
    br.eti.kinoshita.testlinkjavaapi.TestLinkAPIException: Error verifying developer key: Failed to parse server's response: The processing instruction target matching "[xX][mM][lL]" is not allowed.
  2. 0

    TestLink plugin can not verify developer key. Here is the trace from the Jenkins console. After this trace, please find a network capture of the XML RPC call (made with tcpdump) Jenkins console: ---------------- Preparing TestLink client API. Using TestLink URL: http://testlink.neomura.int/lib/api/xmlrpc.php. FATAL: Error verifying developer key: Failed to parse server's response: The processing instruction target matching "[xX][mM][lL]" is not allowed. br.eti.kinoshita.testlinkjavaapi.TestLinkAPIException: Error verifying developer key: Failed to parse server's response: The processing instruction target matching "[xX][mM][lL]" is not allowed. at br.eti.kinoshita.testlinkjavaapi.MiscService.checkDevKey(MiscService.java:71) at br.eti.kinoshita.testlinkjavaapi.TestLinkAPI.<init>(TestLinkAPI.java:150) at hudson.plugins.testlink.TestLinkHandler.<init>(TestLinkHandler.java:99) at hudson.plugins.testlink.TestLinkBuilder.createTestLinkHandler(TestLinkBuilder.java:320) at hudson.plugins.testlink.TestLinkBuilder.perform(TestLinkBuilder.java:139) at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:19) at hudson.model.AbstractBuild$AbstractRunner.perform(AbstractBuild.java:682) at hudson.model.Build$RunnerImpl.build(Build.java:178) at hudson.model.Build$RunnerImpl.doRun(Build.java:139) at hudson.model.AbstractBuild$AbstractRunner.run(AbstractBuild.java:448) at hudson.model.Run.run(Run.java:1376) at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:46) at hudson.model.ResourceController.execute(ResourceController.java:88) at hudson.model.Executor.run(Executor.java:230) Caused by: org.apache.xmlrpc.client.XmlRpcClientException: Failed to parse server's response: The processing instruction target matching "[xX][mM][lL]" is not allowed. at org.apache.xmlrpc.client.XmlRpcStreamTransport.readResponse(XmlRpcStreamTransport.java:188) at org.apache.xmlrpc.client.XmlRpcStreamTransport.sendRequest(XmlRpcStreamTransport.java:156) at org.apache.xmlrpc.client.XmlRpcHttpTransport.sendRequest(XmlRpcHttpTransport.java:143) at org.apache.xmlrpc.client.XmlRpcSunHttpTransport.sendRequest(XmlRpcSunHttpTransport.java:69) at org.apache.xmlrpc.client.XmlRpcClientWorker.execute(XmlRpcClientWorker.java:56) at org.apache.xmlrpc.client.XmlRpcClient.execute(XmlRpcClient.java:167) at org.apache.xmlrpc.client.XmlRpcClient.execute(XmlRpcClient.java:158) at org.apache.xmlrpc.client.XmlRpcClient.execute(XmlRpcClient.java:147) at br.eti.kinoshita.testlinkjavaapi.BaseService.executeXmlRpcCall(BaseService.java:90) at br.eti.kinoshita.testlinkjavaapi.MiscService.checkDevKey(MiscService.java:65) ... 13 more Caused by: org.xml.sax.SAXParseException; lineNumber: 2; columnNumber: 6; The processing instruction target matching "[xX][mM][lL]" is not allowed. at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source) at org.apache.xerces.jaxp.SAXParserImpl$JAXPSAXParser.parse(Unknown Source) at org.apache.xmlrpc.client.XmlRpcStreamTransport.readResponse(XmlRpcStreamTransport.java:186) ... 22 more XML RPC call capture: -------------------- POST /lib/api/xmlrpc.php HTTP/1.1 Content-Type: text/xml User-Agent: Apache XML RPC 3.1.3 (Sun HTTP Transport) Cache-Control: no-cache Pragma: no-cache Host: testlink.neomura.int Accept: text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2 Connection: keep-alive Content-Length: 310 <?xml version="1.0" encoding="UTF-8"?><methodCall xmlns:ex="http://ws.apache.org/xmlrpc/namespaces/extensions"><methodName>tl.checkDevKey</methodName><params><param><value><struct><member><name>devKey</name><value>84d19df078791f4ed09ee99be327437d</value></member></struct></value></param></params></methodCall>HTTP/1.1 200 OK Date: Thu, 01 Sep 2011 14:56:12 GMT Server: Apache/2.2.14 (Ubuntu) X-Powered-By: PHP/5.3.2-1ubuntu4.9 Connection: close Content-Length: 164 Vary: Accept-Encoding Content-Type: text/xml <?xml version="1.0"?> <methodResponse> <params> <param> <value> <boolean>1</boolean> </value> </param> </params> </methodResponse>

    Jenkins JIRA | 5 years ago | Ludovic Cintrat
    br.eti.kinoshita.testlinkjavaapi.TestLinkAPIException: Error verifying developer key: Failed to parse server's response: The processing instruction target matching "[xX][mM][lL]" is not allowed.
  3. 0

    Exception thrown when calling createTestCase()

    GitHub | 3 years ago | fmlyman02
    br.eti.kinoshita.testlinkjavaapi.util.TestLinkAPIException: Error creating test plan: Failed to parse server's response: Expected methodResponse element, got pre
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    getTestCaseCustomFieldExecutionValue not working

    GitHub | 1 year ago | gajo4256
    org.apache.xmlrpc.client.XmlRpcClientException: Failed to parse server's response: Expected methodResponse element, got pre
  6. 0

    Hi, I upgraded my TestLink to 1.9.9 and my Jenkinks TestLink plugin to 3.10. But now when I run my jobs it throws exceptions: Using TestLink URL: http://testlink.truste-svc.net/lib/api/xmlrpc/v1/xmlrpc.php FATAL: Error retrieving test cases for test plan: Failed to parse server's response: Expected methodResponse element, got pre br.eti.kinoshita.testlinkjavaapi.util.TestLinkAPIException: Error retrieving test cases for test plan: Failed to parse server's response: Expected methodResponse element, got pre at br.eti.kinoshita.testlinkjavaapi.TestCaseService.getTestCasesForTestPlan(TestCaseService.java:298) at br.eti.kinoshita.testlinkjavaapi.TestLinkAPI.getTestCasesForTestPlan(TestLinkAPI.java:824) at hudson.plugins.testlink.TestLinkSite.getAutomatedTestCases(TestLinkSite.java:134) at hudson.plugins.testlink.TestLinkBuilder.perform(TestLinkBuilder.java:193) at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:20) at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:785) at hudson.model.Build$BuildExecution.build(Build.java:199) at hudson.model.Build$BuildExecution.doRun(Build.java:160) at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:566) at hudson.model.Run.execute(Run.java:1677) at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:46) at hudson.model.ResourceController.execute(ResourceController.java:88) at hudson.model.Executor.run(Executor.java:230) Caused by: org.apache.xmlrpc.client.XmlRpcClientException: Failed to parse server's response: Expected methodResponse element, got pre at org.apache.xmlrpc.client.XmlRpcStreamTransport.readResponse(XmlRpcStreamTransport.java:188) at org.apache.xmlrpc.client.XmlRpcStreamTransport.sendRequest(XmlRpcStreamTransport.java:156) at org.apache.xmlrpc.client.XmlRpcHttpTransport.sendRequest(XmlRpcHttpTransport.java:143) at org.apache.xmlrpc.client.XmlRpcSunHttpTransport.sendRequest(XmlRpcSunHttpTransport.java:69) at org.apache.xmlrpc.client.XmlRpcClientWorker.execute(XmlRpcClientWorker.java:56) at org.apache.xmlrpc.client.XmlRpcClient.execute(XmlRpcClient.java:167) at org.apache.xmlrpc.client.XmlRpcClient.execute(XmlRpcClient.java:158) at org.apache.xmlrpc.client.XmlRpcClient.execute(XmlRpcClient.java:147) at br.eti.kinoshita.testlinkjavaapi.BaseService.executeXmlRpcCall(BaseService.java:90) at br.eti.kinoshita.testlinkjavaapi.TestCaseService.getTestCasesForTestPlan(TestCaseService.java:264) ... 12 more Caused by: org.xml.sax.SAXParseException; lineNumber: 1; columnNumber: 6; Expected methodResponse element, got pre at org.apache.xmlrpc.parser.XmlRpcResponseParser.startElement(XmlRpcResponseParser.java:101) at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.startElement(AbstractSAXParser.java:509) at com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl.scanStartElement(XMLNSDocumentScannerImpl.java:378) at com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl$NSContentDriver.scanRootElementHook(XMLNSDocumentScannerImpl.java:604) at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl$FragmentContentDriver.next(XMLDocumentFragmentScannerImpl.java:3130) at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl$PrologDriver.next(XMLDocumentScannerImpl.java:880) at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl.next(XMLDocumentScannerImpl.java:606) at com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl.next(XMLNSDocumentScannerImpl.java:117) at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDocumentFragmentScannerImpl.java:510) at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:848) at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:777) at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(XMLParser.java:141) at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(AbstractSAXParser.java:1213) at com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl$JAXPSAXParser.parse(SAXParserImpl.java:649) at org.apache.xmlrpc.client.XmlRpcStreamTransport.readResponse(XmlRpcStreamTransport.java:186) ... 21 more ERROR: Error communicating with TestLink. Check your TestLink configuration.

    Jenkins JIRA | 3 years ago | Christopher Mata
    br.eti.kinoshita.testlinkjavaapi.util.TestLinkAPIException: Error retrieving test cases for test plan: Failed to parse server's response: Expected methodResponse element, got pre

    1 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.client.XmlRpcClientException

      Failed to parse server's response: The processing instruction target matching "[xX][mM][lL]" is not allowed.

      at org.apache.xmlrpc.client.XmlRpcStreamTransport.readResponse()
    2. Apache XML-RPC Client Library
      XmlRpcClient.execute
      1. org.apache.xmlrpc.client.XmlRpcStreamTransport.readResponse(XmlRpcStreamTransport.java:188)
      2. org.apache.xmlrpc.client.XmlRpcStreamTransport.sendRequest(XmlRpcStreamTransport.java:156)
      3. org.apache.xmlrpc.client.XmlRpcHttpTransport.sendRequest(XmlRpcHttpTransport.java:143)
      4. org.apache.xmlrpc.client.XmlRpcSunHttpTransport.sendRequest(XmlRpcSunHttpTransport.java:69)
      5. org.apache.xmlrpc.client.XmlRpcClientWorker.execute(XmlRpcClientWorker.java:56)
      6. org.apache.xmlrpc.client.XmlRpcClient.execute(XmlRpcClient.java:167)
      7. org.apache.xmlrpc.client.XmlRpcClient.execute(XmlRpcClient.java:158)
      8. org.apache.xmlrpc.client.XmlRpcClient.execute(XmlRpcClient.java:147)
      8 frames
    3. TestLink Java API
      TestLinkAPI.<init>
      1. br.eti.kinoshita.testlinkjavaapi.BaseService.executeXmlRpcCall(BaseService.java:90)
      2. br.eti.kinoshita.testlinkjavaapi.MiscService.checkDevKey(MiscService.java:65)
      3. br.eti.kinoshita.testlinkjavaapi.TestLinkAPI.<init>(TestLinkAPI.java:150)
      3 frames
    4. hudson.plugins.testlink
      TestLinkBuilder.perform
      1. hudson.plugins.testlink.TestLinkHandler.<init>(TestLinkHandler.java:99)
      2. hudson.plugins.testlink.TestLinkBuilder.createTestLinkHandler(TestLinkBuilder.java:320)
      3. hudson.plugins.testlink.TestLinkBuilder.perform(TestLinkBuilder.java:139)
      3 frames
    5. Hudson
      Executor.run
      1. hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:19)
      2. hudson.model.AbstractBuild$AbstractRunner.perform(AbstractBuild.java:682)
      3. hudson.model.Build$RunnerImpl.build(Build.java:178)
      4. hudson.model.Build$RunnerImpl.doRun(Build.java:139)
      5. hudson.model.AbstractBuild$AbstractRunner.run(AbstractBuild.java:448)
      6. hudson.model.Run.run(Run.java:1376)
      7. hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:46)
      8. hudson.model.ResourceController.execute(ResourceController.java:88)
      9. hudson.model.Executor.run(Executor.java:230)
      9 frames