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

Bug 311423

Summary: Expected error is not logged in eclipse error view
Product: z_Archived Reporter: Biao Lu <biaolu>
Component: TPTPAssignee: Paul Slauenwhite <paulslau>
Status: CLOSED WORKSFORME QA Contact: Kathy Chan <kathy>
Severity: normal    
Priority: P3 CC: paulslau
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: Windows XP   
Whiteboard: closed472

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.