0 0

could not open the editor argument not valid----------------------jsp文件打不开5

java.lang.IllegalArgumentException: Argument not valid
at org.eclipse.swt.SWT.error(SWT.java:3761)
at org.eclipse.swt.SWT.error(SWT.java:3695)
at org.eclipse.swt.SWT.error(SWT.java:3666)
at org.eclipse.swt.custom.StyledText.setStyleRanges(StyledText.java:7914)
at org.eclipse.swt.custom.StyledText.replaceStyleRanges(StyledText.java:6376)
at org.eclipse.jface.text.TextViewer.addPresentation(TextViewer.java:4442)
at org.eclipse.jface.text.TextViewer.changeTextPresentation(TextViewer.java:4521)
at org.eclipse.wst.sse.ui.internal.provisional.style.StructuredPresentationReconciler.applyTextRegionCollection(StructuredPresentationReconciler.java:1086)
at org.eclipse.wst.sse.ui.internal.provisional.style.StructuredPresentationReconciler.processDamage(StructuredPresentationReconciler.java:1061)
at org.eclipse.wst.sse.ui.internal.provisional.style.StructuredPresentationReconciler$InternalListener.inputDocumentChanged(StructuredPresentationReconciler.java:470)
at org.eclipse.wst.sse.ui.internal.provisional.style.StructuredPresentationReconciler.install(StructuredPresentationReconciler.java:805)
at org.eclipse.wst.sse.ui.internal.StructuredTextViewer.updateHighlighter(StructuredTextViewer.java:933)
at org.eclipse.wst.sse.ui.internal.StructuredTextViewer.setDocument(StructuredTextViewer.java:791)
at org.eclipse.jface.text.source.SourceViewer.setDocument(SourceViewer.java:496)
at org.eclipse.ui.texteditor.AbstractTextEditor.initializeSourceViewer(AbstractTextEditor.java:3807)
at org.eclipse.ui.texteditor.AbstractTextEditor.createPartControl(AbstractTextEditor.java:3363)
at org.eclipse.ui.texteditor.StatusTextEditor.createPartControl(StatusTextEditor.java:53)
at org.eclipse.ui.texteditor.AbstractDecoratedTextEditor.createPartControl(AbstractDecoratedTextEditor.java:394)
at org.eclipse.wst.sse.ui.StructuredTextEditor.createPartControl(StructuredTextEditor.java:1586)
at org.eclipse.ui.internal.EditorReference.createPartHelper(EditorReference.java:661)
at org.eclipse.ui.internal.EditorReference.createPart(EditorReference.java:428)
at org.eclipse.ui.internal.WorkbenchPartReference.getPart(WorkbenchPartReference.java:594)
at org.eclipse.ui.internal.EditorReference.getEditor(EditorReference.java:266)
at org.eclipse.ui.internal.WorkbenchPage.busyOpenEditorBatched(WorkbenchPage.java:2820)
at org.eclipse.ui.internal.WorkbenchPage.busyOpenEditor(WorkbenchPage.java:2729)
at org.eclipse.ui.internal.WorkbenchPage.access$11(WorkbenchPage.java:2721)
at org.eclipse.ui.internal.WorkbenchPage$10.run(WorkbenchPage.java:2673)
at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:70)
at org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPage.java:2668)
at org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPage.java:2652)
at org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPage.java:2643)
at org.eclipse.ui.ide.IDE.openEditor(IDE.java:646)
at org.eclipse.ui.ide.IDE.openEditor(IDE.java:605)
at org.eclipse.jdt.internal.ui.javaeditor.EditorUtility.openInEditor(EditorUtility.java:318)
at org.eclipse.jdt.internal.ui.javaeditor.EditorUtility.openInEditor(EditorUtility.java:160)
at org.eclipse.jdt.ui.actions.OpenAction.run(OpenAction.java:228)
at org.eclipse.jdt.ui.actions.OpenAction.run(OpenAction.java:207)
at org.eclipse.jdt.ui.actions.SelectionDispatchAction.dispatchRun(SelectionDispatchAction.java:274)
at org.eclipse.jdt.ui.actions.SelectionDispatchAction.run(SelectionDispatchAction.java:250)
at org.eclipse.jdt.internal.ui.packageview.PackageExplorerActionGroup.handleOpen(PackageExplorerActionGroup.java:363)
at org.eclipse.jdt.internal.ui.packageview.PackageExplorerPart$5.open(PackageExplorerPart.java:603)
at org.eclipse.jface.viewers.StructuredViewer$2.run(StructuredViewer.java:820)
at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:37)
at org.eclipse.core.runtime.Platform.run(Platform.java:880)
at org.eclipse.ui.internal.JFaceUtil$1.run(JFaceUtil.java:48)
at org.eclipse.jface.util.SafeRunnable.run(SafeRunnable.java:175)
at org.eclipse.jface.viewers.StructuredViewer.fireOpen(StructuredViewer.java:818)
at org.eclipse.jface.viewers.StructuredViewer.handleOpen(StructuredViewer.java:1079)
at org.eclipse.jface.viewers.StructuredViewer$6.handleOpen(StructuredViewer.java:1183)
at org.eclipse.jface.util.OpenStrategy.fireOpenEvent(OpenStrategy.java:263)
at org.eclipse.jface.util.OpenStrategy.access$2(OpenStrategy.java:257)
at org.eclipse.jface.util.OpenStrategy$1.handleEvent(OpenStrategy.java:297)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1003)
at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3823)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3422)
at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:2382)
at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2346)
at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:2198)
at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:493)
at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:288)
at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:488)
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:113)
at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:193)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:382)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:179)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:549)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:504)
at org.eclipse.equinox.launcher.Main.run(Main.java:1236)
at org.eclipse.equinox.launcher.Main.main(Main.java:1212)

