exception thrown any idea

View: New views
2 Messages — Rating Filter:   Alert me  

exception thrown any idea

by nadar NELSON :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

below is the exception caused while testing the website
any idea what may cause this exception
any reply will be more appreciated


Exception in thread "main" java.lang.NoClassDefFoundError: org/mozilla/javascript/Script
    at java.lang.ClassLoader.defineClass1(Native Method)
    at java.lang.ClassLoader.defineClass(ClassLoader.java:620)
    at net.sourceforge.htmlunit.corejs.javascript.DefiningClassLoader.defineClass(DefiningClassLoader.java:62)
    at net.sourceforge.htmlunit.corejs.javascript.optimizer.Codegen.defineClass(Codegen.java:146)
    at net.sourceforge.htmlunit.corejs.javascript.optimizer.Codegen.createScriptObject(Codegen.java:101)
    at net.sourceforge.htmlunit.corejs.javascript.Context.compileImpl(Context.java:2409)
    at net.sourceforge.htmlunit.corejs.javascript.Context.compileString(Context.java:1359)
    at net.sourceforge.htmlunit.corejs.javascript.Context.compileString(Context.java:1348)
    at net.sourceforge.htmlunit.corejs.javascript.Context.evaluateString(Context.java:1101)
    at com.gargoylesoftware.htmlunit.WebClient.encodeQuery(WebClient.java:1585)
    at com.gargoylesoftware.htmlunit.WebClient.encodeUrl(WebClient.java:1515)
    at com.gargoylesoftware.htmlunit.WebClient.loadWebResponseFromWebConnection(WebClient.java:1426)
    at com.gargoylesoftware.htmlunit.WebClient.loadWebResponse(WebClient.java:1370)
    at com.gargoylesoftware.htmlunit.html.HtmlImage.downloadImageIfNeeded(HtmlImage.java:360)
    at com.gargoylesoftware.htmlunit.html.HtmlImage.doOnLoad(HtmlImage.java:122)
    at com.gargoylesoftware.htmlunit.javascript.host.html.HTMLImageElement$ImageOnLoadAction.execute(HTMLImageElement.java:125)
    at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine.doProcessPostponedActions(JavaScriptEngine.java:563)
    at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine.processPostponedActions(JavaScriptEngine.java:624)
    at com.gargoylesoftware.htmlunit.html.HtmlElement.click(HtmlElement.java:1251)
    at com.gargoylesoftware.htmlunit.html.HtmlElement.click(HtmlElement.java:1209)
    at com.gargoylesoftware.htmlunit.html.HtmlElement.click(HtmlElement.java:1178)

--
Regards

Nelson Nadar
software engineer

------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
_______________________________________________
Htmlunit-user mailing list
Htmlunit-user@...
https://lists.sourceforge.net/lists/listinfo/htmlunit-user

Re: exception thrown any idea

by Ahmed Ashour :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Some parts of this message have been removed. Learn more about Nabble's security policy.
Hi Nadar,
 
* Use latest version (htmlunit-core-js-2.6 at least)
* Provide case if you will have an issue.
 
Ahmed
 

From: nadar NELSON <nelsonmca2004@...>
To: htmlunit-user@...
Sent: Tue, October 27, 2009 9:48:40 AM
Subject: [Htmlunit-user] exception thrown any idea

below is the exception caused while testing the website
any idea what may cause this exception
any reply will be more appreciated


Exception in thread "main" java.lang.NoClassDefFoundError: org/mozilla/javascript/Script
    at java.lang.ClassLoader.defineClass1(Native Method)
    at java.lang.ClassLoader.defineClass(ClassLoader.java:620)
    at net.sourceforge.htmlunit.corejs.javascript.DefiningClassLoader.defineClass(DefiningClassLoader.java:62)
    at net.sourceforge.htmlunit.corejs.javascript.optimizer.Codegen.defineClass(Codegen.java:146)
    at net.sourceforge.htmlunit.corejs.javascript.optimizer.Codegen.createScriptObject(Codegen.java:101)
    at net.sourceforge.htmlunit.corejs.javascript.Context.compileImpl(Context.java:2409)
    at net.sourceforge.htmlunit.corejs.javascript.Context.compileString(Context.java:1359)
    at net.sourceforge.htmlunit.corejs.javascript.Context.compileString(Context.java:1348)
    at net.sourceforge.htmlunit.corejs.javascript.Context.evaluateString(Context.java:1101)
    at com.gargoylesoftware.htmlunit.WebClient.encodeQuery(WebClient.java:1585)
    at com.gargoylesoftware.htmlunit.WebClient.encodeUrl(WebClient.java:1515)
    at com.gargoylesoftware.htmlunit.WebClient.loadWebResponseFromWebConnection(WebClient.java:1426)
    at com.gargoylesoftware.htmlunit.WebClient.loadWebResponse(WebClient.java:1370)
    at com.gargoylesoftware.htmlunit.html.HtmlImage.downloadImageIfNeeded(HtmlImage.java:360)
    at com.gargoylesoftware.htmlunit.html.HtmlImage.doOnLoad(HtmlImage.java:122)
    at com.gargoylesoftware.htmlunit.javascript.host.html.HTMLImageElement$ImageOnLoadAction.execute(HTMLImageElement.java:125)
    at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine.doProcessPostponedActions(JavaScriptEngine.java:563)
    at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine.processPostponedActions(JavaScriptEngine.java:624)
    at com.gargoylesoftware.htmlunit.html.HtmlElement.click(HtmlElement.java:1251)
    at com.gargoylesoftware.htmlunit.html.HtmlElement.click(HtmlElement.java:1209)
    at com.gargoylesoftware.htmlunit.html.HtmlElement.click(HtmlElement.java:1178)

--
Regards

Nelson Nadar
software engineer


------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
_______________________________________________
Htmlunit-user mailing list
Htmlunit-user@...
https://lists.sourceforge.net/lists/listinfo/htmlunit-user