taksan / skype-java-api

Skype API for Java, based on Skype4Java library
128 stars 60 forks source link

Skype.getProfile().setCountryByISOCode("ru"); #17

Closed sashok724 closed 12 years ago

sashok724 commented 12 years ago

This doesn't works. if use this method, returns a error: com.skype.CommandFailedException: SET PROFILE: invalid property value given at com.skype.Utils.checkError(Utils.java:77) at com.skype.Utils.setProperty(Utils.java:193) at com.skype.Profile.setProperty(Profile.java:906) at com.skype.Profile.setCountryByISOCode(Profile.java:484) at net.sashok724.skype.SkypeMain.run(SkypeMain.java:195) at net.sashok724.skype.SkypeMain$1.chatMessageSent(SkypeMain.java:38) at com.skype.ChatMessageConnectorListener.fireMessageSent(ChatMessageConnectorListener.java:48) at com.skype.ChatMessageConnectorListener.messageReceived(ChatMessageConnectorListener.java:26) at com.skype.connector.Connector.fireMessageEvent(Connector.java:1119) at com.skype.connector.Connector.access$5(Connector.java:1114) at com.skype.connector.Connector$13.run(Connector.java:1098) at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source) at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) at java.lang.Thread.run(Unknown Source)

sashok724 commented 12 years ago

I found a few more bugs: setCountry() - com.skype.CommandFailedException: SET PROFILE: invalid property value given at com.skype.Utils.checkError(Utils.java:77) at com.skype.Utils.setProperty(Utils.java:193) at com.skype.Profile.setProperty(Profile.java:906) at com.skype.Profile.setCountry(Profile.java:505) at net.sashok724.skype.SkypeMain.run(SkypeMain.java:190) at net.sashok724.skype.SkypeMain$1.chatMessageSent(SkypeMain.java:38) at com.skype.ChatMessageConnectorListener.fireMessageSent(ChatMessageConnectorListener.java:48) at com.skype.ChatMessageConnectorListener.messageReceived(ChatMessageConnectorListener.java:26) at com.skype.connector.Connector.fireMessageEvent(Connector.java:1119) at com.skype.connector.Connector.access$5(Connector.java:1114) at com.skype.connector.Connector$13.run(Connector.java:1098) at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source) at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) at java.lang.Thread.run(Unknown Source) setBirdthDay - com.skype.CommandFailedException: SET PROFILE: invalid property value given at com.skype.Utils.checkError(Utils.java:77) at com.skype.Utils.setProperty(Utils.java:193) at com.skype.Profile.setProperty(Profile.java:906) at com.skype.Profile.setBirthDay(Profile.java:369) at net.sashok724.skype.SkypeMain.run(SkypeMain.java:188) at net.sashok724.skype.SkypeMain$1.chatMessageSent(SkypeMain.java:38) at com.skype.ChatMessageConnectorListener.fireMessageSent(ChatMessageConnectorListener.java:48) at com.skype.ChatMessageConnectorListener.messageReceived(ChatMessageConnectorListener.java:26) at com.skype.connector.Connector.fireMessageEvent(Connector.java:1119) at com.skype.connector.Connector.access$5(Connector.java:1114) at com.skype.connector.Connector$13.run(Connector.java:1098) at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source) at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) at java.lang.Thread.run(Unknown Source)

taksan commented 12 years ago

Hello

Did you run it against windows, mac or linux skype version?

The problems you are reporting seem to be unsupported protocol api features. For example, the linux skype version has a lot of limitations compared to the windows version.

taksan commented 12 years ago

Hello

Did you run it against windows, mac or linux skype version?

The problems you are reporting seem to be unsupported protocol api features. For example, the linux skype version has a lot of limitations compared to the windows version.

taksan commented 12 years ago

Sorry. I just checked the setCountryByIsoCode. It had a bug unde linux, at least. I haven't changed setCountry yet, because I think it is not possible to set the way it is implemented.

I could't check whether the new setCountryByIsoCode works under windows (I have no windows available right now). If you could, please, check whether it is working as expected for you and report me back.

Thanks

sashok724 commented 12 years ago

I use Windows 7