Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF "Technology" (Ecore Tools, EMFatic, etc)  » [EMFStore] Basic EMFStore Example doesn't work
[EMFStore] Basic EMFStore Example doesn't work [message #1248745] Mon, 17 February 2014 16:13 Go to next message
Marina Knieling is currently offline Marina KnielingFriend
Messages: 78
Registered: February 2013
Member
Hey guys,

I just tried to get the Basic EMFStore Example to work, but it crashes
with the following exception:

Connection to Server failed!
org.eclipse.emf.emfstore.internal.server.exceptions.ConnectionException:
Server could not be reached.
Failed to read server's response: Unrecognized SSL message, plaintext
connection?
at
org.eclipse.emf.emfstore.internal.client.model.connectionmanager.xmlrpc.XmlRpcClientManager.executeCall(XmlRpcClientManager.java:169)
at
org.eclipse.emf.emfstore.internal.client.model.connectionmanager.xmlrpc.XmlRpcClientManager.callWithResult(XmlRpcClientManager.java:115)
at
org.eclipse.emf.emfstore.internal.client.model.connectionmanager.xmlrpc.XmlRpcConnectionManager.logIn(XmlRpcConnectionManager.java:61)
at
org.eclipse.emf.emfstore.internal.client.model.impl.UsersessionImpl.logIn(UsersessionImpl.java:605)
at
org.eclipse.emf.emfstore.internal.client.model.impl.api.ESServerImpl$5.doRun(ESServerImpl.java:225)
at
org.eclipse.emf.emfstore.internal.client.model.util.EMFStoreCommand.commandBody(EMFStoreCommand.java:51)
at
org.eclipse.emf.emfstore.internal.client.model.util.AbstractEMFStoreCommand.execute(AbstractEMFStoreCommand.java:64)
at
org.eclipse.emf.common.command.BasicCommandStack.execute(BasicCommandStack.java:78)
at
org.eclipse.emf.emfstore.internal.client.model.changeTracking.commands.EMFStoreBasicCommandStack.execute(EMFStoreBasicCommandStack.java:72)
at
org.eclipse.emf.emfstore.internal.client.model.util.AbstractEMFStoreCommand.aRun(AbstractEMFStoreCommand.java:108)
at
org.eclipse.emf.emfstore.internal.client.model.util.EMFStoreCommand.run(EMFStoreCommand.java:60)
at
org.eclipse.emf.emfstore.internal.client.model.impl.api.ESServerImpl.login(ESServerImpl.java:234)
at
org.eclipse.emf.emfstore.example.helloworld.Application.runClient(Application.java:109)
at
org.eclipse.emf.emfstore.example.helloworld.Application.start(Application.java:49)
at
org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
at
org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110)
at
org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79)
at
org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:354)
at
org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:181)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:636)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:591)
at org.eclipse.equinox.launcher.Main.run(Main.java:1450)
at org.eclipse.equinox.launcher.Main.main(Main.java:1426)
Caused by: org.apache.xmlrpc.XmlRpcException: Failed to read server's
response: Unrecognized SSL message, plaintext connection?
at
org.apache.xmlrpc.client.XmlRpcStreamTransport.sendRequest(XmlRpcStreamTransport.java:161)
at
org.apache.xmlrpc.client.XmlRpcHttpTransport.sendRequest(XmlRpcHttpTransport.java:143)
at
org.apache.xmlrpc.client.XmlRpcSunHttpTransport.sendRequest(XmlRpcSunHttpTransport.java:69)
at
org.apache.xmlrpc.client.XmlRpcClientWorker.execute(XmlRpcClientWorker.java:56)
at org.apache.xmlrpc.client.XmlRpcClient.execute(XmlRpcClient.java:167)
at org.apache.xmlrpc.client.XmlRpcClient.execute(XmlRpcClient.java:137)
at org.apache.xmlrpc.client.XmlRpcClient.execute(XmlRpcClient.java:126)
at
org.eclipse.emf.emfstore.internal.client.model.connectionmanager.xmlrpc.XmlRpcClientManager.executeCall(XmlRpcClientManager.java:159)
... 26 more
Caused by: javax.net.ssl.SSLException: Unrecognized SSL message,
plaintext connection?
at sun.security.ssl.InputRecord.handleUnknownRecord(Unknown Source)
at sun.security.ssl.InputRecord.read(Unknown Source)
at sun.security.ssl.SSLSocketImpl.readRecord(Unknown Source)
at sun.security.ssl.SSLSocketImpl.performInitialHandshake(Unknown Source)
at sun.security.ssl.SSLSocketImpl.startHandshake(Unknown Source)
at sun.security.ssl.SSLSocketImpl.startHandshake(Unknown Source)
at sun.net.www.protocol.https.HttpsClient.afterConnect(Unknown Source)
at
sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection.connect(Unknown
Source)
at sun.net.www.protocol.http.HttpURLConnection.getOutputStream(Unknown
Source)
at
sun.net.www.protocol.https.HttpsURLConnectionImpl.getOutputStream(Unknown Source)
at
org.apache.xmlrpc.client.XmlRpcSunHttpTransport.writeRequest(XmlRpcSunHttpTransport.java:104)
at
org.apache.xmlrpc.client.XmlRpcStreamTransport.sendRequest(XmlRpcStreamTransport.java:151)
... 33 more

Seems like the call to
ESUsersession usersession = server.login("super", "super");
is the cause. Do I have to do anything else in order to make this work?
Some SSL settings in the eclipse IDE or anywhere else?

Regards
Marina
Re: [EMFStore] Basic EMFStore Example doesn't work [message #1248761 is a reply to message #1248745] Mon, 17 February 2014 16:35 Go to previous messageGo to next message
Marina Knieling is currently offline Marina KnielingFriend
Messages: 78
Registered: February 2013
Member
Solved. Stupid me. The server wasn't running because I had a JIRA
instance running on port 8080. Stopped the JIRA service and now it works.

BUT: when I change the port in the es.properties file to 443, it doesn't
work. I don't want to shut down my JIRA server each time I test the
Local EMFStore. Any hints on that?

New Exception is the following:

Connection to Server
failed!org.eclipse.emf.emfstore.internal.server.exceptions.ConnectionException:
Server could not be reached.
Failed to read server's response: Connection refused: connect

at
org.eclipse.emf.emfstore.internal.client.model.connectionmanager.xmlrpc.XmlRpcClientManager.executeCall(XmlRpcClientManager.java:169)
at
org.eclipse.emf.emfstore.internal.client.model.connectionmanager.xmlrpc.XmlRpcClientManager.callWithResult(XmlRpcClientManager.java:115)
at
org.eclipse.emf.emfstore.internal.client.model.connectionmanager.xmlrpc.XmlRpcConnectionManager.logIn(XmlRpcConnectionManager.java:61)
at
org.eclipse.emf.emfstore.internal.client.model.impl.UsersessionImpl.logIn(UsersessionImpl.java:605)
at
org.eclipse.emf.emfstore.internal.client.model.impl.api.ESServerImpl$5.doRun(ESServerImpl.java:225)
at
org.eclipse.emf.emfstore.internal.client.model.util.EMFStoreCommand.commandBody(EMFStoreCommand.java:51)
at
org.eclipse.emf.emfstore.internal.client.model.util.AbstractEMFStoreCommand.execute(AbstractEMFStoreCommand.java:64)
at
org.eclipse.emf.common.command.BasicCommandStack.execute(BasicCommandStack.java:78)
at
org.eclipse.emf.emfstore.internal.client.model.changeTracking.commands.EMFStoreBasicCommandStack.execute(EMFStoreBasicCommandStack.java:72)
at
org.eclipse.emf.emfstore.internal.client.model.util.AbstractEMFStoreCommand.aRun(AbstractEMFStoreCommand.java:108)
at
org.eclipse.emf.emfstore.internal.client.model.util.EMFStoreCommand.run(EMFStoreCommand.java:60)
at
org.eclipse.emf.emfstore.internal.client.model.impl.api.ESServerImpl.login(ESServerImpl.java:234)
at
org.eclipse.emf.emfstore.example.helloworld.Application.runClient(Application.java:109)
at
org.eclipse.emf.emfstore.example.helloworld.Application.start(Application.java:49)
at
org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
at
org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110)
at
org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79)
at
org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:354)
at
org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:181)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:636)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:591)
at org.eclipse.equinox.launcher.Main.run(Main.java:1450)
at org.eclipse.equinox.launcher.Main.main(Main.java:1426)
Caused by: org.apache.xmlrpc.XmlRpcException: Failed to read server's
response: Connection refused: connect
at
org.apache.xmlrpc.client.XmlRpcStreamTransport.sendRequest(XmlRpcStreamTransport.java:161)
at
org.apache.xmlrpc.client.XmlRpcHttpTransport.sendRequest(XmlRpcHttpTransport.java:143)
at
org.apache.xmlrpc.client.XmlRpcSunHttpTransport.sendRequest(XmlRpcSunHttpTransport.java:69)
at
org.apache.xmlrpc.client.XmlRpcClientWorker.execute(XmlRpcClientWorker.java:56)
at org.apache.xmlrpc.client.XmlRpcClient.execute(XmlRpcClient.java:167)
at org.apache.xmlrpc.client.XmlRpcClient.execute(XmlRpcClient.java:137)
at org.apache.xmlrpc.client.XmlRpcClient.execute(XmlRpcClient.java:126)
at
org.eclipse.emf.emfstore.internal.client.model.connectionmanager.xmlrpc.XmlRpcClientManager.executeCall(XmlRpcClientManager.java:159)
... 26 more
Caused by: java.net.ConnectException: Connection refused: connect
at java.net.DualStackPlainSocketImpl.waitForConnect(Native Method)
at java.net.DualStackPlainSocketImpl.socketConnect(Unknown Source)
at java.net.AbstractPlainSocketImpl.doConnect(Unknown Source)
at java.net.AbstractPlainSocketImpl.connectToAddress(Unknown Source)
at java.net.AbstractPlainSocketImpl.connect(Unknown Source)
at java.net.PlainSocketImpl.connect(Unknown Source)
at java.net.SocksSocketImpl.connect(Unknown Source)
at java.net.Socket.connect(Unknown Source)
at sun.security.ssl.SSLSocketImpl.connect(Unknown Source)
at sun.net.NetworkClient.doConnect(Unknown Source)
at sun.net.www.http.HttpClient.openServer(Unknown Source)
at sun.net.www.http.HttpClient.openServer(Unknown Source)
at sun.net.www.protocol.https.HttpsClient.<init>(Unknown Source)
at sun.net.www.protocol.https.HttpsClient.New(Unknown Source)
at
sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection.getNewHttpClient(Unknown
Source)
at sun.net.www.protocol.http.HttpURLConnection.plainConnect(Unknown Source)
at
sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection.connect(Unknown
Source)
at sun.net.www.protocol.http.HttpURLConnection.getOutputStream(Unknown
Source)
at
sun.net.www.protocol.https.HttpsURLConnectionImpl.getOutputStream(Unknown Source)
at
org.apache.xmlrpc.client.XmlRpcSunHttpTransport.writeRequest(XmlRpcSunHttpTransport.java:104)
at
org.apache.xmlrpc.client.XmlRpcStreamTransport.sendRequest(XmlRpcStreamTransport.java:151)
... 33 more

Am 17.02.2014 17:13, schrieb Marina Knieling:
> Hey guys,
>
> I just tried to get the Basic EMFStore Example to work, but it crashes
> with the following exception:
>
> Connection to Server failed!
> org.eclipse.emf.emfstore.internal.server.exceptions.ConnectionException:
> Server could not be reached.
> Failed to read server's response: Unrecognized SSL message, plaintext
> connection?
> at
> org.eclipse.emf.emfstore.internal.client.model.connectionmanager.xmlrpc.XmlRpcClientManager.executeCall(XmlRpcClientManager.java:169)
>
> at
> org.eclipse.emf.emfstore.internal.client.model.connectionmanager.xmlrpc.XmlRpcClientManager.callWithResult(XmlRpcClientManager.java:115)
>
> at
> org.eclipse.emf.emfstore.internal.client.model.connectionmanager.xmlrpc.XmlRpcConnectionManager.logIn(XmlRpcConnectionManager.java:61)
>
> at
> org.eclipse.emf.emfstore.internal.client.model.impl.UsersessionImpl.logIn(UsersessionImpl.java:605)
>
> at
> org.eclipse.emf.emfstore.internal.client.model.impl.api.ESServerImpl$5.doRun(ESServerImpl.java:225)
>
> at
> org.eclipse.emf.emfstore.internal.client.model.util.EMFStoreCommand.commandBody(EMFStoreCommand.java:51)
>
> at
> org.eclipse.emf.emfstore.internal.client.model.util.AbstractEMFStoreCommand.execute(AbstractEMFStoreCommand.java:64)
>
> at
> org.eclipse.emf.common.command.BasicCommandStack.execute(BasicCommandStack.java:78)
>
> at
> org.eclipse.emf.emfstore.internal.client.model.changeTracking.commands.EMFStoreBasicCommandStack.execute(EMFStoreBasicCommandStack.java:72)
>
> at
> org.eclipse.emf.emfstore.internal.client.model.util.AbstractEMFStoreCommand.aRun(AbstractEMFStoreCommand.java:108)
>
> at
> org.eclipse.emf.emfstore.internal.client.model.util.EMFStoreCommand.run(EMFStoreCommand.java:60)
>
> at
> org.eclipse.emf.emfstore.internal.client.model.impl.api.ESServerImpl.login(ESServerImpl.java:234)
>
> at
> org.eclipse.emf.emfstore.example.helloworld.Application.runClient(Application.java:109)
>
> at
> org.eclipse.emf.emfstore.example.helloworld.Application.start(Application.java:49)
>
> at
> org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
>
> at
> org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110)
>
> at
> org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79)
>
> at
> org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:354)
>
> at
> org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:181)
>
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
> at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
> at java.lang.reflect.Method.invoke(Unknown Source)
> at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:636)
> at org.eclipse.equinox.launcher.Main.basicRun(Main.java:591)
> at org.eclipse.equinox.launcher.Main.run(Main.java:1450)
> at org.eclipse.equinox.launcher.Main.main(Main.java:1426)
> Caused by: org.apache.xmlrpc.XmlRpcException: Failed to read server's
> response: Unrecognized SSL message, plaintext connection?
> at
> org.apache.xmlrpc.client.XmlRpcStreamTransport.sendRequest(XmlRpcStreamTransport.java:161)
>
> at
> org.apache.xmlrpc.client.XmlRpcHttpTransport.sendRequest(XmlRpcHttpTransport.java:143)
>
> at
> org.apache.xmlrpc.client.XmlRpcSunHttpTransport.sendRequest(XmlRpcSunHttpTransport.java:69)
>
> at
> org.apache.xmlrpc.client.XmlRpcClientWorker.execute(XmlRpcClientWorker.java:56)
>
> at
> org.apache.xmlrpc.client.XmlRpcClient.execute(XmlRpcClient.java:167)
> at
> org.apache.xmlrpc.client.XmlRpcClient.execute(XmlRpcClient.java:137)
> at
> org.apache.xmlrpc.client.XmlRpcClient.execute(XmlRpcClient.java:126)
> at
> org.eclipse.emf.emfstore.internal.client.model.connectionmanager.xmlrpc.XmlRpcClientManager.executeCall(XmlRpcClientManager.java:159)
>
> ... 26 more
> Caused by: javax.net.ssl.SSLException: Unrecognized SSL message,
> plaintext connection?
> at sun.security.ssl.InputRecord.handleUnknownRecord(Unknown Source)
> at sun.security.ssl.InputRecord.read(Unknown Source)
> at sun.security.ssl.SSLSocketImpl.readRecord(Unknown Source)
> at sun.security.ssl.SSLSocketImpl.performInitialHandshake(Unknown
> Source)
> at sun.security.ssl.SSLSocketImpl.startHandshake(Unknown Source)
> at sun.security.ssl.SSLSocketImpl.startHandshake(Unknown Source)
> at sun.net.www.protocol.https.HttpsClient.afterConnect(Unknown Source)
> at
> sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection.connect(Unknown
> Source)
> at
> sun.net.www.protocol.http.HttpURLConnection.getOutputStream(Unknown Source)
> at
> sun.net.www.protocol.https.HttpsURLConnectionImpl.getOutputStream(Unknown Source)
>
> at
> org.apache.xmlrpc.client.XmlRpcSunHttpTransport.writeRequest(XmlRpcSunHttpTransport.java:104)
>
> at
> org.apache.xmlrpc.client.XmlRpcStreamTransport.sendRequest(XmlRpcStreamTransport.java:151)
>
> ... 33 more
>
> Seems like the call to
> ESUsersession usersession = server.login("super", "super");
> is the cause. Do I have to do anything else in order to make this work?
> Some SSL settings in the eclipse IDE or anywhere else?
>
> Regards
> Marina
Re: [EMFStore] Basic EMFStore Example doesn't work [message #1249464 is a reply to message #1248761] Tue, 18 February 2014 09:20 Go to previous messageGo to next message
Edgar Mueller is currently offline Edgar MuellerFriend
Messages: 65
Registered: March 2011
Member
Hi Marina,

