You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@openmeetings.apache.org by Pradeep D <pr...@gmail.com> on 2013/09/08 03:57:54 UTC

Error while calling RoomWebService

---------- Forwarded message ----------
From: "Pradeep D" <pr...@gmail.com>
Date: 8 Sep 2013 00:17
Subject: Error while calling RoomWebService
To: <us...@openmeetings.apache.org>, <de...@openmeetings.apache.org>
Cc:

Hi All,

I download the latest openmeeting 2.1.1m We are calling RoomWebService.
 *addRoomWithModerationAndExternalTypeAndStartEnd*
  method which is throwing the below exception,
http://localhost:5080/openmeetings/services/RoomService
Exception in thread "main"
com.sun.jersey.api.client.UniformInterfaceException: GET
http://localhost:5080/openmeetings/services/RoomService returned a response
status of 500 Internal Server Error
    at com.sun.jersey.api.client.WebResource.handle(WebResource.java:686)
    at com.sun.jersey.api.client.WebResource.get(WebResource.java:191)
    at
openmeetingtest.OpenMeetingService.addNewRoomWithModeratorLimitedTime(OpenMeetingService.java:109)
    at openmeetingtest.OpenMeetingTest.main(OpenMeetingTest.java:26)

Below is the code for calling the REST service

SimpleDateFormat dfDate = new SimpleDateFormat("dd.MM.yyyy");
        SimpleDateFormat dfTime = new SimpleDateFormat("mm:hh");

        Client client = new Client();
        WebResource webResource =
client.resource(openMeetingServiceUrl+"/RoomService");

        MultivaluedMap queryParams = new MultivaluedMapImpl();
        queryParams.add("SID",sessionResponse.getSession_id());
        queryParams.add("name","Meeting_"+meetingId);
        queryParams.add("roomtypes_id","1");
        queryParams.add("numberOfPartizipants",numberOfUsers.toString());
        queryParams.add("ispublic","false");
        queryParams.add("appointment","false");
        queryParams.add("isDemoRoom","false");
        queryParams.add("isModeratedRoom","true");
        queryParams.add("externalRoomType","ebox");
        queryParams.add("validFromDate",dfDate.format(new Date()));
        queryParams.add("validFromTime",dfTime.format(new Date()));
        queryParams.add("validToDate",dfDate.format(new Date()));
        queryParams.add("validToTime",dfTime.format(new Date()));
        queryParams.add("isPasswordProtected","false");
        queryParams.add("reminderTypeId","1");
        queryParams.add("redirectURL","1");


webResource.path("addRoomWithModerationAndExternalTypeAndStartEnd").queryParams(queryParams);
        System.out.println(webResource.getURI());
        String buffer =  webResource.get(String.class);

        System.out.println("response:"+buffer);

        ResponseHandler handler = (ResponseHandler)
SAXParserHelper.parse(buffer,ResponseHandler.class);

Kindly help me in identifying the problem.

Thanks
Pradeep D

Re: Error while calling RoomWebService

Posted by Pradeep D <pr...@gmail.com>.
Thanks Maxim, Your solution works, Thanks.


On Mon, Sep 9, 2013 at 6:38 PM, Maxim Solodovnik <so...@gmail.com>wrote:

> Your request produces:
>
> <faultstring>
> Required element null defined in the schema can not be found in the request
> </faultstring>
>
> Which is very clear: "some parameters are missing"
>
> You have NOT specify these 3 parameters:
> &comment=
> &pasword=
> &demoTime=-1
>
> additionally according the code the date format for this function should be
> "09-09-2013" (NOT 09.09.2013)
>
> hope this helps
>
>
> On Mon, Sep 9, 2013 at 6:21 PM, Maxim Solodovnik <solomax666@gmail.com
> >wrote:
>
> > sorry, will try to check it later today
> >
> >
> > On Mon, Sep 9, 2013 at 6:19 PM, Pradeep D <pr...@gmail.com> wrote:
> >
> >> Is there any problem with the parameters which i am passing in the below
> >> URL,
> >>
> >>
> >>
> http://localhost:5080/openmeetings/services/RoomService/addRoomWithModerationAndExternalTypeAndStartEnd?roomtypes_id=1&externalRoomType=ebox&reminderTypeId=1&ispublic=false&isModeratedRoom=true&isPasswordProtected=false&appointment=false&validFromDate=09.09.2013&SID=011a59f73099a496c8a01dcdf7a8db47&validFromTime=42:10&numberOfPartizipants=10&redirectURL=1&name=Meeting_1&validToDate=09.09.2013&validToTime=42:10&isDemoRoom=false
> >>
> >> Below is the xml response in the browser
> >> <faultstring>Required element null defined in the schema can not be
> found
> >> in the request</faultstring>
> >>
> >>
> >>
> >>
> >> On Mon, Sep 9, 2013 at 10:45 AM, Pradeep D <pr...@gmail.com>
> wrote:
> >>
> >> > Yes i checked this method was there in the WSDL, Below is the URL and
> >> the
> >> > corresponding parameters,
> >> >
> >> >
> >> >
> >>
> http://localhost:5080/openmeetings/services/RoomService/addRoomWithModerationAndExternalTypeAndStartEnd?roomtypes_id=1&externalRoomType=ebox&reminderTypeId=1&ispublic=false&isModeratedRoom=true&isPasswordProtected=false&appointment=false&validFromDate=09.09.2013&SID=011a59f73099a496c8a01dcdf7a8db47&validFromTime=42:10&numberOfPartizipants=10&redirectURL=1&name=Meeting_1&validToDate=09.09.2013&validToTime=42:10&isDemoRoom=false
> >> >
> >> > And when i launch this URL in browser i am getting the below response,
> >> > <faultstring>Required element null defined in the schema can not be
> >> found
> >> > in the request</faultstring>
> >> >
> >> > I guess there is some problem with any of the parameters, Can you
> please
> >> > help me to identify the problem.
> >> >
> >> > Thanks
> >> > Pradeep D
> >> >
> >> >
> >> > On Sun, Sep 8, 2013 at 10:13 AM, Maxim Solodovnik <
> solomax666@gmail.com
> >> >wrote:
> >> >
> >> >> XML sent by you does contain
> >> >> addRoomWithModerationAndExternalTypeAndStartEnd
> >> >> as well as my local version.
> >> >>
> >> >> I believe this should work as expected
> >> >>
> >> >> Are you able to call this method from the browser?
> >> >>
> >> >>
> >> >> On Sun, Sep 8, 2013 at 11:11 AM, Pradeep D <pr...@gmail.com>
> >> wrote:
> >> >>
> >> >> > Please find the WSDL which i am getting in the attached mail.
> >> >> >
> >> >> >
> >> >> >
> >> >> >
> >> >> > On Sun, Sep 8, 2013 at 9:38 AM, Pradeep D <pr...@gmail.com>
> >> wrote:
> >> >> >
> >> >> >> Yes i check that its working, I am getting the WSDL. In WSDL i
> dont
> >> see
> >> >> >> this method "addRoomWithModerationAndExternalTypeAndStartEnd", But
> >> in
> >> >> the
> >> >> >> openmeeting documentation we have this service method
> >> >> >>
> >> >> >>
> >> >>
> >>
> http://openmeetings.apache.org/RoomService.html#addRoomWithModerationAndExternalTypeAndStartEnd
> >> >> >>
> >> >> >> And also i used this method earlier openmeeting version, Now i
> >> upgraded
> >> >> >> to 2.1.1 this time its not working.
> >> >> >>
> >> >> >> Thanks
> >> >> >> Pradeep D
> >> >> >>
> >> >> >>
> >> >> >>
> >> >> >> On Sun, Sep 8, 2013 at 8:08 AM, Maxim Solodovnik <
> >> solomax666@gmail.com
> >> >> >wrote:
> >> >> >>
> >> >> >>> According to your logs you are querying function from RoomService
> >> >> which
> >> >> >>> does not exist.
> >> >> >>>
> >> >> >>> could you please call
> >> >> >>> http://localhost:5080/openmeetings/services/RoomService?wsdl and
> >> >> check
> >> >> >>> if
> >> >> >>> function name is listed (documentation on the site is for 3.0.0)
> >> >> >>>
> >> >> >>>
> >> >> >>> On Sun, Sep 8, 2013 at 9:24 AM, Pradeep D <pr...@gmail.com>
> >> >> wrote:
> >> >> >>>
> >> >> >>> > Hi Maxim,
> >> >> >>> >
> >> >> >>> > Below is the error i got  in the openmeeting console,
> >> >> >>> >
> >> >> >>> > DEBUG 09-08 07:48:15.295 UserManager.java 53927 281
> >> >> >>> > org.apache.openmeetings.data.user.UserManager
> >> >> >>> > [http-bio-0.0.0.0-5080-exec-2] - loginUser size 1
> >> >> >>> > ERROR 09-08 07:48:15.505 AxisEngine.java 54137 207
> >> >> >>> > org.apache.axis2.engine.AxisEngine
> >> [http-bio-0.0.0.0-5080-exec-3] -
> >> >> The
> >> >> >>> > endpoint reference (EPR) for the Operation not found is
> >> >> >>> > /openmeetings/services/RoomService and the WSA Action = null.
> If
> >> >> this
> >> >> >>> EPR
> >> >> >>> > was previously reachable, please contact the server
> >> administrator.
> >> >> >>> > org.apache.axis2.AxisFault: The endpoint reference (EPR) for
> the
> >> >> >>> Operation
> >> >> >>> > not found is /openmeetings/services/RoomService and the WSA
> >> Action =
> >> >> >>> null.
> >> >> >>> > If this EPR was previously reachable, please contact the server
> >> >> >>> > administrator.
> >> >> >>> >     at
> >> >> >>> >
> >> >> >>> >
> >> >> >>>
> >> >>
> >>
> org.apache.axis2.engine.DispatchPhase.checkPostConditions(DispatchPhase.java:118)
> >> >> >>> > ~[axis2-jar-1.7.0-SNAPSHOT.jar:na]
> >> >> >>> >     at org.apache.axis2.engine.Phase.invoke(Phase.java:324)
> >> >> >>> > ~[axis2-jar-1.7.0-SNAPSHOT.jar:na]
> >> >> >>> >     at
> >> >> org.apache.axis2.engine.AxisEngine.invoke(AxisEngine.java:250)
> >> >> >>> > ~[axis2-jar-1.7.0-SNAPSHOT.jar:na]
> >> >> >>> >     at
> >> >> org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:156)
> >> >> >>> > ~[axis2-jar-1.7.0-SNAPSHOT.jar:na]
> >> >> >>> >     at
> >> >> >>> >
> >> >> >>> >
> >> >> >>>
> >> >>
> >>
> org.apache.axis2.transport.http.util.RESTUtil.invokeAxisEngine(RESTUtil.java:242)
> >> >> >>> > [axis2-transport-http-bundle-1.7.0-SNAPSHOT.jar:na]
> >> >> >>> >     at
> >> >> >>> >
> >> >> >>> >
> >> >> >>>
> >> >>
> >>
> org.apache.axis2.transport.http.util.RESTUtil.processURLRequest(RESTUtil.java:184)
> >> >> >>> > [axis2-transport-http-bundle-1.7.0-SNAPSHOT.jar:na]
> >> >> >>> >     at
> >> >> >>> >
> >> >> >>> >
> >> >> >>>
> >> >>
> >>
> org.apache.axis2.transport.http.AxisServlet$RestRequestProcessor.processURLRequest(AxisServlet.java:870)
> >> >> >>> > [axis2-transport-http-bundle-1.7.0-SNAPSHOT.jar:na]
> >> >> >>> >     at
> >> >> >>> >
> >> >>
> org.apache.axis2.transport.http.AxisServlet.doGet(AxisServlet.java:290)
> >> >> >>> > [axis2-transport-http-bundle-1.7.0-SNAPSHOT.jar:na]
> >> >> >>> >     at
> >> javax.servlet.http.HttpServlet.service(HttpServlet.java:621)
> >> >> >>> > [tomcat-embed-core-jar-7.0.34.jar:7.0.34]
> >> >> >>> >     at
> >> javax.servlet.http.HttpServlet.service(HttpServlet.java:728)
> >> >> >>> > [tomcat-embed-core-jar-7.0.34.jar:7.0.34]
> >> >> >>> >     at
> >> >> >>> >
> >> >> >>> >
> >> >> >>>
> >> >>
> >>
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:305)
> >> >> >>> > [tomcat-embed-core-jar-7.0.34.jar:7.0.34]
> >> >> >>> >     at
> >> >> >>> >
> >> >> >>> >
> >> >> >>>
> >> >>
> >>
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
> >> >> >>> > [tomcat-embed-core-jar-7.0.34.jar:7.0.34]
> >> >> >>> >     at
> >> >> >>> >
> >> >> >>>
> >> >>
> >>
> org.red5.logging.LoggerContextFilter.doFilter(LoggerContextFilter.java:77)
> >> >> >>> > [red5.jar:na]
> >> >> >>> >     at
> >> >> >>> >
> >> >> >>> >
> >> >> >>>
> >> >>
> >>
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)
> >> >> >>> > [tomcat-embed-core-jar-7.0.34.jar:7.0.34]
> >> >> >>> >     at
> >> >> >>> >
> >> >> >>> >
> >> >> >>>
> >> >>
> >>
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
> >> >> >>> > [tomcat-embed-core-jar-7.0.34.jar:7.0.34]
> >> >> >>> >     at
> >> >> >>> >
> >> >> >>> >
> >> >> >>>
> >> >>
> >>
> org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:222)
> >> >> >>> > [tomcat-embed-core-jar-7.0.34.jar:7.0.34]
> >> >> >>> >     at
> >> >> >>> >
> >> >> >>> >
> >> >> >>>
> >> >>
> >>
> org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:123)
> >> >> >>> > [tomcat-embed-core-jar-7.0.34.jar:7.0.34]
> >> >> >>> >     at
> >> >> >>> >
> >> >> >>> >
> >> >> >>>
> >> >>
> >>
> org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:472)
> >> >> >>> > [tomcat-embed-core-jar-7.0.34.jar:7.0.34]
> >> >> >>> >     at
> >> >> >>> >
> >> >> >>> >
> >> >> >>>
> >> >>
> >>
> org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:171)
> >> >> >>> > [tomcat-embed-core-jar-7.0.34.jar:7.0.34]
> >> >> >>> >     at
> >> >> >>> >
> >> >> >>> >
> >> >> >>>
> >> >>
> >>
> org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:99)
> >> >> >>> > [tomcat-embed-core-jar-7.0.34.jar:7.0.34]
> >> >> >>> >     at
> >> >> >>> >
> >> >> >>> >
> >> >> >>>
> >> >>
> >>
> org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:118)
> >> >> >>> > [tomcat-embed-core-jar-7.0.34.jar:7.0.34]
> >> >> >>> >     at
> >> >> >>> >
> >> >> >>>
> >> >>
> >>
> org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:407)
> >> >> >>> > [tomcat-embed-core-jar-7.0.34.jar:7.0.34]
> >> >> >>> >     at
> >> >> >>> >
> >> >> >>> >
> >> >> >>>
> >> >>
> >>
> org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1004)
> >> >> >>> > [tomcat-embed-core-jar-7.0.34.jar:7.0.34]
> >> >> >>> >     at
> >> >> >>> >
> >> >> >>> >
> >> >> >>>
> >> >>
> >>
> org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:589)
> >> >> >>> > [tomcat-embed-core-jar-7.0.34.jar:7.0.34]
> >> >> >>> >     at
> >> >> >>> >
> >> >> >>> >
> >> >> >>>
> >> >>
> >>
> org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:312)
> >> >> >>> > [tomcat-embed-core-jar-7.0.34.jar:7.0.34]
> >> >> >>> >     at
> >> >> >>> >
> >> >> >>> >
> >> >> >>>
> >> >>
> >>
> java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
> >> >> >>> > [na:1.6.0_26]
> >> >> >>> >     at
> >> >> >>> >
> >> >> >>> >
> >> >> >>>
> >> >>
> >>
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
> >> >> >>> > [na:1.6.0_26]
> >> >> >>> >     at java.lang.Thread.run(Thread.java:662) [na:1.6.0_26]
> >> >> >>> >
> >> >> >>> >
> >> >> >>> > Thanks
> >> >> >>> > Pradeep D
> >> >> >>> >
> >> >> >>> >
> >> >> >>> > On Sun, Sep 8, 2013 at 7:37 AM, Maxim Solodovnik <
> >> >> solomax666@gmail.com
> >> >> >>> > >wrote:
> >> >> >>> >
> >> >> >>> > > Could you please provide relevant part of OM log?
> >> >> >>> > >
> >> >> >>> > >
> >> >> >>> > > On Sun, Sep 8, 2013 at 8:57 AM, Pradeep D <
> >> pradeepd12@gmail.com>
> >> >> >>> wrote:
> >> >> >>> > >
> >> >> >>> > > > ---------- Forwarded message ----------
> >> >> >>> > > > From: "Pradeep D" <pr...@gmail.com>
> >> >> >>> > > > Date: 8 Sep 2013 00:17
> >> >> >>> > > > Subject: Error while calling RoomWebService
> >> >> >>> > > > To: <us...@openmeetings.apache.org>, <
> >> >> dev@openmeetings.apache.org>
> >> >> >>> > > > Cc:
> >> >> >>> > > >
> >> >> >>> > > > Hi All,
> >> >> >>> > > >
> >> >> >>> > > > I download the latest openmeeting 2.1.1m We are calling
> >> >> >>> RoomWebService.
> >> >> >>> > > >  *addRoomWithModerationAndExternalTypeAndStartEnd*
> >> >> >>> > > >   method which is throwing the below exception,
> >> >> >>> > > > http://localhost:5080/openmeetings/services/RoomService
> >> >> >>> > > > Exception in thread "main"
> >> >> >>> > > > com.sun.jersey.api.client.UniformInterfaceException: GET
> >> >> >>> > > >
> >> http://localhost:5080/openmeetings/services/RoomServicereturned a
> >> >> >>> > > > response
> >> >> >>> > > > status of 500 Internal Server Error
> >> >> >>> > > >     at
> >> >> >>> >
> >> com.sun.jersey.api.client.WebResource.handle(WebResource.java:686)
> >> >> >>> > > >     at
> >> >> >>> com.sun.jersey.api.client.WebResource.get(WebResource.java:191)
> >> >> >>> > > >     at
> >> >> >>> > > >
> >> >> >>> > > >
> >> >> >>> > >
> >> >> >>> >
> >> >> >>>
> >> >>
> >>
> openmeetingtest.OpenMeetingService.addNewRoomWithModeratorLimitedTime(OpenMeetingService.java:109)
> >> >> >>> > > >     at
> >> >> >>> openmeetingtest.OpenMeetingTest.main(OpenMeetingTest.java:26)
> >> >> >>> > > >
> >> >> >>> > > > Below is the code for calling the REST service
> >> >> >>> > > >
> >> >> >>> > > > SimpleDateFormat dfDate = new
> SimpleDateFormat("dd.MM.yyyy");
> >> >> >>> > > >         SimpleDateFormat dfTime = new
> >> SimpleDateFormat("mm:hh");
> >> >> >>> > > >
> >> >> >>> > > >         Client client = new Client();
> >> >> >>> > > >         WebResource webResource =
> >> >> >>> > > > client.resource(openMeetingServiceUrl+"/RoomService");
> >> >> >>> > > >
> >> >> >>> > > >         MultivaluedMap queryParams = new
> >> MultivaluedMapImpl();
> >> >> >>> > > >
> >> queryParams.add("SID",sessionResponse.getSession_id());
> >> >> >>> > > >         queryParams.add("name","Meeting_"+meetingId);
> >> >> >>> > > >         queryParams.add("roomtypes_id","1");
> >> >> >>> > > >
> >> >> >>> >
> queryParams.add("numberOfPartizipants",numberOfUsers.toString());
> >> >> >>> > > >         queryParams.add("ispublic","false");
> >> >> >>> > > >         queryParams.add("appointment","false");
> >> >> >>> > > >         queryParams.add("isDemoRoom","false");
> >> >> >>> > > >         queryParams.add("isModeratedRoom","true");
> >> >> >>> > > >         queryParams.add("externalRoomType","ebox");
> >> >> >>> > > >         queryParams.add("validFromDate",dfDate.format(new
> >> >> Date()));
> >> >> >>> > > >         queryParams.add("validFromTime",dfTime.format(new
> >> >> Date()));
> >> >> >>> > > >         queryParams.add("validToDate",dfDate.format(new
> >> >> Date()));
> >> >> >>> > > >         queryParams.add("validToTime",dfTime.format(new
> >> >> Date()));
> >> >> >>> > > >         queryParams.add("isPasswordProtected","false");
> >> >> >>> > > >         queryParams.add("reminderTypeId","1");
> >> >> >>> > > >         queryParams.add("redirectURL","1");
> >> >> >>> > > >
> >> >> >>> > > >
> >> >> >>> > > >
> >> >> >>> > > >
> >> >> >>> > >
> >> >> >>> >
> >> >> >>>
> >> >>
> >>
> webResource.path("addRoomWithModerationAndExternalTypeAndStartEnd").queryParams(queryParams);
> >> >> >>> > > >         System.out.println(webResource.getURI());
> >> >> >>> > > >         String buffer =  webResource.get(String.class);
> >> >> >>> > > >
> >> >> >>> > > >         System.out.println("response:"+buffer);
> >> >> >>> > > >
> >> >> >>> > > >         ResponseHandler handler = (ResponseHandler)
> >> >> >>> > > > SAXParserHelper.parse(buffer,ResponseHandler.class);
> >> >> >>> > > >
> >> >> >>> > > > Kindly help me in identifying the problem.
> >> >> >>> > > >
> >> >> >>> > > > Thanks
> >> >> >>> > > > Pradeep D
> >> >> >>> > > >
> >> >> >>> > >
> >> >> >>> > >
> >> >> >>> > >
> >> >> >>> > > --
> >> >> >>> > > WBR
> >> >> >>> > > Maxim aka solomax
> >> >> >>> > >
> >> >> >>> >
> >> >> >>>
> >> >> >>>
> >> >> >>>
> >> >> >>> --
> >> >> >>> WBR
> >> >> >>> Maxim aka solomax
> >> >> >>>
> >> >> >>
> >> >> >>
> >> >> >
> >> >>
> >> >>
> >> >> --
> >> >> WBR
> >> >> Maxim aka solomax
> >> >>
> >> >
> >> >
> >>
> >
> >
> >
> > --
> > WBR
> > Maxim aka solomax
> >
>
>
>
> --
> WBR
> Maxim aka solomax
>

