SocialMiner Filters - Errors saving Groovy scripts

From DocWiki

(Difference between revisions)
Jump to: navigation, search
(SocialMiner Filters - Errors saving Groovy scripts)
m (1 revision)
 
(2 intermediate revisions not shown)
Line 1: Line 1:
-
== SocialMiner Filters - Errors saving Groovy scripts ==
+
== SocialMiner Filters - Errors saving Groovy scripts ==
{| border="1"
{| border="1"
|-
|-
-
! '''Problem Summary'''
+
! '''Problem Summary'''  
| You see errors when you import a Groovy script.
| You see errors when you import a Groovy script.
|-
|-
-
! '''Error Message'''
+
! '''Error Message'''  
-
| The User Interface will show this error: “The following fields are invalid: Script Source: Invalid input”
+
| The User Interface will show this error: “The following fields are invalid: Script Source: Invalid input”  
-
 
+
Logs may also show "Unexpected char" errors similar to this:  
Logs may also show "Unexpected char" errors similar to this:  
 +
     , Message=startup failed: Script1.groovy: 1: unexpected char: '\' @ line 1, column 2. ^
     , Message=startup failed: Script1.groovy: 1: unexpected char: '\' @ line 1, column 2. ^
 +
|-
|-
-
! '''Possible Cause'''
+
! '''Possible Cause'''  
| You did not save the file as plain text or the editor you used was not optimized to handle multi-byte characters.
| You did not save the file as plain text or the editor you used was not optimized to handle multi-byte characters.
|-
|-
-
! '''Recommended Action'''
+
! '''Recommended Action'''  
| Edit and save the file as UTF-8. Use a reliable editor such as Eclipse or Notepad++ to edit Groovy scripts. Check to make sure that the file was not saved as "rich text," which will insert special characters. Resave the file as plain text and retry the Import.
| Edit and save the file as UTF-8. Use a reliable editor such as Eclipse or Notepad++ to edit Groovy scripts. Check to make sure that the file was not saved as "rich text," which will insert special characters. Resave the file as plain text and retry the Import.
|-
|-
-
! '''Release'''
+
! '''Release'''  
-
| 9.0(x), 10.0(1)
+
| Release 9.0(x), 10.0(1), 10.5(1) 
|-
|-
-
! '''Associated CDETS #'''
+
! '''Associated CDETS #'''  
| None
| None
-
|-
 
|}
|}
-
[[Category:Cisco SocialMiner, Release 9.0(1)]]
+
 
 +
[[Category:Cisco SocialMiner]] [[Category:Cisco_SocialMiner,_Release_9.0(1)]]

Latest revision as of 19:15, 12 June 2014

SocialMiner Filters - Errors saving Groovy scripts

Problem Summary You see errors when you import a Groovy script.
Error Message The User Interface will show this error: “The following fields are invalid: Script Source: Invalid input”

Logs may also show "Unexpected char" errors similar to this:

   , Message=startup failed: Script1.groovy: 1: unexpected char: '\' @ line 1, column 2. ^
Possible Cause You did not save the file as plain text or the editor you used was not optimized to handle multi-byte characters.
Recommended Action Edit and save the file as UTF-8. Use a reliable editor such as Eclipse or Notepad++ to edit Groovy scripts. Check to make sure that the file was not saved as "rich text," which will insert special characters. Resave the file as plain text and retry the Import.
Release Release 9.0(x), 10.0(1), 10.5(1) 
Associated CDETS # None

Rating: 5.0/5 (1 vote cast)

Personal tools