Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [ecf-dev] RCP Chat example exception when displaying chat rooms

Hi Richard,


Thanks for the report.  I've filed a bug #161090 on
this:
Thanks Scott. I will give that a try.

One reason I am interested in the RCP chat application
is that I would like to add a feature to click on a
buddy in the roster initiating a phone call through
Asterisk.

I have developed an RCP application that manages the
MeetMe conference application of Asterisk. The RCP app
allows the moderator/admin to mute/unmute a
participant as well as lock/unlock the conference. The
participants are able to "raise their hand" to
indicate that he/she has a question or want to talk.

If you are interested on a webcast demo of the app, it
can be seen here
(http://www.ichu.com/alamr/meetme/timmeetme/timmeetme.html).

I am using Asterisk-java (www.asterisk-java.org) to 
communicate with the Asterisk Manager Interface (AMI).
However, there are drawbacks to this approach. One,
security because the AMI is not meant to be accessible
from a public IP. Second, am not sure if the AMI can
handle several connections to it in cases where there
are a number of people in a conference.

This is the reason why I am looking at ECF so I can
develop a server side application/plugin that will sit
between Asterisk and the clients. This won't expose
the AMI to the public and also the server side app
will be able to handle as many clients possible.

I was thinking of using JiveSfotware's Wildfire and
it's Asterisk-IM plugin for the server side
application. However, reading the Eclipse website,
Corona sounds promising and using ECF pubsub or your
remote service features are interesting. I am not sure
if this is possible though.

Do you have any ideas? 

Sorry, if I am rambling and not clear. I'll be more
clear when I understand some more about about ECF.

Thanks.

Richard


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

Looks on initial examination to be problem caused by
use of IP address (rather than hostname) in room ID
creation. 

While being fixed, a workaround might be to use a
hostname ('localhost' or some other) rather than
giving IP address (192.168.0.101).


Scott

--- Richard OSS <oss_richard@xxxxxxxxxx> wrote:

> Hi,
> 
> I am trying to learn ECF by running the RCP chat
> example. However, when I try to open the chat room I
> get the exception below. It's choking when trying to
> create and ID from the HostedRoom.
> 
> Is there anyway I can get around this? I haven't
> modified anything.
> 
> The chatroom displays fine in Spark (JiveSoftware's
> IM
> client).
> 
> Thanks in advance for your help?
> 
>
(trace)org.eclipse.ecf.provider.Trace.err[10/15/06;21:33:21:375]GUID[94N0YWuBgQDqU1ki.SZg1gk4XvU-]:org.eclipse.ecf.provider.xmpp.container.XMPPClientSOContainer:Exception
> in
>
createIDFromHostedRoom(org.jivesoftware.smackx.muc.HostedRoom@133f6dd)
> java.net.URISyntaxException: Illegal character in
> hostname at index 34:
>
xmpp://john@conference.192.168.0.101/tim?nickname=john
> 	at java.net.URI$Parser.fail(Unknown Source)
> 	at java.net.URI$Parser.parseHostname(Unknown
> Source)
> 	at java.net.URI$Parser.parseServer(Unknown Source)
> 	at java.net.URI$Parser.parseAuthority(Unknown
> Source)
> 	at java.net.URI$Parser.parseHierarchical(Unknown
> Source)
> 	at java.net.URI$Parser.parse(Unknown Source)
> 	at java.net.URI.<init>(Unknown Source)
> 	at
>
org.eclipse.ecf.provider.xmpp.identity.XMPPRoomID.<init>(XMPPRoomID.java:55)
> 	at
>
org.eclipse.ecf.provider.xmpp.container.XMPPClientSOContainer.createIDFromHostedRoom(XMPPClientSOContainer.java:540)
> 	at
>
org.eclipse.ecf.provider.xmpp.container.XMPPClientSOContainer.getChatRooms(XMPPClientSOContainer.java:559)
> 	at
>
org.eclipse.ecf.provider.xmpp.container.XMPPClientSOContainer$5.getChatRooms(XMPPClientSOContainer.java:504)
> 	at
>
org.eclipse.ecf.provider.xmpp.container.XMPPClientSOContainer$5.getChatRoomsInfo(XMPPClientSOContainer.java:510)
> 	at
>
org.eclipse.ecf.ui.dialogs.ChatRoomSelectionDialog.createDialogArea(ChatRoomSelectionDialog.java:124)
> 	at
>
org.eclipse.jface.dialogs.TitleAreaDialog.createContents(TitleAreaDialog.java:165)
> 	at
>
org.eclipse.jface.window.Window.create(Window.java:426)
> 	at
>
org.eclipse.jface.dialogs.Dialog.create(Dialog.java:1124)
> 	at
>
org.eclipse.jface.window.Window.open(Window.java:785)
> 	at
>
org.eclipse.ecf.ui.views.RosterView.showChatRooms(RosterView.java:1008)
> 	at
>
org.eclipse.ecf.ui.views.RosterView$17.run(RosterView.java:1181)
> 	at
>
org.eclipse.jface.action.Action.runWithEvent(Action.java:499)
> 	at
>
org.eclipse.jface.action.ActionContributionItem.handleWidgetSelection(ActionContributionItem.java:539)
> 	at
>
org.eclipse.jface.action.ActionContributionItem.access$2(ActionContributionItem.java:488)
> 	at
>
org.eclipse.jface.action.ActionContributionItem$5.handleEvent(ActionContributionItem.java:400)
> 	at
>
org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:66)
> 	at
>
org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:928)
> 	at
>
org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3348)
> 	at
>
org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:2968)
> 	at
>
org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:1914)
> 	at
>
org.eclipse.ui.internal.Workbench.runUI(Workbench.java:1878)
> 	at
>
org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:419)
> 	at
>
org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
> 	at
>
org.eclipse.ecf.example.rcpchat.Application.run(Application.java:28)
> 	at
>
org.eclipse.core.internal.runtime.PlatformActivator$1.run(PlatformActivator.java:78)
> 	at
>
org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:92)
> 	at
>
org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:68)
> 	at
>
org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:400)
> 	at
>
org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:177)
> 	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.core.launcher.Main.invokeFramework(Main.java:336)
> 	at
>
org.eclipse.core.launcher.Main.basicRun(Main.java:280)
> 	at
> org.eclipse.core.launcher.Main.run(Main.java:977)
> 	at
> org.eclipse.core.launcher.Main.main(Main.java:952)
> _______________________________________________
> ecf-dev mailing list
> ecf-dev@xxxxxxxxxxx
> https://dev.eclipse.org/mailman/listinfo/ecf-dev
> 



Back to the top