Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 308215

Summary: Getting ClassNotFoundException indicating Source Not Found in red
Product: [Eclipse Project] JDT Reporter: Chris Grey <cgrey>
Component: DebugAssignee: JDT-Debug-Inbox <jdt-debug-inbox>
Status: CLOSED WONTFIX QA Contact:
Severity: normal    
Priority: P3 CC: darin.eclipse
Version: 3.6   
Target Milestone: ---   
Hardware: PC   
OS: Windows XP   
Whiteboard: stalebug
Attachments:
Description Flags
Spanned Zip file. File 1 of 3
none
Spanned Zip file. File 2 of 3
none
Spanned Zip file. File 3 of 3
none
The problem...
none
Project View as seen on my machine. none

Description Chris Grey CLA 2010-04-06 10:51:07 EDT
Build Identifier: 20090920-1017

I have a VERY simple project, that's actually just the beginning of a project and I'm having trouble getting Eclipse to debug the little bit I've got going so far. Eclipse doesn't complain about any syntax errors. And it appears to be compiling the *.java files into *.class files just fine. It just won't debug the files without throwing an error when my code goes to create an object. 

In the error message, there's a button that says "Edit Source Lookup Path...". When I click that, it shows me the default folder structure Eclipse is using. It looks correct and my files should be part of the default collection of directories. If I manually add the source location, it doesn't help. I still get the problem. 

Reproducible: Always

Steps to Reproduce:
1. Extract out the attached Zipfile. The folder structure is my workspace and project folder. So you can open the "Projects" folder as a workspace (zip includes the Eclipse .metadata folder). From there, you should see the "Simulator" project.

2. Jump to the debug view and set a breakpoint at the beginning of the program (main). 

3. When I get to line 30 in the debug, I get the error.
Comment 1 Chris Grey CLA 2010-04-06 10:57:32 EDT
Created attachment 163906 [details]
Spanned Zip file. File 1 of 3

This is my workspace folder and project including .metadata folders. Hopefully this will reproduce exactly what I'm seeing for others
Comment 2 Chris Grey CLA 2010-04-06 10:58:26 EDT
Created attachment 163908 [details]
Spanned Zip file. File 2 of 3
Comment 3 Chris Grey CLA 2010-04-06 10:59:04 EDT
Created attachment 163910 [details]
Spanned Zip file. File 3 of 3
Comment 4 Darin Wright CLA 2010-04-06 12:11:42 EDT
Can you attach a screen shot of the problem?
Comment 5 Chris Grey CLA 2010-04-06 12:16:33 EDT
Created attachment 163931 [details]
The problem...
Comment 6 Darin Wright CLA 2010-04-06 13:12:26 EDT
This is not an error with the debugger. It looks like you don't have source for the system library class you are in (i.e. the constructor of 'ClassNotFoundException'). Usually when a 'ClassNotFoundException' is thrown you end up at the throws clause (i.e. suspend on uncaught exceptions) - so I'm not sure why it suspended in the constructor of the exception - the thread text just says "suspended".

This does not look a debugger problem - looks like your runtime claspath is missing a class (binByte).

If you open "ClassNotFoundException" in and editor (using the "Open Type" action), do you see source?
Comment 7 Chris Grey CLA 2010-04-06 17:35:24 EDT
Created attachment 163967 [details]
Project View as seen on my machine. 

That's what I would've thought that meant. But the binByte.java class is right there along with the disassembler.java file. Refer to the screencapture I've included. Pull down the spanned Zipfile and open it up. You should see the file structure exactly as it exists on my machine. Open the Projects folder as your workspace, and inside you should see the Simulator project.
Comment 8 Chris Grey CLA 2010-04-08 07:20:45 EDT
Have you been able to reproduce this with my files?
Comment 9 Darin Wright CLA 2010-04-08 09:12:21 EDT
(In reply to comment #8)
> Have you been able to reproduce this with my files?

No - what utility are you using to split to zips? what should one use to put them back together?
Comment 10 Chris Grey CLA 2010-04-08 09:35:57 EDT
I used Winzip to span them. I've never tried, but I would think that 7-Zip could extract a spanned/split zip archive.
Comment 11 Eclipse Genie CLA 2019-11-14 19:47:56 EST
This bug hasn't had any activity in quite some time. Maybe the problem got resolved, was a duplicate of something else, or became less pressing for some reason - or maybe it's still relevant but just hasn't been looked at yet.

If you have further information on the current state of the bug, please add it. The information can be, for example, that the problem still occurs, that you still want the feature, that more information is needed, or that the bug is (for whatever reason) no longer relevant.

--
The automated Eclipse Genie.