Forum
Discuss the development using our network APIs with other users. This is your opportunity to exchange tips and advice and to share ideas.

createConference fails on mock and sandbox environment.

Author Message
Amresh Deshpande
Topic creator
registered since: 06.12.2011
Posts: 7
Hi ,

when i call

// Creates the conference object within the Conference Call Server
createConferenceResponse = client.createConference("conid1", "speak", "demo", null,
null, maximumDuration, joinConfirm, null, null);

I am getting below error:
12-06 18:09:10.194: INFO/System.out(3168): An exception occured while running the sample.
12-06 18:09:10.194: WARN/System.err(3168): java.lang.RuntimeException: java.net.SocketException: Permission denied
12-06 18:09:10.194: WARN/System.err(3168): at com.telekom.api.common.internal.service.STSService.getToken(STSService.java:79)
12-06 18:09:10.204: WARN/System.err(3168): at com.telekom.api.common.client.DefaultSecurityTokenGetter.getToken(DefaultSecurityTokenGetter.java:61)
12-06 18:09:10.204: WARN/System.err(3168): at com.telekom.api.conferencecall.client.ConferenceCallClient.createConference(ConferenceCallClient.java:125)
ReplyProfile
Author Message
Amresh Deshpande
Topic creator
registered since: 06.12.2011
Posts: 7
hi,

My permission issue got resolved.Internet permissions were missing in my application.
But now i am getting below error.

12-07 11:22:28.785: WARN/System.err(546): java.lang.RuntimeException: java.lang.RuntimeException: java.security.GeneralSecurityException: Unauthorized
12-07 11:22:28.795: WARN/System.err(546): at com.telekom.api.common.internal.service.STSService.getToken(STSService.java:79)
12-07 11:22:28.805: WARN/System.err(546): at com.telekom.api.common.client.DefaultSecurityTokenGetter.getToken(DefaultSecurityTokenGetter.java:61)
12-07 11:22:28.805: WARN/System.err(546): at com.telekom.api.conferencecall.client.ConferenceCallClient.createConference(ConferenceCallClient.java:125)


when i call create
ConferenceCallClient client = new ConferenceCallClient(username, password, "mock");

token attribute in client is null.
so when i call createConference on above client i am getting above error.
How to set that token.
ReplyProfile
Author Message
Tobias Hahn
registered since: 15.08.2011
Posts: 25
Hey Amresh,

when creating the conferenceCallclient the first parameter has to be the environment you want to use the service in.
So please try:

ConferenceCallClient client = new ConferenceCallClient("mock" ,username, password);

regards

Tobias
ReplyProfile
Author Message
Amresh Deshpande
Topic creator
registered since: 06.12.2011
Posts: 7
Hi Tobias,

I tried changing the sequence as you mentioned,

ConferenceCallClient client = new ConferenceCallClient("mock",username, password);

but i am getting same Unauthorized error as before.

Username(email) and password is same which i use to login to developer garden.

Regards,
Amresh.
ReplyProfile
Author Message
Tobias Hahn
registered since: 15.08.2011
Posts: 25
Oh now I see.

To activate the use of the Services you have to create an Account at the Developer Cennter. There you can also book the API's you want to use (click on "API" -> activate) .
Then try it again with the username and password of the DeveloperCenter.

Now it should work. = )

Regards
Tobias
ReplyProfile
Author Message
Amresh Deshpande
Topic creator
registered since: 06.12.2011
Posts: 7
Hi Tobias ,

Thanks for your reply.

I dont find any link or menu to create an account at DeveloperCenter.
I am using same link ,which you mentioned in your post.
Can you give me link to page/form for account creation at developer center.

Regards,
Amresh.

ReplyProfile
Author Message
Uwe Kaminski
registered since: 18.05.2011
Posts: 12
Hi Amresh,

please have a look to the attached picture.

Does your form look different?

best regards Uwe
ReplyProfile
Author Message
Tobias Hahn
registered since: 15.08.2011
Posts: 25
Hey Amresh,

another update. I gave you a false information.
The Call of the client works as you mentioned it first.

ConferenceCallClient client = new ConferenceCallClient(developerCenterUsername, developerCenterPassword, "mock");

I looked it up at the docu again and found my failure.

I'm sorry about that.

Regards
Tobias
ReplyProfile
Author Message
Amresh Deshpande
Topic creator
registered since: 06.12.2011
Posts: 7
Hi Tobias ,

The link you mentioned is not opening properly .I have attached image how it looks for me.I tried both in IE8 and Mozila fire fox.

Regards,
Amresh.




Attachment

developer_center_site.png (File type: image/x-png, Size: 33.69 kilobytes) — 203 downloads
ReplyProfile
Author Message
Uwe Kaminski
registered since: 18.05.2011
Posts: 12
Hi Amresh,

unfortunately we are not able to open the immage you attached. Pleas send us the Screenshot using an e-mail application. Please send it to: info@remove-this.developergarden[dot]com

kind regards, Uwe
ReplyProfile