在myeclipse中其他jsp文件可以打开。就一个打不开。文件绝对存在。。。
应该是jsp文件内部的问题,但是我不知道什么问题。请指教!

问题补充:
回:walsh (中级程序员) 2009-08-20
删除了再新建。,放记事本再copy回来依然是错误。

用Text Editor 打开 是可以的,但是都是文本格式,根本看不清楚在哪里出错。
因为其它jsp页面正常,所以我觉得是该jsp内部有异常!
2009年8月20日 14:44

3个答案 按时间排序 按投票排序

0 0

这种现象 很多是由于 在限制文件头的类型时的代码

不能符合 myeclipse 的 JSP 校验标准

你可以尝试在 mueclipse 中 右键 用 Text Editor 打开

具体看一下 就明白了  

2009年8月20日 17:44
0 0

出现这样的错误是因为:缺少文件。

解决办法有两种:
第一种方法:在你的项目中新建一个JSP页面,然后从文件系统中用记事本或其它编辑工具把你的那个不能打开的JSP页面全部复制过来,然后在项目中删除。

第一种办法应该来说是最简单的,如果你想知道原因,那就是缺少一个文件。
\\WORKSPACE_ROOT\.metadata\.plugins\org.eclipse.core.runtime\.settings\org.eclipse.debug.ui.prefs
WORKSPACE_ROOT代表你的工作区目录。

第二种解决办法:
删除你项目所在文件夹下的.metadata文件夹(或者是在工作区下),然后重启myeclipse,重启后,手动把你的项目导入即可。

2009年8月20日 15:09
0 0

报参数无效,也奇怪,不过myeclipse的确会有时有jsp文件打不开

你修改那个jsp页面看,直到可以打开,去定位下错误

2009年8月20日 14:47