Re: Error while calling RoomWebService

Posted by Maxim Solodovnik <so...@gmail.com>.
Your request produces:

<faultstring>
Required element null defined in the schema can not be found in the request
</faultstring>

Which is very clear: "some parameters are missing"

You have NOT specify these 3 parameters:
&comment=
&pasword=
&demoTime=-1

additionally according the code the date format for this function should be
"09-09-2013" (NOT 09.09.2013)

hope this helps


On Mon, Sep 9, 2013 at 6:21 PM, Maxim Solodovnik <so...@gmail.com>wrote:

> sorry, will try to check it later today
>
>
> On Mon, Sep 9, 2013 at 6:19 PM, Pradeep D <pr...@gmail.com> wrote:
>
>> Is there any problem with the parameters which i am passing in the below
>> URL,
>>
>>
>> http://localhost:5080/openmeetings/services/RoomService/addRoomWithModerationAndExternalTypeAndStartEnd?roomtypes_id=1&externalRoomType=ebox&reminderTypeId=1&ispublic=false&isModeratedRoom=true&isPasswordProtected=false&appointment=false&validFromDate=09.09.2013&SID=011a59f73099a496c8a01dcdf7a8db47&validFromTime=42:10&numberOfPartizipants=10&redirectURL=1&name=Meeting_1&validToDate=09.09.2013&validToTime=42:10&isDemoRoom=false
>>
>> Below is the xml response in the browser
>> <faultstring>Required element null defined in the schema can not be found
>> in the request</faultstring>
>>
>>
>>
>>
>> On Mon, Sep 9, 2013 at 10:45 AM, Pradeep D <pr...@gmail.com> wrote:
>>
>> > Yes i checked this method was there in the WSDL, Below is the URL and
>> the
>> > corresponding parameters,
>> >
>> >
>> >
>> http://localhost:5080/openmeetings/services/RoomService/addRoomWithModerationAndExternalTypeAndStartEnd?roomtypes_id=1&externalRoomType=ebox&reminderTypeId=1&ispublic=false&isModeratedRoom=true&isPasswordProtected=false&appointment=false&validFromDate=09.09.2013&SID=011a59f73099a496c8a01dcdf7a8db47&validFromTime=42:10&numberOfPartizipants=10&redirectURL=1&name=Meeting_1&validToDate=09.09.2013&validToTime=42:10&isDemoRoom=false
>> >
>> > And when i launch this URL in browser i am getting the below response,
>> > <faultstring>Required element null defined in the schema can not be
>> found
>> > in the request</faultstring>
>> >
>> > I guess there is some problem with any of the parameters, Can you please
>> > help me to identify the problem.
>> >
>> > Thanks
>> > Pradeep D
>> >
>> >
>> > On Sun, Sep 8, 2013 at 10:13 AM, Maxim Solodovnik <solomax666@gmail.com
>> >wrote:
>> >
>> >> XML sent by you does contain
>> >> addRoomWithModerationAndExternalTypeAndStartEnd
>> >> as well as my local version.
>> >>
>> >> I believe this should work as expected
>> >>
>> >> Are you able to call this method from the browser?
>> >>
>> >>
>> >> On Sun, Sep 8, 2013 at 11:11 AM, Pradeep D <pr...@gmail.com>
>> wrote:
>> >>
>> >> > Please find the WSDL which i am getting in the attached mail.
>> >> >
>> >> >
>> >> >
>> >> >
>> >> > On Sun, Sep 8, 2013 at 9:38 AM, Pradeep D <pr...@gmail.com>
>> wrote:
>> >> >
>> >> >> Yes i check that its working, I am getting the WSDL. In WSDL i dont
>> see
>> >> >> this method "addRoomWithModerationAndExternalTypeAndStartEnd", But
>> in
>> >> the
>> >> >> openmeeting documentation we have this service method
>> >> >>
>> >> >>
>> >>
>> http://openmeetings.apache.org/RoomService.html#addRoomWithModerationAndExternalTypeAndStartEnd
>> >> >>
>> >> >> And also i used this method earlier openmeeting version, Now i
>> upgraded
>> >> >> to 2.1.1 this time its not working.
>> >> >>
>> >> >> Thanks
>> >> >> Pradeep D
>> >> >>
>> >> >>
>> >> >>
>> >> >> On Sun, Sep 8, 2013 at 8:08 AM, Maxim Solodovnik <
>> solomax666@gmail.com
>> >> >wrote:
>> >> >>
>> >> >>> According to your logs you are querying function from RoomService
>> >> which
>> >> >>> does not exist.
>> >> >>>
>> >> >>> could you please call
>> >> >>> http://localhost:5080/openmeetings/services/RoomService?wsdl and
>> >> check
>> >> >>> if
>> >> >>> function name is listed (documentation on the site is for 3.0.0)
>> >> >>>
>> >> >>>
>> >> >>> On Sun, Sep 8, 2013 at 9:24 AM, Pradeep D <pr...@gmail.com>
>> >> wrote:
>> >> >>>
>> >> >>> > Hi Maxim,
>> >> >>> >
>> >> >>> > Below is the error i got  in the openmeeting console,
>> >> >>> >
>> >> >>> > DEBUG 09-08 07:48:15.295 UserManager.java 53927 281
>> >> >>> > org.apache.openmeetings.data.user.UserManager
>> >> >>> > [http-bio-0.0.0.0-5080-exec-2] - loginUser size 1
>> >> >>> > ERROR 09-08 07:48:15.505 AxisEngine.java 54137 207
>> >> >>> > org.apache.axis2.engine.AxisEngine
>> [http-bio-0.0.0.0-5080-exec-3] -
>> >> The
>> >> >>> > endpoint reference (EPR) for the Operation not found is
>> >> >>> > /openmeetings/services/RoomService and the WSA Action = null. If
>> >> this
>> >> >>> EPR
>> >> >>> > was previously reachable, please contact the server
>> administrator.
>> >> >>> > org.apache.axis2.AxisFault: The endpoint reference (EPR) for the
>> >> >>> Operation
>> >> >>> > not found is /openmeetings/services/RoomService and the WSA
>> Action =
>> >> >>> null.
>> >> >>> > If this EPR was previously reachable, please contact the server
>> >> >>> > administrator.
>> >> >>> >     at
>> >> >>> >
>> >> >>> >
>> >> >>>
>> >>
>> org.apache.axis2.engine.DispatchPhase.checkPostConditions(DispatchPhase.java:118)
>> >> >>> > ~[axis2-jar-1.7.0-SNAPSHOT.jar:na]
>> >> >>> >     at org.apache.axis2.engine.Phase.invoke(Phase.java:324)
>> >> >>> > ~[axis2-jar-1.7.0-SNAPSHOT.jar:na]
>> >> >>> >     at
>> >> org.apache.axis2.engine.AxisEngine.invoke(AxisEngine.java:250)
>> >> >>> > ~[axis2-jar-1.7.0-SNAPSHOT.jar:na]
>> >> >>> >     at
>> >> org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:156)
>> >> >>> > ~[axis2-jar-1.7.0-SNAPSHOT.jar:na]
>> >> >>> >     at
>> >> >>> >
>> >> >>> >
>> >> >>>
>> >>
>> org.apache.axis2.transport.http.util.RESTUtil.invokeAxisEngine(RESTUtil.java:242)
>> >> >>> > [axis2-transport-http-bundle-1.7.0-SNAPSHOT.jar:na]
>> >> >>> >     at
>> >> >>> >
>> >> >>> >
>> >> >>>
>> >>
>> org.apache.axis2.transport.http.util.RESTUtil.processURLRequest(RESTUtil.java:184)
>> >> >>> > [axis2-transport-http-bundle-1.7.0-SNAPSHOT.jar:na]
>> >> >>> >     at
>> >> >>> >
>> >> >>> >
>> >> >>>
>> >>
>> org.apache.axis2.transport.http.AxisServlet$RestRequestProcessor.processURLRequest(AxisServlet.java:870)
>> >> >>> > [axis2-transport-http-bundle-1.7.0-SNAPSHOT.jar:na]
>> >> >>> >     at
>> >> >>> >
>> >> org.apache.axis2.transport.http.AxisServlet.doGet(AxisServlet.java:290)
>> >> >>> > [axis2-transport-http-bundle-1.7.0-SNAPSHOT.jar:na]
>> >> >>> >     at
>> javax.servlet.http.HttpServlet.service(HttpServlet.java:621)
>> >> >>> > [tomcat-embed-core-jar-7.0.34.jar:7.0.34]
>> >> >>> >     at
>> javax.servlet.http.HttpServlet.service(HttpServlet.java:728)
>> >> >>> > [tomcat-embed-core-jar-7.0.34.jar:7.0.34]
>> >> >>> >     at
>> >> >>> >
>> >> >>> >
>> >> >>>
>> >>
>> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:305)
>> >> >>> > [tomcat-embed-core-jar-7.0.34.jar:7.0.34]
>> >> >>> >     at
>> >> >>> >
>> >> >>> >
>> >> >>>
>> >>
>> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
>> >> >>> > [tomcat-embed-core-jar-7.0.34.jar:7.0.34]
>> >> >>> >     at
>> >> >>> >
>> >> >>>
>> >>
>> org.red5.logging.LoggerContextFilter.doFilter(LoggerContextFilter.java:77)
>> >> >>> > [red5.jar:na]
>> >> >>> >     at
>> >> >>> >
>> >> >>> >
>> >> >>>
>> >>
>> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)
>> >> >>> > [tomcat-embed-core-jar-7.0.34.jar:7.0.34]
>> >> >>> >     at
>> >> >>> >
>> >> >>> >
>> >> >>>
>> >>
>> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
>> >> >>> > [tomcat-embed-core-jar-7.0.34.jar:7.0.34]
>> >> >>> >     at
>> >> >>> >
>> >> >>> >
>> >> >>>
>> >>
>> org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:222)
>> >> >>> > [tomcat-embed-core-jar-7.0.34.jar:7.0.34]
>> >> >>> >     at
>> >> >>> >
>> >> >>> >
>> >> >>>
>> >>
>> org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:123)
>> >> >>> > [tomcat-embed-core-jar-7.0.34.jar:7.0.34]
>> >> >>> >     at
>> >> >>> >
>> >> >>> >
>> >> >>>
>> >>
>> org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:472)
>> >> >>> > [tomcat-embed-core-jar-7.0.34.jar:7.0.34]
>> >> >>> >     at
>> >> >>> >
>> >> >>> >
>> >> >>>
>> >>
>> org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:171)
>> >> >>> > [tomcat-embed-core-jar-7.0.34.jar:7.0.34]
>> >> >>> >     at
>> >> >>> >
>> >> >>> >
>> >> >>>
>> >>
>> org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:99)
>> >> >>> > [tomcat-embed-core-jar-7.0.34.jar:7.0.34]
>> >> >>> >     at
>> >> >>> >
>> >> >>> >
>> >> >>>
>> >>
>> org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:118)
>> >> >>> > [tomcat-embed-core-jar-7.0.34.jar:7.0.34]
>> >> >>> >     at
>> >> >>> >
>> >> >>>
>> >>
>> org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:407)
>> >> >>> > [tomcat-embed-core-jar-7.0.34.jar:7.0.34]
>> >> >>> >     at
>> >> >>> >
>> >> >>> >
>> >> >>>
>> >>
>> org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1004)
>> >> >>> > [tomcat-embed-core-jar-7.0.34.jar:7.0.34]
>> >> >>> >     at
>> >> >>> >
>> >> >>> >
>> >> >>>
>> >>
>> org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:589)
>> >> >>> > [tomcat-embed-core-jar-7.0.34.jar:7.0.34]
>> >> >>> >     at
>> >> >>> >
>> >> >>> >
>> >> >>>
>> >>
>> org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:312)
>> >> >>> > [tomcat-embed-core-jar-7.0.34.jar:7.0.34]
>> >> >>> >     at
>> >> >>> >
>> >> >>> >
>> >> >>>
>> >>
>> java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
>> >> >>> > [na:1.6.0_26]
>> >> >>> >     at
>> >> >>> >
>> >> >>> >
>> >> >>>
>> >>
>> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
>> >> >>> > [na:1.6.0_26]
>> >> >>> >     at java.lang.Thread.run(Thread.java:662) [na:1.6.0_26]
>> >> >>> >
>> >> >>> >
>> >> >>> > Thanks
>> >> >>> > Pradeep D
>> >> >>> >
>> >> >>> >
>> >> >>> > On Sun, Sep 8, 2013 at 7:37 AM, Maxim Solodovnik <
>> >> solomax666@gmail.com
>> >> >>> > >wrote:
>> >> >>> >
>> >> >>> > > Could you please provide relevant part of OM log?
>> >> >>> > >
>> >> >>> > >
>> >> >>> > > On Sun, Sep 8, 2013 at 8:57 AM, Pradeep D <
>> pradeepd12@gmail.com>
>> >> >>> wrote:
>> >> >>> > >
>> >> >>> > > > ---------- Forwarded message ----------
>> >> >>> > > > From: "Pradeep D" <pr...@gmail.com>
>> >> >>> > > > Date: 8 Sep 2013 00:17
>> >> >>> > > > Subject: Error while calling RoomWebService
>> >> >>> > > > To: <us...@openmeetings.apache.org>, <
>> >> dev@openmeetings.apache.org>
>> >> >>> > > > Cc:
>> >> >>> > > >
>> >> >>> > > > Hi All,
>> >> >>> > > >
>> >> >>> > > > I download the latest openmeeting 2.1.1m We are calling
>> >> >>> RoomWebService.
>> >> >>> > > >  *addRoomWithModerationAndExternalTypeAndStartEnd*
>> >> >>> > > >   method which is throwing the below exception,
>> >> >>> > > > http://localhost:5080/openmeetings/services/RoomService
>> >> >>> > > > Exception in thread "main"
>> >> >>> > > > com.sun.jersey.api.client.UniformInterfaceException: GET
>> >> >>> > > >
>> http://localhost:5080/openmeetings/services/RoomServicereturned a
>> >> >>> > > > response
>> >> >>> > > > status of 500 Internal Server Error
>> >> >>> > > >     at
>> >> >>> >
>> com.sun.jersey.api.client.WebResource.handle(WebResource.java:686)
>> >> >>> > > >     at
>> >> >>> com.sun.jersey.api.client.WebResource.get(WebResource.java:191)
>> >> >>> > > >     at
>> >> >>> > > >
>> >> >>> > > >
>> >> >>> > >
>> >> >>> >
>> >> >>>
>> >>
>> openmeetingtest.OpenMeetingService.addNewRoomWithModeratorLimitedTime(OpenMeetingService.java:109)
>> >> >>> > > >     at
>> >> >>> openmeetingtest.OpenMeetingTest.main(OpenMeetingTest.java:26)
>> >> >>> > > >
>> >> >>> > > > Below is the code for calling the REST service
>> >> >>> > > >
>> >> >>> > > > SimpleDateFormat dfDate = new SimpleDateFormat("dd.MM.yyyy");
>> >> >>> > > >         SimpleDateFormat dfTime = new
>> SimpleDateFormat("mm:hh");
>> >> >>> > > >
>> >> >>> > > >         Client client = new Client();
>> >> >>> > > >         WebResource webResource =
>> >> >>> > > > client.resource(openMeetingServiceUrl+"/RoomService");
>> >> >>> > > >
>> >> >>> > > >         MultivaluedMap queryParams = new
>> MultivaluedMapImpl();
>> >> >>> > > >
>> queryParams.add("SID",sessionResponse.getSession_id());
>> >> >>> > > >         queryParams.add("name","Meeting_"+meetingId);
>> >> >>> > > >         queryParams.add("roomtypes_id","1");
>> >> >>> > > >
>> >> >>> > queryParams.add("numberOfPartizipants",numberOfUsers.toString());
>> >> >>> > > >         queryParams.add("ispublic","false");
>> >> >>> > > >         queryParams.add("appointment","false");
>> >> >>> > > >         queryParams.add("isDemoRoom","false");
>> >> >>> > > >         queryParams.add("isModeratedRoom","true");
>> >> >>> > > >         queryParams.add("externalRoomType","ebox");
>> >> >>> > > >         queryParams.add("validFromDate",dfDate.format(new
>> >> Date()));
>> >> >>> > > >         queryParams.add("validFromTime",dfTime.format(new
>> >> Date()));
>> >> >>> > > >         queryParams.add("validToDate",dfDate.format(new
>> >> Date()));
>> >> >>> > > >         queryParams.add("validToTime",dfTime.format(new
>> >> Date()));
>> >> >>> > > >         queryParams.add("isPasswordProtected","false");
>> >> >>> > > >         queryParams.add("reminderTypeId","1");
>> >> >>> > > >         queryParams.add("redirectURL","1");
>> >> >>> > > >
>> >> >>> > > >
>> >> >>> > > >
>> >> >>> > > >
>> >> >>> > >
>> >> >>> >
>> >> >>>
>> >>
>> webResource.path("addRoomWithModerationAndExternalTypeAndStartEnd").queryParams(queryParams);
>> >> >>> > > >         System.out.println(webResource.getURI());
>> >> >>> > > >         String buffer =  webResource.get(String.class);
>> >> >>> > > >
>> >> >>> > > >         System.out.println("response:"+buffer);
>> >> >>> > > >
>> >> >>> > > >         ResponseHandler handler = (ResponseHandler)
>> >> >>> > > > SAXParserHelper.parse(buffer,ResponseHandler.class);
>> >> >>> > > >
>> >> >>> > > > Kindly help me in identifying the problem.
>> >> >>> > > >
>> >> >>> > > > Thanks
>> >> >>> > > > Pradeep D
>> >> >>> > > >
>> >> >>> > >
>> >> >>> > >
>> >> >>> > >
>> >> >>> > > --
>> >> >>> > > WBR
>> >> >>> > > Maxim aka solomax
>> >> >>> > >
>> >> >>> >
>> >> >>>
>> >> >>>
>> >> >>>
>> >> >>> --
>> >> >>> WBR
>> >> >>> Maxim aka solomax
>> >> >>>
>> >> >>
>> >> >>
>> >> >
>> >>
>> >>
>> >> --
>> >> WBR
>> >> Maxim aka solomax
>> >>
>> >
>> >
>>
>
>
>
> --
> WBR
> Maxim aka solomax
>



