network access causing long delay in XMI deserialization [message #532879] |
Tue, 11 May 2010 13:01 |
Eclipse User |
|
|
|
Originally posted by: iulian.ober.irit.fr
Hello everyone,
I'm experiencing very long delays (like tens of minutes) when loading a
UML 2.1 model from an XMI resource in a standalone application. After a
bit of profiling, this seems to come from plenty of HTTP accesses to
www.eclipse.org and schema.omg.org, probably related to the Ecore and
UML package URIs.
When disconnected from the network, the deserialization works instantly
and without any problem.
Is there any way to disable those accesses, which seem unnecessary?
Thanks for your help,
iulian
|
|
|
Re: network access causing long delay in XMI deserialization [message #532909 is a reply to message #532879] |
Tue, 11 May 2010 14:19 |
Eclipse User |
|
|
|
Originally posted by: iulian.ober.irit.fr
Problem solved. (And don't think I rushed to the newsgroup, I had this
problem for several months, and somehow managed to solve it just after
sending the message... strange.)
The solution was to follow accurately the example at :
http://www.eclipse.org/modeling/mdt/uml2/docs/guides/UML2_2. 0_Migration_Guide/guide.html
(section "Programmatic Migration")
In my case the missing thing was:
URIConverter.URI_MAP.put(URI.createURI("platform:/plugin/org.eclipse.uml2.uml/ "),
umlPluginURI);
Anyway, if anyone with the same problem, I hope this helps.
Regards,
iulian
Iulian Ober wrote:
> Hello everyone,
>
> I'm experiencing very long delays (like tens of minutes) when loading a
> UML 2.1 model from an XMI resource in a standalone application. After a
> bit of profiling, this seems to come from plenty of HTTP accesses to
> www.eclipse.org and schema.omg.org, probably related to the Ecore and
> UML package URIs.
>
> When disconnected from the network, the deserialization works instantly
> and without any problem.
>
> Is there any way to disable those accesses, which seem unnecessary?
>
> Thanks for your help,
> iulian
|
|
|
Re: network access causing long delay in XMI deserialization [message #628443 is a reply to message #532879] |
Tue, 11 May 2010 14:19 |
Eclipse User |
|
|
|
Originally posted by: iulian.ober.irit.fr
Problem solved. (And don't think I rushed to the newsgroup, I had this
problem for several months, and somehow managed to solve it just after
sending the message... strange.)
The solution was to follow accurately the example at :
http://www.eclipse.org/modeling/mdt/uml2/docs/guides/UML2_2. 0_Migration_Guide/guide.html
(section "Programmatic Migration")
In my case the missing thing was:
URIConverter.URI_MAP.put(URI.createURI("platform:/plugin/org.eclipse.uml2.uml/ "),
umlPluginURI);
Anyway, if anyone with the same problem, I hope this helps.
Regards,
iulian
Iulian Ober wrote:
> Hello everyone,
>
> I'm experiencing very long delays (like tens of minutes) when loading a
> UML 2.1 model from an XMI resource in a standalone application. After a
> bit of profiling, this seems to come from plenty of HTTP accesses to
> www.eclipse.org and schema.omg.org, probably related to the Ecore and
> UML package URIs.
>
> When disconnected from the network, the deserialization works instantly
> and without any problem.
>
> Is there any way to disable those accesses, which seem unnecessary?
>
> Thanks for your help,
> iulian
|
|
|
Powered by
FUDForum. Page generated in 0.03646 seconds