How do I attach to Skype using Skype4Java? - skype

I am getting the following exception when trying to run the MakeCall example code:
com.skype.NotAttachedException
at com.skype.Utils.convertToSkypeException(Utils.java:36)
at com.skype.Skype.setDebug(Skype.java:116)
at com.skype.sample.MakeCall.main(MakeCall.java:26)
Caused by: com.skype.connector.NotAttachedException
at com.skype.connector.Connector.assureAttached(Connector.java:580)
at com.skype.connector.Connector.addConnectorListener(Connector.java:604)
at com.skype.connector.Connector.addConnectorListener(Connector.java:591)
at com.skype.connector.Connector.setDebug(Connector.java:209)
at com.skype.Skype.setDebug(Skype.java:114)
... 1 more
Now, I have not provided any sort of API credentials, so I kind of expect it to fail. My question then, is how do I provide whatever credentials necessary to attach my connector? The documentation on Skype4Java seems pretty slim.
After not getting any tips here, I have cross-posted this question on the Skype community forum as well.

Had same thing, went on Skype->Options->Advance->Manage Other Programs access to Skype...selected
Java.exe from the list and set option to allow. Working perfect now.

If you have the dbus dependency installed, then make sure to start skype on the command line with the "--use-system-dbus".
https://developer.skype.com/Docs/ApiDoc/src#Linux
Once skype is running and you then start the java program, you'll be prompted to allow your java program to access skype.

Related

Artifactory Users Management not loading

I'm trying to open the Artifactory Users Management page, following the Admin->Security->Users tab.
Then I'm getting the following error:
Any idea of what might be causing it? Also, which log I can check this? Couldn't find anything yet.
The server error generally indicates there is problem fetching the user details from Artifactory. This can happen due to any of the following reasons:
when you have a high volume of users and the request is timing out.
There is a chance that you might have created a username with a
special character which is not allowed (using the REST method or some
other method)
There is an issue with the backend database
And the best place to troubleshoot is to first check the request log a good valid entry looks like below:
20200715164402|104|REQUEST|165.225.104.49|admin|GET|/ui/users|HTTP/1.1|200|0
Next check the artifactory.log file for java stack or check catalina.out under tomcat/logs directory.

Could not create internal topics - Stream-thread exception

I am trying to execute a simple Wordcount stream application but I face the error "Could not create internal topics - Stream-thread exception"
I have seen a similar thread but that seems to be more of a network issue.
Here is no security enabled on the kafka broker.
Only one broker is configured and still this issue.
Can someone let me know how to fix this?
Clean your temporary kafka queues.
Run --list command on kafka to see all the queues starting with your names and ending with -changelog & -repartition and manually run delete on them.
This one worked for me.
Also, check your settings on delete.topic.enable for actual deletion happening. It was not the default setting until 1.0.0 - see https://issues.apache.org/jira/browse/KAFKA-5384
i have connected to kafka using kafka tool and delete them manually

Alfresco share ClientAbortException

Sometimes when we open folder, Alfresco shows spinning wheel and never opens the folder. The log has below exception.
2016-03-08 11:45:40,652 INFO [webscripts.connector.RemoteClient] [http-bio-8080-exec-494] Exception calling (GET) http://localhost:8080/alfresco/s/slingshot/doclib/treenode/site/test/documentLibrary/Books/science?children=true&max=-1&alf_ticket=TICKET_400a73c20348346eed011695af270f837f27a654
2016-03-08 11:45:40,652 INFO [webscripts.connector.RemoteClient] [http-bio-8080-exec-494] Error status 500 null
ClientAbortException: java.net.SocketException: Connection reset
at org.apache.catalina.connector.OutputBuffer.realWriteBytes(OutputBuffer.java:413)
If I curl the above URL or open directly in webrowser I am able to get the json response successfully.
I am using only Alfresco Share and not anyother client. The localhost:8080 is working perfectly fine in most of the cases except this one.
Can anyone please tell me what is the issue and why connection is closed or ClientAbortException exception is occurring?
Mostly this is an issue of timeout and you'll need active monitoring on your Alfresco & Share environment to see how Alfresco is running.
Easy check is to install some java monitoring or use Jmeter to load test the system and see how it responds on different load.
Mostly the outcome is more CPU/RAM for Alfresco :).
As Tahir Malik mentioned above, the issue is related to performance.
The ClientAbort error itself occurs when the client (in this case, Share) times out or the user cancels a download. The message on the log is type INFO. More details here: https://issues.alfresco.com/jira/browse/ALF-20349
If you are on SSO and using Alfresco Enterprise 5.2.3 or 5.2.4, there is a chance that you may hit a similar bug, which is discussed in the Alfresco Forum. However, this particular bug would not show the ClientAbortException.

