sequence of parameters critical?

Post Reply
HaMo

sequence of parameters critical?

Post by HaMo » Mon Aug 11, 2014 1:26 pm

Is the sequence of parameters critical?

When using the following script:

CREATE STREAM source (value Double)
WRAPPER 'GenericPush'
TRANSPORT 'OPC-DA'
PROTOCOL 'None'
DATAHANDLER 'Tuple'
OPTIONS ( 'host' 'example.com', 'domain' 'Domain', 'username' 'admin', 'password' '12345')

parser causes:
de.uniol.inf.is.odysseus.core.server.planmanagement.QueryParseException: Encountered " "TRANSPORT" "TRANSPORT "" at line 3, column 1.
Was expecting:
"PROTOCOL" ...

The script, with interchanged parameters will run:

CREATE STREAM source (value Double)
WRAPPER 'GenericPush'
PROTOCOL 'None'
TRANSPORT 'OPC-DA'
DATAHANDLER 'Tuple'
OPTIONS ( 'host' 'example.com', 'domain' 'Domain', 'username' 'admin', 'password' '12345')

Do we always have to be aware of the correct - or is there a fixed sequence, or is it a bug of the parser?
Last edited by HaMo on Fri Aug 22, 2014 9:51 am, edited 1 time in total.

User avatar
Marco Grawunder
Posts: 272
Joined: Tue Jul 29, 2014 10:29 am
Location: Oldenburg, Germany
Contact:

Re: sequence of parameters critical?

Post by Marco Grawunder » Tue Aug 12, 2014 9:38 am

To simplify the parser order is important in this case.

HaMo

Re: sequence of parameters critical?

Post by HaMo » Wed Aug 20, 2014 12:05 pm

Dear Mr. Grawunder,
thanks for help.

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest