Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create web socker API in 2.6 - problem with code example #8961

Open
lpastor74 opened this issue Feb 9, 2020 · 0 comments
Open

Create web socker API in 2.6 - problem with code example #8961

lpastor74 opened this issue Feb 9, 2020 · 0 comments

Comments

@lpastor74
Copy link

Description:

On following documentation
https://docs.wso2.com/display/AM260/Create+a+WebSocket+API
there is a problem with Netty-based WebSocket client that is downloadable in step 11.

In code, in following WebSocketClient.java file on line 93 Keystore location is hardcoded.
String carbonKeyStoreLocation = "/home/isuru/wso2/support/NMDPSUB-9/wso2am-2.1.0/repository/resources"
+ "/security/wso2carbon.jks";

Documentation not covering that you need to change the path which leads to error when you trying to build it and run it

Exception in thread "main" java.io.FileNotFoundException: /home/isuru/wso2/support/NMDPSUB-9/wso2am-2.1.0/repository/resources/security/wso2carbon.jks (No such file or directory)
at java.io.FileInputStream.open0(Native Method)

Steps to reproduce:

Content Positioning in Documentation:

https://docs.wso2.com/display/AM260/Create+a+WebSocket+API


We need to change documentation or change the code to refer to the key store location differently.

NOTE:

I test the same topic for version 3.0 mention on https://apim.docs.wso2.com/en/latest/Learn/Tutorials/create-and-publish-websocket-api/
in step 4
npm install -g wscat

Installation and Invoke have worked without any errors.

@Krishanx92 Krishanx92 transferred this issue from wso2/product-apim Dec 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants