org.mozilla.javascript.EcmaError

There are no available Samebug tips for this exception. Do you have an idea how to solve this issue? A short tip would help users who saw this issue last week.

  • Generating a space PDF export with an {{div}} tag closed in the same tag where it starts fails with the following message (see screenshot). {noformat}Failed during PDF export. Exception message - Exception thrown while rendering the page 'no title found' to the PDF document{noformat} You will also get the following warnings and error in the logs: {noformat} 2012-08-10 18:02:13,734 WARN [Long running task: PDF Space Export] [lobobrowser.html.domimpl.HTMLScriptElementImpl] processScript Javascript error at bundle://29.0:1/sh/src/shCore.js:32: ReferenceError: "XRegExp" is not defined. (bundle://29.0:1/sh/src/shCore.js#32) -- url: /spaces/flyingpdf/doflyingpdf.action | userName: alex | referer: http://localhost:6429/spaces/flyingpdf/flyingpdf.action?key=ds | action: doflyingpdf org.mozilla.javascript.EcmaError: ReferenceError: "XRegExp" is not defined. (bundle://29.0:1/sh/src/shCore.js#32) at org.mozilla.javascript.ScriptRuntime.constructError(ScriptRuntime.java:3229) at org.mozilla.javascript.ScriptRuntime.constructError(ScriptRuntime.java:3219) ... 2012-08-10 18:02:13,770 WARN [Long running task: PDF Space Export] [lobobrowser.html.domimpl.HTMLScriptElementImpl] processScript Javascript error at bundle://29.0:1/sh/scripts/shBrushJava.js:50: TypeError: Cannot read property "Highlighter" from undefined (bundle://29.0:1/sh/scripts/shBrushJava.js#50) -- url: /spaces/flyingpdf/doflyingpdf.action | userName: alex | referer: http://localhost:6429/spaces/flyingpdf/flyingpdf.action?key=ds | action: doflyingpdf org.mozilla.javascript.EcmaError: TypeError: Cannot read property "Highlighter" from undefined (bundle://29.0:1/sh/scripts/shBrushJava.js#50) at org.mozilla.javascript.ScriptRuntime.constructError(ScriptRuntime.java:3229) at org.mozilla.javascript.ScriptRuntime.constructError(ScriptRuntime.java:3219) ... 2012-08-10 18:02:13,770 WARN [Long running task: PDF Space Export] [lobobrowser.html.domimpl.HTMLScriptElementImpl] processScript Javascript error at bundle://29.0:1/template.html:2: TypeError: Cannot read property "config" from undefined (bundle://29.0:1/template.html#2) -- url: /spaces/flyingpdf/doflyingpdf.action | userName: alex | referer: http://localhost:6429/spaces/flyingpdf/flyingpdf.action?key=ds | action: doflyingpdf org.mozilla.javascript.EcmaError: TypeError: Cannot read property "config" from undefined (bundle://29.0:1/template.html#2) at org.mozilla.javascript.ScriptRuntime.constructError(ScriptRuntime.java:3229) at org.mozilla.javascript.ScriptRuntime.constructError(ScriptRuntime.java:3219) ... 2012-08-10 18:02:15,325 ERROR [Long running task: PDF Space Export] [core.task.longrunning.AbstractLongRunningTask] doInTransactionWithoutResult Error during PDF export -- url: /spaces/flyingpdf/doflyingpdf.action | userName: alex | referer: http://localhost:6429/spaces/flyingpdf/flyingpdf.action?key=ds | action: doflyingpdf com.atlassian.confluence.importexport.ImportExportException: Exception thrown while rendering the page 'no title found' to the PDF document /opt/atlassian/Confluence/data/confluence-4.2.12/temp/pdfexport-20120810-100812-1802-17/ds-100812-1802-18.pdf at com.atlassian.confluence.extra.flyingpdf.FlyingSaucerXmlToPdfConverter.convertXhtmlToPdf(FlyingSaucerXmlToPdfConverter.java:110) at com.atlassian.confluence.extra.flyingpdf.FlyingSaucerPdfExporterService.createPdfForSpace(FlyingSaucerPdfExporterService.java:58) at com.atlassian.confluence.extra.flyingpdf.PdfExportLongRunningTask$1.doInTransactionWithoutResult(PdfExportLongRunningTask.java:70) ... {noformat} +Repro steps:+ # Create a space with some content # Add the following PDF layout to the PDF Space Export Header/Footer: {code} <div /> {code} # Export the space as a PDF. +Workaround:+ Change your div to have a closing tag: {code}<div ... >...</div>{code}
    via by Alex Conde [Atlassian],
  • Generating a space PDF export with an {{div}} tag closed in the same tag where it starts fails with the following message (see screenshot). {noformat}Failed during PDF export. Exception message - Exception thrown while rendering the page 'no title found' to the PDF document{noformat} You will also get the following warnings and error in the logs: {noformat} 2012-08-10 18:02:13,734 WARN [Long running task: PDF Space Export] [lobobrowser.html.domimpl.HTMLScriptElementImpl] processScript Javascript error at bundle://29.0:1/sh/src/shCore.js:32: ReferenceError: "XRegExp" is not defined. (bundle://29.0:1/sh/src/shCore.js#32) -- url: /spaces/flyingpdf/doflyingpdf.action | userName: alex | referer: http://localhost:6429/spaces/flyingpdf/flyingpdf.action?key=ds | action: doflyingpdf org.mozilla.javascript.EcmaError: ReferenceError: "XRegExp" is not defined. (bundle://29.0:1/sh/src/shCore.js#32) at org.mozilla.javascript.ScriptRuntime.constructError(ScriptRuntime.java:3229) at org.mozilla.javascript.ScriptRuntime.constructError(ScriptRuntime.java:3219) ... 2012-08-10 18:02:13,770 WARN [Long running task: PDF Space Export] [lobobrowser.html.domimpl.HTMLScriptElementImpl] processScript Javascript error at bundle://29.0:1/sh/scripts/shBrushJava.js:50: TypeError: Cannot read property "Highlighter" from undefined (bundle://29.0:1/sh/scripts/shBrushJava.js#50) -- url: /spaces/flyingpdf/doflyingpdf.action | userName: alex | referer: http://localhost:6429/spaces/flyingpdf/flyingpdf.action?key=ds | action: doflyingpdf org.mozilla.javascript.EcmaError: TypeError: Cannot read property "Highlighter" from undefined (bundle://29.0:1/sh/scripts/shBrushJava.js#50) at org.mozilla.javascript.ScriptRuntime.constructError(ScriptRuntime.java:3229) at org.mozilla.javascript.ScriptRuntime.constructError(ScriptRuntime.java:3219) ... 2012-08-10 18:02:13,770 WARN [Long running task: PDF Space Export] [lobobrowser.html.domimpl.HTMLScriptElementImpl] processScript Javascript error at bundle://29.0:1/template.html:2: TypeError: Cannot read property "config" from undefined (bundle://29.0:1/template.html#2) -- url: /spaces/flyingpdf/doflyingpdf.action | userName: alex | referer: http://localhost:6429/spaces/flyingpdf/flyingpdf.action?key=ds | action: doflyingpdf org.mozilla.javascript.EcmaError: TypeError: Cannot read property "config" from undefined (bundle://29.0:1/template.html#2) at org.mozilla.javascript.ScriptRuntime.constructError(ScriptRuntime.java:3229) at org.mozilla.javascript.ScriptRuntime.constructError(ScriptRuntime.java:3219) ... 2012-08-10 18:02:15,325 ERROR [Long running task: PDF Space Export] [core.task.longrunning.AbstractLongRunningTask] doInTransactionWithoutResult Error during PDF export -- url: /spaces/flyingpdf/doflyingpdf.action | userName: alex | referer: http://localhost:6429/spaces/flyingpdf/flyingpdf.action?key=ds | action: doflyingpdf com.atlassian.confluence.importexport.ImportExportException: Exception thrown while rendering the page 'no title found' to the PDF document /opt/atlassian/Confluence/data/confluence-4.2.12/temp/pdfexport-20120810-100812-1802-17/ds-100812-1802-18.pdf at com.atlassian.confluence.extra.flyingpdf.FlyingSaucerXmlToPdfConverter.convertXhtmlToPdf(FlyingSaucerXmlToPdfConverter.java:110) at com.atlassian.confluence.extra.flyingpdf.FlyingSaucerPdfExporterService.createPdfForSpace(FlyingSaucerPdfExporterService.java:58) at com.atlassian.confluence.extra.flyingpdf.PdfExportLongRunningTask$1.doInTransactionWithoutResult(PdfExportLongRunningTask.java:70) ... {noformat} +Repro steps:+ # Create a space with some content # Add the following PDF layout to the PDF Space Export Header/Footer: {code} <div /> {code} # Export the space as a PDF. +Workaround:+ Change your div to have a closing tag: {code}<div ... >...</div>{code}
    via by Alejandro Conde Carrillo,
  • GitHub comment 37#29161031
    via GitHub by jonas
    ,
  • GitHub comment 36#137247779
    via GitHub by rodneyrehm
    ,
  • Calling JS functions from Java
    via by (Jeremy Quinn),
  • GitHub comment 11#258725451
    via GitHub by mebigfatguy
    ,
  • RE: dev-tech-js-engine-rhino Digest, Vol 30, Issue 16
    via by Clifton B. Sothoron Jr.,
    • org.mozilla.javascript.EcmaError: ReferenceError: "XRegExp" is not defined. (bundle://29.0:1/sh/src/shCore.js#32) at org.mozilla.javascript.ScriptRuntime.constructError(ScriptRuntime.java:3229) at org.mozilla.javascript.ScriptRuntime.constructError(ScriptRuntime.java:3219)

    Users with the same issue

    Unknown visitor
    Unknown visitor2 times, last one,
    Unknown visitor
    Unknown visitor1 times, last one,
    Unknown visitor
    Unknown visitor1 times, last one,
    JurajiJuraji
    5 times, last one,
    Unknown visitor
    Unknown visitor1 times, last one,