When I run the run.sh and it asks for config settings
it fails at step 5 and restarts. Here is the out put
from the command line. I also attched it as log.txt.
bil@new-toy:~/downloads/apps/tivonage-0.21> ./run.sh
> log.txt
org.mozilla.javascript.EvaluatorException: Invalid
JavaScript value of type [Ljava.lang.Object;
(httpunit; line 85)
at
org.mozilla.javascript.DefaultErrorReporter.runtimeError(DefaultErrorReporter.java:76)
at
org.mozilla.javascript.Context.reportRuntimeError(Context.java:591)
at
org.mozilla.javascript.Context.reportRuntimeError(Context.java:630)
at
org.mozilla.javascript.Context.reportRuntimeError1
(Context.java:606)
at
org.mozilla.javascript.ScriptRuntime.errorWithClassName(ScriptRuntime.java:2058)
at
org.mozilla.javascript.ScriptRuntime.toBoolean(ScriptRuntime.java:119)
at
org.mozilla.javascript.gen.c25.call(httpunit:85)
at
org.mozilla.javascript.ScriptRuntime.call(ScriptRuntime.java:1191)
at
org.mozilla.javascript.gen.c14.call(httpunit:23)
at
org.mozilla.javascript.BaseFunction.construct(BaseFunction.java:217)
at
org.mozilla.javascript.ScriptRuntime.newObject(ScriptRuntime.java:1265)
at
org.mozilla.javascript.gen.c40.call(httpunit:50)
at
org.mozilla.javascript.gen.c40.exec(httpunit)
at
org.mozilla.javascript.Context.evaluateReader(Context.java:820)
at
org.mozilla.javascript.Context.evaluateString(Context.java:784)
at
com.meterware.httpunit.javascript.JavaScript$JavaScriptEngine.executeScript(JavaScript.java:132)
at
com.meterware.httpunit.scripting.ScriptableDelegate.runScript(ScriptableDelegate.java:65)
at
com.meterware.httpunit.parsing.ScriptFilter.getTranslatedScript(ScriptFilter.java:151)
at
com.meterware.httpunit.parsing.ScriptFilter.endElement(ScriptFilter.java:131)
at
org.cyberneko.html.filters.DefaultFilter.endElement(Unknown
Source)
at
org.cyberneko.html.filters.NamespaceBinder.endElement(Unknown
Source)
at
org.cyberneko.html.HTMLTagBalancer.callEndElement(Unknown
Source)
at
org.cyberneko.html.HTMLTagBalancer.endElement(Unknown
Source)
at
org.cyberneko.html.HTMLScanner$SpecialScanner.scan(Unknown
Source)
at
org.cyberneko.html.HTMLScanner.scanDocument(Unknown
Source)
at
org.cyberneko.html.HTMLConfiguration.parse(Unknown
Source)
at
org.cyberneko.html.HTMLConfiguration.parse(Unknown
Source)
at
org.apache.xerces.parsers.XMLParser.parse(Unknown
Source)
at
org.apache.xerces.parsers.DOMParser.parse(Unknown
Source)
at
com.meterware.httpunit.parsing.NekoHTMLParser.parse(NekoHTMLParser.java:41)
at
com.meterware.httpunit.HTMLPage.parse(HTMLPage.java:255)
at
com.meterware.httpunit.WebResponse.getReceivedPage(WebResponse.java:1126)
at
com.meterware.httpunit.WebResponse$Scriptable.load(WebResponse.java:688)
at
com.meterware.httpunit.javascript.JavaScript.load(JavaScript.java:89)
at
com.meterware.httpunit.javascript.JavaScriptEngineFactory.load(JavaScriptEngineFactory.java:58)
at
com.meterware.httpunit.RequestContext.runScripts(RequestContext.java:44)
at
com.meterware.httpunit.WebWindow.getResponse(WebWindow.java:122)
at
com.meterware.httpunit.WebWindow.getResponse(WebWindow.java:102)
at
com.meterware.httpunit.WebClient.getResponse(WebClient.java:87)
at
com.mutchek.vonaje.VonageAccount.getVonageSession(VonageAccount.java:148)
at
com.mutchek.vonaje.VonagePhoneNumber.getMessageList(VonagePhoneNumber.java:221)
at
tivonage.Config.showWizard(Config.java:192)
at
tivonage.TiVonage.loadConfig(TiVonage.java:105)
at
tivonage.TiVonage.<clinit>(TiVonage.java:35)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:164)
at
com.tivo.hme.sdk.Factory.setClassName(Factory.java:193)
at
com.tivo.hme.sdk.Factory.createFactory(Factory.java:405)
at
com.tivo.hme.sdk.Factory.startFactory(Factory.java:448)
at
com.tivo.hme.sdk.Factory.startFactory(Factory.java:478)
at
com.tivo.hme.sdk.Factory.main(Factory.java:577)
Unable to retrieve information from Vonage.
Stack trace follows:
com.meterware.httpunit.ScriptException:
Script 'function URLEncode(baseURL)
{
// The Javascript escape and unescape
functions do not correspond
// with what browsers actually do...
var SAFECHARS = "0123456789"
+ // Numeric
"ABCDEFGHIJKLMNOPQRSTUVWXYZ"
+ // Alphabetic
"abcdefghijklmnopqrstuvwxyz"
+
"-_.!~*'()"; //
RFC2396 Mark characters
var HEX = "0123456789ABCDEF";
var plaintext = baseURL;
var encoded = "";
for (var i = 0; i < plaintext.length; i++ ) {
var ch = plaintext.charAt(i);
if (ch == " ") {
encoded
+= "+"; //
x-www-urlencoded, rather than %20
} else if
(SAFECHARS.indexOf(ch) != -1) {
encoded += ch;
} else {
var charCode = ch.charCodeAt(0);
if (charCode > 255) {
alert( "Unicode
Character '"
+ ch
+ "' cannot be encoded using
standard URL encoding.\n" +
"(URL
encoding only supports 8-bit characters.)\n" +
"A
space (+) will be substituted." );
encoded += "+";
} else {
encoded += "%";
encoded +=
HEX.charAt((charCode >> 4) & 0xF);
encoded +=
HEX.charAt(charCode & 0xF);
}
}
} // for
return encoded;
}
function flashHref(baseURL) {
return URLEncode(baseURL);
}
/* BEGIN VONAGE USA CODE BLOCK
**************************************************/
var domain_secure = "https://www.vonage.com/";
var domain = "http://www.vonage.com/";
var parentLoc = domain_secure
+ "identity/vonage/flash/";
var childLoc = domain_secure + "media/flash/";
var myTime = new Date();
var so = new SWFObject( parentLoc
+ "index_features.swf", "index_features", "265", "245", "6", "#FFFFFF");
so.addParam("wmode", "opaque");
so.addVariable( "Feat01", flashHref(domain
+ "features.php?feature=softphone") );
so.addVariable( "Feat02", flashHref(domain
+ "features.php?feature=toll_free") );
so.addVariable( "Feat03", flashHref(domain
+ "features.php?feature=voicemail") );
so.addVariable( "Feat04", flashHref(domain
+ "features.php?feature=caller_id") );
so.addVariable( "Feat05", flashHref(domain
+ "features.php?feature=virtual_phone_number") );
so.addVariable( "Feat06", flashHref(domain
+ "features.php?feature=411") );
so.addVariable( "Feat07", flashHref(domain
+ "intrates.php") );
so.addVariable( "moviePlay0", flashHref(childLoc
+ "index_features_0.swf") );
so.addVariable( "moviePlay1", flashHref(childLoc
+ "index_features_1.swf") );
so.addVariable( "moviePlay2", flashHref(childLoc
+ "index_features_2.swf") );
so.addVariable( "moviePlay3", flashHref(childLoc
+ "index_features_3.swf") );
so.addVariable( "moviePlay4", flashHref(childLoc
+ "index_features_4.swf") );
so.addVariable( "moviePlay5", flashHref(childLoc
+ "index_features_5.swf") );
so.addVariable( "moviePlay6", flashHref(childLoc
+ "index_features_6.swf") );
so.addVariable( "myTarget", "_blank" );
so.addVariable( "cacheKill",
myTime.getMilliseconds() );
/* END VONAGE USA CODE BLOCK
**************************************************/
/* WRITE FLASH OJBECT TO PAGE
**************************************************/
so.write( "index_features" );
//' failed:
org.mozilla.javascript.EvaluatorException: Invalid
JavaScript value of type [Ljava.lang.Object;
(httpunit; line 85)
at
com.meterware.httpunit.javascript.JavaScript$JavaScriptEngine.handleScriptException(JavaScript.java:202)
at
com.meterware.httpunit.javascript.JavaScript$JavaScriptEngine.executeScript(JavaScript.java:136)
at
com.meterware.httpunit.scripting.ScriptableDelegate.runScript(ScriptableDelegate.java:65)
at
com.meterware.httpunit.parsing.ScriptFilter.getTranslatedScript(ScriptFilter.java:151)
at
com.meterware.httpunit.parsing.ScriptFilter.endElement(ScriptFilter.java:131)
at
org.cyberneko.html.filters.DefaultFilter.endElement(Unknown
Source)
at
org.cyberneko.html.filters.NamespaceBinder.endElement(Unknown
Source)
at
org.cyberneko.html.HTMLTagBalancer.callEndElement(Unknown
Source)
at
org.cyberneko.html.HTMLTagBalancer.endElement(Unknown
Source)
at
org.cyberneko.html.HTMLScanner$SpecialScanner.scan(Unknown
Source)
at
org.cyberneko.html.HTMLScanner.scanDocument(Unknown
Source)
at
org.cyberneko.html.HTMLConfiguration.parse(Unknown
Source)
at
org.cyberneko.html.HTMLConfiguration.parse(Unknown
Source)
at
org.apache.xerces.parsers.XMLParser.parse(Unknown
Source)
at
org.apache.xerces.parsers.DOMParser.parse(Unknown
Source)
at
com.meterware.httpunit.parsing.NekoHTMLParser.parse(NekoHTMLParser.java:41)
at
com.meterware.httpunit.HTMLPage.parse(HTMLPage.java:255)
at
com.meterware.httpunit.WebResponse.getReceivedPage(WebResponse.java:1126)
at
com.meterware.httpunit.WebResponse$Scriptable.load(WebResponse.java:688)
at
com.meterware.httpunit.javascript.JavaScript.load(JavaScript.java:89)
at
com.meterware.httpunit.javascript.JavaScriptEngineFactory.load(JavaScriptEngineFactory.java:58)
at
com.meterware.httpunit.RequestContext.runScripts(RequestContext.java:44)
at
com.meterware.httpunit.WebWindow.getResponse(WebWindow.java:122)
at
com.meterware.httpunit.WebWindow.getResponse(WebWindow.java:102)
at
com.meterware.httpunit.WebClient.getResponse(WebClient.java:87)
at
com.mutchek.vonaje.VonageAccount.getVonageSession(VonageAccount.java:148)
at
com.mutchek.vonaje.VonagePhoneNumber.getMessageList(VonagePhoneNumber.java:221)
at
tivonage.Config.showWizard(Config.java:192)
at
tivonage.TiVonage.loadConfig(TiVonage.java:105)
at
tivonage.TiVonage.<clinit>(TiVonage.java:35)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:164)
at
com.tivo.hme.sdk.Factory.setClassName(Factory.java:193)
at
com.tivo.hme.sdk.Factory.createFactory(Factory.java:405)
at
com.tivo.hme.sdk.Factory.startFactory(Factory.java:448)
at
com.tivo.hme.sdk.Factory.startFactory(Factory.java:478)
at
com.tivo.hme.sdk.Factory.main(Factory.java:577)
command line output