[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
RE: [p2-dev] undeclared exception being thrown in 3.4.1

Hi Henrik :)
Thanks for the fast response :)
Yeah, this happens without any user interaction, I'll open a bz. 
Just wanted to make sure this was not drastically reworked in 3.5 since
Pascal mentioned a lot of changes in that area at eclipseCon...
HTH,
Ciao, hh

-----Original Message-----
From: p2-dev-bounces@xxxxxxxxxxx [mailto:p2-dev-bounces@xxxxxxxxxxx] On
Behalf Of Henrik Lindberg
Sent: Monday, April 20, 2009 5:24 PM
To: P2 developer discussions
Subject: Re: [p2-dev] undeclared exception being thrown in 3.4.1

It means that the user canceled the operation. If it occurred without
user intervention then it is a bug.

In the latest 3.5, the use of OperationCanceledException as opposed to
returning IStatus.CANCEL is expected.
This fact should be documented (at least in methods that are provisional
API). If you find such omissions, please log an issue.

Henrik Lindberg
henrik.lindberg@xxxxxxxxxxxxxx


On Apr 20, 2009, at 5:13 PM, Haigermoser, Helmut wrote:

> Ciao @ll :)
> One of our clients is getting an OperationCanceledException returned 
> by SimplePlanner.updatesFor, well, it's really coming from 
> ECFMetadataTransport.getLastModified but the exception does only reach

> client code at that point.
>
> Is this an already known thing or would you want me to raise a bug on 
> it? All I would ask for is declaring the points where this problem 
> with the internet connection can happen so that we have a chance of 
> catching it...
>
> !STACK 0
> org.eclipse.core.runtime.OperationCanceledException
> 	at
> org
> .eclipse.equinox.internal.p2.metadata.repository.ECFMetadataTransport
> .getLastModified(ECFMetadataTransport.java:143)
> 	at
> org
> .eclipse.equinox.internal.p2.metadata.repository.CacheManager.createC
> ache(CacheManager.java:69)
> 	at
> org
> .eclipse.equinox.internal.provisional.spi.p2.metadata.repository.Simp
> leMetadataRepositoryFactory
> .getLocalFile(SimpleMetadataRepositoryFactory
> .java:59)
> 	at
> org
> .eclipse.equinox.internal.provisional.spi.p2.metadata.repository.Simp
> leMetadataRepositoryFactory
> .validateAndLoad(SimpleMetadataRepositoryFact
> ory.java:97)
> 	at
> org
> .eclipse.equinox.internal.provisional.spi.p2.metadata.repository.Simp
> leMetadataRepositoryFactory
> .load(SimpleMetadataRepositoryFactory.java:85
> )
> 	at
> org
> .eclipse.equinox.internal.p2.metadata.repository.MetadataRepositoryMa
> nager.loadRepository(MetadataRepositoryManager.java:485)
> 	at
> org
> .eclipse.equinox.internal.p2.metadata.repository.MetadataRepositoryMa
> nager.loadRepository(MetadataRepositoryManager.java:452)
> 	at
> org
> .eclipse.equinox.internal.p2.metadata.repository.MetadataRepositoryMa
> nager.loadRepository(MetadataRepositoryManager.java:435)
> 	at
> org
> .eclipse.equinox.internal.p2.director.SimplePlanner.updatesFor(Simple
> Planner.java:384)
>
>
> TIA,
> Ciao, hh
> _______________________________________________
> p2-dev mailing list
> p2-dev@xxxxxxxxxxx
> https://dev.eclipse.org/mailman/listinfo/p2-dev

_______________________________________________
p2-dev mailing list
p2-dev@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/p2-dev