-- 
WBR
Maxim aka solomax

Re: Error while calling RoomWebService

Posted by Maxim Solodovnik <so...@gmail.com>.
sorry, will try to check it later today


On Mon, Sep 9, 2013 at 6:19 PM, Pradeep D <pr...@gmail.com> wrote:

> Is there any problem with the parameters which i am passing in the below
> URL,
>
>
> http://localhost:5080/openmeetings/services/RoomService/addRoomWithModerationAndExternalTypeAndStartEnd?roomtypes_id=1&externalRoomType=ebox&reminderTypeId=1&ispublic=false&isModeratedRoom=true&isPasswordProtected=false&appointment=false&validFromDate=09.09.2013&SID=011a59f73099a496c8a01dcdf7a8db47&validFromTime=42:10&numberOfPartizipants=10&redirectURL=1&name=Meeting_1&validToDate=09.09.2013&validToTime=42:10&isDemoRoom=false
>
> Below is the xml response in the browser
> <faultstring>Required element null defined in the schema can not be found
> in the request</faultstring>
>
>
>
>
> On Mon, Sep 9, 2013 at 10:45 AM, Pradeep D <pr...@gmail.com> wrote:
>
> > Yes i checked this method was there in the WSDL, Below is the URL and the
> > corresponding parameters,
> >
> >
> >
> http://localhost:5080/openmeetings/services/RoomService/addRoomWithModerationAndExternalTypeAndStartEnd?roomtypes_id=1&externalRoomType=ebox&reminderTypeId=1&ispublic=false&isModeratedRoom=true&isPasswordProtected=false&appointment=false&validFromDate=09.09.2013&SID=011a59f73099a496c8a01dcdf7a8db47&validFromTime=42:10&numberOfPartizipants=10&redirectURL=1&name=Meeting_1&validToDate=09.09.2013&validToTime=42:10&isDemoRoom=false
> >
> > And when i launch this URL in browser i am getting the below response,
> > <faultstring>Required element null defined in the schema can not be found
> > in the request</faultstring>
> >
> > I guess there is some problem with any of the parameters, Can you please
> > help me to identify the problem.
> >
> > Thanks
> > Pradeep D
> >
> >
> > On Sun, Sep 8, 2013 at 10:13 AM, Maxim Solodovnik <solomax666@gmail.com
> >wrote:
> >
> >> XML sent by you does contain
> >> addRoomWithModerationAndExternalTypeAndStartEnd
> >> as well as my local version.
> >>
> >> I believe this should work as expected
> >>
> >> Are you able to call this method from the browser?
> >>
> >>
> >> On Sun, Sep 8, 2013 at 11:11 AM, Pradeep D <pr...@gmail.com>
> wrote:
> >>
> >> > Please find the WSDL which i am getting in the attached mail.
> >> >
> >> >
> >> >
> >> >
> >> > On Sun, Sep 8, 2013 at 9:38 AM, Pradeep D <pr...@gmail.com>
> wrote:
> >> >
> >> >> Yes i check that its working, I am getting the WSDL. In WSDL i dont
> see
> >> >> this method "addRoomWithModerationAndExternalTypeAndStartEnd", But in
> >> the
> >> >> openmeeting documentation we have this service method
> >> >>
> >> >>
> >>
> http://openmeetings.apache.org/RoomService.html#addRoomWithModerationAndExternalTypeAndStartEnd
> >> >>
> >> >> And also i used this method earlier openmeeting version, Now i
> upgraded
> >> >> to 2.1.1 this time its not working.
> >> >>
> >> >> Thanks
> >> >> Pradeep D
> >> >>
> >> >>
> >> >>
> >> >> On Sun, Sep 8, 2013 at 8:08 AM, Maxim Solodovnik <
> solomax666@gmail.com
> >> >wrote:
> >> >>
> >> >>> According to your logs you are querying function from RoomService
> >> which
> >> >>> does not exist.
> >> >>>
> >> >>> could you please call
> >> >>> http://localhost:5080/openmeetings/services/RoomService?wsdl and
> >> check
> >> >>> if
> >> >>> function name is listed (documentation on the site is for 3.0.0)
> >> >>>
> >> >>>
> >> >>> On Sun, Sep 8, 2013 at 9:24 AM, Pradeep D <pr...@gmail.com>
> >> wrote:
> >> >>>
> >> >>> > Hi Maxim,
> >> >>> >
> >> >>> > Below is the error i got  in the openmeeting console,
> >> >>> >
> >> >>> > DEBUG 09-08 07:48:15.295 UserManager.java 53927 281
> >> >>> > org.apache.openmeetings.data.user.UserManager
> >> >>> > [http-bio-0.0.0.0-5080-exec-2] - loginUser size 1
> >> >>> > ERROR 09-08 07:48:15.505 AxisEngine.java 54137 207
> >> >>> > org.apache.axis2.engine.AxisEngine [http-bio-0.0.0.0-5080-exec-3]
> -
> >> The
> >> >>> > endpoint reference (EPR) for the Operation not found is
> >> >>> > /openmeetings/services/RoomService and the WSA Action = null. If
> >> this
> >> >>> EPR
> >> >>> > was previously reachable, please contact the server administrator.
> >> >>> > org.apache.axis2.AxisFault: The endpoint reference (EPR) for the
> >> >>> Operation
> >> >>> > not found is /openmeetings/services/RoomService and the WSA
> Action =
> >> >>> null.
> >> >>> > If this EPR was previously reachable, please contact the server
> >> >>> > administrator.
> >> >>> >     at
> >> >>> >
> >> >>> >
> >> >>>
> >>
> org.apache.axis2.engine.DispatchPhase.checkPostConditions(DispatchPhase.java:118)
> >> >>> > ~[axis2-jar-1.7.0-SNAPSHOT.jar:na]
> >> >>> >     at org.apache.axis2.engine.Phase.invoke(Phase.java:324)
> >> >>> > ~[axis2-jar-1.7.0-SNAPSHOT.jar:na]
> >> >>> >     at
> >> org.apache.axis2.engine.AxisEngine.invoke(AxisEngine.java:250)
> >> >>> > ~[axis2-jar-1.7.0-SNAPSHOT.jar:na]
> >> >>> >     at
> >> org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:156)
> >> >>> > ~[axis2-jar-1.7.0-SNAPSHOT.jar:na]
> >> >>> >     at
> >> >>> >
> >> >>> >
> >> >>>
> >>
> org.apache.axis2.transport.http.util.RESTUtil.invokeAxisEngine(RESTUtil.java:242)
> >> >>> > [axis2-transport-http-bundle-1.7.0-SNAPSHOT.jar:na]
> >> >>> >     at
> >> >>> >
> >> >>> >
> >> >>>
> >>
> org.apache.axis2.transport.http.util.RESTUtil.processURLRequest(RESTUtil.java:184)
> >> >>> > [axis2-transport-http-bundle-1.7.0-SNAPSHOT.jar:na]
> >> >>> >     at
> >> >>> >
> >> >>> >
> >> >>>
> >>
> org.apache.axis2.transport.http.AxisServlet$RestRequestProcessor.processURLRequest(AxisServlet.java:870)
> >> >>> > [axis2-transport-http-bundle-1.7.0-SNAPSHOT.jar:na]
> >> >>> >     at
> >> >>> >
> >> org.apache.axis2.transport.http.AxisServlet.doGet(AxisServlet.java:290)
> >> >>> > [axis2-transport-http-bundle-1.7.0-SNAPSHOT.jar:na]
> >> >>> >     at
> javax.servlet.http.HttpServlet.service(HttpServlet.java:621)
> >> >>> > [tomcat-embed-core-jar-7.0.34.jar:7.0.34]
> >> >>> >     at
> javax.servlet.http.HttpServlet.service(HttpServlet.java:728)
> >> >>> > [tomcat-embed-core-jar-7.0.34.jar:7.0.34]
> >> >>> >     at
> >> >>> >
> >> >>> >
> >> >>>
> >>
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:305)
> >> >>> > [tomcat-embed-core-jar-7.0.34.jar:7.0.34]
> >> >>> >     at
> >> >>> >
> >> >>> >
> >> >>>
> >>
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
> >> >>> > [tomcat-embed-core-jar-7.0.34.jar:7.0.34]
> >> >>> >     at
> >> >>> >
> >> >>>
> >>
> org.red5.logging.LoggerContextFilter.doFilter(LoggerContextFilter.java:77)
> >> >>> > [red5.jar:na]
> >> >>> >     at
> >> >>> >
> >> >>> >
> >> >>>
> >>
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)
> >> >>> > [tomcat-embed-core-jar-7.0.34.jar:7.0.34]
> >> >>> >     at
> >> >>> >
> >> >>> >
> >> >>>
> >>
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
> >> >>> > [tomcat-embed-core-jar-7.0.34.jar:7.0.34]
> >> >>> >     at
> >> >>> >
> >> >>> >
> >> >>>
> >>
> org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:222)
> >> >>> > [tomcat-embed-core-jar-7.0.34.jar:7.0.34]
> >> >>> >     at
> >> >>> >
> >> >>> >
> >> >>>
> >>
> org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:123)
> >> >>> > [tomcat-embed-core-jar-7.0.34.jar:7.0.34]
> >> >>> >     at
> >> >>> >
> >> >>> >
> >> >>>
> >>
> org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:472)
> >> >>> > [tomcat-embed-core-jar-7.0.34.jar:7.0.34]
> >> >>> >     at
> >> >>> >
> >> >>> >
> >> >>>
> >>
> org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:171)
> >> >>> > [tomcat-embed-core-jar-7.0.34.jar:7.0.34]
> >> >>> >     at
> >> >>> >
> >> >>> >
> >> >>>
> >>
> org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:99)
> >> >>> > [tomcat-embed-core-jar-7.0.34.jar:7.0.34]
> >> >>> >     at
> >> >>> >
> >> >>> >
> >> >>>
> >>
> org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:118)
> >> >>> > [tomcat-embed-core-jar-7.0.34.jar:7.0.34]
> >> >>> >     at
> >> >>> >
> >> >>>
> >>
> org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:407)
> >> >>> > [tomcat-embed-core-jar-7.0.34.jar:7.0.34]
> >> >>> >     at
> >> >>> >
> >> >>> >
> >> >>>
> >>
> org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1004)
> >> >>> > [tomcat-embed-core-jar-7.0.34.jar:7.0.34]
> >> >>> >     at
> >> >>> >
> >> >>> >
> >> >>>
> >>
> org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:589)
> >> >>> > [tomcat-embed-core-jar-7.0.34.jar:7.0.34]
> >> >>> >     at
> >> >>> >
> >> >>> >
> >> >>>
> >>
> org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:312)
> >> >>> > [tomcat-embed-core-jar-7.0.34.jar:7.0.34]
> >> >>> >     at
> >> >>> >
> >> >>> >
> >> >>>
> >>
> java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
> >> >>> > [na:1.6.0_26]
> >> >>> >     at
> >> >>> >
> >> >>> >
> >> >>>
> >>
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
> >> >>> > [na:1.6.0_26]
> >> >>> >     at java.lang.Thread.run(Thread.java:662) [na:1.6.0_26]
> >> >>> >
> >> >>> >
> >> >>> > Thanks
> >> >>> > Pradeep D
> >> >>> >
> >> >>> >
> >> >>> > On Sun, Sep 8, 2013 at 7:37 AM, Maxim Solodovnik <
> >> solomax666@gmail.com
> >> >>> > >wrote:
> >> >>> >
> >> >>> > > Could you please provide relevant part of OM log?
> >> >>> > >
> >> >>> > >
> >> >>> > > On Sun, Sep 8, 2013 at 8:57 AM, Pradeep D <pradeepd12@gmail.com
> >
> >> >>> wrote:
> >> >>> > >
> >> >>> > > > ---------- Forwarded message ----------
> >> >>> > > > From: "Pradeep D" <pr...@gmail.com>
> >> >>> > > > Date: 8 Sep 2013 00:17
> >> >>> > > > Subject: Error while calling RoomWebService
> >> >>> > > > To: <us...@openmeetings.apache.org>, <
> >> dev@openmeetings.apache.org>
> >> >>> > > > Cc:
> >> >>> > > >
> >> >>> > > > Hi All,
> >> >>> > > >
> >> >>> > > > I download the latest openmeeting 2.1.1m We are calling
> >> >>> RoomWebService.
> >> >>> > > >  *addRoomWithModerationAndExternalTypeAndStartEnd*
> >> >>> > > >   method which is throwing the below exception,
> >> >>> > > > http://localhost:5080/openmeetings/services/RoomService
> >> >>> > > > Exception in thread "main"
> >> >>> > > > com.sun.jersey.api.client.UniformInterfaceException: GET
> >> >>> > > >
> http://localhost:5080/openmeetings/services/RoomServicereturned a
> >> >>> > > > response
> >> >>> > > > status of 500 Internal Server Error
> >> >>> > > >     at
> >> >>> > com.sun.jersey.api.client.WebResource.handle(WebResource.java:686)
> >> >>> > > >     at
> >> >>> com.sun.jersey.api.client.WebResource.get(WebResource.java:191)
> >> >>> > > >     at
> >> >>> > > >
> >> >>> > > >
> >> >>> > >
> >> >>> >
> >> >>>
> >>
> openmeetingtest.OpenMeetingService.addNewRoomWithModeratorLimitedTime(OpenMeetingService.java:109)
> >> >>> > > >     at
> >> >>> openmeetingtest.OpenMeetingTest.main(OpenMeetingTest.java:26)
> >> >>> > > >
> >> >>> > > > Below is the code for calling the REST service
> >> >>> > > >
> >> >>> > > > SimpleDateFormat dfDate = new SimpleDateFormat("dd.MM.yyyy");
> >> >>> > > >         SimpleDateFormat dfTime = new
> SimpleDateFormat("mm:hh");
> >> >>> > > >
> >> >>> > > >         Client client = new Client();
> >> >>> > > >         WebResource webResource =
> >> >>> > > > client.resource(openMeetingServiceUrl+"/RoomService");
> >> >>> > > >
> >> >>> > > >         MultivaluedMap queryParams = new MultivaluedMapImpl();
> >> >>> > > >
> queryParams.add("SID",sessionResponse.getSession_id());
> >> >>> > > >         queryParams.add("name","Meeting_"+meetingId);
> >> >>> > > >         queryParams.add("roomtypes_id","1");
> >> >>> > > >
> >> >>> > queryParams.add("numberOfPartizipants",numberOfUsers.toString());
> >> >>> > > >         queryParams.add("ispublic","false");
> >> >>> > > >         queryParams.add("appointment","false");
> >> >>> > > >         queryParams.add("isDemoRoom","false");
> >> >>> > > >         queryParams.add("isModeratedRoom","true");
> >> >>> > > >         queryParams.add("externalRoomType","ebox");
> >> >>> > > >         queryParams.add("validFromDate",dfDate.format(new
> >> Date()));
> >> >>> > > >         queryParams.add("validFromTime",dfTime.format(new
> >> Date()));
> >> >>> > > >         queryParams.add("validToDate",dfDate.format(new
> >> Date()));
> >> >>> > > >         queryParams.add("validToTime",dfTime.format(new
> >> Date()));
> >> >>> > > >         queryParams.add("isPasswordProtected","false");
> >> >>> > > >         queryParams.add("reminderTypeId","1");
> >> >>> > > >         queryParams.add("redirectURL","1");
> >> >>> > > >
> >> >>> > > >
> >> >>> > > >
> >> >>> > > >
> >> >>> > >
> >> >>> >
> >> >>>
> >>
> webResource.path("addRoomWithModerationAndExternalTypeAndStartEnd").queryParams(queryParams);
> >> >>> > > >         System.out.println(webResource.getURI());
> >> >>> > > >         String buffer =  webResource.get(String.class);
> >> >>> > > >
> >> >>> > > >         System.out.println("response:"+buffer);
> >> >>> > > >
> >> >>> > > >         ResponseHandler handler = (ResponseHandler)
> >> >>> > > > SAXParserHelper.parse(buffer,ResponseHandler.class);
> >> >>> > > >
> >> >>> > > > Kindly help me in identifying the problem.
> >> >>> > > >
> >> >>> > > > Thanks
> >> >>> > > > Pradeep D
> >> >>> > > >
> >> >>> > >
> >> >>> > >
> >> >>> > >
> >> >>> > > --
> >> >>> > > WBR
> >> >>> > > Maxim aka solomax
> >> >>> > >
> >> >>> >
> >> >>>
> >> >>>
> >> >>>
> >> >>> --
> >> >>> WBR
> >> >>> Maxim aka solomax
> >> >>>
> >> >>
> >> >>
> >> >
> >>
> >>
> >> --
> >> WBR
> >> Maxim aka solomax
> >>
> >
> >
>



