Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » UML2 » network access causing long delay in XMI deserialization
network access causing long delay in XMI deserialization [message #532879] Tue, 11 May 2010 13:01 Go to next message
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 Go to previous message
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 Go to previous message
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
Previous Topic:network access causing long delay in XMI deserialization
Next Topic:[newbie] Basic Types in UML
Goto Forum:
  


Current Time: Fri Sep 19 00:04:53 GMT 2014

Powered by FUDForum. Page generated in 0.02067 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software