skype-java-api icon indicating copy to clipboard operation
skype-java-api copied to clipboard

.send() appears to repeat infinitely

Open AJCStriker opened this issue 13 years ago • 5 comments

There doesn't seem to be anywhere for help requests on this project so i will post it here.

I have built a test program however it simply loops, forever repeating the send message command. The code does not progress further forward. On debugging, it appears line 861 of Connector.java repeats infinitely. I also noticed it was using more memory than normal during this period.

Any help is appreciated.

EDIT Further testing shows that after two cycles both the send and manual API command throw the following errors:

com.skype.connector.NotAttachedException at com.skype.connector.Connector.execute(Connector.java:871) at com.skype.connector.Connector.execute(Connector.java:827) at com.skype.connector.Connector.executeWithId(Connector.java:677) at net.countercraft.skype_bot.App.main(App.java:45) Caused by: com.skype.connector.NotAttachedException at com.skype.connector.Connector$11.call(Connector.java:935) at com.skype.connector.Connector$11.call(Connector.java:907) at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303) at java.util.concurrent.FutureTask.run(FutureTask.java:138) at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) at java.lang.Thread.run(Thread.java:680)

AJCStriker avatar Jan 18 '12 23:01 AJCStriker

I will investigate the problem. Thanks for reporting.

taksan avatar Jan 20 '12 12:01 taksan

Ok so what I have found in debug mode is that no response is received for a message, however I can see it has been sent and received.

Maybe an api glitch means certain commands have no return. From there the program executes its default try again then crash system.

Hope this helps.

AJCStriker avatar Jan 20 '12 23:01 AJCStriker

I'm also on Mac OS X Lion.

Any progress on this?

AJCStriker avatar Jan 23 '12 22:01 AJCStriker

I noticed that the api is much less stable in mac than any other platform. It seems to be a specific problem with the native implementation. I'm investigating this issue and others related to Mac OS.

taksan avatar Feb 08 '12 04:02 taksan

The problem you describe seems much like a problem I fixed in version 1.3. I also fixed other bugs and I'll release a new version this week with all these fixes.

taksan avatar Jul 01 '12 15:07 taksan