-- 
WBR
Maxim aka solomax

Re: Error while calling RoomWebService

Posted by Pradeep D <pr...@gmail.com>.
Is there any problem with the parameters which i am passing in the below
URL,

http://localhost:5080/openmeetings/services/RoomService/addRoomWithModerationAndExternalTypeAndStartEnd?roomtypes_id=1&externalRoomType=ebox&reminderTypeId=1&ispublic=false&isModeratedRoom=true&isPasswordProtected=false&appointment=false&validFromDate=09.09.2013&SID=011a59f73099a496c8a01dcdf7a8db47&validFromTime=42:10&numberOfPartizipants=10&redirectURL=1&name=Meeting_1&validToDate=09.09.2013&validToTime=42:10&isDemoRoom=false

Below is the xml response in the browser
<faultstring>Required element null defined in the schema can not be found
in the request</faultstring>




On Mon, Sep 9, 2013 at 10:45 AM, Pradeep D <pr...@gmail.com> wrote:

> Yes i checked this method was there in the WSDL, Below is the URL and the
> corresponding parameters,
>
>
> http://localhost:5080/openmeetings/services/RoomService/addRoomWithModerationAndExternalTypeAndStartEnd?roomtypes_id=1&externalRoomType=ebox&reminderTypeId=1&ispublic=false&isModeratedRoom=true&isPasswordProtected=false&appointment=false&validFromDate=09.09.2013&SID=011a59f73099a496c8a01dcdf7a8db47&validFromTime=42:10&numberOfPartizipants=10&redirectURL=1&name=Meeting_1&validToDate=09.09.2013&validToTime=42:10&isDemoRoom=false
>
> And when i launch this URL in browser i am getting the below response,
> <faultstring>Required element null defined in the schema can not be found
> in the request</faultstring>
>
> I guess there is some problem with any of the parameters, Can you please
> help me to identify the problem.
>
> Thanks
> Pradeep D
>
>
> On Sun, Sep 8, 2013 at 10:13 AM, Maxim Solodovnik <so...@gmail.com>wrote:
>
>> XML sent by you does contain
>> addRoomWithModerationAndExternalTypeAndStartEnd
>> as well as my local version.
>>
>> I believe this should work as expected
>>
>> Are you able to call this method from the browser?
>>
>>
>> On Sun, Sep 8, 2013 at 11:11 AM, Pradeep D <pr...@gmail.com> wrote:
>>
>> > Please find the WSDL which i am getting in the attached mail.
>> >
>> >
>> >
>> >
>> > On Sun, Sep 8, 2013 at 9:38 AM, Pradeep D <pr...@gmail.com> wrote:
>> >
>> >> Yes i check that its working, I am getting the WSDL. In WSDL i dont see
>> >> this method "addRoomWithModerationAndExternalTypeAndStartEnd", But in
>> the
>> >> openmeeting documentation we have this service method
>> >>
>> >>
>> http://openmeetings.apache.org/RoomService.html#addRoomWithModerationAndExternalTypeAndStartEnd
>> >>
>> >> And also i used this method earlier openmeeting version, Now i upgraded
>> >> to 2.1.1 this time its not working.
>> >>
>> >> Thanks
>> >> Pradeep D
>> >>
>> >>
>> >>
>> >> On Sun, Sep 8, 2013 at 8:08 AM, Maxim Solodovnik <solomax666@gmail.com
>> >wrote:
>> >>
>> >>> According to your logs you are querying function from RoomService
>> which
>> >>> does not exist.
>> >>>
>> >>> could you please call
>> >>> http://localhost:5080/openmeetings/services/RoomService?wsdl and
>> check
>> >>> if
>> >>> function name is listed (documentation on the site is for 3.0.0)
>> >>>
>> >>>
>> >>> On Sun, Sep 8, 2013 at 9:24 AM, Pradeep D <pr...@gmail.com>
>> wrote:
>> >>>
>> >>> > Hi Maxim,
>> >>> >
>> >>> > Below is the error i got  in the openmeeting console,
>> >>> >
>> >>> > DEBUG 09-08 07:48:15.295 UserManager.java 53927 281
>> >>> > org.apache.openmeetings.data.user.UserManager
>> >>> > [http-bio-0.0.0.0-5080-exec-2] - loginUser size 1
>> >>> > ERROR 09-08 07:48:15.505 AxisEngine.java 54137 207
>> >>> > org.apache.axis2.engine.AxisEngine [http-bio-0.0.0.0-5080-exec-3] -
>> The
>> >>> > endpoint reference (EPR) for the Operation not found is
>> >>> > /openmeetings/services/RoomService and the WSA Action = null. If
>> this
>> >>> EPR
>> >>> > was previously reachable, please contact the server administrator.
>> >>> > org.apache.axis2.AxisFault: The endpoint reference (EPR) for the
>> >>> Operation
>> >>> > not found is /openmeetings/services/RoomService and the WSA Action =
>> >>> null.
>> >>> > If this EPR was previously reachable, please contact the server
>> >>> > administrator.
>> >>> >     at
>> >>> >
>> >>> >
>> >>>
>> org.apache.axis2.engine.DispatchPhase.checkPostConditions(DispatchPhase.java:118)
>> >>> > ~[axis2-jar-1.7.0-SNAPSHOT.jar:na]
>> >>> >     at org.apache.axis2.engine.Phase.invoke(Phase.java:324)
>> >>> > ~[axis2-jar-1.7.0-SNAPSHOT.jar:na]
>> >>> >     at
>> org.apache.axis2.engine.AxisEngine.invoke(AxisEngine.java:250)
>> >>> > ~[axis2-jar-1.7.0-SNAPSHOT.jar:na]
>> >>> >     at
>> org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:156)
>> >>> > ~[axis2-jar-1.7.0-SNAPSHOT.jar:na]
>> >>> >     at
>> >>> >
>> >>> >
>> >>>
>> org.apache.axis2.transport.http.util.RESTUtil.invokeAxisEngine(RESTUtil.java:242)
>> >>> > [axis2-transport-http-bundle-1.7.0-SNAPSHOT.jar:na]
>> >>> >     at
>> >>> >
>> >>> >
>> >>>
>> org.apache.axis2.transport.http.util.RESTUtil.processURLRequest(RESTUtil.java:184)
>> >>> > [axis2-transport-http-bundle-1.7.0-SNAPSHOT.jar:na]
>> >>> >     at
>> >>> >
>> >>> >
>> >>>
>> org.apache.axis2.transport.http.AxisServlet$RestRequestProcessor.processURLRequest(AxisServlet.java:870)
>> >>> > [axis2-transport-http-bundle-1.7.0-SNAPSHOT.jar:na]
>> >>> >     at
>> >>> >
>> org.apache.axis2.transport.http.AxisServlet.doGet(AxisServlet.java:290)
>> >>> > [axis2-transport-http-bundle-1.7.0-SNAPSHOT.jar:na]
>> >>> >     at javax.servlet.http.HttpServlet.service(HttpServlet.java:621)
>> >>> > [tomcat-embed-core-jar-7.0.34.jar:7.0.34]
>> >>> >     at javax.servlet.http.HttpServlet.service(HttpServlet.java:728)
>> >>> > [tomcat-embed-core-jar-7.0.34.jar:7.0.34]
>> >>> >     at
>> >>> >
>> >>> >
>> >>>
>> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:305)
>> >>> > [tomcat-embed-core-jar-7.0.34.jar:7.0.34]
>> >>> >     at
>> >>> >
>> >>> >
>> >>>
>> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
>> >>> > [tomcat-embed-core-jar-7.0.34.jar:7.0.34]
>> >>> >     at
>> >>> >
>> >>>
>> org.red5.logging.LoggerContextFilter.doFilter(LoggerContextFilter.java:77)
>> >>> > [red5.jar:na]
>> >>> >     at
>> >>> >
>> >>> >
>> >>>
>> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)
>> >>> > [tomcat-embed-core-jar-7.0.34.jar:7.0.34]
>> >>> >     at
>> >>> >
>> >>> >
>> >>>
>> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
>> >>> > [tomcat-embed-core-jar-7.0.34.jar:7.0.34]
>> >>> >     at
>> >>> >
>> >>> >
>> >>>
>> org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:222)
>> >>> > [tomcat-embed-core-jar-7.0.34.jar:7.0.34]
>> >>> >     at
>> >>> >
>> >>> >
>> >>>
>> org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:123)
>> >>> > [tomcat-embed-core-jar-7.0.34.jar:7.0.34]
>> >>> >     at
>> >>> >
>> >>> >
>> >>>
>> org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:472)
>> >>> > [tomcat-embed-core-jar-7.0.34.jar:7.0.34]
>> >>> >     at
>> >>> >
>> >>> >
>> >>>
>> org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:171)
>> >>> > [tomcat-embed-core-jar-7.0.34.jar:7.0.34]
>> >>> >     at
>> >>> >
>> >>> >
>> >>>
>> org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:99)
>> >>> > [tomcat-embed-core-jar-7.0.34.jar:7.0.34]
>> >>> >     at
>> >>> >
>> >>> >
>> >>>
>> org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:118)
>> >>> > [tomcat-embed-core-jar-7.0.34.jar:7.0.34]
>> >>> >     at
>> >>> >
>> >>>
>> org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:407)
>> >>> > [tomcat-embed-core-jar-7.0.34.jar:7.0.34]
>> >>> >     at
>> >>> >
>> >>> >
>> >>>
>> org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1004)
>> >>> > [tomcat-embed-core-jar-7.0.34.jar:7.0.34]
>> >>> >     at
>> >>> >
>> >>> >
>> >>>
>> org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:589)
>> >>> > [tomcat-embed-core-jar-7.0.34.jar:7.0.34]
>> >>> >     at
>> >>> >
>> >>> >
>> >>>
>> org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:312)
>> >>> > [tomcat-embed-core-jar-7.0.34.jar:7.0.34]
>> >>> >     at
>> >>> >
>> >>> >
>> >>>
>> java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
>> >>> > [na:1.6.0_26]
>> >>> >     at
>> >>> >
>> >>> >
>> >>>
>> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
>> >>> > [na:1.6.0_26]
>> >>> >     at java.lang.Thread.run(Thread.java:662) [na:1.6.0_26]
>> >>> >
>> >>> >
>> >>> > Thanks
>> >>> > Pradeep D
>> >>> >
>> >>> >
>> >>> > On Sun, Sep 8, 2013 at 7:37 AM, Maxim Solodovnik <
>> solomax666@gmail.com
>> >>> > >wrote:
>> >>> >
>> >>> > > Could you please provide relevant part of OM log?
>> >>> > >
>> >>> > >
>> >>> > > On Sun, Sep 8, 2013 at 8:57 AM, Pradeep D <pr...@gmail.com>
>> >>> wrote:
>> >>> > >
>> >>> > > > ---------- Forwarded message ----------
>> >>> > > > From: "Pradeep D" <pr...@gmail.com>
>> >>> > > > Date: 8 Sep 2013 00:17
>> >>> > > > Subject: Error while calling RoomWebService
>> >>> > > > To: <us...@openmeetings.apache.org>, <
>> dev@openmeetings.apache.org>
>> >>> > > > Cc:
>> >>> > > >
>> >>> > > > Hi All,
>> >>> > > >
>> >>> > > > I download the latest openmeeting 2.1.1m We are calling
>> >>> RoomWebService.
>> >>> > > >  *addRoomWithModerationAndExternalTypeAndStartEnd*
>> >>> > > >   method which is throwing the below exception,
>> >>> > > > http://localhost:5080/openmeetings/services/RoomService
>> >>> > > > Exception in thread "main"
>> >>> > > > com.sun.jersey.api.client.UniformInterfaceException: GET
>> >>> > > > http://localhost:5080/openmeetings/services/RoomServicereturned a
>> >>> > > > response
>> >>> > > > status of 500 Internal Server Error
>> >>> > > >     at
>> >>> > com.sun.jersey.api.client.WebResource.handle(WebResource.java:686)
>> >>> > > >     at
>> >>> com.sun.jersey.api.client.WebResource.get(WebResource.java:191)
>> >>> > > >     at
>> >>> > > >
>> >>> > > >
>> >>> > >
>> >>> >
>> >>>
>> openmeetingtest.OpenMeetingService.addNewRoomWithModeratorLimitedTime(OpenMeetingService.java:109)
>> >>> > > >     at
>> >>> openmeetingtest.OpenMeetingTest.main(OpenMeetingTest.java:26)
>> >>> > > >
>> >>> > > > Below is the code for calling the REST service
>> >>> > > >
>> >>> > > > SimpleDateFormat dfDate = new SimpleDateFormat("dd.MM.yyyy");
>> >>> > > >         SimpleDateFormat dfTime = new SimpleDateFormat("mm:hh");
>> >>> > > >
>> >>> > > >         Client client = new Client();
>> >>> > > >         WebResource webResource =
>> >>> > > > client.resource(openMeetingServiceUrl+"/RoomService");
>> >>> > > >
>> >>> > > >         MultivaluedMap queryParams = new MultivaluedMapImpl();
>> >>> > > >         queryParams.add("SID",sessionResponse.getSession_id());
>> >>> > > >         queryParams.add("name","Meeting_"+meetingId);
>> >>> > > >         queryParams.add("roomtypes_id","1");
>> >>> > > >
>> >>> > queryParams.add("numberOfPartizipants",numberOfUsers.toString());
>> >>> > > >         queryParams.add("ispublic","false");
>> >>> > > >         queryParams.add("appointment","false");
>> >>> > > >         queryParams.add("isDemoRoom","false");
>> >>> > > >         queryParams.add("isModeratedRoom","true");
>> >>> > > >         queryParams.add("externalRoomType","ebox");
>> >>> > > >         queryParams.add("validFromDate",dfDate.format(new
>> Date()));
>> >>> > > >         queryParams.add("validFromTime",dfTime.format(new
>> Date()));
>> >>> > > >         queryParams.add("validToDate",dfDate.format(new
>> Date()));
>> >>> > > >         queryParams.add("validToTime",dfTime.format(new
>> Date()));
>> >>> > > >         queryParams.add("isPasswordProtected","false");
>> >>> > > >         queryParams.add("reminderTypeId","1");
>> >>> > > >         queryParams.add("redirectURL","1");
>> >>> > > >
>> >>> > > >
>> >>> > > >
>> >>> > > >
>> >>> > >
>> >>> >
>> >>>
>> webResource.path("addRoomWithModerationAndExternalTypeAndStartEnd").queryParams(queryParams);
>> >>> > > >         System.out.println(webResource.getURI());
>> >>> > > >         String buffer =  webResource.get(String.class);
>> >>> > > >
>> >>> > > >         System.out.println("response:"+buffer);
>> >>> > > >
>> >>> > > >         ResponseHandler handler = (ResponseHandler)
>> >>> > > > SAXParserHelper.parse(buffer,ResponseHandler.class);
>> >>> > > >
>> >>> > > > Kindly help me in identifying the problem.
>> >>> > > >
>> >>> > > > Thanks
>> >>> > > > Pradeep D
>> >>> > > >
>> >>> > >
>> >>> > >
>> >>> > >
>> >>> > > --
>> >>> > > WBR
>> >>> > > Maxim aka solomax
>> >>> > >
>> >>> >
>> >>>
>> >>>
>> >>>
>> >>> --
>> >>> WBR
>> >>> Maxim aka solomax
>> >>>
>> >>
>> >>
>> >
>>
>>
>> --
>> WBR
>> Maxim aka solomax
>>
>
>