you need to change the port of your server reference that is returned by
createAndStartLocalServer(). Otherwise the default port 8080 will be
used. After you started the server with

final ESServer localServer = ESServer.FACTORY.createAndStartLocalServer();

call setPort(PORT) on your localServer instance:

localServer.setPort(443);

This will make the client use port 443 to communicate with the server.
Note that by default Skype blocks 443.
Hope this helps.

Cheers,
Edgar


Am 17.02.2014 17:35, schrieb Marina Knieling:
> Solved. Stupid me. The server wasn't running because I had a JIRA
> instance running on port 8080. Stopped the JIRA service and now it works.
>
> BUT: when I change the port in the es.properties file to 443, it doesn't
> work. I don't want to shut down my JIRA server each time I test the
> Local EMFStore. Any hints on that?
>
> New Exception is the following:
>
> Connection to Server
> failed!org.eclipse.emf.emfstore.internal.server.exceptions.ConnectionException:
> Server could not be reached.
> Failed to read server's response: Connection refused: connect
>
> at
> org.eclipse.emf.emfstore.internal.client.model.connectionmanager.xmlrpc.XmlRpcClientManager.executeCall(XmlRpcClientManager.java:169)
>
> at
> org.eclipse.emf.emfstore.internal.client.model.connectionmanager.xmlrpc.XmlRpcClientManager.callWithResult(XmlRpcClientManager.java:115)
>
> at
> org.eclipse.emf.emfstore.internal.client.model.connectionmanager.xmlrpc.XmlRpcConnectionManager.logIn(XmlRpcConnectionManager.java:61)
>
> at
> org.eclipse.emf.emfstore.internal.client.model.impl.UsersessionImpl.logIn(UsersessionImpl.java:605)
>
> at
> org.eclipse.emf.emfstore.internal.client.model.impl.api.ESServerImpl$5.doRun(ESServerImpl.java:225)
>
> at
> org.eclipse.emf.emfstore.internal.client.model.util.EMFStoreCommand.commandBody(EMFStoreCommand.java:51)
>
> at
> org.eclipse.emf.emfstore.internal.client.model.util.AbstractEMFStoreCommand.execute(AbstractEMFStoreCommand.java:64)
>
> at
> org.eclipse.emf.common.command.BasicCommandStack.execute(BasicCommandStack.java:78)
>
> at
> org.eclipse.emf.emfstore.internal.client.model.changeTracking.commands.EMFStoreBasicCommandStack.execute(EMFStoreBasicCommandStack.java:72)
>
> at
> org.eclipse.emf.emfstore.internal.client.model.util.AbstractEMFStoreCommand.aRun(AbstractEMFStoreCommand.java:108)
>
> at
> org.eclipse.emf.emfstore.internal.client.model.util.EMFStoreCommand.run(EMFStoreCommand.java:60)
>
> at
> org.eclipse.emf.emfstore.internal.client.model.impl.api.ESServerImpl.login(ESServerImpl.java:234)
>
> at
> org.eclipse.emf.emfstore.example.helloworld.Application.runClient(Application.java:109)
>
> at
> org.eclipse.emf.emfstore.example.helloworld.Application.start(Application.java:49)
>
> at
> org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
>
> at
> org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110)
>
> at
> org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79)
>
> at
> org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:354)
>
> at
> org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:181)
>
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
> at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
> at java.lang.reflect.Method.invoke(Unknown Source)
> at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:636)
> at org.eclipse.equinox.launcher.Main.basicRun(Main.java:591)
> at org.eclipse.equinox.launcher.Main.run(Main.java:1450)
> at org.eclipse.equinox.launcher.Main.main(Main.java:1426)
> Caused by: org.apache.xmlrpc.XmlRpcException: Failed to read server's
> response: Connection refused: connect
> at
> org.apache.xmlrpc.client.XmlRpcStreamTransport.sendRequest(XmlRpcStreamTransport.java:161)
>
> at
> org.apache.xmlrpc.client.XmlRpcHttpTransport.sendRequest(XmlRpcHttpTransport.java:143)
>
> at
> org.apache.xmlrpc.client.XmlRpcSunHttpTransport.sendRequest(XmlRpcSunHttpTransport.java:69)
>
> at
> org.apache.xmlrpc.client.XmlRpcClientWorker.execute(XmlRpcClientWorker.java:56)
>
> at org.apache.xmlrpc.client.XmlRpcClient.execute(XmlRpcClient.java:167)
> at org.apache.xmlrpc.client.XmlRpcClient.execute(XmlRpcClient.java:137)
> at org.apache.xmlrpc.client.XmlRpcClient.execute(XmlRpcClient.java:126)
> at
> org.eclipse.emf.emfstore.internal.client.model.connectionmanager.xmlrpc.XmlRpcClientManager.executeCall(XmlRpcClientManager.java:159)
>
> ... 26 more
> Caused by: java.net.ConnectException: Connection refused: connect
> at java.net.DualStackPlainSocketImpl.waitForConnect(Native Method)
> at java.net.DualStackPlainSocketImpl.socketConnect(Unknown Source)
> at java.net.AbstractPlainSocketImpl.doConnect(Unknown Source)
> at java.net.AbstractPlainSocketImpl.connectToAddress(Unknown Source)
> at java.net.AbstractPlainSocketImpl.connect(Unknown Source)
> at java.net.PlainSocketImpl.connect(Unknown Source)
> at java.net.SocksSocketImpl.connect(Unknown Source)
> at java.net.Socket.connect(Unknown Source)
> at sun.security.ssl.SSLSocketImpl.connect(Unknown Source)
> at sun.net.NetworkClient.doConnect(Unknown Source)
> at sun.net.www.http.HttpClient.openServer(Unknown Source)
> at sun.net.www.http.HttpClient.openServer(Unknown Source)
> at sun.net.www.protocol.https.HttpsClient.<init>(Unknown Source)
> at sun.net.www.protocol.https.HttpsClient.New(Unknown Source)
> at
> sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection.getNewHttpClient(Unknown
> Source)
> at sun.net.www.protocol.http.HttpURLConnection.plainConnect(Unknown
> Source)
> at
> sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection.connect(Unknown
> Source)
> at
> sun.net.www.protocol.http.HttpURLConnection.getOutputStream(Unknown Source)
> at
> sun.net.www.protocol.https.HttpsURLConnectionImpl.getOutputStream(Unknown Source)
>
> at
> org.apache.xmlrpc.client.XmlRpcSunHttpTransport.writeRequest(XmlRpcSunHttpTransport.java:104)
>
> at
> org.apache.xmlrpc.client.XmlRpcStreamTransport.sendRequest(XmlRpcStreamTransport.java:151)
>
> ... 33 more
>
> Am 17.02.2014 17:13, schrieb Marina Knieling:
>> Hey guys,
>>
>> I just tried to get the Basic EMFStore Example to work, but it crashes
>> with the following exception:
>>
>> Connection to Server failed!
>> org.eclipse.emf.emfstore.internal.server.exceptions.ConnectionException:
>> Server could not be reached.
>> Failed to read server's response: Unrecognized SSL message, plaintext
>> connection?
>> at
>> org.eclipse.emf.emfstore.internal.client.model.connectionmanager.xmlrpc.XmlRpcClientManager.executeCall(XmlRpcClientManager.java:169)
>>
>>
>> at
>> org.eclipse.emf.emfstore.internal.client.model.connectionmanager.xmlrpc.XmlRpcClientManager.callWithResult(XmlRpcClientManager.java:115)
>>
>>
>> at
>> org.eclipse.emf.emfstore.internal.client.model.connectionmanager.xmlrpc.XmlRpcConnectionManager.logIn(XmlRpcConnectionManager.java:61)
>>
>>
>> at
>> org.eclipse.emf.emfstore.internal.client.model.impl.UsersessionImpl.logIn(UsersessionImpl.java:605)
>>
>>
>> at
>> org.eclipse.emf.emfstore.internal.client.model.impl.api.ESServerImpl$5.doRun(ESServerImpl.java:225)
>>
>>
>> at
>> org.eclipse.emf.emfstore.internal.client.model.util.EMFStoreCommand.commandBody(EMFStoreCommand.java:51)
>>
>>
>> at
>> org.eclipse.emf.emfstore.internal.client.model.util.AbstractEMFStoreCommand.execute(AbstractEMFStoreCommand.java:64)
>>
>>
>> at
>> org.eclipse.emf.common.command.BasicCommandStack.execute(BasicCommandStack.java:78)
>>
>>
>> at
>> org.eclipse.emf.emfstore.internal.client.model.changeTracking.commands.EMFStoreBasicCommandStack.execute(EMFStoreBasicCommandStack.java:72)
>>
>>
>> at
>> org.eclipse.emf.emfstore.internal.client.model.util.AbstractEMFStoreCommand.aRun(AbstractEMFStoreCommand.java:108)
>>
>>
>> at
>> org.eclipse.emf.emfstore.internal.client.model.util.EMFStoreCommand.run(EMFStoreCommand.java:60)
>>
>>
>> at
>> org.eclipse.emf.emfstore.internal.client.model.impl.api.ESServerImpl.login(ESServerImpl.java:234)
>>
>>
>> at
>> org.eclipse.emf.emfstore.example.helloworld.Application.runClient(Application.java:109)
>>
>>
>> at
>> org.eclipse.emf.emfstore.example.helloworld.Application.start(Application.java:49)
>>
>>
>> at
>> org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
>>
>>
>> at
>> org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110)
>>
>>
>> at
>> org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79)
>>
>>
>> at
>> org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:354)
>>
>>
>> at
>> org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:181)
>>
>>
>> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>> at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
>> at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
>> at java.lang.reflect.Method.invoke(Unknown Source)
>> at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:636)
>> at org.eclipse.equinox.launcher.Main.basicRun(Main.java:591)
>> at org.eclipse.equinox.launcher.Main.run(Main.java:1450)
>> at org.eclipse.equinox.launcher.Main.main(Main.java:1426)
>> Caused by: org.apache.xmlrpc.XmlRpcException: Failed to read server's
>> response: Unrecognized SSL message, plaintext connection?
>> at
>> org.apache.xmlrpc.client.XmlRpcStreamTransport.sendRequest(XmlRpcStreamTransport.java:161)
>>
>>
>> at
>> org.apache.xmlrpc.client.XmlRpcHttpTransport.sendRequest(XmlRpcHttpTransport.java:143)
>>
>>
>> at
>> org.apache.xmlrpc.client.XmlRpcSunHttpTransport.sendRequest(XmlRpcSunHttpTransport.java:69)
>>
>>
>> at
>> org.apache.xmlrpc.client.XmlRpcClientWorker.execute(XmlRpcClientWorker.java:56)
>>
>>
>> at
>> org.apache.xmlrpc.client.XmlRpcClient.execute(XmlRpcClient.java:167)
>> at
>> org.apache.xmlrpc.client.XmlRpcClient.execute(XmlRpcClient.java:137)
>> at
>> org.apache.xmlrpc.client.XmlRpcClient.execute(XmlRpcClient.java:126)
>> at
>> org.eclipse.emf.emfstore.internal.client.model.connectionmanager.xmlrpc.XmlRpcClientManager.executeCall(XmlRpcClientManager.java:159)
>>
>>
>> ... 26 more
>> Caused by: javax.net.ssl.SSLException: Unrecognized SSL message,
>> plaintext connection?
>> at sun.security.ssl.InputRecord.handleUnknownRecord(Unknown Source)
>> at sun.security.ssl.InputRecord.read(Unknown Source)
>> at sun.security.ssl.SSLSocketImpl.readRecord(Unknown Source)
>> at sun.security.ssl.SSLSocketImpl.performInitialHandshake(Unknown
>> Source)
>> at sun.security.ssl.SSLSocketImpl.startHandshake(Unknown Source)
>> at sun.security.ssl.SSLSocketImpl.startHandshake(Unknown Source)
>> at sun.net.www.protocol.https.HttpsClient.afterConnect(Unknown
>> Source)
>> at
>> sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection.connect(Unknown
>>
>> Source)
>> at
>> sun.net.www.protocol.http.HttpURLConnection.getOutputStream(Unknown
>> Source)
>> at
>> sun.net.www.protocol.https.HttpsURLConnectionImpl.getOutputStream(Unknown
>> Source)
>>
>> at
>> org.apache.xmlrpc.client.XmlRpcSunHttpTransport.writeRequest(XmlRpcSunHttpTransport.java:104)
>>
>>
>> at
>> org.apache.xmlrpc.client.XmlRpcStreamTransport.sendRequest(XmlRpcStreamTransport.java:151)
>>
>>
>> ... 33 more
>>
>> Seems like the call to
>> ESUsersession usersession = server.login("super", "super");
>> is the cause. Do I have to do anything else in order to make this work?
>> Some SSL settings in the eclipse IDE or anywhere else?
>>
>> Regards
>> Marina
>


