2018 up to now | 2017 | 2016 | 2015 | 2014 | 2013 | 2012

Mailing List - Entries of 2012


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[QF-Test] Strange "cannot be cast to" script failure


  • Subject: [QF-Test] Strange "cannot be cast to" script failure
  • From: "Gordeyev, Konstantin" <kgordeev@?.ru>
  • Date: Wed, 29 Aug 2012 13:28:32 +0000

Hello QFT team,

 

I’ve got very strange script failure:

-------------------------------------------------------------------------------------

The script failed with the following message:

java.lang.String cannot be cast to [Ljava.lang.Object;

at Script(run:9)

-------------------------------------------------------------------------------------

 

It happens every time when I have string of code like this:

str = ‘str1’ + ‘str2’

 

What is interesting – it always appears on the one application client but never on another one (I use 2 now).

Why is it so?

 

The difference between the applications is:

-          the first is run with javaws + link to jnlp file from web;

-          the second is run with a bat file containing this:

SET PATH=%JAVA_HOME%/bin;%PATH%

start javaw -jar lib/arcxml.jar %*

 

Also the result of the operation (str ==~ pattern) is true for the first application (jnlp from web) and always false for the second one (even if it’s really true).

 

Could you please help me with it? It really stops my work now.

 

 

P.S. I’m using QFT QF-Test version 3.4.4 (build 4384) and Java version: 1.6.0_34

 

 

_______________________

BR, Konstantin Gordeev