VueJS未知组件

时间:2019-04-02 11:47:46

标签: vue.js vuejs2

我在安装的挂钩上有此代码

我正在使用[ERROR] net.sf.jasperreports.engine.JRException: Error loading scriptlet class: enco.sox2.workspace.ImageFormatterScriptlet. enco.sox2.reportmanager.ReportException: net.sf.jasperreports.engine.JRException: Error loading scriptlet class: enco.sox2.workspace.ImageFormatterScriptlet. at enco.sox2.reportmanager.ReportCommand.fillReport(ReportCommand.java:110) at enco.sox2.reportmanager.ReportCommand.export(ReportCommand.java:165) at enco.sox2.reportmanager.ReportCommand.export(ReportCommand.java:159) at enco.sox2.reportmanager.ReportManager.generateReportToStream(ReportManager.java:175) at enco.sox2.cdo.server.reports.service.CdoReportService.generateReportToStream(CdoReportService.java:87) at enco.sox2.workspace.cdo.server.internal.CreateReportIndication.responding(CreateReportIndication.java:103) at org.eclipse.emf.cdo.server.internal.net4j.protocol.CDOServerIndicationWithMonitoring.responding(CDOServerIndicationWithMonitoring.java:177) at org.eclipse.net4j.signal.IndicationWithMonitoring.responding(IndicationWithMonitoring.java:93) at org.eclipse.net4j.signal.IndicationWithResponse.doExtendedOutput(IndicationWithResponse.java:106) at org.eclipse.net4j.signal.Signal.doOutput(Signal.java:346) at org.eclipse.net4j.signal.IndicationWithResponse.execute(IndicationWithResponse.java:75) at org.eclipse.net4j.signal.IndicationWithMonitoring.execute(IndicationWithMonitoring.java:66) at org.eclipse.net4j.signal.Signal.runSync(Signal.java:283) at org.eclipse.net4j.signal.Signal.run(Signal.java:162) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) at java.lang.Thread.run(Thread.java:745) Caused by: net.sf.jasperreports.engine.JRException: Error loading scriptlet class: enco.sox2.workspace.ImageFormatterScriptlet. at net.sf.jasperreports.engine.scriptlets.DefaultScriptletFactory.getScriptlet(DefaultScriptletFactory.java:115) at net.sf.jasperreports.engine.scriptlets.DefaultScriptletFactory.getScriplets(DefaultScriptletFactory.java:90) at net.sf.jasperreports.engine.fill.JRFillDataset.createScriptlets(JRFillDataset.java:512) at net.sf.jasperreports.engine.fill.JRFillDataset.setParameterValues(JRFillDataset.java:631) at net.sf.jasperreports.engine.fill.BaseReportFiller.setParameters(BaseReportFiller.java:436) at net.sf.jasperreports.engine.fill.JRBaseFiller.fill(JRBaseFiller.java:523) at net.sf.jasperreports.parts.subreport.SubreportFillPart.fill(SubreportFillPart.java:174) at net.sf.jasperreports.engine.part.FillPart.fill(FillPart.java:77) at net.sf.jasperreports.engine.fill.PartReportFiller.fillPart(PartReportFiller.java:406) at net.sf.jasperreports.engine.fill.PartReportFiller.fillParts(PartReportFiller.java:385) at net.sf.jasperreports.engine.fill.PartReportFiller.fillDetail(PartReportFiller.java:337) at net.sf.jasperreports.engine.fill.PartReportFiller.fillReport(PartReportFiller.java:280) at net.sf.jasperreports.engine.fill.PartReportFiller.fill(PartReportFiller.java:214) at net.sf.jasperreports.engine.fill.BaseReportFiller.fill(BaseReportFiller.java:396) at net.sf.jasperreports.engine.fill.JRFiller.fill(JRFiller.java:91) at net.sf.jasperreports.engine.JasperFillManager.fill(JasperFillManager.java:456) at net.sf.jasperreports.engine.JasperFillManager.fillReport(JasperFillManager.java:863) at enco.sox2.reportmanager.ReportCommand.fillReport(ReportCommand.java:97) ... 16 more Caused by: java.lang.ClassNotFoundException: enco.sox2.workspace.ImageFormatterScriptlet cannot be found by enco.sox2.jasperreports_1.0.0.qualifier at org.eclipse.osgi.internal.loader.BundleLoader.findClassInternal(BundleLoader.java:484) at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:395) at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:387) at org.eclipse.osgi.internal.loader.ModuleClassLoader.loadClass(ModuleClassLoader.java:150) at java.lang.ClassLoader.loadClass(ClassLoader.java:357) at java.lang.Class.forName0(Native Method) at java.lang.Class.forName(Class.java:348) at net.sf.jasperreports.engine.util.JRClassLoader.loadClassForRealName(JRClassLoader.java:174) at net.sf.jasperreports.engine.util.JRClassLoader.loadClassForName(JRClassLoader.java:114) at net.sf.jasperreports.engine.scriptlets.DefaultScriptletFactory.getScriptlet(DefaultScriptletFactory.java:110) ... 33 more !ENTRY enco.sox2.cdo.server.reports 4 0 2019-04-02 15:13:16.794 !MESSAGE net.sf.jasperreports.engine.JRException: Error loading scriptlet class: enco.sox2.workspace.ImageFormatterScriptlet. !STACK 0 enco.sox2.reportmanager.ReportException: net.sf.jasperreports.engine.JRException: Error loading scriptlet class: enco.sox2.workspace.ImageFormatterScriptlet. at enco.sox2.reportmanager.ReportCommand.fillReport(ReportCommand.java:110) at enco.sox2.reportmanager.ReportCommand.export(ReportCommand.java:165) at enco.sox2.reportmanager.ReportCommand.export(ReportCommand.java:159) at enco.sox2.reportmanager.ReportManager.generateReportToStream(ReportManager.java:175) at enco.sox2.cdo.server.reports.service.CdoReportService.generateReportToStream(CdoReportService.java:87) at enco.sox2.workspace.cdo.server.internal.CreateReportIndication.responding(CreateReportIndication.java:103) at org.eclipse.emf.cdo.server.internal.net4j.protocol.CDOServerIndicationWithMonitoring.responding(CDOServerIndicationWithMonitoring.java:177) at org.eclipse.net4j.signal.IndicationWithMonitoring.responding(IndicationWithMonitoring.java:93) at org.eclipse.net4j.signal.IndicationWithResponse.doExtendedOutput(IndicationWithResponse.java:106) at org.eclipse.net4j.signal.Signal.doOutput(Signal.java:346) at org.eclipse.net4j.signal.IndicationWithResponse.execute(IndicationWithResponse.java:75) at org.eclipse.net4j.signal.IndicationWithMonitoring.execute(IndicationWithMonitoring.java:66) at org.eclipse.net4j.signal.Signal.runSync(Signal.java:283) at org.eclipse.net4j.signal.Signal.run(Signal.java:162) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) at java.lang.Thread.run(Thread.java:745) Caused by: net.sf.jasperreports.engine.JRException: Error loading scriptlet class: enco.sox2.workspace.ImageFormatterScriptlet. at net.sf.jasperreports.engine.scriptlets.DefaultScriptletFactory.getScriptlet(DefaultScriptletFactory.java:115) at net.sf.jasperreports.engine.scriptlets.DefaultScriptletFactory.getScriplets(DefaultScriptletFactory.java:90) at net.sf.jasperreports.engine.fill.JRFillDataset.createScriptlets(JRFillDataset.java:512) at net.sf.jasperreports.engine.fill.JRFillDataset.setParameterValues(JRFillDataset.java:631) at net.sf.jasperreports.engine.fill.BaseReportFiller.setParameters(BaseReportFiller.java:436) at net.sf.jasperreports.engine.fill.JRBaseFiller.fill(JRBaseFiller.java:523) at net.sf.jasperreports.parts.subreport.SubreportFillPart.fill(SubreportFillPart.java:174) at net.sf.jasperreports.engine.part.FillPart.fill(FillPart.java:77) at net.sf.jasperreports.engine.fill.PartReportFiller.fillPart(PartReportFiller.java:406) at net.sf.jasperreports.engine.fill.PartReportFiller.fillParts(PartReportFiller.java:385) at net.sf.jasperreports.engine.fill.PartReportFiller.fillDetail(PartReportFiller.java:337) at net.sf.jasperreports.engine.fill.PartReportFiller.fillReport(PartReportFiller.java:280) at net.sf.jasperreports.engine.fill.PartReportFiller.fill(PartReportFiller.java:214) at net.sf.jasperreports.engine.fill.BaseReportFiller.fill(BaseReportFiller.java:396) at net.sf.jasperreports.engine.fill.JRFiller.fill(JRFiller.java:91) at net.sf.jasperreports.engine.JasperFillManager.fill(JasperFillManager.java:456) at net.sf.jasperreports.engine.JasperFillManager.fillReport(JasperFillManager.java:863) at enco.sox2.reportmanager.ReportCommand.fillReport(ReportCommand.java:97) ... 16 more Caused by: java.lang.ClassNotFoundException: enco.sox2.workspace.ImageFormatterScriptlet cannot be found by enco.sox2.jasperreports_1.0.0.qualifier at org.eclipse.osgi.internal.loader.BundleLoader.findClassInternal(BundleLoader.java:484) at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:395) at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:387) at org.eclipse.osgi.internal.loader.ModuleClassLoader.loadClass(ModuleClassLoader.java:150) at java.lang.ClassLoader.loadClass(ClassLoader.java:357) at java.lang.Class.forName0(Native Method) at java.lang.Class.forName(Class.java:348) at net.sf.jasperreports.engine.util.JRClassLoader.loadClassForRealName(JRClassLoader.java:174) at net.sf.jasperreports.engine.util.JRClassLoader.loadClassForName(JRClassLoader.java:114) at net.sf.jasperreports.engine.scriptlets.DefaultScriptletFactory.getScriptlet(DefaultScriptletFactory.java:110) ... 33 more 中的组件,并且已经在安装的钩子中对其进行了初始化,如下所示:

Synfusion

问题在于数据属性中的data() { return { treeViewInstance: {}, }; }, mounted() { var data = [ { nodeId: '01', nodeText: 'Music', nodeChild: [ { nodeId: '01-01', nodeText: 'Gouttes.mp3' } ] }, { nodeId: '02', nodeText: 'Videos', expanded: true, nodeChild: [ { nodeId: '02-01', nodeText: 'Naturals.mp4' }, { nodeId: '02-02', nodeText: 'Wild.mpeg' }, ] }, { nodeId: '03', nodeText: 'Documents', nodeChild: [ { nodeId: '03-01', nodeText: 'Environment Pollution.docx' }, { nodeId: '03-02', nodeText: 'Global Water, Sanitation, & Hygiene.docx' }, { nodeId: '03-03', nodeText: 'Global Warming.ppt' }, { nodeId: '03-04', nodeText: 'Social Network.pdf' }, { nodeId: '03-05', nodeText: 'Youth Empowerment.pdf' }, ] }, ]; //Initialize TreeView component var treeViewInstance = new ej.navigations.TreeView({ fields: { dataSource: data, id: 'nodeId', text: 'nodeText', child: 'nodeChild' }, allowDragAndDrop: true, }); this.treeViewInstance = treeViewInstance; console.log(treeViewInstance); //Render initialized TreeView treeViewInstance.appendTo("#tree"); 具有一个怪异的值treeViewInstance

DevTools Screenshot

我不知道该怎么做才能将Unknown Component放入treeViewInstance

1 个答案:

答案 0 :(得分:0)

您的组件需要注册: Component Registration

类似这样的东西:

components:
{
    my-component: myComponent
},