"Use of closed network connection."

Our web service developer is getting a "DeliveryPoint=Unknown Failed: error on connection with 17.172.233.147:2195: Use of closed network connection. Will retry in 20s" on my Push Notification Service using Uniqush. I cannot seem to detect which is the problem. Is this a problem with the pem/p12 files or the server cannot reach the Apple gateway? I am not very experienced in push notifications. What could be the common problems if the problem is the pem/p12 files? He is saying that it's the pem/p12 files causing the error. I suspect it is the server where the push notification service is being ran. I tested my pem/p12 files on Pushbots, a popular push notification service and I can receive push notifications with it. So it is a strong guess that the problem is on the push noticication server side.
I also cannot use the tag "Uniqush" here on stackoverflow, it doesn't seem popular. I hope I get help here.
I see this is a bit old, but i just had that very same problem.
First, you need to check your certificate and key to be sure to have them both in .pem format, and remove the key password/encription before using them with uniqush.
For detailed instructions go to this blog post and do steps 4 and 5 only http://blog.boxedice.com/2010/06/05/how-to-renew-your-apple-push-notification-push-ssl-certificate/
(steps 1-3 are for renewing your certificate, step 6 is for merging certificate and key which isn't needed for uniqush)
If you've already done this, maybe the problem aren't the certificates, but a problem in the setup of uniqush.
If this is happening only in Ad-hoc/production environment, after checking that you are using the correct certificates (Ad-hoc/production uses different APNS certs than development), be sure not to include the -sandbox=true when adding the PSP (Push Service Provider) to uniqush.
If the problem persists, maybe yours is the one in this issue https://github.com/uniqush/uniqush-push/issues/47 (my case), so you should try the following:
Download the latest version of uniqush (1.5.2a5 right now) from http://uniqush.org/downloads/uniqush-push_1.5.2a5_x86_64.tar.gz
Extract the downloaded file with command tar zxvf <downloaded_file>
Kill uniqush-push process, either using kill -9 <PID> or killall uniqush-push (you will probably need sudo for both)
Copy/move uniqush-push from extracted folder to /usr/bin/uniqush-push (assuming you have it installed here in the first place)
Run uniqush again with uniqush-push & or with a script or something (if you have one already)
Maybe you'll have to re-register the devices that weren't receiving push notifications.
This worked for me, so i hope it helps you.

Process scheduler runtime parameter

Can anyone recommend a fairly clean method for determining the process scheduler an app-engine is running on at run-time (NT or UNIX). I need to set a file path that is obviously dependent upon the server the process is being executed on. I understand the GetEnv command can be used, but I don't want to set an environment variable for this particular instance (it does not reside under the PS_FILES) path. I've searched peoplebooks for any kind of built in function or system variable, but was not successful (obviously).
Any suggestions would be appreciated.
Thanks
Okay, I may have asked this question a little too early. I apologize.
It looks like I'll just be able to query the process request table to pull back the server name:
SQLExec("SELECT SERVERNAMERUN FROM PSPRCSRQST WHERE PRCSINSTANCE = :1", &thisProcess, &server);
Evaluate &server
When.......
End-Evaluate;
Exactly :-)
There are a host of Process Request records that can give you the information you need. Glad that you found it.
John

Resources