Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 314469 - IllegalArgumentException seen in error log during test execution
Summary: IllegalArgumentException seen in error log during test execution
Status: CLOSED FIXED
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: Bozier jerome CLA
QA Contact: Kathy Chan CLA
URL:
Whiteboard:
Keywords:
Depends on: 281877
Blocks:
  Show dependency tree
 
Reported: 2010-05-26 10:28 EDT by Ben Chen CLA
Modified: 2016-05-05 11:06 EDT (History)
1 user (show)

See Also:
paulslau: pmc_approved? (oec)
paulslau: pmc_approved? (ernest)
kathy: pmc_approved+
paulslau: pmc_approved? (paulslau)
paulslau: pmc_approved? (ewchan)
paulslau: pmc_approved? (jgwest)
paulslau: review+


Attachments
patch (1.62 KB, patch)
2010-05-27 12:41 EDT, Bozier jerome CLA
jerome.bozier: review?
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Ben Chen CLA 2010-05-26 10:28:45 EDT
Build Identifier: 201005222133

related to Test.UI.TestNavigator_bugzilla_242645

seeing instances of 

java.lang.IllegalArgumentException: Malformed saved proxy state: unable to retrieve name field
	at org.eclipse.hyades.test.ui.navigator.CMNNamedElementProxyNode.<init>(CMNNamedElementProxyNode.java:90)
	at org.eclipse.hyades.test.ui.navigator.TypedElementProxyNode.<init>(TypedElementProxyNode.java:66)
	at org.eclipse.hyades.test.ui.internal.navigator.proxy.DefaultExecutionResultProxyNode.<init>(DefaultExecutionResultProxyNode.java:92)
	at org.eclipse.hyades.test.ui.navigator.DefaultTypedElementProxyFactory.recreate(DefaultTypedElementProxyFactory.java:44)
	at org.eclipse.hyades.test.ui.navigator.HyadesProxyNodeFactory.recreate(HyadesProxyNodeFactory.java:194)
	at org.eclipse.hyades.test.ui.internal.navigator.proxy.EMFResourceProxyFactory.recreate(EMFResourceProxyFactory.java:210)
	at org.eclipse.hyades.test.ui.internal.navigator.proxy.FileProxyMetadataPersister.deserializeProxyNode(FileProxyMetadataPersister.java:177)
	at org.eclipse.hyades.test.ui.internal.navigator.proxy.FileProxyMarkerPersister.loadProxy(FileProxyMarkerPersister.java:100)
	at org.eclipse.hyades.test.ui.internal.navigator.proxy.FileProxyNodeCache.getProxy(FileProxyNodeCache.java:323)
	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:54)


Reproducible: Always
Comment 1 Paul Slauenwhite CLA 2010-05-26 15:03:48 EDT
Jerome, please check if this defect is an issue with the test case(s) or a functional issue.  If a functional issue, please triage/size and deleiver a fix by EOD Friday.  Thanks.
Comment 2 Bozier jerome CLA 2010-05-27 12:39:18 EDT
first try, launched with "-clean" argument : i no longer see theses exceptions

second try : launched without this argument : i see theses exception occur
when looking closer, they are triggered when we try to extract things from :

L/SOA/Schedule-BOTH_1217449957696.trcmxmi
L/Google/GoogleTest_1216056499632.trcmxmi

etc....

when reading .metadata file, we discover that theses proxy have been created with a factory with ID "EMFResourceProxyFactory_4.3" (the same as ours....) and same "kind" of item as ours ("executionResultNode")
but it seems that format inside is not the same and our XML reader is unable to extract some field (especially name field)

the code after this protect us and re-create the proxy if the reading of saved proxy fail, but error message still appear.

simpler way to remove this message would be to remove the "		UiPlugin.logError(e);" inside catch block of "deserializeProxyNode()" method in 
"org.eclipse.hyades.test.ui.internal.navigator.proxy.FileProxyMetadataPersister" class

Paul, any thought ? i attach the patch that does this, use it if you feel it is OK
Comment 3 Bozier jerome CLA 2010-05-27 12:41:24 EDT
Created attachment 170223 [details]
patch

this patch remove the error logged when we fail to read a persisted proxy
(the proxy will still be re-created)

Paul, could you review / comment it ?

many thanks in advance
Comment 4 Paul Slauenwhite CLA 2010-05-27 13:33:00 EDT
(In reply to comment #3)
> Created an attachment (id=170223) [details]
> patch
> 
> this patch remove the error logged when we fail to read a persisted proxy
> (the proxy will still be re-created)
> 
> Paul, could you review / comment it ?
> 
> many thanks in advance

Reviewed and approved.

Requesting PMC approval for TPTP 4.7.0: 

  1.   Explain why you believe this is a stop-ship defect. How does the defect manifest itself, and how will users of TPTP / consuming products be affected if the defect is not fixed?

Extraneous error logged when de-serializing a malformed proxy marker.

   2. Is there a work-around? If so, why do you believe the work-around is insufficient?

No.

   3. Is this a regression or API breakage? Explain.

Regression from 281877.

   4. Does this require new API?

No.

   5. Who performed the code review?

Paul Slauenwhite

   6. Is there a test case attached to the bugzilla record?

Covered by existing test case(s).

   7. What is the nature of the fix? What is the scope of the fix? What is the risk associated with this fix?

Remove the logged error since the proxy is automatically recreated.

   8. Is this fix related to any standards that TPTP adheres to? If so, who has validated that the fix continues to adhere to the standard?

No.
Comment 5 Paul Slauenwhite CLA 2010-05-27 16:00:26 EDT
The attached patch is checked in to CVS (HEAD).
Comment 6 Ben Chen CLA 2010-06-01 15:01:12 EDT
verified in TPTP-4.7.0-201006011014
Comment 7 Ben Chen CLA 2010-06-01 15:01:32 EDT
(In reply to comment #6)
> verified in TPTP-4.7.0-201006011014

Closing