--
Edgar Mueller

Get Professional Eclipse Support: http://eclipsesource.com/munich
Re: [EMFStore] Basic EMFStore Example doesn't work [message #1250771 is a reply to message #1249464] Wed, 19 February 2014 15:30 Go to previous messageGo to next message
Marina Knieling is currently offline Marina KnielingFriend
Messages: 78
Registered: February 2013
Member
Hi Edgar,

thanks for your help. Works like a charm now.

Do you know of any way to set the port dynamically by finding out which
ports are used locally and then choose one that is free?
Although I think that there might be a problem with setting the port in
the es.properties file. Or can the port be set via eclipse Preferences
maybe? Any idea?

Thanks,
Marina

Am 18.02.2014 10:20, schrieb Edgar Mueller:
> Hi Marina,
>
> you need to change the port of your server reference that is returned by
> createAndStartLocalServer(). Otherwise the default port 8080 will be
> used. After you started the server with
>
> final ESServer localServer = ESServer.FACTORY.createAndStartLocalServer();
>
> call setPort(PORT) on your localServer instance:
>
> localServer.setPort(443);
>
> This will make the client use port 443 to communicate with the server.
> Note that by default Skype blocks 443.
> Hope this helps.
>
> Cheers,
> Edgar
>
>
> Am 17.02.2014 17:35, schrieb Marina Knieling:
>> Solved. Stupid me. The server wasn't running because I had a JIRA
>> instance running on port 8080. Stopped the JIRA service and now it works.
>>
>> BUT: when I change the port in the es.properties file to 443, it doesn't
>> work. I don't want to shut down my JIRA server each time I test the
>> Local EMFStore. Any hints on that?
>>
>> New Exception is the following:
>>
>> Connection to Server
>> failed!org.eclipse.emf.emfstore.internal.server.exceptions.ConnectionException:
>> Server could not be reached.
>> Failed to read server's response: Connection refused: connect
>>
>> at
>> org.eclipse.emf.emfstore.internal.client.model.connectionmanager.xmlrpc.XmlRpcClientManager.executeCall(XmlRpcClientManager.java:169)
>>
>> at
>> org.eclipse.emf.emfstore.internal.client.model.connectionmanager.xmlrpc.XmlRpcClientManager.callWithResult(XmlRpcClientManager.java:115)
>>
>> at
>> org.eclipse.emf.emfstore.internal.client.model.connectionmanager.xmlrpc.XmlRpcConnectionManager.logIn(XmlRpcConnectionManager.java:61)
>>
>> at
>> org.eclipse.emf.emfstore.internal.client.model.impl.UsersessionImpl.logIn(UsersessionImpl.java:605)
>>
>> at
>> org.eclipse.emf.emfstore.internal.client.model.impl.api.ESServerImpl$5.doRun(ESServerImpl.java:225)
>>
>> at
>> org.eclipse.emf.emfstore.internal.client.model.util.EMFStoreCommand.commandBody(EMFStoreCommand.java:51)
>>
>> at
>> org.eclipse.emf.emfstore.internal.client.model.util.AbstractEMFStoreCommand.execute(AbstractEMFStoreCommand.java:64)
>>
>> at
>> org.eclipse.emf.common.command.BasicCommandStack.execute(BasicCommandStack.java:78)
>>
>> at
>> org.eclipse.emf.emfstore.internal.client.model.changeTracking.commands.EMFStoreBasicCommandStack.execute(EMFStoreBasicCommandStack.java:72)
>>
>> at
>> org.eclipse.emf.emfstore.internal.client.model.util.AbstractEMFStoreCommand.aRun(AbstractEMFStoreCommand.java:108)
>>
>> at
>> org.eclipse.emf.emfstore.internal.client.model.util.EMFStoreCommand.run(EMFStoreCommand.java:60)
>>
>> at
>> org.eclipse.emf.emfstore.internal.client.model.impl.api.ESServerImpl.login(ESServerImpl.java:234)
>>
>> at
>> org.eclipse.emf.emfstore.example.helloworld.Application.runClient(Application.java:109)
>>
>> at
>> org.eclipse.emf.emfstore.example.helloworld.Application.start(Application.java:49)
>>
>> at
>> org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
>>
>> at
>> org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110)
>>
>> at
>> org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79)
>>
>> at
>> org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:354)
>>
>> at
>> org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:181)
>>
>> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>> at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
>> at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
>> at java.lang.reflect.Method.invoke(Unknown Source)
>> at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:636)
>> at org.eclipse.equinox.launcher.Main.basicRun(Main.java:591)
>> at org.eclipse.equinox.launcher.Main.run(Main.java:1450)
>> at org.eclipse.equinox.launcher.Main.main(Main.java:1426)
>> Caused by: org.apache.xmlrpc.XmlRpcException: Failed to read server's
>> response: Connection refused: connect
>> at
>> org.apache.xmlrpc.client.XmlRpcStreamTransport.sendRequest(XmlRpcStreamTransport.java:161)
>>
>> at
>> org.apache.xmlrpc.client.XmlRpcHttpTransport.sendRequest(XmlRpcHttpTransport.java:143)
>>
>> at
>> org.apache.xmlrpc.client.XmlRpcSunHttpTransport.sendRequest(XmlRpcSunHttpTransport.java:69)
>>
>> at
>> org.apache.xmlrpc.client.XmlRpcClientWorker.execute(XmlRpcClientWorker.java:56)
>>
>> at org.apache.xmlrpc.client.XmlRpcClient.execute(XmlRpcClient.java:167)
>> at org.apache.xmlrpc.client.XmlRpcClient.execute(XmlRpcClient.java:137)
>> at org.apache.xmlrpc.client.XmlRpcClient.execute(XmlRpcClient.java:126)
>> at
>> org.eclipse.emf.emfstore.internal.client.model.connectionmanager.xmlrpc.XmlRpcClientManager.executeCall(XmlRpcClientManager.java:159)
>>
>> ... 26 more
>> Caused by: java.net.ConnectException: Connection refused: connect
>> at java.net.DualStackPlainSocketImpl.waitForConnect(Native Method)
>> at java.net.DualStackPlainSocketImpl.socketConnect(Unknown Source)
>> at java.net.AbstractPlainSocketImpl.doConnect(Unknown Source)
>> at java.net.AbstractPlainSocketImpl.connectToAddress(Unknown Source)
>> at java.net.AbstractPlainSocketImpl.connect(Unknown Source)
>> at java.net.PlainSocketImpl.connect(Unknown Source)
>> at java.net.SocksSocketImpl.connect(Unknown Source)
>> at java.net.Socket.connect(Unknown Source)
>> at sun.security.ssl.SSLSocketImpl.connect(Unknown Source)
>> at sun.net.NetworkClient.doConnect(Unknown Source)
>> at sun.net.www.http.HttpClient.openServer(Unknown Source)
>> at sun.net.www.http.HttpClient.openServer(Unknown Source)
>> at sun.net.www.protocol.https.HttpsClient.<init>(Unknown Source)
>> at sun.net.www.protocol.https.HttpsClient.New(Unknown Source)
>> at
>> sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection.getNewHttpClient(Unknown
>> Source)
>> at sun.net.www.protocol.http.HttpURLConnection.plainConnect(Unknown
>> Source)
>> at
>> sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection.connect(Unknown
>> Source)
>> at
>> sun.net.www.protocol.http.HttpURLConnection.getOutputStream(Unknown Source)
>> at
>> sun.net.www.protocol.https.HttpsURLConnectionImpl.getOutputStream(Unknown Source)
>>
>> at
>> org.apache.xmlrpc.client.XmlRpcSunHttpTransport.writeRequest(XmlRpcSunHttpTransport.java:104)
>>
>> at
>> org.apache.xmlrpc.client.XmlRpcStreamTransport.sendRequest(XmlRpcStreamTransport.java:151)
>>
>> ... 33 more
>>
>> Am 17.02.2014 17:13, schrieb Marina Knieling:
>>> Hey guys,
>>>
>>> I just tried to get the Basic EMFStore Example to work, but it crashes
>>> with the following exception:
>>>
>>> Connection to Server failed!
>>> org.eclipse.emf.emfstore.internal.server.exceptions.ConnectionException:
>>> Server could not be reached.
>>> Failed to read server's response: Unrecognized SSL message, plaintext
>>> connection?
>>> at
>>> org.eclipse.emf.emfstore.internal.client.model.connectionmanager.xmlrpc.XmlRpcClientManager.executeCall(XmlRpcClientManager.java:169)
>>>
>>>
>>> at
>>> org.eclipse.emf.emfstore.internal.client.model.connectionmanager.xmlrpc.XmlRpcClientManager.callWithResult(XmlRpcClientManager.java:115)
>>>
>>>
>>> at
>>> org.eclipse.emf.emfstore.internal.client.model.connectionmanager.xmlrpc.XmlRpcConnectionManager.logIn(XmlRpcConnectionManager.java:61)
>>>
>>>
>>> at
>>> org.eclipse.emf.emfstore.internal.client.model.impl.UsersessionImpl.logIn(UsersessionImpl.java:605)
>>>
>>>
>>> at
>>> org.eclipse.emf.emfstore.internal.client.model.impl.api.ESServerImpl$5.doRun(ESServerImpl.java:225)
>>>
>>>
>>> at
>>> org.eclipse.emf.emfstore.internal.client.model.util.EMFStoreCommand.commandBody(EMFStoreCommand.java:51)
>>>
>>>
>>> at
>>> org.eclipse.emf.emfstore.internal.client.model.util.AbstractEMFStoreCommand.execute(AbstractEMFStoreCommand.java:64)
>>>
>>>
>>> at
>>> org.eclipse.emf.common.command.BasicCommandStack.execute(BasicCommandStack.java:78)
>>>
>>>
>>> at
>>> org.eclipse.emf.emfstore.internal.client.model.changeTracking.commands.EMFStoreBasicCommandStack.execute(EMFStoreBasicCommandStack.java:72)
>>>
>>>
>>> at
>>> org.eclipse.emf.emfstore.internal.client.model.util.AbstractEMFStoreCommand.aRun(AbstractEMFStoreCommand.java:108)
>>>
>>>
>>> at
>>> org.eclipse.emf.emfstore.internal.client.model.util.EMFStoreCommand.run(EMFStoreCommand.java:60)
>>>
>>>
>>> at
>>> org.eclipse.emf.emfstore.internal.client.model.impl.api.ESServerImpl.login(ESServerImpl.java:234)
>>>
>>>
>>> at
>>> org.eclipse.emf.emfstore.example.helloworld.Application.runClient(Application.java:109)
>>>
>>>
>>> at
>>> org.eclipse.emf.emfstore.example.helloworld.Application.start(Application.java:49)
>>>
>>>
>>> at
>>> org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
>>>
>>>
>>> at
>>> org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110)
>>>
>>>
>>> at
>>> org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79)
>>>
>>>
>>> at
>>> org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:354)
>>>
>>>
>>> at
>>> org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:181)
>>>
>>>
>>> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>>> at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
>>> at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
>>> at java.lang.reflect.Method.invoke(Unknown Source)
>>> at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:636)
>>> at org.eclipse.equinox.launcher.Main.basicRun(Main.java:591)
>>> at org.eclipse.equinox.launcher.Main.run(Main.java:1450)
>>> at org.eclipse.equinox.launcher.Main.main(Main.java:1426)
>>> Caused by: org.apache.xmlrpc.XmlRpcException: Failed to read server's
>>> response: Unrecognized SSL message, plaintext connection?
>>> at
>>> org.apache.xmlrpc.client.XmlRpcStreamTransport.sendRequest(XmlRpcStreamTransport.java:161)
>>>
>>>
>>> at
>>> org.apache.xmlrpc.client.XmlRpcHttpTransport.sendRequest(XmlRpcHttpTransport.java:143)
>>>
>>>
>>> at
>>> org.apache.xmlrpc.client.XmlRpcSunHttpTransport.sendRequest(XmlRpcSunHttpTransport.java:69)
>>>
>>>
>>> at
>>> org.apache.xmlrpc.client.XmlRpcClientWorker.execute(XmlRpcClientWorker.java:56)
>>>
>>>
>>> at
>>> org.apache.xmlrpc.client.XmlRpcClient.execute(XmlRpcClient.java:167)
>>> at
>>> org.apache.xmlrpc.client.XmlRpcClient.execute(XmlRpcClient.java:137)
>>> at
>>> org.apache.xmlrpc.client.XmlRpcClient.execute(XmlRpcClient.java:126)
>>> at
>>> org.eclipse.emf.emfstore.internal.client.model.connectionmanager.xmlrpc.XmlRpcClientManager.executeCall(XmlRpcClientManager.java:159)
>>>
>>>
>>> ... 26 more
>>> Caused by: javax.net.ssl.SSLException: Unrecognized SSL message,
>>> plaintext connection?
>>> at sun.security.ssl.InputRecord.handleUnknownRecord(Unknown Source)
>>> at sun.security.ssl.InputRecord.read(Unknown Source)
>>> at sun.security.ssl.SSLSocketImpl.readRecord(Unknown Source)
>>> at sun.security.ssl.SSLSocketImpl.performInitialHandshake(Unknown
>>> Source)
>>> at sun.security.ssl.SSLSocketImpl.startHandshake(Unknown Source)
>>> at sun.security.ssl.SSLSocketImpl.startHandshake(Unknown Source)
>>> at sun.net.www.protocol.https.HttpsClient.afterConnect(Unknown
>>> Source)
>>> at
>>> sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection.connect(Unknown
>>>
>>> Source)
>>> at
>>> sun.net.www.protocol.http.HttpURLConnection.getOutputStream(Unknown
>>> Source)
>>> at
>>> sun.net.www.protocol.https.HttpsURLConnectionImpl.getOutputStream(Unknown
>>> Source)
>>>
>>> at
>>> org.apache.xmlrpc.client.XmlRpcSunHttpTransport.writeRequest(XmlRpcSunHttpTransport.java:104)
>>>
>>>
>>> at
>>> org.apache.xmlrpc.client.XmlRpcStreamTransport.sendRequest(XmlRpcStreamTransport.java:151)
>>>
>>>
>>> ... 33 more
>>>
>>> Seems like the call to
>>> ESUsersession usersession = server.login("super", "super");
>>> is the cause. Do I have to do anything else in order to make this work?
>>> Some SSL settings in the eclipse IDE or anywhere else?
>>>
>>> Regards
>>> Marina
>>
>
>
Re: [EMFStore] Basic EMFStore Example doesn't work [message #1251574 is a reply to message #1250771] Thu, 20 February 2014 11:11 Go to previous message
Edgar Mueller is currently offline Edgar MuellerFriend
Messages: 65
Registered: March 2011
Member
Hi Marina,