Re: Error while calling RoomWebService

Posted by Pradeep D <pr...@gmail.com>.
Yes i checked this method was there in the WSDL, Below is the URL and the
corresponding parameters,

http://localhost:5080/openmeetings/services/RoomService/addRoomWithModerationAndExternalTypeAndStartEnd?roomtypes_id=1&externalRoomType=ebox&reminderTypeId=1&ispublic=false&isModeratedRoom=true&isPasswordProtected=false&appointment=false&validFromDate=09.09.2013&SID=011a59f73099a496c8a01dcdf7a8db47&validFromTime=42:10&numberOfPartizipants=10&redirectURL=1&name=Meeting_1&validToDate=09.09.2013&validToTime=42:10&isDemoRoom=false

And when i launch this URL in browser i am getting the below response,
<faultstring>Required element null defined in the schema can not be found
in the request</faultstring>

I guess there is some problem with any of the parameters, Can you please
help me to identify the problem.

Thanks
Pradeep D


On Sun, Sep 8, 2013 at 10:13 AM, Maxim Solodovnik <so...@gmail.com>wrote:

> XML sent by you does contain
> addRoomWithModerationAndExternalTypeAndStartEnd
> as well as my local version.
>
> I believe this should work as expected
>
> Are you able to call this method from the browser?
>
>
> On Sun, Sep 8, 2013 at 11:11 AM, Pradeep D <pr...@gmail.com> wrote:
>
> > Please find the WSDL which i am getting in the attached mail.
> >
> >
> >
> >
> > On Sun, Sep 8, 2013 at 9:38 AM, Pradeep D <pr...@gmail.com> wrote:
> >
> >> Yes i check that its working, I am getting the WSDL. In WSDL i dont see
> >> this method "addRoomWithModerationAndExternalTypeAndStartEnd", But in
> the
> >> openmeeting documentation we have this service method
> >>
> >>
> http://openmeetings.apache.org/RoomService.html#addRoomWithModerationAndExternalTypeAndStartEnd
> >>
> >> And also i used this method earlier openmeeting version, Now i upgraded
> >> to 2.1.1 this time its not working.
> >>
> >> Thanks
> >> Pradeep D
> >>
> >>
> >>
> >> On Sun, Sep 8, 2013 at 8:08 AM, Maxim Solodovnik <solomax666@gmail.com
> >wrote:
> >>
> >>> According to your logs you are querying function from RoomService which
> >>> does not exist.
> >>>
> >>> could you please call
> >>> http://localhost:5080/openmeetings/services/RoomService?wsdl and check
> >>> if
> >>> function name is listed (documentation on the site is for 3.0.0)
> >>>
> >>>
> >>> On Sun, Sep 8, 2013 at 9:24 AM, Pradeep D <pr...@gmail.com>
> wrote:
> >>>
> >>> > Hi Maxim,
> >>> >
> >>> > Below is the error i got  in the openmeeting console,
> >>> >
> >>> > DEBUG 09-08 07:48:15.295 UserManager.java 53927 281
> >>> > org.apache.openmeetings.data.user.UserManager
> >>> > [http-bio-0.0.0.0-5080-exec-2] - loginUser size 1
> >>> > ERROR 09-08 07:48:15.505 AxisEngine.java 54137 207
> >>> > org.apache.axis2.engine.AxisEngine [http-bio-0.0.0.0-5080-exec-3] -
> The
> >>> > endpoint reference (EPR) for the Operation not found is
> >>> > /openmeetings/services/RoomService and the WSA Action = null. If this
> >>> EPR
> >>> > was previously reachable, please contact the server administrator.
> >>> > org.apache.axis2.AxisFault: The endpoint reference (EPR) for the
> >>> Operation
> >>> > not found is /openmeetings/services/RoomService and the WSA Action =
> >>> null.
> >>> > If this EPR was previously reachable, please contact the server
> >>> > administrator.
> >>> >     at
> >>> >
> >>> >
> >>>
> org.apache.axis2.engine.DispatchPhase.checkPostConditions(DispatchPhase.java:118)
> >>> > ~[axis2-jar-1.7.0-SNAPSHOT.jar:na]
> >>> >     at org.apache.axis2.engine.Phase.invoke(Phase.java:324)
> >>> > ~[axis2-jar-1.7.0-SNAPSHOT.jar:na]
> >>> >     at org.apache.axis2.engine.AxisEngine.invoke(AxisEngine.java:250)
> >>> > ~[axis2-jar-1.7.0-SNAPSHOT.jar:na]
> >>> >     at
> org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:156)
> >>> > ~[axis2-jar-1.7.0-SNAPSHOT.jar:na]
> >>> >     at
> >>> >
> >>> >
> >>>
> org.apache.axis2.transport.http.util.RESTUtil.invokeAxisEngine(RESTUtil.java:242)
> >>> > [axis2-transport-http-bundle-1.7.0-SNAPSHOT.jar:na]
> >>> >     at
> >>> >
> >>> >
> >>>
> org.apache.axis2.transport.http.util.RESTUtil.processURLRequest(RESTUtil.java:184)
> >>> > [axis2-transport-http-bundle-1.7.0-SNAPSHOT.jar:na]
> >>> >     at
> >>> >
> >>> >
> >>>
> org.apache.axis2.transport.http.AxisServlet$RestRequestProcessor.processURLRequest(AxisServlet.java:870)
> >>> > [axis2-transport-http-bundle-1.7.0-SNAPSHOT.jar:na]
> >>> >     at
> >>> >
> org.apache.axis2.transport.http.AxisServlet.doGet(AxisServlet.java:290)
> >>> > [axis2-transport-http-bundle-1.7.0-SNAPSHOT.jar:na]
> >>> >     at javax.servlet.http.HttpServlet.service(HttpServlet.java:621)
> >>> > [tomcat-embed-core-jar-7.0.34.jar:7.0.34]
> >>> >     at javax.servlet.http.HttpServlet.service(HttpServlet.java:728)
> >>> > [tomcat-embed-core-jar-7.0.34.jar:7.0.34]
> >>> >     at
> >>> >
> >>> >
> >>>
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:305)
> >>> > [tomcat-embed-core-jar-7.0.34.jar:7.0.34]
> >>> >     at
> >>> >
> >>> >
> >>>
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
> >>> > [tomcat-embed-core-jar-7.0.34.jar:7.0.34]
> >>> >     at
> >>> >
> >>>
> org.red5.logging.LoggerContextFilter.doFilter(LoggerContextFilter.java:77)
> >>> > [red5.jar:na]
> >>> >     at
> >>> >
> >>> >
> >>>
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)
> >>> > [tomcat-embed-core-jar-7.0.34.jar:7.0.34]
> >>> >     at
> >>> >
> >>> >
> >>>
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
> >>> > [tomcat-embed-core-jar-7.0.34.jar:7.0.34]
> >>> >     at
> >>> >
> >>> >
> >>>
> org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:222)
> >>> > [tomcat-embed-core-jar-7.0.34.jar:7.0.34]
> >>> >     at
> >>> >
> >>> >
> >>>
> org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:123)
> >>> > [tomcat-embed-core-jar-7.0.34.jar:7.0.34]
> >>> >     at
> >>> >
> >>> >
> >>>
> org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:472)
> >>> > [tomcat-embed-core-jar-7.0.34.jar:7.0.34]
> >>> >     at
> >>> >
> >>> >
> >>>
> org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:171)
> >>> > [tomcat-embed-core-jar-7.0.34.jar:7.0.34]
> >>> >     at
> >>> >
> >>> >
> >>>
> org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:99)
> >>> > [tomcat-embed-core-jar-7.0.34.jar:7.0.34]
> >>> >     at
> >>> >
> >>> >
> >>>
> org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:118)
> >>> > [tomcat-embed-core-jar-7.0.34.jar:7.0.34]
> >>> >     at
> >>> >
> >>>
> org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:407)
> >>> > [tomcat-embed-core-jar-7.0.34.jar:7.0.34]
> >>> >     at
> >>> >
> >>> >
> >>>
> org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1004)
> >>> > [tomcat-embed-core-jar-7.0.34.jar:7.0.34]
> >>> >     at
> >>> >
> >>> >
> >>>
> org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:589)
> >>> > [tomcat-embed-core-jar-7.0.34.jar:7.0.34]
> >>> >     at
> >>> >
> >>> >
> >>>
> org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:312)
> >>> > [tomcat-embed-core-jar-7.0.34.jar:7.0.34]
> >>> >     at
> >>> >
> >>> >
> >>>
> java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
> >>> > [na:1.6.0_26]
> >>> >     at
> >>> >
> >>> >
> >>>
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
> >>> > [na:1.6.0_26]
> >>> >     at java.lang.Thread.run(Thread.java:662) [na:1.6.0_26]
> >>> >
> >>> >
> >>> > Thanks
> >>> > Pradeep D
> >>> >
> >>> >
> >>> > On Sun, Sep 8, 2013 at 7:37 AM, Maxim Solodovnik <
> solomax666@gmail.com
> >>> > >wrote:
> >>> >
> >>> > > Could you please provide relevant part of OM log?
> >>> > >
> >>> > >
> >>> > > On Sun, Sep 8, 2013 at 8:57 AM, Pradeep D <pr...@gmail.com>
> >>> wrote:
> >>> > >
> >>> > > > ---------- Forwarded message ----------
> >>> > > > From: "Pradeep D" <pr...@gmail.com>
> >>> > > > Date: 8 Sep 2013 00:17
> >>> > > > Subject: Error while calling RoomWebService
> >>> > > > To: <us...@openmeetings.apache.org>, <dev@openmeetings.apache.org
> >
> >>> > > > Cc:
> >>> > > >
> >>> > > > Hi All,
> >>> > > >
> >>> > > > I download the latest openmeeting 2.1.1m We are calling
> >>> RoomWebService.
> >>> > > >  *addRoomWithModerationAndExternalTypeAndStartEnd*
> >>> > > >   method which is throwing the below exception,
> >>> > > > http://localhost:5080/openmeetings/services/RoomService
> >>> > > > Exception in thread "main"
> >>> > > > com.sun.jersey.api.client.UniformInterfaceException: GET
> >>> > > > http://localhost:5080/openmeetings/services/RoomServicereturned a
> >>> > > > response
> >>> > > > status of 500 Internal Server Error
> >>> > > >     at
> >>> > com.sun.jersey.api.client.WebResource.handle(WebResource.java:686)
> >>> > > >     at
> >>> com.sun.jersey.api.client.WebResource.get(WebResource.java:191)
> >>> > > >     at
> >>> > > >
> >>> > > >
> >>> > >
> >>> >
> >>>
> openmeetingtest.OpenMeetingService.addNewRoomWithModeratorLimitedTime(OpenMeetingService.java:109)
> >>> > > >     at
> >>> openmeetingtest.OpenMeetingTest.main(OpenMeetingTest.java:26)
> >>> > > >
> >>> > > > Below is the code for calling the REST service
> >>> > > >
> >>> > > > SimpleDateFormat dfDate = new SimpleDateFormat("dd.MM.yyyy");
> >>> > > >         SimpleDateFormat dfTime = new SimpleDateFormat("mm:hh");
> >>> > > >
> >>> > > >         Client client = new Client();
> >>> > > >         WebResource webResource =
> >>> > > > client.resource(openMeetingServiceUrl+"/RoomService");
> >>> > > >
> >>> > > >         MultivaluedMap queryParams = new MultivaluedMapImpl();
> >>> > > >         queryParams.add("SID",sessionResponse.getSession_id());
> >>> > > >         queryParams.add("name","Meeting_"+meetingId);
> >>> > > >         queryParams.add("roomtypes_id","1");
> >>> > > >
> >>> > queryParams.add("numberOfPartizipants",numberOfUsers.toString());
> >>> > > >         queryParams.add("ispublic","false");
> >>> > > >         queryParams.add("appointment","false");
> >>> > > >         queryParams.add("isDemoRoom","false");
> >>> > > >         queryParams.add("isModeratedRoom","true");
> >>> > > >         queryParams.add("externalRoomType","ebox");
> >>> > > >         queryParams.add("validFromDate",dfDate.format(new
> Date()));
> >>> > > >         queryParams.add("validFromTime",dfTime.format(new
> Date()));
> >>> > > >         queryParams.add("validToDate",dfDate.format(new Date()));
> >>> > > >         queryParams.add("validToTime",dfTime.format(new Date()));
> >>> > > >         queryParams.add("isPasswordProtected","false");
> >>> > > >         queryParams.add("reminderTypeId","1");
> >>> > > >         queryParams.add("redirectURL","1");
> >>> > > >
> >>> > > >
> >>> > > >
> >>> > > >
> >>> > >
> >>> >
> >>>
> webResource.path("addRoomWithModerationAndExternalTypeAndStartEnd").queryParams(queryParams);
> >>> > > >         System.out.println(webResource.getURI());
> >>> > > >         String buffer =  webResource.get(String.class);
> >>> > > >
> >>> > > >         System.out.println("response:"+buffer);
> >>> > > >
> >>> > > >         ResponseHandler handler = (ResponseHandler)
> >>> > > > SAXParserHelper.parse(buffer,ResponseHandler.class);
> >>> > > >
> >>> > > > Kindly help me in identifying the problem.
> >>> > > >
> >>> > > > Thanks
> >>> > > > Pradeep D
> >>> > > >
> >>> > >
> >>> > >
> >>> > >
> >>> > > --
> >>> > > WBR
> >>> > > Maxim aka solomax
> >>> > >
> >>> >
> >>>
> >>>
> >>>
> >>> --
> >>> WBR
> >>> Maxim aka solomax
> >>>
> >>
> >>
> >
>
>
> --
> WBR
> Maxim aka solomax
>

Re: Error while calling RoomWebService

Posted by Maxim Solodovnik <so...@gmail.com>.
XML sent by you does contain addRoomWithModerationAndExternalTypeAndStartEnd
as well as my local version.

I believe this should work as expected

Are you able to call this method from the browser?


On Sun, Sep 8, 2013 at 11:11 AM, Pradeep D <pr...@gmail.com> wrote:

