Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 311423 - Expected error is not logged in eclipse error view
Summary: Expected error is not logged in eclipse error view
Status: CLOSED WORKSFORME
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: TPTP (show other bugs)
Version: unspecified   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Paul Slauenwhite CLA
QA Contact: Kathy Chan CLA
URL:
Whiteboard: closed472
Keywords:
Depends on:
Blocks:
 
Reported: 2010-05-03 16:02 EDT by Biao Lu CLA
Modified: 2016-05-05 11:01 EDT (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Biao Lu CLA 2010-05-03 16:02:54 EDT
Build Identifier: I20100420-0800

By following the test suite /org.eclipse.hyades.test.ui.navigator.tests/manual/Test.Proxy.FileProxyNodeCacheTest.testsuite, I didn't see the expected errors in the error view.

Reproducible: Always

Steps to Reproduce:
1. Launch a self-hosted instance of Eclipse with the org.eclipse.hyades.test.ui.navigator.tests plug-in in your workspace.
  2. Open the Test Perspective to the Resource view.
  3. Import the /org.eclipse.hyades.test.ui.navigator.tests/resources/Test.Proxy.FileProxyNodeCacheTest_Project.zip file as an existing project in the workspace.
  4. Expand the Test.Proxy.FileProxyNodeCacheTest_Project project and wait 5 seconds.
  5. Open the Eclipse .log error log.
  6. It is expected to see errors like:
!ENTRY org.eclipse.hyades.test.ui 4 0 <date> <time>
!MESSAGE Unable to create proxy for file '/Test.Proxy.FileProxyNodeCacheTest_Project/test_file_dot_errorWhenCreating.errorWhenCreating'.
!STACK 0
java.lang.ArithmeticException: divide by zero
	at org.eclipse.hyades.test.ui.navigator.tests.proxy.nodes.ErrorWhenCreatingFileProxyNode.<init>(ErrorWhenCreatingFileProxyNode.java:12)
	at org.eclipse.hyades.test.ui.navigator.tests.proxy.factories.ErrorWhenCreatingFileProxyFactory.create(ErrorWhenCreatingFileProxyFactory.java:20)
	at org.eclipse.hyades.test.ui.internal.navigator.proxy.FileProxyNodeCache.internalCreateProxy(FileProxyNodeCache.java:435)
	at org.eclipse.hyades.test.ui.internal.navigator.proxy.FileProxyNodeCache.getProxy(FileProxyNodeCache.java:260)
	at org.eclipse.hyades.test.ui.internal.navigator.proxy.FileProxyManager.getProxy(FileProxyManager.java:72)
	at org.eclipse.hyades.test.ui.internal.navigator.proxy.async.FileProxiesRequest.computeProxy(FileProxiesRequest.java:63)
	at org.eclipse.hyades.test.ui.internal.navigator.proxy.async.ProxiesRequest._computeProxy(ProxiesRequest.java:155)
	at org.eclipse.hyades.test.ui.internal.navigator.proxy.async.ProxiesRequest.run(ProxiesRequest.java:136)
	at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)

!ENTRY org.eclipse.hyades.test.ui 4 0 <date> <time>
!MESSAGE Unable to create proxy for file '/Test.Proxy.FileProxyNodeCacheTest_Project/test_file_dot_errorWhenSaving.errorWhenSaving'.
!STACK 0
java.lang.ArithmeticException: divide by zero
	at org.eclipse.hyades.test.ui.navigator.tests.proxy.nodes.ErrorWhenSavingFileProxyNode.saveState(ErrorWhenSavingFileProxyNode.java:15)
	at org.eclipse.hyades.test.ui.internal.navigator.proxy.FileProxyMarkerPersister.saveProxy(FileProxyMarkerPersister.java:161)
	at org.eclipse.hyades.test.ui.internal.navigator.proxy.FileProxyNodeCache.internalCreateProxy(FileProxyNodeCache.java:483)
	at org.eclipse.hyades.test.ui.internal.navigator.proxy.FileProxyNodeCache.getProxy(FileProxyNodeCache.java:260)
	at org.eclipse.hyades.test.ui.internal.navigator.proxy.FileProxyManager.getProxy(FileProxyManager.java:72)
	at org.eclipse.hyades.test.ui.internal.navigator.proxy.async.FileProxiesRequest.computeProxy(FileProxiesRequest.java:63)
	at org.eclipse.hyades.test.ui.internal.navigator.proxy.async.ProxiesRequest._computeProxy(ProxiesRequest.java:155)
	at org.eclipse.hyades.test.ui.internal.navigator.proxy.async.ProxiesRequest.run(ProxiesRequest.java:136)
	at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)

!ENTRY org.eclipse.hyades.test.ui 4 0 <date> <time>
!MESSAGE Unable to create proxy for file '/Test.Proxy.FileProxyNodeCacheTest_Project/test_file_dot_invalidAdapter.invalidAdapter'.
!STACK 0
java.lang.IllegalArgumentException: Invalid proxy 'org.eclipse.hyades.test.ui.navigator.tests.proxy.nodes.InvalidAdapterFileProxyNode' returned by factory 'org.eclipse.hyades.test.ui.navigator.tests.proxy.factories.InvalidAdapterFileProxyFactory' for file '/Test.Proxy.FileProxyNodeCacheTest_Project/test_file_dot_invalidAdapter.invalidAdapter'.
	at java.lang.Throwable.<init>(Throwable.java:67)
	at org.eclipse.core.runtime.Assert.isLegal(Assert.java:62)
	at org.eclipse.hyades.test.ui.internal.navigator.proxy.FileProxyNodeCache.internalCreateProxy(FileProxyNodeCache.java:461)
	at org.eclipse.hyades.test.ui.internal.navigator.proxy.FileProxyNodeCache.getProxy(FileProxyNodeCache.java:260)
	at org.eclipse.hyades.test.ui.internal.navigator.proxy.FileProxyManager.getProxy(FileProxyManager.java:72)
	at org.eclipse.hyades.test.ui.internal.navigator.proxy.async.FileProxiesRequest.computeProxy(FileProxiesRequest.java:63)
	at org.eclipse.hyades.test.ui.internal.navigator.proxy.async.ProxiesRequest._computeProxy(ProxiesRequest.java:155)
	at org.eclipse.hyades.test.ui.internal.navigator.proxy.async.ProxiesRequest.run(ProxiesRequest.java:136)
	at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)
But I didn't see any of them in the error view.
Comment 1 Paul Slauenwhite CLA 2010-05-07 13:27:52 EDT
Using the TPTP-4.7.0-201004221916 build, this is working as designed (three errors are logged in the .log file).  

Does the test case need clarification?

Biao, please rerun this test suite and resubmit the results.
Comment 2 Kathy Chan CLA 2011-02-11 13:35:02 EST
This defect had been resolved as WORKSFORME for more than 1 month.  Closing this on the reporter's behalf.  Please verify with the latest TPTP 4.7.2 driver and re-open if this is still a problem.  TPTP 4.7.2 driver can be downloaded from:

http://www.eclipse.org/tptp/home/downloads/?ver=4.7.2
Comment 3 Kathy Chan CLA 2011-02-11 13:57:43 EST
Closing in TPTP 4.7.2 release.