分享

在eclipse中查看hadoop远程文件,出现Editor could not be initialized.




wenti.jpg
  1. java.lang.NoClassDefFoundError: org/apache/commons/io/IOUtils
  2.         at org.apache.hadoop.hdfs.DFSInputStream.getBlockReader(DFSInputStream.java:1099)
  3.         at org.apache.hadoop.hdfs.DFSInputStream.blockSeekTo(DFSInputStream.java:533)
  4.         at org.apache.hadoop.hdfs.DFSInputStream.readWithStrategy(DFSInputStream.java:749)
  5.         at org.apache.hadoop.hdfs.DFSInputStream.read(DFSInputStream.java:793)
  6.         at java.io.DataInputStream.read(DataInputStream.java:149)
  7.         at sun.nio.cs.StreamDecoder.readBytes(StreamDecoder.java:283)
  8.         at sun.nio.cs.StreamDecoder.implRead(StreamDecoder.java:325)
  9.         at sun.nio.cs.StreamDecoder.read(StreamDecoder.java:177)
  10.         at java.io.InputStreamReader.read(InputStreamReader.java:184)
  11.         at java.io.BufferedReader.fill(BufferedReader.java:154)
  12.         at java.io.BufferedReader.read1(BufferedReader.java:205)
  13.         at java.io.BufferedReader.read(BufferedReader.java:279)
  14.         at java.io.Reader.read(Reader.java:140)
  15.         at org.eclipse.ui.editors.text.StorageDocumentProvider.setDocumentContent(StorageDocumentProvider.java:142)
  16.         at org.eclipse.ui.editors.text.StorageDocumentProvider.setDocumentContent(StorageDocumentProvider.java:194)
  17.         at org.eclipse.ui.editors.text.StorageDocumentProvider.createDocument(StorageDocumentProvider.java:229)
  18.         at org.eclipse.ui.editors.text.StorageDocumentProvider.createElementInfo(StorageDocumentProvider.java:261)
  19.         at org.eclipse.ui.texteditor.AbstractDocumentProvider.connect(AbstractDocumentProvider.java:400)
  20.         at org.eclipse.ui.editors.text.TextFileDocumentProvider.connect(TextFileDocumentProvider.java:480)
  21.         at org.eclipse.ui.texteditor.AbstractTextEditor.doSetInput(AbstractTextEditor.java:4230)
  22.         at org.eclipse.ui.texteditor.StatusTextEditor.doSetInput(StatusTextEditor.java:237)
  23.         at org.eclipse.ui.texteditor.AbstractDecoratedTextEditor.doSetInput(AbstractDecoratedTextEditor.java:1480)
  24.         at org.eclipse.ui.editors.text.TextEditor.doSetInput(TextEditor.java:169)
  25.         at org.eclipse.ui.texteditor.AbstractTextEditor$19.run(AbstractTextEditor.java:3217)
  26.         at org.eclipse.jface.operation.ModalContext.runInCurrentThread(ModalContext.java:464)
  27.         at org.eclipse.jface.operation.ModalContext.run(ModalContext.java:372)
  28.         at org.eclipse.ui.internal.WorkbenchWindow$13.run(WorkbenchWindow.java:1818)
  29.         at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:70)
  30.         at org.eclipse.ui.internal.WorkbenchWindow.run(WorkbenchWindow.java:1815)
  31.         at org.eclipse.ui.texteditor.AbstractTextEditor.internalInit(AbstractTextEditor.java:3235)
  32.         at org.eclipse.ui.texteditor.AbstractTextEditor.init(AbstractTextEditor.java:3262)
  33.         at org.eclipse.ui.internal.EditorReference.initialize(EditorReference.java:359)
  34.         at org.eclipse.ui.internal.e4.compatibility.CompatibilityPart.create(CompatibilityPart.java:306)
  35.         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
  36.         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
  37.         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
  38.         at java.lang.reflect.Method.invoke(Method.java:601)
  39.         at org.eclipse.e4.core.internal.di.MethodRequestor.execute(MethodRequestor.java:56)
  40.         at org.eclipse.e4.core.internal.di.InjectorImpl.processAnnotated(InjectorImpl.java:877)
  41.         at org.eclipse.e4.core.internal.di.InjectorImpl.processAnnotated(InjectorImpl.java:857)
  42.         at org.eclipse.e4.core.internal.di.InjectorImpl.inject(InjectorImpl.java:119)
  43.         at org.eclipse.e4.core.internal.di.InjectorImpl.internalMake(InjectorImpl.java:333)
  44.         at org.eclipse.e4.core.internal.di.InjectorImpl.make(InjectorImpl.java:254)
  45.         at org.eclipse.e4.core.contexts.ContextInjectionFactory.make(ContextInjectionFactory.java:162)
  46.         at org.eclipse.e4.ui.internal.workbench.ReflectionContributionFactory.createFromBundle(ReflectionContributionFactory.java:102)
  47.         at org.eclipse.e4.ui.internal.workbench.ReflectionContributionFactory.doCreate(ReflectionContributionFactory.java:71)
  48.         at org.eclipse.e4.ui.internal.workbench.ReflectionContributionFactory.create(ReflectionContributionFactory.java:53)
  49.         at org.eclipse.e4.ui.workbench.renderers.swt.ContributedPartRenderer.createWidget(ContributedPartRenderer.java:129)
  50.         at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.createWidget(PartRenderingEngine.java:949)
  51.         at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:633)
  52.         at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:735)
  53.         at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.access$2(PartRenderingEngine.java:706)
  54.         at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$7.run(PartRenderingEngine.java:700)
  55.         at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
  56.         at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.createGui(PartRenderingEngine.java:685)
  57.         at org.eclipse.e4.ui.workbench.renderers.swt.StackRenderer.showTab(StackRenderer.java:1096)
  58.         at org.eclipse.e4.ui.workbench.renderers.swt.LazyStackRenderer$1.handleEvent(LazyStackRenderer.java:66)
  59.         at org.eclipse.e4.ui.services.internal.events.UIEventHandler$1.run(UIEventHandler.java:41)
  60.         at org.eclipse.swt.widgets.Synchronizer.syncExec(Synchronizer.java:180)
  61.         at org.eclipse.ui.internal.UISynchronizer.syncExec(UISynchronizer.java:150)
  62.         at org.eclipse.swt.widgets.Display.syncExec(Display.java:4688)
  63.         at org.eclipse.e4.ui.internal.workbench.swt.E4Application$1.syncExec(E4Application.java:205)
  64.         at org.eclipse.e4.ui.services.internal.events.UIEventHandler.handleEvent(UIEventHandler.java:38)
  65.         at org.eclipse.equinox.internal.event.EventHandlerWrapper.handleEvent(EventHandlerWrapper.java:197)
  66.         at org.eclipse.equinox.internal.event.EventHandlerTracker.dispatchEvent(EventHandlerTracker.java:197)
  67.         at org.eclipse.equinox.internal.event.EventHandlerTracker.dispatchEvent(EventHandlerTracker.java:1)
  68.         at org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEvent(EventManager.java:230)
  69.         at org.eclipse.osgi.framework.eventmgr.ListenerQueue.dispatchEventSynchronous(ListenerQueue.java:148)
  70.         at org.eclipse.equinox.internal.event.EventAdminImpl.dispatchEvent(EventAdminImpl.java:135)
  71.         at org.eclipse.equinox.internal.event.EventAdminImpl.sendEvent(EventAdminImpl.java:78)
  72.         at org.eclipse.equinox.internal.event.EventComponent.sendEvent(EventComponent.java:39)
  73.         at org.eclipse.e4.ui.services.internal.events.EventBroker.send(EventBroker.java:80)
  74.         at org.eclipse.e4.ui.internal.workbench.UIEventPublisher.notifyChanged(UIEventPublisher.java:58)
  75.         at org.eclipse.emf.common.notify.impl.BasicNotifierImpl.eNotify(BasicNotifierImpl.java:374)
  76.         at org.eclipse.e4.ui.model.application.ui.impl.ElementContainerImpl.setSelectedElement(ElementContainerImpl.java:171)
  77.         at org.eclipse.e4.ui.internal.workbench.ModelServiceImpl.showElementInWindow(ModelServiceImpl.java:576)
  78.         at org.eclipse.e4.ui.internal.workbench.ModelServiceImpl.bringToTop(ModelServiceImpl.java:543)
  79.         at org.eclipse.e4.ui.internal.workbench.PartServiceImpl.delegateBringToTop(PartServiceImpl.java:610)
  80.         at org.eclipse.e4.ui.internal.workbench.PartServiceImpl.bringToTop(PartServiceImpl.java:322)
  81.         at org.eclipse.e4.ui.internal.workbench.PartServiceImpl.showPart(PartServiceImpl.java:1034)
  82.         at org.eclipse.ui.internal.WorkbenchPage.busyOpenEditor(WorkbenchPage.java:3112)
  83.         at org.eclipse.ui.internal.WorkbenchPage.access$21(WorkbenchPage.java:3034)
  84.         at org.eclipse.ui.internal.WorkbenchPage$8.run(WorkbenchPage.java:3016)
  85.         at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:70)
  86.         at org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPage.java:3012)
  87.         at org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPage.java:2976)
  88.         at org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPage.java:2959)
  89.         at org.apache.hadoop.eclipse.actions.DFSActionImpl.open(DFSActionImpl.java:351)
  90.         at org.apache.hadoop.eclipse.actions.DFSActionImpl.access$100(DFSActionImpl.java:61)
  91.         at org.apache.hadoop.eclipse.actions.DFSActionImpl$1.run(DFSActionImpl.java:91)
  92.         at org.eclipse.swt.widgets.RunnableLock.run(RunnableLock.java:35)
  93.         at org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchronizer.java:135)
  94.         at org.eclipse.swt.widgets.Display.runAsyncMessages(Display.java:4145)
  95.         at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3762)
  96.         at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$9.run(PartRenderingEngine.java:1113)
  97.         at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
  98.         at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.run(PartRenderingEngine.java:997)
  99.         at org.eclipse.e4.ui.internal.workbench.E4Workbench.createAndRunUI(E4Workbench.java:138)
  100.         at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:610)
  101.         at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
  102.         at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:567)
  103.         at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:150)
  104.         at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:124)
  105.         at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
  106.         at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110)
  107.         at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79)
  108.         at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:354)
  109.         at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:181)
  110.         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
  111.         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
  112.         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
  113.         at java.lang.reflect.Method.invoke(Method.java:601)
  114.         at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:636)
  115.         at org.eclipse.equinox.launcher.Main.basicRun(Main.java:591)
  116.         at org.eclipse.equinox.launcher.Main.run(Main.java:1450)
复制代码





已有(4)人评论

跳转到指定楼层
hyj 发表于 2014-7-2 09:32:51
出现这个问题,应该是io的问题,有的时候我的也会出现,多点几次应该就能看到了
回复

使用道具 举报

mmfkl 发表于 2015-5-24 15:07:42
我也是经常遇到,果真多点几次就得了!!!
回复

使用道具 举报

小姜 发表于 2015-10-16 16:54:27
点了很多次  还是不行。楼主的问题解决了吗
回复

使用道具 举报

xinwu246810 发表于 2016-3-20 10:53:43
小姜 发表于 2015-10-16 16:54
点了很多次  还是不行。楼主的问题解决了吗

楼上,你最后搞好没?我也遇到了跟你一样的问题!根据他们说的,我点了好多次,还是不行啊!
QQ截图20160320105319.png
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

关闭

推荐上一条 /2 下一条