> Please find the WSDL which i am getting in the attached mail.
>
>
>
>
> On Sun, Sep 8, 2013 at 9:38 AM, Pradeep D <pr...@gmail.com> wrote:
>
>> Yes i check that its working, I am getting the WSDL. In WSDL i dont see
>> this method "addRoomWithModerationAndExternalTypeAndStartEnd", But in the
>> openmeeting documentation we have this service method
>>
>> http://openmeetings.apache.org/RoomService.html#addRoomWithModerationAndExternalTypeAndStartEnd
>>
>> And also i used this method earlier openmeeting version, Now i upgraded
>> to 2.1.1 this time its not working.
>>
>> Thanks
>> Pradeep D
>>
>>
>>
>> On Sun, Sep 8, 2013 at 8:08 AM, Maxim Solodovnik <so...@gmail.com>wrote:
>>
>>> According to your logs you are querying function from RoomService which
>>> does not exist.
>>>
>>> could you please call
>>> http://localhost:5080/openmeetings/services/RoomService?wsdl and check
>>> if
>>> function name is listed (documentation on the site is for 3.0.0)
>>>
>>>
>>> On Sun, Sep 8, 2013 at 9:24 AM, Pradeep D <pr...@gmail.com> wrote:
>>>
>>> > Hi Maxim,
>>> >
>>> > Below is the error i got  in the openmeeting console,
>>> >
>>> > DEBUG 09-08 07:48:15.295 UserManager.java 53927 281
>>> > org.apache.openmeetings.data.user.UserManager
>>> > [http-bio-0.0.0.0-5080-exec-2] - loginUser size 1
>>> > ERROR 09-08 07:48:15.505 AxisEngine.java 54137 207
>>> > org.apache.axis2.engine.AxisEngine [http-bio-0.0.0.0-5080-exec-3] - The
>>> > endpoint reference (EPR) for the Operation not found is
>>> > /openmeetings/services/RoomService and the WSA Action = null. If this
>>> EPR
>>> > was previously reachable, please contact the server administrator.
>>> > org.apache.axis2.AxisFault: The endpoint reference (EPR) for the
>>> Operation
>>> > not found is /openmeetings/services/RoomService and the WSA Action =
>>> null.
>>> > If this EPR was previously reachable, please contact the server
>>> > administrator.
>>> >     at
>>> >
>>> >
>>> org.apache.axis2.engine.DispatchPhase.checkPostConditions(DispatchPhase.java:118)
>>> > ~[axis2-jar-1.7.0-SNAPSHOT.jar:na]
>>> >     at org.apache.axis2.engine.Phase.invoke(Phase.java:324)
>>> > ~[axis2-jar-1.7.0-SNAPSHOT.jar:na]
>>> >     at org.apache.axis2.engine.AxisEngine.invoke(AxisEngine.java:250)
>>> > ~[axis2-jar-1.7.0-SNAPSHOT.jar:na]
>>> >     at org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:156)
>>> > ~[axis2-jar-1.7.0-SNAPSHOT.jar:na]
>>> >     at
>>> >
>>> >
>>> org.apache.axis2.transport.http.util.RESTUtil.invokeAxisEngine(RESTUtil.java:242)
>>> > [axis2-transport-http-bundle-1.7.0-SNAPSHOT.jar:na]
>>> >     at
>>> >
>>> >
>>> org.apache.axis2.transport.http.util.RESTUtil.processURLRequest(RESTUtil.java:184)
>>> > [axis2-transport-http-bundle-1.7.0-SNAPSHOT.jar:na]
>>> >     at
>>> >
>>> >
>>> org.apache.axis2.transport.http.AxisServlet$RestRequestProcessor.processURLRequest(AxisServlet.java:870)
>>> > [axis2-transport-http-bundle-1.7.0-SNAPSHOT.jar:na]
>>> >     at
>>> > org.apache.axis2.transport.http.AxisServlet.doGet(AxisServlet.java:290)
>>> > [axis2-transport-http-bundle-1.7.0-SNAPSHOT.jar:na]
>>> >     at javax.servlet.http.HttpServlet.service(HttpServlet.java:621)
>>> > [tomcat-embed-core-jar-7.0.34.jar:7.0.34]
>>> >     at javax.servlet.http.HttpServlet.service(HttpServlet.java:728)
>>> > [tomcat-embed-core-jar-7.0.34.jar:7.0.34]
>>> >     at
>>> >
>>> >
>>> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:305)
>>> > [tomcat-embed-core-jar-7.0.34.jar:7.0.34]
>>> >     at
>>> >
>>> >
>>> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
>>> > [tomcat-embed-core-jar-7.0.34.jar:7.0.34]
>>> >     at
>>> >
>>> org.red5.logging.LoggerContextFilter.doFilter(LoggerContextFilter.java:77)
>>> > [red5.jar:na]
>>> >     at
>>> >
>>> >
>>> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)
>>> > [tomcat-embed-core-jar-7.0.34.jar:7.0.34]
>>> >     at
>>> >
>>> >
>>> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
>>> > [tomcat-embed-core-jar-7.0.34.jar:7.0.34]
>>> >     at
>>> >
>>> >
>>> org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:222)
>>> > [tomcat-embed-core-jar-7.0.34.jar:7.0.34]
>>> >     at
>>> >
>>> >
>>> org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:123)
>>> > [tomcat-embed-core-jar-7.0.34.jar:7.0.34]
>>> >     at
>>> >
>>> >
>>> org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:472)
>>> > [tomcat-embed-core-jar-7.0.34.jar:7.0.34]
>>> >     at
>>> >
>>> >
>>> org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:171)
>>> > [tomcat-embed-core-jar-7.0.34.jar:7.0.34]
>>> >     at
>>> >
>>> >
>>> org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:99)
>>> > [tomcat-embed-core-jar-7.0.34.jar:7.0.34]
>>> >     at
>>> >
>>> >
>>> org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:118)
>>> > [tomcat-embed-core-jar-7.0.34.jar:7.0.34]
>>> >     at
>>> >
>>> org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:407)
>>> > [tomcat-embed-core-jar-7.0.34.jar:7.0.34]
>>> >     at
>>> >
>>> >
>>> org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1004)
>>> > [tomcat-embed-core-jar-7.0.34.jar:7.0.34]
>>> >     at
>>> >
>>> >
>>> org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:589)
>>> > [tomcat-embed-core-jar-7.0.34.jar:7.0.34]
>>> >     at
>>> >
>>> >
>>> org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:312)
>>> > [tomcat-embed-core-jar-7.0.34.jar:7.0.34]
>>> >     at
>>> >
>>> >
>>> java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
>>> > [na:1.6.0_26]
>>> >     at
>>> >
>>> >
>>> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
>>> > [na:1.6.0_26]
>>> >     at java.lang.Thread.run(Thread.java:662) [na:1.6.0_26]
>>> >
>>> >
>>> > Thanks
>>> > Pradeep D
>>> >
>>> >
>>> > On Sun, Sep 8, 2013 at 7:37 AM, Maxim Solodovnik <solomax666@gmail.com
>>> > >wrote:
>>> >
>>> > > Could you please provide relevant part of OM log?
>>> > >
>>> > >
>>> > > On Sun, Sep 8, 2013 at 8:57 AM, Pradeep D <pr...@gmail.com>
>>> wrote:
>>> > >
>>> > > > ---------- Forwarded message ----------
>>> > > > From: "Pradeep D" <pr...@gmail.com>
>>> > > > Date: 8 Sep 2013 00:17
>>> > > > Subject: Error while calling RoomWebService
>>> > > > To: <us...@openmeetings.apache.org>, <de...@openmeetings.apache.org>
>>> > > > Cc:
>>> > > >
>>> > > > Hi All,
>>> > > >
>>> > > > I download the latest openmeeting 2.1.1m We are calling
>>> RoomWebService.
>>> > > >  *addRoomWithModerationAndExternalTypeAndStartEnd*
>>> > > >   method which is throwing the below exception,
>>> > > > http://localhost:5080/openmeetings/services/RoomService
>>> > > > Exception in thread "main"
>>> > > > com.sun.jersey.api.client.UniformInterfaceException: GET
>>> > > > http://localhost:5080/openmeetings/services/RoomService returned a
>>> > > > response
>>> > > > status of 500 Internal Server Error
>>> > > >     at
>>> > com.sun.jersey.api.client.WebResource.handle(WebResource.java:686)
>>> > > >     at
>>> com.sun.jersey.api.client.WebResource.get(WebResource.java:191)
>>> > > >     at
>>> > > >
>>> > > >
>>> > >
>>> >
>>> openmeetingtest.OpenMeetingService.addNewRoomWithModeratorLimitedTime(OpenMeetingService.java:109)
>>> > > >     at
>>> openmeetingtest.OpenMeetingTest.main(OpenMeetingTest.java:26)
>>> > > >
>>> > > > Below is the code for calling the REST service
>>> > > >
>>> > > > SimpleDateFormat dfDate = new SimpleDateFormat("dd.MM.yyyy");
>>> > > >         SimpleDateFormat dfTime = new SimpleDateFormat("mm:hh");
>>> > > >
>>> > > >         Client client = new Client();
>>> > > >         WebResource webResource =
>>> > > > client.resource(openMeetingServiceUrl+"/RoomService");
>>> > > >
>>> > > >         MultivaluedMap queryParams = new MultivaluedMapImpl();
>>> > > >         queryParams.add("SID",sessionResponse.getSession_id());
>>> > > >         queryParams.add("name","Meeting_"+meetingId);
>>> > > >         queryParams.add("roomtypes_id","1");
>>> > > >
>>> > queryParams.add("numberOfPartizipants",numberOfUsers.toString());
>>> > > >         queryParams.add("ispublic","false");
>>> > > >         queryParams.add("appointment","false");
>>> > > >         queryParams.add("isDemoRoom","false");
>>> > > >         queryParams.add("isModeratedRoom","true");
>>> > > >         queryParams.add("externalRoomType","ebox");
>>> > > >         queryParams.add("validFromDate",dfDate.format(new Date()));
>>> > > >         queryParams.add("validFromTime",dfTime.format(new Date()));
>>> > > >         queryParams.add("validToDate",dfDate.format(new Date()));
>>> > > >         queryParams.add("validToTime",dfTime.format(new Date()));
>>> > > >         queryParams.add("isPasswordProtected","false");
>>> > > >         queryParams.add("reminderTypeId","1");
>>> > > >         queryParams.add("redirectURL","1");
>>> > > >
>>> > > >
>>> > > >
>>> > > >
>>> > >
>>> >
>>> webResource.path("addRoomWithModerationAndExternalTypeAndStartEnd").queryParams(queryParams);
>>> > > >         System.out.println(webResource.getURI());
>>> > > >         String buffer =  webResource.get(String.class);
>>> > > >
>>> > > >         System.out.println("response:"+buffer);
>>> > > >
>>> > > >         ResponseHandler handler = (ResponseHandler)
>>> > > > SAXParserHelper.parse(buffer,ResponseHandler.class);
>>> > > >
>>> > > > Kindly help me in identifying the problem.
>>> > > >
>>> > > > Thanks
>>> > > > Pradeep D
>>> > > >
>>> > >
>>> > >
>>> > >
>>> > > --
>>> > > WBR
>>> > > Maxim aka solomax
>>> > >
>>> >
>>>
>>>
>>>
>>> --
>>> WBR
>>> Maxim aka solomax
>>>
>>
>>
>


-- 
WBR
Maxim aka solomax

Re: Error while calling RoomWebService

Posted by Pradeep D <pr...@gmail.com>.
Please find the WSDL which i am getting in the attached mail.




On Sun, Sep 8, 2013 at 9:38 AM, Pradeep D <pr...@gmail.com> wrote:

> Yes i check that its working, I am getting the WSDL. In WSDL i dont see
> this method "addRoomWithModerationAndExternalTypeAndStartEnd", But in the
> openmeeting documentation we have this service method
>
> http://openmeetings.apache.org/RoomService.html#addRoomWithModerationAndExternalTypeAndStartEnd
>
> And also i used this method earlier openmeeting version, Now i upgraded to
> 2.1.1 this time its not working.
>
> Thanks
> Pradeep D
>
>
>
> On Sun, Sep 8, 2013 at 8:08 AM, Maxim Solodovnik <so...@gmail.com>wrote:
>
>> According to your logs you are querying function from RoomService which
>> does not exist.
>>
>> could you please call
>> http://localhost:5080/openmeetings/services/RoomService?wsdl and check if
>> function name is listed (documentation on the site is for 3.0.0)
>>
>>
>> On Sun, Sep 8, 2013 at 9:24 AM, Pradeep D <pr...@gmail.com> wrote:
>>
>> > Hi Maxim,
>> >
>> > Below is the error i got  in the openmeeting console,
>> >
>> > DEBUG 09-08 07:48:15.295 UserManager.java 53927 281
>> > org.apache.openmeetings.data.user.UserManager
>> > [http-bio-0.0.0.0-5080-exec-2] - loginUser size 1
>> > ERROR 09-08 07:48:15.505 AxisEngine.java 54137 207
>> > org.apache.axis2.engine.AxisEngine [http-bio-0.0.0.0-5080-exec-3] - The
>> > endpoint reference (EPR) for the Operation not found is
>> > /openmeetings/services/RoomService and the WSA Action = null. If this
>> EPR
>> > was previously reachable, please contact the server administrator.
>> > org.apache.axis2.AxisFault: The endpoint reference (EPR) for the
>> Operation
>> > not found is /openmeetings/services/RoomService and the WSA Action =
>> null.
>> > If this EPR was previously reachable, please contact the server
>> > administrator.
>> >     at
>> >
>> >
>> org.apache.axis2.engine.DispatchPhase.checkPostConditions(DispatchPhase.java:118)
>> > ~[axis2-jar-1.7.0-SNAPSHOT.jar:na]
>> >     at org.apache.axis2.engine.Phase.invoke(Phase.java:324)
>> > ~[axis2-jar-1.7.0-SNAPSHOT.jar:na]
>> >     at org.apache.axis2.engine.AxisEngine.invoke(AxisEngine.java:250)
>> > ~[axis2-jar-1.7.0-SNAPSHOT.jar:na]
>> >     at org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:156)
>> > ~[axis2-jar-1.7.0-SNAPSHOT.jar:na]
>> >     at
>> >
>> >
>> org.apache.axis2.transport.http.util.RESTUtil.invokeAxisEngine(RESTUtil.java:242)
>> > [axis2-transport-http-bundle-1.7.0-SNAPSHOT.jar:na]
>> >     at
>> >
>> >
>> org.apache.axis2.transport.http.util.RESTUtil.processURLRequest(RESTUtil.java:184)
>> > [axis2-transport-http-bundle-1.7.0-SNAPSHOT.jar:na]
>> >     at
>> >
>> >
>> org.apache.axis2.transport.http.AxisServlet$RestRequestProcessor.processURLRequest(AxisServlet.java:870)
>> > [axis2-transport-http-bundle-1.7.0-SNAPSHOT.jar:na]
>> >     at
>> > org.apache.axis2.transport.http.AxisServlet.doGet(AxisServlet.java:290)
>> > [axis2-transport-http-bundle-1.7.0-SNAPSHOT.jar:na]
>> >     at javax.servlet.http.HttpServlet.service(HttpServlet.java:621)
>> > [tomcat-embed-core-jar-7.0.34.jar:7.0.34]
>> >     at javax.servlet.http.HttpServlet.service(HttpServlet.java:728)
>> > [tomcat-embed-core-jar-7.0.34.jar:7.0.34]
>> >     at
>> >
>> >
>> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:305)
>> > [tomcat-embed-core-jar-7.0.34.jar:7.0.34]
>> >     at
>> >
>> >
>> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
>> > [tomcat-embed-core-jar-7.0.34.jar:7.0.34]
>> >     at
>> >
>> org.red5.logging.LoggerContextFilter.doFilter(LoggerContextFilter.java:77)
>> > [red5.jar:na]
>> >     at
>> >
>> >
>> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)
>> > [tomcat-embed-core-jar-7.0.34.jar:7.0.34]
>> >     at
>> >
>> >
>> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
>> > [tomcat-embed-core-jar-7.0.34.jar:7.0.34]
>> >     at
>> >
>> >
>> org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:222)
>> > [tomcat-embed-core-jar-7.0.34.jar:7.0.34]
>> >     at
>> >
>> >
>> org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:123)
>> > [tomcat-embed-core-jar-7.0.34.jar:7.0.34]
>> >     at
>> >
>> >
>> org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:472)
>> > [tomcat-embed-core-jar-7.0.34.jar:7.0.34]
>> >     at
>> >
>> >
>> org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:171)
>> > [tomcat-embed-core-jar-7.0.34.jar:7.0.34]
>> >     at
>> >
>> >
>> org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:99)
>> > [tomcat-embed-core-jar-7.0.34.jar:7.0.34]
>> >     at
>> >
>> >
>> org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:118)
>> > [tomcat-embed-core-jar-7.0.34.jar:7.0.34]
>> >     at
>> >
>> org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:407)
>> > [tomcat-embed-core-jar-7.0.34.jar:7.0.34]
>> >     at
>> >
>> >
>> org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1004)
>> > [tomcat-embed-core-jar-7.0.34.jar:7.0.34]
>> >     at
>> >
>> >
>> org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:589)
>> > [tomcat-embed-core-jar-7.0.34.jar:7.0.34]
>> >     at
>> >
>> >
>> org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:312)
>> > [tomcat-embed-core-jar-7.0.34.jar:7.0.34]
>> >     at
>> >
>> >
>> java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
>> > [na:1.6.0_26]
>> >     at
>> >
>> >
>> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
>> > [na:1.6.0_26]
>> >     at java.lang.Thread.run(Thread.java:662) [na:1.6.0_26]
>> >
>> >
>> > Thanks
>> > Pradeep D
>> >
>> >
>> > On Sun, Sep 8, 2013 at 7:37 AM, Maxim Solodovnik <solomax666@gmail.com
>> > >wrote:
>> >
>> > > Could you please provide relevant part of OM log?
>> > >
>> > >
>> > > On Sun, Sep 8, 2013 at 8:57 AM, Pradeep D <pr...@gmail.com>
>> wrote:
>> > >
>> > > > ---------- Forwarded message ----------
>> > > > From: "Pradeep D" <pr...@gmail.com>
>> > > > Date: 8 Sep 2013 00:17
>> > > > Subject: Error while calling RoomWebService
>> > > > To: <us...@openmeetings.apache.org>, <de...@openmeetings.apache.org>
>> > > > Cc:
>> > > >
>> > > > Hi All,
>> > > >
>> > > > I download the latest openmeeting 2.1.1m We are calling
>> RoomWebService.
>> > > >  *addRoomWithModerationAndExternalTypeAndStartEnd*
>> > > >   method which is throwing the below exception,
>> > > > http://localhost:5080/openmeetings/services/RoomService
>> > > > Exception in thread "main"
>> > > > com.sun.jersey.api.client.UniformInterfaceException: GET
>> > > > http://localhost:5080/openmeetings/services/RoomService returned a
>> > > > response
>> > > > status of 500 Internal Server Error
>> > > >     at
>> > com.sun.jersey.api.client.WebResource.handle(WebResource.java:686)
>> > > >     at
>> com.sun.jersey.api.client.WebResource.get(WebResource.java:191)
>> > > >     at
>> > > >
>> > > >
>> > >
>> >
>> openmeetingtest.OpenMeetingService.addNewRoomWithModeratorLimitedTime(OpenMeetingService.java:109)
>> > > >     at openmeetingtest.OpenMeetingTest.main(OpenMeetingTest.java:26)
>> > > >
>> > > > Below is the code for calling the REST service
>> > > >
>> > > > SimpleDateFormat dfDate = new SimpleDateFormat("dd.MM.yyyy");
>> > > >         SimpleDateFormat dfTime = new SimpleDateFormat("mm:hh");
>> > > >
>> > > >         Client client = new Client();
>> > > >         WebResource webResource =
>> > > > client.resource(openMeetingServiceUrl+"/RoomService");
>> > > >
>> > > >         MultivaluedMap queryParams = new MultivaluedMapImpl();
>> > > >         queryParams.add("SID",sessionResponse.getSession_id());
>> > > >         queryParams.add("name","Meeting_"+meetingId);
>> > > >         queryParams.add("roomtypes_id","1");
>> > > >
>> > queryParams.add("numberOfPartizipants",numberOfUsers.toString());
>> > > >         queryParams.add("ispublic","false");
>> > > >         queryParams.add("appointment","false");
>> > > >         queryParams.add("isDemoRoom","false");
>> > > >         queryParams.add("isModeratedRoom","true");
>> > > >         queryParams.add("externalRoomType","ebox");
>> > > >         queryParams.add("validFromDate",dfDate.format(new Date()));
>> > > >         queryParams.add("validFromTime",dfTime.format(new Date()));
>> > > >         queryParams.add("validToDate",dfDate.format(new Date()));
>> > > >         queryParams.add("validToTime",dfTime.format(new Date()));
>> > > >         queryParams.add("isPasswordProtected","false");
>> > > >         queryParams.add("reminderTypeId","1");
>> > > >         queryParams.add("redirectURL","1");
>> > > >
>> > > >
>> > > >
>> > > >
>> > >
>> >
>> webResource.path("addRoomWithModerationAndExternalTypeAndStartEnd").queryParams(queryParams);
>> > > >         System.out.println(webResource.getURI());
>> > > >         String buffer =  webResource.get(String.class);
>> > > >
>> > > >         System.out.println("response:"+buffer);
>> > > >
>> > > >         ResponseHandler handler = (ResponseHandler)
>> > > > SAXParserHelper.parse(buffer,ResponseHandler.class);
>> > > >
>> > > > Kindly help me in identifying the problem.
>> > > >
>> > > > Thanks
>> > > > Pradeep D
>> > > >
>> > >
>> > >
>> > >
>> > > --
>> > > WBR
>> > > Maxim aka solomax
>> > >
>> >
>>
>>
>>
>> --
>> WBR
>> Maxim aka solomax
>>
>
>

