Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » Java Development Tools (JDT) » After upgrading to 3.2, I can no longer "Display" the results from a scapbook page
After upgrading to 3.2, I can no longer "Display" the results from a scapbook page [message #233242] Tue, 25 July 2006 15:20 Go to next message
Eclipse UserFriend
Originally posted by: markscottwright.gmail.com

I get this error:

(java.lang.String) org.eclipse.core.runtime.CoreException: Unable to
access archive
C:\tools\eclipse\plugins\org.eclipse.jdt.source_3.1.1\src\or g.junit_3.8.1\junitsrc.zip


The error is correct - that file doesn't exist. But why is it looking
for it? This only happens when I attempt to "Display" the results from
my code. I can display this, for example:
Integer.parseInt("1");

I don't get why eclipse wants to look at "junitsrc" anyway. Is it
attempting to generate a stack trace?

Mark
Re: After upgrading to 3.2, I can no longer "Display" the results from a scapbook page [message #233251 is a reply to message #233242] Tue, 25 July 2006 15:33 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: markscottwright.gmail.com

Mark Wright wrote:
> I get this error:
>
> (java.lang.String) org.eclipse.core.runtime.CoreException: Unable to
> access archive
> C:\tools\eclipse\plugins\org.eclipse.jdt.source_3.1.1\src\or g.junit_3.8.1\junitsrc.zip
>
>
>
> The error is correct - that file doesn't exist. But why is it looking
> for it? This only happens when I attempt to "Display" the results from
> my code. I can display this, for example:
> Integer.parseInt("1");
>
> I don't get why eclipse wants to look at "junitsrc" anyway. Is it
> attempting to generate a stack trace?
>
> Mark

Here's the stack trace from the error log:

!SUBENTRY 1 org.eclipse.debug.core 4 120 2006-07-25 10:31:20.140
!MESSAGE Unable to access archive
C:\tools\eclipse\plugins\org.eclipse.jdt.source_3.1.1\src\or g.junit_3.8.1\junitsrc.zip
!STACK 0
java.util.zip.ZipException: The system cannot find the path specified
at java.util.zip.ZipFile.open(Native Method)
at java.util.zip.ZipFile.<init>(Unknown Source)
at java.util.zip.ZipFile.<init>(Unknown Source)
at
org.eclipse.debug.internal.core.sourcelookup.SourceLookupUti ls.getZipFile(SourceLookupUtils.java:63)
at
org.eclipse.debug.core.sourcelookup.containers.ExternalArchi veSourceContainer.getArchive(ExternalArchiveSourceContainer. java:199)
at
org.eclipse.debug.core.sourcelookup.containers.ExternalArchi veSourceContainer.findSourceElements(ExternalArchiveSourceCo ntainer.java:78)
at
org.eclipse.debug.core.sourcelookup.containers.CompositeSour ceContainer.findSourceElements(CompositeSourceContainer.java :78)
at
org.eclipse.debug.core.sourcelookup.containers.CompositeSour ceContainer.findSourceElements(CompositeSourceContainer.java :45)
at
org.eclipse.debug.core.sourcelookup.AbstractSourceLookupPart icipant.findSourceElements(AbstractSourceLookupParticipant.j ava:67)
at
org.eclipse.debug.core.sourcelookup.AbstractSourceLookupDire ctor$SourceLookupQuery.run(AbstractSourceLookupDirector.java :136)
at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:37)
at
org.eclipse.debug.core.sourcelookup.AbstractSourceLookupDire ctor.findSourceElements(AbstractSourceLookupDirector.java:72 1)
at
org.eclipse.jdt.internal.debug.core.JavaDebugUtils.resolveSo urceElement(JavaDebugUtils.java:262)
at
org.eclipse.jdt.internal.debug.ui.console.JavaStackTraceHype rlink.getSourceElement(JavaStackTraceHyperlink.java:130)
at
org.eclipse.jdt.internal.debug.ui.console.JavaStackTraceHype rlink.linkActivated(JavaStackTraceHyperlink.java:85)
at
org.eclipse.ui.console.TextConsoleViewer$2.handleEvent(TextC onsoleViewer.java:103)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java :66)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:928)
at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.ja va:3348)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java :2968)
at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.jav a:1914)
at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:1878)
at
org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Work bench.java:419)
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.j ava:149)
at org.eclipse.ui.internal.ide.IDEApplication.run(IDEApplicatio n.java:95)
at
org.eclipse.core.internal.runtime.PlatformActivator$1.run(Pl atformActivator.java:78)
at
org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher .runApplication(EclipseAppLauncher.java:92)
at
org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher .start(EclipseAppLauncher.java:68)
at
org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:400)
at
org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:177)
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.core.launcher.Main.invokeFramework(Main.java:336 )
at org.eclipse.core.launcher.Main.basicRun(Main.java:280)
at org.eclipse.core.launcher.Main.run(Main.java:977)
at org.eclipse.core.launcher.Main.main(Main.java:952)
Re: After upgrading to 3.2, I can no longer "Display" the results from a scapbook page [message #233329 is a reply to message #233251] Wed, 26 July 2006 14:40 Go to previous messageGo to next message
Markus KellerFriend
Messages: 294
Registered: July 2009
Senior Member
On 2006-07-25 17:33, Mark Wright wrote:
> Mark Wright wrote:
>> I get this error:
>>
>> (java.lang.String) org.eclipse.core.runtime.CoreException: Unable to
>> access archive
>> C:\tools\eclipse\plugins\org.eclipse.jdt.source_3.1.1\src\or g.junit_3.8.1\junitsrc.zip
>>
>>
>>
>> The error is correct - that file doesn't exist. But why is it looking
>> for it? This only happens when I attempt to "Display" the results
>> from my code. I can display this, for example:
>> Integer.parseInt("1");
>>
>> I don't get why eclipse wants to look at "junitsrc" anyway. Is it
>> attempting to generate a stack trace?
>>
>> Mark
>
> Here's the stack trace from the error log:
>
> !SUBENTRY 1 org.eclipse.debug.core 4 120 2006-07-25 10:31:20.140
> !MESSAGE Unable to access archive
> C:\tools\eclipse\plugins\org.eclipse.jdt.source_3.1.1\src\or g.junit_3.8.1\junitsrc.zip
>
> !STACK 0
> java.util.zip.ZipException: The system cannot find the path specified
> at java.util.zip.ZipFile.open(Native Method)
> at java.util.zip.ZipFile.<init>(Unknown Source)
> at java.util.zip.ZipFile.<init>(Unknown Source)
> at
> org.eclipse.debug.internal.core.sourcelookup.SourceLookupUti ls.getZipFile(SourceLookupUtils.java:63)
>
> at
> org.eclipse.debug.core.sourcelookup.containers.ExternalArchi veSourceContainer.getArchive(ExternalArchiveSourceContainer. java:199)
>
> at
> org.eclipse.debug.core.sourcelookup.containers.ExternalArchi veSourceContainer.findSourceElements(ExternalArchiveSourceCo ntainer.java:78)
>
> at
> org.eclipse.debug.core.sourcelookup.containers.CompositeSour ceContainer.findSourceElements(CompositeSourceContainer.java :78)
>
> at
> org.eclipse.debug.core.sourcelookup.containers.CompositeSour ceContainer.findSourceElements(CompositeSourceContainer.java :45)
>
> at
> org.eclipse.debug.core.sourcelookup.AbstractSourceLookupPart icipant.findSourceElements(AbstractSourceLookupParticipant.j ava:67)
>
> at
> org.eclipse.debug.core.sourcelookup.AbstractSourceLookupDire ctor$SourceLookupQuery.run(AbstractSourceLookupDirector.java :136)
>
> at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:37)
> at
> org.eclipse.debug.core.sourcelookup.AbstractSourceLookupDire ctor.findSourceElements(AbstractSourceLookupDirector.java:72 1)
>
> at
> org.eclipse.jdt.internal.debug.core.JavaDebugUtils.resolveSo urceElement(JavaDebugUtils.java:262)
>
> at
> org.eclipse.jdt.internal.debug.ui.console.JavaStackTraceHype rlink.getSourceElement(JavaStackTraceHyperlink.java:130)
>
> at
> org.eclipse.jdt.internal.debug.ui.console.JavaStackTraceHype rlink.linkActivated(JavaStackTraceHyperlink.java:85)
>
> at
> org.eclipse.ui.console.TextConsoleViewer$2.handleEvent(TextC onsoleViewer.java:103)
>
> at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java :66)
> at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:928)
> at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.ja va:3348)
> at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java :2968)
> at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.jav a:1914)
> at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:1878)
> at
> org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Work bench.java:419)
> at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.j ava:149)
> at
> org.eclipse.ui.internal.ide.IDEApplication.run(IDEApplicatio n.java:95)
> at
> org.eclipse.core.internal.runtime.PlatformActivator$1.run(Pl atformActivator.java:78)
>
> at
> org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher .runApplication(EclipseAppLauncher.java:92)
>
> at
> org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher .start(EclipseAppLauncher.java:68)
>
> at
> org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:400)
>
> at
> org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:177)
>
> 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.core.launcher.Main.invokeFramework(Main.java:336 )
> at org.eclipse.core.launcher.Main.basicRun(Main.java:280)
> at org.eclipse.core.launcher.Main.run(Main.java:977)
> at org.eclipse.core.launcher.Main.main(Main.java:952)

