Bug 1316902 - Error : no viable alternative at character '\' after copy-pasting script to Script field in Properties view
Summary: Error : no viable alternative at character '\' after copy-pasting script to S...
Keywords:
Status: CLOSED EOL
Alias: None
Product: JBoss BPMS Platform 6
Classification: Retired
Component: jBPM Designer
Version: 6.3.0
Hardware: Unspecified
OS: Unspecified
medium
low
Target Milestone: ---
: ---
Assignee: Tihomir Surdilovic
QA Contact: Kirill Gaevskii
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2016-03-11 12:35 UTC by Tibor Zimanyi
Modified: 2020-03-27 19:09 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2020-03-27 19:09:57 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Tibor Zimanyi 2016-03-11 12:35:31 UTC
Description of problem:

When copy-pasting script task Script property, which contains new lines, from other script task's Script property, error message 

"ERROR [stderr] (EJB default - 9) line 1:69 no viable alternative at character '\'" 

can be seen in server.log. 


Version-Release number of selected component (if applicable): 6.3.0.DR2


Steps to Reproduce:

1. Create new process with script task: 

com.llnw.bpm.UpdateObject _update = new com.llnw.bpm.UpdateObject();

_update.setMessage("This is the message");

(also with empty lines)

2. Copy Script property of script task directly (without opening the expression editor) from Properties view into clipboard. 
3. Clear Script property. 
4. Paste copied content into Script property in expression editor. 
5. Save process.
6. See server.log.

Actual results:

Server log contains errors:
13:31:57,706 ERROR [stderr] (EJB default - 10) line 1:69 no viable alternative at character '\'
13:31:57,707 ERROR [stderr] (EJB default - 10) line 1:71 no viable alternative at character '\'

Expected results:

Server log contains no errors.


Note You need to log in before you can comment on or make changes to this bug.