Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse Communications Framework (ECF) » Scribbleshare & Shared Editor Tuts not working...
Scribbleshare & Shared Editor Tuts not working... [message #603983] Thu, 01 June 2006 00:54 Go to next message
Eclipse User
Originally posted by: duanetharp.aol.com

I have the latest eclipse 3.2 build, and I have downloaded the latest ECF
source and the pre-packaged zip files.

Going through both the scribbleshare example as well as the shared editor
example, it seems that one side of the connection is established with the
server.

However, when I try to establish another connection to the server with a
cloned eclipse instance, nothing seems to work.

In the shared editor example, when I go to the second instance after having
published the first txt file, nothing shows up in the list for me to
select...

In the scribbleshare example, the first user connects to the server fine and
I can see the response. I go ahead and pull up the scribbleshare window.
Then, when the second user tries to connect to the server, an exception is
thrown...here is the exception...
(trace)org.eclipse.ecf.provider.Trace.errGUID:org.eclipse.ec f.provider.generic.TCPClientSOContainer:Exception
in handleSharedObjectMessage:SharedObjectMessage[StringID;[B@1b310f2]

java.lang.ClassNotFoundException: [Ljava.lang.Object;

at
org.eclipse.osgi.framework.internal.core.BundleLoader.findCl ass(BundleLoader.java:407)

at
org.eclipse.osgi.framework.internal.core.BundleLoader.findCl ass(BundleLoader.java:352)

at
org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.loa dClass(DefaultClassLoader.java:83)

at java.lang.ClassLoader.loadClass(Unknown Source)

at
org.eclipse.ecf.core.util.IdentifiableObjectInputStream.reso lveClass(IdentifiableObjectInputStream.java:49)

at java.io.ObjectInputStream.readNonProxyDesc(Unknown Source)

at java.io.ObjectInputStream.readClassDesc(Unknown Source)

at java.io.ObjectInputStream.readArray(Unknown Source)

at java.io.ObjectInputStream.readObject0(Unknown Source)

at java.io.ObjectInputStream.defaultReadFields(Unknown Source)

at java.io.ObjectInputStream.readSerialData(Unknown Source)

at java.io.ObjectInputStream.readOrdinaryObject(Unknown Source)

at java.io.ObjectInputStream.readObject0(Unknown Source)

at java.io.ObjectInputStream.defaultReadFields(Unknown Source)

at java.io.ObjectInputStream.readSerialData(Unknown Source)

at java.io.ObjectInputStream.readOrdinaryObject(Unknown Source)

at java.io.ObjectInputStream.readObject0(Unknown Source)

at java.io.ObjectInputStream.readObject(Unknown Source)

at
org.eclipse.ecf.provider.generic.SOContainer.deserializeShar edObjectMessage(SOContainer.java:1052)

at
org.eclipse.ecf.provider.generic.SOContainer.handleSharedObj ectMessage(SOContainer.java:712)

at
org.eclipse.ecf.provider.generic.SOContainer.processAsynch(S OContainer.java:880)

at
org.eclipse.ecf.provider.generic.ClientSOContainer.processAs ynch(ClientSOContainer.java:332)

at
org.eclipse.ecf.provider.generic.SOContainer$MessageReceiver .handleAsynchEvent(SOContainer.java:194)

at org.eclipse.ecf.provider.comm.tcp.Client.handleRcv(Client.ja va:386)

at org.eclipse.ecf.provider.comm.tcp.Client.access$5(Client.jav a:374)

at org.eclipse.ecf.provider.comm.tcp.Client$4.run(Client.java:3 59)

at java.lang.Thread.run(Unknown Source)



thoughts?
Re: Scribbleshare & Shared Editor Tuts not working... [message #603988 is a reply to message #603983] Thu, 01 June 2006 02:37 Go to previous message
Scott Lewis is currently offline Scott Lewis
Messages: 970
Registered: July 2009
Senior Member
Hi Duane,

So far, I'm not able to reproduce these problems...so need your help in
figuring out what's wrong and how to fix things for you.

Let's focus on one example at a time.

Scribbleshare Example

If I do the following

1) Run An ECF generic server via

<eclipsehome> /features\org.eclipse.ecf.serverfeature_0.8.3\bin\startserve r.cmd

2) Start two Eclipse instances (i.e. in Eclipse debugger with separate
workspaces)

3) For each instance, select ECF Tutorial->ECF Client menu item

I'm able to successfully share scribbles among those clients, via the
server.

Then, if I stop the two scribbleshare clients, stop the server, and then
follow the instructions here

http://wiki.eclipse.org/index.php/Example_Shared_Text_Editor

I'm able to get the shared editor working as described on that page with
two clients and a server.

Now to try to figure out what's going wrong with your tests...

First, I'm a little confused by the exception you are getting:

> java.lang.ClassNotFoundException: [Ljava.lang.Object;
>

this indicates that somehow the java.lang.Object class cannot be found
during Object deserialization on the client. I don't understand how the
classloader could *not* find java.lang.Object.

But, I can see that it is trying to deserialize the collab example
'chat' application...see StringID:

>
(trace)org.eclipse.ecf.provider.Trace.errGUID:org.eclipse.ec f.provider.generic.TCPClientSOContainer:Exception

> in
>handleSharedObjectMessage:SharedObjectMessage[StringID;

So it looks like this client may already be connected to a server that
is hosting another client running the collab example
(org.eclipse.ecf.example.collab).

Perhaps you are connecting multiple *different* example clients (e.g.
collab, scribbleshare, shared editor) to a single server (i.e. running
on localhost?). This could result in what you've seen below...as
several of the examples by default use a single server (ECF generic
server running at ecftcp://localhost:3282/server). So perhaps they are
interfering with one another. If you think this might be the case, I
would suggest starting a server 'fresh' at
ecftcp://localhost:3282/server, and choosing one example app (e.g.
scribbleshare) and seeing if you can get that going...or isolate the
problem you are having with that simple case.

It would be nice to have a single 'uber' example that runs all the other
example apps (scribbleshare, collab, shared editor, IM, etc)...but
unfortunately we don't have that yet.

Scott



Duane Tharp wrote:
> I have the latest eclipse 3.2 build, and I have downloaded the latest ECF
> source and the pre-packaged zip files.
>
> Going through both the scribbleshare example as well as the shared editor
> example, it seems that one side of the connection is established with the
> server.
>
> However, when I try to establish another connection to the server with a
> cloned eclipse instance, nothing seems to work.
>
> In the shared editor example, when I go to the second instance after having
> published the first txt file, nothing shows up in the list for me to
> select...
>
> In the scribbleshare example, the first user connects to the server fine and
> I can see the response. I go ahead and pull up the scribbleshare window.
> Then, when the second user tries to connect to the server, an exception is
> thrown...here is the exception...
> (trace)org.eclipse.ecf.provider.Trace.errGUID:org.eclipse.ec f.provider.generic.TCPClientSOContainer:Exception
> in handleSharedObjectMessage:SharedObjectMessage[StringID;[B@1b310f2]
>
> java.lang.ClassNotFoundException: [Ljava.lang.Object;
>
> at
> org.eclipse.osgi.framework.internal.core.BundleLoader.findCl ass(BundleLoader.java:407)
>
> at
> org.eclipse.osgi.framework.internal.core.BundleLoader.findCl ass(BundleLoader.java:352)
>
> at
> org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.loa dClass(DefaultClassLoader.java:83)
>
> at java.lang.ClassLoader.loadClass(Unknown Source)
>
> at
> org.eclipse.ecf.core.util.IdentifiableObjectInputStream.reso lveClass(IdentifiableObjectInputStream.java:49)
>
> at java.io.ObjectInputStream.readNonProxyDesc(Unknown Source)
>
> at java.io.ObjectInputStream.readClassDesc(Unknown Source)
>
> at java.io.ObjectInputStream.readArray(Unknown Source)
>
> at java.io.ObjectInputStream.readObject0(Unknown Source)
>
> at java.io.ObjectInputStream.defaultReadFields(Unknown Source)
>
> at java.io.ObjectInputStream.readSerialData(Unknown Source)
>
> at java.io.ObjectInputStream.readOrdinaryObject(Unknown Source)
>
> at java.io.ObjectInputStream.readObject0(Unknown Source)
>
> at java.io.ObjectInputStream.defaultReadFields(Unknown Source)
>
> at java.io.ObjectInputStream.readSerialData(Unknown Source)
>
> at java.io.ObjectInputStream.readOrdinaryObject(Unknown Source)
>
> at java.io.ObjectInputStream.readObject0(Unknown Source)
>
> at java.io.ObjectInputStream.readObject(Unknown Source)
>
> at
> org.eclipse.ecf.provider.generic.SOContainer.deserializeShar edObjectMessage(SOContainer.java:1052)
>
> at
> org.eclipse.ecf.provider.generic.SOContainer.handleSharedObj ectMessage(SOContainer.java:712)

>
> at
> org.eclipse.ecf.provider.generic.SOContainer.processAsynch(S OContainer.java:880)
>
> at
> org.eclipse.ecf.provider.generic.ClientSOContainer.processAs ynch(ClientSOContainer.java:332)
>
> at
> org.eclipse.ecf.provider.generic.SOContainer$MessageReceiver .handleAsynchEvent(SOContainer.java:194)
>
> at org.eclipse.ecf.provider.comm.tcp.Client.handleRcv(Client.ja va:386)
>
> at org.eclipse.ecf.provider.comm.tcp.Client.access$5(Client.jav a:374)
>
> at org.eclipse.ecf.provider.comm.tcp.Client$4.run(Client.java:3 59)
>
> at java.lang.Thread.run(Unknown Source)
>
>
>
> thoughts?
>
>
>
Previous Topic:ECF 0.8.3 stable
Next Topic:ECF 0.8.4 stable
Goto Forum:
  


Current Time: Thu Oct 02 02:24:24 GMT 2014

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

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