org.mozilla.javascript.EcmaError: TypeError: Cannot read property "config" from undefined (bundle://29.0:1/template.html#2)

Atlassian JIRA | Alejandro Conde Carrillo | 4 years ago
  1. 0

    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}

    Atlassian JIRA | 4 years ago | Alex Conde [Atlassian]
    org.mozilla.javascript.EcmaError: TypeError: Cannot read property "config" from undefined (bundle://29.0:1/template.html#2)
  2. 0

    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}

    Atlassian JIRA | 4 years ago | Alejandro Conde Carrillo
    org.mozilla.javascript.EcmaError: TypeError: Cannot read property "config" from undefined (bundle://29.0:1/template.html#2)
  3. 0

    Unable to get rhino to convert json

    GitHub | 3 years ago | steowens
    org.mozilla.javascript.EcmaError: ReferenceError: "JSON" is not defined. (myscript.js#1)
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    GitHub comment 37#29161031

    GitHub | 3 years ago | jonas
    org.mozilla.javascript.EcmaError: ReferenceError: "jasmine" is not defined. (/opt/scala-js/test/target/streams/test/externalDependencyClasspath/$global/package-js/extracted-jars/jasmine-1.3.1.jar--696c88a/META-INF/resources/webjars/jasmine/1.3.1/jasmine-html.js#1)
  6. 0

    GitHub comment 36#137247779

    GitHub | 1 year ago | rodneyrehm
    java.lang.RuntimeException: could not run script

    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.mozilla.javascript.EcmaError

      TypeError: Cannot read property "config" from undefined (bundle://29.0:1/template.html#2)

      at org.mozilla.javascript.ScriptRuntime.constructError()
    2. Rhino
      ScriptRuntime.constructError
      1. org.mozilla.javascript.ScriptRuntime.constructError(ScriptRuntime.java:3229)
      2. org.mozilla.javascript.ScriptRuntime.constructError(ScriptRuntime.java:3219)
      2 frames