Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [ecf-dev] org.eclipse.ecf.example.clients & IllegalMonitorStateException

Thank you for your answer Scott

Le 18/02/2010 18:28, Scott Lewis a écrit :
Giraudon Cyril wrote:
Hi,

I use Eclipse Galileo (Eclipse Modeling Tool) on an Ubuntu 9.10 box.
In addition Openfire 3.6.4 is installed and is running.
Two accounts has been created.

I trie ecf examples coming from org.eclipse.ecf.example.clients.source_1.4.0.v20090916-2238.jar. I run examples from the configuration window as "Run as application" (org.eclipse.ecf.example.clients.chatrobot)

The example seems to initialize and go into the loop at the end of the 'runRobot' method but
systematically  this exception is fired :
"""
!STACK 1
java.lang.IllegalMonitorStateException
at java.lang.Object.wait(Native Method)
at org.eclipse.ecf.example.clients.applications.ChatRobotApplication.runRobot(ChatRobotApplication.java:88) at org.eclipse.ecf.example.clients.applications.ChatRobotApplication.start(ChatRobotApplication.java:51)
"""

Do I something wrong ? Is there anything special to do to run examples ?

No, but the IApplication threading behavior is different then it used to be with previous Equinox versions. I'm updating these examples accordingly now:

I've opened this bug to track, and am working on it now so that the fixes can be in ECF 3.2 release (tomorrow)

https://bugs.eclipse.org/bugs/show_bug.cgi?id=303215

Great.






Besides, sometimes this exception is raised (randomly apparenly) :
"""
javax.net.ssl.SSLException: Received fatal alert: internal_error
at com.sun.net.ssl.internal.ssl.Alerts.getSSLException(Alerts.java:190)
at com.sun.net.ssl.internal.ssl.Alerts.getSSLException(Alerts.java:136)
at com.sun.net.ssl.internal.ssl.SSLSocketImpl.recvAlert(SSLSocketImpl.java:1682) at com.sun.net.ssl.internal.ssl.SSLSocketImpl.readRecord(SSLSocketImpl.java:932)
"""
Where does it come from ?

I don't have any idea. Is there more to the stack trace or other info in the log?

Scott


I report the complete strack trace for the SSL issue :

javax.net.ssl.SSLException: Received fatal alert: internal_error
    at com.sun.net.ssl.internal.ssl.Alerts.getSSLException(Alerts.java:190)
    at com.sun.net.ssl.internal.ssl.Alerts.getSSLException(Alerts.java:136)
at com.sun.net.ssl.internal.ssl.SSLSocketImpl.recvAlert(SSLSocketImpl.java:1682) at com.sun.net.ssl.internal.ssl.SSLSocketImpl.readRecord(SSLSocketImpl.java:932) at com.sun.net.ssl.internal.ssl.SSLSocketImpl.performInitialHandshake(SSLSocketImpl.java:1112) at com.sun.net.ssl.internal.ssl.SSLSocketImpl.startHandshake(SSLSocketImpl.java:1139) at com.sun.net.ssl.internal.ssl.SSLSocketImpl.startHandshake(SSLSocketImpl.java:1123) at org.jivesoftware.smack.XMPPConnection.proceedTLSReceived(XMPPConnection.java:1121) at org.jivesoftware.smack.PacketReader.parsePackets(PacketReader.java:327)
    at org.jivesoftware.smack.PacketReader.access$0(PacketReader.java:280)
    at org.jivesoftware.smack.PacketReader$1.run(PacketReader.java:63)
java.lang.IllegalStateException: Not connected to server.
at org.jivesoftware.smack.XMPPConnection.sendPacket(XMPPConnection.java:699) at org.jivesoftware.smack.NonSASLAuthentication.authenticate(NonSASLAuthentication.java:54) at org.jivesoftware.smack.SASLAuthentication.authenticate(SASLAuthentication.java:214)
    at org.jivesoftware.smack.XMPPConnection.login(XMPPConnection.java:426)
    at org.jivesoftware.smack.XMPPConnection.login(XMPPConnection.java:389)
at org.eclipse.ecf.internal.provider.xmpp.smack.ECFConnection.connect(ECFConnection.java:210) at org.eclipse.ecf.provider.generic.ClientSOContainer.connect(ClientSOContainer.java:146) at org.eclipse.ecf.provider.xmpp.XMPPContainer.connect(XMPPContainer.java:170) at org.eclipse.ecf.example.clients.XMPPChatClient.doConnect(XMPPChatClient.java:119) at org.eclipse.ecf.example.clients.applications.ChatRobotApplication.runRobot(ChatRobotApplication.java:77) at org.eclipse.ecf.example.clients.applications.ChatRobotApplication.start(ChatRobotApplication.java:51) at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:194) 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:368) at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:179)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:597)
    at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:559)
    at org.eclipse.equinox.launcher.Main.basicRun(Main.java:514)
    at org.eclipse.equinox.launcher.Main.run(Main.java:1311)
    at org.eclipse.equinox.launcher.Main.main(Main.java:1287)

Regards,

Cyril.



Back to the top