Re: Error while calling RoomWebService

Posted by Pradeep D <pr...@gmail.com>.
Yes i check that its working, I am getting the WSDL. In WSDL i dont see
this method "addRoomWithModerationAndExternalTypeAndStartEnd", But in the
openmeeting documentation we have this service method
http://openmeetings.apache.org/RoomService.html#addRoomWithModerationAndExternalTypeAndStartEnd

And also i used this method earlier openmeeting version, Now i upgraded to
2.1.1 this time its not working.

Thanks
Pradeep D



On Sun, Sep 8, 2013 at 8:08 AM, Maxim Solodovnik <so...@gmail.com>wrote:

> According to your logs you are querying function from RoomService which
> does not exist.
>
> could you please call
> http://localhost:5080/openmeetings/services/RoomService?wsdl and check if
> function name is listed (documentation on the site is for 3.0.0)
>
>
> On Sun, Sep 8, 2013 at 9:24 AM, Pradeep D <pr...@gmail.com> wrote:
>
> > Hi Maxim,
> >
> > Below is the error i got  in the openmeeting console,
> >
> > DEBUG 09-08 07:48:15.295 UserManager.java 53927 281
> > org.apache.openmeetings.data.user.UserManager
> > [http-bio-0.0.0.0-5080-exec-2] - loginUser size 1
> > ERROR 09-08 07:48:15.505 AxisEngine.java 54137 207
> > org.apache.axis2.engine.AxisEngine [http-bio-0.0.0.0-5080-exec-3] - The
> > endpoint reference (EPR) for the Operation not found is
> > /openmeetings/services/RoomService and the WSA Action = null. If this EPR
> > was previously reachable, please contact the server administrator.
> > org.apache.axis2.AxisFault: The endpoint reference (EPR) for the
> Operation
> > not found is /openmeetings/services/RoomService and the WSA Action =
> null.
> > If this EPR was previously reachable, please contact the server
> > administrator.
> >     at
> >
> >
> org.apache.axis2.engine.DispatchPhase.checkPostConditions(DispatchPhase.java:118)
> > ~[axis2-jar-1.7.0-SNAPSHOT.jar:na]
> >     at org.apache.axis2.engine.Phase.invoke(Phase.java:324)
> > ~[axis2-jar-1.7.0-SNAPSHOT.jar:na]
> >     at org.apache.axis2.engine.AxisEngine.invoke(AxisEngine.java:250)
> > ~[axis2-jar-1.7.0-SNAPSHOT.jar:na]
> >     at org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:156)
> > ~[axis2-jar-1.7.0-SNAPSHOT.jar:na]
> >     at
> >
> >
> org.apache.axis2.transport.http.util.RESTUtil.invokeAxisEngine(RESTUtil.java:242)
> > [axis2-transport-http-bundle-1.7.0-SNAPSHOT.jar:na]
> >     at
> >
> >
> org.apache.axis2.transport.http.util.RESTUtil.processURLRequest(RESTUtil.java:184)
> > [axis2-transport-http-bundle-1.7.0-SNAPSHOT.jar:na]
> >     at
> >
> >
> org.apache.axis2.transport.http.AxisServlet$RestRequestProcessor.processURLRequest(AxisServlet.java:870)
> > [axis2-transport-http-bundle-1.7.0-SNAPSHOT.jar:na]
> >     at
> > org.apache.axis2.transport.http.AxisServlet.doGet(AxisServlet.java:290)
> > [axis2-transport-http-bundle-1.7.0-SNAPSHOT.jar:na]
> >     at javax.servlet.http.HttpServlet.service(HttpServlet.java:621)
> > [tomcat-embed-core-jar-7.0.34.jar:7.0.34]
> >     at javax.servlet.http.HttpServlet.service(HttpServlet.java:728)
> > [tomcat-embed-core-jar-7.0.34.jar:7.0.34]
> >     at
> >
> >
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:305)
> > [tomcat-embed-core-jar-7.0.34.jar:7.0.34]
> >     at
> >
> >
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
> > [tomcat-embed-core-jar-7.0.34.jar:7.0.34]
> >     at
> >
> org.red5.logging.LoggerContextFilter.doFilter(LoggerContextFilter.java:77)
> > [red5.jar:na]
> >     at
> >
> >
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)
> > [tomcat-embed-core-jar-7.0.34.jar:7.0.34]
> >     at
> >
> >
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
> > [tomcat-embed-core-jar-7.0.34.jar:7.0.34]
> >     at
> >
> >
> org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:222)
> > [tomcat-embed-core-jar-7.0.34.jar:7.0.34]
> >     at
> >
> >
> org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:123)
> > [tomcat-embed-core-jar-7.0.34.jar:7.0.34]
> >     at
> >
> >
> org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:472)
> > [tomcat-embed-core-jar-7.0.34.jar:7.0.34]
> >     at
> >
> >
> org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:171)
> > [tomcat-embed-core-jar-7.0.34.jar:7.0.34]
> >     at
> >
> >
> org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:99)
> > [tomcat-embed-core-jar-7.0.34.jar:7.0.34]
> >     at
> >
> >
> org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:118)
> > [tomcat-embed-core-jar-7.0.34.jar:7.0.34]
> >     at
> >
> org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:407)
> > [tomcat-embed-core-jar-7.0.34.jar:7.0.34]
> >     at
> >
> >
> org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1004)
> > [tomcat-embed-core-jar-7.0.34.jar:7.0.34]
> >     at
> >
> >
> org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:589)
> > [tomcat-embed-core-jar-7.0.34.jar:7.0.34]
> >     at
> >
> >
> org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:312)
> > [tomcat-embed-core-jar-7.0.34.jar:7.0.34]
> >     at
> >
> >
> java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
> > [na:1.6.0_26]
> >     at
> >
> >
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
> > [na:1.6.0_26]
> >     at java.lang.Thread.run(Thread.java:662) [na:1.6.0_26]
> >
> >
> > Thanks
> > Pradeep D
> >
> >
> > On Sun, Sep 8, 2013 at 7:37 AM, Maxim Solodovnik <solomax666@gmail.com
> > >wrote:
> >
> > > Could you please provide relevant part of OM log?
> > >
> > >
> > > On Sun, Sep 8, 2013 at 8:57 AM, Pradeep D <pr...@gmail.com>
> wrote:
> > >
> > > > ---------- Forwarded message ----------
> > > > From: "Pradeep D" <pr...@gmail.com>
> > > > Date: 8 Sep 2013 00:17
> > > > Subject: Error while calling RoomWebService
> > > > To: <us...@openmeetings.apache.org>, <de...@openmeetings.apache.org>
> > > > Cc:
> > > >
> > > > Hi All,
> > > >
> > > > I download the latest openmeeting 2.1.1m We are calling
> RoomWebService.
> > > >  *addRoomWithModerationAndExternalTypeAndStartEnd*
> > > >   method which is throwing the below exception,
> > > > http://localhost:5080/openmeetings/services/RoomService
> > > > Exception in thread "main"
> > > > com.sun.jersey.api.client.UniformInterfaceException: GET
> > > > http://localhost:5080/openmeetings/services/RoomService returned a
> > > > response
> > > > status of 500 Internal Server Error
> > > >     at
> > com.sun.jersey.api.client.WebResource.handle(WebResource.java:686)
> > > >     at
> com.sun.jersey.api.client.WebResource.get(WebResource.java:191)
> > > >     at
> > > >
> > > >
> > >
> >
> openmeetingtest.OpenMeetingService.addNewRoomWithModeratorLimitedTime(OpenMeetingService.java:109)
> > > >     at openmeetingtest.OpenMeetingTest.main(OpenMeetingTest.java:26)
> > > >
> > > > Below is the code for calling the REST service
> > > >
> > > > SimpleDateFormat dfDate = new SimpleDateFormat("dd.MM.yyyy");
> > > >         SimpleDateFormat dfTime = new SimpleDateFormat("mm:hh");
> > > >
> > > >         Client client = new Client();
> > > >         WebResource webResource =
> > > > client.resource(openMeetingServiceUrl+"/RoomService");
> > > >
> > > >         MultivaluedMap queryParams = new MultivaluedMapImpl();
> > > >         queryParams.add("SID",sessionResponse.getSession_id());
> > > >         queryParams.add("name","Meeting_"+meetingId);
> > > >         queryParams.add("roomtypes_id","1");
> > > >
> > queryParams.add("numberOfPartizipants",numberOfUsers.toString());
> > > >         queryParams.add("ispublic","false");
> > > >         queryParams.add("appointment","false");
> > > >         queryParams.add("isDemoRoom","false");
> > > >         queryParams.add("isModeratedRoom","true");
> > > >         queryParams.add("externalRoomType","ebox");
> > > >         queryParams.add("validFromDate",dfDate.format(new Date()));
> > > >         queryParams.add("validFromTime",dfTime.format(new Date()));
> > > >         queryParams.add("validToDate",dfDate.format(new Date()));
> > > >         queryParams.add("validToTime",dfTime.format(new Date()));
> > > >         queryParams.add("isPasswordProtected","false");
> > > >         queryParams.add("reminderTypeId","1");
> > > >         queryParams.add("redirectURL","1");
> > > >
> > > >
> > > >
> > > >
> > >
> >
> webResource.path("addRoomWithModerationAndExternalTypeAndStartEnd").queryParams(queryParams);
> > > >         System.out.println(webResource.getURI());
> > > >         String buffer =  webResource.get(String.class);
> > > >
> > > >         System.out.println("response:"+buffer);
> > > >
> > > >         ResponseHandler handler = (ResponseHandler)
> > > > SAXParserHelper.parse(buffer,ResponseHandler.class);
> > > >
> > > > Kindly help me in identifying the problem.
> > > >
> > > > Thanks
> > > > Pradeep D
> > > >
> > >
> > >
> > >
> > > --
> > > WBR
> > > Maxim aka solomax
> > >
> >
>
>
>
> --
> WBR
> Maxim aka solomax
>

Re: Error while calling RoomWebService

Posted by Maxim Solodovnik <so...@gmail.com>.
According to your logs you are querying function from RoomService which
does not exist.

could you please call
http://localhost:5080/openmeetings/services/RoomService?wsdl and check if
function name is listed (documentation on the site is for 3.0.0)


On Sun, Sep 8, 2013 at 9:24 AM, Pradeep D <pr...@gmail.com> wrote:

> Hi Maxim,
>
> Below is the error i got  in the openmeeting console,
>
> DEBUG 09-08 07:48:15.295 UserManager.java 53927 281
> org.apache.openmeetings.data.user.UserManager
> [http-bio-0.0.0.0-5080-exec-2] - loginUser size 1
> ERROR 09-08 07:48:15.505 AxisEngine.java 54137 207
> org.apache.axis2.engine.AxisEngine [http-bio-0.0.0.0-5080-exec-3] - The
> endpoint reference (EPR) for the Operation not found is
> /openmeetings/services/RoomService and the WSA Action = null. If this EPR
> was previously reachable, please contact the server administrator.
> org.apache.axis2.AxisFault: The endpoint reference (EPR) for the Operation
> not found is /openmeetings/services/RoomService and the WSA Action = null.
> If this EPR was previously reachable, please contact the server
> administrator.
>     at
>
> org.apache.axis2.engine.DispatchPhase.checkPostConditions(DispatchPhase.java:118)
> ~[axis2-jar-1.7.0-SNAPSHOT.jar:na]
>     at org.apache.axis2.engine.Phase.invoke(Phase.java:324)
> ~[axis2-jar-1.7.0-SNAPSHOT.jar:na]
>     at org.apache.axis2.engine.AxisEngine.invoke(AxisEngine.java:250)
> ~[axis2-jar-1.7.0-SNAPSHOT.jar:na]
>     at org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:156)
> ~[axis2-jar-1.7.0-SNAPSHOT.jar:na]
>     at
>
> org.apache.axis2.transport.http.util.RESTUtil.invokeAxisEngine(RESTUtil.java:242)
> [axis2-transport-http-bundle-1.7.0-SNAPSHOT.jar:na]
>     at
>
> org.apache.axis2.transport.http.util.RESTUtil.processURLRequest(RESTUtil.java:184)
> [axis2-transport-http-bundle-1.7.0-SNAPSHOT.jar:na]
>     at
>
> org.apache.axis2.transport.http.AxisServlet$RestRequestProcessor.processURLRequest(AxisServlet.java:870)
> [axis2-transport-http-bundle-1.7.0-SNAPSHOT.jar:na]
>     at
> org.apache.axis2.transport.http.AxisServlet.doGet(AxisServlet.java:290)
> [axis2-transport-http-bundle-1.7.0-SNAPSHOT.jar:na]
>     at javax.servlet.http.HttpServlet.service(HttpServlet.java:621)
> [tomcat-embed-core-jar-7.0.34.jar:7.0.34]
>     at javax.servlet.http.HttpServlet.service(HttpServlet.java:728)
> [tomcat-embed-core-jar-7.0.34.jar:7.0.34]
>     at
>
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:305)
> [tomcat-embed-core-jar-7.0.34.jar:7.0.34]
>     at
>
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
> [tomcat-embed-core-jar-7.0.34.jar:7.0.34]
>     at
> org.red5.logging.LoggerContextFilter.doFilter(LoggerContextFilter.java:77)
> [red5.jar:na]
>     at
>
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)
> [tomcat-embed-core-jar-7.0.34.jar:7.0.34]
>     at
>
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
> [tomcat-embed-core-jar-7.0.34.jar:7.0.34]
>     at
>
> org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:222)
> [tomcat-embed-core-jar-7.0.34.jar:7.0.34]
>     at
>
> org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:123)
> [tomcat-embed-core-jar-7.0.34.jar:7.0.34]
>     at
>
> org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:472)
> [tomcat-embed-core-jar-7.0.34.jar:7.0.34]
>     at
>
> org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:171)
> [tomcat-embed-core-jar-7.0.34.jar:7.0.34]
>     at
>
> org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:99)
> [tomcat-embed-core-jar-7.0.34.jar:7.0.34]
>     at
>
> org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:118)
> [tomcat-embed-core-jar-7.0.34.jar:7.0.34]
>     at
> org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:407)
> [tomcat-embed-core-jar-7.0.34.jar:7.0.34]
>     at
>
> org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1004)
> [tomcat-embed-core-jar-7.0.34.jar:7.0.34]
>     at
>
> org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:589)
> [tomcat-embed-core-jar-7.0.34.jar:7.0.34]
>     at
>
> org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:312)
> [tomcat-embed-core-jar-7.0.34.jar:7.0.34]
>     at
>
> java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
> [na:1.6.0_26]
>     at
>
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
> [na:1.6.0_26]
>     at java.lang.Thread.run(Thread.java:662) [na:1.6.0_26]
>
>
> Thanks
> Pradeep D
>
>
> On Sun, Sep 8, 2013 at 7:37 AM, Maxim Solodovnik <solomax666@gmail.com
> >wrote:
>
> > Could you please provide relevant part of OM log?
> >
> >
> > On Sun, Sep 8, 2013 at 8:57 AM, Pradeep D <pr...@gmail.com> wrote:
> >
> > > ---------- Forwarded message ----------
> > > From: "Pradeep D" <pr...@gmail.com>
> > > Date: 8 Sep 2013 00:17
> > > Subject: Error while calling RoomWebService
> > > To: <us...@openmeetings.apache.org>, <de...@openmeetings.apache.org>
> > > Cc:
> > >
> > > Hi All,
> > >
> > > I download the latest openmeeting 2.1.1m We are calling RoomWebService.
> > >  *addRoomWithModerationAndExternalTypeAndStartEnd*
> > >   method which is throwing the below exception,
> > > http://localhost:5080/openmeetings/services/RoomService
> > > Exception in thread "main"
> > > com.sun.jersey.api.client.UniformInterfaceException: GET
> > > http://localhost:5080/openmeetings/services/RoomService returned a
> > > response
> > > status of 500 Internal Server Error
> > >     at
> com.sun.jersey.api.client.WebResource.handle(WebResource.java:686)
> > >     at com.sun.jersey.api.client.WebResource.get(WebResource.java:191)
> > >     at
> > >
> > >
> >
> openmeetingtest.OpenMeetingService.addNewRoomWithModeratorLimitedTime(OpenMeetingService.java:109)
> > >     at openmeetingtest.OpenMeetingTest.main(OpenMeetingTest.java:26)
> > >
> > > Below is the code for calling the REST service
> > >
> > > SimpleDateFormat dfDate = new SimpleDateFormat("dd.MM.yyyy");
> > >         SimpleDateFormat dfTime = new SimpleDateFormat("mm:hh");
> > >
> > >         Client client = new Client();
> > >         WebResource webResource =
> > > client.resource(openMeetingServiceUrl+"/RoomService");
> > >
> > >         MultivaluedMap queryParams = new MultivaluedMapImpl();
> > >         queryParams.add("SID",sessionResponse.getSession_id());
> > >         queryParams.add("name","Meeting_"+meetingId);
> > >         queryParams.add("roomtypes_id","1");
> > >
> queryParams.add("numberOfPartizipants",numberOfUsers.toString());
> > >         queryParams.add("ispublic","false");
> > >         queryParams.add("appointment","false");
> > >         queryParams.add("isDemoRoom","false");
> > >         queryParams.add("isModeratedRoom","true");
> > >         queryParams.add("externalRoomType","ebox");
> > >         queryParams.add("validFromDate",dfDate.format(new Date()));
> > >         queryParams.add("validFromTime",dfTime.format(new Date()));
> > >         queryParams.add("validToDate",dfDate.format(new Date()));
> > >         queryParams.add("validToTime",dfTime.format(new Date()));
> > >         queryParams.add("isPasswordProtected","false");
> > >         queryParams.add("reminderTypeId","1");
> > >         queryParams.add("redirectURL","1");
> > >
> > >
> > >
> > >
> >
> webResource.path("addRoomWithModerationAndExternalTypeAndStartEnd").queryParams(queryParams);
> > >         System.out.println(webResource.getURI());
> > >         String buffer =  webResource.get(String.class);
> > >
> > >         System.out.println("response:"+buffer);
> > >
> > >         ResponseHandler handler = (ResponseHandler)
> > > SAXParserHelper.parse(buffer,ResponseHandler.class);
> > >
> > > Kindly help me in identifying the problem.
> > >
> > > Thanks
> > > Pradeep D
> > >
> >
> >
> >
> > --
> > WBR
> > Maxim aka solomax
> >
>



