After adding some log.debug's I found that room_id  and
rcl.getRoom_id() are null.

When using my modified client code within Openmeetings everything
works fine. So problems could be related to the Web Service.

On 23 Nov., 00:14, lyric <[email protected]> wrote:
> Hello Sebastian,
>
> thank you for your help,
>
> here the line 1116 of Application.java:
>
> log.debug("*..* sendVars room_id: " + room_id + " rcl.getRoom_id "
> +rcl.getRoom_id() + " is euqal? "+
> (room_id.equals(rcl.getRoom_id())));
>
> and here the entire function in which it is:
>
>         public int sendVars(HashMap whiteboardObj) {
>                 //log.debug("*..*sendVars: " + whiteboardObj);
>                 try {
>                         // Check if this User is the Mod:
>                         IConnection current = Red5.getConnectionLocal();
>                         RoomClient currentClient =
> ClientList.get(current.getClient().getId());
>                         Long room_id = currentClient.getRoom_id();
>
>                         log.debug("***** sendVars: " + whiteboardObj);
>
>                         
> WhiteboardManagement.getInstance().addWhiteBoardObject(room_id,
> whiteboardObj);
>
>                         int numberOfUsers = 0;
>
>                         //This is no longer necessary
>                         //boolean ismod = currentClient.getIsMod();
>
>                         //log.debug("*..*ismod: " + ismod);
>
>                         //if (ismod) {
>                         Iterator<IConnection> it = 
> current.getScope().getConnections();
>                         while (it.hasNext()) {
>                                 IConnection conn = it.next();
>                                 if (conn instanceof 
> IServiceCapableConnection) {
>                                         RoomClient rcl = 
> ClientList.get(conn.getClient().getId());
>                                         //log.debug("*..*idremote: " + 
> rcl.getStreamid());
>                                         log.debug("*..* sendVars room_id: " + 
> room_id + " rcl.getRoom_id
> " +rcl.getRoom_id() + " is euqal? "+
> (room_id.equals(rcl.getRoom_id())));
>                                         if (room_id!=null && 
> room_id.equals(rcl.getRoom_id())) {
>                                                 //log.debug("*..* sendVars 
> room_id IS EQUAL: " +
> currentClient.getStreamid() + " asd " + rcl.getStreamid() + " IS eq? "
> +currentClient.getStreamid().equals(rcl.getStreamid()));
>                                                 if 
> (!currentClient.getStreamid().equals(rcl.getStreamid())) {
>                                                         
> ((IServiceCapableConnection)
> conn).invoke("sendVarsToWhiteboard", new Object[]
> { whiteboardObj },this);
>                                                         log.debug("sending 
> sendVarsToWhiteboard to " + conn + " rcl " +
> rcl);
>                                                         numberOfUsers++;
>                                                 }
>                                                 //log.debug("sending 
> sendVarsToWhiteboard to " + conn);
>                                                 if (rcl.getIsRecording()){
>
> StreamService.addWhiteBoardEvent(rcl.getRoomRecordingName(),whiteboardObj);
>                                                 }
>                                         }
>                                 }
>                         }
>
>                         return numberOfUsers;
>                         //} else {
>                         //      // log.debug("*..*you are not allowed to 
> send: "+ismod);
>                         //      return -1;
>                         //}
>                 } catch (Exception err) {
>                         log.error("[sendVars]",err);
>                 }
>                 return -1;
>         }
>
> On 22 Nov., 21:34, "[email protected]" <[email protected]>
> wrote:
>
> > Hallo lyric,
>
> > you must have some kind of old status of the source code that you're using
> > for your integration ;)
>
> > Application.java:1116
>
> > that is the line of code that you need to look at. I don't know what is
> > written in the Source code version you're using for that Line.
>
> > Sebastian
>
> > 2010/11/22 lyric <[email protected]>
>
> > > Hello,
> > > I currently try to extract and customize the whiteboard and use it
> > > through the web service. When using the draw action I get the
> > > following error on the server side. Different users on the same board
> > > can not see each others actions and drawings are lost after reentering
> > > the board.
>
> > > [ERROR] [pool-4-thread-16] org.openmeetings.app.remote.Application -
> > > [sendVars]
>
> > > The correct output should be something like this, I guess:
> > > [DEBUG] [pool-4-thread-16] org.openmeetings.app.remote.Application -
> > > *..* sendVars room_id: 3 rcl.getRoom_id 3 is euqal? true
>
> > > Any idea what goes wrong there?
>
> > > Thanks and cheers,
> > > Cyril
>
> > > PS: here the complete red5 output:
>
> > > [DEBUG] [pool-4-thread-16] org.openmeetings.app.remote.Application -
> > > ***** sendVars: {0=whiteboard, 1=Sat Nov 20 18:45:31 CET 2010, 2=draw,
> > > 3={0=line, 1=16737792, 2=2, 3=1, 4=1, 5=2, 6=1, 7=1, 8=0, 9=98,
> > > 10=228, 11=2, 12=3, 13=line_1290275130730}}
> > > [DEBUG] [pool-4-thread-16]
> > > org.openmeetings.app.conference.whiteboard.WhiteboardManagement -
> > > addWhiteBoardObject: {0=whiteboard, 1=Sat Nov 20 18:45:31 CET 2010,
> > > 2=draw, 3={0=line, 1=16737792, 2=2, 3=1, 4=1, 5=2, 6=1, 7=1, 8=0,
> > > 9=98, 10=228, 11=2, 12=3, 13=line_1290275130730}}
> > > [DEBUG] [pool-4-thread-16]
> > > org.openmeetings.app.conference.whiteboard.WhiteboardManagement -
> > > whiteboardObj 0: Event: whiteboard
> > > [DEBUG] [pool-4-thread-16]
> > > org.openmeetings.app.conference.whiteboard.WhiteboardManagement -
> > > whiteboardObj 1: Event: Sat Nov 20 18:45:31 CET 2010
> > > [DEBUG] [pool-4-thread-16]
> > > org.openmeetings.app.conference.whiteboard.WhiteboardManagement -
> > > whiteboardObj 2: Event: draw
> > > [DEBUG] [pool-4-thread-16]
> > > org.openmeetings.app.conference.whiteboard.WhiteboardManagement -
> > > whiteboardObj 3: Event: {0=line, 1=16737792, 2=2,3=1, 4=1, 5=2, 6=1,
> > > 7=1, 8=0, 9=98, 10=228, 11=2, 12=3, 13=line_1290275130730}
> > > [DEBUG] [pool-4-thread-16]
> > > org.openmeetings.app.conference.whiteboard.WhiteboardManagement -
> > > action: draw
> > > [DEBUG] [pool-4-thread-16]
> > > org.openmeetings.app.conference.whiteboard.WhiteboardManagement -
> > > objectOID: line_1290275130730
> > > [ERROR] [pool-4-thread-16] org.openmeetings.app.remote.Application -
> > > [sendVars]
> > > java.lang.NullPointerException
> > >        at
> > > org.openmeetings.app.remote.Application.sendVars(Application.java:
> > > 1116)
> > >        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.red5.server.service.ServiceInvoker.invoke(ServiceInvoker.java:201)
> > >        at
> > > org.red5.server.service.ServiceInvoker.invoke(ServiceInvoker.java:119)
> > >        at
> > > org.red5.server.net.rtmp.RTMPHandler.invokeCall(RTMPHandler.java:158)
> > >        at
> > > org.red5.server.net.rtmp.RTMPHandler.onInvoke(RTMPHandler.java:406)
> > >        at
>
> > > org.red5.server.net.rtmp.BaseRTMPHandler.messageReceived(BaseRTMPHandler.java:
> > > 146)
> > >        at
>
> > > org.red5.server.net.rtmp.RTMPMinaIoHandler.messageReceived(RTMPMinaIoHandler.java:
> > > 126)
> > >        at org.apache.mina.common.support.AbstractIoFilterChain
> > > $TailFilter.messageReceived(AbstractIoFilterChain.java:570)
> > >        at
>
> > > org.apache.mina.common.support.AbstractIoFilterChain.callNextMessageReceived(AbstractIoFilterChain.java:
> > > 299)
> > >        at org.apache.mina.common.support.AbstractIoFilterChain.access
> > > $1100(AbstractIoFilterChain.java:53)
> > >        at org.apache.mina.common.support.AbstractIoFilterChain
> > > $EntryImpl$1.messageReceived(AbstractIoFilterChain.java:648)
> > >        at
>
> > > org.apache.mina.filter.executor.ExecutorFilter.processEvent(ExecutorFilter.java:
> > > 220)
> > >        at org.apache.mina.filter.executor.ExecutorFilter
> > > $ProcessEventsRunnable.run(ExecutorFilter.java:264)
> > >        at java.util.concurrent.ThreadPoolExecutor
> > > $Worker.runTask(ThreadPoolExecutor.java:886)
> > >        at java.util.concurrent.ThreadPoolExecutor
> > > $Worker.run(ThreadPoolExecutor.java:908)
> > >        at java.lang.Thread.run(Thread.java:619)
>
> > > --
> > > You received this message because you are subscribed to the Google Groups
> > > "OpenMeetings developers" group.
> > > To post to this group, send email to [email protected].
> > > To unsubscribe from this group, send email to
> > > [email protected]<openmeetings-dev%[email protected]>
> > > .
> > > For more options, visit this group at
> > >http://groups.google.com/group/openmeetings-dev?hl=en.
>
> > --
> > Sebastian 
> > Wagnerhttp://www.webbase-design.dehttp://openmeetings.googlecode.comhttp://...
> > [email protected]

-- 
You received this message because you are subscribed to the Google Groups 
"OpenMeetings developers" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/openmeetings-dev?hl=en.

Reply via email to