The stacktrace looks like
https://bugs.eclipse.org/bugs/show_bug.cgi?id=138877

To avoid the problem you could try to update the source attachment path
of JUNIT_HOME/junit.jar entries in your Java projects (context menu >
Properties > Java Source Attachment).

However, I would recommend you to remove references to the classpatch
variable JUNIT_HOME altogether. In Eclipse 3.2 you can add a JUnit
Library, which is much more stable:

- on Java projects with JUNIT_HOME/junit.jar on the build path, open
context menu > Properties > Java Build Path > Libraries
- remove JUNIT_HOME/junit.jar
- click 'Add Library...', choose JUnit and then JUnit 3.8.1

HTH,
Markus
Re: After upgrading to 3.2, I can no longer "Display" the results from a scapbook page [message #233338 is a reply to message #233329] Wed, 26 July 2006 15:53 Go to previous message
Eclipse UserFriend
Originally posted by: markscottwright.gmail.com

Markus Keller wrote:
> On 2006-07-25 17:33, Mark Wright wrote:
>> Mark Wright wrote:
>>> I get this error:
>>>
>>> (java.lang.String) org.eclipse.core.runtime.CoreException: Unable to
>>> access archive
>>> C:\tools\eclipse\plugins\org.eclipse.jdt.source_3.1.1\src\or g.junit_3.8.1\junitsrc.zip
>>>
>>>
>>>
>>> The error is correct - that file doesn't exist. But why is it
>>> looking for it? This only happens when I attempt to "Display" the
>>> results from my code. I can display this, for example:
>>> Integer.parseInt("1");
>>>
>>> I don't get why eclipse wants to look at "junitsrc" anyway. Is it
>>> attempting to generate a stack trace?
>>>
>>> Mark
>>
>> Here's the stack trace from the error log:
>>
>> !SUBENTRY 1 org.eclipse.debug.core 4 120 2006-07-25 10:31:20.140
>> !MESSAGE Unable to access archive
>> C:\tools\eclipse\plugins\org.eclipse.jdt.source_3.1.1\src\or g.junit_3.8.1\junitsrc.zip
>>
>> !STACK 0
>> java.util.zip.ZipException: The system cannot find the path specified
>> at java.util.zip.ZipFile.open(Native Method)
>> at java.util.zip.ZipFile.<init>(Unknown Source)
>> at java.util.zip.ZipFile.<init>(Unknown Source)
>> at
>> org.eclipse.debug.internal.core.sourcelookup.SourceLookupUti ls.getZipFile(SourceLookupUtils.java:63)
>>
>> at
>> org.eclipse.debug.core.sourcelookup.containers.ExternalArchi veSourceContainer.getArchive(ExternalArchiveSourceContainer. java:199)
>>
>> at
>> org.eclipse.debug.core.sourcelookup.containers.ExternalArchi veSourceContainer.findSourceElements(ExternalArchiveSourceCo ntainer.java:78)
>>
>> at
>> org.eclipse.debug.core.sourcelookup.containers.CompositeSour ceContainer.findSourceElements(CompositeSourceContainer.java :78)
>>
>> at
>> org.eclipse.debug.core.sourcelookup.containers.CompositeSour ceContainer.findSourceElements(CompositeSourceContainer.java :45)
>>
>> at
>> org.eclipse.debug.core.sourcelookup.AbstractSourceLookupPart icipant.findSourceElements(AbstractSourceLookupParticipant.j ava:67)
>>
>> at
>> org.eclipse.debug.core.sourcelookup.AbstractSourceLookupDire ctor$SourceLookupQuery.run(AbstractSourceLookupDirector.java :136)
>>
>> at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:37)
>> at
>> org.eclipse.debug.core.sourcelookup.AbstractSourceLookupDire ctor.findSourceElements(AbstractSourceLookupDirector.java:72 1)
>>
>> at
>> org.eclipse.jdt.internal.debug.core.JavaDebugUtils.resolveSo urceElement(JavaDebugUtils.java:262)
>>
>> at
>> org.eclipse.jdt.internal.debug.ui.console.JavaStackTraceHype rlink.getSourceElement(JavaStackTraceHyperlink.java:130)
>>
>> at
>> org.eclipse.jdt.internal.debug.ui.console.JavaStackTraceHype rlink.linkActivated(JavaStackTraceHyperlink.java:85)
>>
>> at
>> org.eclipse.ui.console.TextConsoleViewer$2.handleEvent(TextC onsoleViewer.java:103)
>>
>> at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java :66)
>> at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:928)
>> at
>> org.eclipse.swt.widgets.Display.runDeferredEvents(Display.ja va:3348)
>> at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java :2968)
>> at
>> org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.jav a:1914)
>> at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:1878)
>> at
>> org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Work bench.java:419)
>>
>> at
>> org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.j ava:149)
>> at
>> org.eclipse.ui.internal.ide.IDEApplication.run(IDEApplicatio n.java:95)
>> at
>> org.eclipse.core.internal.runtime.PlatformActivator$1.run(Pl atformActivator.java:78)
>>
>> at
>> org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher .runApplication(EclipseAppLauncher.java:92)
>>
>> at
>> org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher .start(EclipseAppLauncher.java:68)
>>
>> at
>> org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:400)
>>
>> at
>> org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:177)
>>
>> 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.core.launcher.Main.invokeFramework(Main.java:336 )
>> at org.eclipse.core.launcher.Main.basicRun(Main.java:280)
>> at org.eclipse.core.launcher.Main.run(Main.java:977)
>> at org.eclipse.core.launcher.Main.main(Main.java:952)
>
> The stacktrace looks like
> https://bugs.eclipse.org/bugs/show_bug.cgi?id=138877
>
> To avoid the problem you could try to update the source attachment path
> of JUNIT_HOME/junit.jar entries in your Java projects (context menu >
> Properties > Java Source Attachment).
>
> However, I would recommend you to remove references to the classpatch
> variable JUNIT_HOME altogether. In Eclipse 3.2 you can add a JUnit
> Library, which is much more stable:
>
> - on Java projects with JUNIT_HOME/junit.jar on the build path, open
> context menu > Properties > Java Build Path > Libraries
> - remove JUNIT_HOME/junit.jar
> - click 'Add Library...', choose JUnit and then JUnit 3.8.1
>
> HTH,
> Markus

Thank you! That fixed the problem. I'm so happy - I love Eclipse's
scratch pages!
Previous Topic:getDeclaringType() doesn't work
Next Topic:Remote Debugging breakpoints not stopping
Goto Forum:
  


Current Time: Mon Sep 23 16:22:27 GMT 2024

Powered by FUDForum. Page generated in 0.03538 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top