相关推荐

    InvalidArgument-The argument is invalid(解决方案).md

    InvalidArgument-The argument is invalid(解决方案).md

    Python库 | polidoro-py-argument-2.1.0.tar.gz

    "Python库 | polidoro-py-argument-2.1.0.tar.gz"是一个与Python相关的库,其版本为2.1.0,被打包成tar.gz格式的压缩文件。这个库的名字叫做“polidoro-py-argument”,从名称可以推测它可能专注于处理命令行参数或...

    typed-argument-parser:Python的类型化参数解析器

    Tap具有以下优点: 静态类型检查代码完成源代码导航(例如,转到定义并转到...安装Tap需要Python 3.6+ 要从PyPI安装Tap,请运行: pip install typed-argument-parser要从源代码安装Tap,请运行以下命令: git clone ...

    Access-variable-argument-lists-demo.rar_ARGUMENT!

    在编程中,"Access variable-argument lists" 是一个关于函数调用的重要概念,尤其是在C/C++等编程语言中。这个标题暗示我们将会讨论如何在程序中处理可变数量的参数。这种技术允许函数接受不同数量的参数,为编程...

    Cannot invoke setId on bean class 'class ' - argument type mismatch - had object

    标题 "Cannot invoke setId on bean class 'class ' - argument type mismatch - had object" 描述的是一个在使用Spring框架或者类似的依赖注入容器时常见的错误。这个错误通常发生在尝试通过容器设置一个对象属性,...

    Python库 | ReCAP-Argument-Graph-0.1.40.tar.gz

    资源分类:Python库 所属语言:Python 资源全名:ReCAP-Argument-Graph-0.1.40.tar.gz 资源来源:官方 安装方法:https://lanzao.blog.csdn.net/article/details/101784059

    C++出错提示英汉对照表

    Could not find file ''xxx'' -----------------------找不到XXX文件 Declaration missing ; ----------------说明缺少";" houjiuming Declaration syntax error -----------------说明中出现语法错误 Default ...

    pip 错误unused-command-line-argument-hard-error-in-future解决办法

    在我的Mac Air上,用pip安装一些Python库时,偶尔就会遇到一些报错,关于“unused-command-line-argument-hard-error-in-future”,错误如下:复制代码 代码如下:cc -fno-strict-aliasing -fno-common -dynamic -...

    c99-variable-length-array.rar_ARGUMENT!

    标题 "c99-variable-length-array.rar_ARGUMENT!" 指向的是C99标准中的可变长度数组(Variable Length Array,简称VLA)特性,并且在描述中提到了一个与模板参数或参数相关的编译错误。这表明我们将在讨论C语言中VLA...

    Argument-dependent name lookup 参数依赖查找

    ### Argument-dependent Name Lookup (ADL) 参数依赖查找 在C++编程语言中,参数依赖查找(Argument-dependent lookup,简称ADL)或者称为参数依赖名称查找,是用于查找未限定名称函数的一种机制,其查找过程依赖于...

    Passing-a-structure-as-a-function-argument.zip_ARGUMENT!

    // Now the changes will be visible return 0; } ``` 在这个示例中,`updateStudent` 函数接受一个指向 `Student` 结构体的指针,然后修改了指针所指向的结构体的年龄和成绩。在 `main` 函数中,我们看到更新后的...

    解决yolov3_object_tracking中loop of ufunc does not support argument 0 of type Tensor which has问题

    TypeError: loop of ufunc does not support argument 0 of type Tensor which has no callable arctan method 报错行 self.u = np.round(np.dot(self.F, self.u)) #或者 self.u = np.round(self.u + np.dot(K, ...

    Encountered-an-improper-argument问题方法

    keil升级5.25pre(临近几个...会提示Error: Encountered an improper argument 主要解决办法就是替换UV4.exe,可以将低版本中的UV4.exe直接替换 具体操作看:https://blog.csdn.net/u011624093/article/details/80880708

    Universal-USB-Installer

    安装linux工具源码 (UUI) Universal USB ...This Open Source tool falls under the GNU General Public License Version 2 Source Code is made available at time of download, from the official UUI page: ...

    Python库 | polidoro_py_argument-1.4.1-py3-none-any.whl

    资源分类:Python库 所属语言:Python 资源全名:polidoro_py_argument-1.4.1-py3-none-any.whl 资源来源:官方 安装方法:https://lanzao.blog.csdn.net/article/details/101784059

    Python库 | polidoro_py_argument-2.0.4-py3-none-any.whl

    资源分类:Python库 所属语言:Python 资源全名:polidoro_py_argument-2.0.4-py3-none-any.whl 资源来源:官方 安装方法:https://lanzao.blog.csdn.net/article/details/101784059

    DevExpress VCL 13.1.4(v2013vol1.4) 源码-例子-帮助-part2

    Q513198 - Moving focus to TcxDBSpinEdit placed in TdxBarControlContainerItem does not fire the OnExit and OnEnter events and, as a ...not fire the OnGetText event of a dataset field bound to the editor...

    DevExpress VCL 13.1.4(v2013vol1.4) 源码-例子-帮助-part1

    Q513198 - Moving focus to TcxDBSpinEdit placed in TdxBarControlContainerItem does not fire the OnExit and OnEnter events and, as a ...not fire the OnGetText event of a dataset field bound to the editor...

    redis-argument-parser

    用法 var parser = require ( 'redis-argument-parser' )var command = new parser . RedisCommand ( 'mset' ) // or 'MSET'var types = command . parseInputs ( [ 'k1' , 1 , 'k2' , 2 ] )console . log ( types )...

Global site tag (gtag.js) - Google Analytics