I'm not sure if I understand you correctly. Would you like to set the
port of the server dynamically at startup, e.g. by starting the server
programatically and specifying the port as a parameter (instead of
declaring it in the es.properties file)? Unfortunately that is currently
not possible with EMFStore, although it would be feasible of course.
If this requirement is crucial for you, please open up a feature
request. Contributions are also welcome :)

Cheers,
Edgar

Am 19.02.2014 16:30, schrieb Marina Knieling:
> Hi Edgar,
>
> thanks for your help. Works like a charm now.
>
> Do you know of any way to set the port dynamically by finding out which
> ports are used locally and then choose one that is free?
> Although I think that there might be a problem with setting the port in
> the es.properties file. Or can the port be set via eclipse Preferences
> maybe? Any idea?
>
> Thanks,
> Marina
>
> Am 18.02.2014 10:20, schrieb Edgar Mueller:
>> Hi Marina,
>>
>> you need to change the port of your server reference that is returned by
>> createAndStartLocalServer(). Otherwise the default port 8080 will be
>> used. After you started the server with
>>
>> final ESServer localServer =
>> ESServer.FACTORY.createAndStartLocalServer();
>>
>> call setPort(PORT) on your localServer instance:
>>
>> localServer.setPort(443);
>>
>> This will make the client use port 443 to communicate with the server.
>> Note that by default Skype blocks 443.
>> Hope this helps.
>>
>> Cheers,
>> Edgar
>>
>>
>> Am 17.02.2014 17:35, schrieb Marina Knieling:
>>> Solved. Stupid me. The server wasn't running because I had a JIRA
>>> instance running on port 8080. Stopped the JIRA service and now it
>>> works.
>>>
>>> BUT: when I change the port in the es.properties file to 443, it doesn't
>>> work. I don't want to shut down my JIRA server each time I test the
>>> Local EMFStore. Any hints on that?
>>>
>>> New Exception is the following:
>>>
>>> Connection to Server
>>> failed!org.eclipse.emf.emfstore.internal.server.exceptions.ConnectionException:
>>>
>>> Server could not be reached.
>>> Failed to read server's response: Connection refused: connect
>>>
>>> at
>>> org.eclipse.emf.emfstore.internal.client.model.connectionmanager.xmlrpc.XmlRpcClientManager.executeCall(XmlRpcClientManager.java:169)
>>>
>>>
>>> at
>>> org.eclipse.emf.emfstore.internal.client.model.connectionmanager.xmlrpc.XmlRpcClientManager.callWithResult(XmlRpcClientManager.java:115)
>>>
>>>
>>> at
>>> org.eclipse.emf.emfstore.internal.client.model.connectionmanager.xmlrpc.XmlRpcConnectionManager.logIn(XmlRpcConnectionManager.java:61)
>>>
>>>
>>> at
>>> org.eclipse.emf.emfstore.internal.client.model.impl.UsersessionImpl.logIn(UsersessionImpl.java:605)
>>>
>>>
>>> at
>>> org.eclipse.emf.emfstore.internal.client.model.impl.api.ESServerImpl$5.doRun(ESServerImpl.java:225)
>>>
>>>
>>> at
>>> org.eclipse.emf.emfstore.internal.client.model.util.EMFStoreCommand.commandBody(EMFStoreCommand.java:51)
>>>
>>>
>>> at
>>> org.eclipse.emf.emfstore.internal.client.model.util.AbstractEMFStoreCommand.execute(AbstractEMFStoreCommand.java:64)
>>>
>>>
>>> at
>>> org.eclipse.emf.common.command.BasicCommandStack.execute(BasicCommandStack.java:78)
>>>
>>>
>>> at
>>> org.eclipse.emf.emfstore.internal.client.model.changeTracking.commands.EMFStoreBasicCommandStack.execute(EMFStoreBasicCommandStack.java:72)
>>>
>>>
>>> at
>>> org.eclipse.emf.emfstore.internal.client.model.util.AbstractEMFStoreCommand.aRun(AbstractEMFStoreCommand.java:108)
>>>
>>>
>>> at
>>> org.eclipse.emf.emfstore.internal.client.model.util.EMFStoreCommand.run(EMFStoreCommand.java:60)
>>>
>>>
>>> at
>>> org.eclipse.emf.emfstore.internal.client.model.impl.api.ESServerImpl.login(ESServerImpl.java:234)
>>>
>>>
>>> at
>>> org.eclipse.emf.emfstore.example.helloworld.Application.runClient(Application.java:109)
>>>
>>>
>>> at
>>> org.eclipse.emf.emfstore.example.helloworld.Application.start(Application.java:49)
>>>
>>>
>>> at
>>> org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
>>>
>>>
>>> at
>>> org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110)
>>>
>>>
>>> at
>>> org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79)
>>>
>>>
>>> at
>>> org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:354)
>>>
>>>
>>> at
>>> org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:181)
>>>
>>>
>>> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>>> at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
>>> at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
>>> at java.lang.reflect.Method.invoke(Unknown Source)
>>> at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:636)
>>> at org.eclipse.equinox.launcher.Main.basicRun(Main.java:591)
>>> at org.eclipse.equinox.launcher.Main.run(Main.java:1450)
>>> at org.eclipse.equinox.launcher.Main.main(Main.java:1426)
>>> Caused by: org.apache.xmlrpc.XmlRpcException: Failed to read server's
>>> response: Connection refused: connect
>>> at
>>> org.apache.xmlrpc.client.XmlRpcStreamTransport.sendRequest(XmlRpcStreamTransport.java:161)
>>>
>>>
>>> at
>>> org.apache.xmlrpc.client.XmlRpcHttpTransport.sendRequest(XmlRpcHttpTransport.java:143)
>>>
>>>
>>> at
>>> org.apache.xmlrpc.client.XmlRpcSunHttpTransport.sendRequest(XmlRpcSunHttpTransport.java:69)
>>>
>>>
>>> at
>>> org.apache.xmlrpc.client.XmlRpcClientWorker.execute(XmlRpcClientWorker.java:56)
>>>
>>>
>>> at
>>> org.apache.xmlrpc.client.XmlRpcClient.execute(XmlRpcClient.java:167)
>>> at
>>> org.apache.xmlrpc.client.XmlRpcClient.execute(XmlRpcClient.java:137)
>>> at
>>> org.apache.xmlrpc.client.XmlRpcClient.execute(XmlRpcClient.java:126)
>>> at
>>> org.eclipse.emf.emfstore.internal.client.model.connectionmanager.xmlrpc.XmlRpcClientManager.executeCall(XmlRpcClientManager.java:159)
>>>
>>>
>>> ... 26 more
>>> Caused by: java.net.ConnectException: Connection refused: connect
>>> at java.net.DualStackPlainSocketImpl.waitForConnect(Native Method)
>>> at java.net.DualStackPlainSocketImpl.socketConnect(Unknown Source)
>>> at java.net.AbstractPlainSocketImpl.doConnect(Unknown Source)
>>> at java.net.AbstractPlainSocketImpl.connectToAddress(Unknown
>>> Source)
>>> at java.net.AbstractPlainSocketImpl.connect(Unknown Source)
>>> at java.net.PlainSocketImpl.connect(Unknown Source)
>>> at java.net.SocksSocketImpl.connect(Unknown Source)
>>> at java.net.Socket.connect(Unknown Source)
>>> at sun.security.ssl.SSLSocketImpl.connect(Unknown Source)
>>> at sun.net.NetworkClient.doConnect(Unknown Source)
>>> at sun.net.www.http.HttpClient.openServer(Unknown Source)
>>> at sun.net.www.http.HttpClient.openServer(Unknown Source)
>>> at sun.net.www.protocol.https.HttpsClient.<init>(Unknown Source)
>>> at sun.net.www.protocol.https.HttpsClient.New(Unknown Source)
>>> at
>>> sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection.getNewHttpClient(Unknown
>>>
>>> Source)
>>> at sun.net.www.protocol.http.HttpURLConnection.plainConnect(Unknown
>>> Source)
>>> at
>>> sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection.connect(Unknown
>>>
>>> Source)
>>> at
>>> sun.net.www.protocol.http.HttpURLConnection.getOutputStream(Unknown
>>> Source)
>>> at
>>> sun.net.www.protocol.https.HttpsURLConnectionImpl.getOutputStream(Unknown
>>> Source)
>>>
>>> at
>>> org.apache.xmlrpc.client.XmlRpcSunHttpTransport.writeRequest(XmlRpcSunHttpTransport.java:104)
>>>
>>>
>>> at
>>> org.apache.xmlrpc.client.XmlRpcStreamTransport.sendRequest(XmlRpcStreamTransport.java:151)
>>>
>>>
>>> ... 33 more
>>>
>>> Am 17.02.2014 17:13, schrieb Marina Knieling:
>>>> Hey guys,
>>>>
>>>> I just tried to get the Basic EMFStore Example to work, but it crashes
>>>> with the following exception:
>>>>
>>>> Connection to Server failed!
>>>> org.eclipse.emf.emfstore.internal.server.exceptions.ConnectionException:
>>>>
>>>> Server could not be reached.
>>>> Failed to read server's response: Unrecognized SSL message, plaintext
>>>> connection?
>>>> at
>>>> org.eclipse.emf.emfstore.internal.client.model.connectionmanager.xmlrpc.XmlRpcClientManager.executeCall(XmlRpcClientManager.java:169)
>>>>
>>>>
>>>>
>>>> at
>>>> org.eclipse.emf.emfstore.internal.client.model.connectionmanager.xmlrpc.XmlRpcClientManager.callWithResult(XmlRpcClientManager.java:115)
>>>>
>>>>
>>>>
>>>> at
>>>> org.eclipse.emf.emfstore.internal.client.model.connectionmanager.xmlrpc.XmlRpcConnectionManager.logIn(XmlRpcConnectionManager.java:61)
>>>>
>>>>
>>>>
>>>> at
>>>> org.eclipse.emf.emfstore.internal.client.model.impl.UsersessionImpl.logIn(UsersessionImpl.java:605)
>>>>
>>>>
>>>>
>>>> at
>>>> org.eclipse.emf.emfstore.internal.client.model.impl.api.ESServerImpl$5.doRun(ESServerImpl.java:225)
>>>>
>>>>
>>>>
>>>> at
>>>> org.eclipse.emf.emfstore.internal.client.model.util.EMFStoreCommand.commandBody(EMFStoreCommand.java:51)
>>>>
>>>>
>>>>
>>>> at
>>>> org.eclipse.emf.emfstore.internal.client.model.util.AbstractEMFStoreCommand.execute(AbstractEMFStoreCommand.java:64)
>>>>
>>>>
>>>>
>>>> at
>>>> org.eclipse.emf.common.command.BasicCommandStack.execute(BasicCommandStack.java:78)
>>>>
>>>>
>>>>
>>>> at
>>>> org.eclipse.emf.emfstore.internal.client.model.changeTracking.commands.EMFStoreBasicCommandStack.execute(EMFStoreBasicCommandStack.java:72)
>>>>
>>>>
>>>>
>>>> at
>>>> org.eclipse.emf.emfstore.internal.client.model.util.AbstractEMFStoreCommand.aRun(AbstractEMFStoreCommand.java:108)
>>>>
>>>>
>>>>
>>>> at
>>>> org.eclipse.emf.emfstore.internal.client.model.util.EMFStoreCommand.run(EMFStoreCommand.java:60)
>>>>
>>>>
>>>>
>>>> at
>>>> org.eclipse.emf.emfstore.internal.client.model.impl.api.ESServerImpl.login(ESServerImpl.java:234)
>>>>
>>>>
>>>>
>>>> at
>>>> org.eclipse.emf.emfstore.example.helloworld.Application.runClient(Application.java:109)
>>>>
>>>>
>>>>
>>>> at
>>>> org.eclipse.emf.emfstore.example.helloworld.Application.start(Application.java:49)
>>>>
>>>>
>>>>
>>>> at
>>>> org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
>>>>
>>>>
>>>>
>>>> at
>>>> org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110)
>>>>
>>>>
>>>>
>>>> at
>>>> org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79)
>>>>
>>>>
>>>>
>>>> at
>>>> org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:354)
>>>>
>>>>
>>>>
>>>> at
>>>> org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:181)
>>>>
>>>>
>>>>
>>>> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>>>> at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
>>>> at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown
>>>> Source)
>>>> at java.lang.reflect.Method.invoke(Unknown Source)
>>>> at
>>>> org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:636)
>>>> at org.eclipse.equinox.launcher.Main.basicRun(Main.java:591)
>>>> at org.eclipse.equinox.launcher.Main.run(Main.java:1450)
>>>> at org.eclipse.equinox.launcher.Main.main(Main.java:1426)
>>>> Caused by: org.apache.xmlrpc.XmlRpcException: Failed to read server's
>>>> response: Unrecognized SSL message, plaintext connection?
>>>> at
>>>> org.apache.xmlrpc.client.XmlRpcStreamTransport.sendRequest(XmlRpcStreamTransport.java:161)
>>>>
>>>>
>>>>
>>>> at
>>>> org.apache.xmlrpc.client.XmlRpcHttpTransport.sendRequest(XmlRpcHttpTransport.java:143)
>>>>
>>>>
>>>>
>>>> at
>>>> org.apache.xmlrpc.client.XmlRpcSunHttpTransport.sendRequest(XmlRpcSunHttpTransport.java:69)
>>>>
>>>>
>>>>
>>>> at
>>>> org.apache.xmlrpc.client.XmlRpcClientWorker.execute(XmlRpcClientWorker.java:56)
>>>>
>>>>
>>>>
>>>> at
>>>> org.apache.xmlrpc.client.XmlRpcClient.execute(XmlRpcClient.java:167)
>>>> at
>>>> org.apache.xmlrpc.client.XmlRpcClient.execute(XmlRpcClient.java:137)
>>>> at
>>>> org.apache.xmlrpc.client.XmlRpcClient.execute(XmlRpcClient.java:126)
>>>> at
>>>> org.eclipse.emf.emfstore.internal.client.model.connectionmanager.xmlrpc.XmlRpcClientManager.executeCall(XmlRpcClientManager.java:159)
>>>>
>>>>
>>>>
>>>> ... 26 more
>>>> Caused by: javax.net.ssl.SSLException: Unrecognized SSL message,
>>>> plaintext connection?
>>>> at sun.security.ssl.InputRecord.handleUnknownRecord(Unknown
>>>> Source)
>>>> at sun.security.ssl.InputRecord.read(Unknown Source)
>>>> at sun.security.ssl.SSLSocketImpl.readRecord(Unknown Source)
>>>> at sun.security.ssl.SSLSocketImpl.performInitialHandshake(Unknown
>>>> Source)
>>>> at sun.security.ssl.SSLSocketImpl.startHandshake(Unknown Source)
>>>> at sun.security.ssl.SSLSocketImpl.startHandshake(Unknown Source)
>>>> at sun.net.www.protocol.https.HttpsClient.afterConnect(Unknown
>>>> Source)
>>>> at
>>>> sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection.connect(Unknown
>>>>
>>>>
>>>> Source)
>>>> at
>>>> sun.net.www.protocol.http.HttpURLConnection.getOutputStream(Unknown
>>>> Source)
>>>> at
>>>> sun.net.www.protocol.https.HttpsURLConnectionImpl.getOutputStream(Unknown
>>>>
>>>> Source)
>>>>
>>>> at
>>>> org.apache.xmlrpc.client.XmlRpcSunHttpTransport.writeRequest(XmlRpcSunHttpTransport.java:104)
>>>>
>>>>
>>>>
>>>> at
>>>> org.apache.xmlrpc.client.XmlRpcStreamTransport.sendRequest(XmlRpcStreamTransport.java:151)
>>>>
>>>>
>>>>
>>>> ... 33 more
>>>>
>>>> Seems like the call to
>>>> ESUsersession usersession = server.login("super", "super");
>>>> is the cause. Do I have to do anything else in order to make this work?
>>>> Some SSL settings in the eclipse IDE or anywhere else?
>>>>
>>>> Regards
>>>> Marina
>>>
>>
>>
>


--
Edgar Mueller

Get Professional Eclipse Support: http://eclipsesource.com/munich
Previous Topic:TENEO LONGTEXT DATATYPE
Next Topic:[EMFStore]ResourcePersister throws NotSerializableException before commit
Goto Forum:
  


Current Time: Thu Nov 27 00:36:53 GMT 2014

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

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