ClassCastException

Post Reply
HaMo

ClassCastException

Post by HaMo » Mon Aug 11, 2014 2:40 pm

when try to 'show data' (right mouse click - context menu in source view) caused a
ClassCastException: de.uniol.inf.is.odysseus.core.sdf.schema.SDFAttribute cannot be cast to de.uniol.inf.is.odysseus.core.planmanagement.ViewInformation

this is the script which is running:

Code: Select all

#PARSER PQL
#RUNQUERY
source := ACCESS({Source='source',
wrapper='GenericPush',
transport='opc-da',
protocol='none',
dataHandler='Tuple',
options=[
['host', 'xx.x.x.x'],
['domain', 'none'],
['username', 'administrator'],
['password', 'xxxxxxxxxxxxxxxxx'],
['progId','National Instruments.Variable Engine.1']
],
schema=[
		['\\.\PVR-WRS-1\I_DC_1', 'FLOAT']
]
})
What is the problem? Has anybody a solution?

Thanks before

-- HaMo --

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

Re: ClassCastException

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

Hmm. Strange behaviour. I found a place where there was an unchecked cast to ViewInformation but I don't think this is the error ...

The stack trace would be helpful :-).

HaMo

Re: ClassCastException

Post by HaMo » Wed Aug 20, 2014 11:59 am

Hi all,
we found, that aliasing of the OPC-tag helps:

Code: Select all

#PARSER PQL
#RUNQUERY
renamed_output := RENAME({
                 aliases = ['\\.\PVR-WRS-1\I_DC_1', 'OPC'],
                 pairs = 'true'
                }, System.output)

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

Re: ClassCastException

Post by Marco Grawunder » Wed Aug 20, 2014 7:55 pm

Ok. But the stack trace is really strange ... seems to be an error before, that leads to this error.

sofiajoe
Posts: 2
Joined: Wed Oct 29, 2014 10:19 am

Re: ClassCastException

Post by sofiajoe » Thu Oct 30, 2014 11:12 am

hey
nice post and information thanks for sharing :)

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest