Bug 529843 - Empty error
Summary: Empty error
Status: NEW
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: Recommenders (show other bugs)
Version: unspecified   Edit
Hardware: PC Windows 7
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Project inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords: needinfo
: 531494 533910 (view as bug list)
Depends on:
Blocks:
 
Reported: 2018-01-15 15:45 EST by ofir pardo CLA
Modified: 2019-07-24 14:36 EDT (History)
5 users (show)

See Also:


Attachments
Empty error (115.02 KB, image/png)
2018-01-15 15:45 EST, ofir pardo CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description ofir pardo CLA 2018-01-15 15:45:13 EST
Created attachment 272271 [details]
Empty error

Hello, I've been facing a strange empty error when trying to run code sometimes. The weird thing is that usually to fix it I just need to open a new class(using the exact same code) or just close and run eclipse again.
I've added an attachment of the error, thanks.
Comment 1 Andrey Loskutov CLA 2018-01-15 15:46:54 EST
Anytbing in the error log? Which Eclipse version is it?
Comment 2 ofir pardo CLA 2018-01-15 19:45:02 EST
(In reply to Andrey Loskutov from comment #1)
> Anytbing in the error log? Which Eclipse version is it?

Nothing in the error log, latest version of eclipse(osygen)
Comment 3 Andrey Loskutov CLA 2018-01-16 04:34:47 EST
Please provide steps to reproduce and/or a small self containing project showing the problem.
Comment 4 ofir pardo CLA 2018-01-17 09:44:52 EST
(In reply to Andrey Loskutov from comment #3)
> Please provide steps to reproduce and/or a small self containing project
> showing the problem.

So far I did not come across the error again, I will reply again if I do.
Comment 5 ofir pardo CLA 2018-02-11 16:15:40 EST
After a while of not having this error, I now got it again with the following error:
The following will be send to: Eclipse


REPORT

anonymousId         cd184e2a-9c0a-451c-93cd-97881d306d3a
name                
email               
comment             
eclipseBuildId      4.7.2.M20171130-0510
eclipseProduct      org.eclipse.epp.package.java.product
javaRuntimeVersion  9.0.4+11
osgiWs              win32
osgiOs              Windows7
osgiOsVersion       6.1.0
osgiArch            x86_64
severity            UNKNOWN


STATUS

pluginId            org.eclipse.recommenders.rcp
pluginVersion       2.5.0.v20171201-1623
code                18
severity            4
message             Failed to resolve selection in ‘=Arrays/src<{MainTry.java’ at offset 187.
fingerprint         a6159794576c57b73394a85a50dcab6e

Exception:org.eclipse.recommenders.utils.Logs$LogTraceException: null
	 at org.eclipse.recommenders.utils.Logs$LogTraceException.newTrace(Logs.java:381)
	 at org.eclipse.recommenders.utils.Logs.log(Logs.java:134)
	 at org.eclipse.recommenders.internal.rcp.JavaElementSelections.resolveJavaElementFromTypeRootInEditor(JavaElementSelections.java:164)
	 at org.eclipse.recommenders.internal.rcp.JavaElementSelections.resolveJavaElementFromEditor(JavaElementSelections.java:119)
	 at org.eclipse.recommenders.internal.rcp.JavaElementSelections.resolveJavaElementFromEditor(JavaElementSelections.java:102)
	 at org.eclipse.recommenders.internal.rcp.JavaElementSelectionService.handleSelectionInEditor(JavaElementSelectionService.java:108)
	 at org.eclipse.recommenders.internal.rcp.JavaElementSelectionService.access$1(JavaElementSelectionService.java:105)
	 at org.eclipse.recommenders.internal.rcp.JavaElementSelectionService$1.run(JavaElementSelectionService.java:82)
	 at java.util.concurrent.Executors$RunnableAdapter.call(null:-1)
	 at java.util.concurrent.FutureTask.run(null:-1)
	 at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(null:-1)
	 at java.util.concurrent.ThreadPoolExecutor.runWorker(null:-1)
	 at java.util.concurrent.ThreadPoolExecutor$Worker.run(null:-1)
	 at java.lang.Thread.run(null:-1)


BUNDLES

name                org.eclipse.recommenders.rcp
version             2.5.0.v20171201-1623

name                org.eclipse.recommenders.utils
version             2.5.0.v20171201-1623

--------------------------------------------------

Any ideas what can I do to fix this except for closing eclipse and running again?
Thanks.
Comment 6 Sarika Sinha CLA 2018-02-23 00:11:06 EST
*** Bug 531494 has been marked as a duplicate of this bug. ***
Comment 7 Sarika Sinha CLA 2018-02-27 00:30:48 EST
I got empty error with
Java Model Exception: java.nio.channels.ClosedByInterruptException
	at org.eclipse.jdt.internal.core.ModularClassFile.getBinaryModuleInfo(ModularClassFile.java:145)
	at org.eclipse.jdt.internal.core.ModularClassFile.buildStructure(ModularClassFile.java:52)
	at org.eclipse.jdt.internal.core.Openable.generateInfos(Openable.java:265)
	at org.eclipse.jdt.internal.core.JavaElement.openWhenClosed(JavaElement.java:593)
	at org.eclipse.jdt.internal.core.ModularClassFile.getModule(ModularClassFile.java:295)
	at org.eclipse.jdt.internal.core.PackageFragmentRoot.getModuleDescription(PackageFragmentRoot.java:898)
	at org.eclipse.jdt.internal.core.JarPackageFragmentRoot.getModuleDescription(JarPackageFragmentRoot.java:264)
	at org.eclipse.jdt.internal.core.JavaProject.getModuleDescription(JavaProject.java:3702)
	at org.eclipse.jdt.internal.core.ModuleSourcePathManager.seekModule(ModuleSourcePathManager.java:79)
	at org.eclipse.jdt.internal.core.NameLookup.findModule(NameLookup.java:1032)
	at org.eclipse.jdt.internal.core.SearchableEnvironment.getModule(SearchableEnvironment.java:1075)
	at org.eclipse.jdt.internal.compiler.lookup.LookupEnvironment.getModule(LookupEnvironment.java:204)
	at org.eclipse.jdt.internal.compiler.lookup.LookupEnvironment.javaBaseModule(LookupEnvironment.java:718)
	at org.eclipse.jdt.internal.compiler.lookup.LookupEnvironment.getResolvedJavaBaseType(LookupEnvironment.java:1590)
	at org.eclipse.jdt.internal.compiler.lookup.Scope.getJavaLangObject(Scope.java:2840)
	at org.eclipse.jdt.internal.compiler.lookup.ClassScope.connectSuperclass(ClassScope.java:955)
	at org.eclipse.jdt.internal.compiler.lookup.ClassScope.connectTypeHierarchy(ClassScope.java:1120)
	at org.eclipse.jdt.internal.compiler.lookup.CompilationUnitScope.connectTypeHierarchy(CompilationUnitScope.java:359)
	at org.eclipse.jdt.internal.compiler.lookup.LookupEnvironment.completeTypeBindings(LookupEnvironment.java:570)
	at org.eclipse.jdt.internal.codeassist.SelectionEngine.select(SelectionEngine.java:1051)
	at org.eclipse.jdt.internal.core.Openable.codeSelect(Openable.java:165)
	at org.eclipse.jdt.internal.core.CompilationUnit.codeSelect(CompilationUnit.java:387)
	at org.eclipse.jdt.internal.core.CompilationUnit.codeSelect(CompilationUnit.java:380)
	at org.eclipse.jdt.internal.ui.text.java.hover.AbstractJavaEditorTextHover.getJavaElementsAt(AbstractJavaEditorTextHover.java:121)
	at org.eclipse.jdt.internal.ui.text.java.hover.JavadocHover.internalGetHoverInfo(JavadocHover.java:671)
	at org.eclipse.jdt.internal.ui.text.java.hover.JavadocHover.getHoverInfo2(JavadocHover.java:667)
	at org.eclipse.jdt.internal.ui.text.java.hover.BestMatchHover.getHoverInfo2(BestMatchHover.java:164)
	at org.eclipse.jdt.internal.ui.text.java.hover.BestMatchHover.getHoverInfo2(BestMatchHover.java:130)
	at org.eclipse.jdt.internal.ui.text.java.hover.JavaEditorTextHoverProxy.getHoverInfo2(JavaEditorTextHoverProxy.java:86)
	at org.eclipse.jface.text.TextViewerHoverManager$4.run(TextViewerHoverManager.java:166)
Caused by: java.nio.channels.ClosedByInterruptException
	at java.nio.channels.spi.AbstractInterruptibleChannel.end(AbstractInterruptibleChannel.java:202)
	at java.nio.channels.Channels$ReadableByteChannelImpl.read(Channels.java:387)
	at jdk.internal.jrtfs.JrtFileSystem$1.read(JrtFileSystem.java:376)
	at sun.nio.ch.ChannelInputStream.read(ChannelInputStream.java:65)
	at sun.nio.ch.ChannelInputStream.read(ChannelInputStream.java:109)
	at sun.nio.ch.ChannelInputStream.read(ChannelInputStream.java:103)
	at java.nio.file.Files.read(Files.java:3105)
	at java.nio.file.Files.readAllBytes(Files.java:3158)
	at org.eclipse.jdt.internal.compiler.util.JrtFileSystem.getClassfileBytes(JRTUtil.java:330)
	at org.eclipse.jdt.internal.compiler.util.JrtFileSystem.getClassfileContent(JRTUtil.java:311)
	at org.eclipse.jdt.internal.compiler.util.JRTUtil.getClassfileContent(JRTUtil.java:153)
	at org.eclipse.jdt.internal.core.AbstractClassFile.getClassFileContent(AbstractClassFile.java:190)
	at org.eclipse.jdt.internal.core.ModularClassFile.getJarBinaryModuleInfo(ModularClassFile.java:168)
	at org.eclipse.jdt.internal.core.ModularClassFile.getBinaryModuleInfo(ModularClassFile.java:133)
Comment 8 Sarika Sinha CLA 2018-02-27 00:40:13 EST
And creating module-info.java solves the problem.
Comment 9 Sarika Sinha CLA 2018-04-23 00:19:50 EDT
*** Bug 533910 has been marked as a duplicate of this bug. ***