In SAS® Visual Text Analytics, when you import a JSON file, the following errors might be displayed:
502: Bad Gateway
The Requested Resource not found.
The text-gateway log contains the following error:
ERROR 20217 --- [-auto-2-exec-15] com.sas.commons.rest.ExceptionLog: angjon [13d1a20961f69705]
org.springframework.web.client.HttpServerErrorException: 500
The problem occurs when both of these conditions are true:
- You import a JSON file that was created by SAS Contextual Analysis.
- The JSON file has a large number of categories and/or concepts.
To work around the problem, increase the Java heap-size settings for Category and/or Concept taxonomies. You can specify the heap sizes for each Category/Concept Taxonomy service from SAS® Environment Manager in SAS® Model Studio. Follow these steps:
1. Log on to Model Studio as an administrator.
2. In Model Studio select Show applications menu at the top left.
3. Under "Administration" select Manage Environment.
4. In Environment Manager, in the left menu, under "System", select Configuration.
5. In Configuration, select View ► All services.
6. Select the relevant service (Category Taxonomy and/or Concept Taxonomy) from the list. OPTIONAL: You can repeat with the other service for a project has a large category taxonomy AND concept taxonomy.
7. Click New Configuration at the top right.
8. In the "Select Definition" dialog box, select jvm.
9. In the "New jvm Configuration" dialog box, click Add Property.
10. In the "Add Property" dialog box, enter the following for Name and Value.
Name: java_option_xms
Value: -Xms1g
Click Save.
11. Click Add Property. Enter the following for Name and Value.
Name: java_option_xmx
Value: -Xmx2g
Click Save.
12. In the "New jvm Configuration" dialog box, click Save.
13. Restart the service(s) for which you added jvm properties so that these changes take effect.
14. When you finish importing the large project, the heap-size settings should be returned to their previous values.
Operating System and Release Information
| SAS System | SAS Visual Text Analytics | Linux for x64 | 8.2 | | Viya | |
*
For software releases that are not yet generally available, the Fixed
Release is the software release in which the problem is planned to be
fixed.