我将html中的代码拷贝到jsp后出现的问题
java.lang.nullpointerexception
at org.eclipse.wst.sse.core.internal.text.basicstructureddocumentregion.getfulltext(basicstructureddocumentregion.java:151)
at org.eclipse.wst.css.core.internal.document.cssdeclarationitemparser.getcollapsedtext(cssdeclarationitemparser.java:1092)
at org.eclipse.wst.css.core.internal.document.cssdeclarationitemparser.makestring(cssdeclarationitemparser.java:873)
at org.eclipse.wst.css.core.internal.document.cssdeclarationitemparser.createstringvalue(cssdeclarationitemparser.java:539)
at org.eclipse.wst.css.core.internal.document.cssdeclarationitemparser.createprimitivevalue(cssdeclarationitemparser.java:392)
at org.eclipse.wst.css.core.internal.document.cssdeclarationitemparser.setupvalues(cssdeclarationitemparser.java:1021)
at org.eclipse.wst.css.core.internal.document.cssdeclarationitemparser.setupvalues(cssdeclarationitemparser.java:969)
at org.eclipse.wst.css.core.internal.document.cssstyledeclitemimpl.setcssvaluetextcore(cssstyledeclitemimpl.java:260)
at org.eclipse.wst.css.core.internal.document.cssstyledeclitemimpl.setcssvaluetext(cssstyledeclitemimpl.java:234)
at org.eclipse.wst.css.core.internal.document.cssstyledeclarationimpl.setproperty(cssstyledeclarationimpl.java:267)
at org.eclipse.wst.html.core.internal.htmlcss.cssquerycontext.applyfull(cssquerycontext.java:73)
at org.eclipse.wst.html.core.internal.htmlcss.cssquerytraverser.getdeclaration(cssquerytraverser.java:56)
at org.eclipse.jst.pagedesigner.css2.cssutil.getcssdeclaration(cssutil.java:174)
at org.eclipse.jst.pagedesigner.css2.style.abstractstyle.calculatedeclaration(abstractstyle.java:143)
at org.eclipse.jst.pagedesigner.css2.style.abstractstyle.getdeclaration(abstractstyle.java:159)
at org.eclipse.jst.pagedesigner.css2.style.abstractstyle.calculateproperty(abstractstyle.java:201)
at org.eclipse.jst.pagedesigner.css2.style.abstractstyle.getstyleproperty(abstractstyle.java:124)
at org.eclipse.jst.pagedesigner.css2.style.abstractstyle.getdisplay(abstractstyle.java:536)
at org.eclipse.jst.pagedesigner.css2.layout.cssfigure.regetlayout(cssfigure.java:148)
at org.eclipse.jst.pagedesigner.css2.layout.cssfigure.invalidatecss(cssfigure.java:95)
at org.eclipse.jst.pagedesigner.css2.layout.cssfigure.setcssstyle(cssfigure.java:79)
at org.eclipse.jst.pagedesigner.figurehandler.defaultfigurehandler.updatefigure(defaultfigurehandler.java:32)
at org.eclipse.gef.editparts.abstracteditpart.addnotify(abstracteditpart.java:253)
at org.eclipse.gef.editparts.abstractgraphicaleditpart.addnotify(abstractgraphicaleditpart.java:223)
at org.eclipse.jst.pagedesigner.parts.nodeeditpart.addnotify(nodeeditpart.java:104)
at org.eclipse.jst.pagedesigner.parts.elementeditpart.addnotify(elementeditpart.java:155)
at org.eclipse.gef.editparts.abstracteditpart.addchild(abstracteditpart.java:212)
at org.eclipse.jst.pagedesigner.parts.elementeditpart.refresh(elementeditpart.java:339)
at org.eclipse.jst.pagedesigner.parts.elementeditpart.refresh(elementeditpart.java:264)
at org.eclipse.gef.editparts.abstracteditpart.addnotify(abstracteditpart.java:253)
at org.eclipse.gef.editparts.abstractgraphicaleditpart.addnotify(abstractgraphicaleditpart.java:223)
at org.eclipse.jst.pagedesigner.parts.nodeeditpart.addnotify(nodeeditpart.java:104)
at org.eclipse.jst.pagedesigner.parts.elementeditpart.addnotify(elementeditpart.java:155)
at org.eclipse.osgi.framework.eventmgr.listenerqueue.dispatcheventsynchronous(listenerqueue.java:148)
at org.eclipse.equinox.internal.event.eventadminimpl.dispatchevent(eventadminimpl.java:135)
at org.eclipse.equinox.internal.event.eventadminimpl.sendevent(eventadminimpl.java:78)
at org.eclipse.equinox.internal.event.eventcomponent.sendevent(eventcomponent.java:39)
at org.eclipse.e4.ui.services.internal.events.eventbroker.send(eventbroker.java:80)
at org.eclipse.e4.ui.internal.workbench.uieventpublisher.notifychanged(uieventpublisher.java:58)
at org.eclipse.emf.common.notify.impl.basicnotifierimpl.enotify(basicnotifierimpl.java:374)
at org.eclipse.e4.ui.model.application.ui.impl.elementcontainerimpl.setselectedelement(elementcontainerimpl.java:171)
at org.eclipse.e4.ui.internal.workbench.modelserviceimpl.showelementinwindow(modelserviceimpl.java:576)
at org.eclipse.e4.ui.internal.workbench.modelserviceimpl.bringtotop(modelserviceimpl.java:543)
at org.eclipse.e4.ui.internal.workbench.partserviceimpl.delegatebringtotop(partserviceimpl.java:610)
at org.eclipse.e4.ui.internal.workbench.partserviceimpl.bringtotop(partserviceimpl.java:322)
at org.eclipse.e4.ui.internal.workbench.partserviceimpl.showpart(partserviceimpl.java:1034)
at org.eclipse.ui.internal.workbenchpage.busyopeneditor(workbenchpage.java:3112)
at org.eclipse.ui.internal.workbenchpage.access$21(workbenchpage.java:3034)
at org.eclipse.ui.internal.workbenchpage$8.run(workbenchpage.java:3016)
at org.eclipse.jdt.ui.actions.selectiondispatchaction.dispatchrun(selectiondispatchaction.java:275)
at org.eclipse.jdt.ui.actions.selectiondispatchaction.run(selectiondispatchaction.java:251)
at org.eclipse.jdt.internal.ui.packageview.packageexploreractiongroup.handleopen(packageexploreractiongroup.java:376)
at org.eclipse.jdt.internal.ui.packageview.packageexplorerpart$4.open(packageexplorerpart.java:538)
at org.eclipse.ui.openandlinkwitheditorhelper$internallistener.open(openandlinkwitheditorhelper.java:47)
at org.eclipse.jface.viewers.structuredviewer$2.run(structuredviewer.java:866)
at org.eclipse.core.runtime.saferunner.run(saferunner.java:42)
at org.eclipse.ui.internal.jfaceutil$1.run(jfaceutil.java:49)
at org.eclipse.jface.util.saferunnable.run(saferunnable.java:175)
at org.eclipse.jface.viewers.structuredviewer.fireopen(structuredviewer.java:864)
at org.eclipse.jface.viewers.structuredviewer.handleopen(structuredviewer.java:1152)
at org.eclipse.jface.viewers.structuredviewer$6.handleopen(structuredviewer.java:1256)
at org.eclipse.jface.util.openstrategy.fireopenevent(openstrategy.java:275)
at org.eclipse.jface.util.openstrategy.access$2(openstrategy.java:269)
回复讨论(解决方案)
重新命名文件的名字下。
在文件上右键:open with
在文件上右键:open with
谢谢大神
在文件上右键:open with
谢谢大神
怎么预览jsp内容
太感谢大神了,open with解决了,
版权声明:本文内容由互联网用户自发贡献,该文观点仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容, 请发送邮件至253000106@qq.com举报,一经查实,本站将立刻删除。
发布者:PHP中文网,转转请注明出处:https://www.chuangxiangniao.com/p/3117499.html