org.xwiki.rendering.macro.MacroExecutionException: Error processing [http://timesofindia.feedsportal.com/c/33039/f/533920/index.rss] : Invalid XML: Error on line 18: The element type "link" must be terminated by the matching end-tag "</link>".

XWiki.org JIRA | mohit gupta | 3 years ago
  1. 0

    As per instruction given at http://extensions.xwiki.org/xwiki/bin/view/Extension/RSS+Macro i created the page and icluded below macro {code} {{rss feed="http://rss.cnn.com/rss/edition_asia.rss" /}} {code} But getting below error(though i am able to open link http://rss.cnn.com/rss/edition_asia.rss in browser). I am not getting whats the issue here? {noformat} Failed to execute the [rss] macro org.xwiki.rendering.macro.MacroExecutionException: Error processing [http://timesofindia.feedsportal.com/c/33039/f/533920/index.rss] : Invalid XML: Error on line 18: The element type "link" must be terminated by the matching end-tag "</link>". at org.xwiki.rendering.internal.macro.rss.DefaultRomeFeedFactory.createFeed(DefaultRomeFeedFactory.java:68) at org.xwiki.rendering.internal.macro.rss.RssMacro.execute(RssMacro.java:136) at org.xwiki.rendering.internal.macro.rss.RssMacro.execute(RssMacro.java:61) at org.xwiki.rendering.internal.transformation.macro.MacroTransformation.transformOnce(MacroTransformation.java:187) at org.xwiki.rendering.internal.transformation.macro.MacroTransformation.transform(MacroTransformation.java:132) at org.xwiki.rendering.internal.transformation.DefaultTransformationManager.performTransformations(DefaultTransformationManager.java:83) at org.xwiki.display.internal.DocumentContentDisplayer.display(DocumentContentDisplayer.java:248) at org.xwiki.display.internal.DocumentContentDisplayer.display(DocumentContentDisplayer.java:124) at org.xwiki.display.internal.DocumentContentDisplayer.display(DocumentContentDisplayer.java:54) at org.xwiki.display.internal.DefaultDocumentDisplayer.display(DefaultDocumentDisplayer.java:80) at org.xwiki.display.internal.DefaultDocumentDisplayer.display(DefaultDocumentDisplayer.java:38) at com.xpn.xwiki.internal.sheet.SheetDocumentDisplayer.display(SheetDocumentDisplayer.java:113) at com.xpn.xwiki.internal.sheet.SheetDocumentDisplayer.display(SheetDocumentDisplayer.java:57) at org.xwiki.display.internal.ConfiguredDocumentDisplayer.display(ConfiguredDocumentDisplayer.java:67) at org.xwiki.display.internal.ConfiguredDocumentDisplayer.display(ConfiguredDocumentDisplayer.java:41) at com.xpn.xwiki.doc.XWikiDocument.getRenderedContent(XWikiDocument.java:862) at com.xpn.xwiki.doc.XWikiDocument.getRenderedContent(XWikiDocument.java:841) at com.xpn.xwiki.doc.XWikiDocument.getRenderedContent(XWikiDocument.java:872) at com.xpn.xwiki.api.Document.getRenderedContent(Document.java:586) at sun.reflect.GeneratedMethodAccessor383.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at org.apache.velocity.util.introspection.UberspectImpl$VelMethodImpl.doInvoke(UberspectImpl.java:395) at org.apache.velocity.util.introspection.UberspectImpl$VelMethodImpl.invoke(UberspectImpl.java:384) at org.apache.velocity.runtime.parser.node.ASTMethod.execute(ASTMethod.java:173) at org.apache.velocity.runtime.parser.node.ASTReference.execute(ASTReference.java:280) at org.apache.velocity.runtime.parser.node.ASTReference.value(ASTReference.java:567) at org.apache.velocity.runtime.parser.node.ASTExpression.value(ASTExpression.java:71) at org.apache.velocity.runtime.parser.node.ASTSetDirective.render(ASTSetDirective.java:142) at org.apache.velocity.runtime.parser.node.ASTBlock.render(ASTBlock.java:72) at org.apache.velocity.runtime.parser.node.SimpleNode.render(SimpleNode.java:342) at org.apache.velocity.runtime.parser.node.ASTIfStatement.render(ASTIfStatement.java:106) at org.apache.velocity.runtime.parser.node.SimpleNode.render(SimpleNode.java:342) at org.xwiki.velocity.internal.DefaultVelocityEngine.evaluate(DefaultVelocityEngine.java:228) at org.xwiki.velocity.internal.DefaultVelocityEngine.evaluate(DefaultVelocityEngine.java:184) at com.xpn.xwiki.render.XWikiVelocityRenderer.evaluate(XWikiVelocityRenderer.java:117) at com.xpn.xwiki.XWiki.evaluateTemplate(XWiki.java:1791) at com.xpn.xwiki.XWiki.parseTemplate(XWiki.java:1728) at com.xpn.xwiki.api.XWiki.parseTemplate(XWiki.java:839) at sun.reflect.GeneratedMethodAccessor134.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at org.apache.velocity.util.introspection.UberspectImpl$VelMethodImpl.doInvoke(UberspectImpl.java:395) at org.apache.velocity.util.introspection.UberspectImpl$VelMethodImpl.invoke(UberspectImpl.java:384) at org.apache.velocity.runtime.parser.node.ASTMethod.execute(ASTMethod.java:173) at org.apache.velocity.runtime.parser.node.ASTReference.execute(ASTReference.java:280) at org.apache.velocity.runtime.parser.node.ASTReference.render(ASTReference.java:369) at org.apache.velocity.runtime.parser.node.ASTBlock.render(ASTBlock.java:72) at org.apache.velocity.runtime.directive.VelocimacroProxy.render(VelocimacroProxy.java:216) at org.apache.velocity.runtime.directive.RuntimeMacro.render(RuntimeMacro.java:311) at org.apache.velocity.runtime.directive.RuntimeMacro.render(RuntimeMacro.java:230) at org.apache.velocity.runtime.parser.node.ASTDirective.render(ASTDirective.java:207) at org.apache.velocity.runtime.parser.node.ASTBlock.render(ASTBlock.java:72) at org.apache.velocity.runtime.parser.node.ASTIfStatement.render(ASTIfStatement.java:87) at org.apache.velocity.runtime.parser.node.ASTBlock.render(ASTBlock.java:72) at org.apache.velocity.runtime.parser.node.SimpleNode.render(SimpleNode.java:342) at org.apache.velocity.runtime.parser.node.ASTIfStatement.render(ASTIfStatement.java:106) at org.apache.velocity.runtime.parser.node.SimpleNode.render(SimpleNode.java:342) at org.xwiki.velocity.internal.DefaultVelocityEngine.evaluate(DefaultVelocityEngine.java:228) at org.xwiki.velocity.internal.DefaultVelocityEngine.evaluate(DefaultVelocityEngine.java:184) at com.xpn.xwiki.render.XWikiVelocityRenderer.evaluate(XWikiVelocityRenderer.java:117) at com.xpn.xwiki.XWiki.evaluateTemplate(XWiki.java:1791) at com.xpn.xwiki.web.Utils.parseTemplate(Utils.java:154) at com.xpn.xwiki.web.XWikiAction.execute(XWikiAction.java:241) at com.xpn.xwiki.web.XWikiAction.execute(XWikiAction.java:116) 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.doGet(ActionServlet.java:414) at javax.servlet.http.HttpServlet.service(HttpServlet.java:617) at javax.servlet.http.HttpServlet.service(HttpServlet.java:717) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) at com.xpn.xwiki.web.ActionFilter.doFilter(ActionFilter.java:128) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) at org.xwiki.wysiwyg.server.filter.ConversionFilter.doFilter(ConversionFilter.java:144) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) at com.xpn.xwiki.plugin.webdav.XWikiDavFilter.doFilter(XWikiDavFilter.java:68) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) at org.xwiki.container.servlet.filters.internal.SavedRequestRestorerFilter.doFilter(SavedRequestRestorerFilter.java:217) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) at org.xwiki.container.servlet.filters.internal.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:109) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:293) at org.apache.coyote.http11.Http11AprProcessor.process(Http11AprProcessor.java:877) at org.apache.coyote.http11.Http11AprProtocol$Http11ConnectionHandler.process(Http11AprProtocol.java:594) at org.apache.tomcat.util.net.AprEndpoint$Worker.run(AprEndpoint.java:1675) at java.lang.Thread.run(Thread.java:662) Caused by: com.sun.syndication.io.ParsingFeedException: Invalid XML: Error on line 18: The element type "link" must be terminated by the matching end-tag "</link>". at com.sun.syndication.io.WireFeedInput.build(WireFeedInput.java:198) at com.sun.syndication.io.SyndFeedInput.build(SyndFeedInput.java:123) at org.xwiki.rendering.internal.macro.rss.DefaultRomeFeedFactory.createFeed(DefaultRomeFeedFactory.java:63) ... 97 more Caused by: org.jdom.input.JDOMParseException: Error on line 18: The element type "link" must be terminated by the matching end-tag "</link>". at org.jdom.input.SAXBuilder.build(SAXBuilder.java:504) at org.jdom.input.SAXBuilder.build(SAXBuilder.java:888) at com.sun.syndication.io.WireFeedInput.build(WireFeedInput.java:194) ... 99 more Caused by: org.xml.sax.SAXParseException: The element type "link" must be terminated by the matching end-tag "</link>". at org.apache.xerces.util.ErrorHandlerWrapper.createSAXParseException(Unknown Source) at org.apache.xerces.util.ErrorHandlerWrapper.fatalError(Unknown Source) at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown Source) at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown Source) at org.apache.xerces.impl.XMLScanner.reportFatalError(Unknown Source) at org.apache.xerces.impl.XMLNSDocumentScannerImpl.scanEndElement(Unknown Source) at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown Source) at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source) at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source) at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source) at org.apache.xerces.parsers.XMLParser.parse(Unknown Source) at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source) at org.apache.xerces.jaxp.SAXParserImpl$JAXPSAXParser.parse(Unknown Source) at org.jdom.input.SAXBuilder.build(SAXBuilder.java:489) {noformat} I initiated the discussion on xwiki forum but looks like it is a bug as per Thomas Mortagne. Here is the reply from him " According to the error there is something Rome (the standard Java library to parse RSS) does not like about http://rss.cnn.com/rss/edition_asia.rss. It's saying that it found a <link> element without corresponding ending </link>."

    XWiki.org JIRA | 3 years ago | mohit gupta
    org.xwiki.rendering.macro.MacroExecutionException: Error processing [http://timesofindia.feedsportal.com/c/33039/f/533920/index.rss] : Invalid XML: Error on line 18: The element type "link" must be terminated by the matching end-tag "</link>".
  2. 0

    Trying to hook up the IDEA Atlassian Connector with our self-hosted FishEye server for the first time, and I receive the following error: Fisheye: Server:https://fisheye.popcapsf.com returned malformed response Stack trace: com.atlassian.theplugin.commons.remoteapi.RemoteApiLoginException: Server:https://fisheye.popcapsf.com returned malformed response at com.atlassian.theplugin.commons.crucible.api.rest.CrucibleSessionImpl.realLogin(CrucibleSessionImpl.java:256) at com.atlassian.theplugin.commons.crucible.api.rest.CrucibleSessionImpl.isLoggedIn(CrucibleSessionImpl.java:1860) at com.atlassian.theplugin.commons.crucible.CrucibleServerFacadeImpl.testServerConnection(CrucibleServerFacadeImpl.java:170) at com.atlassian.connector.intellij.crucible.IntelliJCrucibleServerFacade.testServerConnection(IntelliJCrucibleServerFacade.java:405) at com.atlassian.theplugin.idea.config.serverconfig.CrucibleConnector.connect(CrucibleConnector.java:38) at com.atlassian.theplugin.ConnectionWrapper.run(ConnectionWrapper.java:63) Caused by: org.jdom.input.JDOMParseException: Error on line 175: The element type "link" must be terminated by the matching end-tag "</link>". at org.jdom.input.SAXBuilder.build(SAXBuilder.java:504) at org.jdom.input.SAXBuilder.build(SAXBuilder.java:807) at com.atlassian.theplugin.commons.remoteapi.rest.AbstractHttpSession.retrievePostResponseInternalImpl(AbstractHttpSession.java:443) at com.atlassian.theplugin.commons.remoteapi.rest.AbstractHttpSession.retrievePostResponseWithForm(AbstractHttpSession.java:487) at com.atlassian.theplugin.commons.crucible.api.rest.CrucibleSessionImpl.retrieveLoginResponse(CrucibleSessionImpl.java:280) at com.atlassian.theplugin.commons.crucible.api.rest.CrucibleSessionImpl.realLogin(CrucibleSessionImpl.java:231) ... 5 more Caused by: org.xml.sax.SAXParseException: The element type "link" must be terminated by the matching end-tag "</link>". at org.apache.xerces.util.ErrorHandlerWrapper.createSAXParseException(Unknown Source) at org.apache.xerces.util.ErrorHandlerWrapper.fatalError(Unknown Source) at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown Source) at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown Source) at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown Source) at org.apache.xerces.impl.XMLScanner.reportFatalError(Unknown Source) at org.apache.xerces.impl.XMLNSDocumentScannerImpl.scanEndElement(Unknown Source) at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown Source) at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source) at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source) at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source) at org.apache.xerces.parsers.XMLParser.parse(Unknown Source) at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source) at org.apache.xerces.jaxp.SAXParserImpl$JAXPSAXParser.parse(Unknown Source) at org.jdom.input.SAXBuilder.build(SAXBuilder.java:489) ... 10 more

    Ecosystem JIRA | 5 years ago | Will Jordan
    com.atlassian.theplugin.commons.remoteapi.RemoteApiLoginException: Server:https://fisheye.popcapsf.com returned malformed response
  3. 0

    facing org/dom4j/DocumentException

    Stack Overflow | 2 years ago | Rajaguru
    org.xml.sax.SAXParseException: The element type "META" must be terminated by the matching end-tag "&lt;/META&gt;".
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    GitHub comment 20#5620179

    GitHub | 5 years ago | christianweiss
    java.lang.RuntimeException: java.lang.RuntimeException: Unexpected xml document:
  6. 0

    Github issue integration

    YouTrack | 4 years ago
    org.jdom.input.JDOMParseException: Error on line 29: The element type "meta" must be terminated by the matching end-tag "</meta>".

    8 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.xml.sax.SAXParseException

      The element type "link" must be terminated by the matching end-tag "</link>".

      at org.apache.xerces.util.ErrorHandlerWrapper.createSAXParseException()
    2. Xerces2-j
      SAXParserImpl$JAXPSAXParser.parse
      1. org.apache.xerces.util.ErrorHandlerWrapper.createSAXParseException(Unknown Source)
      2. org.apache.xerces.util.ErrorHandlerWrapper.fatalError(Unknown Source)
      3. org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown Source)
      4. org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown Source)
      5. org.apache.xerces.impl.XMLScanner.reportFatalError(Unknown Source)
      6. org.apache.xerces.impl.XMLNSDocumentScannerImpl.scanEndElement(Unknown Source)
      7. org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown Source)
      8. org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source)
      9. org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
      10. org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
      11. org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
      12. org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
      13. org.apache.xerces.jaxp.SAXParserImpl$JAXPSAXParser.parse(Unknown Source)
      13 frames
    3. jOpenDocument
      SAXBuilder.build
      1. org.jdom.input.SAXBuilder.build(SAXBuilder.java:489)
      1 frame