Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF "Technology" (Ecore Tools, EMFatic, etc)  » [EMFStore] minor bug
[EMFStore] minor bug [message #1713155] Sun, 01 November 2015 15:38 Go to next message
Scott Dybiec is currently offline Scott DybiecFriend
Messages: 148
Registered: July 2009
Senior Member
I ran into a problem trying to change the EMFStore server port number
when using the ESServer.FACTORY.createAndStartLocalServer(). When the
port number is changed in the es.properties file, the server is started
properly on the port specified in the properties file, but the ESServer
returned from this method ignores the port setting in the es.properties
and always defaults to constant ServerConfiguration.XML_RPC_PORT_DEFAULT
(8080).

Changes to two lines of code in this method fixes this problem:

1. Add: 'int port =
'XmlRpcWebserverManager.getWebServerProvider().getPort();

2. Replace 'Integer.parseInt(ServerConfiguration.XML_RPC_PORT_DEFAULT)'
with 'port'

Thanks for the great product,

$cott
Re: [EMFStore] minor bug [message #1713229 is a reply to message #1713155] Mon, 02 November 2015 14:50 Go to previous messageGo to next message
Edgar Mueller is currently offline Edgar MuellerFriend
Messages: 89
Registered: March 2011
Member
Hi Scott,

good catch. Would you mind opening a Bug Report for this
(https://bugs.eclipse.org/bugs/enter_bug.cgi?product=EMFStore), so we
can fix it with the next milestone release of 1.7.0?

Thank you,
Edgar

Am 01.11.2015 um 16:38 schrieb Scott Dybiec:
> I ran into a problem trying to change the EMFStore server port number
> when using the ESServer.FACTORY.createAndStartLocalServer(). When the
> port number is changed in the es.properties file, the server is started
> properly on the port specified in the properties file, but the ESServer
> returned from this method ignores the port setting in the es.properties
> and always defaults to constant ServerConfiguration.XML_RPC_PORT_DEFAULT
> (8080).
>
> Changes to two lines of code in this method fixes this problem:
>
> 1. Add: 'int port =
> 'XmlRpcWebserverManager.getWebServerProvider().getPort();
>
> 2. Replace 'Integer.parseInt(ServerConfiguration.XML_RPC_PORT_DEFAULT)'
> with 'port'
>
> Thanks for the great product,
>
> $cott


--
Edgar Mueller

Get Professional Eclipse Support:
http://eclipsesource.com/en/services/developer-support/
Re: [EMFStore] minor bug [message #1713753 is a reply to message #1713229] Fri, 06 November 2015 12:33 Go to previous message
Scott Dybiec is currently offline Scott DybiecFriend
Messages: 148
Registered: July 2009
Senior Member
Bugzilla opened.

On 11/2/2015 9:50 AM, Edgar Mueller wrote:
> Hi Scott,
>
> good catch. Would you mind opening a Bug Report for this
> (https://bugs.eclipse.org/bugs/enter_bug.cgi?product=EMFStore), so we
> can fix it with the next milestone release of 1.7.0?
>
> Thank you,
> Edgar
>
> Am 01.11.2015 um 16:38 schrieb Scott Dybiec:
>> I ran into a problem trying to change the EMFStore server port number
>> when using the ESServer.FACTORY.createAndStartLocalServer(). When the
>> port number is changed in the es.properties file, the server is started
>> properly on the port specified in the properties file, but the ESServer
>> returned from this method ignores the port setting in the es.properties
>> and always defaults to constant ServerConfiguration.XML_RPC_PORT_DEFAULT
>> (8080).
>>
>> Changes to two lines of code in this method fixes this problem:
>>
>> 1. Add: 'int port =
>> 'XmlRpcWebserverManager.getWebServerProvider().getPort();
>>
>> 2. Replace 'Integer.parseInt(ServerConfiguration.XML_RPC_PORT_DEFAULT)'
>> with 'port'
>>
>> Thanks for the great product,
>>
>> $cott
>
>
Previous Topic:[EEF] Context-Sensitive Help
Next Topic:[EDAPT] EFactory questions
Goto Forum:
  


Current Time: Wed Jul 08 22:49:52 GMT 2020

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

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

Back to the top