caleeli / mathmlformula

Automatically exported from code.google.com/p/mathmlformula
1 stars 0 forks source link

MathML from Maple no longer working #89

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1.Paste any MathML code from Maple17 into fMath.

Here is example code that worked last week (should render LaTeX: \vec{u} ):

<math xmlns='http://www.w3.org/1998/Math/MathML'>
  <semantics>
    <mi xref='id1'>#mover(mi("u"),mo("&amp;rarr;"))</mi>
    <annotation-xml encoding='MathML-Content'>
      <ci id='id1'>#mover(mi("u"),mo("&amp;rarr;"))</ci>
    </annotation-xml>
    <annotation encoding='Maple'>`#mover(mi("u"),mo("&amp;rarr;"))`</annotation>
  </semantics>
</math>

2.Press Display
3.Recent changes (within the past few days) have caused this. Everything was 
working less than a week ago.

What is the expected output? What do you see instead?
Correctly rendered formula.

Result is the following error (full error report below)

The server encountered an internal error () that prevented it from fulfilling 
this request.

What version of the product are you using? On what browser?

Current version at: http://www.fmath.info/java/latex-mathml-converter/

Firefox 26

Please provide any additional information below.

HTTP Status 500 -

type Exception report

message

description The server encountered an internal error () that prevented it from 
fulfilling this request.

exception

org.apache.jasper.JasperException: An exception occurred processing JSP page 
/converterForm.jsp at line 58

55:     //md = convertFromWord + "";
56:     if(!convertFromWord){
57:         if(convertFromMathML){
58:             ld = fmath.conversion.ConvertFromMathMLToLatex.convertToLatex(md);
59:         }else if(convertFromLatex){
60:             md = fmath.conversion.ConvertFromLatexToMathML.convertToMathML(ld);
61:         }else{

Stacktrace:
    org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServletWrapper.java:519)
    org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:428)
    org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:313)
    org.apache.jasper.servlet.JspServlet.service(JspServlet.java:260)
    javax.servlet.http.HttpServlet.service(HttpServlet.java:717)

root cause

java.lang.RuntimeException: org.jdom.input.JDOMParseException: Error on line 1: 
The markup in the document preceding the root element must be well-formed.
    fmath.a.c.a(Unknown Source)
    fmath.common.a.a(Unknown Source)
    fmath.common.a.a(Unknown Source)
    fmath.conversion.ConvertFromMathMLToLatex.convertToLatex(Unknown Source)
    org.apache.jsp.converterForm_jsp._jspService(converterForm_jsp.java:116)
    org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
    javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
    org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:386)
    org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:313)
    org.apache.jasper.servlet.JspServlet.service(JspServlet.java:260)
    javax.servlet.http.HttpServlet.service(HttpServlet.java:717)

root cause

org.jdom.input.JDOMParseException: Error on line 1: The markup in the document 
preceding the root element must be well-formed.
    org.jdom.input.SAXBuilder.build(SAXBuilder.java:533)
    org.jdom.input.SAXBuilder.build(SAXBuilder.java:946)
    fmath.a.c.a(Unknown Source)
    fmath.common.a.a(Unknown Source)
    fmath.common.a.a(Unknown Source)
    fmath.conversion.ConvertFromMathMLToLatex.convertToLatex(Unknown Source)
    org.apache.jsp.converterForm_jsp._jspService(converterForm_jsp.java:116)
    org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
    javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
    org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:386)
    org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:313)
    org.apache.jasper.servlet.JspServlet.service(JspServlet.java:260)
    javax.servlet.http.HttpServlet.service(HttpServlet.java:717)

root cause

org.xml.sax.SAXParseException: The markup in the document preceding the root 
element must be well-formed.
    com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.createSAXParseException(ErrorHandlerWrapper.java:195)
    com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.fatalError(ErrorHandlerWrapper.java:174)
    com.sun.org.apache.xerces.internal.impl.XMLErrorReporter.reportError(XMLErrorReporter.java:388)
    com.sun.org.apache.xerces.internal.impl.XMLScanner.reportFatalError(XMLScanner.java:1414)
    com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl$PrologDriver.next(XMLDocumentScannerImpl.java:925)
    com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl.next(XMLDocumentScannerImpl.java:648)
    com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl.next(XMLNSDocumentScannerImpl.java:140)
    com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDocumentFragmentScannerImpl.java:511)
    com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:808)
    com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:737)
    com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(XMLParser.java:119)
    com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(AbstractSAXParser.java:1205)
    com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl$JAXPSAXParser.parse(SAXParserImpl.java:522)
    org.jdom.input.SAXBuilder.build(SAXBuilder.java:518)
    org.jdom.input.SAXBuilder.build(SAXBuilder.java:946)
    fmath.a.c.a(Unknown Source)
    fmath.common.a.a(Unknown Source)
    fmath.common.a.a(Unknown Source)
    fmath.conversion.ConvertFromMathMLToLatex.convertToLatex(Unknown Source)
    org.apache.jsp.converterForm_jsp._jspService(converterForm_jsp.java:116)
    org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
    javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
    org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:386)
    org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:313)
    org.apache.jasper.servlet.JspServlet.service(JspServlet.java:260)
    javax.servlet.http.HttpServlet.service(HttpServlet.java:717)

note The full stack trace of the root cause is available in the Apache 
Tomcat/6.0.32 logs.
Apache Tomcat/6.0.32

Original issue reported on code.google.com by kboic...@gmail.com on 13 Mar 2014 at 2:51

GoogleCodeExporter commented 9 years ago
The converter is in working.
sorry

Original comment by ionel.alexandru@gmail.com on 13 Mar 2014 at 3:42