okay but the method in the ConferenceService has no call to the
clientlistmanager:

public List<Rooms> getRoomsPublic(String SID, Long roomtypes_id){
        try {
            log.debug("getRoomsPublic");

            Long users_id =
Sessionmanagement.getInstance().checkSession(SID);
            Long User_level =
Usermanagement.getInstance().getUserLevelByID(users_id);
            log.error("getRoomsPublic user_level: "+User_level);


            List<Rooms> roomList =
Roommanagement.getInstance().getPublicRooms(User_level, roomtypes_id);

            // Filter : no appointed meetings
            List<Rooms> filtered = new ArrayList<Rooms>();

            for (Iterator<Rooms> iter = roomList.iterator();iter.hasNext();)
{
                Rooms rooms = iter.next();

                if(!rooms.getAppointment()){

rooms.setCurrentusers(this.getRoomClientsListByRoomId(rooms.getRooms_id()));
                    filtered.add(rooms);
                }
            }


            return filtered;
        } catch (Exception err) {
            log.error("[getRoomsByOrganisationAndType]",err);
        }
        return null;
    }

2010/10/27 Anderson vasconcelos <[email protected]>

> Thanks For Response Sebastian.
>
> They was generated with a old version. But when i create a new version
> using the trunk source code version, i received the same error of not
> instantiation of ClientListManager.
>
> In line 49 of roomService (
> http://openmeetings.googlecode.com/svn/trunk/singlewebapp/src/roomservice/org/openmeetings/axis/services/RoomService.java)
> the ConferenceService is called  as
> List<Rooms> roomList = ConferenceService.getInstance().getRoomsPublic(SID,
> roomtypes_id);
>
> I must register this in issue list ?
>
> Thanks
>
>
>
>
> 2010/10/27 [email protected] <[email protected]>
>
>> Hallo Anderson,
>>
>> no obviously its a Bug in our application not in your code. Since we load
>> the object through spring this extra initialization you've made should not
>> be needed.
>>
>> Actually I think you should use this method for now:
>> public RoomReturn getRoomWithClientObjectsById(String SID, long rooms_id)
>>
>>
>> But I also wonder about the debug-line in your code:
>> public Rooms[] getRoomsPublic(String SID, Long roomtypes_id)
>> => this method never invokes a method in the ConferenceService, so your
>> initial log does somehow not fit into yoru description?
>>
>> Sebastian
>>
>> 2010/10/27 Anderson vasconcelos <[email protected]>
>>
>>>  I created a constructor in ConferenceService class and instantiated the
>>> clientListManager. This is a bug, that i founded or has something wrong in
>>> the way where i am using the openMettings webservice integration?
>>>
>>> Thanks
>>>
>>> 2010/10/25 Anderson vasconcelos <[email protected]>
>>>
>>> Debugging here, i see that clientListManager property is null in
>>>> ConferenceService. Why his null? How must set ou instantiate this property?
>>>>
>>>> Anyone could help me?
>>>>
>>>> Thanks
>>>>
>>>> 2010/10/25 Anderson Vasconcelos <[email protected]>
>>>>
>>>> Hi All
>>>>> I try to call the method getRoomsPublic using  the RoomService
>>>>> (Webservice) whith the SID (value=3cacf29ca5e6e54adb2b133558d6541e)
>>>>> and  roomtypes_id (value=1), and i received a nullpointer on
>>>>> serverside.
>>>>> As you see in the stack, the method found one public room. But in line
>>>>> 608 of ConferenceService throws error. Today i donwload the source
>>>>> code, and the line 608 is just a debug
>>>>> (log.debug("getRoomClientsListByRoomId");). Anyone knows what happend?
>>>>>
>>>>>
>>>>> This is the stack:
>>>>>
>>>>> DEBUG 10-25 10:19:30.326 ConferenceService.java 2395012 156
>>>>> org.openmeetings.app.remote.ConferenceService [http-0.0.0.0-5080-1] -
>>>>> getRoomsPublic
>>>>> ERROR 10-25 10:19:30.365 ConferenceService.java 2395051 160
>>>>> org.openmeetings.app.remote.ConferenceService [http-0.0.0.0-5080-1] -
>>>>> getRoomsPublic user_level: 3
>>>>> ERROR 10-25 10:19:30.365 Roommanagement.java 2395051 521
>>>>> org.openmeetings.app.data.conference.Roommanagement
>>>>> [http-0.0.0.0-5080-1] - getPublicRooms: roomtypes_id 1
>>>>> ERROR 10-25 10:19:30.365 Roommanagement.java 2395051 523
>>>>> org.openmeetings.app.data.conference.Roommanagement
>>>>> [http-0.0.0.0-5080-1] - ### getPublicRooms: create Query 1
>>>>> ERROR 10-25 10:19:30.368 Roommanagement.java 2395054 546
>>>>> org.openmeetings.app.data.conference.Roommanagement
>>>>> [http-0.0.0.0-5080-1] - ### getPublicRooms: size Room List 1
>>>>> DEBUG 10-25 10:19:30.369 ConferenceService.java 2395055 604
>>>>> org.openmeetings.app.remote.ConferenceService [http-0.0.0.0-5080-1] -
>>>>> getRoomClientsListByRoomId
>>>>> ERROR 10-25 10:19:30.370 ConferenceService.java 2395056 616
>>>>> org.openmeetings.app.remote.ConferenceService [http-0.0.0.0-5080-1] -
>>>>> [getRoomClientsListByRoomId]
>>>>> java.lang.NullPointerException: null
>>>>>        at
>>>>>
>>>>> org.openmeetings.app.remote.ConferenceService.getRoomClientsListByRoomId(ConferenceService.java:
>>>>> 608) [openmeetings.jar:na]
>>>>>        at
>>>>>
>>>>> org.openmeetings.app.remote.ConferenceService.getRoomsPublic(ConferenceService.java:
>>>>> 172) [openmeetings.jar:na]
>>>>>        at
>>>>>
>>>>> org.openmeetings.axis.services.RoomService.getRoomsPublic(RoomService.java:
>>>>> 49) [axis28852468720305842270RoomService.aar:na]
>>>>>        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>>>>> [na:
>>>>> 1.6.0_18]
>>>>>        at
>>>>>
>>>>> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:
>>>>> 39) [na:1.6.0_18]
>>>>>        at
>>>>>
>>>>> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:
>>>>> 25) [na:1.6.0_18]
>>>>>        at java.lang.reflect.Method.invoke(Method.java:597)
>>>>> [na:1.6.0_18]
>>>>>        at
>>>>> org.apache.axis2.rpc.receivers.RPCUtil.invokeServiceClass(RPCUtil.java:
>>>>> 194) [axis2-adb-1.3.jar:na]
>>>>>        at
>>>>>
>>>>> org.apache.axis2.rpc.receivers.RPCMessageReceiver.invokeBusinessLogic(RPCMessageReceiver.java:
>>>>> 98) [axis2-adb-1.3.jar:na]
>>>>>        at
>>>>>
>>>>> org.apache.axis2.receivers.AbstractInOutMessageReceiver.invokeBusinessLogic(AbstractInOutMessageReceiver.java:
>>>>> 40) [axis2-kernel-1.3.jar:na]
>>>>>        at
>>>>>
>>>>> org.apache.axis2.receivers.AbstractMessageReceiver.receive(AbstractMessageReceiver.java:
>>>>> 96) [axis2-kernel-1.3.jar:na]
>>>>>        at
>>>>> org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:145)
>>>>> [axis2-kernel-1.3.jar:na]
>>>>>        at
>>>>>
>>>>> org.apache.axis2.transport.http.util.RESTUtil.invokeAxisEngine(RESTUtil.java:
>>>>> 125) [axis2-kernel-1.3.jar:na]
>>>>>        at
>>>>>
>>>>> org.apache.axis2.transport.http.util.RESTUtil.processXMLRequest(RESTUtil.java:
>>>>> 78) [axis2-kernel-1.3.jar:na]
>>>>>        at org.apache.axis2.transport.http.AxisServlet
>>>>> $RestRequestProcessor.processXMLRequest(AxisServlet.java:788) [axis2-
>>>>> kernel-1.3.jar:na]
>>>>>        at
>>>>> org.apache.axis2.transport.http.AxisServlet.doPost(AxisServlet.java:
>>>>> 193) [axis2-kernel-1.3.jar:na]
>>>>>        at javax.servlet.http.HttpServlet.service(HttpServlet.java:637)
>>>>> [javaee-api-5.1.1.jar:5.1.1]
>>>>>        at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
>>>>> [javaee-api-5.1.1.jar:5.1.1]
>>>>>        at
>>>>>
>>>>> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:
>>>>> 290) [catalina-6.0.24.jar:na]
>>>>>        at
>>>>>
>>>>> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:
>>>>> 206) [catalina-6.0.24.jar:na]
>>>>>        at
>>>>>
>>>>> org.openmeetings.servlet.outputhandler.ServletRequestExFilter.doFilter(ServletRequestExFilter.java:
>>>>> 35) [openmeetings.jar:na]
>>>>>        at
>>>>>
>>>>> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:
>>>>> 235) [catalina-6.0.24.jar:na]
>>>>>        at
>>>>>
>>>>> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:
>>>>> 206) [catalina-6.0.24.jar:na]
>>>>>        at
>>>>> org.red5.logging.LoggerContextFilter.doFilter(LoggerContextFilter.java:
>>>>> 87) [red5.jar:na]
>>>>>        at
>>>>>
>>>>> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:
>>>>> 235) [catalina-6.0.24.jar:na]
>>>>>        at
>>>>>
>>>>> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:
>>>>> 206) [catalina-6.0.24.jar:na]
>>>>>        at
>>>>>
>>>>> org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:
>>>>> 233) [catalina-6.0.24.jar:na]
>>>>>        at
>>>>>
>>>>> org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:
>>>>> 191) [catalina-6.0.24.jar:na]
>>>>>        at
>>>>>
>>>>> org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:
>>>>> 465) [catalina-6.0.24.jar:na]
>>>>>        at
>>>>>
>>>>> org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:
>>>>> 127) [catalina-6.0.24.jar:na]
>>>>>        at
>>>>>
>>>>> org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:
>>>>> 102) [catalina-6.0.24.jar:na]
>>>>>        at
>>>>> org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:
>>>>> 555) [catalina-6.0.24.jar:na]
>>>>>        at
>>>>>
>>>>> org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:
>>>>> 109) [catalina-6.0.24.jar:na]
>>>>>        at
>>>>> org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:
>>>>> 298) [catalina-6.0.24.jar:na]
>>>>>        at
>>>>> org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:
>>>>> 852) [tomcat-coyote-6.0.24.jar:na]
>>>>>        at org.apache.coyote.http11.Http11Protocol
>>>>> $Http11ConnectionHandler.process(Http11Protocol.java:588) [tomcat-
>>>>> coyote-6.0.24.jar:na]
>>>>>        at
>>>>> org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:
>>>>> 489) [tomcat-coyote-6.0.24.jar:na]
>>>>>        at java.lang.Thread.run(Thread.java:619) [na:1.6.0_18]
>>>>>
>>>>> --
>>>>> You received this message because you are subscribed to the Google
>>>>> Groups "OpenMeetings User" group.
>>>>> To post to this group, send email to
>>>>> [email protected].
>>>>> To unsubscribe from this group, send email to
>>>>> [email protected]<openmeetings-user%[email protected]>
>>>>> .
>>>>> For more options, visit this group at
>>>>> http://groups.google.com/group/openmeetings-user?hl=en.
>>>>>
>>>>>
>>>>
>>>  --
>>> You received this message because you are subscribed to the Google Groups
>>> "OpenMeetings User" group.
>>> To post to this group, send email to [email protected].
>>> To unsubscribe from this group, send email to
>>> [email protected]<openmeetings-user%[email protected]>
>>> .
>>> For more options, visit this group at
>>> http://groups.google.com/group/openmeetings-user?hl=en.
>>>
>>
>>
>>
>> --
>> Sebastian Wagner
>> http://www.webbase-design.de
>> http://openmeetings.googlecode.com
>> http://www.wagner-sebastian.com
>> [email protected]
>>
>> --
>> You received this message because you are subscribed to the Google Groups
>> "OpenMeetings User" group.
>> To post to this group, send email to [email protected].
>> To unsubscribe from this group, send email to
>> [email protected]<openmeetings-user%[email protected]>
>> .
>> For more options, visit this group at
>> http://groups.google.com/group/openmeetings-user?hl=en.
>>
>
>  --
> You received this message because you are subscribed to the Google Groups
> "OpenMeetings User" group.
> To post to this group, send email to [email protected].
> To unsubscribe from this group, send email to
> [email protected]<openmeetings-user%[email protected]>
> .
> For more options, visit this group at
> http://groups.google.com/group/openmeetings-user?hl=en.
>



-- 
Sebastian Wagner
http://www.webbase-design.de
http://openmeetings.googlecode.com
http://www.wagner-sebastian.com
[email protected]

-- 
You received this message because you are subscribed to the Google Groups 
"OpenMeetings User" 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-user?hl=en.

Reply via email to