-- 
WBR
Maxim aka solomax

Re: Error while calling RoomWebService

Posted by Pradeep D <pr...@gmail.com>.
Hi Maxim,

Below is the error i got  in the openmeeting console,

DEBUG 09-08 07:48:15.295 UserManager.java 53927 281
org.apache.openmeetings.data.user.UserManager
[http-bio-0.0.0.0-5080-exec-2] - loginUser size 1
ERROR 09-08 07:48:15.505 AxisEngine.java 54137 207
org.apache.axis2.engine.AxisEngine [http-bio-0.0.0.0-5080-exec-3] - The
endpoint reference (EPR) for the Operation not found is
/openmeetings/services/RoomService and the WSA Action = null. If this EPR
was previously reachable, please contact the server administrator.
org.apache.axis2.AxisFault: The endpoint reference (EPR) for the Operation
not found is /openmeetings/services/RoomService and the WSA Action = null.
If this EPR was previously reachable, please contact the server
administrator.
    at
org.apache.axis2.engine.DispatchPhase.checkPostConditions(DispatchPhase.java:118)
~[axis2-jar-1.7.0-SNAPSHOT.jar:na]
    at org.apache.axis2.engine.Phase.invoke(Phase.java:324)
~[axis2-jar-1.7.0-SNAPSHOT.jar:na]
    at org.apache.axis2.engine.AxisEngine.invoke(AxisEngine.java:250)
~[axis2-jar-1.7.0-SNAPSHOT.jar:na]
    at org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:156)
~[axis2-jar-1.7.0-SNAPSHOT.jar:na]
    at
org.apache.axis2.transport.http.util.RESTUtil.invokeAxisEngine(RESTUtil.java:242)
[axis2-transport-http-bundle-1.7.0-SNAPSHOT.jar:na]
    at
org.apache.axis2.transport.http.util.RESTUtil.processURLRequest(RESTUtil.java:184)
[axis2-transport-http-bundle-1.7.0-SNAPSHOT.jar:na]
    at
org.apache.axis2.transport.http.AxisServlet$RestRequestProcessor.processURLRequest(AxisServlet.java:870)
[axis2-transport-http-bundle-1.7.0-SNAPSHOT.jar:na]
    at
org.apache.axis2.transport.http.AxisServlet.doGet(AxisServlet.java:290)
[axis2-transport-http-bundle-1.7.0-SNAPSHOT.jar:na]
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:621)
[tomcat-embed-core-jar-7.0.34.jar:7.0.34]
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:728)
[tomcat-embed-core-jar-7.0.34.jar:7.0.34]
    at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:305)
[tomcat-embed-core-jar-7.0.34.jar:7.0.34]
    at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
[tomcat-embed-core-jar-7.0.34.jar:7.0.34]
    at
org.red5.logging.LoggerContextFilter.doFilter(LoggerContextFilter.java:77)
[red5.jar:na]
    at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)
[tomcat-embed-core-jar-7.0.34.jar:7.0.34]
    at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
[tomcat-embed-core-jar-7.0.34.jar:7.0.34]
    at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:222)
[tomcat-embed-core-jar-7.0.34.jar:7.0.34]
    at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:123)
[tomcat-embed-core-jar-7.0.34.jar:7.0.34]
    at
org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:472)
[tomcat-embed-core-jar-7.0.34.jar:7.0.34]
    at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:171)
[tomcat-embed-core-jar-7.0.34.jar:7.0.34]
    at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:99)
[tomcat-embed-core-jar-7.0.34.jar:7.0.34]
    at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:118)
[tomcat-embed-core-jar-7.0.34.jar:7.0.34]
    at
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:407)
[tomcat-embed-core-jar-7.0.34.jar:7.0.34]
    at
org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1004)
[tomcat-embed-core-jar-7.0.34.jar:7.0.34]
    at
org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:589)
[tomcat-embed-core-jar-7.0.34.jar:7.0.34]
    at
org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:312)
[tomcat-embed-core-jar-7.0.34.jar:7.0.34]
    at
java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
[na:1.6.0_26]
    at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
[na:1.6.0_26]
    at java.lang.Thread.run(Thread.java:662) [na:1.6.0_26]


Thanks
Pradeep D


On Sun, Sep 8, 2013 at 7:37 AM, Maxim Solodovnik <so...@gmail.com>wrote:

> Could you please provide relevant part of OM log?
>
>
> On Sun, Sep 8, 2013 at 8:57 AM, Pradeep D <pr...@gmail.com> wrote:
>
> > ---------- Forwarded message ----------
> > From: "Pradeep D" <pr...@gmail.com>
> > Date: 8 Sep 2013 00:17
> > Subject: Error while calling RoomWebService
> > To: <us...@openmeetings.apache.org>, <de...@openmeetings.apache.org>
> > Cc:
> >
> > Hi All,
> >
> > I download the latest openmeeting 2.1.1m We are calling RoomWebService.
> >  *addRoomWithModerationAndExternalTypeAndStartEnd*
> >   method which is throwing the below exception,
> > http://localhost:5080/openmeetings/services/RoomService
> > Exception in thread "main"
> > com.sun.jersey.api.client.UniformInterfaceException: GET
> > http://localhost:5080/openmeetings/services/RoomService returned a
> > response
> > status of 500 Internal Server Error
> >     at com.sun.jersey.api.client.WebResource.handle(WebResource.java:686)
> >     at com.sun.jersey.api.client.WebResource.get(WebResource.java:191)
> >     at
> >
> >
> openmeetingtest.OpenMeetingService.addNewRoomWithModeratorLimitedTime(OpenMeetingService.java:109)
> >     at openmeetingtest.OpenMeetingTest.main(OpenMeetingTest.java:26)
> >
> > Below is the code for calling the REST service
> >
> > SimpleDateFormat dfDate = new SimpleDateFormat("dd.MM.yyyy");
> >         SimpleDateFormat dfTime = new SimpleDateFormat("mm:hh");
> >
> >         Client client = new Client();
> >         WebResource webResource =
> > client.resource(openMeetingServiceUrl+"/RoomService");
> >
> >         MultivaluedMap queryParams = new MultivaluedMapImpl();
> >         queryParams.add("SID",sessionResponse.getSession_id());
> >         queryParams.add("name","Meeting_"+meetingId);
> >         queryParams.add("roomtypes_id","1");
> >         queryParams.add("numberOfPartizipants",numberOfUsers.toString());
> >         queryParams.add("ispublic","false");
> >         queryParams.add("appointment","false");
> >         queryParams.add("isDemoRoom","false");
> >         queryParams.add("isModeratedRoom","true");
> >         queryParams.add("externalRoomType","ebox");
> >         queryParams.add("validFromDate",dfDate.format(new Date()));
> >         queryParams.add("validFromTime",dfTime.format(new Date()));
> >         queryParams.add("validToDate",dfDate.format(new Date()));
> >         queryParams.add("validToTime",dfTime.format(new Date()));
> >         queryParams.add("isPasswordProtected","false");
> >         queryParams.add("reminderTypeId","1");
> >         queryParams.add("redirectURL","1");
> >
> >
> >
> >
> webResource.path("addRoomWithModerationAndExternalTypeAndStartEnd").queryParams(queryParams);
> >         System.out.println(webResource.getURI());
> >         String buffer =  webResource.get(String.class);
> >
> >         System.out.println("response:"+buffer);
> >
> >         ResponseHandler handler = (ResponseHandler)
> > SAXParserHelper.parse(buffer,ResponseHandler.class);
> >
> > Kindly help me in identifying the problem.
> >
> > Thanks
> > Pradeep D
> >
>
>
>
> --
> WBR
> Maxim aka solomax
>

Re: Error while calling RoomWebService

Posted by Maxim Solodovnik <so...@gmail.com>.
Could you please provide relevant part of OM log?


On Sun, Sep 8, 2013 at 8:57 AM, Pradeep D <pr...@gmail.com> wrote:

> ---------- Forwarded message ----------
> From: "Pradeep D" <pr...@gmail.com>
> Date: 8 Sep 2013 00:17
> Subject: Error while calling RoomWebService
> To: <us...@openmeetings.apache.org>, <de...@openmeetings.apache.org>
> Cc:
>
> Hi All,
>
> I download the latest openmeeting 2.1.1m We are calling RoomWebService.
>  *addRoomWithModerationAndExternalTypeAndStartEnd*
>   method which is throwing the below exception,
> http://localhost:5080/openmeetings/services/RoomService
> Exception in thread "main"
> com.sun.jersey.api.client.UniformInterfaceException: GET
> http://localhost:5080/openmeetings/services/RoomService returned a
> response
> status of 500 Internal Server Error
>     at com.sun.jersey.api.client.WebResource.handle(WebResource.java:686)
>     at com.sun.jersey.api.client.WebResource.get(WebResource.java:191)
>     at
>
> openmeetingtest.OpenMeetingService.addNewRoomWithModeratorLimitedTime(OpenMeetingService.java:109)
>     at openmeetingtest.OpenMeetingTest.main(OpenMeetingTest.java:26)
>
> Below is the code for calling the REST service
>
> SimpleDateFormat dfDate = new SimpleDateFormat("dd.MM.yyyy");
>         SimpleDateFormat dfTime = new SimpleDateFormat("mm:hh");
>
>         Client client = new Client();
>         WebResource webResource =
> client.resource(openMeetingServiceUrl+"/RoomService");
>
>         MultivaluedMap queryParams = new MultivaluedMapImpl();
>         queryParams.add("SID",sessionResponse.getSession_id());
>         queryParams.add("name","Meeting_"+meetingId);
>         queryParams.add("roomtypes_id","1");
>         queryParams.add("numberOfPartizipants",numberOfUsers.toString());
>         queryParams.add("ispublic","false");
>         queryParams.add("appointment","false");
>         queryParams.add("isDemoRoom","false");
>         queryParams.add("isModeratedRoom","true");
>         queryParams.add("externalRoomType","ebox");
>         queryParams.add("validFromDate",dfDate.format(new Date()));
>         queryParams.add("validFromTime",dfTime.format(new Date()));
>         queryParams.add("validToDate",dfDate.format(new Date()));
>         queryParams.add("validToTime",dfTime.format(new Date()));
>         queryParams.add("isPasswordProtected","false");
>         queryParams.add("reminderTypeId","1");
>         queryParams.add("redirectURL","1");
>
>
>
> webResource.path("addRoomWithModerationAndExternalTypeAndStartEnd").queryParams(queryParams);
>         System.out.println(webResource.getURI());
>         String buffer =  webResource.get(String.class);
>
>         System.out.println("response:"+buffer);
>
>         ResponseHandler handler = (ResponseHandler)
> SAXParserHelper.parse(buffer,ResponseHandler.class);
>
> Kindly help me in identifying the problem.
>
> Thanks
> Pradeep D
>



-- 
WBR
Maxim aka solomax

Re: Error while calling RoomWebService

Posted by Daniela Kirsch <dk...@excelsystems.com>.
Did you check all the parms are submitted? According to the documentation http://openmeetings.apache.org/RoomService.html#addRoomWithModerationAndExternalTypeAndStartEnd 
and comparing to what I see in your code you're missing a few. 

You can also try building the URL by hand and go to it in the browser directly to see if it at least should work outside of any other program and language.

On 2013-09-07, at 6:57 PM, Pradeep D wrote:

> ---------- Forwarded message ----------
> From: "Pradeep D" <pr...@gmail.com>
> Date: 8 Sep 2013 00:17
> Subject: Error while calling RoomWebService
> To: <us...@openmeetings.apache.org>, <de...@openmeetings.apache.org>
> Cc: 
> 
> Hi All,
> 
> I download the latest openmeeting 2.1.1m We are calling RoomWebService.
> addRoomWithModerationAndExternalTypeAndStartEnd
>   method which is throwing the below exception, 
> http://localhost:5080/openmeetings/services/RoomService
> Exception in thread "main" com.sun.jersey.api.client.UniformInterfaceException: GET http://localhost:5080/openmeetings/services/RoomService returned a response status of 500 Internal Server Error
>     at com.sun.jersey.api.client.WebResource.handle(WebResource.java:686)
>     at com.sun.jersey.api.client.WebResource.get(WebResource.java:191)
>     at openmeetingtest.OpenMeetingService.addNewRoomWithModeratorLimitedTime(OpenMeetingService.java:109)
>     at openmeetingtest.OpenMeetingTest.main(OpenMeetingTest.java:26)
> 
> Below is the code for calling the REST service 
> 
> SimpleDateFormat dfDate = new SimpleDateFormat("dd.MM.yyyy");
>         SimpleDateFormat dfTime = new SimpleDateFormat("mm:hh");
>         
>         Client client = new Client();
>         WebResource webResource = client.resource(openMeetingServiceUrl+"/RoomService");
>         
>         MultivaluedMap queryParams = new MultivaluedMapImpl();
>         queryParams.add("SID",sessionResponse.getSession_id());
>         queryParams.add("name","Meeting_"+meetingId);
>         queryParams.add("roomtypes_id","1");
>         queryParams.add("numberOfPartizipants",numberOfUsers.toString());
>         queryParams.add("ispublic","false");
>         queryParams.add("appointment","false");
>         queryParams.add("isDemoRoom","false");
>         queryParams.add("isModeratedRoom","true");
>         queryParams.add("externalRoomType","ebox");
>         queryParams.add("validFromDate",dfDate.format(new Date()));
>         queryParams.add("validFromTime",dfTime.format(new Date()));
>         queryParams.add("validToDate",dfDate.format(new Date()));
>         queryParams.add("validToTime",dfTime.format(new Date()));
>         queryParams.add("isPasswordProtected","false");
>         queryParams.add("reminderTypeId","1");
>         queryParams.add("redirectURL","1");
>         
>         webResource.path("addRoomWithModerationAndExternalTypeAndStartEnd").queryParams(queryParams);
>         System.out.println(webResource.getURI());
>         String buffer =  webResource.get(String.class);
>         
>         System.out.println("response:"+buffer);
>         
>         ResponseHandler handler = (ResponseHandler) SAXParserHelper.parse(buffer,ResponseHandler.class);
> 
> Kindly help me in identifying the problem.
> 
> Thanks
> Pradeep D


Re: Error while calling RoomWebService

Posted by Maxim Solodovnik <so...@gmail.com>.
Could you please provide relevant part of OM log?


On Sun, Sep 8, 2013 at 8:57 AM, Pradeep D <pr...@gmail.com> wrote:

> ---------- Forwarded message ----------
> From: "Pradeep D" <pr...@gmail.com>
> Date: 8 Sep 2013 00:17
> Subject: Error while calling RoomWebService
> To: <us...@openmeetings.apache.org>, <de...@openmeetings.apache.org>
> Cc:
>
> Hi All,
>
> I download the latest openmeeting 2.1.1m We are calling RoomWebService.
>  *addRoomWithModerationAndExternalTypeAndStartEnd*
>   method which is throwing the below exception,
> http://localhost:5080/openmeetings/services/RoomService
> Exception in thread "main"
> com.sun.jersey.api.client.UniformInterfaceException: GET
> http://localhost:5080/openmeetings/services/RoomService returned a
> response
> status of 500 Internal Server Error
>     at com.sun.jersey.api.client.WebResource.handle(WebResource.java:686)
>     at com.sun.jersey.api.client.WebResource.get(WebResource.java:191)
>     at
>
> openmeetingtest.OpenMeetingService.addNewRoomWithModeratorLimitedTime(OpenMeetingService.java:109)
>     at openmeetingtest.OpenMeetingTest.main(OpenMeetingTest.java:26)
>
> Below is the code for calling the REST service
>
> SimpleDateFormat dfDate = new SimpleDateFormat("dd.MM.yyyy");
>         SimpleDateFormat dfTime = new SimpleDateFormat("mm:hh");
>
>         Client client = new Client();
>         WebResource webResource =
> client.resource(openMeetingServiceUrl+"/RoomService");
>
>         MultivaluedMap queryParams = new MultivaluedMapImpl();
>         queryParams.add("SID",sessionResponse.getSession_id());
>         queryParams.add("name","Meeting_"+meetingId);
>         queryParams.add("roomtypes_id","1");
>         queryParams.add("numberOfPartizipants",numberOfUsers.toString());
>         queryParams.add("ispublic","false");
>         queryParams.add("appointment","false");
>         queryParams.add("isDemoRoom","false");
>         queryParams.add("isModeratedRoom","true");
>         queryParams.add("externalRoomType","ebox");
>         queryParams.add("validFromDate",dfDate.format(new Date()));
>         queryParams.add("validFromTime",dfTime.format(new Date()));
>         queryParams.add("validToDate",dfDate.format(new Date()));
>         queryParams.add("validToTime",dfTime.format(new Date()));
>         queryParams.add("isPasswordProtected","false");
>         queryParams.add("reminderTypeId","1");
>         queryParams.add("redirectURL","1");
>
>
>
> webResource.path("addRoomWithModerationAndExternalTypeAndStartEnd").queryParams(queryParams);
>         System.out.println(webResource.getURI());
>         String buffer =  webResource.get(String.class);
>
>         System.out.println("response:"+buffer);
>
>         ResponseHandler handler = (ResponseHandler)
> SAXParserHelper.parse(buffer,ResponseHandler.class);
>
> Kindly help me in identifying the problem.
>
> Thanks
> Pradeep D
>



-- 
WBR
Maxim aka solomax