• RELEVANCY SCORE 4.87

    DB:4.87:Htmlunit Test Getting Failed Due To Javascript Error 98





    does any body know the problem here.

    HtmlUnit test getting failed due to javascript error

    thanks,
    Lahiru

    DB:4.87:Htmlunit Test Getting Failed Due To Javascript Error 98

    does any body know the problem here.

    HtmlUnit test getting failed due to javascript error

    thanks,
    Lahiru

  • RELEVANCY SCORE 4.87

    DB:4.87:Snooping On Htmlunit df






    I've added a snooper that lets you see the client-side requests and responses generated by HtmlUnit. Read the wiki here for details:https://www.jboss.org/community/docs/DOC-12845As always, feedback is most welcome.Stan

    DB:4.87:Snooping On Htmlunit df


    I've added a snooper that lets you see the client-side requests and responses generated by HtmlUnit. Read the wiki here for details:https://www.jboss.org/community/docs/DOC-12845As always, feedback is most welcome.Stan

  • RELEVANCY SCORE 4.81

    DB:4.81:Request: Htmlunit From Sourceforge In Thirdpary. mz






    Hi,I'm working for Charles Crouch on the admin console for jboss 5.0 and we're implemeting integration tests using htmlunit version 1.8 from sourceforge.Currently, our build.xml DLs the jarfiles from sourceforge.net, but we'd rather retrieve them from the thirdparty project in jboss repository. As far as I can tell, they are not part of the current repository.I'm new around here, so I don't really know if this is the right place to ask for a change, but I figured it would at least be a good place to start.TIA,Bob Walker

    DB:4.81:Request: Htmlunit From Sourceforge In Thirdpary. mz


    The new HttpMethod.getResponseBody() now throws an IOException which needs to be caught or declared.Taking your advice, we'll be maintaining the two incompatible jars under the project directory and load them from there. Since we're doing this, we'll probably also store the four new jars at the same location rather than add them into the the repository.

  • RELEVANCY SCORE 4.48

    DB:4.48:Refreshhandler sc


    WARNING: Current implementation of setInterval does nothing.
    Exception: java.lang.RuntimeException: Refresh Aborted by HtmlUnit: Attempted to refresh a page using an ImmediateRefreshHandler which could have caused an OutOfMemoryError Please use WaitingRefreshHandler or ThreadedRefreshHandler instead.

    WebClient webClient = new WebClient();
    URL url = new URL("http://localhost/login.html");
    HtmlPage page = (HtmlPage)webClient.getPage(url);
    System.out.println( "Title :" + page.getTitleText());

  • RELEVANCY SCORE 4.42

    DB:4.42:Problem With Facelets+Richfaces+Jsf2 3s



    Hello,

    I am trying to setup the following environment: richfaces3.3.3 +jsf2.0 +facelets. When I run my app, the facelets are not interpreted and are displayed as such in the browser source code view.

    Can anyone please help?

    thanks in advance,

    J.

    Here is my web.xml:

    ?xml version="1.0" encoding="UTF-8"?web-app version="2.5" xmlns="http://java.sun.com/xml/ns/javaee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd" display-nameSite Jean-Baptiste Martin ${pom.version}/display-name context-param param-namecontextConfigLocation/param-name param-valueclasspath:root-application-config.xml/param-value /context-param context-param param-namejavax.faces.DEFAULT_SUFFIX/param-name param-value.xhtml/param-value /context-param context-param param-namefacelets.DEVELOPMENT/param-name param-valuefalse/param-value /context-param context-param param-nameorg.ajax4jsf.VIEW_HANDLERS/param-name param-valuecom.sun.facelets.FaceletViewHandler/param-value /context-param context-param param-namefacelets.LIBRARIES/param-name param-value/WEB-INF/jbm.taglib.xml/param-value /context-param context-param param-nameorg.ajax4jsf.handleViewExpiredOnClient/param-name param-valuefalse/param-value /context-param context-param param-namecom.jeanbaptistemartin.static.url/param-name param-valuehttp://static.jeanbaptistemartin.com/sculptures/param-value /context-param context-param param-namecom.jeanbaptistemartin.version/param-name param-value${pom.version}/param-value /context-param context-param param-namefacelets.SKIP_COMMENTS/param-name param-valuetrue/param-value /context-param context-param param-namefacelets.REFRESH_PERIOD/param-name param-value-1/param-value /context-param context-param param-nameorg.richfaces.ExcludeScripts/param-name param-valuePrototype,Scriptaculous,jQuery/param-value /context-param context-param param-namecom.ocpsoft.pretty.BASE_PACKAGES/param-name param-valuecom.jeanbaptistemartin.view/param-value /context-param context-param param-namejavax.faces.DISABLE_FACELET_JSF_VIEWHANDLER/param-name param-valuetrue/param-value/context-param

    listener listener-classorg.springframework.web.context.request.RequestContextListener/listener-class /listener listener listener-classorg.springframework.web.context.ContextLoaderListener/listener-class /listener

    servlet servlet-nameFaces Servlet/servlet-name servlet-classjavax.faces.webapp.FacesServlet/servlet-class load-on-startup1/load-on-startup /servlet servlet servlet-nameCaptchaServlet/servlet-name servlet-classcom.jeanbaptistemartin.util.CaptchaServlet/servlet-class /servlet servlet servlet-nameDesinscriptionAbonneServlet/servlet-name servlet-classcom.jeanbaptistemartin.util.DesinscriptionAbonneServlet/servlet-class /servlet servlet servlet-nameRedirigeVersSculptureServlet/servlet-name servlet-classcom.jeanbaptistemartin.util.RedirigeVersSculptureServlet/servlet-class /servlet servlet-mapping servlet-nameFaces Servlet/servlet-name url-pattern*.jsf/url-pattern /servlet-mapping filter filter-nameSpring OpenEntityManagerInViewFilter/filter-name filter-classorg.springframework.orm.jpa.support.OpenEntityManagerInViewFilter/filter-class /filter filter filter-namePretty Filter/filter-name filter-classcom.ocpsoft.pretty.PrettyFilter/filter-class /filter filter filter-nameajax4jsf/filter-name filter-classorg.ajax4jsf.Filter/filter-class init-param param-nameforceparser/param-name param-valuetrue/param-value /init-param /filter filter filter-nameDisableUrlSessionFilter/filter-name filter-classcom.jeanbaptistemartin.util.DisableUrlSessionFilter/filter-class /filter filter-mapping filter-nameDisableUrlSessionFilter/filter-name url-pattern/*/url-pattern /filter-mapping filter-mapping filter-nameSpring OpenEntityManagerInViewFilter/filter-name url-pattern/*/url-pattern /filter-mapping filter-mapping filter-namePretty Filter/filter-name url-pattern/*/url-pattern dispatcherFORWARD/dispatcher dispatcherREQUEST/dispatcher dispatcherERROR/dispatcher /filter-mapping filter-mapping filter-nameajax4jsf/filter-name servlet-nameFaces Servlet/servlet-name dispatcherREQUEST/dispatcher dispatcherFORWARD/dispatcher dispatcherINCLUDE/dispatcher /filter-mapping servlet-mapping servlet-nameCaptchaServlet/servlet-name url-pattern/CaptchaServlet/url-pattern /servlet-mapping servlet-mapping servlet-nameDesinscriptionAbonneServlet/servlet-name url-pattern/DesinscriptionAbonneServlet/url-pattern /servlet-mapping servlet-mapping servlet-nameRedirigeVersSculptureServlet/servlet-name url-pattern/RedirigeVersSculptureServlet/url-pattern /servlet-mapping session-config session-timeout30/session-timeout /session-config welcome-file-list welcome-fileaccueil.jsf/welcome-file /welcome-file-list security-constraint display-namejbmConstraint/display-name web-resource-collection web-resource-namejbmAll/web-resource-name description/ url-pattern/*/url-pattern http-methodGET/http-method http-methodPOST/http-method http-methodHEAD/http-method http-methodPUT/http-method http-methodOPTIONS/http-method http-methodTRACE/http-method http-methodDELETE/http-method /web-resource-collection /security-constraint security-constraint display-namejbmConstraint/display-name web-resource-collection web-resource-namejbmAll/web-resource-name description/ url-pattern/*/url-pattern http-methodGET/http-method http-methodPOST/http-method http-methodHEAD/http-method http-methodPUT/http-method http-methodOPTIONS/http-method http-methodTRACE/http-method http-methodDELETE/http-method /web-resource-collection /security-constraint login-config auth-methodBASIC/auth-method realm-namejbmRealm/realm-name /login-config/web-app

    and my faces-config:

    ?xml version="1.0" encoding="UTF-8"?faces-config version="1.2" xmlns="http://java.sun.com/xml/ns/javaee" xmlns:xi="http://www.w3.org/2001/XInclude" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-facesconfig_1_2.xsd" application !--view-handlercom.sun.facelets.FaceletViewHandler/view-handler-- variable-resolverorg.springframework.web.jsf.DelegatingVariableResolver/variable-resolver resource-bundle base-nameresources/base-name varmsg/var /resource-bundle resource-bundle base-nameimages/base-name varimg/var /resource-bundle locale-config default-localefr/default-locale supported-localefr/supported-locale supported-localeen/supported-locale /locale-config /application validator validator-idadresseEmailValidator/validator-id validator-classcom.jeanbaptistemartin.util.AdresseEmailValidator/validator-class /validator validator validator-idcaptchaValidator/validator-id validator-classcom.jeanbaptistemartin.util.CaptchaValidator/validator-class /validator converter converter-idsculptureConverter/converter-id converter-classcom.jeanbaptistemartin.util.SculptureConverter/converter-class /converter navigation-rule from-view-id/WEB-INF/include/formulaire-contact.xhtml/from-view-id navigation-case from-outcomeenvoi-reussi/from-outcome to-view-id/WEB-INF/include/traitement-envoi-reussi.xhtml/to-view-id /navigation-case /navigation-rule navigation-rule from-view-id/WEB-INF/include/formulaire-sculptures-pour-selection.xhtml/from-view-id navigation-case from-outcomesucces/from-outcome to-view-id/WEB-INF/include/formulaire-traitement-mailing.xhtml/to-view-id /navigation-case /navigation-rule navigation-rule from-view-id/WEB-INF/include/formulaire-traitement-mailing.xhtml/from-view-id navigation-case from-outcomesucces/from-outcome to-view-id/WEB-INF/include/traitement-mailing-reussi.xhtml/to-view-id /navigation-case /navigation-rule navigation-rule from-view-id/WEB-INF/include/formulaire-inscription.xhtml/from-view-id navigation-case from-outcomesucces/from-outcome to-view-id/WEB-INF/include/traitement-inscription-reussi.xhtml/to-view-id /navigation-case /navigation-rule

    /faces-config

    and finally my pom:

    ?xml version="1.0" encoding="UTF-8"?project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd" modelVersion4.0.0/modelVersion groupIdcom.jeanbaptistemartin/groupId artifactIdjeanbaptistemartin/artifactId packagingwar/packaging version1.3/version namejeanbaptistemartin.com/name urlhttp://maven.apache.org/url dependencies dependency groupIdjunit/groupId artifactIdjunit/artifactId version4.4/version scopetest/scope /dependency dependency groupIdcom.ocpsoft/groupId artifactIdprettyfaces-jsf2/artifactId version3.0.2-SNAPSHOT/version /dependency dependency groupIdorg.restfaces/groupId artifactIdrestfaces/artifactId version1.3.1/version /dependency dependency groupIdorg.hibernate/groupId artifactIdhibernate-core/artifactId version3.5.4-Final/version /dependency dependency groupIdorg.hibernate/groupId artifactIdhibernate-annotations/artifactId version3.4.0.GA/version /dependency dependency groupIdorg.hibernate/groupId artifactIdhibernate-entitymanager/artifactId version3.4.0.GA/version /dependency dependency groupIdorg.hibernate/groupId artifactIdhibernate-commons-annotations/artifactId version3.3.0.ga/version /dependency dependency groupIdorg.hibernate/groupId artifactIdhibernate-validator/artifactId version4.0.2.GA/version /dependency dependency groupIdjavassist/groupId artifactIdjavassist/artifactId version3.4.GA/version /dependency dependency groupIdorg.slf4j/groupId artifactIdslf4j-log4j12/artifactId version1.5.2/version /dependency

    dependency groupIdnet.sf.ehcache/groupId artifactIdehcache/artifactId version1.5.0/version /dependency dependency groupIdconcurrent/groupId artifactIdconcurrent/artifactId version1.3.4/version /dependency dependency groupIdjavax.persistence/groupId artifactIdpersistence-api/artifactId version1.0/version /dependency dependency groupIdlog4j/groupId artifactIdlog4j/artifactId version1.2.16/version /dependency dependency groupIdcom.sun.faces/groupId artifactIdjsf-api/artifactId version2.0.4-b02/version /dependency dependency groupIdcom.sun.faces/groupId artifactIdjsf-impl/artifactId version2.0.4-b02/version /dependency dependency groupIdjavax.servlet/groupId artifactIdservlet-api/artifactId version2.5/version /dependency dependency groupIdorg.richfaces.ui/groupId artifactIdrichfaces-ui/artifactId version3.3.3.Final/version

    exclusions exclusion artifactIdjsf-api/artifactId groupIdjavax.faces/groupId /exclusion exclusion artifactIdjsf-impl/artifactId groupIdjavax.faces/groupId /exclusion /exclusions /dependency !-- dependency groupIdorg.richfaces.framework/groupId artifactIdrichfaces-api/artifactId version3.3.1.GA/version /dependency -- dependency groupIdorg.richfaces.framework/groupId artifactIdrichfaces-impl-jsf2/artifactId version3.3.3.Final/version /dependency dependency groupIdorg.springframework/groupId artifactIdspring-core/artifactId version${spring.version}/version /dependency dependency groupIdorg.springframework/groupId artifactIdspring-web/artifactId version${spring.version}/version /dependency dependency groupIdorg.springframework/groupId artifactIdspring-beans/artifactId version${spring.version}/version /dependency dependency groupIdorg.springframework/groupId artifactIdspring-context/artifactId version${spring.version}/version /dependency dependency groupIdorg.springframework/groupId artifactIdspring-aop/artifactId version${spring.version}/version /dependency dependency groupIdorg.springframework/groupId artifactIdspring-context-support/artifactId version${spring.version}/version /dependency dependency groupIdorg.springframework/groupId artifactIdspring-tx/artifactId version${spring.version}/version /dependency dependency groupIdorg.springframework/groupId artifactIdspring-orm/artifactId version${spring.version}/version /dependency dependency groupIdorg.springframework/groupId artifactIdspring-jdbc/artifactId version${spring.version}/version /dependency dependency groupIdorg.springframework/groupId artifactIdspring-test/artifactId version${spring.version}/version /dependency dependency groupIdmysql/groupId artifactIdmysql-connector-java/artifactId version5.1.13/version /dependency !-- dependency groupIdorg.springframework.javaconfig/groupId artifactIdspring-javaconfig/artifactId version1.0.0.M4/version exclusions exclusion artifactIdspring-beans/artifactId groupIdorg.springframework/groupId /exclusion exclusion artifactIdspring-context/artifactId groupIdorg.springframework/groupId /exclusion exclusion artifactIdspring-core/artifactId groupIdorg.springframework/groupId /exclusion /exclusions /dependency -- dependency groupIdspring/groupId artifactIdspring-webmvc/artifactId version1.0.2/version /dependency dependency groupIdjavax.mail/groupId artifactIdmail/artifactId version1.4.1/version /dependency dependency groupIdcom.octo.captcha/groupId artifactIdjcaptcha/artifactId version1.0/version /dependency dependency groupIdcom.sun.facelets/groupId artifactIdjsf-facelets/artifactId version1.1.14/version /dependency !-- dependency groupIdxerces/groupId artifactIdxerces/artifactId version2.4.0/version /dependency -- dependency groupIdxerces/groupId artifactIdxercesImpl/artifactId version2.9.1/version /dependency

    dependency groupIdxerces/groupId artifactIdxmlParserAPIs/artifactId version2.6.2/version /dependency dependency groupIdcommons-collections/groupId artifactIdcommons-collections/artifactId version3.2.1/version /dependency dependency groupIdjavax.annotation/groupId artifactIdjsr250-api/artifactId version1.0/version /dependency dependency groupIdorg.apache.velocity/groupId artifactIdvelocity/artifactId version1.6.4/version /dependency dependency groupIdnet.sourceforge.jwebunit/groupId artifactIdjwebunit-htmlunit-plugin/artifactId version2.4/version scopetest/scope /dependency

    /dependencies build plugins plugin artifactIdmaven-compiler-plugin/artifactId version2.0.2/version configuration source1.6/source target1.6/target /configuration /plugin plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-war-plugin/artifactId configuration webResources webResource directory${basedir}/src/main/webapp/WEB-INF/directory includes includeweb.xml/include /includes targetPathWEB-INF/targetPath filteringtrue/filtering /webResource /webResources /configuration /plugin /plugins finalNameROOT/finalName /build repositories repository idunknown-jars-temp-repo/id nameA temporary repository created by NetBeans for libraries and jars it could not identify. Please replace the dependencies in this repository with correct ones and delete this repository./name urlfile:${project.basedir}/lib/url /repository /repositories properties spring.version3.0.4.RELEASE/spring.version netbeans.hint.deploy.serverTomcat60/netbeans.hint.deploy.server /properties/project

    DB:4.42:Problem With Facelets+Richfaces+Jsf2 3s


    Hello,

    I am trying to setup the following environment: richfaces3.3.3 +jsf2.0 +facelets. When I run my app, the facelets are not interpreted and are displayed as such in the browser source code view.

    Can anyone please help?

    thanks in advance,

    J.

    Here is my web.xml:

    ?xml version="1.0" encoding="UTF-8"?web-app version="2.5" xmlns="http://java.sun.com/xml/ns/javaee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd" display-nameSite Jean-Baptiste Martin ${pom.version}/display-name context-param param-namecontextConfigLocation/param-name param-valueclasspath:root-application-config.xml/param-value /context-param context-param param-namejavax.faces.DEFAULT_SUFFIX/param-name param-value.xhtml/param-value /context-param context-param param-namefacelets.DEVELOPMENT/param-name param-valuefalse/param-value /context-param context-param param-nameorg.ajax4jsf.VIEW_HANDLERS/param-name param-valuecom.sun.facelets.FaceletViewHandler/param-value /context-param context-param param-namefacelets.LIBRARIES/param-name param-value/WEB-INF/jbm.taglib.xml/param-value /context-param context-param param-nameorg.ajax4jsf.handleViewExpiredOnClient/param-name param-valuefalse/param-value /context-param context-param param-namecom.jeanbaptistemartin.static.url/param-name param-valuehttp://static.jeanbaptistemartin.com/sculptures/param-value /context-param context-param param-namecom.jeanbaptistemartin.version/param-name param-value${pom.version}/param-value /context-param context-param param-namefacelets.SKIP_COMMENTS/param-name param-valuetrue/param-value /context-param context-param param-namefacelets.REFRESH_PERIOD/param-name param-value-1/param-value /context-param context-param param-nameorg.richfaces.ExcludeScripts/param-name param-valuePrototype,Scriptaculous,jQuery/param-value /context-param context-param param-namecom.ocpsoft.pretty.BASE_PACKAGES/param-name param-valuecom.jeanbaptistemartin.view/param-value /context-param context-param param-namejavax.faces.DISABLE_FACELET_JSF_VIEWHANDLER/param-name param-valuetrue/param-value/context-param

    listener listener-classorg.springframework.web.context.request.RequestContextListener/listener-class /listener listener listener-classorg.springframework.web.context.ContextLoaderListener/listener-class /listener

    servlet servlet-nameFaces Servlet/servlet-name servlet-classjavax.faces.webapp.FacesServlet/servlet-class load-on-startup1/load-on-startup /servlet servlet servlet-nameCaptchaServlet/servlet-name servlet-classcom.jeanbaptistemartin.util.CaptchaServlet/servlet-class /servlet servlet servlet-nameDesinscriptionAbonneServlet/servlet-name servlet-classcom.jeanbaptistemartin.util.DesinscriptionAbonneServlet/servlet-class /servlet servlet servlet-nameRedirigeVersSculptureServlet/servlet-name servlet-classcom.jeanbaptistemartin.util.RedirigeVersSculptureServlet/servlet-class /servlet servlet-mapping servlet-nameFaces Servlet/servlet-name url-pattern*.jsf/url-pattern /servlet-mapping filter filter-nameSpring OpenEntityManagerInViewFilter/filter-name filter-classorg.springframework.orm.jpa.support.OpenEntityManagerInViewFilter/filter-class /filter filter filter-namePretty Filter/filter-name filter-classcom.ocpsoft.pretty.PrettyFilter/filter-class /filter filter filter-nameajax4jsf/filter-name filter-classorg.ajax4jsf.Filter/filter-class init-param param-nameforceparser/param-name param-valuetrue/param-value /init-param /filter filter filter-nameDisableUrlSessionFilter/filter-name filter-classcom.jeanbaptistemartin.util.DisableUrlSessionFilter/filter-class /filter filter-mapping filter-nameDisableUrlSessionFilter/filter-name url-pattern/*/url-pattern /filter-mapping filter-mapping filter-nameSpring OpenEntityManagerInViewFilter/filter-name url-pattern/*/url-pattern /filter-mapping filter-mapping filter-namePretty Filter/filter-name url-pattern/*/url-pattern dispatcherFORWARD/dispatcher dispatcherREQUEST/dispatcher dispatcherERROR/dispatcher /filter-mapping filter-mapping filter-nameajax4jsf/filter-name servlet-nameFaces Servlet/servlet-name dispatcherREQUEST/dispatcher dispatcherFORWARD/dispatcher dispatcherINCLUDE/dispatcher /filter-mapping servlet-mapping servlet-nameCaptchaServlet/servlet-name url-pattern/CaptchaServlet/url-pattern /servlet-mapping servlet-mapping servlet-nameDesinscriptionAbonneServlet/servlet-name url-pattern/DesinscriptionAbonneServlet/url-pattern /servlet-mapping servlet-mapping servlet-nameRedirigeVersSculptureServlet/servlet-name url-pattern/RedirigeVersSculptureServlet/url-pattern /servlet-mapping session-config session-timeout30/session-timeout /session-config welcome-file-list welcome-fileaccueil.jsf/welcome-file /welcome-file-list security-constraint display-namejbmConstraint/display-name web-resource-collection web-resource-namejbmAll/web-resource-name description/ url-pattern/*/url-pattern http-methodGET/http-method http-methodPOST/http-method http-methodHEAD/http-method http-methodPUT/http-method http-methodOPTIONS/http-method http-methodTRACE/http-method http-methodDELETE/http-method /web-resource-collection /security-constraint security-constraint display-namejbmConstraint/display-name web-resource-collection web-resource-namejbmAll/web-resource-name description/ url-pattern/*/url-pattern http-methodGET/http-method http-methodPOST/http-method http-methodHEAD/http-method http-methodPUT/http-method http-methodOPTIONS/http-method http-methodTRACE/http-method http-methodDELETE/http-method /web-resource-collection /security-constraint login-config auth-methodBASIC/auth-method realm-namejbmRealm/realm-name /login-config/web-app

    and my faces-config:

    ?xml version="1.0" encoding="UTF-8"?faces-config version="1.2" xmlns="http://java.sun.com/xml/ns/javaee" xmlns:xi="http://www.w3.org/2001/XInclude" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-facesconfig_1_2.xsd" application !--view-handlercom.sun.facelets.FaceletViewHandler/view-handler-- variable-resolverorg.springframework.web.jsf.DelegatingVariableResolver/variable-resolver resource-bundle base-nameresources/base-name varmsg/var /resource-bundle resource-bundle base-nameimages/base-name varimg/var /resource-bundle locale-config default-localefr/default-locale supported-localefr/supported-locale supported-localeen/supported-locale /locale-config /application validator validator-idadresseEmailValidator/validator-id validator-classcom.jeanbaptistemartin.util.AdresseEmailValidator/validator-class /validator validator validator-idcaptchaValidator/validator-id validator-classcom.jeanbaptistemartin.util.CaptchaValidator/validator-class /validator converter converter-idsculptureConverter/converter-id converter-classcom.jeanbaptistemartin.util.SculptureConverter/converter-class /converter navigation-rule from-view-id/WEB-INF/include/formulaire-contact.xhtml/from-view-id navigation-case from-outcomeenvoi-reussi/from-outcome to-view-id/WEB-INF/include/traitement-envoi-reussi.xhtml/to-view-id /navigation-case /navigation-rule navigation-rule from-view-id/WEB-INF/include/formulaire-sculptures-pour-selection.xhtml/from-view-id navigation-case from-outcomesucces/from-outcome to-view-id/WEB-INF/include/formulaire-traitement-mailing.xhtml/to-view-id /navigation-case /navigation-rule navigation-rule from-view-id/WEB-INF/include/formulaire-traitement-mailing.xhtml/from-view-id navigation-case from-outcomesucces/from-outcome to-view-id/WEB-INF/include/traitement-mailing-reussi.xhtml/to-view-id /navigation-case /navigation-rule navigation-rule from-view-id/WEB-INF/include/formulaire-inscription.xhtml/from-view-id navigation-case from-outcomesucces/from-outcome to-view-id/WEB-INF/include/traitement-inscription-reussi.xhtml/to-view-id /navigation-case /navigation-rule

    /faces-config

    and finally my pom:

    ?xml version="1.0" encoding="UTF-8"?project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd" modelVersion4.0.0/modelVersion groupIdcom.jeanbaptistemartin/groupId artifactIdjeanbaptistemartin/artifactId packagingwar/packaging version1.3/version namejeanbaptistemartin.com/name urlhttp://maven.apache.org/url dependencies dependency groupIdjunit/groupId artifactIdjunit/artifactId version4.4/version scopetest/scope /dependency dependency groupIdcom.ocpsoft/groupId artifactIdprettyfaces-jsf2/artifactId version3.0.2-SNAPSHOT/version /dependency dependency groupIdorg.restfaces/groupId artifactIdrestfaces/artifactId version1.3.1/version /dependency dependency groupIdorg.hibernate/groupId artifactIdhibernate-core/artifactId version3.5.4-Final/version /dependency dependency groupIdorg.hibernate/groupId artifactIdhibernate-annotations/artifactId version3.4.0.GA/version /dependency dependency groupIdorg.hibernate/groupId artifactIdhibernate-entitymanager/artifactId version3.4.0.GA/version /dependency dependency groupIdorg.hibernate/groupId artifactIdhibernate-commons-annotations/artifactId version3.3.0.ga/version /dependency dependency groupIdorg.hibernate/groupId artifactIdhibernate-validator/artifactId version4.0.2.GA/version /dependency dependency groupIdjavassist/groupId artifactIdjavassist/artifactId version3.4.GA/version /dependency dependency groupIdorg.slf4j/groupId artifactIdslf4j-log4j12/artifactId version1.5.2/version /dependency

    dependency groupIdnet.sf.ehcache/groupId artifactIdehcache/artifactId version1.5.0/version /dependency dependency groupIdconcurrent/groupId artifactIdconcurrent/artifactId version1.3.4/version /dependency dependency groupIdjavax.persistence/groupId artifactIdpersistence-api/artifactId version1.0/version /dependency dependency groupIdlog4j/groupId artifactIdlog4j/artifactId version1.2.16/version /dependency dependency groupIdcom.sun.faces/groupId artifactIdjsf-api/artifactId version2.0.4-b02/version /dependency dependency groupIdcom.sun.faces/groupId artifactIdjsf-impl/artifactId version2.0.4-b02/version /dependency dependency groupIdjavax.servlet/groupId artifactIdservlet-api/artifactId version2.5/version /dependency dependency groupIdorg.richfaces.ui/groupId artifactIdrichfaces-ui/artifactId version3.3.3.Final/version

    exclusions exclusion artifactIdjsf-api/artifactId groupIdjavax.faces/groupId /exclusion exclusion artifactIdjsf-impl/artifactId groupIdjavax.faces/groupId /exclusion /exclusions /dependency !-- dependency groupIdorg.richfaces.framework/groupId artifactIdrichfaces-api/artifactId version3.3.1.GA/version /dependency -- dependency groupIdorg.richfaces.framework/groupId artifactIdrichfaces-impl-jsf2/artifactId version3.3.3.Final/version /dependency dependency groupIdorg.springframework/groupId artifactIdspring-core/artifactId version${spring.version}/version /dependency dependency groupIdorg.springframework/groupId artifactIdspring-web/artifactId version${spring.version}/version /dependency dependency groupIdorg.springframework/groupId artifactIdspring-beans/artifactId version${spring.version}/version /dependency dependency groupIdorg.springframework/groupId artifactIdspring-context/artifactId version${spring.version}/version /dependency dependency groupIdorg.springframework/groupId artifactIdspring-aop/artifactId version${spring.version}/version /dependency dependency groupIdorg.springframework/groupId artifactIdspring-context-support/artifactId version${spring.version}/version /dependency dependency groupIdorg.springframework/groupId artifactIdspring-tx/artifactId version${spring.version}/version /dependency dependency groupIdorg.springframework/groupId artifactIdspring-orm/artifactId version${spring.version}/version /dependency dependency groupIdorg.springframework/groupId artifactIdspring-jdbc/artifactId version${spring.version}/version /dependency dependency groupIdorg.springframework/groupId artifactIdspring-test/artifactId version${spring.version}/version /dependency dependency groupIdmysql/groupId artifactIdmysql-connector-java/artifactId version5.1.13/version /dependency !-- dependency groupIdorg.springframework.javaconfig/groupId artifactIdspring-javaconfig/artifactId version1.0.0.M4/version exclusions exclusion artifactIdspring-beans/artifactId groupIdorg.springframework/groupId /exclusion exclusion artifactIdspring-context/artifactId groupIdorg.springframework/groupId /exclusion exclusion artifactIdspring-core/artifactId groupIdorg.springframework/groupId /exclusion /exclusions /dependency -- dependency groupIdspring/groupId artifactIdspring-webmvc/artifactId version1.0.2/version /dependency dependency groupIdjavax.mail/groupId artifactIdmail/artifactId version1.4.1/version /dependency dependency groupIdcom.octo.captcha/groupId artifactIdjcaptcha/artifactId version1.0/version /dependency dependency groupIdcom.sun.facelets/groupId artifactIdjsf-facelets/artifactId version1.1.14/version /dependency !-- dependency groupIdxerces/groupId artifactIdxerces/artifactId version2.4.0/version /dependency -- dependency groupIdxerces/groupId artifactIdxercesImpl/artifactId version2.9.1/version /dependency

    dependency groupIdxerces/groupId artifactIdxmlParserAPIs/artifactId version2.6.2/version /dependency dependency groupIdcommons-collections/groupId artifactIdcommons-collections/artifactId version3.2.1/version /dependency dependency groupIdjavax.annotation/groupId artifactIdjsr250-api/artifactId version1.0/version /dependency dependency groupIdorg.apache.velocity/groupId artifactIdvelocity/artifactId version1.6.4/version /dependency dependency groupIdnet.sourceforge.jwebunit/groupId artifactIdjwebunit-htmlunit-plugin/artifactId version2.4/version scopetest/scope /dependency

    /dependencies build plugins plugin artifactIdmaven-compiler-plugin/artifactId version2.0.2/version configuration source1.6/source target1.6/target /configuration /plugin plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-war-plugin/artifactId configuration webResources webResource directory${basedir}/src/main/webapp/WEB-INF/directory includes includeweb.xml/include /includes targetPathWEB-INF/targetPath filteringtrue/filtering /webResource /webResources /configuration /plugin /plugins finalNameROOT/finalName /build repositories repository idunknown-jars-temp-repo/id nameA temporary repository created by NetBeans for libraries and jars it could not identify. Please replace the dependencies in this repository with correct ones and delete this repository./name urlfile:${project.basedir}/lib/url /repository /repositories properties spring.version3.0.4.RELEASE/spring.version netbeans.hint.deploy.serverTomcat60/netbeans.hint.deploy.server /properties/project

  • RELEVANCY SCORE 4.28

    DB:4.28:Javascript Problems Using Httpunit While Testing Uix Pages 3s


    Hello JDeveloper Team
    Need urgent help about testing my web pages written in UIX. I tried to use HttpUnit but I got Javascript errors. What is wrong with it ?

    I also used HtmlUnit. It works well but writing code to check the html page that is produced from a UIX is a stomachache. I mean all the ids , names of components are so absurd words. A submit button for example is a link with an image inside it but has no name or id. So there is no way to reach it with a method of HtmlUnit library.

    Can you please advice me a methodology to test my uix pages? Or is there any tool or application for this purpose ? It could be licensed . My company needs such a tool. I also tried AppPerfect but it does not support UIX.

    I need your valuable opinions. An answer that is quick would be appreciated.

    Thanks

    DB:4.28:Javascript Problems Using Httpunit While Testing Uix Pages 3s

    if you want an ID in the html, you can set it in the UIX file and it will appear
    in the html

  • RELEVANCY SCORE 4.28

    DB:4.28:Sslexception: Unrecognized Ssl Message, Plaintext Connection? cf


    I have a J2EE application running on a unix box, to access it, the url is :
    https://company.inside.net/sampleapp

    I have an htmlUnit test case to run against this, I have attached the code
    :
    WebClient webClient = new WebClient();

    urlString = "https://company.inside.net/sampleapp";

    webClient.setJavaScriptEnabled(false);
    webClient.setThrowExceptionOnFailingStatusCode(false);
    HtmlPage loginPage = null;
    try
    {
    webClient.setUseInsecureSSL(true);
    loginPage = (HtmlPage)webClient.getPage(urlString);
    }
    catch(Exception e) {
    e.printStackTrace();
    fail("Login failed"+e.getMessage());
    }

    when I run the test, I get the following error.. on the following line :

    --- ' fail("Login failed"+e.getMessage());'

    Oct 21, 2008 12:57:01 PM org.apache.commons.httpclient.HttpMethodDirector executeWithRetry

    [junit] INFO: I/O exception (javax.net.ssl.SSLException) caught when processing request: Unrecognized SSL message, plaintext connection?

    [junit] Oct 21, 2008 12:57:01 PM org.apache.commons.httpclient.HttpMethodDirector executeWithRetry

    [junit] INFO: Retrying request

    [junit] javax.net.ssl.SSLException: Unrecognized SSL message, plaintext connection?

    [junit] at com.ibm.jsse2.a.c(a.java:173)

    [junit] at com.ibm.jsse2.a.a(a.java:168)

    [junit] at com.ibm.jsse2.jc.a(jc.java:305)

    [junit] at com.ibm.jsse2.jc.g(jc.java:433)

    [junit] at com.ibm.jsse2.jc.a(jc.java:384)

    [junit] at com.ibm.jsse2.j.write(j.java:6)

    [junit] at java.io.BufferedOutputStream.flushBuffer(BufferedOutputStream.java:88)

    [junit] at java.io.BufferedOutputStream.flush(BufferedOutputStream.java:146)

    [junit] at org.apache.commons.httpclient.HttpConnection.flushRequestOutputStream(HttpConnection.java:828)

    [junit] at org.apache.commons.httpclient.MultiThreadedHttpConnectionManager$HttpConnectionAdapter.flushRequestOutputStream(MultiThreadedHttpConnectionManager.java:1565)

    [junit] at org.apache.commons.httpclient.HttpMethodBase.writeRequest(HttpMethodBase.java:2116)

    [junit] at org.apache.commons.httpclient.HttpMethodBase.execute(HttpMethodBase.java:1096)

    [junit] at org.apache.commons.httpclient.HttpMethodDirector.executeWithRetry(HttpMethodDirector.java:398)

    [junit] at org.apache.commons.httpclient.HttpMethodDirector.executeMethod(HttpMethodDirector.java:171)

    [junit] at org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:397)

    [junit] at org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:346)

    [junit] at com.gargoylesoftware.htmlunit.HttpWebConnection.getResponse(HttpWebConnection.java:100)

    [junit] at com.gargoylesoftware.htmlunit.WebClient.loadWebResponseFromWebConnection(WebClient.java:1571)

    [junit] at com.gargoylesoftware.htmlunit.WebClient.loadWebResponse(WebClient.java:1529)

    [junit] at com.gargoylesoftware.htmlunit.WebClient.getPage(WebClient.java:334)

    [junit] at com.gargoylesoftware.htmlunit.WebClient.getPage(WebClient.java:388)

    [junit] at com.gargoylesoftware.htmlunit.WebClient.getPage(WebClient.java:375)

    [junit] at com.corporate.htmlunit.BaseHtmlUnitTest.startAuthenticateUser(Unknown Source)

    [junit] at com.corporate.htmlunit.BaseHtmlUnitTest.authenticateUser(Unknown Source)

    [junit] at com.corporate.htmlunit.SampleWebTest.setUp(Unknown Source)

    [junit] at junit.framework.TestCase.runBare(TestCase.java:128)

    [junit] at junit.framework.TestResult$1.protect(TestResult.java:106)

    [junit] at junit.framework.TestResult.runProtected(TestResult.java:124)

    [junit] at junit.framework.TestResult.run(TestResult.java:109)

    [junit] at junit.framework.TestCase.run(TestCase.java:120)

    [junit] at junit.framework.TestSuite.runTest(TestSuite.java:230)

    [junit] at junit.framework.TestSuite.run(TestSuite.java:225)

    [junit] at org.junit.internal.runners.OldTestClassRunner.run(OldTestClassRunner.java:35)

    [junit] at junit.framework.JUnit4TestAdapter.run(JUnit4TestAdapter.java:32)

    [junit] at org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.run(JUnitTestRunner.java:421)

    [junit] at org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.launch(JUnitTestRunner.java:912)

    [junit] at org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.main(JUnitTestRunner.java:766)

    [junit]

    Any help is appreciated,
    TIA

    DB:4.28:Sslexception: Unrecognized Ssl Message, Plaintext Connection? cf

    That message means that the peer isn't speaking SSL. Possibly it is speaking plaintext. Can you connect to that URL with a browser?

  • RELEVANCY SCORE 4.09

    DB:4.09:Problem Clicking Elements Of Richfaces Tree Using Htmlunit xf



    I am new to jsfunit testing and I have a richfaces tree which is binded to a backing bean. The menu items are coming according to user rights. Problem is this tree is rendered as a table in html form.I need to click the tabledatacells or tablerows to invoke the onselect method on the server side. I have a td linking to "system configuration".My code is as below

    client=session.getJSFClientSession();
    server=session.getJSFServerSession();
    page=(HtmlPage) client.getContentPage();
    ClickableElement clk=(ClickableElement) page.getByXPath
    (".//td[contains(text(),'System Configuration')]").get(0);
    clk=(ClickableElement)clk.getPreviousSibling();
    System.out.println(clk.getId()+clk.getTextContent());
    page=clk.click();

  • RELEVANCY SCORE 4.09

    DB:4.09:Htmlunit Test Getting Failed Due To Javascript Error 8d


    Hi,

    Versions used:
    htmlunit : 1.11
    oc4j : 10.1.3.2

    When I click a anchor element which opens a pop up window in the browser give me following javascript exception from DebugCommon10_1_3_2_0.js when I click the anchor through a htmlunit test. I have set my WebClient to default.

    Exception class=[org.mozilla.javascript.WrappedException]
    com.gargoylesoftware.htmlunit.ScriptException: Wrapped com.gargoylesoftware.htmlunit.ScriptException: TypeError: Cannot find function setCapture. (http://192.168.20.36:8988/CS/adf/jsLibs/DebugCommon10_1_3_2_0.js#3614) (http://192.168.20.36:8988/CS/adf/jsLibs/DebugCommon10_1_3_2_0.js#4561)
    at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine.callFunction(JavaScriptEngine.java:322)
    at com.gargoylesoftware.htmlunit.html.HtmlPage.executeJavaScriptFunctionIfPossible(HtmlPage.java:736)
    at com.gargoylesoftware.htmlunit.html.HtmlPage.runEventHandler(HtmlPage.java:1489)
    at com.gargoylesoftware.htmlunit.html.HtmlPage.runEventHandler(HtmlPage.java:1465)
    at com.gargoylesoftware.htmlunit.html.ClickableElement.click(ClickableElement.java:103)
    at lk.informatics.cs.testcases.login.agreementmanagement.AddNewPartner.testSLNO12(AddNewPartner.java:329)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    Caused by: org.mozilla.javascript.WrappedException: Wrapped com.gargoylesoftware.htmlunit.ScriptException: TypeError: Cannot find function setCapture. (http://192.168.20.36:8988/CS/adf/jsLibs/DebugCommon10_1_3_2_0.js#3614) (http://192.168.20.36:8988/CS/adf/jsLibs/DebugCommon10_1_3_2_0.js#4561)
    at org.mozilla.javascript.Context.throwAsScriptRuntimeEx(Context.java:1693)
    at org.mozilla.javascript.MemberBox.invoke(MemberBox.java:160)
    at org.mozilla.javascript.FunctionObject.call(FunctionObject.java:471)
    at org.mozilla.javascript.Interpreter.interpretLoop(Interpreter.java:3085)
    at org.mozilla.javascript.Interpreter.interpret(Interpreter.java:2251)
    at org.mozilla.javascript.InterpretedFunction.call(InterpretedFunction.java:161)
    at org.mozilla.javascript.ContextFactory.doTopCall(ContextFactory.java:340)
    at com.gargoylesoftware.htmlunit.javascript.HtmlUnitContextFactory.doTopCall(HtmlUnitContextFactory.java:151)
    at org.mozilla.javascript.ScriptRuntime.doTopCall(ScriptRuntime.java:2758)
    at org.mozilla.javascript.InterpretedFunction.call(InterpretedFunction.java:159)
    at com.gargoylesoftware.htmlunit.javascript.host.EventHandler.call(EventHandler.java:95)
    at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine.callFunction(JavaScriptEngine.java:363)
    at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine.callFunction(JavaScriptEngine.java:318)

    DB:4.09:Htmlunit Test Getting Failed Due To Javascript Error 8d

    The solution is,

    Earlier I used:
    HtmlPage popPage = (HtmlPage) page.getFirstAnchorByText("PopMe").click();

    which gave me the javascript exception. But I changed it to

    HtmlPage popPage = (HtmlPage) page.getFirstAnchorByText("PopMe").openLinkInNewWindow();

    and now it's ok.

  • RELEVANCY SCORE 4.09

    DB:4.09:Jsfunit Setup : Java.Lang.Noclassdeffounderror: Com/Gargoyle 81



    Hi all,I am a new user of JSFUnit and trying to make it work.I put these two jars in web-inf/lib of my war:jboss-jsfunit-core-1.0.0.GA.jarjboss-jsfunit-richfaces-1.0.0.GA.jarin web-inf I put timer-config.xml with following tag (only tag related code below)faces-config phase-listenerorg.jboss.jsfunit.framework.JSFTimerPhaseListener/phase-listener/faces-configAnd added this stuff to my web.xmlcontext-param param-namejavax.faces.CONFIG_FILES/param-name param-value/WEB-INF/timer-config.xml/param-value/context-paramLast two configurations have been referred in http://www.jboss.org/community/docs/DOC-10970On launching the web app on Tomcat 6 and tried to look my web application's home page up, I get this 500 error01-05-09 10:50:13:002 - {ERROR} [/batWebApp].[Faces Servlet] Thread [http-8084-1]; Servlet.service() for servlet Faces Servlet threw exceptionjava.lang.NoClassDefFoundError: com/gargoylesoftware/htmlunit/AjaxController at org.jboss.jsfunit.context.JSFUnitFacesContextFactory.isJSFUnitRequest(JSFUnitFacesContextFactory.java:74) at org.jboss.jsfunit.context.JSFUnitFacesContextFactory.getFacesContext(JSFUnitFacesContextFactory.java:58) at javax.faces.webapp.FacesServlet.service(FacesServlet.java:133) at org.apache.myfaces.webapp.MyFacesServlet.service(MyFacesServlet.java:77) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) at org.ajax4jsf.webapp.BaseXMLFilter.doXmlFilter(BaseXMLFilter.java:141) at org.ajax4jsf.webapp.BaseFilter.doFilter(BaseFilter.java:281) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) at org.apache.myfaces.webapp.filter.ExtensionsFilter.doFilter(ExtensionsFilter.java:147) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) at com.vzbi.vccas.webapp.LoginServletFilter.doFilter(LoginServletFilter.java:40) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:228) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:212) at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844) at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:634) at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:445) at java.lang.Thread.run(Thread.java:595)Please help. I am just getting started in test driven development, so if this works, it would be a great impetus.Wishing you all a great weekend.Suhaas

    DB:4.09:Jsfunit Setup : Java.Lang.Noclassdeffounderror: Com/Gargoyle 81


    JSFUnit 1.0.0.0.GA was originally tested with HtmlUnit 2.4. However, I'd go with HtmlUnit 2.5, which just came out. It passes all the JSFUnit tests and fixes a few bugs.Stan

  • RELEVANCY SCORE 4.09

    DB:4.09:Problem In Using Htmlunit dp


    Hi All,
    I am using HtmlUnit for posting the data to the server for handling the interactive websites. But for some of the sites I got the exception "Exception in thread "main" java.lang.OutOfMemoryError: Java heap space".
    For other sites the code is working prooperly. My code is as below with the URL which is giving exception.

    import java.util.List;
    import com.gargoylesoftware.htmlunit.BrowserVersion;
    import com.gargoylesoftware.htmlunit.WebClient;
    import com.gargoylesoftware.htmlunit.html.HtmlAnchor;
    import com.gargoylesoftware.htmlunit.html.HtmlForm;
    import com.gargoylesoftware.htmlunit.html.HtmlPage;
    import com.gargoylesoftware.htmlunit.html.HtmlTable;
    import com.gargoylesoftware.htmlunit.html.HtmlTableRow;
    import java.io.File;
    import java.io.PrintWriter;

    public class test_html
    {
    public static void main(String[] args) throws Exception
    {
    WebClient webClient =null;
    HtmlPage page=null;
    HtmlForm form=null;
    int newMessageCount = 0;
    PrintWriter pw=null;

    pw=new PrintWriter(new File("file_html.txt"));
    webClient=new WebClient(BrowserVersion.FIREFOX_3);
    webClient.setThrowExceptionOnScriptError(false);
    webClient.setJavaScriptEnabled(false);
    page= (HtmlPage) webClient.getPage("http://www.msnbc.msn.com/id/3053415/deck/tmobile");
    form= page.getFormByName("fgl");
    form.getInputByName("txtZip").setValueAttribute("12345");
    page = (HtmlPage) form.getButtonByName("ZipSubmit").click();

    pw.write(page.asText());
    pw.close();
    }
    }Please help me to solve this exception.

    Thanks Regards,
    Jyotin

    DB:4.09:Problem In Using Htmlunit dp

    Jyotin,

    This seems to be an error caused due to low memory space allocated to JVM. When you run java, you can specify the amount of memory to be allocated. Try allocation more memory and that should resolve this. The following command allocates a minimum of 4MB and maximum of 15MB of memory to run the application named JavaApplication:

    java -Xms4m -Xmx15m JavaApplication

    You may also refer to:

    http://hausheer.osola.com/docs/5

    - Jim

  • RELEVANCY SCORE 4.00

    DB:4.00:Configure Htmlunitdriver pp



    Hello,

    I am using arquillian (version 1.1.5.Final) with graphene-webdriver (version 2.0.3.Final) and selenium-htmlunit-driver (version 2.42.0) to test a Richfaces (version 4.3.7.Final) application.

    When the page is loading, I get this error :
    EcmaError: lineNumber=[6831] column=[0] lineSource=[no source] name=[TypeError] sourceName=[https://xxx.xxx.xxx.xxx/myApplication/javax.faces.resource/jquery.js.jsf] message=[TypeError: Impossible de trouver la fonction getPropertyValue dans lobjet {1}. (https://xxx.xxx.xxx.xxx/myApplication/javax.faces.resource/jquery.js.jsf#6831)]
    com.gargoylesoftware.htmlunit.ScriptException: TypeError: Impossible de trouver la fonction getPropertyValue dans lobjet {1}. (https://xxx.xxx.xxx.xxx/myApplication/javax.faces.resource/jquery.js.jsf#6831)

    When I use directly HTMLUnit, I need to add this line to avoid the same error :
    final WebClient webClient = new WebClient(BrowserVersion.CHROME);
    webClient.getOptions().setThrowExceptionOnScriptError(false);

    Is it possible to configure HTMLUnitWebDriver from drone extension to set the property ThrowExceptionOnScriptError to false ?

    Thank you for your help.

    DB:4.00:Configure Htmlunitdriver pp


    Thank you for your JIRA issue, I think it will be very usefull.

    For your information, I cannot use PhantomJS because I work on a project where the login page is redirected via a HTTP 302 redirect. PhantomsJS does not seem to follow this kind of redirection. Nevertheless, I found a workarround with this property of HTMLUnitDriver :

    It seems that firefox browser version within HTMLUnit copes better with JavaScript.

    With RichFaces, I also needed to change the default CSS parser. RF depend on net.sourceforge.cssparser:cssparser:0.9.5. I use version 0.9.14. My pom looks like that :

  • RELEVANCY SCORE 3.98

    DB:3.98:Htmlunit Test xx


    I am trying to do some automation stuff. In this automation I need to navigate through all few HTML pages and finally comit the data entered into the database. The probem is, i don have the source code of the site that I am trying to automate. Because of that I cant change the code.

    Wel, following the issue is because of the

    public class navigate1 extends TestCase {
    private WebClient webClient;
    public void testHomePage() throws Exception {

    final WebClient webClient = new WebClient();

    final URL url = new URL("http://aru.us.oracle.com:8080/ARU/Login/get_form");

    1 final HtmlPage page = (HtmlPage)webClient.getPage(url);
    HtmlForm form=(HtmlForm)page.getFormByName("");//There is no form name in the source code.

    final HtmlTextInput textField= (HtmlTextInput)form.getInputByName("username");
    final HtmlPasswordInput textField1= (HtmlPasswordInput)form.getInputByName("password");

    textField.setValueAttribute("bkumara");
    textField1.setValueAttribute("topsecret");

    final HtmlPage page2 = (HtmlPage)form.submit();
    }
    }

    There is a JAVASCRIPT in the page2. Due to which the page is not produced.

    DB:3.98:Htmlunit Test xx

    I am trying to do some automation stuff. In this automation I need to navigate through all few HTML pages and finally comit the data entered into the database. The probem is, i don have the source code of the site that I am trying to automate. Because of that I cant change the code.

    Wel, following the issue is because of the

    public class navigate1 extends TestCase {
    private WebClient webClient;
    public void testHomePage() throws Exception {

    final WebClient webClient = new WebClient();

    final URL url = new URL("http://aru.us.oracle.com:8080/ARU/Login/get_form");

    1 final HtmlPage page = (HtmlPage)webClient.getPage(url);
    HtmlForm form=(HtmlForm)page.getFormByName("");//There is no form name in the source code.

    final HtmlTextInput textField= (HtmlTextInput)form.getInputByName("username");
    final HtmlPasswordInput textField1= (HtmlPasswordInput)form.getInputByName("password");

    textField.setValueAttribute("bkumara");
    textField1.setValueAttribute("topsecret");

    final HtmlPage page2 = (HtmlPage)form.submit();
    }
    }

    There is a JAVASCRIPT in the page2. Due to which the page is not produced.

  • RELEVANCY SCORE 3.98

    DB:3.98:Getting A Proxy Authentication Error With Htmlunit x3


    Hi,

    I am using HTML Unit to automate a Google Search. I am using the proxy server of my organisation. The following lines of code

    final WebClient webClient = new WebClient(BrowserVersion.FIREFOX_10, "10.122.3.98", 80);

    //set proxy username and password
    final DefaultCredentialsProvider credentialsProvider = (DefaultCredentialsProvider) webClient.getCredentialsProvider();
    credentialsProvider.addCredentials("mysusername", "mypassword");

    final HtmlPage page = webClient.getPage("http://htmlunit.sourceforge.net");
    System.out.println(page);

    webClient.closeAllWindows();

    gives me the error "407 Proxy Authentication Required ( The ISA Server requires authorization to fulfill the request. Access to the Web Proxy filter is denied. ) for http://htmlunit.sourceforge.net/". I am supplying my username and password to the defaultCredentialsProvider. I also tried setting System property for proxyPort and ProxyHost as follows

    System.setProperty("http.proxyHost","10.122.3.98");
    System.setProperty("http.proxyPort","80");

    but I guess HTMLUnit uses httpclient internally for authentication which ignores the JVM flags. Can anybody give me some pointers on the solution.

    DB:3.98:Getting A Proxy Authentication Error With Htmlunit x3

    Thanks
    the issue was fixed by
    credentialsProvider.addNTLMCredentials("username", "password", null, -1, "localhost", "domain");

  • RELEVANCY SCORE 3.98

    DB:3.98:Progressbar For Loading A Webpage From Within An Application 9x


    I intend to load webpages using HtmlUnit from within my Swing application and I want to show the user a progressbar telling about the load process fpr this web page.
    How can I achieve this? How can I know about how long it will last to download the web page and in which intervalls I need to update the progressbar? I think I need to know something like how large the web page's content is and how much of this content is already downloaded. Am I right?

    I would appreciate any examples or links to information (and/or examples).

    Thank you,
    Dirk

    DB:3.98:Progressbar For Loading A Webpage From Within An Application 9x

    Maybe you can use a ProgressMonitorInputStream. Read the API. If that doesn't help you then you will still find a link to the Swing tuturial on using progress bars.

  • RELEVANCY SCORE 3.72

    DB:3.72:Exception Invoking Jsxfunction_Send Bug In Jsfunit Or Htmlunit??? d3



    Hi,

    on a page with a rich:dataTable component i always get an invoking jsxFunction_send exception. Is this a Bug in JSFUnit or HtmlUnit?

    stacktrace:

    Exception invoking jsxFunction_send======= EXCEPTION START ========
    Exception class=[java.lang.RuntimeException]
    com.gargoylesoftware.htmlunit.ScriptException: Exception invoking jsxFunction_send
    at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine$HtmlUnitContextAction.run(JavaScriptEngine.java:601)
    at net.sourceforge.htmlunit.corejs.javascript.Context.call(Context.java:537)
    at net.sourceforge.htmlunit.corejs.javascript.ContextFactory.call(ContextFactory.java:538)
    at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine.callFunction(JavaScriptEngine.java:531)
    at com.gargoylesoftware.htmlunit.html.HtmlPage.executeJavaScriptFunctionIfPossible(HtmlPage.java:906)
    at com.gargoylesoftware.htmlunit.javascript.host.EventListenersContainer.executeEventListeners(EventListenersContainer.java:164)
    at com.gargoylesoftware.htmlunit.javascript.host.EventListenersContainer.executeBubblingListeners(EventListenersContainer.java:223)
    at com.gargoylesoftware.htmlunit.javascript.host.Node.fireEvent(Node.java:686)
    at com.gargoylesoftware.htmlunit.html.HtmlElement$2.run(HtmlElement.java:885)
    at net.sourceforge.htmlunit.corejs.javascript.Context.call(Context.java:537)
    at net.sourceforge.htmlunit.corejs.javascript.ContextFactory.call(ContextFactory.java:538)
    at com.gargoylesoftware.htmlunit.html.HtmlElement.fireEvent(HtmlElement.java:890)
    at com.gargoylesoftware.htmlunit.html.HtmlElement.click(HtmlElement.java:1259)
    at com.gargoylesoftware.htmlunit.html.HtmlElement.click(HtmlElement.java:1214)
    at com.gargoylesoftware.htmlunit.html.HtmlElement.click(HtmlElement.java:1177)
    at com.andrae_ag.ontram.gui.test.JSFUnit.MyRichFacesClient.clickPanelBarItem(MyRichFacesClient.java:25)
    at com.andrae_ag.ontram.gui.test.JSFUnit.JSFUnitTabTest.testAdminTabNavigation(JSFUnitTabTest.java:200)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at org.apache.cactus.internal.AbstractCactusTestCase.runBareServer(AbstractCactusTestCase.java:153)
    at org.apache.cactus.internal.server.AbstractWebTestCaller.doTest(AbstractWebTestCaller.java:119)
    at org.apache.cactus.internal.server.AbstractWebTestController.handleRequest_aroundBody0(AbstractWebTestController.java:93)
    at org.apache.cactus.internal.server.AbstractWebTestController.handleRequest_aroundBody1$advice(AbstractWebTestController.java:224)
    at org.apache.cactus.internal.server.AbstractWebTestController.handleRequest(AbstractWebTestController.java)
    at org.apache.cactus.server.ServletTestRedirector.doPost_aroundBody2(ServletTestRedirector.java:101)
    at org.apache.cactus.server.ServletTestRedirector.doPost_aroundBody3$advice(ServletTestRedirector.java:224)
    at org.apache.cactus.server.ServletTestRedirector.doPost(ServletTestRedirector.java)
    at org.jboss.jsfunit.framework.JSFUnitServletRedirector.doPost(JSFUnitServletRedirector.java:46)
    at org.apache.cactus.server.ServletTestRedirector.doGet_aroundBody0(ServletTestRedirector.java:72)
    at org.apache.cactus.server.ServletTestRedirector.doGet_aroundBody1$advice(ServletTestRedirector.java:224)
    at org.apache.cactus.server.ServletTestRedirector.doGet(ServletTestRedirector.java)
    at org.jboss.jsfunit.framework.JSFUnitServletRedirector.doGet(JSFUnitServletRedirector.java:52)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:617)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
    at org.jboss.jsfunit.framework.JSFUnitFilter.doFilter(JSFUnitFilter.java:119)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
    at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:83)
    at org.jboss.seam.web.IdentityFilter.doFilter(IdentityFilter.java:40)
    at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
    at org.jboss.seam.web.MultipartFilter.doFilter(MultipartFilter.java:90)
    at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
    at org.jboss.seam.web.ExceptionFilter.doFilter(ExceptionFilter.java:64)
    at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
    at org.jboss.seam.web.RedirectFilter.doFilter(RedirectFilter.java:45)
    at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
    at org.ajax4jsf.webapp.BaseXMLFilter.doXmlFilter(BaseXMLFilter.java:178)
    at org.ajax4jsf.webapp.BaseFilter.handleRequest(BaseFilter.java:290)
    at org.ajax4jsf.webapp.BaseFilter.processUploadsAndHandleRequest(BaseFilter.java:368)
    at org.ajax4jsf.webapp.BaseFilter.doFilter(BaseFilter.java:495)
    at org.jboss.seam.web.Ajax4jsfFilter.doFilter(Ajax4jsfFilter.java:56)
    at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
    at org.jboss.seam.web.LoggingFilter.doFilter(LoggingFilter.java:60)
    at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
    at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:73)
    at org.jboss.seam.servlet.SeamFilter.doFilter(SeamFilter.java:158)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
    at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
    at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:235)
    at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
    at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:190)
    at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:433)
    at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:92)
    at org.jboss.web.tomcat.security.SecurityContextEstablishmentValve.process(SecurityContextEstablishmentValve.java:126)
    at org.jboss.web.tomcat.security.SecurityContextEstablishmentValve.invoke(SecurityContextEstablishmentValve.java:70)
    at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
    at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
    at org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:158)
    at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
    at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:330)
    at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:829)
    at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:598)
    at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
    at java.lang.Thread.run(Thread.java:619)
    Caused by: java.lang.RuntimeException: Exception invoking jsxFunction_send
    at net.sourceforge.htmlunit.corejs.javascript.MemberBox.invoke(MemberBox.java:198)
    at net.sourceforge.htmlunit.corejs.javascript.FunctionObject.call(FunctionObject.java:479)
    at net.sourceforge.htmlunit.corejs.javascript.Interpreter.interpretLoop(Interpreter.java:1702)
    at net.sourceforge.htmlunit.corejs.javascript.Interpreter.interpret(Interpreter.java:845)
    at net.sourceforge.htmlunit.corejs.javascript.InterpretedFunction.call(InterpretedFunction.java:164)
    at net.sourceforge.htmlunit.corejs.javascript.ContextFactory.doTopCall(ContextFactory.java:429)
    at com.gargoylesoftware.htmlunit.javascript.HtmlUnitContextFactory.doTopCall(HtmlUnitContextFactory.java:269)
    at net.sourceforge.htmlunit.corejs.javascript.ScriptRuntime.doTopCall(ScriptRuntime.java:3162)
    at net.sourceforge.htmlunit.corejs.javascript.InterpretedFunction.call(InterpretedFunction.java:162)
    at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine.callFunction(JavaScriptEngine.java:559)
    at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine$4.doRun(JavaScriptEngine.java:524)
    at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine$HtmlUnitContextAction.run(JavaScriptEngine.java:595)
    ... 82 more
    Caused by: java.lang.RuntimeException: Exception invoking jsxSet_location
    at net.sourceforge.htmlunit.corejs.javascript.MemberBox.invoke(MemberBox.java:198)
    at net.sourceforge.htmlunit.corejs.javascript.ScriptableObject.putImpl(ScriptableObject.java:2470)
    at net.sourceforge.htmlunit.corejs.javascript.ScriptableObject.put(ScriptableObject.java:360)
    at com.gargoylesoftware.htmlunit.javascript.SimpleScriptableProxy.put(SimpleScriptableProxy.java:125)
    at net.sourceforge.htmlunit.corejs.javascript.ScriptableObject.putProperty(ScriptableObject.java:2075)
    at net.sourceforge.htmlunit.corejs.javascript.ScriptRuntime.setObjectProp(ScriptRuntime.java:1626)
    at net.sourceforge.htmlunit.corejs.javascript.ScriptRuntime.setObjectProp(ScriptRuntime.java:1616)
    at net.sourceforge.htmlunit.corejs.javascript.Interpreter.interpretLoop(Interpreter.java:1408)
    at net.sourceforge.htmlunit.corejs.javascript.Interpreter.interpret(Interpreter.java:845)
    at net.sourceforge.htmlunit.corejs.javascript.InterpretedFunction.call(InterpretedFunction.java:164)
    at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine.callFunction(JavaScriptEngine.java:559)
    at com.gargoylesoftware.htmlunit.javascript.host.xml.XMLHttpRequest.setState(XMLHttpRequest.java:181)
    at com.gargoylesoftware.htmlunit.javascript.host.xml.XMLHttpRequest.doSend(XMLHttpRequest.java:525)
    at com.gargoylesoftware.htmlunit.javascript.host.xml.XMLHttpRequest.jsxFunction_send(XMLHttpRequest.java:452)
    at sun.reflect.GeneratedMethodAccessor1179.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at net.sourceforge.htmlunit.corejs.javascript.MemberBox.invoke(MemberBox.java:172)
    ... 93 more

    ....

    == CALLING JAVASCRIPT ==

    function (O) {
    if (!Event || !Event.extend || (O.eventName O.eventName != I)) {
    return false;
    }
    Event.extend(O);
    K.call(J, O);
    }

    ======= EXCEPTION END ========

    DB:3.72:Exception Invoking Jsxfunction_Send Bug In Jsfunit Or Htmlunit??? d3


    ole . wrote:

    You're right!

    It was an error in my application

    Glad JSFUnit could help you find it.

    Have a good weekend,

    Stan

  • RELEVANCY SCORE 3.71

    DB:3.71:Problems With Richfaces Onblur Testing zm



    Hi,We have input fields that replace/convert Dates when onBlur event in inputFields.In our JSFUnit tests we enter the text (via client.setValue) in the inputField then we enter other text in other fields.If we then check the value on the client, the field has still the original value, not the converted one.How can we test this kind of ajax behavior with JSFUnit ?We are not sure how to do it as it seems the javascript event is not fired...I guess it is an htmlunit issue but we wanted to know if anyone tried this successfully with JSFUnit and what is the best way to test this kind of ajax behavior...Thanks in advance for your help,--Eric

    DB:3.71:Problems With Richfaces Onblur Testing zm


    Hi Stan,I can confirm it DOESN'T WORK if i remove the focus()/.blur() sequence.Again, Thanks for your QUICK responses mate !--Eric

  • RELEVANCY SCORE 3.69

    DB:3.69:How To Make Automatic Funtional Testing For A Wokflow Web Ap 91



    For a Web Application except for wokflow, it's easy to automate usingDbUnit + HttpUnit(or HtmlUnit). Because a submit action is tested after setting a little pre-conditions.But for a wokflow Web Application, it's exhausted to set pre-conditions from state_n to state_n+1.Please give some hints.Thanks.

    DB:3.69:How To Make Automatic Funtional Testing For A Wokflow Web Ap 91


    But for a wokflow Web Application, it's exhausted to set pre-conditions from state_n to state_n+1.Can you elaborate... I miss the difference with normal webapps How/when do you set preconditions, and why do you think this is not possible with workflow (framework) based applications?

  • RELEVANCY SCORE 3.69

    DB:3.69:Unit Testing Uix xs


    Hi Steve

    Can you advice me a tool for unit testing my UIX pages apart from HttpUnit and HtmlUnit frameworks?

    HttpUnit gives javascript errors. HtmlUnit is not practical for the complex HTML produced from a UIX page.

    Thanks

  • RELEVANCY SCORE 3.69

    DB:3.69:Using Of Htmlunit Library dm


    Hi
    I am using of htmlunit library and Firebug addon for firefox and for example fill textbox in google and click search with this code:
    public static void main() throws IOException{
    WebClient browser;
    browser = new WebClient();
    HtmlPage page;
    page=(HtmlPage) browser.getPage("www.google.com");
    HtmlForm form=page.getFormByName("f");

    form.getInputByName("q").setValueAttribute("search topic");
    page=(HtmlPage) form.getInputByName("btnG").click();
    }
    but i have problem with componet like component that we write our mail content in the yahoo that probably use javascript instead of simple textArea
    and i want help me that how i can fill this component outomatic with htmlunit library or other thing?
    thanks

    DB:3.69:Using Of Htmlunit Library dm

    but i have problem with componet like component that we write our mail content in the yahoo Please restate that in standard English.
    how i can fill this component outomatic with htmlunit library or other thing?Ditto.

  • RELEVANCY SCORE 3.58

    DB:3.58:Testing Deployment Of Pre-Built .War To Various Web Servers 1c



    Hi testing enthusiasts,

    I'm itching to automate deployment testing of several Errai quickstart projects. Here's what we're doing by hand:

    * Launch in Dev Mode and poke at the app (this can be handled already by the tooling we have)

    * Build a WAR and deploy it to Jetty 7, Jetty 8, Tomcat 7, JBoss AS 6, and JBoss AS 7. (Each server has its own Maven profile, so we need to do a clean build for each)

    * Test that "mvn clean" properly deletes all generated files, bringing the project back to its pristine state

    HtmlUnit is powerful enough to verify the app deployed correctly. Real browser testing is not important because the quickstarts are not intricately styled.

    I feel like Arquillian has probably solved this problem already. Can I use Arquillian to deploy the target/${myapp}.war to an Arquillian Managed container, then load the page and poke at the DOM (fill in a form field, press a button, check for response) with HtmlUnit? It's a different use case than the docs and tutorials focus on: I explicitly don't want to use ShrinkWrap in this case, because the thing I'm testing is that the .war was assembled correctly. I also don't want to inject anything into my test case. I just want to load the page into HtmlUnit and poke at it.

    I greatly appreciate any and all ideas about how to automate away this tedious job.

    -Jonathan

    DB:3.58:Testing Deployment Of Pre-Built .War To Various Web Servers 1c


    It turns out, there was already a JIRA...it just was before its time

    https://issues.jboss.org/browse/ARQ-74 - Base test deployment on project in which test is run

  • RELEVANCY SCORE 3.58

    DB:3.58:Arquillian - Javascript Integration Module Status? k1



    Hi,

    I've been looking for a way to "integration" test JavaScript with a (Java) REST service. I noticed one or two posts about a JavaScript testing module (Jan - Apr 2012), but haven't been able to find other information.

    So, question 1: any word on the status of this?

    What I'd like to do is have an (Arquillian) test that does the following:

    1. Starts an (Arquillian) container for my REST service

    2. Calls some JavaScript

    2a. The JavaScript calls one (or more) of my REST service methods.

    3. My REST service beans do their stuff and reply back to the JavaScript.

    4. This is a Unit test, so I measure whatever comes out of the JavaScript [1].

    4a. Or I measure some of the side effects of the REST service.

    [1] Haven't really thought about that yet -- to start with it'd be nice to just get a "happy-flow" test that doesn't throw exceptions.

    It doesn't look like Arquillian supports this at the moment. I've been thinking about using HTMLUnit to run the JavaScript, although I

    So, question 2: It looks like Luk Fryč's post here details exactly that: a JavaScript module for Arquillian. Is that correct?

    Thanks!

    Marco

    DB:3.58:Arquillian - Javascript Integration Module Status? k1


    Hey Marco,

    there are some separated samples for JAX-RS and EJB here:

    https://github.com/arquillian/arquillian-showcase/

  • RELEVANCY SCORE 3.58

    DB:3.58:H:Form Onkeypress Not Working When Mixed With Adf Components x8


    Hello,

    We have started our development of jsf pages using sun components. And now we are mixing in some ADF as well.

    I have a search form which uses the h:form onkeypress="call_js_function()" id=....

    When we turned on ADF, the onkeypress was not working anymore.

    And I do not want to use af:form because it changes the rendered ids on the page, and we have bunch of htmlunit tests that are using those ids.

    Any solutions?

    DB:3.58:H:Form Onkeypress Not Working When Mixed With Adf Components x8

    Hello,

    We have started our development of jsf pages using sun components. And now we are mixing in some ADF as well.

    I have a search form which uses the h:form onkeypress="call_js_function()" id=....

    When we turned on ADF, the onkeypress was not working anymore.

    And I do not want to use af:form because it changes the rendered ids on the page, and we have bunch of htmlunit tests that are using those ids.

    Any solutions?

  • RELEVANCY SCORE 3.58

    DB:3.58:Error In Building Jboss 7.2.0.Final + Gatein Portal 3.6.0.Final k7



    Hello everyone!

    When I build Jboss AS 7.2.0.Final with Gatein Portal 3.6.0.Final I get this error

    [INFO] GateIn JBoss AS 7.x.x packaging ................... SUCCESS [0.042s]

    [INFO] GateIn - Portlet Container (JBoss AS7 Extension) .. SUCCESS [15.919s]

    [INFO] GateIn - Portlet Container (JBoss AS7 Extension Modules) FAILURE [17.037s]

    [INFO] GateIn for JBoss AS 7.x.x packaging ............... SKIPPED

    [INFO] TestSuite for GateIn .............................. SKIPPED

    [INFO] Selenium Sniff Test for GateIn .................... SKIPPED

    [INFO] GateIn Portal Examples - WebUI based samples ...... SKIPPED

    [INFO] HTMLUnit Tests for GateIn ......................... SKIPPED

    [INFO] Selenium UI Tests for GateIn ...................... SKIPPED

    [INFO] ------------------------------------------------------------------------

    [INFO] BUILD FAILURE

    [INFO] ------------------------------------------------------------------------

    [INFO] Total time: 8:03.012s

    [INFO] Finished at: Thu Aug 08 12:34:45 MSK 2013

    [INFO] Final Memory: 141M/572M

    [INFO] ------------------------------------------------------------------------

    [ERROR] Failed to execute goal org.apache.maven.plugins:maven-antrun-plugin:1.6:run (build-dist) on project jboss-as7-integration-modules: An Ant BuildException has occured: The following error occurred while executing this line:

    [ERROR] /home/ci/workspace/kszkipo-gatein-dst/target/kszkipo-gatein/packaging/jboss-as7/modules/build.xml:65: The following error occurred while executing this line:

    [ERROR] /home/ci/workspace/kszkipo-gatein-dst/target/kszkipo-gatein/packaging/jboss-as7/modules/lib.xml:41: Unable to create javax script engine for javascript

    [ERROR] - [Help 1]

    [ERROR]

    [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.

    [ERROR] Re-run Maven using the -X switch to enable full debug logging.

    [ERROR]

    [ERROR] For more information about the errors and possible solutions, please read the following articles:

    [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException

    [ERROR]

    [ERROR] After correcting the problems, you can resume the build with the command

    [ERROR] mvn goals -rf :jboss-as7-integration-modules

    One of my colleagues said, that this problem is connected with JDK.

    He said that building JbossAs + Gtn 3.6.0.Final is not compatible with OpenJDK. Only versions Gatein 3.5.5.Final or lower are acceptable.

    Is it really true? Is there any other solution?

    Please help me! Thak you in advance!

    DB:3.58:Error In Building Jboss 7.2.0.Final + Gatein Portal 3.6.0.Final k7


    To Marko - thanks! I'll try to do as you said.

    To Matt - yep. No problems. I'll post here full log, but not today. Only tomorrow.

    P.S.

    In my work I can use only OpenJDK, and only Jboss 7.2.0.Final. Other versions of software listed below are not acceptable.

  • RELEVANCY SCORE 3.58

    DB:3.58:Samples? m1



    Hi,I have JSFUnit running after following the Getting Started Guide. I'm looking for some more substantial sample test code. I've looked at the Documentation Wiki, and that helps, but I'd like to see a big sample that shows transitioning from page to page, parsing the response page, finding entries in tables, responding to Javascript popup windows...Should I be looking the HTMLUnit for that documentation? Is it wise for me to depend on the HTMLUnit features (I thought I read somewhere that JSFUnit is moving away from HTMLUnit - or is it HTTPUnit?)Thanks

    DB:3.58:Samples? m1


    "Wolfgang Knauf" wrote:Hi,BTW, the link http://hudson.qa.jboss.com/hudson/job/JSFUnit/ on http://www.jboss.org/jsfunit/demo.html regarding continuous integration appears dead.it seems to be http://hudson.jboss.org/hudson/job/JSFUnit/Best regardsWolfgangThanks guys. The link is fixed now. Stan

  • RELEVANCY SCORE 3.58

    DB:3.58:Getting Started Jar Version Incompatility mj



    Hi,I'm following the getting startedhttp://www.jboss.org/jsfunit/gettingstarted.htmland having a collision apparently between the version of aspectj that cactus is pulling in (1.2.1) vs. the version that we want to use (1.5.4 or 1.6.1).The jars in WEB-INF/lib are as follows:
    1 total 59925 2 -rwx------ 1 henry_katz mkpasswd 371142 Oct 1 09:19 CRDBJavaServerCommon-1197.jar 3 -rwx------ 1 henry_katz mkpasswd 439 Oct 1 09:19 CRDBXMLExternal-1197.jar 4 -rwx------ 1 henry_katz mkpasswd 127614 Oct 1 09:19 CRDBXMLServer-1197.jar 5 -rwx------ 1 henry_katz mkpasswd 168388 Oct 1 09:19 Concurrent-1197.jar 6 -rwx------ 1 henry_katz mkpasswd 2162 Oct 1 09:19 CrystalCommon-1197.jar 7 -rwx------ 1 henry_katz mkpasswd 69587 Oct 1 09:19 CrystalContentModels-1197.jar 8 -rwx------ 1 henry_katz mkpasswd 82468 Oct 1 09:19 CrystalDatabaseConnectors-1197.jar 9 -rwx------ 1 henry_katz mkpasswd 651313 Oct 1 09:19 CrystalExporters-1197.jar 10 -rwx------ 1 henry_katz mkpasswd 41698 Oct 1 09:19 CrystalExportingBase-1197.jar 11 -rwx------ 1 henry_katz mkpasswd 597428 Oct 1 09:19 CrystalFormulas-1197.jar 12 -rwx------ 1 henry_katz mkpasswd 320180 Oct 1 09:19 CrystalQueryEngine-1197.jar 13 -rwx------ 1 henry_katz mkpasswd 2469655 Oct 1 09:19 CrystalReportEngine-1197.jar 14 -rwx------ 1 henry_katz mkpasswd 439743 Oct 1 09:19 CrystalReportingCommon-1197.jar 15 -rwx------ 1 henry_katz mkpasswd 248368 Oct 1 09:19 MetafileRenderer-1197.jar 16 -rwx------ 1 henry_katz mkpasswd 286094 Oct 1 09:19 ReportPrinter-1197.jar 17 -rwx------ 1 henry_katz mkpasswd 816947 Oct 1 09:19 ReportViewer-1197.jar 18 -rwx------ 1 henry_katz mkpasswd 21921 Oct 1 09:19 Serialization-1197.jar 19 -rwx------ 1 henry_katz mkpasswd 3777 Oct 1 09:19 URIUtil-1197.jar 20 -rwx------ 1 henry_katz mkpasswd 544682 Feb 11 2008 acegi-security-1.0.6.jar 21 -rwx------ 1 henry_katz mkpasswd 14075 Mar 6 2008 acegijsf-1.1.2.jar 22 -rwx------ 1 henry_katz mkpasswd 63018 May 6 2008 activation-1.1.jar 23 -rwx------ 1 henry_katz mkpasswd 1034049 Mar 6 2008 ant-1.6.5.jar 24 -rwx------ 1 henry_katz mkpasswd 443432 Mar 6 2008 antlr-2.7.6.jar 25 -rwx------ 1 henry_katz mkpasswd 26361 Mar 6 2008 asm-1.5.3.jar 26 -rwx------ 1 henry_katz mkpasswd 16757 Mar 6 2008 asm-attrs-1.5.3.jar 27 -rwx------ 1 henry_katz mkpasswd 41534 Nov 26 10:52 aspectjrt-1.2.1.jar 28 -rwx------ 1 henry_katz mkpasswd 114926 Aug 25 13:19 aspectjrt-1.6.1.jar 29 -rwx------ 1 henry_katz mkpasswd 8958838 Aug 25 13:19 aspectjtools-1.6.1.jar 30 -rwx------ 1 henry_katz mkpasswd 1567728 Dec 1 13:54 aspectjweaver-1.6.1.jar 31 -rwx------ 1 henry_katz mkpasswd 63966 Mar 6 2008 avalon-framework-4.1.3.jar 32 -rwx------ 1 henry_katz mkpasswd 331716 Jun 27 11:38 backport-util-concurrent-3.1.jar 33 -rwx------ 1 henry_katz mkpasswd 490136 Mar 6 2008 c3p0-0.9.0.4.jar 34 -rwx------ 1 henry_katz mkpasswd 259182 Oct 31 11:20 cactus-13-1.7.1.jar 35 -rwx------ 1 henry_katz mkpasswd 180327 Oct 31 11:20 cactus-ant-13-1.7.1.jar 36 -rwx------ 1 henry_katz mkpasswd 359270 Oct 31 11:20 cargo-0.5.jar 37 -rwx------ 1 henry_katz mkpasswd 1836822 Oct 1 09:19 cecore-1197.jar 38 -rwx------ 1 henry_katz mkpasswd 209377 Oct 1 09:19 celib-1197.jar 39 -rwx------ 1 henry_katz mkpasswd 282338 Mar 6 2008 cglib-2.1_3.jar 40 -rwx------ 1 henry_katz mkpasswd 188671 Mar 6 2008 commons-beanutils-1.7.0.jar 41 -rwx------ 1 henry_katz mkpasswd 168760 Oct 1 09:18 commons-beanutils-core-1.7.0.jar 42 -rwx------ 1 henry_katz mkpasswd 46725 Mar 6 2008 commons-codec-1.3.jar 43 -rwx------ 1 henry_katz mkpasswd 559366 Mar 6 2008 commons-collections-3.1.jar 44 -rwx------ 1 henry_katz mkpasswd 163822 Oct 1 09:18 commons-configuration-1.2.jar 45 -rwx------ 1 henry_katz mkpasswd 168446 Mar 6 2008 commons-digester-1.6.jar 46 -rwx------ 1 henry_katz mkpasswd 76685 Oct 1 09:18 commons-discovery-0.4.jar 47 -rwx------ 1 henry_katz mkpasswd 112341 Mar 6 2008 commons-el-1.0.jar 48 -rwx------ 1 henry_katz mkpasswd 22379 Mar 6 2008 commons-fileupload-1.0.jar 49 -rwx------ 1 henry_katz mkpasswd 305001 Oct 31 11:20 commons-httpclient-3.1.jar 50 -rwx------ 1 henry_katz mkpasswd 109043 Oct 23 09:08 commons-io-1.4.jar 51 -rwx------ 1 henry_katz mkpasswd 207723 Mar 6 2008 commons-lang-2.1.jar 52 -rwx------ 1 henry_katz mkpasswd 52915 Mar 6 2008 commons-logging-1.1.jar 53 -rwx------ 1 henry_katz mkpasswd 26202 Oct 1 09:18 commons-logging-api-1.0.4.jar 54 -rwx------ 1 henry_katz mkpasswd 174535 Mar 6 2008 commons-math-1.1.jar 55 -rwx------ 1 henry_katz mkpasswd 138956 Mar 6 2008 commons-validator-1.3.1.jar 56 -rwx------ 1 henry_katz mkpasswd 16010 Dec 1 14:29 cre-aspects-1.0.jar 57 -rwx------ 1 henry_katz mkpasswd 7285 Dec 1 14:29 cre-commons-1.0.jar 58 -rwx------ 1 henry_katz mkpasswd 178353 Dec 1 14:30 cre-configuration-1.0.jar 59 -rwx------ 1 henry_katz mkpasswd 106127 Dec 1 14:29 cre-dao-1.0.jar 60 -rwx------ 1 henry_katz mkpasswd 721489 Dec 1 14:30 cre-dataupload-1.0.jar 61 -rwx------ 1 henry_katz mkpasswd 378580 Dec 1 14:29 cre-entities-1.0.jar 62 -rwx------ 1 henry_katz mkpasswd 12305 Dec 1 14:30 cre-manager-1.0.jar 63 -rwx------ 1 henry_katz mkpasswd 447131 Dec 1 14:30 cre-reports-1.0.jar 64 -rwx------ 1 henry_katz mkpasswd 34519 Dec 1 14:29 cre-rules-1.0.jar 65 -rwx------ 1 henry_katz mkpasswd 11706 Dec 1 14:30 cre-scoringservice-1.0.jar 66 -rwx------ 1 henry_katz mkpasswd 38294 Dec 1 14:30 cre-security-1.0.jar 67 -rwx------ 1 henry_katz mkpasswd 14442 Dec 1 14:30 cre-workflow-1.0.jar 68 -rwx------ 1 henry_katz mkpasswd 253950 Oct 31 11:20 cssparser-0.9.5.jar 69 -rwx------ 1 henry_katz mkpasswd 313898 Mar 6 2008 dom4j-1.6.1.jar 70 -rwx------ 1 henry_katz mkpasswd 505805 Mar 18 2008 dwr-2.0.2.jar 71 -rwx------ 1 henry_katz mkpasswd 1985391 Oct 1 09:19 ebus405-1197.jar 72 -rwx------ 1 henry_katz mkpasswd 242693 Jun 27 11:38 ehcache-1.4.0.jar 73 -rwx------ 1 henry_katz mkpasswd 36962 Mar 6 2008 facestrace-0.8.1.jar 74 -rwx------ 1 henry_katz mkpasswd 2198080 Oct 16 13:19 hibernate-3.2.1.ga.jar 75 -rwx------ 1 henry_katz mkpasswd 265130 Feb 11 2008 hibernate-annotations-3.3.0.ga.jar 76 -rwx------ 1 henry_katz mkpasswd 66426 Feb 11 2008 hibernate-commons-annotations-3.3.0.ga.jar 77 -rwx------ 1 henry_katz mkpasswd 2266278 Oct 16 13:12 hibernate-core-3.3.0.GA.jar 78 -rwx------ 1 henry_katz mkpasswd 649747 Oct 31 11:20 htmlunit-2.2.jar 79 -rwx------ 1 henry_katz mkpasswd 558115 Oct 31 11:20 htmlunit-core-js-2.2.jar 80 -rwx------ 1 henry_katz mkpasswd 3233439 Oct 1 17:18 icu4j-1197.jar 81 -rwx------ 1 henry_katz mkpasswd 89967 May 6 2008 jaxb-api-2.1.jar 82 -rwx------ 1 henry_katz mkpasswd 88562 Oct 31 11:21 jboss-jsfunit-analysis-1.0.0.Beta3.jar 83 -rwx------ 1 henry_katz mkpasswd 13022 Oct 31 11:21 jboss-jsfunit-ant-1.0.0.Beta3.jar 84 -rwx------ 1 henry_katz mkpasswd 68709 Oct 31 11:20 jboss-jsfunit-core-1.0.0.Beta3.jar 85 -rwx------ 1 henry_katz mkpasswd 16989 Oct 31 11:21 jboss-jsfunit-richfaces-1.0.0.Beta3.jar 86 -rwx------ 1 henry_katz mkpasswd 214624 Mar 7 2008 jep-3.2.0.jar 87 -rwx------ 1 henry_katz mkpasswd 253824 Oct 1 09:19 jrcadapter-1197.jar 88 -rwx------ 1 henry_katz mkpasswd 13234 Oct 1 09:19 jrcerom-1197.jar 89 -rwx------ 1 henry_katz mkpasswd 756883 Oct 31 11:20 js-1.7R1.jar 90 -rwx------ 1 henry_katz mkpasswd 300771 Apr 17 2008 jsf-facelets-1.1.14.jar 91 -rwx------ 1 henry_katz mkpasswd 50493 Mar 6 2008 jsp-api-2.0.jar 92 -rwx------ 1 henry_katz mkpasswd 8277 Jun 27 11:38 jsr107cache-1.0.jar 93 -rwx------ 1 henry_katz mkpasswd 13236 Oct 16 13:12 jta-1.1.jar 94 -rwx------ 1 henry_katz mkpasswd 120699 Oct 31 11:21 juel-2.1.0.jar 95 -rwx------ 1 henry_katz mkpasswd 121070 Mar 6 2008 junit-3.8.1.jar 96 -rwx------ 1 henry_katz mkpasswd 56890 Oct 1 09:19 keycodeDecoder-1197.jar 97 -rwx------ 1 henry_katz mkpasswd 72150 Mar 6 2008 logkit-1.0.1.jar 98 -rwx------ 1 henry_katz mkpasswd 115784 Oct 31 11:20 nekohtml-1.9.8.jar 99 -rwx------ 1 henry_katz mkpasswd 65261 Mar 6 2008 oro-2.0.8.jar 100 -rwx------ 1 henry_katz mkpasswd 52114 Mar 6 2008 persistence-api-1.0.jar 101 -rwx------ 1 henry_katz mkpasswd 2073 Jun 17 13:51 phaseTracker-unknown.jar 102 -rwx------ 1 henry_katz mkpasswd 964285 Aug 6 11:53 poi-3.0.2-FINAL.jar 103 -rwx------ 1 henry_katz mkpasswd 96093 Oct 1 09:19 pullparser-1197.jar 104 -rwx------ 1 henry_katz mkpasswd 524116 Oct 1 09:19 rasapp-1197.jar 105 -rwx------ 1 henry_katz mkpasswd 965649 Oct 1 09:19 rascore-1197.jar 106 -rwx------ 1 henry_katz mkpasswd 168454 Oct 16 13:24 richfaces-api-3.2.2.GA.jar 107 -rwx------ 1 henry_katz mkpasswd 1494439 Oct 16 13:24 richfaces-impl-3.2.2.GA.jar 108 -rwx------ 1 henry_katz mkpasswd 2525798 Oct 16 13:24 richfaces-ui-3.2.2.GA.jar 109 -rwx------ 1 henry_katz mkpasswd 90701 Oct 1 09:19 rpoifs-1197.jar 110 -rwx------ 1 henry_katz mkpasswd 15808 Oct 31 11:20 sac-1.3.jar 111 -rwx------ 1 henry_katz mkpasswd 332055 May 6 2008 sjsxp-1.0.1.jar 112 -rwx------ 1 henry_katz mkpasswd 15345 Feb 13 2008 slf4j-api-1.4.3.jar 113 -rwx------ 1 henry_katz mkpasswd 7449 Oct 16 13:25 slf4j-simple-1.4.3.jar 114 -rwx------ 1 henry_katz mkpasswd 2838649 Oct 16 13:14 spring-2.5.jar 115 -rwx------ 1 henry_katz mkpasswd 161270 Feb 11 2008 spring-aop-1.2.9.jar 116 -rwx------ 1 henry_katz mkpasswd 233138 Feb 11 2008 spring-beans-1.2.9.jar 117 -rwx------ 1 henry_katz mkpasswd 110531 Feb 11 2008 spring-context-1.2.9.jar 118 -rwx------ 1 henry_katz mkpasswd 126101 Feb 11 2008 spring-core-1.2.9.jar 119 -rwx------ 1 henry_katz mkpasswd 95425 Feb 11 2008 spring-dao-1.2.9.jar 120 -rwx------ 1 henry_katz mkpasswd 187036 Feb 11 2008 spring-jdbc-1.2.9.jar 121 -rwx------ 1 henry_katz mkpasswd 141473 Feb 11 2008 spring-remoting-1.2.9.jar 122 -rwx------ 1 henry_katz mkpasswd 166145 Feb 11 2008 spring-support-1.2.9.jar 123 -rwx------ 1 henry_katz mkpasswd 26514 Mar 6 2008 stax-api-1.0.1.jar 124 -rwx------ 1 henry_katz mkpasswd 26310 Oct 16 13:24 stax-api-1.0.jar 125 -rwx------ 1 henry_katz mkpasswd 3755 Mar 6 2008 tag-handlers-0.9.jar 126 -rwx------ 1 henry_katz mkpasswd 2941389 Feb 11 2008 tomahawk-1.1.6.jar 127 -rwx------ 1 henry_katz mkpasswd 2730442 Oct 1 09:19 xalan-2.7.0.jar 128 -rwx------ 1 henry_katz mkpasswd 895924 Mar 6 2008 xercesImpl-2.4.0.jar 129 -rwx------ 1 henry_katz mkpasswd 109318 Sep 4 09:27 xml-apis-1.0.b2.jarThis all boils down to spring 2.5 being unable to load an aspectj method: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'logoutFilter' defined in class path resource [spring-cre-web.xml]: Cannot resolve reference to bean 'rememberMeServices' while setting constructor argument with key [0]; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'rememberMeServices' defined in class path resource [spring-cre-web.xml]: Cannot resolve reference to bean 'userDetailsService' while setting bean property 'userDetailsService'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'userDetailsService' defined in class path resource [spring-cre-security.xml]: Cannot resolve reference to bean 'securityManager' while setting constructor argument; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'securityManager' defined in class path resource [spring-cre-security.xml]: Cannot resolve reference to bean 'membershipDao' while setting constructor argument; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'membershipDao' defined in class path resource [spring-cre-dao.xml]: Cannot resolve reference to bean 'hibernateTemplate' while setting bean property 'hibernateTemplate'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'hibernateTemplate' defined in class path resource [spring-cre-dao.xml]: Cannot resolve reference to bean 'sessionFactory' while setting bean property 'sessionFactory'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sessionFactory' defined in class path resource [spring-cre-dao.xml]: Invocation of init method failed; nested exception is java.lang.NoSuchMethodError: org.aspectj.runtime.reflect.Factory.makeMethodSig(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)Lorg/aspectj/lang/reflect/MethodSignature; Can cactus use the more recent aspectj as per above? Thanks, Henry

    DB:3.58:Getting Started Jar Version Incompatility mj


    Stan,Thanks for quick reply. My initial exclusion of aspectj within the cactus dependency was successful in removing aspectj v. 1.2.1. Have some moreissues to identify for followup posts.Will scour the cactus archives as well.Regards,Henry

  • RELEVANCY SCORE 3.58

    DB:3.58:Design: Htmlunit And Our Richfacesclient 3c



    It's clear that we will need a new version of the RichFacesClient that uses the new HtmlUnit-based JSFClientSession. The good news is, this should be MUCH simpler than the old HttpUnit based RichFacesClient.I have a few goals in mind for this:1) It should be easy to use2) It should be complete. That is, it should provide support for all RichFaces components.3) It should serve as a model by which someone can create a client for other JSF component libraries.Feel free to add other goals if I've left something out.I want to discuss the design of the new RichFacesClient. The old one uses simple delegation when it needs access to the core JSFClientSession. So you create the RichFacesClient like this:
    RichFacesClient richClient = new RichFacesClient(jsfClientSession);

    DB:3.58:Design: Htmlunit And Our Richfacesclient 3c


    Hey guys,I aggree with bgregory on this one. I think the delegation solution is more intuitive and plugable.

  • RELEVANCY SCORE 3.58

    DB:3.58:How To Suppress Htmlunit Warnings About Javascript? aj



    I already posted this question at http://stackoverflow.com/questions/5196319 and will duplicate it here, if I may. The problem is that I have jQuery javascript file as part of my web application. This file is full of JS errors and I can't do anything with this, since it's a third-party product. Is it possible to teach HTMLUnit to ignore this particular file? I'm using JSFUnit, and is not familiar with HTMLUnit at all.

    DB:3.58:How To Suppress Htmlunit Warnings About Javascript? aj


    Just create a JSFSessionFactory that dispenses the JSFSession object with a WebClient that is set up the way you want it.

    Stan

  • RELEVANCY SCORE 3.58

    DB:3.58:Is Selenium Htmlunitdriver Compatible With Fusion Applications? cx


    Hi,

    I am trying to test the Fusion application using the Selenium HtmlUnit web driver. But it fails to recognize some of the ADF components like the ADF table.

    I am unable to access it. Can anybody please guide me on this.

    Regards
    Apoorva

    DB:3.58:Is Selenium Htmlunitdriver Compatible With Fusion Applications? cx

    I might eat my words later but if i m not wrong HtmlUnit has its own style of working with JS ? If so then there might be some issues like you mentioned.

  • RELEVANCY SCORE 3.58

    DB:3.58:Jsfunit 2.0.0.Beta3-Snapshot Error Including Javascript Files dd



    Hi all!

    I'm evaluating JSFUnit framework to test our build Jsf webapps.

    We have found it very usefull and helpfull but then there's that little error that

    happens when a javascript file is included inside a jsf page.

    I just added inside the index.xhtml the following lines (in the arquillian-hellojsf project):

    head
    script type="text/javascript" src="#{facesContext.externalContext.requestContextPath}/js/hello.js"/script
    /head

    When executing the test with an embedded tomcat it just throws the error:

    com.gargoylesoftware.htmlunit.FailingHttpStatusCodeException:
    404 Not Found for http://localhost:8080/01c34205-2186-4e9e-bd36-d6986d17b9a2/js/hello.js

    When executing the initial page it can't find the js file.

    Researching for the problem, It seems that the htmlunit framework has some problems when executing the request and
    getting the js files included. Some workaround to solve the problem is to
    override the webclient request call and return a status OK when requesting js files, done with a subclass of
    SimpleInitialRequestStrategy and overriding the method Page doInitialRequest.
    When trying this approach inside JsfUnit, it seems that the request call is done before the subclass of
    SimpleInitialRequestStrategy is executing, so the code inside Page doInitialRequest is never executed,
    resulting in the same 404 Not Found error.

    Anybody can point me another workaround to solve the js files included in the jsf pages?

    Thanks!

    DB:3.58:Jsfunit 2.0.0.Beta3-Snapshot Error Including Javascript Files dd


    Hi,

    I face a similar problem, have you found any solution?

    I use RichFaces 4.1.0.

    On the server console appears:

    17:56:08,454 INFO [org.jboss.as.server] (management-handler-thread - 51) JBAS018559: Deployed "test.war"

    17:56:35,562 WARN [com.gargoylesoftware.htmlunit.IncorrectnessListenerImpl] (http-localhost-127.0.0.1-8080-3) Obsolete content type encountered: 'text/javascript'.

    17:56:36,670 WARN [com.gargoylesoftware.htmlunit.javascript.host.html.HTMLDocument] (http-localhost-127.0.0.1-8080-3) getElementById(script1334004996666) did a getElementByName for Internet Explorer

    17:56:36,692 ERROR [com.gargoylesoftware.htmlunit.javascript.StrictErrorReporter] (http-localhost-127.0.0.1-8080-3) runtimeError: message=[The data necessary to complete this operation is not yet available.] sourceName=[http://127.0.0.1:8080/test/javax.faces.resource/jquery.js.jsf] line=[945] lineSource=[null] lineOffset=[0]

    17:56:44,581 WARN [com.gargoylesoftware.htmlunit.IncorrectnessListenerImpl] (http-localhost-127.0.0.1-8080-3) Obsolete content type encountered: 'text/javascript'.

    17:56:44,635 INFO [com.gargoylesoftware.htmlunit.WebClient] (http-localhost-127.0.0.1-8080-3) statusCode=[404] contentType=[text/html]

    and on the test log:

    java.lang.RuntimeException: Could not inject method parameters

    at org.jboss.jsfunit.arquillian.container.JSFUnitTestEnricher.resolve(JSFUnitTestEnricher.java:89)

    at org.jboss.arquillian.container.test.impl.execution.LocalTestExecuter.enrichArguments(LocalTestExecuter.java:94)

    at org.jboss.arquillian.container.test.impl.execution.LocalTestExecuter.execute(LocalTestExecuter.java:60)

    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)

    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)

    at java.lang.reflect.Method.invoke(Method.java:597)

    at org.jboss.arquillian.core.impl.ObserverImpl.invoke(ObserverImpl.java:90)

    at org.jboss.arquillian.core.impl.EventContextImpl.invokeObservers(EventContextImpl.java:99)

    at org.jboss.arquillian.core.impl.EventContextImpl.proceed(EventContextImpl.java:81)

    at org.jboss.arquillian.core.impl.ManagerImpl.fire(ManagerImpl.java:135)

    at org.jboss.arquillian.core.impl.ManagerImpl.fire(ManagerImpl.java:115)

    at org.jboss.arquillian.core.impl.EventImpl.fire(EventImpl.java:67)

    at org.jboss.arquillian.container.test.impl.execution.ContainerTestExecuter.execute(ContainerTestExecuter.java:38)

    ...

    Caused by: com.gargoylesoftware.htmlunit.FailingHttpStatusCodeException: 404 Not Found for http://127.0.0.1:8080/test/RES_NOT_FOUND

    at com.gargoylesoftware.htmlunit.WebClient.throwFailingHttpStatusCodeExceptionIfNecessary(WebClient.java:531)

    at com.gargoylesoftware.htmlunit.html.HtmlPage.loadJavaScriptFromUrl(HtmlPage.java:1007)

    at com.gargoylesoftware.htmlunit.html.HtmlPage.loadExternalJavaScriptFile(HtmlPage.java:959)

    at com.gargoylesoftware.htmlunit.html.HtmlScript.executeScriptIfNeeded(HtmlScript.java:363)

    at com.gargoylesoftware.htmlunit.html.HtmlScript$1.execute(HtmlScript.java:225)

    at com.gargoylesoftware.htmlunit.html.HtmlScript.onAllChildrenAddedToPage(HtmlScript.java:245)

    at com.gargoylesoftware.htmlunit.html.HTMLParser$HtmlUnitDOMBuilder.endElement(HTMLParser.java:578)

    at org.apache.xerces.parsers.AbstractSAXParser.endElement(Unknown Source)

    at com.gargoylesoftware.htmlunit.html.HTMLParser$HtmlUnitDOMBuilder.endElement(HTMLParser.java:536)

    at org.cyberneko.html.HTMLTagBalancer.callEndElement(HTMLTagBalancer.java:1136)

    at org.cyberneko.html.HTMLTagBalancer.endElement(HTMLTagBalancer.java:1038)

    at org.cyberneko.html.filters.DefaultFilter.endElement(DefaultFilter.java:206)

    at org.cyberneko.html.filters.NamespaceBinder.endElement(NamespaceBinder.java:329)

    at org.cyberneko.html.HTMLScanner$ContentScanner.scanEndElement(HTMLScanner.java:2999)

    at org.cyberneko.html.HTMLScanner$ContentScanner.scan(HTMLScanner.java:1991)

    at org.cyberneko.html.HTMLScanner.scanDocument(HTMLScanner.java:895)

    at org.cyberneko.html.HTMLConfiguration.parse(HTMLConfiguration.java:499)

    at org.cyberneko.html.HTMLConfiguration.parse(HTMLConfiguration.java:452)

    at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)

    at com.gargoylesoftware.htmlunit.html.HTMLParser$HtmlUnitDOMBuilder.parse(HTMLParser.java:765)

    at com.gargoylesoftware.htmlunit.html.HTMLParser.parse(HTMLParser.java:211)

    at com.gargoylesoftware.htmlunit.html.HTMLParser.parseHtml(HTMLParser.java:165)

    at com.gargoylesoftware.htmlunit.DefaultPageCreator.createHtmlPage(DefaultPageCreator.java:225)

    at com.gargoylesoftware.htmlunit.DefaultPageCreator.createPage(DefaultPageCreator.java:108)

    at com.gargoylesoftware.htmlunit.WebClient.loadWebResponseInto(WebClient.java:429)

    at com.gargoylesoftware.htmlunit.WebClient.getPage(WebClient.java:307)

    at com.gargoylesoftware.htmlunit.WebClient.getPage(WebClient.java:369)

    at com.gargoylesoftware.htmlunit.WebClient.getPage(WebClient.java:354)

    at org.jboss.jsfunit.framework.SimpleInitialRequestStrategy.doInitialRequest(SimpleInitialRequestStrategy.java:48)

    at org.jboss.jsfunit.framework.WebClientSpec.doInitialRequest(WebClientSpec.java:259)

    at org.jboss.jsfunit.jsfsession.JSFSession.init(JSFSession.java:81)

    at org.jboss.jsfunit.arquillian.container.JSFUnitSessionFactory.createJSFSession(JSFUnitSessionFactory.java:107)

    at org.jboss.jsfunit.arquillian.container.JSFUnitSessionFactory.findJSFSession(JSFUnitSessionFactory.java:92)

    at org.jboss.jsfunit.arquillian.container.JSFUnitSessionFactory.getJSFServerSession(JSFUnitSessionFactory.java:70)

    at org.jboss.jsfunit.arquillian.container.JSFUnitTestEnricher.resolve(JSFUnitTestEnricher.java:84)

    ... 103 more

  • RELEVANCY SCORE 3.39

    DB:3.39:Jsfunit And Richfaces Compatibility s9



    There have been serveral questions lately about problems with RichFaces 3.3.2.SR1. So I thought I'd address it in a seperate post.

    The RichFaces version that JSFUnit 1.1.0 was originally tested with is 3.3.1.GA. This was also using HtmlUnit 2.5 and Neko 1.9.12.

    The JSFUnit test suite for RichFaces does pass with RichFaces 3.3.2.SR1, HtmlUnit 2.7 (just released today), and Neko 1.9.14. This is using the latest JSFUnit 1.2.0 snapshot available here.

    HtmlUnit/Neko has removed several deprecated API calls. So this makes it difficult to go backward and try older versions of HtmlUnit. In fact, RichFaces has chosen for now to not support newer versions of HtmlUnit/Neko. But I'm confident that will have to change soon and we'll all be on the latest version. If you want to use JSFUnit and RichFaces 3.3.2.SR1 together then you will need to tell RichFaces to use Tidy as its HTML parser instead of Neko. You do that with a context-param in web.xml:

    context-param param-nameorg.ajax4jsf.xmlparser.ORDER/param-name param-valueTIDY,NEKO/param-value /context-param

    Recently, there have been some reports of RichFaces components that don't seem to work with the latest JSFUnit and HtmlUnit/Neko. I'm sorry I haven't been as responsive to your reports as usual, but illness and other work priorities have put me behind. I'm trying to get caught up and get everything addressed as quickly as possible. The best way to ensure your problem will get fixed is to provide sample code that recreates your issue.

    Regards,

    Stan

    DB:3.39:Jsfunit And Richfaces Compatibility s9


    There have been serveral questions lately about problems with RichFaces 3.3.2.SR1. So I thought I'd address it in a seperate post.

    The RichFaces version that JSFUnit 1.1.0 was originally tested with is 3.3.1.GA. This was also using HtmlUnit 2.5 and Neko 1.9.12.

    The JSFUnit test suite for RichFaces does pass with RichFaces 3.3.2.SR1, HtmlUnit 2.7 (just released today), and Neko 1.9.14. This is using the latest JSFUnit 1.2.0 snapshot available here.

    HtmlUnit/Neko has removed several deprecated API calls. So this makes it difficult to go backward and try older versions of HtmlUnit. In fact, RichFaces has chosen for now to not support newer versions of HtmlUnit/Neko. But I'm confident that will have to change soon and we'll all be on the latest version. If you want to use JSFUnit and RichFaces 3.3.2.SR1 together then you will need to tell RichFaces to use Tidy as its HTML parser instead of Neko. You do that with a context-param in web.xml:

    context-param param-nameorg.ajax4jsf.xmlparser.ORDER/param-name param-valueTIDY,NEKO/param-value /context-param

    Recently, there have been some reports of RichFaces components that don't seem to work with the latest JSFUnit and HtmlUnit/Neko. I'm sorry I haven't been as responsive to your reports as usual, but illness and other work priorities have put me behind. I'm trying to get caught up and get everything addressed as quickly as possible. The best way to ensure your problem will get fixed is to provide sample code that recreates your issue.

    Regards,

    Stan

  • RELEVANCY SCORE 3.39

    DB:3.39:Jboss Class Load Order/Application Class Dependancy Question mj



    I apologize in advance if this is in the wrong place.I have a question about the order in which JBoss loads classes in the class path, and whether or not there is a way to force JBoss to load web-application classes first, and/or keep each web applications classes seperate from eachother/JBoss.I'm in the process of developing a small web application that runs functional testing on web applications in developement here at my company. I'm using an open source project called HTMLUnit (version 1.4), and I'm finding that several of the classes that HTMLUnit depends on are also classes being used by JBoss. The problem is that HTMLUnit is using the latest releases of said classes, including some beta releases (or so I believe). Because JBoss uses older versions of these classes, my web application won't run. I experimented a little with updating some of the classes that JBoss uses in order to be compatible with HTMLUnit, but I've had no success.Is there a way for me to force JBoss classes to be kept seperate from application classes?Is there a way for me to update JBoss to the latest version of these classes?Any help would be greatly appreciated.

    DB:3.39:Jboss Class Load Order/Application Class Dependancy Question mj


    Thank you! That information is exactly what I need.P.s. It's pretty cool that the 3 reply to this post came from the C.T.O of JBoss... if I were superstitious, I would say that this means I'm destined for great doings. :)

  • RELEVANCY SCORE 3.39

    DB:3.39:Looking For Tool To Test Jsf Applications (Like Htmlunit). jd


    Hello!

    I am looking for a JUnit extension tool that can be used to browse and
    test JSF Applications. Like HtmlUnit or HttpUnit....

    I think those tools have problems to follow the JSF Links that are realized
    with JavaScript.

    Which are the best tools to test a JSF Application? Which experiences
    have you made?

    DB:3.39:Looking For Tool To Test Jsf Applications (Like Htmlunit). jd

    For example there are:
    JWebUnit
    http://jwebunit.sourceforge.net/

    Selenium:
    http://www.openqa.org/selenium/

    HttpUnit:
    http://httpunit.sourceforge.net/

  • RELEVANCY SCORE 3.39

    DB:3.39:Arquillian Drone + Selenium Keeps Old Deployments Registered. m7



    Hi,

    I am trying to use arquillian drone and selenium for automated tests of my jsf (primefaces) frontend. I have three following issues:

    1.) When running the test I get following INFO message although the property is set in my arquillian.xml:

    INFO: Property "browser" was not specified, using default value of htmlUnit

    2.) I always get following exception when running the test:

    org.jboss.arquillian.container.spi.client.container.DeploymentException: Cannot deploy: research-area-test.war

    ....

    Caused by: java.lang.Exception: "JBAS014803: Duplicate resource [(\"deployment\" = \"research-area-test.war\")]"

    3.) The main problem - it seems like the older deployments are somewhere still registered in JBOSS and removed after the tests run. That causes (I assume) following exception as some beans are already deployed:

    Caused by: java.lang.Exception: "JBAS014803: Duplicate resource [(\"deployment\" = \"research-area-test.war\")]"

    Here is my arquillian.xml:

    ?xml version="1.0" encoding="UTF-8" standalone="no"?

    arquillian xmlns="http://jboss.org/schema/arquillian" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://jboss.org/schema/arquillian http://jboss.org/schema/arquillian/arquillian_1_0.xsd"

    container default="true" qualifier="JBOSS_AS_MANAGED_7.X"

    configuration

    property name="jbossHome"/usr/share/wildfly-8.0.0.Final//property

    extension qualifier="webdriver"

    property name="browser"chrome/property

    /extension

    /configuration

    /container

    /arquillian

    Here is my pom (the relevant parts):

    project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"

    xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd"

    properties

    version.arquillian_core1.1.2.Final-wildfly-1/version.arquillian_core

    version.org.jboss.arquillian.drone1.2.1.Final/version.org.jboss.arquillian.drone

    version.org.jboss.arquillian.selenium2.37.1/version.org.jboss.arquillian.selenium

    version.shrinkwrap.resolvers2.0.0/version.shrinkwrap.resolvers

    /properties

    dependencyManagement

    dependencies

    dependency

    groupIdorg.jboss.arquillian/groupId

    artifactIdarquillian-bom/artifactId

    version${version.arquillian_core}/version

    typepom/type

    scopetest/scope

    /dependency

    dependency

    groupIdorg.jboss.arquillian.extension/groupId

    artifactIdarquillian-drone-bom/artifactId

    version${version.org.jboss.arquillian.drone}/version

    typepom/type

    scopetest/scope

    /dependency

    dependency

    groupIdorg.jboss.shrinkwrap.resolver/groupId

    artifactIdshrinkwrap-resolver-bom/artifactId

    version${version.shrinkwrap.resolvers}/version

    typepom/type

    scopetest/scope

    /dependency

    /dependencies

    /dependencyManagement

    dependencies

    dependency

    groupIdorg.jboss.arquillian.junit/groupId

    artifactIdarquillian-junit-container/artifactId

    version${version.arquillian_core}/version

    scopetest/scope

    /dependency

    dependency

    groupIdorg.jboss.arquillian.extension/groupId

    artifactIdarquillian-drone-webdriver-depchain/artifactId

    version${version.org.jboss.arquillian.drone}/version

    typepom/type

    scopetest/scope

    /dependency

    dependency

    groupIdorg.jboss.arquillian.extension/groupId

    artifactIdarquillian-drone-impl/artifactId

    version1.2.1.Final/version

    scopetest/scope

    /dependency

    dependency

    groupIdorg.jboss.arquillian.extension/groupId

    artifactIdarquillian-drone-selenium/artifactId

    version1.2.1.Final/version

    scopetest/scope

    /dependency

    dependency

    groupIdorg.seleniumhq.selenium/groupId

    artifactIdselenium-java/artifactId

    version2.37.1/version

    scopetest/scope

    /dependency

    /dependencies

    build

    finalNamefrontend/finalName

    plugins

    plugin

    groupIdorg.apache.maven.plugins/groupId

    artifactIdmaven-surefire-plugin/artifactId

    version2.5/version

    configuration

    excludes

    exclude**/*$*/exclude

    /excludes

    /configuration

    /plugin

    /plugins

    /build

    profiles

    profile

    idarq-jboss_as_managed_7.x/id

    build

    plugins

    plugin

    artifactIdmaven-surefire-plugin/artifactId

    version2.14.1/version

    configuration

    systemPropertyVariables

    arquillian.launchJBOSS_AS_MANAGED_7.X/arquillian.launch

    /systemPropertyVariables

    /configuration

    /plugin

    plugin

    artifactIdmaven-dependency-plugin/artifactId

    /plugin

    /plugins

    /build

    dependencies

    dependency

    groupIdorg.wildfly/groupId

    artifactIdwildfly-arquillian-container-managed/artifactId

    version8.0.0.Final/version

    scopetest/scope

    /dependency

    dependency

    groupIdorg.jboss.arquillian.protocol/groupId

    artifactIdarquillian-protocol-servlet/artifactId

    version1.1.2.Final-wildfly-1/version

    scopetest/scope

    /dependency

    /dependencies

    /profile

    /profiles

    /project

    DB:3.39:Arquillian Drone + Selenium Keeps Old Deployments Registered. m7


    Hi Filip,

    as for 1.), you have wrong nesting in arquillian.xml, extension tag should be at same level as container one.

    arquillian

    container
    ...
    /container

    extension qualifier="webdriver"
    property name="browser"chrome/property
    /extension
    /arquillian

  • RELEVANCY SCORE 3.39

    DB:3.39:Please Fix Http://Www.Jboss.Org/Jsfunit/Gettingstarted.Html ja



    Hello Stan,at http://www.jboss.org/jsfunit/gettingstarted.html page you have error in section "Package these jars in your WEB-INF/lib".The JAR htmlunit-core-js-2.4.jar points to older version http://repo1.maven.org/maven2/net/sourceforge/htmlunit/htmlunit-core-js/2.2/htmlunit-core-js-2.2.jarWith this inconsistency in htmlunit and htmlunit-core-js JSFUnit testing always fails with baeautiful error "Exception in thread "main" java.lang.IllegalAccessError: tried to access method org.mozilla.javascript.Context.(Lorg/mozilla/javascript/ContextFactory;)V from class com.gargoylesoftware.htmlunit.javascript.HtmlUnitContextFactory$TimeoutContext "Fortunately uncle Google knows brisk answer (http://www.nabble.com/Cannot-load-page-td20789547.html)...But is rather depressive for nives that your helojsfJEE5 deployed in Geronimo runs correctly and my first own experiment isn't...'-)ThxPavel

  • RELEVANCY SCORE 3.37

    DB:3.37:Arquillian Test With Real Ear From Build War Is Not Loaded pm



    For better testing and to avoid to much code, I thought, I could take an EAR file directly from the build process.

    @Deployment

    public static EnterpriseArchive createDeployment() {

    // get the ear file

    File earFile = new File("../ucreate-application/target/ucreate-application.ear");

    EnterpriseArchive archive = ShrinkWrap.createFromZipFile(EnterpriseArchive.class, earFile);

    System.out.println(archive.toString(true));

    return archive;

    }

    after running the test

    ucreate-application.ear:

    /lib/

    /lib/jspider-custom-0.0.1-SNAPSHOT.jar

    /lib/jsf-api-2.1.7.jar

    /lib/mina-core-2.0.1.jar

    /lib/oscache-2.4.1.jar

    /lib/commons-email-1.0.jar

    /lib/jackrabbit-spi-commons-2.2.13.jar

    /lib/derby-10.5.3.0_1.jar

    /lib/jackrabbit-core-2.2.12.jar

    /lib/commons-io-2.4.jar

    /lib/commons-dbcp-1.3.jar

    /lib/xstream-1.1.3.jar

    /lib/jcl-over-slf4j-1.5.11.jar

    /lib/tika-core-0.8.jar

    /lib/stripe-java-1.1.18.jar

    /lib/stax-1.2.0.jar

    /lib/jackrabbit-jcr-client-2.2.12.jar

    /lib/ftplet-api-1.0.6.jar

    /lib/boilerpipe-1.1.0.jar

    /lib/commons-httpclient-3.1.jar

    /lib/tika-parsers-0.8.jar

    /lib/commons-beanutils-1.7.0.jar

    /lib/ant-launcher-1.7.1.jar

    /lib/ftpserver-core-1.0.6.jar

    /lib/stax-api-1.0.1.jar

    /lib/simple-4.1.14.jar

    /lib/joda-time-1.5.2.jar

    /lib/commons-lang-2.1.jar

    /lib/oro-2.0.8.jar

    /lib/poi-ooxml-3.7.jar

    /lib/jackrabbit-jcr2spi-2.2.12.jar

    /lib/simple-xml-2.1.6.jar

    /lib/tritonus_mp3-0.3.6.jar

    /lib/jackrabbit-spi-2.2.12.jar

    /lib/commons-codec-1.2.jar

    /lib/pdfbox-1.3.1.jar

    /lib/tritonus_share-0.3.6.jar

    /lib/jempbox-1.3.1.jar

    /lib/jackrabbit-api-2.2.12.jar

    /lib/commons-pool-1.5.4.jar

    /lib/jackrabbit-jcr-commons-2.2.12.jar

    /lib/geronimo-stax-api_1.0_spec-1.0.1.jar

    /lib/jackrabbit-webdav-2.2.12.jar

    /lib/velocity-1.5.jar

    /lib/gson-2.2.2.jar

    /lib/fontbox-1.3.1.jar

    /lib/ant-1.7.1.jar

    /lib/lucene-core-2.4.1.jar

    /lib/commons-compress-1.1.jar

    /lib/tagsoup-1.2.jar

    /lib/maxmindgeoip-1.2.0.jar

    /lib/commons-logging-1.0.4.jar

    /lib/poi-ooxml-schemas-3.7.jar

    /lib/concurrent-1.3.4.jar

    /lib/metadata-extractor-2.4.0-beta-1.jar

    /lib/jaudiotagger-1.0.jar

    /lib/ucreate-model.jar

    /lib/rome-0.9.jar

    /lib/netcdf-4.2-min.jar

    /lib/derbyclient-10.9.1.0.jar

    /lib/commons-logging-api-1.1.jar

    /lib/javaee-endorsed-api-6.0.jar

    /lib/poi-3.7.jar

    /lib/itext-2.1.7.jar

    /lib/jdom-1.0.jar

    /lib/slf4j-api-1.5.2.jar

    /lib/asm-3.1.jar

    /lib/quartz-1.5.2.jar

    /lib/jsf-impl-2.1.7.jar

    /lib/commons-collections-3.2.1.jar

    /lib/sshd-core-0.5.0.jar

    /lib/prettytime-1.0.8.Final.jar

    /lib/poi-scratchpad-3.7.jar

    /lib/xmlbeans-2.3.0.jar

    /www.ucreatecms.com.war

    /ucreate-ejb.jar

    /META-INF/

    /META-INF/maven/

    /META-INF/maven/com.ucreatecms/

    /META-INF/maven/com.ucreatecms/ucreate-application/

    /META-INF/maven/com.ucreatecms/ucreate-application/pom.properties

    /META-INF/maven/com.ucreatecms/ucreate-application/pom.xml

    /META-INF/jboss-deployment-structure.xml

    /META-INF/MANIFEST.MF

    /META-INF/application.xml

    JBoss no longer walk around down is not closed

    My arquillian.xml:

    arquillian xmlns="http://jboss.org/schema/arquillian" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="

    http://jboss.org/schema/arquillian

    http://jboss.org/schema/arquillian/arquillian_1_0.xsd"

    defaultProtocol type="Servlet 3.0" /

    !-- engine property name="deploymentExportPath"target/property /engine container qualifier="jbossas-remote" default="true" /container container qualifier="jbossas-managed" configuration

    property name="jbossHome"${jbossHome}/property /configuration /container --

    container qualifier="jbossas-remote" default="false"

    configuration

    property name="managementAddress"127.0.0.1/property

    property name="managementPort"9999/property

    property name="username"admin/property

    property name="password"password/property

    /configuration

    /container

    container qualifier="jbossas-managed" default="true"

    protocol type="Servlet 3.0"

    property name="executionType"MANAGED/property

    /protocol

    configuration

    property name="jbossHome"target/jboss-eap-6.0/property

    property name="allowConnectingToRunningServer"true/property

    property name="serverConfig"standalone-full.xml/property

    /configuration

    /container

    extension qualifier="webdriver"

    property name="browserCapabilities"htmlUnit/property

    property name="javascriptEnabled"true/property

    property name="remoteAddress"http://localhost:4444/wd/hub//property

    /extension

    /arquillian

    my pom.xml

    profile

    idarquillian-jbossas-managed/id

    dependencies

    dependency

    groupIdorg.jboss.spec/groupId

    artifactIdjboss-javaee-6.0/artifactId

    version1.0.0.Final/version

    typepom/type

    scopeprovided/scope

    /dependency

    dependency

    groupIdorg.jboss.as/groupId

    artifactIdjboss-as-arquillian-container-managed/artifactId

    version7.1.3.Final/version

    scopetest/scope

    /dependency

    !-- This is required if test relies on CDI contexts: https://docs.jboss.org/author/display/ARQ/JBoss+AS+7.1,+JBoss+EAP+6.0+-+Managed --

    dependency

    groupIdorg.jboss.arquillian.protocol/groupId

    artifactIdarquillian-protocol-servlet/artifactId

    scopetest/scope

    /dependency

    /dependencies

    /profile

    DB:3.37:Arquillian Test With Real Ear From Build War Is Not Loaded pm


    For better testing and to avoid to much code, I thought, I could take an EAR file directly from the build process.

    @Deployment

    public static EnterpriseArchive createDeployment() {

    // get the ear file

    File earFile = new File("../ucreate-application/target/ucreate-application.ear");

    EnterpriseArchive archive = ShrinkWrap.createFromZipFile(EnterpriseArchive.class, earFile);

    System.out.println(archive.toString(true));

    return archive;

    }

    after running the test

    ucreate-application.ear:

    /lib/

    /lib/jspider-custom-0.0.1-SNAPSHOT.jar

    /lib/jsf-api-2.1.7.jar

    /lib/mina-core-2.0.1.jar

    /lib/oscache-2.4.1.jar

    /lib/commons-email-1.0.jar

    /lib/jackrabbit-spi-commons-2.2.13.jar

    /lib/derby-10.5.3.0_1.jar

    /lib/jackrabbit-core-2.2.12.jar

    /lib/commons-io-2.4.jar

    /lib/commons-dbcp-1.3.jar

    /lib/xstream-1.1.3.jar

    /lib/jcl-over-slf4j-1.5.11.jar

    /lib/tika-core-0.8.jar

    /lib/stripe-java-1.1.18.jar

    /lib/stax-1.2.0.jar

    /lib/jackrabbit-jcr-client-2.2.12.jar

    /lib/ftplet-api-1.0.6.jar

    /lib/boilerpipe-1.1.0.jar

    /lib/commons-httpclient-3.1.jar

    /lib/tika-parsers-0.8.jar

    /lib/commons-beanutils-1.7.0.jar

    /lib/ant-launcher-1.7.1.jar

    /lib/ftpserver-core-1.0.6.jar

    /lib/stax-api-1.0.1.jar

    /lib/simple-4.1.14.jar

    /lib/joda-time-1.5.2.jar

    /lib/commons-lang-2.1.jar

    /lib/oro-2.0.8.jar

    /lib/poi-ooxml-3.7.jar

    /lib/jackrabbit-jcr2spi-2.2.12.jar

    /lib/simple-xml-2.1.6.jar

    /lib/tritonus_mp3-0.3.6.jar

    /lib/jackrabbit-spi-2.2.12.jar

    /lib/commons-codec-1.2.jar

    /lib/pdfbox-1.3.1.jar

    /lib/tritonus_share-0.3.6.jar

    /lib/jempbox-1.3.1.jar

    /lib/jackrabbit-api-2.2.12.jar

    /lib/commons-pool-1.5.4.jar

    /lib/jackrabbit-jcr-commons-2.2.12.jar

    /lib/geronimo-stax-api_1.0_spec-1.0.1.jar

    /lib/jackrabbit-webdav-2.2.12.jar

    /lib/velocity-1.5.jar

    /lib/gson-2.2.2.jar

    /lib/fontbox-1.3.1.jar

    /lib/ant-1.7.1.jar

    /lib/lucene-core-2.4.1.jar

    /lib/commons-compress-1.1.jar

    /lib/tagsoup-1.2.jar

    /lib/maxmindgeoip-1.2.0.jar

    /lib/commons-logging-1.0.4.jar

    /lib/poi-ooxml-schemas-3.7.jar

    /lib/concurrent-1.3.4.jar

    /lib/metadata-extractor-2.4.0-beta-1.jar

    /lib/jaudiotagger-1.0.jar

    /lib/ucreate-model.jar

    /lib/rome-0.9.jar

    /lib/netcdf-4.2-min.jar

    /lib/derbyclient-10.9.1.0.jar

    /lib/commons-logging-api-1.1.jar

    /lib/javaee-endorsed-api-6.0.jar

    /lib/poi-3.7.jar

    /lib/itext-2.1.7.jar

    /lib/jdom-1.0.jar

    /lib/slf4j-api-1.5.2.jar

    /lib/asm-3.1.jar

    /lib/quartz-1.5.2.jar

    /lib/jsf-impl-2.1.7.jar

    /lib/commons-collections-3.2.1.jar

    /lib/sshd-core-0.5.0.jar

    /lib/prettytime-1.0.8.Final.jar

    /lib/poi-scratchpad-3.7.jar

    /lib/xmlbeans-2.3.0.jar

    /www.ucreatecms.com.war

    /ucreate-ejb.jar

    /META-INF/

    /META-INF/maven/

    /META-INF/maven/com.ucreatecms/

    /META-INF/maven/com.ucreatecms/ucreate-application/

    /META-INF/maven/com.ucreatecms/ucreate-application/pom.properties

    /META-INF/maven/com.ucreatecms/ucreate-application/pom.xml

    /META-INF/jboss-deployment-structure.xml

    /META-INF/MANIFEST.MF

    /META-INF/application.xml

    JBoss no longer walk around down is not closed

    My arquillian.xml:

    arquillian xmlns="http://jboss.org/schema/arquillian" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="

    http://jboss.org/schema/arquillian

    http://jboss.org/schema/arquillian/arquillian_1_0.xsd"

    defaultProtocol type="Servlet 3.0" /

    !-- engine property name="deploymentExportPath"target/property /engine container qualifier="jbossas-remote" default="true" /container container qualifier="jbossas-managed" configuration

    property name="jbossHome"${jbossHome}/property /configuration /container --

    container qualifier="jbossas-remote" default="false"

    configuration

    property name="managementAddress"127.0.0.1/property

    property name="managementPort"9999/property

    property name="username"admin/property

    property name="password"password/property

    /configuration

    /container

    container qualifier="jbossas-managed" default="true"

    protocol type="Servlet 3.0"

    property name="executionType"MANAGED/property

    /protocol

    configuration

    property name="jbossHome"target/jboss-eap-6.0/property

    property name="allowConnectingToRunningServer"true/property

    property name="serverConfig"standalone-full.xml/property

    /configuration

    /container

    extension qualifier="webdriver"

    property name="browserCapabilities"htmlUnit/property

    property name="javascriptEnabled"true/property

    property name="remoteAddress"http://localhost:4444/wd/hub//property

    /extension

    /arquillian

    my pom.xml

    profile

    idarquillian-jbossas-managed/id

    dependencies

    dependency

    groupIdorg.jboss.spec/groupId

    artifactIdjboss-javaee-6.0/artifactId

    version1.0.0.Final/version

    typepom/type

    scopeprovided/scope

    /dependency

    dependency

    groupIdorg.jboss.as/groupId

    artifactIdjboss-as-arquillian-container-managed/artifactId

    version7.1.3.Final/version

    scopetest/scope

    /dependency

    !-- This is required if test relies on CDI contexts: https://docs.jboss.org/author/display/ARQ/JBoss+AS+7.1,+JBoss+EAP+6.0+-+Managed --

    dependency

    groupIdorg.jboss.arquillian.protocol/groupId

    artifactIdarquillian-protocol-servlet/artifactId

    scopetest/scope

    /dependency

    /dependencies

    /profile

  • RELEVANCY SCORE 3.37

    DB:3.37:Rich:Picklist Select Values ac



    For rich:pickList, Has anyone figured out how to pick values using HtmlUnit API?

    Thanks, Dave

    DB:3.37:Rich:Picklist Select Values ac


    I don't remember if I ever looked at rich:pickList specifically. This stuff is actually not that hard though. I just use FireBug to find out how RichFaces does its rendering and then use XPath to pick out the HtmlElement(s) I need. Then you generalize it into an API like the ones you suggested. Take a look at the code for RichFacesClient to see how it's done.

    Part of the poblem is that everybody has their favorite components and each component renders things a different way. So it takes too long for one person (like me) to go through every component and create a special API for it. Help from the community is important here, so if you've got the time to do it I'd love to get your API into the main code base.

    Stan

  • RELEVANCY SCORE 3.37

    DB:3.37:How To Dynamically/Programmatically Change Facebook Password? ka


    Hi,

    I am writing an app where a user enters his/her email and password, and my app changes the FB password and within a day changes it back. I have accomplished this on server side, using HtmlUnit, a browser automation suite for Java. Nevertheless, using the
    server IP for multiple times, the app gets blocked so I decided to use Silverlight (a client-side approach; hence, the client's IP), and execute my password changing code from the client side.

    I looked at some solutions with no avail. Converting HtmlUnit using IKVM is rather buggy, I get null reference exception and cannot reference any of the classes. Also, the .dll as about 10MB which would slow down the app.
    Any other solutions?
    Thanks

    DB:3.37:How To Dynamically/Programmatically Change Facebook Password? ka

    I think with that option (which is the most logical) the user has to download 13MB worth of dll files. Correct?

  • RELEVANCY SCORE 3.36

    DB:3.36:Drone + Selenium 2.42.X 89



    Hi guys,

    i'm trying to setup drone to work with lastest selenium version but had not success till now.

    First thing i did was to upgrade selenium bom to 2.42.0:

    then i receive this error:

    java.lang.RuntimeException: Unable to instantiate Drone via org.openqa.selenium.firefox.FirefoxDriver(Capabilities): java.lang.NoClassDefFoundError: org/apache/http/conn/SchemePortResolver

    at org.jboss.arquillian.drone.impl.DroneInstanceCreator.createDroneInstance(DroneInstanceCreator.java:87)

    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)

    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

    at java.lang.reflect.Method.invoke(Method.java:606)

    at org.jboss.arquillian.core.impl.ObserverImpl.invoke(ObserverImpl.java:94)

    at org.jboss.arquillian.core.impl.EventContextImpl.invokeObservers(EventContextImpl.java:99)

    at org.jboss.arquillian.core.impl.EventContextImpl.proceed(EventContextImpl.java:81)

    at org.jboss.arquillian.core.impl.ManagerImpl.fire(ManagerImpl.java:145)

    ...

    Caused by: java.lang.RuntimeException: Unable to instantiate Drone via org.openqa.selenium.firefox.FirefoxDriver(Capabilities): java.lang.NoClassDefFoundError: org/apache/http/conn/SchemePortResolver

    at org.jboss.arquillian.drone.webdriver.factory.SecurityActions.newInstance(SecurityActions.java:160)

    at org.jboss.arquillian.drone.webdriver.factory.FirefoxDriverFactory.createInstance(FirefoxDriverFactory.java:127)

    at org.jboss.arquillian.drone.webdriver.factory.FirefoxDriverFactory.createInstance(FirefoxDriverFactory.java:41)

    at org.jboss.arquillian.drone.webdriver.factory.WebDriverFactory.createInstance(WebDriverFactory.java:130)

    at org.jboss.arquillian.drone.webdriver.factory.WebDriverFactory.createInstance(WebDriverFactory.java:41)

    at org.jboss.arquillian.drone.impl.DroneCallableCreator$1.call(DroneCallableCreator.java:89)

    at java.util.concurrent.FutureTask.run(FutureTask.java:262)

    at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)

    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)

    at org.jboss.arquillian.drone.impl.DroneExecutorService$ContextualRunnable.run(DroneExecutorService.java:113)

    at java.lang.Thread.run(Thread.java:744)

    Caused by: java.lang.NoClassDefFoundError: org/apache/http/conn/SchemePortResolver

    at org.openqa.selenium.remote.HttpCommandExecutor.init(HttpCommandExecutor.java:99)

    at org.openqa.selenium.remote.HttpCommandExecutor.init(HttpCommandExecutor.java:82)

    at org.openqa.selenium.firefox.internal.NewProfileExtensionConnection.start(NewProfileExtensionConnection.java:93)

    at org.openqa.selenium.firefox.FirefoxDriver.startClient(FirefoxDriver.java:246)

    full output with arquillian debug can be found here:http://pastebin.com/SzPjnJ9E

    my dependency tree:

    [INFO] --- maven-dependency-plugin:2.8:tree (default-cli) @ chs ---

    [INFO] com.procergs.chs:chs:war:1.4.5

    [INFO] +- org.hibernate:hibernate-core:jar:4.1.3.Final:provided

    [INFO] | +- antlr:antlr:jar:2.7.7:provided

    [INFO] | +- org.jboss.logging:jboss-logging:jar:3.1.0.GA:provided

    [INFO] | +- org.jboss.spec.javax.transaction:jboss-transaction-api_1.1_spec:jar:1.0.0.Final:provided

    [INFO] | +- dom4j:dom4j:jar:1.6.1:provided

    [INFO] | +- org.hibernate.javax.persistence:hibernate-jpa-2.0-api:jar:1.0.1.Final:provided

    [INFO] | +- org.javassist:javassist:jar:3.15.0-GA:provided

    [INFO] | \- org.hibernate.common:hibernate-commons-annotations:jar:4.0.1.Final:provided

    [INFO] +- org.hibernate:hibernate-entitymanager:jar:4.1.3.Final:provided

    [INFO] +- org.hibernate:hibernate-validator:jar:4.3.1.Final:provided

    [INFO] | \- javax.validation:validation-api:jar:1.0.0.GA:provided

    [INFO] +- junit:junit:jar:4.8.2:test

    [INFO] +- org.powermock:powermock-module-junit4:jar:1.5:test

    [INFO] | \- org.powermock:powermock-module-junit4-common:jar:1.5:test

    [INFO] | +- org.powermock:powermock-core:jar:1.5:test

    [INFO] | \- org.powermock:powermock-reflect:jar:1.5:test

    [INFO] | \- org.objenesis:objenesis:jar:1.2:test

    [INFO] +- org.powermock:powermock-api-mockito:jar:1.5:test

    [INFO] | +- org.mockito:mockito-all:jar:1.9.5:test

    [INFO] | \- org.powermock:powermock-api-support:jar:1.5:test

    [INFO] +- org.apache.poi:poi:jar:3.7:compile

    [INFO] +- cglib:cglib-nodep:jar:2.1_3:compile

    [INFO] +- com.procergs.acr:prarqjava4:jar:0.9.11:compile

    [INFO] | +- com.acrs:PRAssinador-WS-Client:jar:2.0.1:compile

    [INFO] | \- com.procergs.sca:sca-ws:jar:1.0.3:compile

    [INFO] +- com.procergs.irs:prarqjava4-composite:jar:0.1.1:compile

    [INFO] +- com.procergs.det:detcredenciadows:jar:1.0.1:compile

    [INFO] +- org.jboss.resteasy:resteasy-jackson-provider:jar:2.3.5.Final:test

    [INFO] | +- org.codehaus.jackson:jackson-mapper-asl:jar:1.9.9:test

    [INFO] | +- org.codehaus.jackson:jackson-jaxrs:jar:1.9.9:test

    [INFO] | \- org.codehaus.jackson:jackson-xc:jar:1.9.9:test

    [INFO] +- org.jboss.resteasy:resteasy-jaxrs:jar:2.3.3.Final:provided

    [INFO] | +- org.jboss.resteasy:jaxrs-api:jar:2.3.3.Final:provided

    [INFO] | +- org.scannotation:scannotation:jar:1.0.3:provided

    [INFO] | | \- javassist:javassist:jar:3.12.1.GA:provided

    [INFO] | +- javax.annotation:jsr250-api:jar:1.0:provided

    [INFO] | +- javax.activation:activation:jar:1.1:compile

    [INFO] | +- commons-httpclient:commons-httpclient:jar:3.1:provided

    [INFO] | | \- commons-codec:commons-codec:jar:1.2:provided

    [INFO] | +- org.apache.httpcomponents:httpclient:jar:4.1.2:provided

    [INFO] | \- net.jcip:jcip-annotations:jar:1.0:provided

    [INFO] +- org.jboss.resteasy:resteasy-multipart-provider:jar:2.3.3.Final:provided

    [INFO] | +- javax.mail:mail:jar:1.4.4:provided

    [INFO] | +- org.apache.james:apache-mime4j:jar:0.6:provided

    [INFO] | \- javax.servlet:servlet-api:jar:2.5:provided

    [INFO] +- org.codehaus.jackson:jackson-core-asl:jar:1.5.5:provided

    [INFO] +- org.jboss.resteasy:resteasy-jaxb-provider:jar:2.3.3.Final:compile

    [INFO] | \- com.sun.xml.bind:jaxb-impl:jar:2.2.4:compile

    [INFO] | \- javax.xml.bind:jaxb-api:jar:2.2.3:compile

    [INFO] | \- javax.xml.stream:stax-api:jar:1.0-2:compile

    [INFO] +- org.primefaces:primefaces:jar:4.0.9:compile

    [INFO] +- org.primefaces.extensions:primefaces-extensions:jar:1.2.1:compile

    [INFO] | +- com.google.code.gson:gson:jar:2.2.4:compile

    [INFO] | \- org.apache.commons:commons-lang3:jar:3.1:compile

    [INFO] +- org.omnifaces:omnifaces:jar:1.6:compile

    [INFO] +- org.apache.myfaces.extensions.cdi.bundles:myfaces-extcdi-bundle-jsf20:jar:1.0.5:compile

    [INFO] +- org.slf4j:slf4j-api:jar:1.6.1:provided

    [INFO] +- net.bull.javamelody:javamelody-core:jar:1.45.0:compile

    [INFO] | \- org.jrobin:jrobin:jar:1.5.9:compile

    [INFO] +- com.thoughtworks.xstream:xstream:jar:1.4.2:compile

    [INFO] | +- xmlpull:xmlpull:jar:1.1.3.1:compile

    [INFO] | \- xpp3:xpp3_min:jar:1.1.4c:compile

    [INFO] +- com.procergs.acr:PRArqjava-core:jar:1.16.0:compile

    [INFO] +- com.procergs.red:detcredenciadoarq3:jar:2013.07.26_15-55:compile

    [INFO] +- com.procergs.red:ed_det:jar:2013.08.13_16-48:compile

    [INFO] +- net.sf.jasperreports:jasperreports:jar:5.1.2:compile

    [INFO] | +- commons-beanutils:commons-beanutils:jar:1.8.0:compile

    [INFO] | +- commons-digester:commons-digester:jar:2.1:compile

    [INFO] | +- commons-logging:commons-logging:jar:1.1.1:compile

    [INFO] | +- jfree:jcommon:jar:1.0.15:compile

    [INFO] | +- jfree:jfreechart:jar:1.0.12:compile

    [INFO] | +- eclipse:jdtcore:jar:3.1.0:compile

    [INFO] | +- org.codehaus.castor:castor:jar:1.2:compile

    [INFO] | +- com.fasterxml.jackson.core:jackson-core:jar:2.0.5:compile

    [INFO] | +- com.fasterxml.jackson.core:jackson-databind:jar:2.0.5:compile

    [INFO] | \- com.fasterxml.jackson.core:jackson-annotations:jar:2.0.5:compile

    [INFO] +- com.lowagie:itext:jar:2.1.7:compile

    [INFO] | +- bouncycastle:bcmail-jdk14:jar:138:compile

    [INFO] | +- bouncycastle:bcprov-jdk14:jar:138:compile

    [INFO] | \- org.bouncycastle:bctsp-jdk14:jar:1.38:compile

    [INFO] | +- org.bouncycastle:bcprov-jdk14:jar:1.38:compile

    [INFO] | \- org.bouncycastle:bcmail-jdk14:jar:1.38:compile

    [INFO] +- commons-fileupload:commons-fileupload:jar:1.2:compile

    [INFO] +- commons-io:commons-io:jar:2.4:compile

    [INFO] +- org.jboss.arquillian.junit:arquillian-junit-container:jar:1.1.4.Final:test

    [INFO] | +- org.jboss.arquillian.junit:arquillian-junit-core:jar:1.1.4.Final:test

    [INFO] | +- org.jboss.arquillian.test:arquillian-test-api:jar:1.1.4.Final:test

    [INFO] | | \- org.jboss.arquillian.core:arquillian-core-api:jar:1.1.4.Final:test

    [INFO] | +- org.jboss.arquillian.test:arquillian-test-spi:jar:1.1.4.Final:test

    [INFO] | +- org.jboss.arquillian.container:arquillian-container-test-api:jar:1.1.4.Final:test

    [INFO] | | \- org.jboss.shrinkwrap:shrinkwrap-api:jar:1.2.2:test

    [INFO] | +- org.jboss.arquillian.container:arquillian-container-test-spi:jar:1.1.4.Final:test

    [INFO] | +- org.jboss.arquillian.core:arquillian-core-impl-base:jar:1.1.4.Final:test

    [INFO] | +- org.jboss.arquillian.test:arquillian-test-impl-base:jar:1.1.4.Final:test

    [INFO] | +- org.jboss.arquillian.container:arquillian-container-impl-base:jar:1.1.4.Final:test

    [INFO] | | \- org.jboss.arquillian.config:arquillian-config-impl-base:jar:1.1.4.Final:test

    [INFO] | +- org.jboss.arquillian.container:arquillian-container-test-impl-base:jar:1.1.4.Final:test

    [INFO] | \- org.jboss.shrinkwrap:shrinkwrap-impl-base:jar:1.2.2:test

    [INFO] | \- org.jboss.shrinkwrap:shrinkwrap-spi:jar:1.2.2:test

    [INFO] +- org.jboss.arquillian.extension:arquillian-persistence-api:jar:1.0.0.Alpha7:test

    [INFO] +- org.jboss.arquillian.extension:arquillian-persistence-dbunit:jar:1.0.0.Alpha7:test

    [INFO] | +- org.jboss.arquillian.extension:arquillian-persistence-spi:jar:1.0.0.Alpha7:test

    [INFO] | +- org.jboss.arquillian.extension:arquillian-persistence-core:jar:1.0.0.Alpha7:test

    [INFO] | | \- org.jboss.arquillian.extension:arquillian-transaction-jta:jar:1.0.1.Final:test

    [INFO] | | \- org.jboss.arquillian.extension:arquillian-transaction-impl-base:jar:1.0.1.Final:test

    [INFO] | +- org.jboss.arquillian.extension:arquillian-transaction-spi:jar:1.0.1.Final:test

    [INFO] | | \- org.jboss.arquillian.extension:arquillian-transaction-api:jar:1.0.1.Final:test

    [INFO] | +- org.dbunit:dbunit:jar:2.5.0:test

    [INFO] | +- org.yaml:snakeyaml:jar:1.10:test

    [INFO] | +- org.jboss.arquillian.core:arquillian-core-spi:jar:1.1.4.Final:test

    [INFO] | +- org.jboss.arquillian.container:arquillian-container-spi:jar:1.1.4.Final:test

    [INFO] | +- org.jboss.arquillian.config:arquillian-config-api:jar:1.1.4.Final:test

    [INFO] | \- org.jboss.shrinkwrap.descriptors:shrinkwrap-descriptors-api-base:jar:2.0.0-alpha-5:test

    [INFO] +- org.jboss.shrinkwrap.resolver:shrinkwrap-resolver-depchain:pom:2.1.0:test

    [INFO] | +- org.jboss.shrinkwrap.resolver:shrinkwrap-resolver-api:jar:2.1.0:test

    [INFO] | +- org.jboss.shrinkwrap.resolver:shrinkwrap-resolver-spi:jar:2.1.0:test

    [INFO] | +- org.jboss.shrinkwrap.resolver:shrinkwrap-resolver-api-maven:jar:2.1.0:test

    [INFO] | +- org.jboss.shrinkwrap.resolver:shrinkwrap-resolver-spi-maven:jar:2.1.0:test

    [INFO] | +- org.jboss.shrinkwrap.resolver:shrinkwrap-resolver-api-maven-archive:jar:2.1.0:test

    [INFO] | +- org.jboss.shrinkwrap.resolver:shrinkwrap-resolver-impl-maven:jar:2.1.0:test

    [INFO] | | +- org.eclipse.aether:aether-api:jar:0.9.0.M2:test

    [INFO] | | +- org.eclipse.aether:aether-impl:jar:0.9.0.M2:test

    [INFO] | | +- org.eclipse.aether:aether-spi:jar:0.9.0.M2:test

    [INFO] | | +- org.eclipse.aether:aether-util:jar:0.9.0.M2:test

    [INFO] | | +- org.eclipse.aether:aether-connector-wagon:jar:0.9.0.M2:test

    [INFO] | | +- org.apache.maven:maven-aether-provider:jar:3.1.1:test

    [INFO] | | +- org.apache.maven:maven-model:jar:3.1.1:test

    [INFO] | | +- org.apache.maven:maven-model-builder:jar:3.1.1:test

    [INFO] | | | \- org.codehaus.plexus:plexus-component-annotations:jar:1.5.5:test

    [INFO] | | +- org.apache.maven:maven-repository-metadata:jar:3.1.1:test

    [INFO] | | +- org.apache.maven:maven-settings:jar:3.1.1:test

    [INFO] | | +- org.apache.maven:maven-settings-builder:jar:3.1.1:test

    [INFO] | | +- org.codehaus.plexus:plexus-interpolation:jar:1.19:test

    [INFO] | | +- org.codehaus.plexus:plexus-utils:jar:3.0.15:test

    [INFO] | | +- org.sonatype.plexus:plexus-sec-dispatcher:jar:1.3:test

    [INFO] | | | \- org.sonatype.plexus:plexus-cipher:jar:1.4:test

    [INFO] | | +- org.apache.maven.wagon:wagon-provider-api:jar:2.6:test

    [INFO] | | +- org.apache.maven.wagon:wagon-file:jar:2.6:test

    [INFO] | | \- org.apache.maven.wagon:wagon-http-lightweight:jar:2.6:test

    [INFO] | | \- org.apache.maven.wagon:wagon-http-shared:jar:2.6:test

    [INFO] | | \- org.jsoup:jsoup:jar:1.7.2:test

    [INFO] | \- org.jboss.shrinkwrap.resolver:shrinkwrap-resolver-impl-maven-archive:jar:2.1.0:test

    [INFO] | +- org.jboss.shrinkwrap.resolver:shrinkwrap-resolver-spi-maven-archive:jar:2.1.0:test

    [INFO] | +- org.eclipse.sisu:org.eclipse.sisu.plexus:jar:0.0.0.M5:test

    [INFO] | | +- com.google.guava:guava:jar:10.0.1:test

    [INFO] | | | \- com.google.code.findbugs:jsr305:jar:1.3.9:test

    [INFO] | | +- org.sonatype.sisu:sisu-guice:jar:no_aop:3.1.0:test

    [INFO] | | | \- aopalliance:aopalliance:jar:1.0:test

    [INFO] | | \- org.eclipse.sisu:org.eclipse.sisu.inject:jar:0.0.0.M5:test

    [INFO] | \- org.codehaus.plexus:plexus-compiler-javac:jar:2.3:test

    [INFO] | \- org.codehaus.plexus:plexus-compiler-api:jar:2.3:test

    [INFO] +- org.jboss.arquillian.graphene:graphene-webdriver:pom:2.0.3.Final:test

    [INFO] | +- org.jboss.arquillian.graphene:graphene-webdriver-api:jar:2.0.3.Final:test

    [INFO] | +- org.jboss.arquillian.graphene:graphene-webdriver-spi:jar:2.0.3.Final:test

    [INFO] | +- org.jboss.arquillian.graphene:graphene-webdriver-impl:jar:2.0.3.Final:test

    [INFO] | | +- org.jboss.arquillian.extension:arquillian-drone-impl:jar:1.3.0.Final:test

    [INFO] | | \- org.jboss.arquillian.extension:arquillian-drone-configuration:jar:1.3.0.Final:test

    [INFO] | +- org.jboss.arquillian.extension:arquillian-drone-webdriver-depchain:pom:1.3.0.Final:test

    [INFO] | | +- org.jboss.arquillian.extension:arquillian-drone-api:jar:1.3.0.Final:test

    [INFO] | | +- org.jboss.arquillian.extension:arquillian-drone-spi:jar:1.3.0.Final:test

    [INFO] | | +- org.jboss.arquillian.extension:arquillian-drone-webdriver:jar:1.3.0.Final:test

    [INFO] | | +- org.seleniumhq.selenium:selenium-api:jar:2.42.0:test

    [INFO] | | | \- org.json:json:jar:20080701:test

    [INFO] | | +- org.seleniumhq.selenium:selenium-support:jar:2.42.0:test

    [INFO] | | +- org.seleniumhq.selenium:selenium-chrome-driver:jar:2.42.0:test

    [INFO] | | +- org.seleniumhq.selenium:selenium-firefox-driver:jar:2.42.0:test

    [INFO] | | | \- org.apache.commons:commons-exec:jar:1.1:test

    [INFO] | | +- org.seleniumhq.selenium:selenium-htmlunit-driver:jar:2.42.0:test

    [INFO] | | | \- net.sourceforge.htmlunit:htmlunit:jar:2.14:test

    [INFO] | | | +- xalan:xalan:jar:2.7.1:test

    [INFO] | | | | \- xalan:serializer:jar:2.7.1:test

    [INFO] | | | +- org.apache.httpcomponents:httpmime:jar:4.3.2:test

    [INFO] | | | +- net.sourceforge.htmlunit:htmlunit-core-js:jar:2.14:test

    [INFO] | | | +- xerces:xercesImpl:jar:2.11.0:test

    [INFO] | | | +- net.sourceforge.nekohtml:nekohtml:jar:1.9.20:test

    [INFO] | | | +- net.sourceforge.cssparser:cssparser:jar:0.9.13:test

    [INFO] | | | | \- org.w3c.css:sac:jar:1.3:test

    [INFO] | | | \- org.eclipse.jetty:jetty-websocket:jar:8.1.14.v20131031:test

    [INFO] | | | +- org.eclipse.jetty:jetty-util:jar:8.1.14.v20131031:test

    [INFO] | | | +- org.eclipse.jetty:jetty-io:jar:8.1.14.v20131031:test

    [INFO] | | | \- org.eclipse.jetty:jetty-http:jar:8.1.14.v20131031:test

    [INFO] | | +- org.seleniumhq.selenium:selenium-ie-driver:jar:2.42.0:test

    [INFO] | | | +- net.java.dev.jna:jna:jar:3.4.0:test

    [INFO] | | | \- net.java.dev.jna:platform:jar:3.4.0:test

    [INFO] | | +- org.seleniumhq.selenium:selenium-remote-driver:jar:2.42.0:test

    [INFO] | | \- com.opera:operadriver:jar:1.5:test

    [INFO] | | +- com.opera:operalaunchers:jar:1.1:test

    [INFO] | | +- com.google.protobuf:protobuf-java:jar:2.4.1:test

    [INFO] | | +- commons-jxpath:commons-jxpath:jar:1.3:test

    [INFO] | | \- org.ini4j:ini4j:jar:0.5.2:test

    [INFO] | \- org.seleniumhq.selenium:selenium-java:jar:2.42.0:test

    [INFO] | +- org.seleniumhq.selenium:selenium-safari-driver:jar:2.42.0:test

    [INFO] | \- org.webbitserver:webbit:jar:0.4.14:test

    [INFO] | \- io.netty:netty:jar:3.5.2.Final:test

    [INFO] +- org.jboss.arquillian.extension:arquillian-phantom-driver:jar:1.1.2.Final:test

    [INFO] | \- com.github.detro.ghostdriver:phantomjsdriver:jar:1.1.0:test

    [INFO] | \- org.seleniumhq.selenium:selenium-server:jar:2.42.0:test

    [INFO] | +- org.bouncycastle:bcprov-jdk15on:jar:1.48:test

    [INFO] | +- org.bouncycastle:bcpkix-jdk15on:jar:1.48:test

    [INFO] | +- mx4j:mx4j-tools:jar:3.0.1:test

    [INFO] | +- org.mortbay.jetty:servlet-api-2.5:jar:6.1.9:test

    [INFO] | \- org.seleniumhq.selenium:jetty-repacked:jar:7.6.1:test

    [INFO] +- org.jboss.arquillian.jbehave:arquillian-jbehave-core:jar:1.0.2:test

    [INFO] | +- org.jbehave:jbehave-core:zip:resources:3.7:test

    [INFO] | | +- junit:junit-dep:jar:4.8.2:test

    [INFO] | | +- org.hamcrest:hamcrest-core:jar:1.1:test

    [INFO] | | +- org.hamcrest:hamcrest-library:jar:1.1:test

    [INFO] | | +- org.hamcrest:hamcrest-integration:jar:1.1:test

    [INFO] | | +- commons-lang:commons-lang:jar:2.5:test

    [INFO] | | +- org.freemarker:freemarker:jar:2.3.16:test

    [INFO] | | \- com.thoughtworks.paranamer:paranamer:jar:2.4:test

    [INFO] | +- org.jbehave:jbehave-core:jar:3.7:test

    [INFO] | \- org.jbehave.site:jbehave-site-resources:zip:3.1.1:test

    [INFO] +- org.jboss.spec.javax.annotation:jboss-annotations-api_1.1_spec:jar:1.0.1.Final:provided

    [INFO] +- org.jboss.spec.javax.ejb:jboss-ejb-api_3.1_spec:jar:1.0.2.Final:provided

    [INFO] +- org.jboss.arquillian.protocol:arquillian-protocol-servlet:jar:1.1.4.Final:test

    [INFO] | \- org.jboss.shrinkwrap.descriptors:shrinkwrap-descriptors-spi:jar:2.0.0-alpha-5:test

    [INFO] | \- org.easytesting:fest-assert:jar:1.4:test

    [INFO] | \- org.easytesting:fest-util:jar:1.1.6:test

    [INFO] +- org.apache.httpcomponents:httpcore:jar:4.2.5:test

    [INFO] +- commons-collections:commons-collections:jar:3.2.1:compile

    [INFO] +- xml-apis:xml-apis:jar:1.4.01:test

    [INFO] +- org.slf4j:slf4j-log4j12:jar:1.7.5:test

    [INFO] | \- log4j:log4j:jar:1.2.17:compile

    [INFO] +- javax.enterprise:cdi-api:jar:1.0:test

    [INFO] | +- org.jboss.interceptor:jboss-interceptor-api:jar:1.1:test

    [INFO] | \- javax.inject:javax.inject:jar:1:test

    [INFO] +- com.procergs.ied:ied-lib-util:jar:1.0.6:compile

    [INFO] +- com.procergs.acr:PRAutentica:jar:2.9.0:provided

    [INFO] +- com.procergs.acr:PRUtil_j2ee:jar:1.10.2:provided

    [INFO] +- com.procergs.acr:PRGCISrvJava:jar:1.0.0.2:compile

    [INFO] +- com.procergs.acr:PRGCIJava:jar:2.0.0.3:compile

    [INFO] +- org.jboss.ejb3:jboss-ejb3-ext-api:jar:2.1.0:provided

    [INFO] \- javax:javaee-api:jar:6.0:provided

    the other option i've tried to get latest selenium version(2.42.2) was to replace selenium bom in depenency management section with:

    dependencyManagement
    dependencies
    dependency
    groupIdorg.jboss.arquillian.extension/groupId
    artifactIdarquillian-transaction-bom/artifactId
    version1.0.1.Final/version
    typepom/type
    scopeimport/scope
    /dependency
    dependency
    groupIdorg.jboss.arquillian/groupId
    artifactIdarquillian-bom/artifactId
    version${version.arquillian}/version
    typepom/type
    scopeimport/scope
    /dependency
    !-- dependency --
    !-- groupIdorg.jboss.arquillian.selenium/groupId --
    !-- artifactIdselenium-bom/artifactId --
    !-- version${version.selenium}/version --
    !-- typepom/type --
    !-- scopeimport/scope --
    !-- /dependency --
    !-- selenium bom --
    !-- Selenium Server --
    dependency
    groupIdorg.seleniumhq.selenium/groupId
    artifactIdselenium-server/artifactId
    version${version.selenium}/version
    /dependency

    !-- Selenium dependecies --
    dependency
    groupIdorg.seleniumhq.selenium/groupId
    artifactIdselenium-api/artifactId
    version${version.selenium}/version
    /dependency
    dependency
    groupIdorg.seleniumhq.selenium/groupId
    artifactIdselenium-java/artifactId
    version${version.selenium}/version
    /dependency
    dependency
    groupIdorg.seleniumhq.selenium/groupId
    artifactIdselenium-support/artifactId
    version${version.selenium}/version
    /dependency

    !-- Drivers --
    dependency
    groupIdorg.seleniumhq.selenium/groupId
    artifactIdselenium-chrome-driver/artifactId
    version${version.selenium}/version
    /dependency
    dependency
    groupIdorg.seleniumhq.selenium/groupId
    artifactIdselenium-firefox-driver/artifactId
    version${version.selenium}/version
    /dependency
    dependency
    groupIdorg.seleniumhq.selenium/groupId
    artifactIdselenium-htmlunit-driver/artifactId
    version${version.selenium}/version
    /dependency
    dependency
    groupIdorg.seleniumhq.selenium/groupId
    artifactIdselenium-ie-driver/artifactId
    version${version.selenium}/version
    /dependency
    dependency
    groupIdorg.seleniumhq.selenium/groupId
    artifactIdselenium-remote-driver/artifactId
    version${version.selenium}/version
    /dependency
    dependency
    groupIdorg.jboss.arquillian.extension/groupId
    artifactIdarquillian-drone-bom/artifactId
    version${version.drone}/version
    typepom/type
    scopeimport/scope
    /dependency
    /dependencies
    /dependencyManagement

    DB:3.36:Drone + Selenium 2.42.X 89


    I had the same error

    java.lang.RuntimeException: Unable to instantiate Drone via org.openqa.selenium.firefox.FirefoxDriver(Capabilities): java.lang.NoClassDefFoundError: org/apache/http/config/RegistryBuilder

    For me it worked when I remove

    dependency
    groupIdorg.jboss.shrinkwrap.resolver/groupId
    artifactIdshrinkwrap-resolver-bom/artifactId
    version2.1.0-alpha-1/version
    scopeimport/scope
    typepom/type
    /dependency

  • RELEVANCY SCORE 3.36

    DB:3.36:New Jsfunit Ajax Support c9



    I'd like to draw your attention to this thread:http://www.jboss.com/index.html?module=bbop=viewtopict=136280We are in the in the process of moving from HttpUnit to HtmlUnit, which has much better javascript and AJAX support. We need feedback on the new JSFClientSession API that goes along with this. If you have time to try it out, please give us your feedback. I think you'll agree that HtmlUnit provides much more power to test the client side. It will also allow us to support more JSF component libraries such as RichFaces, Trinidad, Tomahawk, and more.Stan

    DB:3.36:New Jsfunit Ajax Support c9


    That's great to hear. Thanks for all the feedback. I'll be working to smooth out the rough edges.Stan

  • RELEVANCY SCORE 3.36

    DB:3.36:Experiences With Arquillian For Integration Testing Gatein? sj



    Hi,

    I wonder what the best way to integration test GateIn might be.

    Usecases

    1) technical

    a) Start Container

    b) check whether expexcted portal is available

    c) check whether expexcted portlet is available

    d) bind/unbind portlet

    2) domain specific

    a) go to portal

    b) login

    c) enter specific site

    d) enter specific portlet and click form submit button

    e) logoff

    The usual suspects might be Cactus, Cargo, Selenium, JSFUnit (HTMLUnit).

    I would love to not be required on using both Cactus and Cargo and to use Arquillian instead. So how are your experiences with that nice new framework?

    I read this post in Arquillian forum: http://community.jboss.org/message/550659#550659

    But i do need help: What is already possible with Arquillian in GateIn context, and what's not? And what's targeted?

    Really appreciate your experiences in combining Arquillian with GateIn.

    I would prefer to use JSFUnit with Arquillian to be able to test above requirements.

    Anyway, is it is possible (with normal afford) to use Selenium in GateIn context?

    Thanks for any help

    regards

    Michael

    DB:3.36:Experiences With Arquillian For Integration Testing Gatein? sj


    Hi,

    I wonder what the best way to integration test GateIn might be.

    Usecases

    1) technical

    a) Start Container

    b) check whether expexcted portal is available

    c) check whether expexcted portlet is available

    d) bind/unbind portlet

    2) domain specific

    a) go to portal

    b) login

    c) enter specific site

    d) enter specific portlet and click form submit button

    e) logoff

    The usual suspects might be Cactus, Cargo, Selenium, JSFUnit (HTMLUnit).

    I would love to not be required on using both Cactus and Cargo and to use Arquillian instead. So how are your experiences with that nice new framework?

    I read this post in Arquillian forum: http://community.jboss.org/message/550659#550659

    But i do need help: What is already possible with Arquillian in GateIn context, and what's not? And what's targeted?

    Really appreciate your experiences in combining Arquillian with GateIn.

    I would prefer to use JSFUnit with Arquillian to be able to test above requirements.

    Anyway, is it is possible (with normal afford) to use Selenium in GateIn context?

    Thanks for any help

    regards

    Michael

  • RELEVANCY SCORE 3.16

    DB:3.16:Unable To Run A Simple Jsfunit Test 9f



    We are unable to run a simple JSFUnit Test and are seeing the error pasted below while trying to execute a test on a very simple JSF/facelet Page. Please Help ?

    TIA.

    TypeError: Cannot find function navigate in object [object]. (script in http://localhost:8080/App2/ from (13, 9) to (27, 10)#23)

    ======= EXCEPTION START ========

    EcmaError: lineNumber=[23] column=[0] lineSource=[null] name=[TypeError] sourceName=[script in http://localhost:8080/App2/ from (13, 9) to (27, 10)] message=[TypeError: Cannot find function navigate in object [object]. (script in http://localhost:8080/App2/ from (13, 9) to (27, 10)#23)]

    com.gargoylesoftware.htmlunit.ScriptException: TypeError: Cannot find function navigate in object [object]. (script in http://localhost:8080/App2/ from (13, 9) to (27, 10)#23)

    at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine$HtmlUnitContextAction.run(JavaScriptEngine.java:604)

    at net.sourceforge.htmlunit.corejs.javascript.Context.call(Context.java:537)

    at net.sourceforge.htmlunit.corejs.javascript.ContextFactory.call(ContextFactory.java:538)

    at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine.callFunction(JavaScriptEngine.java:534)

    at com.gargoylesoftware.htmlunit.html.HtmlPage.executeJavaScriptFunctionIfPossible(HtmlPage.java:896)

    at com.gargoylesoftware.htmlunit.javascript.host.EventListenersContainer.executeEventHandler(EventListenersContainer.java:195)

    at com.gargoylesoftware.htmlunit.javascript.host.EventListenersContainer.executeBubblingListeners(EventListenersContainer.java:214)

    at com.gargoylesoftware.htmlunit.javascript.host.Node.fireEvent(Node.java:735)

    at com.gargoylesoftware.htmlunit.html.HtmlElement$2.run(HtmlElement.java:866)

    at net.sourceforge.htmlunit.corejs.javascript.Context.call(Context.java:537)

    at net.sourceforge.htmlunit.corejs.javascript.ContextFactory.call(ContextFactory.java:538)

    at com.gargoylesoftware.htmlunit.html.HtmlElement.fireEvent(HtmlElement.java:871)

    at com.gargoylesoftware.htmlunit.html.HtmlPage.executeEventHandlersIfNeeded(HtmlPage.java:1162)

    at com.gargoylesoftware.htmlunit.html.HtmlPage.initialize(HtmlPage.java:202)

    at com.gargoylesoftware.htmlunit.WebClient.loadWebResponseInto(WebClient.java:437)

    at com.gargoylesoftware.htmlunit.WebClient.getPage(WebClient.java:308)

    at com.gargoylesoftware.htmlunit.ImmediateRefreshHandler.handleRefresh(ImmediateRefreshHandler.java:58)

    at com.gargoylesoftware.htmlunit.html.HtmlPage.executeRefreshIfNeeded(HtmlPage.java:1276)

    at com.gargoylesoftware.htmlunit.html.HtmlPage.initialize(HtmlPage.java:216)

    at com.gargoylesoftware.htmlunit.WebClient.loadWebResponseInto(WebClient.java:437)

    at com.gargoylesoftware.htmlunit.WebClient.getPage(WebClient.java:308)

    at com.gargoylesoftware.htmlunit.WebClient.getPage(WebClient.java:370)

    at com.gargoylesoftware.htmlunit.WebClient.getPage(WebClient.java:355)

    at org.jboss.jsfunit.framework.SimpleInitialRequestStrategy.doInitialRequest(SimpleInitialRequestStrategy.java:48)

    at org.jboss.jsfunit.framework.WebClientSpec.doInitialRequest(WebClientSpec.java:259)

    at org.jboss.jsfunit.jsfsession.JSFSession.init(JSFSession.java:81)

    at test.jsfunit.JSFUnitTest.testBasicAuth(JSFUnitTest.java:36)

    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)

    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)

    at org.apache.cactus.internal.AbstractCactusTestCase.runBareServer(AbstractCactusTestCase.java:155)

    at org.apache.cactus.internal.server.AbstractWebTestCaller.doTest(AbstractWebTestCaller.java:120)

    at org.apache.cactus.internal.server.AbstractWebTestController.handleRequest_aroundBody0(AbstractWebTestController.java:94)

    at org.apache.cactus.internal.server.AbstractWebTestController.handleRequest_aroundBody1$advice(AbstractWebTestController.java:225)

    at org.apache.cactus.internal.server.AbstractWebTestController.handleRequest(AbstractWebTestController.java:1)

    at org.apache.cactus.server.ServletTestRedirector.doPost_aroundBody2(ServletTestRedirector.java:102)

    at org.apache.cactus.server.ServletTestRedirector.doPost_aroundBody3$advice(ServletTestRedirector.java:225)

    at org.apache.cactus.server.ServletTestRedirector.doPost(ServletTestRedirector.java:1)

    at org.jboss.jsfunit.framework.JSFUnitServletRedirector.doPost(JSFUnitServletRedirector.java:46)

    at org.apache.cactus.server.ServletTestRedirector.doGet_aroundBody0(ServletTestRedirector.java:73)

    at org.apache.cactus.server.ServletTestRedirector.doGet_aroundBody1$advice(ServletTestRedirector.java:225)

    at org.apache.cactus.server.ServletTestRedirector.doGet(ServletTestRedirector.java:1)

    at org.jboss.jsfunit.framework.JSFUnitServletRedirector.doGet(JSFUnitServletRedirector.java:52)

    at javax.servlet.http.HttpServlet.service(HttpServlet.java:617)

    at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)

    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)

    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)

    at org.jboss.jsfunit.framework.JSFUnitFilter.doFilter(JSFUnitFilter.java:119)

    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)

    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)

    at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)

    at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)

    at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:433)

    at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)

    at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)

    at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)

    at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:293)

    at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:849)

    at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)

    at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:454)

    at java.lang.Thread.run(Thread.java:662)

    Caused by: net.sourceforge.htmlunit.corejs.javascript.EcmaError: TypeError: Cannot find function navigate in object [object]. (script in http://localhost:8080/App2/ from (13, 9) to (27, 10)#23)

    at net.sourceforge.htmlunit.corejs.javascript.ScriptRuntime.constructError(ScriptRuntime.java:3772)

    at net.sourceforge.htmlunit.corejs.javascript.ScriptRuntime.constructError(ScriptRuntime.java:3750)

    at net.sourceforge.htmlunit.corejs.javascript.ScriptRuntime.typeError(ScriptRuntime.java:3778)

    at net.sourceforge.htmlunit.corejs.javascript.ScriptRuntime.typeError2(ScriptRuntime.java:3797)

    at net.sourceforge.htmlunit.corejs.javascript.ScriptRuntime.notFunctionError(ScriptRuntime.java:3861)

    at net.sourceforge.htmlunit.corejs.javascript.ScriptRuntime.getPropFunctionAndThisHelper(ScriptRuntime.java:2346)

    at net.sourceforge.htmlunit.corejs.javascript.ScriptRuntime.getPropFunctionAndThis(ScriptRuntime.java:2313)

    at net.sourceforge.htmlunit.corejs.javascript.Interpreter.interpretLoop(Interpreter.java:1515)

    at net.sourceforge.htmlunit.corejs.javascript.Interpreter.interpret(Interpreter.java:845)

    at net.sourceforge.htmlunit.corejs.javascript.InterpretedFunction.call(InterpretedFunction.java:164)

    at net.sourceforge.htmlunit.corejs.javascript.ContextFactory.doTopCall(ContextFactory.java:429)

    at com.gargoylesoftware.htmlunit.javascript.HtmlUnitContextFactory.doTopCall(HtmlUnitContextFactory.java:267)

    at net.sourceforge.htmlunit.corejs.javascript.ScriptRuntime.doTopCall(ScriptRuntime.java:3162)

    at net.sourceforge.htmlunit.corejs.javascript.InterpretedFunction.call(InterpretedFunction.java:162)

    at com.gargoylesoftware.htmlunit.javascript.host.EventHandler.call(EventHandler.java:80)

    at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine.callFunction(JavaScriptEngine.java:562)

    at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine$4.doRun(JavaScriptEngine.java:527)

    at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine$HtmlUnitContextAction.run(JavaScriptEngine.java:598)

    ... 63 more

    Enclosed exception:

    net.sourceforge.htmlunit.corejs.javascript.EcmaError: TypeError: Cannot find function navigate in object [object]. (script in http://localhost:8080/App2/ from (13, 9) to (27, 10)#23)

    at net.sourceforge.htmlunit.corejs.javascript.ScriptRuntime.constructError(ScriptRuntime.java:3772)

    at net.sourceforge.htmlunit.corejs.javascript.ScriptRuntime.constructError(ScriptRuntime.java:3750)

    at net.sourceforge.htmlunit.corejs.javascript.ScriptRuntime.typeError(ScriptRuntime.java:3778)

    at net.sourceforge.htmlunit.corejs.javascript.ScriptRuntime.typeError2(ScriptRuntime.java:3797)

    at net.sourceforge.htmlunit.corejs.javascript.ScriptRuntime.notFunctionError(ScriptRuntime.java:3861)

    at net.sourceforge.htmlunit.corejs.javascript.ScriptRuntime.getPropFunctionAndThisHelper(ScriptRuntime.java:2346)

    at net.sourceforge.htmlunit.corejs.javascript.ScriptRuntime.getPropFunctionAndThis(ScriptRuntime.java:2313)

    at net.sourceforge.htmlunit.corejs.javascript.Interpreter.interpretLoop(Interpreter.java:1515)

    at script.nWin(script in http://localhost:8080/App2/ from (13, 9) to (27, 10):23)

    at script(onload event for HtmlBody[body onload="nWin()"] in http://localhost:8080/App2/)

    at net.sourceforge.htmlunit.corejs.javascript.Interpreter.interpret(Interpreter.java:845)

    at net.sourceforge.htmlunit.corejs.javascript.InterpretedFunction.call(InterpretedFunction.java:164)

    at net.sourceforge.htmlunit.corejs.javascript.ContextFactory.doTopCall(ContextFactory.java:429)

    at com.gargoylesoftware.htmlunit.javascript.HtmlUnitContextFactory.doTopCall(HtmlUnitContextFactory.java:267)

    at net.sourceforge.htmlunit.corejs.javascript.ScriptRuntime.doTopCall(ScriptRuntime.java:3162)

    at net.sourceforge.htmlunit.corejs.javascript.InterpretedFunction.call(InterpretedFunction.java:162)

    at com.gargoylesoftware.htmlunit.javascript.host.EventHandler.call(EventHandler.java:80)

    at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine.callFunction(JavaScriptEngine.java:562)

    at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine$4.doRun(JavaScriptEngine.java:527)

    at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine$HtmlUnitContextAction.run(JavaScriptEngine.java:598)

    at net.sourceforge.htmlunit.corejs.javascript.Context.call(Context.java:537)

    at net.sourceforge.htmlunit.corejs.javascript.ContextFactory.call(ContextFactory.java:538)

    at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine.callFunction(JavaScriptEngine.java:534)

    at com.gargoylesoftware.htmlunit.html.HtmlPage.executeJavaScriptFunctionIfPossible(HtmlPage.java:896)

    at com.gargoylesoftware.htmlunit.javascript.host.EventListenersContainer.executeEventHandler(EventListenersContainer.java:195)

    at com.gargoylesoftware.htmlunit.javascript.host.EventListenersContainer.executeBubblingListeners(EventListenersContainer.java:214)

    at com.gargoylesoftware.htmlunit.javascript.host.Node.fireEvent(Node.java:735)

    at com.gargoylesoftware.htmlunit.html.HtmlElement$2.run(HtmlElement.java:866)

    at net.sourceforge.htmlunit.corejs.javascript.Context.call(Context.java:537)

    at net.sourceforge.htmlunit.corejs.javascript.ContextFactory.call(ContextFactory.java:538)

    at com.gargoylesoftware.htmlunit.html.HtmlElement.fireEvent(HtmlElement.java:871)

    at com.gargoylesoftware.htmlunit.html.HtmlPage.executeEventHandlersIfNeeded(HtmlPage.java:1162)

    at com.gargoylesoftware.htmlunit.html.HtmlPage.initialize(HtmlPage.java:202)

    at com.gargoylesoftware.htmlunit.WebClient.loadWebResponseInto(WebClient.java:437)

    at com.gargoylesoftware.htmlunit.WebClient.getPage(WebClient.java:308)

    at com.gargoylesoftware.htmlunit.ImmediateRefreshHandler.handleRefresh(ImmediateRefreshHandler.java:58)

    at com.gargoylesoftware.htmlunit.html.HtmlPage.executeRefreshIfNeeded(HtmlPage.java:1276)

    at com.gargoylesoftware.htmlunit.html.HtmlPage.initialize(HtmlPage.java:216)

    at com.gargoylesoftware.htmlunit.WebClient.loadWebResponseInto(WebClient.java:437)

    at com.gargoylesoftware.htmlunit.WebClient.getPage(WebClient.java:308)

    at com.gargoylesoftware.htmlunit.WebClient.getPage(WebClient.java:370)

    at com.gargoylesoftware.htmlunit.WebClient.getPage(WebClient.java:355)

    at org.jboss.jsfunit.framework.SimpleInitialRequestStrategy.doInitialRequest(SimpleInitialRequestStrategy.java:48)

    at org.jboss.jsfunit.framework.WebClientSpec.doInitialRequest(WebClientSpec.java:259)

    at org.jboss.jsfunit.jsfsession.JSFSession.init(JSFSession.java:81)

    at test.jsfunit.JSFUnitTest.testBasicAuth(JSFUnitTest.java:36)

    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)

    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)

    at org.apache.cactus.internal.AbstractCactusTestCase.runBareServer(AbstractCactusTestCase.java:155)

    at org.apache.cactus.internal.server.AbstractWebTestCaller.doTest(AbstractWebTestCaller.java:120)

    at org.apache.cactus.internal.server.AbstractWebTestController.handleRequest_aroundBody0(AbstractWebTestController.java:94)

    at org.apache.cactus.internal.server.AbstractWebTestController.handleRequest_aroundBody1$advice(AbstractWebTestController.java:225)

    at org.apache.cactus.internal.server.AbstractWebTestController.handleRequest(AbstractWebTestController.java:1)

    at org.apache.cactus.server.ServletTestRedirector.doPost_aroundBody2(ServletTestRedirector.java:102)

    at org.apache.cactus.server.ServletTestRedirector.doPost_aroundBody3$advice(ServletTestRedirector.java:225)

    at org.apache.cactus.server.ServletTestRedirector.doPost(ServletTestRedirector.java:1)

    at org.jboss.jsfunit.framework.JSFUnitServletRedirector.doPost(JSFUnitServletRedirector.java:46)

    at org.apache.cactus.server.ServletTestRedirector.doGet_aroundBody0(ServletTestRedirector.java:73)

    at org.apache.cactus.server.ServletTestRedirector.doGet_aroundBody1$advice(ServletTestRedirector.java:225)

    at org.apache.cactus.server.ServletTestRedirector.doGet(ServletTestRedirector.java:1)

    at org.jboss.jsfunit.framework.JSFUnitServletRedirector.doGet(JSFUnitServletRedirector.java:52)

    at javax.servlet.http.HttpServlet.service(HttpServlet.java:617)

    at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)

    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)

    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)

    at org.jboss.jsfunit.framework.JSFUnitFilter.doFilter(JSFUnitFilter.java:119)

    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)

    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)

    at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)

    at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)

    at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:433)

    at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)

    at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)

    at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)

    at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:293)

    at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:849)

    at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)

    at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:454)

    at java.lang.Thread.run(Thread.java:662)

    == CALLING JAVASCRIPT ==

    function () {

    [native code, arity=0]

    }

    ======= EXCEPTION END ========

    We did looked at the other threads and have tried both HtmlUnit 2.9 Snapshot as well as HtmlUnit 2.8, but are getting the same exception.

    The app is deployed on Tomcat 6 The libraries we are using are

    cactus 1.8.1

    htmlunit 2.8 also tried with 2.9 Snapshot

    junit 4.6

    cargo 0.6

    and here is the test class

    public class JSFUnitTest extends org.apache.cactus.ServletTestCase {

    public static Test suite() {

    return new TestSuite(JSFUnitTest.class);

    }

    public void testBasicAuth() throws IOException {

    final WebClientSpec wcSpec = new WebClientSpec("/TestPage.jsf");

    final JSFSession jsfSession = new JSFSession(wcSpec);

    final JSFServerSession server = jsfSession.getJSFServerSession();

    assertEquals("/TestPage.jsf", server.getCurrentViewID());

    final JSFClientSession client = jsfSession.getJSFClientSession();

    assertTrue(client.getPageAsText().contains("Enter"));

    }

    }

    and the testPage.xhtml is

    ui:composition xmlns="http://www.w3.org/1999/xhtml"

    xmlns:f="http://java.sun.com/jsf/core"

    xmlns:h="http://java.sun.com/jsf/html"

    xmlns:rich="http://richfaces.org/rich"

    xmlns:ui="http://java.sun.com/jsf/facelets"

    ui:define name="content"

    div

    h:form id="form1"

    h:outputText value="Enter your name:" rendered="#{empty foo.text}" id="prompt"/

    h:outputText value="Hello #{foo.text}" rendered="#{!empty foo.text}" id="greeting"/

    h:inputText value="#{foo.text}" id="input_foo_text"/

    h:message for="input_foo_text" styleClass="errorMessage"/

    br/

    h:commandButton value="Submit" action="/TestPage.jsf" id="submit_button"/

    h:commandButton value="Goodbye" action="/finalgreeting.jsp" id="goodbye_button"/

    /h:form

    /div

    /ui:define

    /ui:composition

    Filters Mapping in the Web.xml

    filter

    filter-nameJSFUnitFilter/filter-name

    filter-classorg.jboss.jsfunit.framework.JSFUnitFilter/filter-class

    /filter

    filter-mapping

    filter-nameJSFUnitFilter/filter-name

    servlet-nameServletTestRunner/servlet-name

    /filter-mapping

    filter-mapping

    filter-nameJSFUnitFilter/filter-name

    servlet-nameServletRedirector/servlet-name

    /filter-mapping

    servlet

    servlet-nameServletRedirector/servlet-name

    servlet-classorg.jboss.jsfunit.framework.JSFUnitServletRedirector/servlet-class

    /servlet

    servlet

    servlet-nameServletTestRunner/servlet-name

    servlet-classorg.apache.cactus.server.runner.ServletTestRunner/servlet-class

    /servlet

    servlet-mapping

    servlet-nameServletRedirector/servlet-name

    url-pattern/ServletRedirector/url-pattern

    /servlet-mapping

    servlet-mapping

    servlet-nameServletTestRunner/servlet-name

    url-pattern/ServletTestRunner/url-pattern

    /servlet-mapping

    DB:3.16:Unable To Run A Simple Jsfunit Test 9f


    Hi,

    just try to debug this javascript error, find the component that throws this exception, fix it and your test will working properly

  • RELEVANCY SCORE 3.16

    DB:3.16:Jsfunit Beta 3 Released!! Important News For Beta 2 Users. 1f



    JSFUnit Beta 3 is now released. Special thanks to our new committer Brian Gregory for helping with the conversion from HttpUnit to HtmlUnit as our client side technology. Also, the HtmlUnit team has been very helpful with answering questions and providing bug fixes.Click http://wiki.jboss.org/wiki/JSFUnitBeta3Changes for details on new features. Unlike Beta 2, there are many goodies in this release, including support for Seam conversation scope!If you are a Beta 2 user it is very important that you click the above link and read about the deprecated APIs that will be removed before GA. The next planned release will be 1.0.0.GA which should be out before the end of the year.Note that all the online documentation is not updated yet, but I wanted to let everyone start trying out the new release as soon as possible. Keep all the valuable feedback coming. It is greatly appreciated!See this page for download information: http://www.jboss.org/jsfunit/downloads.htmlStan

    DB:3.16:Jsfunit Beta 3 Released!! Important News For Beta 2 Users. 1f


    If you are referring to the wiki link, it should redirect you automatically.I was redirected to http://www.jboss.org/community/docs/DOC-10966Stan

  • RELEVANCY SCORE 3.16

    DB:3.16:Clicking A Button Should Open A New Window x1


    When I click a button element which opens a pop up window in the browser give me following javascript exception from DebugCommon10_1_3_2_0.js when I click the buttonthrough a htmlunit test. I have set my WebClient to default.

    Exception class=[org.mozilla.javascript.WrappedException]
    com.gargoylesoftware.htmlunit.ScriptException: Wrapped com.gargoylesoftware.htmlunit.ScriptException: TypeError: Cannot find function setCapture. (http://192.168.20.36:8988/CS/adf/jsLibs/DebugCommon10_1_3_2_0.js#3614) (http://192.168.20.36:8988/CS/adf/jsLibs/DebugCommon10_1_3_2_0.js#4561)
    at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine.callFunction(JavaScriptEngine.java:322)
    at com.gargoylesoftware.htmlunit.html.HtmlPage.executeJavaScriptFunctionIfPossible(HtmlPage.java:736)
    at com.gargoylesoftware.htmlunit.html.HtmlPage.runEventHandler(HtmlPage.java:1489)
    at com.gargoylesoftware.htmlunit.html.HtmlPage.runEventHandler(HtmlPage.java:1465)
    at com.gargoylesoftware.htmlunit.html.ClickableElement.click(ClickableElement.java:103)
    at lk.informatics.cs.testcases.login.agreementmanagement.AddNewPartner.testSLNO12(AddNewPartner.java:329)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    Caused by: org.mozilla.javascript.WrappedException: Wrapped com.gargoylesoftware.htmlunit.ScriptException: TypeError: Cannot find function setCapture. (http://192.168.20.36:8988/CS/adf/jsLibs/DebugCommon10_1_3_2_0.js#3614) (http://192.168.20.36:8988/CS/adf/jsLibs/DebugCommon10_1_3_2_0.js#4561)
    at org.mozilla.javascript.Context.throwAsScriptRuntimeEx(Context.java:1693)
    at org.mozilla.javascript.MemberBox.invoke(MemberBox.java:160)
    at org.mozilla.javascript.FunctionObject.call(FunctionObject.java:471)
    at org.mozilla.javascript.Interpreter.interpretLoop(Interpreter.java:3085)
    at org.mozilla.javascript.Interpreter.interpret(Interpreter.java:2251)
    at org.mozilla.javascript.InterpretedFunction.call(InterpretedFunction.java:161)
    at org.mozilla.javascript.ContextFactory.doTopCall(ContextFactory.java:340)
    at com.gargoylesoftware.htmlunit.javascript.HtmlUnitContextFactory.doTopCall(HtmlUnitContextFactory.java:151)
    at org.mozilla.javascript.ScriptRuntime.doTopCall(ScriptRuntime.java:2758)
    at org.mozilla.javascript.InterpretedFunction.call(InterpretedFunction.java:159)
    at com.gargoylesoftware.htmlunit.javascript.host.EventHandler.call(EventHandler.java:95)
    at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine.callFunction(JavaScriptEngine.java:363)
    at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine.callFunction(JavaScriptEngine.java:318)

  • RELEVANCY SCORE 3.16

    DB:3.16:Httpunit - Call A Javascript Functin 1p


    Hi to all,
    I'm an italian student and i have some problem with HttpUnit package.
    I must test a web application and i implement this java code to download a pdf file:
    TableCell cell = table.getTableCell(4, 0);

    WebLink link = cell.getLinks()[0];

    WebResponse resp1 = link.click();

    WebLink[] links = resp1.getLinks();
    for (int i=0; ilinks.length; i++){
    if (links.getText().equals("Download document")){

    String strOnClick = links[i].getAttribute("onclick");
    links[i].getScriptableDelegate().doEvent(strOnClick);
    System.out.println(strOnClick);
    }
    }

    With the print I have *"download('428D8B70-9xxxxxxxxx')"* , so I arrive where I want.
    I want to download a pdf file from a link like this:
    a href="#" onclick="download('428D8B70-9xxxxxxxxx')"Download document/aThe html page isn't wrote by me and i can't change it.
    The error is:
    com.meterware.httpunit.HttpNotFoundException: Error on HTTP request: 404 Not Found [http://localhost:7777/speed/common/docviewer?id=428D8B70-xxxxxxxxxxxxxxxxxx-xxxxx-xxx-xx-xx1download=true]
    at org.mozilla.javascript.WrappedException.init(WrappedException.java:56)
    at org.mozilla.javascript.WrappedException.wrapException(WrappedException.java:111)
    at org.mozilla.javascript.ScriptableObject.setBySetter(ScriptableObject.java:296)
    at org.mozilla.javascript.ScriptableObject.put(ScriptableObject.java:256)
    at com.meterware.httpunit.javascript.JavaScript$JavaScriptEngine.put(JavaScript.java:273)
    at org.mozilla.javascript.ScriptableObject.putProperty(ScriptableObject.java:1476)
    at org.mozilla.javascript.ScriptRuntime.setProp(ScriptRuntime.java:842)
    at org.mozilla.javascript.Interpreter.interpret(Interpreter.java:2046)
    at org.mozilla.javascript.Interpreter.interpret(Interpreter.java:2163)
    at org.mozilla.javascript.InterpretedFunction.call(InterpretedFunction.java:58)
    at com.meterware.httpunit.javascript.JavaScript$JavaScriptEngine.performEvent(JavaScript.java:172)
    at com.meterware.httpunit.scripting.ScriptableDelegate.doEvent(ScriptableDelegate.java:56)
    at Asp_GeDoc.StartScript.search(StartScript.java:162)
    at Asp_GeDoc.Shell.main(Shell.java:36)

    Exception in thread "main" java.lang.RuntimeException: Event 'download('428D8B70-xxxxxxxxxxxxxxxxx')' failed: com.meterware.httpunit.HttpNotFoundException: Error on HTTP request: 404 Not Found [http://localhost:7777/speed/common/docviewer?id=428D8B70-xxxxxxxxxxxxxxxxxx-xxxxx-xxx-xx-xx1download=true]
    at com.meterware.httpunit.javascript.JavaScript$JavaScriptEngine.handleScriptException(JavaScript.java:199)
    at com.meterware.httpunit.javascript.JavaScript$JavaScriptEngine.performEvent(JavaScript.java:175)
    at com.meterware.httpunit.scripting.ScriptableDelegate.doEvent(ScriptableDelegate.java:56)
    at Asp_GeDoc.StartScript.search(StartScript.java:162)
    at Asp_GeDoc.Shell.main(Shell.java:36)I can't use HtmlUnit.

    Can anyone help me, please?

    P.S.
    Sorry for my english, I don't know very well :P

  • RELEVANCY SCORE 3.16

    DB:3.16:New Jsfunit + Richfaces j1



    Ok, I checked out the latest JSFUnit, and the latest HtmlUnit, built them with the specified pom.xml change. So I have one little question - how do I use the Richfaces support?The RichFacesClient takes a JSFClientSession of the wrong type. Am I missing something?Brian

    DB:3.16:New Jsfunit + Richfaces j1


    Wow. That almost seems TOO easy.I'm coverting a bunch of tests to the new version - I'll let you know how it goes.Brian

  • RELEVANCY SCORE 3.16

    DB:3.16:How To Manage Login Session Using Jsfunit dp



    Our application is using LDAP authentication and application functionality is based on user roles and location.

    We are maintaining user session object and for any subsequent request uses user session object to get roles and rolcation.

    Now I am writting a JSFUnit test to create some Member in application. How I can manage user login session in this test.

    I was trying to use sample posted on http://community.jboss.org/message/69905 by Stan Silvert. but that sample code is not compiling. I get below error . screen print is attached too. Please let me know if more information is required.

    The method makeWebConversation() is undefined for the type WebConversationFactory

    Import in test

    import org.jboss.jsfunit.framework.WebClientSpec;

    import org.jboss.jsfunit.framework.WebConversationFactory;

    import org.jboss.jsfunit.jsfsession.JSFClientSession;

    import org.jboss.jsfunit.jsfsession.JSFServerSession;

    import org.jboss.jsfunit.jsfsession.JSFSession;

    WebConversation webConv = WebConversationFactory.makeWebConversation();WebRequest req = new GetMethodWebRequest(WebConversationFactory.getWARURL() + "/login.jsp");WebResponse res = webConv.getResponse(req);WebForm loginform = res.getWebResponse().getFormWithID("loginform");loginform.setParameter("j_username", "user");loginform.setParameter("j_password", "user_password");res = loginform.submit(); // now my session/webConv is authenticated. I can go to my JSF pageJSFClientSession client = new JSFClientSession(webConv, "/mystartpage.jsf");

    Jar Version.

    htmlunit-2.8.jar

    htmlunit-core-js-2.8.jar

    httpclient-4.0.1.jar

    httpcore-4.0.1.jar

    httpmime-4.0.1.jar

    jboss-jsfunit-core-1.3.0.Final.jar

    jboss-jsfunit-richfaces-1.3.0.Final.jar

    junit-3.8.1.jar

    DB:3.16:How To Manage Login Session Using Jsfunit dp


    My Problem resolved. I forgot to add cookie for websphere. If webpage has activex objext you need jacob.jar and related DLL. +

    import java.io.IOException;

    import java.net.URL;

    import org.jboss.jsfunit.framework.SimpleInitialRequestStrategy;

    import org.jboss.jsfunit.framework.WebClientSpec;

    import org.jboss.jsfunit.framework.WebConversationFactory;

    import com.gargoylesoftware.htmlunit.Page;

    import com.gargoylesoftware.htmlunit.WebClient;

    import com.gargoylesoftware.htmlunit.html.HtmlForm;

    import com.gargoylesoftware.htmlunit.html.HtmlPage;

    public class TestInitialRequestStrategy extends SimpleInitialRequestStrategy{

    @Override

    public Page doInitialRequest(WebClientSpec wcSpec) throws IOException {

    String jsessionid = wcSpec.removeCookie("JSESSIONID");

    // cache ID is 0000 by default

    wcSpec.addCookie("JSESSIONID", "0000" + jsessionid);

    WebClient webClient = wcSpec.getWebClient();

    //WebClient webClient = new WebClient(BrowserVersion.INTERNET_EXPLORER_8);

    webClient.setActiveXNative(true);

    URL url = new URL(WebConversationFactory.getWARURL()+"url.faces");

    webClient.setJavaScriptEnabled(true);

    HtmlPage page = webClient.getPage(url);

    HtmlForm form = page.getFormByName("AuthForm");

    form.getElementById("id1").setAttribute("value", "value1");

    form.getElementById("id2").setAttribute("value", "value2");

    form.getElementById("id3").setAttribute("value", "value3");

    form.getElementById("buttonid").click();

    return super.doInitialRequest(wcSpec);

    }

    }

  • RELEVANCY SCORE 3.16

    DB:3.16:Problem With Testing Richfaces Applicaiton fx



    Hi,In my sample project I've added JSFUnit test. But I have errors when I create new JSFSession exeption is thrown. My configuration is similar to http://anonsvn.jboss.org/repos/jsfunit/trunk/jboss-jsfunit-richfaces (pom and web.xml). The only difference is that, I'm not using Seam in my project. So all Seam stuff is not included in my web.xml.I've tried following configurations:- Richfaces 3.3.1/3.3.2- JSFUnit 1.1.0.GA/1.2.0.GA-SNAPSHOT- HtmlUnit 2.5/2.6I run my project on Tomcat 6 and also have pure HtmlUnit test that work fine.I include a test output.Thanks in advance.

    -------------------------------------------------------------------------------
    Test set: integration.jsfunit.NavigationTest
    -------------------------------------------------------------------------------
    Tests run: 3, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 4.218 sec FAILURE!
    testMainMenuNavigationCustomers(integration.jsfunit.NavigationTest) Time elapsed: 4.141 sec ERROR!
    ======= EXCEPTION START ========
    Exception class=[net.sourceforge.htmlunit.corejs.javascript.WrappedException]
    com.gargoylesoftware.htmlunit.ScriptException: Wrapped java.lang.Exception: Cannot set the width property to invalid value: null (http://localhost:8080/disposal-web-company/a4j/g/3_3_1.GAorg/richfaces/renderkit/html/scripts/extended-data-table.js.jsf#19)
    at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine$HtmlUnitContextAction.run(JavaScriptEngine.java:526)
    at net.sourceforge.htmlunit.corejs.javascript.Context.call(Context.java:529)
    at net.sourceforge.htmlunit.corejs.javascript.ContextFactory.call(ContextFactory.java:536)
    at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine.execute(JavaScriptEngine.java:424)
    at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine.execute(JavaScriptEngine.java:399)
    at com.gargoylesoftware.htmlunit.html.HtmlPage.executeJavaScriptIfPossible(HtmlPage.java:899)
    at com.gargoylesoftware.htmlunit.html.HtmlScript.executeInlineScriptIfNeeded(HtmlScript.java:309)
    at com.gargoylesoftware.htmlunit.html.HtmlScript.executeScriptIfNeeded(HtmlScript.java:364)
    at com.gargoylesoftware.htmlunit.html.HtmlScript$1.execute(HtmlScript.java:213)
    at com.gargoylesoftware.htmlunit.html.HtmlScript.onAllChildrenAddedToPage(HtmlScript.java:238)
    at com.gargoylesoftware.htmlunit.html.HTMLParser$HtmlUnitDOMBuilder.endElement(HTMLParser.java:690)
    at org.apache.xerces.parsers.AbstractSAXParser.endElement(Unknown Source)
    at com.gargoylesoftware.htmlunit.html.HTMLParser$HtmlUnitDOMBuilder.endElement(HTMLParser.java:648)
    at org.cyberneko.html.HTMLTagBalancer.callEndElement(HTMLTagBalancer.java:1132)
    at org.cyberneko.html.HTMLTagBalancer.endElement(HTMLTagBalancer.java:1034)
    at org.cyberneko.html.filters.DefaultFilter.endElement(DefaultFilter.java:206)
    at org.cyberneko.html.filters.NamespaceBinder.endElement(NamespaceBinder.java:329)
    at org.cyberneko.html.HTMLScanner$ContentScanner.scanEndElement(HTMLScanner.java:3058)
    at org.cyberneko.html.HTMLScanner$ContentScanner.scan(HTMLScanner.java:1994)
    at org.cyberneko.html.HTMLScanner.scanDocument(HTMLScanner.java:907)
    at org.cyberneko.html.HTMLConfiguration.parse(HTMLConfiguration.java:499)
    at org.cyberneko.html.HTMLConfiguration.parse(HTMLConfiguration.java:452)
    at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
    at com.gargoylesoftware.htmlunit.html.HTMLParser$HtmlUnitDOMBuilder.parse(HTMLParser.java:892)
    at com.gargoylesoftware.htmlunit.html.HTMLParser.parse(HTMLParser.java:350)
    at com.gargoylesoftware.htmlunit.html.HTMLParser.parseHtml(HTMLParser.java:304)
    at com.gargoylesoftware.htmlunit.DefaultPageCreator.createHtmlPage(DefaultPageCreator.java:134)
    at com.gargoylesoftware.htmlunit.DefaultPageCreator.createPage(DefaultPageCreator.java:101)
    at com.gargoylesoftware.htmlunit.WebClient.loadWebResponseInto(WebClient.java:447)
    at com.gargoylesoftware.htmlunit.WebClient.getPage(WebClient.java:330)
    at com.gargoylesoftware.htmlunit.WebClient.getPage(WebClient.java:387)
    at com.gargoylesoftware.htmlunit.WebClient.getPage(WebClient.java:372)
    at org.jboss.jsfunit.framework.SimpleInitialRequestStrategy.doInitialRequest(SimpleInitialRequestStrategy.java:48)
    at org.jboss.jsfunit.framework.WebClientSpec.doInitialRequest(WebClientSpec.java:259)
    at org.jboss.jsfunit.jsfsession.JSFSession.init(JSFSession.java:81)
    at org.jboss.jsfunit.jsfsession.JSFSession.init(JSFSession.java:58)
    at integration.jsfunit.NavigationTest.testMainMenuNavigationCustomers(NavigationTest.java:29)
    Caused by: net.sourceforge.htmlunit.corejs.javascript.WrappedException: Wrapped java.lang.Exception: Cannot set the width property to invalid value: null (http://localhost:8080/disposal-web-company/a4j/g/3_3_1.GAorg/richfaces/renderkit/html/scripts/extended-data-table.js.jsf#19)
    at net.sourceforge.htmlunit.corejs.javascript.Context.throwAsScriptRuntimeEx(Context.java:1789)
    at com.gargoylesoftware.htmlunit.javascript.host.html.HTMLElement.setWidthOrHeight(HTMLElement.java:2261)
    at com.gargoylesoftware.htmlunit.javascript.host.html.HTMLTableColElement.jsxSet_width(HTMLTableColElement.java:89)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:597)
    at net.sourceforge.htmlunit.corejs.javascript.MemberBox.invoke(MemberBox.java:161)
    at net.sourceforge.htmlunit.corejs.javascript.ScriptableObject.putImpl(ScriptableObject.java:2354)
    at net.sourceforge.htmlunit.corejs.javascript.ScriptableObject.put(ScriptableObject.java:350)
    at net.sourceforge.htmlunit.corejs.javascript.ScriptableObject.putProperty(ScriptableObject.java:1965)
    at net.sourceforge.htmlunit.corejs.javascript.ScriptRuntime.setObjectProp(ScriptRuntime.java:1558)
    at net.sourceforge.htmlunit.corejs.javascript.ScriptRuntime.setObjectProp(ScriptRuntime.java:1548)
    at net.sourceforge.htmlunit.corejs.javascript.Interpreter.interpretLoop(Interpreter.java:1394)
    at net.sourceforge.htmlunit.corejs.javascript.Interpreter.interpret(Interpreter.java:845)
    at net.sourceforge.htmlunit.corejs.javascript.InterpretedFunction.call(InterpretedFunction.java:164)
    at net.sourceforge.htmlunit.corejs.javascript.ContextFactory.doTopCall(ContextFactory.java:427)
    at com.gargoylesoftware.htmlunit.javascript.HtmlUnitContextFactory.doTopCall(HtmlUnitContextFactory.java:263)
    at net.sourceforge.htmlunit.corejs.javascript.ScriptRuntime.doTopCall(ScriptRuntime.java:3058)
    at net.sourceforge.htmlunit.corejs.javascript.InterpretedFunction.exec(InterpretedFunction.java:175)
    at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine$5.doRun(JavaScriptEngine.java:415)
    at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine$HtmlUnitContextAction.run(JavaScriptEngine.java:520)
    ... 74 more
    Caused by: java.lang.Exception: Cannot set the width property to invalid value: null
    at com.gargoylesoftware.htmlunit.javascript.host.html.HTMLElement.setWidthOrHeight(HTMLElement.java:2260)
    ... 94 more
    WrappedException: net.sourceforge.htmlunit.corejs.javascript.WrappedException: Wrapped java.lang.Exception: Cannot set the width property to invalid value: null (http://localhost:8080/disposal-web-company/a4j/g/3_3_1.GAorg/richfaces/renderkit/html/scripts/extended-data-table.js.jsf#19)
    at net.sourceforge.htmlunit.corejs.javascript.Context.throwAsScriptRuntimeEx(Context.java:1789)
    at com.gargoylesoftware.htmlunit.javascript.host.html.HTMLElement.setWidthOrHeight(HTMLElement.java:2261)
    at com.gargoylesoftware.htmlunit.javascript.host.html.HTMLTableColElement.jsxSet_width(HTMLTableColElement.java:89)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:597)
    at net.sourceforge.htmlunit.corejs.javascript.MemberBox.invoke(MemberBox.java:161)
    at net.sourceforge.htmlunit.corejs.javascript.ScriptableObject.putImpl(ScriptableObject.java:2354)
    at net.sourceforge.htmlunit.corejs.javascript.ScriptableObject.put(ScriptableObject.java:350)
    at net.sourceforge.htmlunit.corejs.javascript.ScriptableObject.putProperty(ScriptableObject.java:1965)
    at net.sourceforge.htmlunit.corejs.javascript.ScriptRuntime.setObjectProp(ScriptRuntime.java:1558)
    at net.sourceforge.htmlunit.corejs.javascript.ScriptRuntime.setObjectProp(ScriptRuntime.java:1548)
    at net.sourceforge.htmlunit.corejs.javascript.Interpreter.interpretLoop(Interpreter.java:1394)
    at script(http://localhost:8080/disposal-web-company/a4j/g/3_3_1.GAorg/richfaces/renderkit/html/scripts/extended-data-table.js.jsf:19)
    at script(http://localhost:8080/disposal-web-company/a4j/g/3_3_1.GAorg/richfaces/renderkit/html/scripts/extended-data-table.js.jsf:23)
    at script(http://localhost:8080/disposal-web-company/a4j/g/3_3_1.GAorg/richfaces/renderkit/html/scripts/extended-data-table.js.jsf:5)
    at script(http://localhost:8080/disposal-web-company/a4j/g/3_3_1.GAorg/richfaces/renderkit/html/scripts/common-scrollable-data-table.js.jsf:33)
    at script(http://localhost:8080/disposal-web-company/a4j/g/3_3_1.GAorg/richfaces/renderkit/html/scripts/extended-data-table.js.jsf:5)
    at script.klass(http://localhost:8080/disposal-web-company/a4j/g/3_3_1.GAorg.ajax4jsf.javascript.PrototypeScript.jsf:4)
    at script(script in http://localhost:8080/disposal-web-company/pages/periodslist.jsf from (59, 7454) to (76, 17):61)
    at net.sourceforge.htmlunit.corejs.javascript.Interpreter.interpret(Interpreter.java:845)
    at net.sourceforge.htmlunit.corejs.javascript.InterpretedFunction.call(InterpretedFunction.java:164)
    at net.sourceforge.htmlunit.corejs.javascript.ContextFactory.doTopCall(ContextFactory.java:427)
    at com.gargoylesoftware.htmlunit.javascript.HtmlUnitContextFactory.doTopCall(HtmlUnitContextFactory.java:263)
    at net.sourceforge.htmlunit.corejs.javascript.ScriptRuntime.doTopCall(ScriptRuntime.java:3058)
    at net.sourceforge.htmlunit.corejs.javascript.InterpretedFunction.exec(InterpretedFunction.java:175)
    at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine$5.doRun(JavaScriptEngine.java:415)
    at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine$HtmlUnitContextAction.run(JavaScriptEngine.java:520)
    at net.sourceforge.htmlunit.corejs.javascript.Context.call(Context.java:529)
    at net.sourceforge.htmlunit.corejs.javascript.ContextFactory.call(ContextFactory.java:536)
    at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine.execute(JavaScriptEngine.java:424)
    at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine.execute(JavaScriptEngine.java:399)
    at com.gargoylesoftware.htmlunit.html.HtmlPage.executeJavaScriptIfPossible(HtmlPage.java:899)
    at com.gargoylesoftware.htmlunit.html.HtmlScript.executeInlineScriptIfNeeded(HtmlScript.java:309)
    at com.gargoylesoftware.htmlunit.html.HtmlScript.executeScriptIfNeeded(HtmlScript.java:364)
    at com.gargoylesoftware.htmlunit.html.HtmlScript$1.execute(HtmlScript.java:213)
    at com.gargoylesoftware.htmlunit.html.HtmlScript.onAllChildrenAddedToPage(HtmlScript.java:238)
    at com.gargoylesoftware.htmlunit.html.HTMLParser$HtmlUnitDOMBuilder.endElement(HTMLParser.java:690)
    at org.apache.xerces.parsers.AbstractSAXParser.endElement(Unknown Source)
    at com.gargoylesoftware.htmlunit.html.HTMLParser$HtmlUnitDOMBuilder.endElement(HTMLParser.java:648)
    at org.cyberneko.html.HTMLTagBalancer.callEndElement(HTMLTagBalancer.java:1132)
    at org.cyberneko.html.HTMLTagBalancer.endElement(HTMLTagBalancer.java:1034)
    at org.cyberneko.html.filters.DefaultFilter.endElement(DefaultFilter.java:206)
    at org.cyberneko.html.filters.NamespaceBinder.endElement(NamespaceBinder.java:329)
    at org.cyberneko.html.HTMLScanner$ContentScanner.scanEndElement(HTMLScanner.java:3058)
    at org.cyberneko.html.HTMLScanner$ContentScanner.scan(HTMLScanner.java:1994)
    at org.cyberneko.html.HTMLScanner.scanDocument(HTMLScanner.java:907)
    at org.cyberneko.html.HTMLConfiguration.parse(HTMLConfiguration.java:499)
    at org.cyberneko.html.HTMLConfiguration.parse(HTMLConfiguration.java:452)
    at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
    at com.gargoylesoftware.htmlunit.html.HTMLParser$HtmlUnitDOMBuilder.parse(HTMLParser.java:892)
    at com.gargoylesoftware.htmlunit.html.HTMLParser.parse(HTMLParser.java:350)
    at com.gargoylesoftware.htmlunit.html.HTMLParser.parseHtml(HTMLParser.java:304)
    at com.gargoylesoftware.htmlunit.DefaultPageCreator.createHtmlPage(DefaultPageCreator.java:134)
    at com.gargoylesoftware.htmlunit.DefaultPageCreator.createPage(DefaultPageCreator.java:101)
    at com.gargoylesoftware.htmlunit.WebClient.loadWebResponseInto(WebClient.java:447)
    at com.gargoylesoftware.htmlunit.WebClient.getPage(WebClient.java:330)
    at com.gargoylesoftware.htmlunit.WebClient.getPage(WebClient.java:387)
    at com.gargoylesoftware.htmlunit.WebClient.getPage(WebClient.java:372)
    at org.jboss.jsfunit.framework.SimpleInitialRequestStrategy.doInitialRequest(SimpleInitialRequestStrategy.java:48)
    at org.jboss.jsfunit.framework.WebClientSpec.doInitialRequest(WebClientSpec.java:259)
    at org.jboss.jsfunit.jsfsession.JSFSession.init(JSFSession.java:81)
    at org.jboss.jsfunit.jsfsession.JSFSession.init(JSFSession.java:58)
    at integration.jsfunit.NavigationTest.testMainMenuNavigationCustomers(NavigationTest.java:29)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:597)
    at junit.framework.TestCase.runTest(TestCase.java:154)
    at junit.framework.TestCase.runBare(TestCase.java:127)
    at org.apache.cactus.internal.AbstractCactusTestCase.runBareServer(AbstractCactusTestCase.java:153)
    at org.apache.cactus.internal.server.AbstractWebTestCaller.doTest(AbstractWebTestCaller.java:119)
    at org.apache.cactus.internal.server.AbstractWebTestController.handleRequest_aroundBody0(AbstractWebTestController.java:93)
    at org.apache.cactus.internal.server.AbstractWebTestController.handleRequest_aroundBody1$advice(AbstractWebTestController.java:217)
    at org.apache.cactus.internal.server.AbstractWebTestController.handleRequest(AbstractWebTestController.java)
    at org.apache.cactus.server.ServletTestRedirector.doPost_aroundBody2(ServletTestRedirector.java:101)
    at org.apache.cactus.server.ServletTestRedirector.doPost_aroundBody3$advice(ServletTestRedirector.java:217)
    at org.apache.cactus.server.ServletTestRedirector.doPost(ServletTestRedirector.java)
    at org.jboss.jsfunit.framework.JSFUnitServletRedirector.doPost(JSFUnitServletRedirector.java:46)
    at org.apache.cactus.server.ServletTestRedirector.doGet_aroundBody0(ServletTestRedirector.java:72)
    at org.apache.cactus.server.ServletTestRedirector.doGet_aroundBody1$advice(ServletTestRedirector.java:217)
    at org.apache.cactus.server.ServletTestRedirector.doGet(ServletTestRedirector.java)
    at org.jboss.jsfunit.framework.JSFUnitServletRedirector.doGet(JSFUnitServletRedirector.java:52)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:690)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
    at org.jboss.jsfunit.framework.JSFUnitFilter.doFilter(JSFUnitFilter.java:119)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
    at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
    at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
    at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:433)
    at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
    at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
    at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:563)
    at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
    at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:263)
    at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)
    at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:584)
    at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
    at java.lang.Thread.run(Thread.java:619)
    Caused by: java.lang.Exception: Cannot set the width property to invalid value: null
    at com.gargoylesoftware.htmlunit.javascript.host.html.HTMLElement.setWidthOrHeight(HTMLElement.java:2260)
    ... 94 more
    Inside wrapped exception:
    java.lang.Exception: Cannot set the width property to invalid value: null
    at com.gargoylesoftware.htmlunit.javascript.host.html.HTMLElement.setWidthOrHeight(HTMLElement.java:2260)
    at com.gargoylesoftware.htmlunit.javascript.host.html.HTMLTableColElement.jsxSet_width(HTMLTableColElement.java:89)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:597)
    at net.sourceforge.htmlunit.corejs.javascript.MemberBox.invoke(MemberBox.java:161)
    at net.sourceforge.htmlunit.corejs.javascript.ScriptableObject.putImpl(ScriptableObject.java:2354)
    at net.sourceforge.htmlunit.corejs.javascript.ScriptableObject.put(ScriptableObject.java:350)
    at net.sourceforge.htmlunit.corejs.javascript.ScriptableObject.putProperty(ScriptableObject.java:1965)
    at net.sourceforge.htmlunit.corejs.javascript.ScriptRuntime.setObjectProp(ScriptRuntime.java:1558)
    at net.sourceforge.htmlunit.corejs.javascript.ScriptRuntime.setObjectProp(ScriptRuntime.java:1548)
    at net.sourceforge.htmlunit.corejs.javascript.Interpreter.interpretLoop(Interpreter.java:1394)
    at net.sourceforge.htmlunit.corejs.javascript.Interpreter.interpret(Interpreter.java:845)
    at net.sourceforge.htmlunit.corejs.javascript.InterpretedFunction.call(InterpretedFunction.java:164)
    at net.sourceforge.htmlunit.corejs.javascript.ContextFactory.doTopCall(ContextFactory.java:427)
    at com.gargoylesoftware.htmlunit.javascript.HtmlUnitContextFactory.doTopCall(HtmlUnitContextFactory.java:263)
    at net.sourceforge.htmlunit.corejs.javascript.ScriptRuntime.doTopCall(ScriptRuntime.java:3058)
    at net.sourceforge.htmlunit.corejs.javascript.InterpretedFunction.exec(InterpretedFunction.java:175)
    at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine$5.doRun(JavaScriptEngine.java:415)
    at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine$HtmlUnitContextAction.run(JavaScriptEngine.java:520)
    at net.sourceforge.htmlunit.corejs.javascript.Context.call(Context.java:529)
    at net.sourceforge.htmlunit.corejs.javascript.ContextFactory.call(ContextFactory.java:536)
    at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine.execute(JavaScriptEngine.java:424)
    at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine.execute(JavaScriptEngine.java:399)
    at com.gargoylesoftware.htmlunit.html.HtmlPage.executeJavaScriptIfPossible(HtmlPage.java:899)
    at com.gargoylesoftware.htmlunit.html.HtmlScript.executeInlineScriptIfNeeded(HtmlScript.java:309)
    at com.gargoylesoftware.htmlunit.html.HtmlScript.executeScriptIfNeeded(HtmlScript.java:364)
    at com.gargoylesoftware.htmlunit.html.HtmlScript$1.execute(HtmlScript.java:213)
    at com.gargoylesoftware.htmlunit.html.HtmlScript.onAllChildrenAddedToPage(HtmlScript.java:238)
    at com.gargoylesoftware.htmlunit.html.HTMLParser$HtmlUnitDOMBuilder.endElement(HTMLParser.java:690)
    at org.apache.xerces.parsers.AbstractSAXParser.endElement(Unknown Source)
    at com.gargoylesoftware.htmlunit.html.HTMLParser$HtmlUnitDOMBuilder.endElement(HTMLParser.java:648)
    at org.cyberneko.html.HTMLTagBalancer.callEndElement(HTMLTagBalancer.java:1132)
    at org.cyberneko.html.HTMLTagBalancer.endElement(HTMLTagBalancer.java:1034)
    at org.cyberneko.html.filters.DefaultFilter.endElement(DefaultFilter.java:206)
    at org.cyberneko.html.filters.NamespaceBinder.endElement(NamespaceBinder.java:329)
    at org.cyberneko.html.HTMLScanner$ContentScanner.scanEndElement(HTMLScanner.java:3058)
    at org.cyberneko.html.HTMLScanner$ContentScanner.scan(HTMLScanner.java:1994)
    at org.cyberneko.html.HTMLScanner.scanDocument(HTMLScanner.java:907)
    at org.cyberneko.html.HTMLConfiguration.parse(HTMLConfiguration.java:499)
    at org.cyberneko.html.HTMLConfiguration.parse(HTMLConfiguration.java:452)
    at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
    at com.gargoylesoftware.htmlunit.html.HTMLParser$HtmlUnitDOMBuilder.parse(HTMLParser.java:892)
    at com.gargoylesoftware.htmlunit.html.HTMLParser.parse(HTMLParser.java:350)
    at com.gargoylesoftware.htmlunit.html.HTMLParser.parseHtml(HTMLParser.java:304)
    at com.gargoylesoftware.htmlunit.DefaultPageCreator.createHtmlPage(DefaultPageCreator.java:134)
    at com.gargoylesoftware.htmlunit.DefaultPageCreator.createPage(DefaultPageCreator.java:101)
    at com.gargoylesoftware.htmlunit.WebClient.loadWebResponseInto(WebClient.java:447)
    at com.gargoylesoftware.htmlunit.WebClient.getPage(WebClient.java:330)
    at com.gargoylesoftware.htmlunit.WebClient.getPage(WebClient.java:387)
    at com.gargoylesoftware.htmlunit.WebClient.getPage(WebClient.java:372)
    at org.jboss.jsfunit.framework.SimpleInitialRequestStrategy.doInitialRequest(SimpleInitialRequestStrategy.java:48)
    at org.jboss.jsfunit.framework.WebClientSpec.doInitialRequest(WebClientSpec.java:259)
    at org.jboss.jsfunit.jsfsession.JSFSession.init(JSFSession.java:81)
    at org.jboss.jsfunit.jsfsession.JSFSession.init(JSFSession.java:58)
    at integration.jsfunit.NavigationTest.testMainMenuNavigationCustomers(NavigationTest.java:29)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:597)
    at junit.framework.TestCase.runTest(TestCase.java:154)
    at junit.framework.TestCase.runBare(TestCase.java:127)
    at org.apache.cactus.internal.AbstractCactusTestCase.runBareServer(AbstractCactusTestCase.java:153)
    at org.apache.cactus.internal.server.AbstractWebTestCaller.doTest(AbstractWebTestCaller.java:119)
    at org.apache.cactus.internal.server.AbstractWebTestController.handleRequest_aroundBody0(AbstractWebTestController.java:93)
    at org.apache.cactus.internal.server.AbstractWebTestController.handleRequest_aroundBody1$advice(AbstractWebTestController.java:217)
    at org.apache.cactus.internal.server.AbstractWebTestController.handleRequest(AbstractWebTestController.java)
    at org.apache.cactus.server.ServletTestRedirector.doPost_aroundBody2(ServletTestRedirector.java:101)
    at org.apache.cactus.server.ServletTestRedirector.doPost_aroundBody3$advice(ServletTestRedirector.java:217)
    at org.apache.cactus.server.ServletTestRedirector.doPost(ServletTestRedirector.java)
    at org.jboss.jsfunit.framework.JSFUnitServletRedirector.doPost(JSFUnitServletRedirector.java:46)
    at org.apache.cactus.server.ServletTestRedirector.doGet_aroundBody0(ServletTestRedirector.java:72)
    at org.apache.cactus.server.ServletTestRedirector.doGet_aroundBody1$advice(ServletTestRedirector.java:217)
    at org.apache.cactus.server.ServletTestRedirector.doGet(ServletTestRedirector.java)
    at org.jboss.jsfunit.framework.JSFUnitServletRedirector.doGet(JSFUnitServletRedirector.java:52)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:690)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
    at org.jboss.jsfunit.framework.JSFUnitFilter.doFilter(JSFUnitFilter.java:119)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
    at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
    at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
    at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:433)
    at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
    at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
    at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:563)
    at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
    at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:263)
    at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)
    at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:584)
    at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
    at java.lang.Thread.run(Thread.java:619)
    ======= EXCEPTION END ========

    DB:3.16:Problem With Testing Richfaces Applicaiton fx


    Also see http://community.jboss.org/wiki/usingthehtmlunitapiwithjsfunit

    Stan

  • RELEVANCY SCORE 3.09

    DB:3.09:Adf + Tdd (Test Driven Development) mx


    Hi,

    I'm learning TDD and I'll really appreciate to apply this technique to my Oracle ADF developments.

    With JUnit integration I can easily test my ADF BC and my beans but I now want to develop functional tests.
    So I want to test my JSF pages, redirections and so on.

    I found HtmlUnit, do you know if it's working well with ADF?

    Has you already developed with ADF using the TDD way? What did you learn from your experience?

    Thanks in advance for your help.

    DB:3.09:Adf + Tdd (Test Driven Development) mx

    Check also JSFUnit and the Shale Test Framework. Here 's how you setup JSFUnit static analysis testing.

  • RELEVANCY SCORE 3.09

    DB:3.09:Setting Value Of A Primefaces Selectonemenu ks



    Hello all,

    Has anyone found a way to test a Primefaces SelectOneMenu component using JSFUnit 2 / HtmlUnit? I can't select a value, and I can't get access to displayed values either.

    First of all, the primefaces component renders a selectOneMenu, used for VAT percentage selection in a product form, as follows:

    div id="productDetailForm:productVatPercentage" class="ui-selectonemenu ui-widget ui-state-default ui-corner-all ui-helper-clearfix" style="width: 75px; "
    div class="ui-helper-hidden-accessible"
    select id="productDetailForm:productVatPercentage_input" name="productDetailForm:productVatPercentage_input"
    option value="0.0"0.0%/option
    option value="6.0"6.0%/option
    option value="12.0" selected="selected"12.0%/option
    option value="21.0"21.0%/option
    /select
    /div
    input type="text" name="productDetailForm:productVatPercentage_editableInput" class="ui-selectonemenu-label ui-inputfield ui-corner-all" tabindex="-1" value="21.0" style="cursor: pointer; width: 59px; "
    div class="ui-selectonemenu-trigger ui-state-default ui-corner-right"
    span class="ui-icon ui-icon-triangle-1-s"/span
    /div
    /div

    DB:3.09:Setting Value Of A Primefaces Selectonemenu ks


    Nice work.

    I just had a look back at what I had done and I have something quite similar. Only difference is that I was clicking the span containing the text inside my selectOneMenu (richfaces). JSFUnit now has a method for handeling richfaces comboBox components but, I haven't been able to try it yet as upgrading my libs causes me a whole world of pain at the moment.

    Now, if only I can get approval to spend some time to fix the library problem...*sigh*

    Maybe it would be a good idea to update the JSFUnit wiki to provide these types of code snippets for other people. At the moment the wiki basically says to drop down to the HtmlUnit API to deal with more complex components (richfaces) and doesn't deal with PrimeFaces at all.

    Pretty sure Stan wouldn't mind if you started a page similar to https://community.jboss.org/wiki/JSFUnitWithRichFaces which is linked to from JSFUnit FAQ.

  • RELEVANCY SCORE 3.09

    DB:3.09:Javascript Error When Clicking On Element In Rich:Extendeddatatable j7


    Hi I am hoping someone has run into this or can offer some helpful suggestion,

    In My JSFUnit test clicking on a row element of an extended data table is causing the following error to occur.

    EcmaError: lineNumber=[10181] column=[0] lineSource=[null] name=[TypeError] sourceName=[http://localhost:9088/pmmt/xhtml/a4j/g/3_3_2.SR1/org/richfaces/ui.pack.js] message=[TypeError: Cannot call method "equals" of undefined (http://localhost:9088/pmmt/xhtml/a4j/g/3_3_2.SR1/org/richfaces/ui.pack.js#10181)]

    com.gargoylesoftware.htmlunit.ScriptException: TypeError: Cannot call method "equals" of undefined (http://localhost:9088/pmmt/xhtml/a4j/g/3_3_2.SR1/org/richfaces/ui.pack.js#10181)

    at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine$HtmlUnitContextAction.run(JavaScriptEngine.java:534)

    Here is the Scenario:

    I have 2 rich:extendedDataTables on my JSF page. When I click on a row in Table A, The data is refreshed in Table B to show detail line items for the row which was just selected in Table A. I am accomplishing this using a4j support tag on table A and setting the rerender attribute to the ID of Table B. Clicking a row on table B then causes a seperate area of the page to display some summary data.

    This all works fine in an actual browser IE 7 or Fire 3. but not in JSFUnit. When I try to do this in my JSFUnit test I get the javaScript error.

    So I noticed that I can click on a row in Table A in my test with no problem. Interesting to note that table A is not rerendered by any other component the way Table B is. I also confirmed that if I remove the remove the ID for Table B from the rerender attribute of the A4J support tag on Table A and just render the table data independantly (Just dummied up some data to try this out) Then I can click on Table B row with no problem.

    The issue appears to be that if a given rich:extendedDataTables Id is on a list of Id's to be rerendered, then Rich faces sets up the component as a target area to be rerendered by an ajax call and for whatever reason HTMLUnit cannot handle the clicked event properly.

    I have attached the stack trace for additional information and I am currently using release 3.3.2 SR1 of Rich Faces and HTMLUnit 2.5

    DB:3.09:Javascript Error When Clicking On Element In Rich:Extendeddatatable j7


    stan.silvert@jboss.com wrote:

    See HtmlUnit bug report here:

    http://sourceforge.net/tracker/?func=detailaid=2948498group_id=47038atid=448266

    This is now fixed in HtmlUnit. Unfortunately it did not make it into HtmlUnit 2.7. But note that Marc reports it only happens when simulating IE. So, you should be able to work around it by setting the BrowserVersion to FireFox with WebClientSpec. See JSFSessionAPI.

    Stan

  • RELEVANCY SCORE 3.09

    DB:3.09:Joshua Eckels Unit Testin Article: Problems With Both Httpunit And Htmluni 3k


    Hi all,

    I read through Joshua Eckels article on dev2dev about Unit Testing
    Workshop apps and am trying to put it to use.We are building a J2EE app
    using WebLogic Workshop and are trying to use HttpUnit for some
    testing. I have a JSP with a HTML Select list with a set of fixed
    options,and an onChange() handler on this list.When i try to set the
    value of the list in question using the following code:
    ********************************************************

    WebForm saveNewPersonForm =
    wc.getCurrentPage().getFormWithName("saveNewPersonForm");

    saveNewPersonForm.setParameter("{actionForm.roleId}","Federal Program
    Officer - Certified");//assign the roleId to be 649...that for cert po

    I get the following error:

    1)
    testCreateUsers....com.meterware.httpunit.IllegalParameterValueException:
    May not set parameter '{actionForm.roleId}' to 'Federal Program Officer
    - Certified'. Value must be one of: { }

    at
    com.meterware.httpunit.SelectionFormControl$Options.reportNoMatches(FormControl.java:1184)

    at
    com.meterware.httpunit.SelectionFormControl$SingleSelectOptions.claimUniqueValues(FormControl.java:1358)

    Could someone please point out what I am doing wrong?To clarify, heres
    the HTML source code for that form(this is when i do a view source on
    the HTML for the page):

    form name="saveNewPersonForm" method="post"
    action="/flows/person/UserManagement/saveNew.do"

    input type="hidden" name="{actionForm.action}" value="add"/

    ....

    table border="0"

    trtd colspan="2"brspan class="sectionHeader"Role
    Assignment/spanbrbr/td/tr

    tr

    td valign="top"span class="requiredFieldLabel"Role /spanspan
    class="requiredFieldAsterisk"*/span/td

    td valign="top"

    select name="{actionForm.roleId}" id="roleId"
    onchange="javascript:refreshRole();"

    option value="649" spanFederal Program Officer -
    Certified/span/option

    /select

    /td

    /tr

    ......

    .......

    /form

    The same sort of error occurs when i try using HtmlUnit...HtmlUnit cant seem to find the Select List at all.

    Thanks in advance!
    Vik.

    DB:3.09:Joshua Eckels Unit Testin Article: Problems With Both Httpunit And Htmluni 3k

    Hi all,

    I read through Joshua Eckels article on dev2dev about Unit Testing
    Workshop apps and am trying to put it to use.We are building a J2EE app
    using WebLogic Workshop and are trying to use HttpUnit for some
    testing. I have a JSP with a HTML Select list with a set of fixed
    options,and an onChange() handler on this list.When i try to set the
    value of the list in question using the following code:
    ********************************************************

    WebForm saveNewPersonForm =
    wc.getCurrentPage().getFormWithName("saveNewPersonForm");

    saveNewPersonForm.setParameter("{actionForm.roleId}","Federal Program
    Officer - Certified");//assign the roleId to be 649...that for cert po

    I get the following error:

    1)
    testCreateUsers....com.meterware.httpunit.IllegalParameterValueException:
    May not set parameter '{actionForm.roleId}' to 'Federal Program Officer
    - Certified'. Value must be one of: { }

    at
    com.meterware.httpunit.SelectionFormControl$Options.reportNoMatches(FormControl.java:1184)

    at
    com.meterware.httpunit.SelectionFormControl$SingleSelectOptions.claimUniqueValues(FormControl.java:1358)

    Could someone please point out what I am doing wrong?To clarify, heres
    the HTML source code for that form(this is when i do a view source on
    the HTML for the page):

    form name="saveNewPersonForm" method="post"
    action="/flows/person/UserManagement/saveNew.do"

    input type="hidden" name="{actionForm.action}" value="add"/

    ....

    table border="0"

    trtd colspan="2"brspan class="sectionHeader"Role
    Assignment/spanbrbr/td/tr

    tr

    td valign="top"span class="requiredFieldLabel"Role /spanspan
    class="requiredFieldAsterisk"*/span/td

    td valign="top"

    select name="{actionForm.roleId}" id="roleId"
    onchange="javascript:refreshRole();"

    option value="649" spanFederal Program Officer -
    Certified/span/option

    /select

    /td

    /tr

    ......

    .......

    /form

    The same sort of error occurs when i try using HtmlUnit...HtmlUnit cant seem to find the Select List at all.

    Thanks in advance!
    Vik.

  • RELEVANCY SCORE 3.09

    DB:3.09:Htmlunit-Designer 7z



    Hi, my team has hard, hard times developing tests using HtmlUnit, thus JSFUnit, basically due to long turnaround, so i've started writing a tool that aims to speed up this process.

    Check this out: https://github.com/blabno/htmlunit-designer

    DB:3.09:Htmlunit-Designer 7z


    Hi, my team has hard, hard times developing tests using HtmlUnit, thus JSFUnit, basically due to long turnaround, so i've started writing a tool that aims to speed up this process.

    Check this out: https://github.com/blabno/htmlunit-designer

  • RELEVANCY SCORE 3.09

    DB:3.09:Javascripttimeoutexception kc



    I keep getting JavascriptTimeoutException for every test that I run with the new HtmlUnit version of JSFUnit. Some of my pages my take a little while to load (10 seconds). Is there a way to set this timeout value?Stepping through the code it appears as though the next page is already loaded (or loading) by the time waitForJavascript() is called.Brian

    DB:3.09:Javascripttimeoutexception kc


    Actually I wasn't expecting any responses until Monday, so thanks. :)

  • RELEVANCY SCORE 3.09

    DB:3.09:Upgrade Htmlunit To 2.7? x9



    Is there any work being done on upgrading JSFUnit to use htmlUnit 2.7 as I have an irksome problem! Here is why I ask:

    I am using a rich:suggestionbox

    lt;rich:suggestionbox id="address_suburb_sug" minChars="3 " suggestionAction="#{marsConfig.autocompleteSuburb}" var="suggest" width="400"gt;

    lt;a4j:support event="onselect" ajaxSingle="true" reRender="suburb_section" status="address_create_status"gt;

    lt;f:setPropertyActionListener value="#{suggest.id.suburb}" target="#{clientRegnAddress.address.addressSub.town}" /gt;

    lt;f:setPropertyActionListener value="#{suggest.id.postcode}" target="#{clientRegnAddress.address.addressSub.postcode}" /gt;

    lt;f:setPropertyActionListener value="#{suggest.state}" target="#{clientRegnAddress.address.addressSub.state}" /gt;

    lt;/a4j:supportgt;

    lt;h:columngt;

    lt;h:outputText styleClass="label" value="#{suggest.id.suburb}" /gt;

    lt;/h:columngt;

    lt;h:columngt;

    lt;h:outputText styleClass="label" value="#{suggest.id.postcode}" /gt;

    lt;/h:columngt;

    lt;h:columngt;

    lt;h:outputText styleClass="label" value="#{suggest.state}" /gt;

    lt;/h:columngt;

    lt;/rich:suggestionboxgt;

    When I try go to the page that has this via

    jsfClientSession.click("m10_add_client_name_btn");

    I get an error

    java.lang.NoSuchMethodError: com.gargoylesoftware.htmlunit.WebResponse.getResponseBody()[B

    This has something to do with the suggestion box streaming xml data and webresponse can't handle it.

    The advice on from htmlUnit is to upgrade to 206 / 207. BUT this is the kicker JSFUnit (up to 1.2.0) is using HtmlUnit 2.5!!

    So I am stuck. Is there a work around for the suggestion box.

    Thank you,

    Andrew

    DB:3.09:Upgrade Htmlunit To 2.7? x9


    andrewg wrote:

    Hi Stan,

    Have you got any thoughts on my post above. Should I be raising a bug for this issue?

    Thank you for your help,

    Andrew

    Hopefully I'll have time to take a closer look today. I did see your post but I have to finish something else first.

    Did you build HtmlUnit from SVN to get around the other bug? If so, can you attach it to save me a little time?

    Stan

  • RELEVANCY SCORE 2.95

    DB:2.95:Problem Deploying Gatein In Eap-6 x7



    Hi everyone,

    I need to deploy Gatein in EAP 6.

    For this i have followed the instructions given in

    https://github.com/gatein/gatein-portal

    As per the instructions given in the above website,the EAP version supported is EAP-6.3.0.Alpha1

    Now the downloads page of Jboss EAP does not show EAP 6.3.0.Alpha1 but shows EAP 6.3.0.Alpha.

    I downloaded EAP 6.3.0.Beta and tried deploying gatein in EAP 6.3.0.Beta.

    I also unzipped the repository folder to .m2/repository.

    Now when I try to run with the following command,

    mvn install -DskipTests -Dservers.dir=D:/Softwares/SERVERS_DIR -Dgatein.dev=eap630

    I get the following error,

    ......

    [INFO] GateIn JBoss AS-based packaging (Wildfly / EAP) ... SUCCESS [0.070s]

    [INFO] GateIn - Portlet Container (JBoss AS-based Extension) FAILURE [17.446s]

    [INFO] GateIn - Portlet Container (JBoss AS-based Extension Modules) SKIPPED

    [INFO] GateIn package for JBoss AS-based (Wildfly / EAP) . SKIPPED

    [INFO] TestSuite for GateIn .............................. SKIPPED

    [INFO] Selenium Sniff Test for GateIn .................... SKIPPED

    [INFO] GateIn Portal Examples - WebUI based samples ...... SKIPPED

    [INFO] HTMLUnit Tests for GateIn ......................... SKIPPED

    [INFO] Selenium UI Tests for GateIn ...................... SKIPPED

    [INFO] ------------------------------------------------------------------------

    [INFO] BUILD FAILURE

    [INFO] ------------------------------------------------------------------------

    [INFO] Total time: 4:27.144s

    [INFO] Finished at: Thu Jun 26 14:32:55 IST 2014

    [INFO] Final Memory: 121M/247M

    [INFO] ------------------------------------------------------------------------

    [ERROR] Failed to execute goal on project jboss-integration-extension: Could not resolve dependencies for project org.gatein.portal:jboss-integration-

    extension:jar:3.9.0.Alpha01-SNAPSHOT: Failed to collect dependencies for [org.jboss.as:jboss-as-controller:jar:7.4.0.Final-redhat-4 (compile), org.jbo

    ss.as:jboss-as-server:jar:7.4.0.Final-redhat-4 (compile), org.jboss.as:jboss-as-ee:jar:7.4.0.Final-redhat-4 (compile), org.jboss.as:jboss-as-web:jar:7

    .4.0.Final-redhat-4 (compile), org.jboss.as:jboss-as-weld:jar:7.4.0.Final-redhat-4 (compile), org.jboss:jboss-vfs:jar:3.1.0.Final (compile), org.exopl

    atform.kernel:exo.kernel.container:jar:2.5.0-GA (compile), org.gatein.portal:exo.portal.webui.portal:jar:3.9.0.Alpha01-SNAPSHOT (compile), org.gatein.

    wci:wci-jboss7:jar:2.4.2.Final (compile), org.gatein.integration:extension-component:jar:3.9.0.Alpha01-SNAPSHOT (compile), org.gatein.wsrp:wsrp-integr

    ation-api:jar:2.3.2.Final (provided), org.gatein.cdi:gatein-cdi-contexts:jar:3.9.0.Alpha01-SNAPSHOT (compile), org.jboss.portletbridge:portletbridge-i

    mpl:jar:3.3.2.Final (compile), junit:junit:jar:4.10 (test), org.jboss.as:jboss-as-subsystem-test-framework:jar:7.4.0.Final-redhat-4 (compile), org.slf

    4j:slf4j-log4j12:jar:1.7.5 (test), org.slf4j:jul-to-slf4j:jar:1.7.5 (test), commons-logging:commons-logging:jar:1.1.1 (test), org.hsqldb:hsqldb:jar:2.

    3.0 (test), org.javassist:javassist:jar:3.18.0-GA (test)]: Failed to read artifact descriptor for org.jboss.sasl:jboss-sasl:jar:1.0.3.Final-redhat-1:

    Could not transfer artifact org.jboss:jboss-parent:pom:9-redhat-1 from/to jboss-product-repository (http://download.lab.bos.redhat.com/brewroot/repos/

    jb-eap-6-rhel-6-build/latest/maven/): download.lab.bos.redhat.com: Unknown host download.lab.bos.redhat.com - [Help 1]

    [ERROR]

    [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.

    [ERROR] Re-run Maven using the -X switch to enable full debug logging.

    [ERROR]

    [ERROR] For more information about the errors and possible solutions, please read the following articles:

    [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/DependencyResolutionException

    [ERROR]

    [ERROR] After correcting the problems, you can resume the build with the command

    [ERROR] mvn goals -rf :jboss-integration-extension

    Let me know how to resolve the same.

    Also, I would like to make this work in a GA version of EAP (EAP-6.2.0.GA) Let me know ho to make this work.

    Thanks,

    DB:2.95:Problem Deploying Gatein In Eap-6 x7


    Hi Lucas,

    Thanks a lot for your reply.

    As suggested, I followed your approach. The above mentioned exception has gone. I am facing another exception. Refer the stack trace below.

    Also please do let me know how to go about deploying Gatein in EAP 6.2.0.GA. I would like to deploy Gatein in a stable, general availability verison of EAP. Thanks again!

    Regards,

    Meenakshi

    PS the stack trace below.

    [ERROR] Failed to execute goal on project jboss-integration-extension: Could not resolve dependencies for project org.gatein.portal:jboss-integration

    extension:jar:3.9.0.Alpha01-SNAPSHOT: Failed to collect dependencies for [org.jboss.as:jboss-as-controller:jar:7.4.0.Final-redhat-4 (compile), org.jb

    ss.as:jboss-as-server:jar:7.4.0.Final-redhat-4 (compile), org.jboss.as:jboss-as-ee:jar:7.4.0.Final-redhat-4 (compile), org.jboss.as:jboss-as-web:jar:

    .4.0.Final-redhat-4 (compile), org.jboss.as:jboss-as-weld:jar:7.4.0.Final-redhat-4 (compile), org.jboss:jboss-vfs:jar:3.1.0.Final (compile), org.exop

    atform.kernel:exo.kernel.container:jar:2.5.0-GA (compile), org.gatein.portal:exo.portal.webui.portal:jar:3.9.0.Alpha01-SNAPSHOT (compile), org.gatein

    wci:wci-jboss7:jar:2.4.1.Final (compile), org.gatein.integration:extension-component:jar:3.9.0.Alpha01-SNAPSHOT (compile), org.gatein.wsrp:wsrp-integ

    ation-api:jar:2.3.1.Final (provided), org.gatein.cdi:gatein-cdi-contexts:jar:3.9.0.Alpha01-SNAPSHOT (compile), org.jboss.portletbridge:portletbridge-

    mpl:jar:3.3.1.Final (compile), junit:junit:jar:4.10 (test), org.jboss.as:jboss-as-subsystem-test-framework:jar:7.4.0.Final-redhat-4 (compile), org.sl

    4j:slf4j-log4j12:jar:1.7.5 (test), org.slf4j:jul-to-slf4j:jar:1.7.5 (test), commons-logging:commons-logging:jar:1.1.1 (test), org.hsqldb:hsqldb:jar:2

    3.0 (test), org.javassist:javassist:jar:3.18.0-GA (test)]: Failed to read artifact descriptor for org.jboss.sasl:jboss-sasl:jar:1.0.3.Final-redhat-1:

    Could not transfer artifact org.jboss:jboss-parent:pom:9-redhat-1 from/to caja (http://google-caja.googlecode.com/svn/maven): Connection to http://go

    gle-caja.googlecode.com refused: Connection timed out: connect - [Help 1]

    org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal on project jboss-integration-extension: Could not resolve dependencies

    for project org.gatein.portal:jboss-integration-extension:jar:3.9.0.Alpha01-SNAPSHOT: Failed to collect dependencies for [org.jboss.as:jboss-as-contr

    ller:jar:7.4.0.Final-redhat-4 (compile), org.jboss.as:jboss-as-server:jar:7.4.0.Final-redhat-4 (compile), org.jboss.as:jboss-as-ee:jar:7.4.0.Final-re

    hat-4 (compile), org.jboss.as:jboss-as-web:jar:7.4.0.Final-redhat-4 (compile), org.jboss.as:jboss-as-weld:jar:7.4.0.Final-redhat-4 (compile), org.jbo

    s:jboss-vfs:jar:3.1.0.Final (compile), org.exoplatform.kernel:exo.kernel.container:jar:2.5.0-GA (compile), org.gatein.portal:exo.portal.webui.portal:

    ar:3.9.0.Alpha01-SNAPSHOT (compile), org.gatein.wci:wci-jboss7:jar:2.4.1.Final (compile), org.gatein.integration:extension-component:jar:3.9.0.Alpha0

    -SNAPSHOT (compile), org.gatein.wsrp:wsrp-integration-api:jar:2.3.1.Final (provided), org.gatein.cdi:gatein-cdi-contexts:jar:3.9.0.Alpha01-SNAPSHOT (

    ompile), org.jboss.portletbridge:portletbridge-impl:jar:3.3.1.Final (compile), junit:junit:jar:4.10 (test), org.jboss.as:jboss-as-subsystem-test-fram

    work:jar:7.4.0.Final-redhat-4 (compile), org.slf4j:slf4j-log4j12:jar:1.7.5 (test), org.slf4j:jul-to-slf4j:jar:1.7.5 (test), commons-logging:commons-l

    gging:jar:1.1.1 (test), org.hsqldb:hsqldb:jar:2.3.0 (test), org.javassist:javassist:jar:3.18.0-GA (test)]

    at org.apache.maven.lifecycle.internal.LifecycleDependencyResolver.getDependencies(LifecycleDependencyResolver.java:210)

    at org.apache.maven.lifecycle.internal.LifecycleDependencyResolver.resolveProjectDependencies(LifecycleDependencyResolver.java:117)

    at org.apache.maven.lifecycle.internal.MojoExecutor.ensureDependenciesAreResolved(MojoExecutor.java:258)

    at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:201)

    at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153)

    at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145)

    at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:84)

    at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:59)

    at org.apache.maven.lifecycle.internal.LifecycleStarter.singleThreadedBuild(LifecycleStarter.java:183)

    at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:161)

    at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:320)

    at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:156)

    at org.apache.maven.cli.MavenCli.execute(MavenCli.java:537)

    at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:196)

    at org.apache.maven.cli.MavenCli.main(MavenCli.java:141)

    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)

    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

    at java.lang.reflect.Method.invoke(Method.java:601)

    at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:290)

    at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:230)

    at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:409)

    at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:352)

    Caused by: org.apache.maven.project.DependencyResolutionException: Could not resolve dependencies for project org.gatein.portal:jboss-integration-ext

    nsion:jar:3.9.0.Alpha01-SNAPSHOT: Failed to collect dependencies for [org.jboss.as:jboss-as-controller:jar:7.4.0.Final-redhat-4 (compile), org.jboss.

    s:jboss-as-server:jar:7.4.0.Final-redhat-4 (compile), org.jboss.as:jboss-as-ee:jar:7.4.0.Final-redhat-4 (compile), org.jboss.as:jboss-as-web:jar:7.4.

    .Final-redhat-4 (compile), org.jboss.as:jboss-as-weld:jar:7.4.0.Final-redhat-4 (compile), org.jboss:jboss-vfs:jar:3.1.0.Final (compile), org.exoplatf

    rm.kernel:exo.kernel.container:jar:2.5.0-GA (compile), org.gatein.portal:exo.portal.webui.portal:jar:3.9.0.Alpha01-SNAPSHOT (compile), org.gatein.wci

    wci-jboss7:jar:2.4.1.Final (compile), org.gatein.integration:extension-component:jar:3.9.0.Alpha01-SNAPSHOT (compile), org.gatein.wsrp:wsrp-integrati

    n-api:jar:2.3.1.Final (provided), org.gatein.cdi:gatein-cdi-contexts:jar:3.9.0.Alpha01-SNAPSHOT (compile), org.jboss.portletbridge:portletbridge-impl

    jar:3.3.1.Final (compile), junit:junit:jar:4.10 (test), org.jboss.as:jboss-as-subsystem-test-framework:jar:7.4.0.Final-redhat-4 (compile), org.slf4j:

    lf4j-log4j12:jar:1.7.5 (test), org.slf4j:jul-to-slf4j:jar:1.7.5 (test), commons-logging:commons-logging:jar:1.1.1 (test), org.hsqldb:hsqldb:jar:2.3.0

    (test), org.javassist:javassist:jar:3.18.0-GA (test)]

    at org.apache.maven.project.DefaultProjectDependenciesResolver.resolve(DefaultProjectDependenciesResolver.java:158)

    at org.apache.maven.lifecycle.internal.LifecycleDependencyResolver.getDependencies(LifecycleDependencyResolver.java:185)

    ... 22 more

    Caused by: org.sonatype.aether.collection.DependencyCollectionException: Failed to collect dependencies for [org.jboss.as:jboss-as-controller:jar:7.4

    0.Final-redhat-4 (compile), org.jboss.as:jboss-as-server:jar:7.4.0.Final-redhat-4 (compile), org.jboss.as:jboss-as-ee:jar:7.4.0.Final-redhat-4 (compi

    e), org.jboss.as:jboss-as-web:jar:7.4.0.Final-redhat-4 (compile), org.jboss.as:jboss-as-weld:jar:7.4.0.Final-redhat-4 (compile), org.jboss:jboss-vfs:

    ar:3.1.0.Final (compile), org.exoplatform.kernel:exo.kernel.container:jar:2.5.0-GA (compile), org.gatein.portal:exo.portal.webui.portal:jar:3.9.0.Alp

    a01-SNAPSHOT (compile), org.gatein.wci:wci-jboss7:jar:2.4.1.Final (compile), org.gatein.integration:extension-component:jar:3.9.0.Alpha01-SNAPSHOT (c

    mpile), org.gatein.wsrp:wsrp-integration-api:jar:2.3.1.Final (provided), org.gatein.cdi:gatein-cdi-contexts:jar:3.9.0.Alpha01-SNAPSHOT (compile), org

    jboss.portletbridge:portletbridge-impl:jar:3.3.1.Final (compile), junit:junit:jar:4.10 (test), org.jboss.as:jboss-as-subsystem-test-framework:jar:7.4

    0.Final-redhat-4 (compile), org.slf4j:slf4j-log4j12:jar:1.7.5 (test), org.slf4j:jul-to-slf4j:jar:1.7.5 (test), commons-logging:commons-logging:jar:1.

    .1 (test), org.hsqldb:hsqldb:jar:2.3.0 (test), org.javassist:javassist:jar:3.18.0-GA (test)]

    at org.sonatype.aether.impl.internal.DefaultDependencyCollector.collectDependencies(DefaultDependencyCollector.java:258)

    at org.sonatype.aether.impl.internal.DefaultRepositorySystem.collectDependencies(DefaultRepositorySystem.java:308)

    at org.apache.maven.project.DefaultProjectDependenciesResolver.resolve(DefaultProjectDependenciesResolver.java:150)

    ... 23 more

    Caused by: org.sonatype.aether.resolution.ArtifactDescriptorException: Failed to read artifact descriptor for org.jboss.sasl:jboss-sasl:jar:1.0.3.Fin

    l-redhat-1

    at org.apache.maven.repository.internal.DefaultArtifactDescriptorReader.loadPom(DefaultArtifactDescriptorReader.java:331)

    at org.apache.maven.repository.internal.DefaultArtifactDescriptorReader.readArtifactDescriptor(DefaultArtifactDescriptorReader.java:186)

    at org.sonatype.aether.impl.internal.DefaultDependencyCollector.process(DefaultDependencyCollector.java:412)

    at org.sonatype.aether.impl.internal.DefaultDependencyCollector.process(DefaultDependencyCollector.java:544)

    at org.sonatype.aether.impl.internal.DefaultDependencyCollector.process(DefaultDependencyCollector.java:544)

    at org.sonatype.aether.impl.internal.DefaultDependencyCollector.process(DefaultDependencyCollector.java:544)

    at org.sonatype.aether.impl.internal.DefaultDependencyCollector.collectDependencies(DefaultDependencyCollector.java:240)

    ... 25 more

    Caused by: org.apache.maven.model.resolution.UnresolvableModelException: Could not transfer artifact org.jboss:jboss-parent:pom:9-redhat-1 from/to ca

    a (http://google-caja.googlecode.com/svn/maven): Connection to http://google-caja.googlecode.com refused

    at org.apache.maven.repository.internal.DefaultModelResolver.resolveModel(DefaultModelResolver.java:126)

    at org.apache.maven.model.building.DefaultModelBuilder.readParentExternally(DefaultModelBuilder.java:813)

    at org.apache.maven.model.building.DefaultModelBuilder.readParent(DefaultModelBuilder.java:664)

    at org.apache.maven.model.building.DefaultModelBuilder.build(DefaultModelBuilder.java:310)

    at org.apache.maven.model.building.DefaultModelBuilder.build(DefaultModelBuilder.java:232)

    at org.apache.maven.repository.internal.DefaultArtifactDescriptorReader.loadPom(DefaultArtifactDescriptorReader.java:322)

    ... 31 more

    Caused by: org.sonatype.aether.resolution.ArtifactResolutionException: Could not transfer artifact org.jboss:jboss-parent:pom:9-redhat-1 from/to caja

    (http://google-caja.googlecode.com/svn/maven): Connection to http://google-caja.googlecode.com refused

    at org.sonatype.aether.impl.internal.DefaultArtifactResolver.resolve(DefaultArtifactResolver.java:538)

    at org.sonatype.aether.impl.internal.DefaultArtifactResolver.resolveArtifacts(DefaultArtifactResolver.java:216)

    at org.sonatype.aether.impl.internal.DefaultArtifactResolver.resolveArtifact(DefaultArtifactResolver.java:193)

    at org.apache.maven.repository.internal.DefaultModelResolver.resolveModel(DefaultModelResolver.java:122)

    ... 36 more

    Caused by: org.sonatype.aether.transfer.ArtifactTransferException: Could not transfer artifact org.jboss:jboss-parent:pom:9-redhat-1 from/to caja (ht

    p://google-caja.googlecode.com/svn/maven): Connection to http://google-caja.googlecode.com refused

    at org.sonatype.aether.connector.wagon.WagonRepositoryConnector$4.wrap(WagonRepositoryConnector.java:951)

    at org.sonatype.aether.connector.wagon.WagonRepositoryConnector$4.wrap(WagonRepositoryConnector.java:941)

    at org.sonatype.aether.connector.wagon.WagonRepositoryConnector$GetTask.run(WagonRepositoryConnector.java:669)

    at org.sonatype.aether.util.concurrency.RunnableErrorForwarder$1.run(RunnableErrorForwarder.java:60)

    at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)

    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)

    at java.lang.Thread.run(Thread.java:722)

    Caused by: org.apache.maven.wagon.TransferFailedException: Connection to http://google-caja.googlecode.com refused

    at org.apache.maven.wagon.shared.http4.AbstractHttpClientWagon.resourceExists(AbstractHttpClientWagon.java:597)

    at org.sonatype.aether.connector.wagon.WagonRepositoryConnector$GetTask.run(WagonRepositoryConnector.java:577)

    ... 4 more

    Caused by: org.apache.maven.wagon.providers.http.httpclient.conn.HttpHostConnectException: Connection to http://google-caja.googlecode.com refused

    at org.apache.maven.wagon.providers.http.httpclient.impl.conn.DefaultClientConnectionOperator.openConnection(DefaultClientConnectionOperator.

    ava:158)

    at org.apache.maven.wagon.providers.http.httpclient.impl.conn.AbstractPoolEntry.open(AbstractPoolEntry.java:149)

    at org.apache.maven.wagon.providers.http.httpclient.impl.conn.AbstractPooledConnAdapter.open(AbstractPooledConnAdapter.java:121)

    at org.apache.maven.wagon.providers.http.httpclient.impl.client.DefaultRequestDirector.tryConnect(DefaultRequestDirector.java:573)

    at org.apache.maven.wagon.providers.http.httpclient.impl.client.DefaultRequestDirector.execute(DefaultRequestDirector.java:425)

    at org.apache.maven.wagon.providers.http.httpclient.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:820)

    at org.apache.maven.wagon.providers.http.httpclient.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:754)

    at org.apache.maven.wagon.shared.http4.AbstractHttpClientWagon.execute(AbstractHttpClientWagon.java:674)

    at org.apache.maven.wagon.shared.http4.AbstractHttpClientWagon.resourceExists(AbstractHttpClientWagon.java:593)

    ... 5 more

    Caused by: java.net.ConnectException: Connection timed out: connect

    at java.net.DualStackPlainSocketImpl.connect0(Native Method)

    at java.net.DualStackPlainSocketImpl.socketConnect(DualStackPlainSocketImpl.java:69)

    at java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:339)

    at java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:200)

    at java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:182)

    at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:157)

    at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:391)

    at java.net.Socket.connect(Socket.java:579)

    at org.apache.maven.wagon.providers.http.httpclient.conn.scheme.PlainSocketFactory.connectSocket(PlainSocketFactory.java:123)

    at org.apache.maven.wagon.providers.http.httpclient.impl.conn.DefaultClientConnectionOperator.openConnection(DefaultClientConnectionOperator.

    ava:148)

    ... 13 more

    [ERROR]

    [ERROR]

    [ERROR] For more information about the errors and possible solutions, please read the following articles:

    [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/DependencyResolutionException

    [ERROR]

    [ERROR] After correcting the problems, you can resume the build with the command

    [ERROR] mvn goals -rf :jboss-integration-extension

    E:\iSoVA\Softwares\GateinPortalAlpha\gatein-portal

  • RELEVANCY SCORE 2.95

    DB:2.95:Fatal Linkage Error If Multiple Threads Access The Webapp After Startup f1



    Hi all!We have a webapp running with Seam/RichFaces in production. Running a performance test with JUnitPerf and HtmlUnit we just found out that if we access the webapp with multiple threads right after it has been started we get this fatal linkage error:

    2010-08-13 11:03:26,605 INFO - facelets.compiler: Added Library from: jar:file:/c:/.m2/repository/com/sun/facelets/jsf-facelets/1.1.14/jsf-facelets-1.1.14.jar!/META-INF/jsf-core.taglib.xml2010-08-13 11:03:26,605 INFO - facelets.compiler: Added Library from: jar:file:/c:/.m2/repository/com/sun/facelets/jsf-facelets/1.1.14/jsf-facelets-1.1.14.jar!/META-INF/jsf-html.taglib.xml2010-08-13 11:03:26,621 INFO - facelets.compiler: Added Library from: jar:file:/c:/.m2/repository/com/sun/facelets/jsf-facelets/1.1.14/jsf-facelets-1.1.14.jar!/META-INF/jsf-ui.taglib.xml2010-08-13 11:03:26,637 INFO - facelets.compiler: Added Library from: jar:file:/c:/.m2/repository/com/sun/facelets/jsf-facelets/1.1.14/jsf-facelets-1.1.14.jar!/META-INF/jstl-core.taglib.xml2010-08-13 11:03:26,637 INFO - facelets.compiler: Added Library from: jar:file:/c:/.m2/repository/com/sun/facelets/jsf-facelets/1.1.14/jsf-facelets-1.1.14.jar!/META-INF/jstl-fn.taglib.xml2010-08-13 11:03:26,652 INFO - facelets.compiler: Added Library from: jar:file:/c:/.m2/repository/org/jboss/seam/jboss-seam-ui/2.1.2/jboss-seam-ui-2.1.2.jar!/META-INF/s.taglib.xml2010-08-13 11:03:26,652 INFO - facelets.compiler: Added Library from: jar:file:/c:/.m2/repository/org/jboss/seam/jboss-seam-pdf/2.1.2/jboss-seam-pdf-2.1.2.jar!/META-INF/seam-pdf.taglib.xml2010-08-13 11:03:26,668 INFO - facelets.compiler: Added Library from: jar:file:/c:/.m2/repository/org/jboss/seam/jboss-seam-excel/2.1.2/jboss-seam-excel-2.1.2.jar!/META-INF/seam-excel.taglib.xml2010-08-13 11:03:26,683 INFO - facelets.compiler: Added Library from: jar:file:/c:/.m2/repository/org/jboss/richfaces/richfaces-ui/3.3.0.GA/richfaces-ui-3.3.0.GA.jar!/META-INF/a4j.taglib.xml2010-08-13 11:03:26,683 INFO - facelets.compiler: Added Library from: jar:file:/c:/.m2/repository/org/jboss/richfaces/richfaces-ui/3.3.0.GA/richfaces-ui-3.3.0.GA.jar!/META-INF/ajax4jsf.taglib.xml2010-08-13 11:03:26,683 INFO - facelets.compiler: Added Library from: jar:file:/c:/.m2/repository/org/jboss/richfaces/richfaces-ui/3.3.0.GA/richfaces-ui-3.3.0.GA.jar!/META-INF/jsp.taglib.xml2010-08-13 11:03:26,746 INFO - facelets.compiler: Added Library from: jar:file:/c:/.m2/repository/org/jboss/richfaces/richfaces-ui/3.3.0.GA/richfaces-ui-3.3.0.GA.jar!/META-INF/rich.taglib.xml2010-08-13 11:03:26,746 INFO - facelets.compiler: Added Library from: jar:file:/c:/.m2/repository/org/jboss/richfaces/richfaces-ui/3.3.0.GA/richfaces-ui-3.3.0.GA.jar!/META-INF/richfaces.taglib.xml2010-08-13 11:03:28,119 ERROR - ch.rtc.cyberibis.admin.components.ExceptionsHandler: javax.servlet.ServletException: Servlet execution threw an exception2010-08-13 11:03:28,119 ERROR - ch.rtc.cyberibis.admin.components.ExceptionsHandler: org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:313)org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)ch.rtc.cyberibis.admin.web.servlet.filter.TimingFilter.doFilter(TimingFilter.java:44)org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:83)org.jboss.seam.web.IdentityFilter.doFilter(IdentityFilter.java:40)org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)org.jboss.seam.web.MultipartFilter.doFilter(MultipartFilter.java:90)org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)org.jboss.seam.web.ExceptionFilter.doFilter(ExceptionFilter.java:64)org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)org.ajax4jsf.webapp.BaseXMLFilter.doXmlFilter(BaseXMLFilter.java:178)org.ajax4jsf.webapp.BaseFilter.handleRequest(BaseFilter.java:290)org.ajax4jsf.webapp.BaseFilter.processUploadsAndHandleRequest(BaseFilter.java:390)org.ajax4jsf.webapp.BaseFilter.doFilter(BaseFilter.java:517)org.jboss.seam.web.Ajax4jsfFilter.doFilter(Ajax4jsfFilter.java:56)org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)org.jboss.seam.web.LoggingFilter.doFilter(LoggingFilter.java:60)org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)org.jboss.seam.servlet.SeamFilter.doFilter(SeamFilter.java:158)org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:433)org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:286)org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)java.lang.Thread.run(Thread.java:619)

    2010-08-13 11:03:28,244 ERROR - org.jboss.seam.exception.Exceptions: handled and logged exceptionjavax.servlet.ServletException: Servlet execution threw an exception at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:313) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) at ch.rtc.cyberibis.admin.web.servlet.filter.TimingFilter.doFilter(TimingFilter.java:44) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:83) at org.jboss.seam.web.IdentityFilter.doFilter(IdentityFilter.java:40) at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69) at org.jboss.seam.web.MultipartFilter.doFilter(MultipartFilter.java:90) at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69) at org.jboss.seam.web.ExceptionFilter.doFilter(ExceptionFilter.java:64) at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69) at org.ajax4jsf.webapp.BaseXMLFilter.doXmlFilter(BaseXMLFilter.java:178) at org.ajax4jsf.webapp.BaseFilter.handleRequest(BaseFilter.java:290) at org.ajax4jsf.webapp.BaseFilter.processUploadsAndHandleRequest(BaseFilter.java:390) at org.ajax4jsf.webapp.BaseFilter.doFilter(BaseFilter.java:517) at org.jboss.seam.web.Ajax4jsfFilter.doFilter(Ajax4jsfFilter.java:56) at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69) at org.jboss.seam.web.LoggingFilter.doFilter(LoggingFilter.java:60) at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69) at org.jboss.seam.servlet.SeamFilter.doFilter(SeamFilter.java:158) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175) at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:433) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:286) at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844) at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583) at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447) at java.lang.Thread.run(Thread.java:619)Caused by: java.lang.LinkageError: loader (instance of org/apache/catalina/loader/WebappClassLoader): attempted duplicate class definition for name: "org/ajax4jsf/component/RenderPhaseUIDataAdaptorVisitor" at java.lang.ClassLoader.defineClass1(Native Method) at java.lang.ClassLoader.defineClass(ClassLoader.java:621) at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:124) at java.net.URLClassLoader.defineClass(URLClassLoader.java:260) at java.net.URLClassLoader.access$000(URLClassLoader.java:56) at java.net.URLClassLoader$1.run(URLClassLoader.java:195) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(URLClassLoader.java:188) at org.apache.catalina.loader.WebappClassLoader.findClass(WebappClassLoader.java:887) at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1327) at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1206) at org.ajax4jsf.util.ServicesUtils.loadClass(ServicesUtils.java:143) at org.richfaces.util.RenderPhaseComponentVisitorUtils.init(RenderPhaseComponentVisitorUtils.java:76) at org.richfaces.util.RenderPhaseComponentVisitorUtils.getVisitors(RenderPhaseComponentVisitorUtils.java:55) at org.richfaces.event.RenderPhaseComponentListener.beforePhase(RenderPhaseComponentListener.java:64) at org.ajax4jsf.component.AjaxViewRoot.processPhaseListeners(AjaxViewRoot.java:185) at org.ajax4jsf.component.AjaxViewRoot.encodeBegin(AjaxViewRoot.java:502) at javax.faces.component.UIComponent.encodeAll(UIComponent.java:884) at com.sun.facelets.FaceletViewHandler.renderView(FaceletViewHandler.java:592) at org.ajax4jsf.application.ViewHandlerWrapper.renderView(ViewHandlerWrapper.java:100) at org.ajax4jsf.application.AjaxViewHandler.renderView(AjaxViewHandler.java:176) at com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:106) at com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:251) at com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:144) at javax.faces.webapp.FacesServlet.service(FacesServlet.java:245) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290) ... 33 more

    On the other hand if we access the webapp with a single thread after startup and then run our performance test, all goes well.

    Any ideas?

    DB:2.95:Fatal Linkage Error If Multiple Threads Access The Webapp After Startup f1


    seems to be a tomcat issue, since this error does not ocurr on weblogic 11g

  • RELEVANCY SCORE 2.95

    DB:2.95:Jsfunit Integration: Still Some Work To Do mk



    I was hoping to have a demo of using JSFUnit with Arquillian for my Java EE testing talk at NFJS, but I ran out of time trying to make it work. It appears there's still work that needs to be done to make this integration smooth, or work at all.

    There are at least two challenges at the moment:

    JSFUnit requires a lot of third-party JAR files and the burden of packaging them falls on the userThe protocol servlet can't find the test class for some reason (I'm getting a classloader exception)

    I'll document my steps so far.

    1. Collect dependent JARs

    I needed to grab the dependent JAR files and put them in a place where ShrinkWrap could find them. I used a Maven profile to pull the dependencies from the repository and stick them in the target/test-classes/jsfunit/lib directory. (The target location I choose is a hack to just get past this step).

    dependencies
    ...
    dependency
    groupIdjunit/groupId
    artifactIdjunit/artifactId
    version4.8.1/version
    scopetest/scope
    /dependency
    /dependencies

    profiles
    profile
    idjsfunit/id
    dependencies
    dependency
    groupIdorg.jboss.jsfunit/groupId
    artifactIdjboss-jsfunit-core/artifactId
    version1.2.0.Final/version
    scopetest/scope
    dependency
    groupIdorg.apache.ant/groupId
    artifactIdant/artifactId
    version1.7.0/version
    scopetest/scope
    /dependency
    /dependency
    /dependencies
    build
    plugins
    plugin
    groupIdorg.apache.maven.plugins/groupId
    artifactIdmaven-dependency-plugin/artifactId
    executions
    execution
    idcopy-dependencies/id
    phasegenerate-test-sources/phase
    goals
    goalcopy-dependencies/goal
    /goals
    configuration
    outputDirectorytarget/test-classes/jsfunit/lib/outputDirectory
    includeScopetest/includeScope
    includeArtifactIds
    jboss-jsfunit-core,aspectjrt,cactus,nekohtml,htmlunit,
    htmlunit-core-js,cssparser,commons-httpclient,commons-io,
    sac,commons-lang,commons-codec,commons-logging,
    commons-collections,cactus-ant,cargo,ant
    /includeArtifactIds
    stripVersiontrue/stripVersion
    /configuration
    /execution
    /executions
    /plugin
    /plugins
    /build
    /profile
    /profiles

    DB:2.95:Jsfunit Integration: Still Some Work To Do mk


    see: http://community.jboss.org/message/583323#583323

  • RELEVANCY SCORE 2.95

    DB:2.95:Testing Rich:Fileupload With Htmlunit zj



    I have the following test:

    /*
    * based on jboss tests
    */
    package org.jboss.jsfunit.test.richfaces;
    import com.gargoylesoftware.htmlunit.html.HtmlFileInput;
    import com.gargoylesoftware.htmlunit.html.HtmlForm;
    import com.gargoylesoftware.htmlunit.javascript.host.Element;
    import java.io.File;
    import java.io.IOException;
    import java.util.ArrayList;
    import junit.framework.Test;
    import junit.framework.TestSuite;
    import org.apache.cactus.ServletTestCase;
    import org.jboss.jsfunit.jsfsession.ComponentIDNotFoundException;
    import org.jboss.jsfunit.jsfsession.JSFClientSession;
    import org.jboss.jsfunit.jsfsession.JSFServerSession;
    import org.jboss.jsfunit.jsfsession.JSFSession;
    import org.jboss.jsfunit.richclient.RichFacesClient;

    /**
    * Peform JSFUnit tests on RichFaces demo application.
    *
    * @author Stan Silvert
    */
    public class RichFileUploadTest extends ServletTestCase
    {
    private JSFSession jsfSession;
    private JSFClientSession client;
    private RichFacesClient ajaxClient;
    private JSFServerSession server;

    public void setUp() throws IOException
    {
    this.jsfSession = new JSFSession("/richfaces/fileUpload.jsf");
    this.client = jsfSession.getJSFClientSession();
    this.ajaxClient = new RichFacesClient(this.client);
    this.server = jsfSession.getJSFServerSession();
    }

    public void tearDown() throws Exception
    {
    this.jsfSession = null;
    this.client = null;
    this.ajaxClient = null;
    this.server = null;
    }

    public void testFilePresent() throws IOException
    {
    final String filename = "D:\\Notes-hkatz\\images\\support_desk.png";
    ArrayListFile uploadedFiles = setFileParameter(filename);
    assertEquals(1, uploadedFiles.size());
    for (File upf : uploadedFiles) {
    System.out.println("file: " + upf.getAbsolutePath() + ", size: " + upf.length());
    }
    }

    public static Test suite()
    {
    return new TestSuite( RichFileUploadTest.class );
    }

    private ArrayListFile setFileParameter(String filename)
    {
    final String uploadForm = "uploadform";
    final String uploadBtn = "uploadform:upload:upload1";
    final String uploadTextInput = "uploadform:upload:file";

    File f = new File(filename);
    if (!f.exists()) {
    System.out.println("Page.setFileParameter: file does not exist: " + f.toString());
    return null;
    }

    assertNotNull(client.getElement(uploadForm));
    // assertNull(client.getElement(uploadBtn)); // false assumption that upload button not rendered

    // stuff filename into widget
    HtmlFileInput inputWidget = (HtmlFileInput)client.getElement(uploadTextInput);
    try {
    inputWidget.type(filename);
    } catch (IOException e) {
    // TODO Auto-generated catch block
    e.printStackTrace();
    }

    assertNotNull(client.getElement(uploadBtn));
    try {
    client.click(uploadBtn);
    } catch (IOException e) {
    // TODO Auto-generated catch block
    e.printStackTrace();
    }
    return (ArrayListFile)server.getManagedBeanValue("#{fileUploadBean.files}");
    }

    }

    DB:2.95:Testing Rich:Fileupload With Htmlunit zj


    I've tweaked the jars to thwart the previous exception and get back to my prior status with the jsfunit 1.0.0.GA jars. Current jars:

    1 736810 ant-1.5.4.jar
    2 114926 aspectjrt-1.6.1.jar
    3 259182 cactus-13-1.7.1.jar
    4 180327 cactus-ant-13-1.7.1.jar
    5 359270 cargo-0.5.jar
    6 188671 commons-beanutils-1.7.0.jar
    7 46725 commons-codec-1.3.jar
    8 571259 commons-collections-3.2.jar
    9 143602 commons-digester-1.8.jar
    10 73721 commons-fileupload-1.2.1-sources.jar
    11 57779 commons-fileupload-1.2.1.jar
    12 305001 commons-httpclient-3.1.jar
    13 109043 commons-io-1.4.jar
    14 261809 commons-lang-2.4.jar
    15 38015 commons-logging-1.0.4.jar
    16 253950 cssparser-0.9.5.jar
    17 28157 darkX-3.2.2.GA.jar
    18 313898 dom4j-1.6.1.jar
    19 31527 glassX-3.2.2.GA.jar
    20 668489 htmlunit-2.3.jar
    21 558115 htmlunit-core-js-2.2.jar
    22 406424 httpunit-1.6.2.jar
    23 56404 jboss-jsfunit-core-1.0.0.GA-SNAPSHOT.jar
    24 5537 jboss-jsfunit-richfaces-1.0.0.GA-SNAPSHOT.jar
    25 93310 jhighlight-1.0.jar
    26 756883 js-1.7R1.jar
    27 300771 jsf-facelets-1.1.14.jar
    28 20801 jstl-1.0.jar
    29 13236 jta-1.1.jar
    30 137835 jtidy-4aug2000r7-dev.jar
    31 121070 junit-3.8.1.jar
    32 25863 laguna-3.2.2.GA.jar
    33 116162 nekohtml-1.9.9.jar
    34 168454 richfaces-api-3.2.2.GA.jar
    35 1494439 richfaces-impl-3.2.2.GA.jar
    36 2525798 richfaces-ui-3.2.2.GA.jar
    37 15808 sac-1.3.jar
    38 15279 slf4j-api-1.4.2.jar
    39 7470 slf4j-simple-1.4.2.jar
    40 2730442 xalan-2.7.0.jar
    41 1212965 xercesImpl-2.8.1.jar
    42 195119 xml-apis-1.3.03.jar

  • RELEVANCY SCORE 2.95

    DB:2.95:Nosuchmethoderror sm



    Moved to a new thread.
    "Fhomasp" wrote:Hey,Something might be off with automatic library adding on my end. I can't seem to get my initial test off the ground.After getting an error exception during the startup of the test I started to add libraries manually by looking them up on the htmlunit page. And so different errors start to come up every time I added another one in my project pom. Right now I'm getting one I can't seem to resolve so easily.call

    java.lang.NoSuchMethodError: call
    at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine.initialize(JavaScriptEngine.java:167)
    at com.gargoylesoftware.htmlunit.WebClient.initialize(WebClient.java:1084)
    at com.gargoylesoftware.htmlunit.WebWindowImpl.setEnclosedPage(WebWindowImpl.java:115)
    at com.gargoylesoftware.htmlunit.html.HTMLParser.parse(HTMLParser.java:238)
    at com.gargoylesoftware.htmlunit.DefaultPageCreator.createHtmlPage(DefaultPageCreator.java:116)
    at com.gargoylesoftware.htmlunit.DefaultPageCreator.createPage(DefaultPageCreator.java:89)
    at com.gargoylesoftware.htmlunit.WebClient.loadWebResponseInto(WebClient.java:450)
    at com.gargoylesoftware.htmlunit.WebClient.getPage(WebClient.java:359)
    at com.gargoylesoftware.htmlunit.WebClient.getPage(WebClient.java:407)
    at com.gargoylesoftware.htmlunit.WebClient.getPage(WebClient.java:395)
    at org.jboss.jsfunit.framework.SimpleInitialRequestStrategy.doInitialRequest(SimpleInitialRequestStrategy.java:47)
    at org.jboss.jsfunit.framework.WebClientSpec.doInitialRequest(WebClientSpec.java:232)
    at org.jboss.jsfunit.jsfsession.JSFSession.init(JSFSession.java:80)
    at org.jboss.jsfunit.jsfsession.JSFSession.init(JSFSession.java:59)
    at be.vlafo.feniks.web.JSFUnitTest.testInitialPageWithLoginAndDefaultDBInfo(JSFUnitTest.java:65)
    at jrockit.reflect.VirtualNativeMethodInvoker.invoke(Ljava.lang.Object;[Ljava.lang.Object;)Ljava.lang.Object;(Unknown Source)
    at org.apache.cactus.internal.AbstractCactusTestCase.runBareServer(AbstractCactusTestCase.java:153)
    at org.apache.cactus.internal.server.AbstractWebTestCaller.doTest(AbstractWebTestCaller.java:119)
    at org.apache.cactus.internal.server.AbstractWebTestController.handleRequest_aroundBody0(AbstractWebTestController.java:93)
    at org.apache.cactus.internal.server.AbstractWebTestController.handleRequest_aroundBody1$advice(AbstractWebTestController.java:224)
    at org.apache.cactus.internal.server.AbstractWebTestController.handleRequest(Lorg.apache.cactus.spi.server.ImplicitObjects;)V(AbstractWebTestController.java:???)
    at org.apache.cactus.server.ServletTestRedirector.doPost_aroundBody2(ServletTestRedirector.java:101)
    at org.apache.cactus.server.ServletTestRedirector.doPost_aroundBody3$advice(ServletTestRedirector.java:224)
    at org.apache.cactus.server.ServletTestRedirector.doPost(Ljavax.servlet.http.HttpServletRequest;Ljavax.servlet.http.HttpServletResponse;)V(ServletTestRedirector.java:???)
    at org.jboss.jsfunit.framework.JSFUnitServletRedirector.doPost(JSFUnitServletRedirector.java:42)
    at org.apache.cactus.server.ServletTestRedirector.doGet_aroundBody0(ServletTestRedirector.java:72)

    DB:2.95:Nosuchmethoderror sm


    "stan.silvert@jboss.com" wrote:You still have the JSFUnit jar in your classpath. It automatically installs the JSFUnitFacesContext.StanExactly, together with all other required libraries for running JSFUnit tests. Which is why I'm confident that this error is related to the other problems I've been having. Something is off on classpath with JSFUnit here and I can't seem to lay my finger on it.

  • RELEVANCY SCORE 2.95

    DB:2.95:Drone - Browser Capabilities Ignored? cz



    Hi, so I have a very simple test case. I wanted to deploy a minor webapp and test it using drone. Then configure drone to run various browsers.

    So I created my deployment, and test case. I then setup arquillian.xml hoping to specify a browser:

    ?xml version="1.0" encoding="UTF-8" standalone="yes"?

    arquillian xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"

    xmlns="http://jboss.org/schema/arquillian"

    xsi:schemaLocation="http://jboss.org/schema/arquillian http://jboss.org/schema/arquillian/arquillian_1_0.xsd"

    extension qualifier="selenium2"

    property name="browserCapabilities"firefox/property

    /extension

    /arquillian

    However, my console output reads as follows

    INFO: Property "browserCapabilities" was not specified, using default value of htmlUnit

    which doesn't make any sense - I'm setting browserCapabilities.

    I'm using Arquillian 1.0.3 and Drone 1.1.0.

    DB:2.95:Drone - Browser Capabilities Ignored? cz


    Hi John,

    there is no qualifier selenium2. The correct qualifier here is webdriver.

    Karel

  • RELEVANCY SCORE 2.95

    DB:2.95:Scripts Re-Rendered By Ajax Not Executed - Critical 9f



    There is a bug in HtmlUnit which prevents re-rendered scripts from being executed. I've reported it at htmlunit mailing list:

    http://sourceforge.net/mailarchive/forum.php?thread_name=AANLkTin_tNYEVEKsxGLZ4_AMmpUoaRBHa1A%2B-wap0iqn%40mail.gmail.comforum_name=htmlunit-user

    This is a pain if you have i.e. table with datascroller in second tab of your tab panel that works in ajax mode. To display the table you need to click on a tab, which re-renders part of page with the tabe and script that initializes datascroller. Now, the script doesn't get executed and you may wonder for a long time why clicking on datascroller doesn't trigger another ajax request.

    As a temporary workaround call this method after ajax request:

    public static void executeAjaxReRenderedScripts(HtmlPage page) {

    final DomNodeListHtmlElement scripts = page.getElementsByTagName("script");

    /**

    * We cannot iterate over html DomNodeList cause it depends on sibling relationship which we will modify.

    */

    final ListHtmlElement scriptsList = new ArrayListHtmlElement();

    for (HtmlElement element : scripts) {

    scriptsList.add(element);

    }

    for (HtmlElement element : scriptsList) {

    if (element.getChildNodes().size() 1) {

    element.removeChild(element.getFirstChild());

    final DomNode sibling = element.getNextSibling();

    final DomNode parentNode = element.getParentNode();

    /**

    * Script will be executed upon inserting into DOM tree, so we removed and add it again.

    */

    if (sibling != null) {

    parentNode.removeChild(element);

    sibling.insertBefore(element);

    } else {

    parentNode.removeChild(element);

    parentNode.appendChild(element);

    }

    }

    }

    }

    A visible sign that the script has not beed executed is such output when you call scriptElement.asXml():

    script type="text/javascript"

    //![CDATA[

    //

    //]]

    /script

    DB:2.95:Scripts Re-Rendered By Ajax Not Executed - Critical 9f


    The HtmlUnit guys are usually pretty good about responding. But you might need to create a bug report and a test app to get them to fix it.

    Stan

  • RELEVANCY SCORE 2.95

    DB:2.95:Jsp - Servlet - Long-Running App Continous Outputstream c8


    hello.

    I have a long-running app that uses htmlunit to simulate users of my website, as a test during development.

    I am running this simulation from a jsp-servlet. I want the app to run for a long time, possibly for hours.

    During each loop of the test I want to output a status message onto the webpage.

    I am uncertain about which type of outputstream I should use.

    -----

    Please suggest the code I should use for this outputstream.

    -----

    Will a continuous outputstream keep the browser from timing out?

    -----

    Any suggestions are greatly appreciated.

    Thank you.

    DB:2.95:Jsp - Servlet - Long-Running App Continous Outputstream c8

    user652257 wrote:
    I am uncertain about which type of outputstream I should use.It doesn't matter.

    Please suggest the code I should use for this outputstream.There's nothing special about this. You know how to write to an Outputstream, don't you?

    Will a continuous outputstream keep the browser from timing out?Yes, at least it should.

    Although I think your real problem is that you're running htmlunit from a "jsp-servlet". What made you come up with that requirement?

  • RELEVANCY SCORE 2.94

    DB:2.94:Problems Getting Example To Work (For Jsfunit1.3 And Jboss Epp5.1) m1



    Hi, all. I'm trying to build a sample application that uses JSFUnit. However, I cannot get it to work (I got a 404 error). Code snippets and configuration files are below.

    Infrastructure :

    JBoss EPP5.1

    Also copied the JSFUnit AS5 Microcontainer deployer to /server/myNode/deployers folder and restarted the application server. The name of the war file is SampleJSFUnit-jsfunit.war.

    I've tried different variations of URL to execute the JSFUnit test, but always got a 404 error.

    Variations tried :

    http://localhost:8080/JsfUnitTest/ServletTestRunner?suite=com.sample.JSFUnitTestxsl=cactus-report.xsl

    http://localhost:8080/JSFUnitTest/ServletTestRunner?suite=com.sample.JSFUnitTestxsl=cactus-report.xsl

    http://localhost:8080/SampleJsfUnitTest/ServletTestRunner?suite=com.sample.JSFUnitTestxsl=cactus-report.xsl

    http://localhost:8080/SampleJsfUnitTest-jsfunit/ServletTestRunner?suite=com.sample.JSFUnitTestxsl=cactus-report.xsl

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

    Jar files in WEB-INF/lib:

    -ant-1.5.4.jar

    -aspectjrt-1.2.1.jar

    -cactus-13-1.7.1.jar

    -cactus-ant-13-1.7.1.jar

    -cargo-0.5.jar

    -commons-codec-1.3.jar

    -commons-httpclient-3.1.jar

    -commons-io-1.4.jar

    -commons-lang-2.4.jar

    -cssparser-0.9.5.jar

    -htmlunit-2.4.jar

    -htmlunit-core-js-2.4.jar

    -jboss-jsfunit-core-1.3.0.Final.jar

    -junit-3.8.1.jar

    -nekohtml-1.9.9.jar

    -sac-1.3.jar

    (I have also tried adding in commons-logging-1.1.1.jar and common-collections-3.2.jar but they don't make a difference).http://repo1.maven.org/maven2/commons-logging/commons-logging/1.1.1/commons-logging-1.1.1.jar

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

    web.xml :

    web-app id="WebApp_ID" version="2.5" xmlns="http://java.sun.com/xml/ns/javaee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd" context-param param-namecom.sun.faces.enableRestoreView11Compatibility/param-name param-valuetrue/param-value /context-param display-nameJsfUnitTest/display-name filter filter-nameJSFUnitFilter/filter-name filter-classorg.jboss.jsfunit.framework.JSFUnitFilter/filter-class /filter filter-mapping filter-nameJSFUnitFilter/filter-name servlet-nameServletTestRunner/servlet-name /filter-mapping filter-mapping filter-nameJSFUnitFilter/filter-name servlet-nameServletRedirector/servlet-name /filter-mapping servlet servlet-nameFaces Config/servlet-name servlet-classjavax.faces.webapp.FacesServlet/servlet-class /servlet servlet-mapping servlet-nameFaces Config/servlet-name url-pattern*.jsf/url-pattern /servlet-mapping servlet servlet-nameServletRedirector/servlet-name servlet-classorg.jboss.jsfunit.framework.JSFUnitServletRedirector/servlet-class /servlet servlet servlet-nameServletTestRunner/servlet-name servlet-classorg.apache.cactus.server.runner.ServletTestRunner/servlet-class /servlet servlet-mapping servlet-nameServletRedirector/servlet-name url-pattern/ServletRedirector/url-pattern /servlet-mapping servlet-mapping servlet-nameServletTestRunner/servlet-name url-pattern/ServletTestRunner/url-pattern /servlet-mapping welcome-file-list welcome-fileindex.html/welcome-file welcome-fileindex.htm/welcome-file welcome-fileindex.jsp/welcome-file welcome-filedefault.html/welcome-file welcome-filedefault.htm/welcome-file welcome-filedefault.jsp/welcome-file /welcome-file-list login-config auth-methodBASIC/auth-method /login-config /web-app

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

    jsp pages : (index.jsp)

    %@ taglib uri="http://java.sun.com/jsf/html" prefix="h"%

    %@ taglib uri="http://java.sun.com/jsf/core" prefix="f"%

    html

    body

    f:view

    h:form id="form1"

    h:outputText value="Enter your name:" id="prompt"/

    h:inputText value="#{bean.username}" id="username"/

    h:inputText value="#{bean.password}" id="password"/

    br/

    h:commandButton value="Submit" action="#{bean.login}" id="login"/

    /h:form

    /f:view

    /body

    /html

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

    jsp pages : (welcome.jsp)

    ?xml version="1.0" encoding="ISO-8859-1" ?

    %@ page language="java" contentType="text/html; charset=ISO-8859-1"

    pageEncoding="ISO-8859-1"%

    !DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"

    html xmlns="http://www.w3.org/1999/xhtml"

    head

    meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1" /

    titleInsert title here/title

    /head

    body

    welcome!

    /body

    /html

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

    Backing bean : (MyBean.java)

    package sample;

    public class MyBean {

    String username="guest";

    String password="guest";

    public String getUsername() {

    return username;

    }

    public void setUsername(String username) {

    this.username = username;

    }

    public String getPassword() {

    return password;

    }

    public void setPassword(String password) {

    this.password = password;

    }

    public String login() {

    if (username != null username.equals("john")

    password != null password.equals("ripple")) {

    return "success";

    }

    return "failure";

    }

    }

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

    faces-config.xml :

    faces-config xmlns="http://java.sun.com/xml/ns/javaee"

    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"

    xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-facesconfig_1_2.xsd"

    version="1.2"

    managed-bean

    managed-bean-namebean/managed-bean-name

    managed-bean-class

    sample.MyBean

    /managed-bean-class

    managed-bean-scoperequest/managed-bean-scope

    /managed-bean

    navigation-rule

    navigation-case

    from-outcomesuccess/from-outcome

    to-view-id/jsp/welcome.jsp/to-view-id

    /navigation-case

    /navigation-rule

    navigation-rule

    navigation-case

    from-outcomefailure/from-outcome

    to-view-id/jsp/index.jsp/to-view-id

    /navigation-case

    /navigation-rule

    /faces-config

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

    JSFTests

    cactus.properties file (under WEB-INF folder) :

    cactus.contextURL=http://localhost:8080/JsfUnitTest

    cactus.servletRedirectorName=ServletRedirector

    cactus.jspRedirectorName=JspRedirector

    cactus.filterRedirectorName=cactus.filterRedirectorName

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

    cactus-report.xsl file (in the root folder inside the war file)

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

    Test case (JSFUnitTest.java) :

    package com.sample;

    import java.io.IOException;

    import org.jboss.jsfunit.jsfsession.JSFClientSession;

    import org.jboss.jsfunit.jsfsession.JSFServerSession;

    import org.jboss.jsfunit.jsfsession.JSFSession;

    import junit.framework.Test;

    import junit.framework.TestSuite;

    public class JSFUnitTest extends org.apache.cactus.ServletTestCase {

    public static Test suite()

    {

    return new TestSuite( JSFUnitTest.class );

    }

    public void testInitialPage() throws IOException

    {

    // Send an HTTP request for the initial page

    JSFSession jsfSession = new JSFSession("/index.jsf");

    // A JSFClientSession emulates the browser and lets you test HTML

    JSFClientSession client = jsfSession.getJSFClientSession();

    // A JSFServerSession gives you access to JSF state

    JSFServerSession server = jsfSession.getJSFServerSession();

    // Test navigation to initial viewID

    assertEquals("/index.jsp", server.getCurrentViewID());

    // Assert that the current value of username is guest

    assertEquals("guest", server.getManagedBeanValue("#{bean.name}"));

    // set values and hit login

    client.setValue("form1:username", "john");

    client.setValue("form1:password", "ripple");

    client.click("login");

    // Test navigation

    assertEquals("/welcome.jsp", server.getCurrentViewID());

    }

    }

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

    Any help is appreciated.

    -Andrew

    P.S. I have also tried to use the example in the "GettingStarted" guide (http://community.jboss.org/docs/DOC-9819?uniqueTitle=false), but couldn't make it work either.

    DB:2.94:Problems Getting Example To Work (For Jsfunit1.3 And Jboss Epp5.1) m1


    OK I found what I did wrong : Incorrect case in "SampleJsfUnit-jsfunit" (it should be SampleJSFUnit-jsfunit in the url).

    Correct URL:

    http://localhost:8080/SampleJSFUnit-jsfunit/ServletTestRunner?suite=com.sample.JSFUnitTestxsl=cactus-report.xsl

    -Andrew

  • RELEVANCY SCORE 2.94

    DB:2.94:How Can I Test A Servlet? 88



    Hi,

    I have trouble with a Flash component which include by a p:media (Primefaces). This component itself is not testable, but it generate a post request and send it to a servlet. How can I simulate this request? I didn't found a solution with JSFUnit or HTMLUnit.

    ty

    Nico

    DB:2.94:How Can I Test A Servlet? 88


    Nice to know, that this signature is possible.

    But if I use the jsfsession.webclient, I get the same result ...

    And after the webClient.getPage command, the line "System.out.println(page.asText());" returned "searchResult=3invokeJS=showSearchResults", too.

    With server.getManagedBeanValue() I see that nothing changed.

  • RELEVANCY SCORE 2.94

    DB:2.94:Cross-Container Integration Testing Using Arquillian 31



    I have configured initial version of Arquillian-based tests.

    They are using Arquillian Warp and Drone extensions.

    To allow them to be run on both, Mojarra and MyFaces implementations, we have decided to use:

    JBoss AS 7.1.x (Mojarra 2.x)Apache TomEE (MyFaces 2.x)

    By default, tests are ran during unit-test execution on JBoss AS managed container with HtmlUnit.

    We configure additionally some profiles to allow fast development and extensive coverage:

    container-jbossas-managed-7container-jbossas-remote-7container-tomee-remoteremote containers improves development-timebrowser-chromebrowser-firefoxbrowser-remote-reusableremote reusable session as Selenium test development improvement

    Additionally, arquillian-tomee-managed container should be configured to allow continous integration on managed TomEE:

    https://issues.jboss.org/browse/RF-12363

    ----

    Now, we need to configure those tests to be run with managed-container versions and on real browsers in Continous-Integration environment:

    https://issues.jboss.org/browse/RFPL-2275

    DB:2.94:Cross-Container Integration Testing Using Arquillian 31


    I have refactored Core integration tests to separated source folder: src/test/integration.

    ----

    By default, build does not run those tests,

    you can run them using (the JBoss AS 7 (Mojarra) integration will be tested):

    $ mvn verify -Dintegration=jbossas

    ----

    Additionally, you can run following configuration to test integration with TomEE (MyFaces)

    $ mvn verify -Dintegration=tomee

    Note that TomEE 1.0.0 have to be started (managed container still does not exists: RF-12363).

    ----

    To skip unit tests and run just integration tests, you can use -DskipTests=true

    $ mvn verify -Dintegration=jbossas -DskipTests=true

  • RELEVANCY SCORE 2.94

    DB:2.94:No Such Method Error - Getresponsebody 88



    Hi,

    I am a novice to JSFUnit and I was trying to test very simple xhtml page. I use Facelets - 1.1.15, jsf 1.2., openfaces 2.0, war is build by maven, and running on Bea 9.23.

    I run my page on http://server:port/OFcsFacelets/pages/test.xhtml, and test I call on http://server:port/OFcsFacelets/ServletTestRunner?suite=tests.JSFUnitTestxsl=cactus-report.xsltransform=yes

    My test code is

    public class JSFUnitTest extends org.apache.cactus.ServletTestCase { public static Test suite() { return new TestSuite(JSFUnitTest.class); }

    public void testInitialPage() { try { JSFSession jsfSession = new JSFSession("/test.xhtml");

    JSFServerSession server = jsfSession.getJSFServerSession();

    UIComponent prompt = server.findComponent("htString");

    assertTrue(prompt.isRendered());

    } catch (IOException e) { System.out.println("******* exception ***********"); } }}

    I use nekohtml-1.9.13.jar, htmlunit-core-js-2.6.jar, htmlunit-2.6.jar.

    When I start the test by calling http://server:port/OFcsFacelets/ServletTestRunner?suite=tests.JSFUnitTestxsl=cactus-report.xsltransform=yes, I receive this error. Can anybody help me with solution?

    Thank you very much.

    Shony

    com.gargoylesoftware.htmlunit.WebResponse.getResponseBody()[B java.lang.NoSuchMethodError: com.gargoylesoftware.htmlunit.WebResponse.getResponseBody()[B at org.jboss.jsfunit.framework.FaceletsErrorPageException.isFaceletsErrorPage(FaceletsErrorPageException.java:55) at org.jboss.jsfunit.framework.FaceletsErrorPageDetector.afterRequest(FaceletsErrorPageDetector.java:39) at org.jboss.jsfunit.framework.JSFUnitWebConnection.notifyListenersAfter(JSFUnitWebConnection.java:103) at org.jboss.jsfunit.framework.JSFUnitWebConnection.getResponse(JSFUnitWebConnection.java:84) at com.gargoylesoftware.htmlunit.WebClient.loadWebResponseFromWebConnection(WebClient.java:1439) at com.gargoylesoftware.htmlunit.WebClient.loadWebResponse(WebClient.java:1370) at com.gargoylesoftware.htmlunit.WebClient.getPage(WebClient.java:326) at com.gargoylesoftware.htmlunit.WebClient.getPage(WebClient.java:387) at com.gargoylesoftware.htmlunit.WebClient.getPage(WebClient.java:372) at org.jboss.jsfunit.framework.SimpleInitialRequestStrategy.doInitialRequest(SimpleInitialRequestStrategy.java:48) at org.jboss.jsfunit.framework.WebClientSpec.doInitialRequest(WebClientSpec.java:244) at org.jboss.jsfunit.jsfsession.JSFSession.init(JSFSession.java:80) at org.jboss.jsfunit.jsfsession.JSFSession.init(JSFSession.java:57) at tests.JSFUnitTest.testInitialPage(JSFUnitTest.java:21) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at org.apache.cactus.internal.AbstractCactusTestCase.runBareServer(AbstractCactusTestCase.java:153) at org.apache.cactus.internal.server.AbstractWebTestCaller.doTest(AbstractWebTestCaller.java:119) at org.apache.cactus.internal.server.AbstractWebTestController.handleRequest_aroundBody0(AbstractWebTestController.java:93) at org.apache.cactus.internal.server.AbstractWebTestController.handleRequest_aroundBody1$advice(AbstractWebTestController.java:224) at org.apache.cactus.internal.server.AbstractWebTestController.handleRequest(AbstractWebTestController.java) at org.apache.cactus.server.ServletTestRedirector.doPost_aroundBody2(ServletTestRedirector.java:101) at org.apache.cactus.server.ServletTestRedirector.doPost_aroundBody3$advice(ServletTestRedirector.java:224) at org.apache.cactus.server.ServletTestRedirector.doPost(ServletTestRedirector.java) at org.jboss.jsfunit.framework.JSFUnitServletRedirector.doPost(JSFUnitServletRedirector.java:46) at org.apache.cactus.server.ServletTestRedirector.doGet_aroundBody0(ServletTestRedirector.java:72) at org.apache.cactus.server.ServletTestRedirector.doGet_aroundBody1$advice(ServletTestRedirector.java:224) at org.apache.cactus.server.ServletTestRedirector.doGet(ServletTestRedirector.java) at org.jboss.jsfunit.framework.JSFUnitServletRedirector.doGet(JSFUnitServletRedirector.java:52) at javax.servlet.http.HttpServlet.service(HttpServlet.java:743) at javax.servlet.http.HttpServlet.service(HttpServlet.java:856) at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:227) at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:125) at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:283) at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:26) at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:42) at org.jboss.jsfunit.framework.JSFUnitFilter.doFilter(JSFUnitFilter.java:116) at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:42) at weblogic.servlet.internal.RequestEventsFilter.doFilter(RequestEventsFilter.java:26) at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:42) at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3242) at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321) at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:121) at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2010) at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:1916) at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1366) at weblogic.work.ExecuteThread.execute(ExecuteThread.java:209) at weblogic.work.ExecuteThread.run(ExecuteThread.java:181)

    DB:2.94:No Such Method Error - Getresponsebody 88


    Hi,

    If you are using JSFUnit 1.3.0.Final then you need to be using HtmlUnit 2.8. You can see a list of the dependencies on the getting started page: http://www.jboss.org/jsfunit/gettingstarted.html

    Also, I don't know how you have things set up in web.xml, but your initial page must map to the FacesServlet. So usually, your first line of code will be something like:

    JSFSession jsfSession = new JSFSession("/test.jsf");

    Stan

  • RELEVANCY SCORE 2.80

    DB:2.80:Assertequals And Htmlunit pz


    Not quite sure that I have appropriate forum, but here goes. I would expect the assertion to either succeed or fail and to give output either way, but nothing happens.

    [thufir@arrakis ~]$
    [thufir@arrakis ~]$ java -jar NetBeansProjects/assert/dist/assert.jar
    [thufir@arrakis ~]$
    [thufir@arrakis ~]$ cat NetBeansProjects/assert/src/assertpkg/Main.java
    /*
    * To change this template, choose Tools | Templates
    * and open the template in the editor.
    */
    package assertpkg;

    import com.gargoylesoftware.htmlunit.WebClient;
    import com.gargoylesoftware.htmlunit.html.HtmlPage;
    import java.io.IOException;
    import static org.junit.Assert.assertEquals;

    /**
    *
    * @author thufir
    */
    public class Main {

    /**
    * @param args the command line arguments
    */
    public static void main(String[] args) throws IOException {
    final WebClient webClient = new WebClient();
    final HtmlPage page = webClient.getPage("http://htmlunit.sourceforge.net");
    assertEquals("HtmlUnit - Welcome to HtmlUnit", page.getTitleText());
    }
    }
    [thufir@arrakis ~]$
    [thufir@arrakis ~]$

    DB:2.80:Assertequals And Htmlunit pz

    HAWAT.THUFIR@GMAIL.COM wrote:
    why is the static import required?Huh? You're the one that put it there in your code in the first place, and I'm not sure why you're trying to ask someone who posted that so long ago about why they have it there when they were obviously just copying your code and modifying it slightly.

    It isn't required. Go research about the import statement.

  • RELEVANCY SCORE 2.80

    DB:2.80:Phantomjs Runner Project Proposal 33



    In order to run your UI tests headlessly, you can always use HtmlUnitDriver as Selenium backend.

    However HtmlUnit suffers from real-world issues:

    artifical JavaScript runtime (Rhino)hard time with debugging

    In order to solve those issues, I have identified PhantomJS as good candidate to replace HtmlUnit:

    implements V8 engine (forked from Chromium project)theoretically tests should run same in Chromium and PhantomJScontains remote debuggerequivalent Chrome Developer Toolsusage is same as when you are debugging Android or Safari browsers

    There is also project called GhostDriver which runs on top of PhantomJS and implements Selenium remote protocol

    (currently all important aspects of protocol implemented).

    ----

    That's why I'm coming with idea for new project, which should contain from three parts:

    PhantomJS runnerincluding Java process wrapperwrapping phantomjs binary (platform dependent)
    proof of concept: https://github.com/lfryc/phantomjs-java
    GhostDriver runnerrunner forked from GhostDriverruns PhantomJS runner interpreting ghostdriver.js, exposed as Selenium remote hubproof of concept: https://github.com/lfryc/ghostdriver-java

    This way, we could use PhantomJS as another WebDriver implementation,

    allowing to run your Selenium tests against (nearly-) real implementation

    headlessly.

    Tracking issue: https://issues.jboss.org/browse/ARQGRA-210

    ----

    This will provide us with ability to run:

    functional tests as part of regular continuous integration build (without need for real browsers)JavaScript tests driven by Selenium... etc.

    ----

    The are plans to integrate GhostDriver into PhantomJS core.

    Both runners can be contributed to upstream projects.

    There is similar project to our one: phantom-runner

    The plan is to reach the authors and share common implementation.

    ----

    Technical difficulties:

    PhantomJS runner needs to use platform dependent binaries
    those can be generated during project buildright version of binary can be selected using Maven POM (os.arch)

    Both, PhantomJS and GhostDriver binaries needs to be extracted into filesystem in order to start native process

    DB:2.80:Phantomjs Runner Project Proposal 33


    Great news, GhostDriver is now fully integrated to PhantomJS.

    The only we need to run it as WebDriver is packaging PhantomJS binaries as platform dependent Maven artifacts.

  • RELEVANCY SCORE 2.74

    DB:2.74:Adf Faces: Af:Commandbutton Does Not Render Html Name Attribute. d3


    I noticed after switching from h:commandButton to af:commandButton that my HtmlUnit tests broke very badly. On reason for this was the get*ByName methods in HtmlUnit that look for HTML elements by their name attribute. Standard JSF tags emit this attribute by default, setting it to the same value as the id. Does ADF not do this at all in the XHTML renderkit or is there a way to enable it?

    Thanks,
    Steve

    DB:2.74:Adf Faces: Af:Commandbutton Does Not Render Html Name Attribute. d3

    I noticed after switching from h:commandButton to af:commandButton that my HtmlUnit tests broke very badly. On reason for this was the get*ByName methods in HtmlUnit that look for HTML elements by their name attribute. Standard JSF tags emit this attribute by default, setting it to the same value as the id. Does ADF not do this at all in the XHTML renderkit or is there a way to enable it?

    Thanks,
    Steve

  • RELEVANCY SCORE 2.74

    DB:2.74:Htmlunit Buttons Not Working For Popup Windows pp


    When I click a button element which opens a pop up window in the browser give me following javascript exception from DebugCommon10_1_3_2_0.js when I click the buttonthrough a htmlunit test. I have set my WebClient to default.

    Exception class=[org.mozilla.javascript.WrappedException]
    com.gargoylesoftware.htmlunit.ScriptException: Wrapped com.gargoylesoftware.htmlunit.ScriptException: TypeError: Cannot find function setCapture. (http://192.168.20.36:8988/CS/adf/jsLibs/DebugCommon10_1_3_2_0.js#3614) (http://192.168.20.36:8988/CS/adf/jsLibs/DebugCommon10_1_3_2_0.js#4561)
    at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine.callFunction(JavaScriptEngine.java:322)
    at com.gargoylesoftware.htmlunit.html.HtmlPage.executeJavaScriptFunctionIfPossible(HtmlPage.java:736)
    at com.gargoylesoftware.htmlunit.html.HtmlPage.runEventHandler(HtmlPage.java:1489)
    at com.gargoylesoftware.htmlunit.html.HtmlPage.runEventHandler(HtmlPage.java:1465)
    at com.gargoylesoftware.htmlunit.html.ClickableElement.click(ClickableElement.java:103)
    at lk.informatics.cs.testcases.login.agreementmanagement.AddNewPartner.testSLNO12(AddNewPartner.java:329)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    Caused by: org.mozilla.javascript.WrappedException: Wrapped com.gargoylesoftware.htmlunit.ScriptException: TypeError: Cannot find function setCapture. (http://192.168.20.36:8988/CS/adf/jsLibs/DebugCommon10_1_3_2_0.js#3614) (http://192.168.20.36:8988/CS/adf/jsLibs/DebugCommon10_1_3_2_0.js#4561)
    at org.mozilla.javascript.Context.throwAsScriptRuntimeEx(Context.java:1693)
    at org.mozilla.javascript.MemberBox.invoke(MemberBox.java:160)
    at org.mozilla.javascript.FunctionObject.call(FunctionObject.java:471)
    at org.mozilla.javascript.Interpreter.interpretLoop(Interpreter.java:3085)
    at org.mozilla.javascript.Interpreter.interpret(Interpreter.java:2251)
    at org.mozilla.javascript.InterpretedFunction.call(InterpretedFunction.java:161)
    at org.mozilla.javascript.ContextFactory.doTopCall(ContextFactory.java:340)
    at com.gargoylesoftware.htmlunit.javascript.HtmlUnitContextFactory.doTopCall(HtmlUnitContextFactory.java:151)
    at org.mozilla.javascript.ScriptRuntime.doTopCall(ScriptRuntime.java:2758)
    at org.mozilla.javascript.InterpretedFunction.call(InterpretedFunction.java:159)
    at com.gargoylesoftware.htmlunit.javascript.host.EventHandler.call(EventHandler.java:95)
    at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine.callFunction(JavaScriptEngine.java:363)
    at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine.callFunction(JavaScriptEngine.java:318)

    DB:2.74:Htmlunit Buttons Not Working For Popup Windows pp

    read the error message:

    "Cannot find function setCapture"

  • RELEVANCY SCORE 2.74

    DB:2.74:Incompatibility Among Related Classes? 38


    Dear colleagues, please help me with this problem:
    I had already put a small JSFUnit test to work, following the instructions in http://labs.jboss.com/jsfunit/gettingstarted.html. I did it in the middle of July/2010, and I am almost 100% sure this site had a different set of classes listed in the "Package these jars in your WEB-INF/lib" section. I say it because my previous version worked well, but now, after upgrading to the following set, I am having a "java.lang.NoClassDefFoundError: org.apache.http.HttpRequest" very possibly due to some incompatibility.

    * jboss-jsfunit-core-1.3.0.Final.jar * aspectjrt-1.2.1.jar * cactus-13-1.7.1.jar * junit-3.8.1.jar * nekohtml-1.9.14.jar * htmlunit-2.8.jar * htmlunit-core-js-2.8.jar * cssparser-0.9.5.jar * httpclient-4.0.1.jar * httpmime-4.0.1.jar * apache-mime4j-0.6.jar * commons-io-1.4.jar.jar * sac-1.3.jar * commons-lang-2.4.jar * commons-codec-1.4.jar * commons-logging-1.1.1.jar * commons-collections-3.2.1.jar * commons-httpclient-2.0.2.jar * cactus-ant-13-1.7.1.jar * cargo-0.5.jar * ant-1.5.4.jar

    Could somebody, please, give me any help or clue about this? Anyway, I would love also to have the previous set of libraries, but I could not find it in older versions of the "Document Wiki".

    Best regards,
    Euler Xavier de Oliveira.

    DB:2.74:Incompatibility Among Related Classes? 38


    Stan,

    I have noticed that, when I use JSFUnit 1.3, the failure related to the last stack trace I sent you (org.jboss.jsfunit.framework.FaceletsErrorPageException.isFaceletsErrorPage(FaceletsErrorPageException.java:55)), strangely only occurs if I try to connect over https but not when I connect over http! When I use JSFUnit 1.2, however, https works fine! Do you have any clue?

    I see our scope is moving towards another subject, then I am going to start a new thread posting details about that, in case I consider useful for our community.

    Best regards,

    Euler.

  • RELEVANCY SCORE 2.74

    DB:2.74:Testing Adf Faces 9p


    HI,
    Has anyone did unit test ADF Faces. i explored somewhat and found that we can use HtmlUnit to test the ADF faces.can anyone suggestions regarding this

    thanks in advance
    swapna

    DB:2.74:Testing Adf Faces 9p

    Actually, I was wrong about the ADF dialog counter logistics. The counter spans the life of the application server session - not just the browser session. This makes it pretty difficult to determine which dialog to target, to say the least.

    Thanks for the script above, Seb. We'll try that here and hope it works. If it doesn't, we'll likely try out a process by which a click on a button that spawns an ADF dialog does some behind-the-scenes work. It will determine the name of the most recently spawned ADF dialog by getting all of the window names currently known by Selenium (java.lang.String[] Selenium.getAllWindowNames()), scoping that list down to all names beginning with "ADFDialog", finding out what the highest number is, and calling selectWindow on that.

    Shawn Bertrand
    Tyco Electronics

  • RELEVANCY SCORE 2.74

    DB:2.74:A4j:Commandbutton Requestdelay And Htmlunit 13



    I've got a JSFUnit user who was complaining that a4j:commandButton doesn't work when requestDelay is set:https://jira.jboss.org/jira/browse/JSFUNIT-229I have verified that he is correct. It doesn't work with HtmlUnit.Can you guys give me some insight on how requestDelay works so that I can try to figure it out and/or ask the HtmlUnit guys about it?Thanks,Stan

    DB:2.74:A4j:Commandbutton Requestdelay And Htmlunit 13


    Stan,That's just usual setTimeout() JS call. Please take a look at startTimer() method: http://fisheye.jboss.org/browse/RichFaces/branches/community/3.3.X/framework/impl/src/main/javascript/ajaxjsf/queue.js?r=14239

  • RELEVANCY SCORE 2.74

    DB:2.74:Sorting Data pc



    hello,I've been trying to write tests using jsf unit framework, and what I want to ask if it's possible to retrieve the sorting order while I click the sorting icon from the request parameters or not. Now I could send a request by simulating a mouse click on the needed cell with HtmlUnit, but what I want now is to check if the data were sorted in the right order or not. Thank you for replying.

    DB:2.74:Sorting Data pc


    hello,I've been trying to write tests using jsf unit framework, and what I want to ask if it's possible to retrieve the sorting order while I click the sorting icon from the request parameters or not. Now I could send a request by simulating a mouse click on the needed cell with HtmlUnit, but what I want now is to check if the data were sorted in the right order or not. Thank you for replying.

  • RELEVANCY SCORE 2.65

    DB:2.65:Testing Richfaces 7z



    Has anyone had any luck using automated frameworks to test RichFaces?We are currently using Watij to test a web application using Facelets/MyFaces, but would like to upgrade to an AJAX enabled implementation. I know that RichFaces generates it's own ids for components, but is there anyway to give fields, inputs, etc uniquie identifiers?I know that HtmlUnit, JWebUnit and a couple of other testing/automation framworks exist, that have similar functionality, but nothing seems to be able handle all of the js that Ajax pages require.I am definatly interested in using RichFaces, but testablitity is a key concern.Thanks

    DB:2.65:Testing Richfaces 7z


    Components could be easily located by their client ids.h:form id="f"a4j:commandButton id="b"document.getElementById('f:b') will succeed

  • RELEVANCY SCORE 2.64

    DB:2.64:Getting Started Problem p7



    I moved this into its own thread -StanI'm in need of a framework that tests jsf web pages. I've found JSFUnit but it doesn't work.Can you help me? Please!My Stack Trace11:44:40,439 ERROR [[ServletTestRunner]] Servlet.service() for servlet ServletTestRunner threw exceptionjava.lang.NoClassDefFoundError: br/com/riskoffice/htmlunit/admin/JSFUnitAreaPageTest : junit/framework/TestCase at java.lang.ClassLoader.defineClass1(Native Method) at java.lang.ClassLoader.defineClass(ClassLoader.java:620) at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:124) at java.net.URLClassLoader.defineClass(URLClassLoader.java:260) at java.net.URLClassLoader.access$100(URLClassLoader.java:56) at java.net.URLClassLoader$1.run(URLClassLoader.java:195) at java.net.URLClassLoader.findClass(URLClassLoader.java:188) at org.jboss.mx.loading.RepositoryClassLoader.findClassLocally(RepositoryClassLoader.java:675) at org.jboss.mx.loading.RepositoryClassLoader.findClass(RepositoryClassLoader.java:655) at java.lang.ClassLoader.loadClass(ClassLoader.java:306) at org.jboss.mx.loading.RepositoryClassLoader.loadClassLocally(RepositoryClassLoader.java:193) at org.jboss.mx.loading.ClassLoadingTask$ThreadTask.run(ClassLoadingTask.java:131) at org.jboss.mx.loading.LoadMgr3.nextTask(LoadMgr3.java:399) at org.jboss.mx.loading.RepositoryClassLoader.loadClassImpl(RepositoryClassLoader.java:520) at org.jboss.mx.loading.RepositoryClassLoader.loadClass(RepositoryClassLoader.java:408) at java.lang.ClassLoader.loadClass(ClassLoader.java:299) at java.net.FactoryURLClassLoader.loadClass(URLClassLoader.java:580) at java.lang.ClassLoader.loadClass(ClassLoader.java:251) at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1345) at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1204) at java.lang.Class.forName0(Native Method) at java.lang.Class.forName(Class.java:242) at org.apache.cactus.internal.util.ClassLoaderUtils.loadClassFromContextClassLoader_aroundBody2(ClassLoaderUtils.java:78) at org.apache.cactus.internal.util.ClassLoaderUtils.loadClassFromContextClassLoader_aroundBody3$advice(ClassLoaderUtils.java:264) at org.apache.cactus.internal.util.ClassLoaderUtils.loadClassFromContextClassLoader(ClassLoaderUtils.java) at org.apache.cactus.internal.util.ClassLoaderUtils.loadClass_aroundBody0(ClassLoaderUtils.java:61) at org.apache.cactus.internal.util.ClassLoaderUtils.loadClass_aroundBody1$advice(ClassLoaderUtils.java:264) at org.apache.cactus.internal.util.ClassLoaderUtils.loadClass(ClassLoaderUtils.java)My java Classpublic class JSFUnitAreaPageTest extends TestCase { public static Test suite() { return new TestSuite(JSFUnitAreaPageTest.class); } public void testInitialPage() throws IOException, SAXException { // Send an HTTP request for the initial page ClientFacade client = new ClientFacade("/login.seam"); // A ServerFacade gives you access to JSF state ServerFacade server = new ServerFacade(client); // Test navigation to initial viewID assertEquals("/login.xhtml", server.getCurrentViewId()); // Assert that the prompt component is in the component tree and // rendered UIComponent prompt = server.findComponent("prompt"); assertTrue(prompt.isRendered()); // Test a managed bean assertEquals("Stan", server.getManagedBeanValue("#{foo.text}")); }}

    DB:2.64:Getting Started Problem p7


    Did you get it running from the browser?JSFUnit runs on top of Cactus. So if you look at the instructions for Cactus you can see how to run JSFUnit. The only thing different is that you need to add the JSFUnitFilter to your web.xml.If you want to run from Maven, you can also look at the JSFUnit examples in the JSFUnit build.I'll be adding more documentation in the next few weeks before we try to release a beta.Stan

  • RELEVANCY SCORE 2.64

    DB:2.64:Java.Lang.Classcastexception While Accesing Jsfunit 3k



    Hi,I am getting the below exception while accessing JSFUnit. It would be great if you can give a solution to fix this issue. First i tried with htmlunit-core-js-2.2.jar and then with htmlunit-core-js-2.4.jar.Code Snippet : JSFUnitTest.javaLine 48: WebClientSpec wcSpec = new WebClientSpec("/JSFUnitTest.jsflps");Line 49: FormAuthenticationStrategy formAuth = new FormAuthenticationStrategy("SHIPPER", "password", "btnEnter");Line 50: wcSpec.setInitialRequestStrategy(formAuth);Line 51:JSFSession jsfSession = new JSFSession(wcSpec);Exception:com.gargoylesoftware.htmlunit.UnexpectedPage incompatible with com.gargoylesoftware.htmlunit.html.HtmlPagejava.lang.ClassCastException: com.gargoylesoftware.htmlunit.UnexpectedPage incompatible with com.gargoylesoftware.htmlunit.html.HtmlPageat org.jboss.jsfunit.framework.FormAuthenticationStrategy.doInitialRequest(FormAuthenticationStrategy.java:105)at org.jboss.jsfunit.framework.WebClientSpec.doInitialRequest(WebClientSpec.java:244)at org.jboss.jsfunit.jsfsession.JSFSession.(JSFSession.java:80)at com.manh.eem.JSFUnitTest.testInitialPage(JSFUnitTest.java:51)at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:64)at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)at org.apache.cactus.internal.AbstractCactusTestCase.runBareServer(AbstractCactusTestCase.java:153)at org.apache.cactus.internal.server.AbstractWebTestCaller.doTest(AbstractWebTestCaller.java:119)at org.apache.cactus.internal.server.AbstractWebTestController.handleRequest_aroundBody0(AbstractWebTestController.java:93)at org.apache.cactus.internal.server.AbstractWebTestController.handleRequest_aroundBody1$advice(AbstractWebTestController.java:224)at org.apache.cactus.internal.server.AbstractWebTestController.handleRequest(AbstractWebTestController.java)at org.apache.cactus.server.ServletTestRedirector.doPost_aroundBody2(ServletTestRedirector.java:101)at org.apache.cactus.server.ServletTestRedirector.doPost_aroundBody3$advice(ServletTestRedirector.java:224)at org.apache.cactus.server.ServletTestRedirector.doPost(ServletTestRedirector.java)at org.jboss.jsfunit.framework.JSFUnitServletRedirector.doPost(JSFUnitServletRedirector.java:46)at org.apache.cactus.server.ServletTestRedirector.doGet_aroundBody0(ServletTestRedirector.java:72)at org.apache.cactus.server.ServletTestRedirector.doGet_aroundBody1$advice(ServletTestRedirector.java:224)at org.apache.cactus.server.ServletTestRedirector.doGet(ServletTestRedirector.java)at org.jboss.jsfunit.framework.JSFUnitServletRedirector.doGet(JSFUnitServletRedirector.java:52)at javax.servlet.http.HttpServlet.service(HttpServlet.java:690)at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)at org.jboss.jsfunit.framework.JSFUnitFilter.doFilter(JSFUnitFilter.java:116)at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:230)at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:179)at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:433)at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:84)at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:104)at org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:157)at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:241)at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:580)at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)at java.lang.Thread.run(Thread.java:803)Thanks in advance,Anoop

    DB:2.64:Java.Lang.Classcastexception While Accesing Jsfunit 3k


    You need to use the HtmlUnit 2.4 jars. If you use the jars linked from the getting started page, you should be OK.http://www.jboss.org/jsfunit/gettingstarted.htmlBut your problem is that you got an UnexpectedPage from "/JSFUnitTest.jsflps". Does "/JSFUnitTest.jsflps" map to the FacesServlet? This must be a page that maps to the FacesServlet. Usually, this is something like "/index.jsf" or "index.faces".Also see http://htmlunit.sourceforge.net/apidocs/com/gargoylesoftware/htmlunit/UnexpectedPage.htmlStan

  • RELEVANCY SCORE 2.64

    DB:2.64:Issue With Htmlunit Driver By Using Oracle Extended Selenium Webdriver zm


    Hi,

    I need to run test case in silent mode i.e. silent playback.Thus, using HTMLUnit Web Driver which is available in oracle extended selenium binaries.

    The recorded files works fine with firefox driver but when i converted my code to html unit driver, it failed to find link inside ADFTable of my fusion web application.

    Is htmlunit driver which is in oracle extended selenium files compatible with ADF Application???

    Is there any other approach for silent playback of ADF Application test cases other than headless and VM.

    Please guide on this issue.

    Regards,
    Meera

    DB:2.64:Issue With Htmlunit Driver By Using Oracle Extended Selenium Webdriver zm

    Hi,

    I need to run test case in silent mode i.e. silent playback.Thus, using HTMLUnit Web Driver which is available in oracle extended selenium binaries.

    The recorded files works fine with firefox driver but when i converted my code to html unit driver, it failed to find link inside ADFTable of my fusion web application.

    Is htmlunit driver which is in oracle extended selenium files compatible with ADF Application???

    Is there any other approach for silent playback of ADF Application test cases other than headless and VM.

    Please guide on this issue.

    Regards,
    Meera

  • RELEVANCY SCORE 2.64

    DB:2.64:Htmlunit - Setattributevalue Or Sethiddeninputvalue 3m


    Hello again. I can get the attribute value with this method:

    -----

    WebClient client = new WebClient();

    HtmlPage page = client.getPage ("http://mydomain.com/welcome.jsp");

    HtmlHiddenInput hidden = (HtmlHiddenInput) page.getElementByName("pagecodes");

    System.out.println(hidden.getValueAttribute());

    -----

    The output = 12345

    -----

    Now I need to send this attribute value along with my next page request. The following method would work:

    HtmlPage page = client.getPage ("http://mydomain.com/nextpage.jsp?pagecodes=12345");

    -----

    But the above method is cumbersome when submitting a large number of values. I am seeking a method like the following pseudocode:

    -----

    HtmlPage page = client.getPage ("http://mydomain.com/nextpage.jsp");

    page.setHiddenInputValue("pagecodes") = 12345;

    -----

    Any suggestions are greatly appreciated.

    DB:2.64:Htmlunit - Setattributevalue Or Sethiddeninputvalue 3m

    Hello again. I can get the attribute value with this method:

    -----

    WebClient client = new WebClient();

    HtmlPage page = client.getPage ("http://mydomain.com/welcome.jsp");

    HtmlHiddenInput hidden = (HtmlHiddenInput) page.getElementByName("pagecodes");

    System.out.println(hidden.getValueAttribute());

    -----

    The output = 12345

    -----

    Now I need to send this attribute value along with my next page request. The following method would work:

    HtmlPage page = client.getPage ("http://mydomain.com/nextpage.jsp?pagecodes=12345");

    -----

    But the above method is cumbersome when submitting a large number of values. I am seeking a method like the following pseudocode:

    -----

    HtmlPage page = client.getPage ("http://mydomain.com/nextpage.jsp");

    page.setHiddenInputValue("pagecodes") = 12345;

    -----

    Any suggestions are greatly appreciated.

  • RELEVANCY SCORE 2.63

    DB:2.63:Simple Test Case Don't Run ms



    Hi folks,

    Trying to run a simple test case, but JSFUnit throws following exception:

    ======= EXCEPTION START ========EcmaError: lineNumber=[260] column=[0] lineSource=[no source] name=[TypeError] sourceName=[http://localhost:8080/xxxx/faces/a4j/g/3_3_2.SR1org.ajax4jsf.javascript.PrototypeScript] message=[TypeError: Cannot find function attachEvent in object [object Object]. (http://localhost:8080/xxxx/faces/a4j/g/3_3_2.SR1org.ajax4jsf.javascript.PrototypeScript#260)]com.gargoylesoftware.htmlunit.ScriptException: TypeError: Cannot find function attachEvent in object [object Object]. (http://localhost:8080/xxxx/faces/a4j/g/3_3_2.SR1org.ajax4jsf.javascript.PrototypeScript#260) at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine$HtmlUnitContextAction.run(JavaScriptEngine.java:534) at net.sourceforge.htmlunit.corejs.javascript.Context.call(Context.java:515) at net.sourceforge.htmlunit.corejs.javascript.ContextFactory.call(ContextFactory.java:507) at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine.execute(JavaScriptEngine.java:432) at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine.execute(JavaScriptEngine.java:407) at com.gargoylesoftware.htmlunit.html.HtmlPage.executeJavaScriptIfPossible(HtmlPage.java:965) at com.gargoylesoftware.htmlunit.html.HtmlScript.executeInlineScriptIfNeeded(HtmlScript.java:310) at com.gargoylesoftware.htmlunit.html.HtmlScript.executeScriptIfNeeded(HtmlScript.java:364) at com.gargoylesoftware.htmlunit.html.HtmlScript$1.execute(HtmlScript.java:213) at com.gargoylesoftware.htmlunit.html.HtmlScript.onAllChildrenAddedToPage(HtmlScript.java:239) at com.gargoylesoftware.htmlunit.html.HTMLParser$HtmlUnitDOMBuilder.endElement(HTMLParser.java:595) at org.apache.xerces.parsers.AbstractSAXParser.endElement(Unknown Source) at com.gargoylesoftware.htmlunit.html.HTMLParser$HtmlUnitDOMBuilder.endElement(HTMLParser.java:549) at org.cyberneko.html.HTMLTagBalancer.callEndElement(HTMLTagBalancer.java:1025) at org.cyberneko.html.HTMLTagBalancer.endElement(HTMLTagBalancer.java:927) at org.cyberneko.html.filters.DefaultFilter.endElement(DefaultFilter.java:206) at org.cyberneko.html.filters.NamespaceBinder.endElement(NamespaceBinder.java:329) at org.cyberneko.html.HTMLScanner$ContentScanner.scanEndElement(HTMLScanner.java:3041) at org.cyberneko.html.HTMLScanner$ContentScanner.scan(HTMLScanner.java:1993) at org.cyberneko.html.HTMLScanner.scanDocument(HTMLScanner.java:910) at org.cyberneko.html.HTMLConfiguration.parse(HTMLConfiguration.java:499) at org.cyberneko.html.HTMLConfiguration.parse(HTMLConfiguration.java:452) at org.apache.xerces.parsers.XMLParser.parse(Unknown Source) at com.gargoylesoftware.htmlunit.html.HTMLParser$HtmlUnitDOMBuilder.parse(HTMLParser.java:798) at com.gargoylesoftware.htmlunit.html.HTMLParser.parse(HTMLParser.java:278) at com.gargoylesoftware.htmlunit.DefaultPageCreator.createHtmlPage(DefaultPageCreator.java:127) at com.gargoylesoftware.htmlunit.DefaultPageCreator.createPage(DefaultPageCreator.java:101) at com.gargoylesoftware.htmlunit.WebClient.loadWebResponseInto(WebClient.java:442) at com.gargoylesoftware.htmlunit.WebClient.getPage(WebClient.java:329) at com.gargoylesoftware.htmlunit.WebClient.getPage(WebClient.java:354) at com.gargoylesoftware.htmlunit.html.HtmlForm.submit(HtmlForm.java:179) at com.gargoylesoftware.htmlunit.html.HtmlButton.doClickAction(HtmlButton.java:81) at com.gargoylesoftware.htmlunit.html.HtmlElement.click(HtmlElement.java:1329) at com.gargoylesoftware.htmlunit.html.HtmlElement.click(HtmlElement.java:1288) at com.gargoylesoftware.htmlunit.html.HtmlElement.click(HtmlElement.java:1257) at org.jboss.jsfunit.framework.FormAuthenticationStrategy.clickSubmitComponent(FormAuthenticationStrategy.java:127) at org.jboss.jsfunit.framework.FormAuthenticationStrategy.doInitialRequest(FormAuthenticationStrategy.java:108) at org.jboss.jsfunit.framework.WebClientSpec.doInitialRequest(WebClientSpec.java:259) at org.jboss.jsfunit.jsfsession.JSFSession.init(JSFSession.java:81) at xxxx.XXXXManagedBeanTest.testInvocarConsultar(XXXXManagedBeanTest.java:36) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at junit.framework.TestCase.runTest(TestCase.java:164) at junit.framework.TestCase.runBare(TestCase.java:130) at org.apache.cactus.internal.AbstractCactusTestCase.runBareServer(AbstractCactusTestCase.java:153) at org.apache.cactus.internal.server.AbstractWebTestCaller.doTest(AbstractWebTestCaller.java:119) at org.apache.cactus.internal.server.AbstractWebTestController.handleRequest_aroundBody0(AbstractWebTestController.java:93) at org.apache.cactus.internal.server.AbstractWebTestController.handleRequest_aroundBody1$advice(AbstractWebTestController.java:217) at org.apache.cactus.internal.server.AbstractWebTestController.handleRequest(AbstractWebTestController.java) at org.apache.cactus.server.ServletTestRedirector.doPost_aroundBody2(ServletTestRedirector.java:101) at org.apache.cactus.server.ServletTestRedirector.doPost_aroundBody3$advice(ServletTestRedirector.java:217) at org.apache.cactus.server.ServletTestRedirector.doPost(ServletTestRedirector.java) at org.jboss.jsfunit.framework.JSFUnitServletRedirector.doPost(JSFUnitServletRedirector.java:46) at org.apache.cactus.server.ServletTestRedirector.doGet_aroundBody0(ServletTestRedirector.java:72) at org.apache.cactus.server.ServletTestRedirector.doGet_aroundBody1$advice(ServletTestRedirector.java:217) at org.apache.cactus.server.ServletTestRedirector.doGet(ServletTestRedirector.java) at org.jboss.jsfunit.framework.JSFUnitServletRedirector.doGet(JSFUnitServletRedirector.java:52) at javax.servlet.http.HttpServlet.service(HttpServlet.java:617) at javax.servlet.http.HttpServlet.service(HttpServlet.java:717) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) at org.jboss.jsfunit.framework.JSFUnitFilter.doFilter(JSFUnitFilter.java:119) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191) at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:433) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:293) at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:849) at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583) at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:454) at java.lang.Thread.run(Thread.java:619)Caused by: net.sourceforge.htmlunit.corejs.javascript.EcmaError: TypeError: Cannot find function attachEvent in object [object Object]. (http://localhost:8080/xxxx/faces/a4j/g/3_3_2.SR1org.ajax4jsf.javascript.PrototypeScript#260) at net.sourceforge.htmlunit.corejs.javascript.ScriptRuntime.constructError(ScriptRuntime.java:3654) at net.sourceforge.htmlunit.corejs.javascript.ScriptRuntime.constructError(ScriptRuntime.java:3632) at net.sourceforge.htmlunit.corejs.javascript.ScriptRuntime.typeError(ScriptRuntime.java:3660) at net.sourceforge.htmlunit.corejs.javascript.ScriptRuntime.typeError2(ScriptRuntime.java:3679) at net.sourceforge.htmlunit.corejs.javascript.ScriptRuntime.notFunctionError(ScriptRuntime.java:3743) at net.sourceforge.htmlunit.corejs.javascript.ScriptRuntime.getPropFunctionAndThisHelper(ScriptRuntime.java:2247) at net.sourceforge.htmlunit.corejs.javascript.ScriptRuntime.getPropFunctionAndThis(ScriptRuntime.java:2214) at net.sourceforge.htmlunit.corejs.javascript.Interpreter.interpretLoop(Interpreter.java:3143) at net.sourceforge.htmlunit.corejs.javascript.Interpreter.interpret(Interpreter.java:2487) at net.sourceforge.htmlunit.corejs.javascript.InterpretedFunction.call(InterpretedFunction.java:164) at net.sourceforge.htmlunit.corejs.javascript.ContextFactory.doTopCall(ContextFactory.java:398) at com.gargoylesoftware.htmlunit.javascript.HtmlUnitContextFactory.doTopCall(HtmlUnitContextFactory.java:267) at net.sourceforge.htmlunit.corejs.javascript.ScriptRuntime.doTopCall(ScriptRuntime.java:3065) at net.sourceforge.htmlunit.corejs.javascript.InterpretedFunction.exec(InterpretedFunction.java:175) at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine$5.doRun(JavaScriptEngine.java:423) at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine$HtmlUnitContextAction.run(JavaScriptEngine.java:528) ... 76 moreEnclosed exception: net.sourceforge.htmlunit.corejs.javascript.EcmaError: TypeError: Cannot find function attachEvent in object [object Object]. (http://localhost:8080/xxxx/faces/a4j/g/3_3_2.SR1org.ajax4jsf.javascript.PrototypeScript#260) at net.sourceforge.htmlunit.corejs.javascript.ScriptRuntime.constructError(ScriptRuntime.java:3654) at net.sourceforge.htmlunit.corejs.javascript.ScriptRuntime.constructError(ScriptRuntime.java:3632) at net.sourceforge.htmlunit.corejs.javascript.ScriptRuntime.typeError(ScriptRuntime.java:3660) at net.sourceforge.htmlunit.corejs.javascript.ScriptRuntime.typeError2(ScriptRuntime.java:3679) at net.sourceforge.htmlunit.corejs.javascript.ScriptRuntime.notFunctionError(ScriptRuntime.java:3743) at net.sourceforge.htmlunit.corejs.javascript.ScriptRuntime.getPropFunctionAndThisHelper(ScriptRuntime.java:2247) at net.sourceforge.htmlunit.corejs.javascript.ScriptRuntime.getPropFunctionAndThis(ScriptRuntime.java:2214) at net.sourceforge.htmlunit.corejs.javascript.Interpreter.interpretLoop(Interpreter.java:3143) at script(http://localhost:8080/xxxx/faces/a4j/g/3_3_2.SR1org.ajax4jsf.javascript.PrototypeScript:260) at script(http://localhost:8080/xxxx/faces/a4j/g/3_3_2.SR1org/richfaces/renderkit/html/scripts/menu.js:98) at script(http://localhost:8080/xxxx/faces/a4j/g/3_3_2.SR1org/richfaces/renderkit/html/scripts/menu.js:75) at script.klass(http://localhost:8080/xxxx/faces/a4j/g/3_3_2.SR1org.ajax4jsf.javascript.PrototypeScript:4) at script(script in http://localhost:8080/xxxx/form.jsf?BEAN=XXXXFORM=CONSULTA from (131, 6801) to (131, 7604):131) at net.sourceforge.htmlunit.corejs.javascript.Interpreter.interpret(Interpreter.java:2487) at net.sourceforge.htmlunit.corejs.javascript.InterpretedFunction.call(InterpretedFunction.java:164) at net.sourceforge.htmlunit.corejs.javascript.ContextFactory.doTopCall(ContextFactory.java:398) at com.gargoylesoftware.htmlunit.javascript.HtmlUnitContextFactory.doTopCall(HtmlUnitContextFactory.java:267) at net.sourceforge.htmlunit.corejs.javascript.ScriptRuntime.doTopCall(ScriptRuntime.java:3065) at net.sourceforge.htmlunit.corejs.javascript.InterpretedFunction.exec(InterpretedFunction.java:175) at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine$5.doRun(JavaScriptEngine.java:423) at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine$HtmlUnitContextAction.run(JavaScriptEngine.java:528) at net.sourceforge.htmlunit.corejs.javascript.Context.call(Context.java:515) at net.sourceforge.htmlunit.corejs.javascript.ContextFactory.call(ContextFactory.java:507) at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine.execute(JavaScriptEngine.java:432) at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine.execute(JavaScriptEngine.java:407) at com.gargoylesoftware.htmlunit.html.HtmlPage.executeJavaScriptIfPossible(HtmlPage.java:965) at com.gargoylesoftware.htmlunit.html.HtmlScript.executeInlineScriptIfNeeded(HtmlScript.java:310) at com.gargoylesoftware.htmlunit.html.HtmlScript.executeScriptIfNeeded(HtmlScript.java:364) at com.gargoylesoftware.htmlunit.html.HtmlScript$1.execute(HtmlScript.java:213) at com.gargoylesoftware.htmlunit.html.HtmlScript.onAllChildrenAddedToPage(HtmlScript.java:239) at com.gargoylesoftware.htmlunit.html.HTMLParser$HtmlUnitDOMBuilder.endElement(HTMLParser.java:595) at org.apache.xerces.parsers.AbstractSAXParser.endElement(Unknown Source) at com.gargoylesoftware.htmlunit.html.HTMLParser$HtmlUnitDOMBuilder.endElement(HTMLParser.java:549) at org.cyberneko.html.HTMLTagBalancer.callEndElement(HTMLTagBalancer.java:1025) at org.cyberneko.html.HTMLTagBalancer.endElement(HTMLTagBalancer.java:927) at org.cyberneko.html.filters.DefaultFilter.endElement(DefaultFilter.java:206) at org.cyberneko.html.filters.NamespaceBinder.endElement(NamespaceBinder.java:329) at org.cyberneko.html.HTMLScanner$ContentScanner.scanEndElement(HTMLScanner.java:3041) at org.cyberneko.html.HTMLScanner$ContentScanner.scan(HTMLScanner.java:1993) at org.cyberneko.html.HTMLScanner.scanDocument(HTMLScanner.java:910) at org.cyberneko.html.HTMLConfiguration.parse(HTMLConfiguration.java:499) at org.cyberneko.html.HTMLConfiguration.parse(HTMLConfiguration.java:452) at org.apache.xerces.parsers.XMLParser.parse(Unknown Source) at com.gargoylesoftware.htmlunit.html.HTMLParser$HtmlUnitDOMBuilder.parse(HTMLParser.java:798) at com.gargoylesoftware.htmlunit.html.HTMLParser.parse(HTMLParser.java:278) at com.gargoylesoftware.htmlunit.DefaultPageCreator.createHtmlPage(DefaultPageCreator.java:127) at com.gargoylesoftware.htmlunit.DefaultPageCreator.createPage(DefaultPageCreator.java:101) at com.gargoylesoftware.htmlunit.WebClient.loadWebResponseInto(WebClient.java:442) at com.gargoylesoftware.htmlunit.WebClient.getPage(WebClient.java:329) at com.gargoylesoftware.htmlunit.WebClient.getPage(WebClient.java:354) at com.gargoylesoftware.htmlunit.html.HtmlForm.submit(HtmlForm.java:179) at com.gargoylesoftware.htmlunit.html.HtmlButton.doClickAction(HtmlButton.java:81) at com.gargoylesoftware.htmlunit.html.HtmlElement.click(HtmlElement.java:1329) at com.gargoylesoftware.htmlunit.html.HtmlElement.click(HtmlElement.java:1288) at com.gargoylesoftware.htmlunit.html.HtmlElement.click(HtmlElement.java:1257) at org.jboss.jsfunit.framework.FormAuthenticationStrategy.clickSubmitComponent(FormAuthenticationStrategy.java:127) at org.jboss.jsfunit.framework.FormAuthenticationStrategy.doInitialRequest(FormAuthenticationStrategy.java:108) at org.jboss.jsfunit.framework.WebClientSpec.doInitialRequest(WebClientSpec.java:259) at org.jboss.jsfunit.jsfsession.JSFSession.init(JSFSession.java:81) at xxxx.XXXXManagedBeanTest.testInvocarConsultar(XXXXManagedBeanTest.java:36) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at junit.framework.TestCase.runTest(TestCase.java:164) at junit.framework.TestCase.runBare(TestCase.java:130) at org.apache.cactus.internal.AbstractCactusTestCase.runBareServer(AbstractCactusTestCase.java:153) at org.apache.cactus.internal.server.AbstractWebTestCaller.doTest(AbstractWebTestCaller.java:119) at org.apache.cactus.internal.server.AbstractWebTestController.handleRequest_aroundBody0(AbstractWebTestController.java:93) at org.apache.cactus.internal.server.AbstractWebTestController.handleRequest_aroundBody1$advice(AbstractWebTestController.java:217) at org.apache.cactus.internal.server.AbstractWebTestController.handleRequest(AbstractWebTestController.java) at org.apache.cactus.server.ServletTestRedirector.doPost_aroundBody2(ServletTestRedirector.java:101) at org.apache.cactus.server.ServletTestRedirector.doPost_aroundBody3$advice(ServletTestRedirector.java:217) at org.apache.cactus.server.ServletTestRedirector.doPost(ServletTestRedirector.java) at org.jboss.jsfunit.framework.JSFUnitServletRedirector.doPost(JSFUnitServletRedirector.java:46) at org.apache.cactus.server.ServletTestRedirector.doGet_aroundBody0(ServletTestRedirector.java:72) at org.apache.cactus.server.ServletTestRedirector.doGet_aroundBody1$advice(ServletTestRedirector.java:217) at org.apache.cactus.server.ServletTestRedirector.doGet(ServletTestRedirector.java) at org.jboss.jsfunit.framework.JSFUnitServletRedirector.doGet(JSFUnitServletRedirector.java:52) at javax.servlet.http.HttpServlet.service(HttpServlet.java:617) at javax.servlet.http.HttpServlet.service(HttpServlet.java:717) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) at org.jboss.jsfunit.framework.JSFUnitFilter.doFilter(JSFUnitFilter.java:119) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191) at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:433) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:293) at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:849) at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583) at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:454) at java.lang.Thread.run(Thread.java:619)======= EXCEPTION END ========

    Is bundled protoype script causing the failure?

    Environment:

    JSFUnit 1.1.0.GA

    HtmlUnit 2.5

    nekohtml-1.9.12

    Richfaces 3.3.2.SR1

    Any help?

    Thanks

    Allan Wojcik

    DB:2.63:Simple Test Case Don't Run ms


    allanws wrote:

    By the way, what Richfaces is recommended?
    Hi Allan,

    Sorry, I missed that last question. Hopefully, this post answers it.

    Whenever you have a new question please start a new thread. That brings it to my attention. As for your original question, is there any chance you can provide a simple example to recreate the problem?

    Regards,

    Stan

  • RELEVANCY SCORE 2.55

    DB:2.55:Use Regular Internet Connection And Vpn In Different Parts Of Program m1


    I want to use my regular internet connection for JDBC and VPN for the parts of the program which uses HTMLUnit(web testing library). My computer has 2 network cards if that makes a any difference. What is the best approach to achieve this?

    DB:2.55:Use Regular Internet Connection And Vpn In Different Parts Of Program m1

    Gee. Google: "java socket specific nic". First hit:

    http://docs.oracle.com/javase/tutorial/networking/nifs/definition.html

  • RELEVANCY SCORE 2.54

    DB:2.54:Somekind Of Frontend Unittesting For Jsf xs


    We want to test the endresult of our web-app, but somehow httpunit and htmlunit
    are giving back the same resultpage as the first page.

    Is there another product to test the frontend?
    Any experiende and URL's are very welcome.

    DB:2.54:Somekind Of Frontend Unittesting For Jsf xs

    We want to test the endresult of our web-app, but somehow httpunit and htmlunit
    are giving back the same resultpage as the first page.

    Is there another product to test the frontend?
    Any experiende and URL's are very welcome.

  • RELEVANCY SCORE 2.53

    DB:2.53:Headless Web Browsing 8p



    Hello!

    Does anyone know if it's possible to use HtmlUnit in BlackBerry apps?

    I'm trying to create an app that collects information from a user and submits it to a website.

    Thanks!







    Solved!
    Go to Solution.

    DB:2.53:Headless Web Browsing 8p


    Thanks so much! I'll check that out.

  • RELEVANCY SCORE 2.53

    DB:2.53:[Warp] Synchronizationpoint$Serverresponsetimeoutexception When Using Form Authentication xf



    Hi everyone,

    I'm currently trying to use Warp JSF (1.0.0.Alpha2) to test an application that uses FORM-based authentication. The test code itself is pretty much standard, using WebDriver (htmlunit) via Drone:

    @Drone
    WebDriver browser;

    @ArquillianResource
    URL deploymentUrl;

    @Test
    @RunAsClient
    public void testWarpJSF() {
    Warp.initiate(new Activity() {
    @Override
    public void perform() {
    browser.get(deploymentUrl + "index.xhtml");
    doLoginIfNeeded(browser);
    // this works just fine!
    Assert.assertEquals("TITLE", browser.getTitle());
    }
    })
    .inspect(new Inspection() {
    private static final long serialVersionUID = 1L;

    @ArquillianResource
    FacesContext facesContext;

    @AfterPhase(RENDER_RESPONSE)
    @SuppressWarnings("unused")
    public void testOnServer() {
    // timeout before we reach this
    Assert.assertEquals("/index.xhtml", facesContext.getViewRoot().getViewId());
    }
    });
    }

    DB:2.53:[Warp] Synchronizationpoint$Serverresponsetimeoutexception When Using Form Authentication xf


    Done :-) The redirect does seem to work but unfortunately we're not there yet. Have a look at ARQ-1365 for details...

  • RELEVANCY SCORE 2.53

    DB:2.53:Java.Lang.Illegalargumentexception: Com/Gargoylesoftware/Htmlunit/Javascript/Configuration/Ff3.6.Properties Doesn't Exist Or Can't Be Accessed zs



    If I use 2.0.0.Beta2 I get:

    java.lang.IllegalArgumentException: com/gargoylesoftware/htmlunit/javascript/configuration/FF3.6.properties doesn't exist or can't be accessed

    (without even using / calling any JSFUnit objects/methods inside my testcases).

    If I use Beta1, the exception is not thrown. Do I have perhaps wrong version of some libraries?

    Thanks very much for any help on this issue.

    Hanspeter

    Here an excerpt of my parent pom:

    {code:xml}

    repositories

    repository

    idjboss public repository/id

    urlhttp://repository.jboss.org/nexus/content/groups/public-jboss//url

    releases

    enabledtrue/enabled

    /releases

    snapshots

    enabledtrue/enabled

    updatePolicydaily/updatePolicy

    /snapshots

    /repository

    /repositories

    pluginRepositories

    pluginRepository

    idjboss-public-repository/id

    nameJBoss Repository/name

    urlhttp://repository.jboss.org/nexus/content/groups/public-jboss//url

    releases

    enabledtrue/enabled

    /releases

    snapshots

    enabledtrue/enabled

    updatePolicydaily/updatePolicy

    /snapshots

    /pluginRepository

    /pluginRepositories

    properties

    project.build.sourceEncodingUTF-8/project.build.sourceEncoding

    netbeans.hint.deploy.servergfv3ee6/netbeans.hint.deploy.server

    org.slf4j.version1.6.2/org.slf4j.version

    log4j.version1.2.16/log4j.version

    org.jboss.shrinkwrap.resolver.version1.0.0-beta-6/org.jboss.shrinkwrap.resolver.version

    version.shrinkwrap.descriptors1.1.0-beta-1/version.shrinkwrap.descriptors

    version.shrinkwrap1.0.0-cr-3/version.shrinkwrap

    org.jboss.arquillian.version1.0.0.CR2/org.jboss.arquillian.version

    /properties

    dependencyManagement

    dependencies

    dependency

    groupIdorg.slf4j/groupId

    artifactIdslf4j-log4j12/artifactId

    version${org.slf4j.version}/version

    /dependency

    dependency

    groupIdorg.slf4j/groupId

    artifactIdslf4j-api/artifactId

    version${org.slf4j.version}/version

    /dependency

    dependency

    groupIdorg.slf4j/groupId

    artifactIdslf4j-ext/artifactId

    version${org.slf4j.version}/version

    /dependency

    dependency

    groupIdorg.slf4j/groupId

    artifactIdslf4j-jdk14/artifactId

    version${org.slf4j.version}/version

    /dependency

    dependency

    groupIdorg.slf4j/groupId

    artifactIdslf4j-simple/artifactId

    version${log4j.version}/version

    /dependency

    dependency

    groupIdlog4j/groupId

    artifactIdlog4j/artifactId

    version${log4j.version}/version

    /dependency

    dependency

    groupIdorg.jboss.arquillian/groupId

    artifactIdarquillian-bom/artifactId

    version1.0.0.CR7/version

    scopeimport/scope

    typepom/type

    /dependency

    dependency

    groupIdorg.jboss.weld/groupId

    artifactIdweld-core-bom/artifactId

    version1.1.4.Final/version

    scopeimport/scope

    typepom/type

    /dependency

    /dependencies

    /dependencyManagement

    dependencies

    !-- 2.0.0 important for source code availability and thus javadoc --

    dependency

    groupIdorg.jboss.spec/groupId

    artifactIdjboss-javaee-6.0/artifactId

    version1.0.0.Final/version

    typepom/type

    scopeprovided/scope

    /dependency

    dependency

    groupIdorg.testng/groupId

    artifactIdtestng/artifactId

    scopetest/scope

    !-- do not use 6.xx version, this does not work with weld --

    version5.14.10/version

    !--version6.3.1/version--

    /dependency

    !-- attention!! separate guice is needed by testng version = 6.0 --

    dependency

    groupIdcom.google.inject/groupId

    artifactIdguice/artifactId

    version3.0/version

    scopetest/scope

    /dependency

    dependency

    groupIdorg.jboss.arquillian.testng/groupId

    artifactIdarquillian-testng-container/artifactId

    scopetest/scope

    /dependency

    !-- in this module and not in util because we need exceptions in all modules --

    dependency

    groupIdcommons-configuration/groupId

    artifactIdcommons-configuration/artifactId

    version1.7/version

    /dependency

    !-- shrinkwrap resolver and descriptor --

    dependency

    groupIdorg.jboss.shrinkwrap.resolver/groupId

    artifactIdshrinkwrap-resolver-api/artifactId

    scopetest/scope

    /dependency

    dependency

    groupIdorg.jboss.shrinkwrap.resolver/groupId

    artifactIdshrinkwrap-resolver-api-maven/artifactId

    scopetest/scope

    /dependency

    dependency

    groupIdorg.jboss.shrinkwrap.resolver/groupId

    artifactIdshrinkwrap-resolver-impl-maven/artifactId

    scopetest/scope

    /dependency

    dependency

    groupIdorg.jboss.weld.se/groupId

    artifactIdweld-se-core/artifactId

    scopetest/scope

    /dependency

    dependency

    groupIdorg.jboss.shrinkwrap.descriptors/groupId

    artifactIdshrinkwrap-descriptors-impl/artifactId

    scopetest/scope

    /dependency

    dependency

    groupIdorg.jboss.jsfunit/groupId

    artifactIdjsfunit-arquillian/artifactId

    version2.0.0.Beta2/version

    scopetest/scope

    /dependency

    dependency

    groupIdorg.jboss.jsfunit/groupId

    artifactIdjboss-jsfunit-core/artifactId

    version2.0.0.Beta2/version

    scopetest/scope

    /dependency

    /dependencies

    {code}

    The stacktrace:

    {code}

    java.lang.IllegalArgumentException: com/gargoylesoftware/htmlunit/javascript/configuration/FF3.6.properties doesn't exist or can't be accessed

    at org.jboss.shrinkwrap.impl.base.Validate.notNull(Validate.java:44)

    at org.jboss.shrinkwrap.impl.base.container.ContainerBase.fileFromResource(ContainerBase.java:1609)

    at org.jboss.shrinkwrap.impl.base.container.ContainerBase.addAsResource(ContainerBase.java:885)

    at org.jboss.shrinkwrap.impl.base.container.ContainerBase.addAsResource(ContainerBase.java:863)

    at org.jboss.jsfunit.arquillian.client.JSFUnitArchiveAppender.createAuxiliaryArchive(JSFUnitArchiveAppender.java:46)

    at org.jboss.arquillian.container.test.impl.client.deployment.DeploymentGenerator.loadAuxiliaryArchives(DeploymentGenerator.java:198)

    at org.jboss.arquillian.container.test.impl.client.deployment.DeploymentGenerator.buildTestableDeployments(DeploymentGenerator.java:149)

    at org.jboss.arquillian.container.test.impl.client.deployment.DeploymentGenerator.createTestableDeployments(DeploymentGenerator.java:136)

    at org.jboss.arquillian.container.test.impl.client.deployment.DeploymentGenerator.generateDeployment(DeploymentGenerator.java:85)

    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)

    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

    at java.lang.reflect.Method.invoke(Method.java:601)

    at org.jboss.arquillian.core.impl.ObserverImpl.invoke(ObserverImpl.java:90)

    at org.jboss.arquillian.core.impl.EventContextImpl.invokeObservers(EventContextImpl.java:99)

    at org.jboss.arquillian.core.impl.EventContextImpl.proceed(EventContextImpl.java:81)

    at org.jboss.arquillian.core.impl.ManagerImpl.fire(ManagerImpl.java:134)

    at org.jboss.arquillian.core.impl.ManagerImpl.fire(ManagerImpl.java:114)

    at org.jboss.arquillian.core.impl.EventImpl.fire(EventImpl.java:67)

    at org.jboss.arquillian.container.test.impl.client.ContainerEventController.execute(ContainerEventController.java:100)

    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)

    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

    at java.lang.reflect.Method.invoke(Method.java:601)

    at org.jboss.arquillian.core.impl.ObserverImpl.invoke(ObserverImpl.java:90)

    at org.jboss.arquillian.core.impl.EventContextImpl.invokeObservers(EventContextImpl.java:99)

    at org.jboss.arquillian.core.impl.EventContextImpl.proceed(EventContextImpl.java:81)

    at org.jboss.arquillian.test.impl.TestContextHandler.createClassContext(TestContextHandler.java:75)

    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)

    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

    at java.lang.reflect.Method.invoke(Method.java:601)

    at org.jboss.arquillian.core.impl.ObserverImpl.invoke(ObserverImpl.java:90)

    at org.jboss.arquillian.core.impl.EventContextImpl.proceed(EventContextImpl.java:88)

    at org.jboss.arquillian.test.impl.TestContextHandler.createSuiteContext(TestContextHandler.java:60)

    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)

    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

    at java.lang.reflect.Method.invoke(Method.java:601)

    at org.jboss.arquillian.core.impl.ObserverImpl.invoke(ObserverImpl.java:90)

    at org.jboss.arquillian.core.impl.EventContextImpl.proceed(EventContextImpl.java:88)

    at org.jboss.arquillian.core.impl.ManagerImpl.fire(ManagerImpl.java:134)

    at org.jboss.arquillian.core.impl.ManagerImpl.fire(ManagerImpl.java:114)

    at org.jboss.arquillian.test.impl.EventTestRunnerAdaptor.beforeClass(EventTestRunnerAdaptor.java:80)

    at org.jboss.arquillian.testng.Arquillian.arquillianBeforeClass(Arquillian.java:103)

    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)

    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

    at java.lang.reflect.Method.invoke(Method.java:601)

    at org.testng.internal.MethodInvocationHelper.invokeMethod(MethodInvocationHelper.java:74)

    at org.testng.internal.Invoker.invokeConfigurationMethod(Invoker.java:525)

    at org.testng.internal.Invoker.invokeConfigurations(Invoker.java:202)

    at org.testng.internal.Invoker.invokeConfigurations(Invoker.java:130)

    at org.testng.internal.TestMethodWorker.invokeBeforeClassMethods(TestMethodWorker.java:173)

    at org.testng.internal.TestMethodWorker.run(TestMethodWorker.java:105)

    at org.testng.TestRunner.runWorkers(TestRunner.java:1147)

    at org.testng.TestRunner.privateRun(TestRunner.java:749)

    at org.testng.TestRunner.run(TestRunner.java:600)

    at org.testng.SuiteRunner.runTest(SuiteRunner.java:317)

    at org.testng.SuiteRunner.runSequentially(SuiteRunner.java:312)

    at org.testng.SuiteRunner.privateRun(SuiteRunner.java:274)

    at org.testng.SuiteRunner.run(SuiteRunner.java:223)

    at org.testng.SuiteRunnerWorker.runSuite(SuiteRunnerWorker.java:52)

    at org.testng.SuiteRunnerWorker.run(SuiteRunnerWorker.java:86)

    at org.testng.TestNG.runSuitesSequentially(TestNG.java:1039)

    at org.testng.TestNG.runSuitesLocally(TestNG.java:964)

    at org.testng.TestNG.run(TestNG.java:900)

    at org.apache.maven.surefire.testng.TestNGExecutor.run(TestNGExecutor.java:70)

    at org.apache.maven.surefire.testng.TestNGDirectoryTestSuite.execute(TestNGDirectoryTestSuite.java:111)

    at org.apache.maven.surefire.testng.TestNGProvider.invoke(TestNGProvider.java:115)

    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)

    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

    at java.lang.reflect.Method.invoke(Method.java:601)

    at org.apache.maven.surefire.util.ReflectionUtils.invokeMethodWithArray(ReflectionUtils.java:188)

    at org.apache.maven.surefire.booter.ProviderFactory$ProviderProxy.invoke(ProviderFactory.java:166)

    at org.apache.maven.surefire.booter.ProviderFactory.invokeProvider(ProviderFactory.java:86)

    at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:101)

    at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:74)

    {code}

  • RELEVANCY SCORE 2.50

    DB:2.50:Hii Am New In Webtesting ma


    i already did a simple web testing code(using htmlUnit JAR ) then no compile errors but when i run it , the problem shows up
    here is the problem ( Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/commons/httpclient/auth/CredentialsProvider )
    and when i click on the error to know which line has the erorr
    here is the line error ( WebClient webClient = new WebClient(BrowserVersion.getDefault()); )
    althought i did the classpath this my classpath( C:\Program Files\Microsoft SQL Server 2000 Driver for JDBC\lib\msbase.jar;C:\Program Files\Microsoft SQL Server 2000 Driver for JDBC\lib\mssqlserver.jar;C:\Program Files\Microsoft SQL Server 2000 Driver for JDBC\lib\msutil.jar;C:\Program Files\Microsoft SQL Server 2000 Driver for JDBC\lib\htmlunit.jar;C:\Program Files\Microsoft SQL Server 2000 Driver for JDBC\lib\junit.jar;C:\Program Files\Microsoft SQL Server 2000 Driver for JDBC\lib\htmlunit-core-js.jar )
    and i already add jar files to the project as (add external JARs...)
    i dont know what can i do ? PLZ be fast on helping me i need to end fast
    any help please....
    thanks 4 ur time

    DB:2.50:Hii Am New In Webtesting ma

    i already did a simple web testing code(using htmlUnit JAR ) then no compile errors but when i run it , the problem shows up
    here is the problem ( Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/commons/httpclient/auth/CredentialsProvider )
    and when i click on the error to know which line has the erorr
    here is the line error ( WebClient webClient = new WebClient(BrowserVersion.getDefault()); )
    althought i did the classpath this my classpath( C:\Program Files\Microsoft SQL Server 2000 Driver for JDBC\lib\msbase.jar;C:\Program Files\Microsoft SQL Server 2000 Driver for JDBC\lib\mssqlserver.jar;C:\Program Files\Microsoft SQL Server 2000 Driver for JDBC\lib\msutil.jar;C:\Program Files\Microsoft SQL Server 2000 Driver for JDBC\lib\htmlunit.jar;C:\Program Files\Microsoft SQL Server 2000 Driver for JDBC\lib\junit.jar;C:\Program Files\Microsoft SQL Server 2000 Driver for JDBC\lib\htmlunit-core-js.jar )
    and i already add jar files to the project as (add external JARs...)
    i dont know what can i do ? PLZ be fast on helping me i need to end fast
    any help please....
    thanks 4 ur time

  • RELEVANCY SCORE 2.43

    DB:2.43:I Hava A Problem In Jsfunit 1j



    Hi,

    i am new to JSFunit and i am having difficulty getting it work.i do the example in the getstarted page.but this always hava some problem.

    i use eclipse 3.6 and jboss 5.1. can i only use this two tools to use jsfunit?

    include jars:

    ant-1.5.4.jar

    aspectjrt-1.2.1.jar

    cactus-13.1.7.1.jar

    cactus-ant-13-1.7.1.jar

    cargo-0.5.jar

    commons-collections-3.2.1.jar

    commons-httpclient-3.1.jar

    commons-io-1.4.jar

    commons-lang-2.4.jar

    commons-logging-1.1.1.jar

    cssparser-0.9.5.jar

    jboss-jsfunit-core-1.3.0.final.jar

    junit-3.8.1.jar

    nekohtml-1.9.14.jar

    sac-1.3.jar

    standard.jar

    richfaces-api-3.2.2.ga.jar

    richfaces-impl-3.2.2.ga.jar

    richfaces-ui-3.2.2.ga.jar

    commons-beanutils-1.7.0.jar

    commons-collections-3.2.jar

    commons-digester-1.8.jar

    commons-codec-1.3.jar

    htmlunit-2.8.jar

    htmlunit-core-js-2.8.jar

    web.xml:

    ?xml version="1.0" encoding="UTF-8"?

    web-app xmlns="http://java.sun.com/xml/ns/javaee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" version="2.5" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd"

    servlet

    servlet-nameFaces Servlet/servlet-name

    servlet-classjavax.faces.webapp.FacesServlet/servlet-class

    /servlet

    servlet-mapping

    servlet-nameFaces Servlet/servlet-name

    url-pattern*.faces/url-pattern

    /servlet-mapping

    filter

    filter-nameJSFUnitFilter/filter-name

    filter-classorg.jboss.jsfunit.framework.JSFUnitFilter/filter-class

    /filter

    filter-mapping

    filter-nameJSFUnitFilter/filter-name

    servlet-nameServletTestRunner/servlet-name

    /filter-mapping

    filter-mapping

    filter-nameJSFUnitFilter/filter-name

    servlet-nameServletRedirector/servlet-name

    /filter-mapping

    servlet

    servlet-nameServletRedirector/servlet-name

    servlet-classorg.jboss.jsfunit.framework.JSFUnitServletRedirector/servlet-class

    /servlet

    servlet

    servlet-nameServletTestRunner/servlet-name

    servlet-classorg.apache.cactus.server.runner.ServletTestRunner/servlet-class

    /servlet

    servlet-mapping

    servlet-nameServletRedirector/servlet-name

    url-pattern/ServletRedirector/url-pattern

    /servlet-mapping

    servlet-mapping

    servlet-nameServletTestRunner/servlet-name

    url-pattern/ServletTestRunner/url-pattern

    /servlet-mapping

    welcome-file-list

    welcome-fileindex.faces/welcome-file

    /welcome-file-list

    /web-app

    JSFUnitTest.java:

    package org.first;

    import java.io.IOException;

    import javax.faces.component.UIComponent;

    import org.jboss.jsfunit.jsfsession.JSFClientSession;

    import org.jboss.jsfunit.jsfsession.JSFServerSession;

    import org.jboss.jsfunit.jsfsession.JSFSession;

    import junit.framework.Test;

    import junit.framework.TestSuite;

    public class JSFUnitTest extends org.apache.cactus.ServletTestCase

    {

    public static Test suite()

    {

    return new TestSuite( JSFUnitTest.class );

    }

    public void testInitialPage() throws IOException

    {

    // Send an HTTP request for the initial page

    JSFSession jsfSession = new JSFSession("/index.faces");

    // A JSFClientSession emulates the browser and lets you test HTML

    JSFClientSession client = jsfSession.getJSFClientSession();

    // A JSFServerSession gives you access to JSF state

    JSFServerSession server = jsfSession.getJSFServerSession();

    // Test navigation to initial viewID

    assertEquals("/index.jsp", server.getCurrentViewID());

    // Assert that the prompt component is in the component tree and rendered

    UIComponent prompt = server.findComponent("greeting");

    assertTrue(prompt.isRendered());

    // Test a managed bean

    assertEquals("Stan", server.getManagedBeanValue("#{foo.text}"));

    }

    }

    in this page http://localhost:8080/first/ServletTestRunner?suite=org.first.JSFUnitTestxsl=cactus-report.xsl

    org/apache/http/client/CredentialsProvider java.lang.NoClassDefFoundError: org/apache/http/client/CredentialsProviderat org.jboss.jsfunit.framework.WebConversationFactory.makeWebClient(WebConversationFactory.java:127)at org.jboss.jsfunit.framework.WebClientSpec.init(WebClientSpec.java:116)at org.jboss.jsfunit.framework.WebClientSpec.init(WebClientSpec.java:94)at org.jboss.jsfunit.framework.WebClientSpec.init(WebClientSpec.java:78)at org.jboss.jsfunit.jsfsession.JSFSession.init(JSFSession.java:58)at org.first.JSFUnitTest.testInitialPage(JSFUnitTest.java:25)at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)at org.apache.cactus.internal.AbstractCactusTestCase.runBareServer(AbstractCactusTestCase.java:153)at org.apache.cactus.internal.server.AbstractWebTestCaller.doTest(AbstractWebTestCaller.java:119)at org.apache.cactus.internal.server.AbstractWebTestController.handleRequest_aroundBody0(AbstractWebTestController.java:93)at org.apache.cactus.internal.server.AbstractWebTestController.handleRequest_aroundBody1$advice(AbstractWebTestController.java:224)at org.apache.cactus.internal.server.AbstractWebTestController.handleRequest(AbstractWebTestController.java)at org.apache.cactus.server.ServletTestRedirector.doPost_aroundBody2(ServletTestRedirector.java:101)at org.apache.cactus.server.ServletTestRedirector.doPost_aroundBody3$advice(ServletTestRedirector.java:224)at org.apache.cactus.server.ServletTestRedirector.doPost(ServletTestRedirector.java)at org.jboss.jsfunit.framework.JSFUnitServletRedirector.doPost(JSFUnitServletRedirector.java:46)at org.apache.cactus.server.ServletTestRedirector.doGet_aroundBody0(ServletTestRedirector.java:72)at org.apache.cactus.server.ServletTestRedirector.doGet_aroundBody1$advice(ServletTestRedirector.java:224)at org.apache.cactus.server.ServletTestRedirector.doGet(ServletTestRedirector.java)at org.jboss.jsfunit.framework.JSFUnitServletRedirector.doGet(JSFUnitServletRedirector.java:52)at javax.servlet.http.HttpServlet.service(HttpServlet.java:617)at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)at org.jboss.jsfunit.framework.JSFUnitFilter.doFilter(JSFUnitFilter.java:119)at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:235)at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:190)at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:92)at org.jboss.web.tomcat.security.SecurityContextEstablishmentValve.process(SecurityContextEstablishmentValve.java:126)at org.jboss.web.tomcat.security.SecurityContextEstablishmentValve.invoke(SecurityContextEstablishmentValve.java:70)at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)at org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:158)at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:330)at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:829)at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:598)at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)at java.lang.Thread.run(Unknown Source)Caused by: java.lang.ClassNotFoundException: org.apache.http.client.CredentialsProvider from BaseClassLoader@14a7ff6{VFSClassLoaderPolicy@171c3f{name=vfsfile:/D:/javaEE/workspace/.metadata/.plugins/org.jboss.ide.eclipse.as.core/JBoss_5.1_Runtime_Server1289983265781/deploy/first.war/ domain=ClassLoaderDomain@21ae8c{name=vfsfile:/D:/javaEE/workspace/.metadata/.plugins/org.jboss.ide.eclipse.as.core/JBoss_5.1_Runtime_Server1289983265781/deploy/first.war/ parentPolicy=AFTER_BUT_JAVA_BEFORE parent=ClassLoaderDomain@dc0435{DefaultDomain}} roots=[MemoryContextHandler@20945748[path= context=vfsmemory://a11318-e750ap-ggx3ce2v-1-ggx3qf2z-9r real=vfsmemory://a11318-e750ap-ggx3ce2v-1-ggx3qf2z-9r], FileHandler@15655394[path=first.war/WEB-INF/classes context=file:/D:/javaEE/workspace/.metadata/.plugins/org.jboss.ide.eclipse.as.core/JBoss_5.1_Runtime_Server1289983265781/deploy/ real=file:/D:/javaEE/workspace/.metadata/.plugins/org.jboss.ide.eclipse.as.core/JBoss_5.1_Runtime_Server1289983265781/deploy/first.war/WEB-INF/classes/], DelegatingHandler@19906556[path=first.war/WEB-INF/lib/ant-1.5.4.jar context=file:/D:/javaEE/workspace/.metadata/.plugins/org.jboss.ide.eclipse.as.core/JBoss_5.1_Runtime_Server1289983265781/deploy/ real=file:/D:/javaEE/workspace/.metadata/.plugins/org.jboss.ide.eclipse.as.core/JBoss_5.1_Runtime_Server1289983265781/deploy/first.war/WEB-INF/lib/ant-1.5.4.jar], DelegatingHandler@31805585[path=first.war/WEB-INF/lib/aspectjrt-1.2.1.jar context=file:/D:/javaEE/workspace/.metadata/.plugins/org.jboss.ide.eclipse.as.core/JBoss_5.1_Runtime_Server1289983265781/deploy/ real=file:/D:/javaEE/workspace/.metadata/.plugins/org.jboss.ide.eclipse.as.core/JBoss_5.1_Runtime_Server1289983265781/deploy/first.war/WEB-INF/lib/aspectjrt-1.2.1.jar], DelegatingHandler@814303[path=first.war/WEB-INF/lib/cactus-13-1.7.1.jar context=file:/D:/javaEE/workspace/.metadata/.plugins/org.jboss.ide.eclipse.as.core/JBoss_5.1_Runtime_Server1289983265781/deploy/ real=file:/D:/javaEE/workspace/.metadata/.plugins/org.jboss.ide.eclipse.as.core/JBoss_5.1_Runtime_Server1289983265781/deploy/first.war/WEB-INF/lib/cactus-13-1.7.1.jar], DelegatingHandler@29340642[path=first.war/WEB-INF/lib/cactus-ant-13-1.7.1.jar context=file:/D:/javaEE/workspace/.metadata/.plugins/org.jboss.ide.eclipse.as.core/JBoss_5.1_Runtime_Server1289983265781/deploy/ real=file:/D:/javaEE/workspace/.metadata/.plugins/org.jboss.ide.eclipse.as.core/JBoss_5.1_Runtime_Server1289983265781/deploy/first.war/WEB-INF/lib/cactus-ant-13-1.7.1.jar], DelegatingHandler@12246055[path=first.war/WEB-INF/lib/cargo-0.5.jar context=file:/D:/javaEE/workspace/.metadata/.plugins/org.jboss.ide.eclipse.as.core/JBoss_5.1_Runtime_Server1289983265781/deploy/ real=file:/D:/javaEE/workspace/.metadata/.plugins/org.jboss.ide.eclipse.as.core/JBoss_5.1_Runtime_Server1289983265781/deploy/first.war/WEB-INF/lib/cargo-0.5.jar], DelegatingHandler@30117125[path=first.war/WEB-INF/lib/commons-beanutils-1.7.0.jar context=file:/D:/javaEE/workspace/.metadata/.plugins/org.jboss.ide.eclipse.as.core/JBoss_5.1_Runtime_Server1289983265781/deploy/ real=file:/D:/javaEE/workspace/.metadata/.plugins/org.jboss.ide.eclipse.as.core/JBoss_5.1_Runtime_Server1289983265781/deploy/first.war/WEB-INF/lib/commons-beanutils-1.7.0.jar], DelegatingHandler@9925208[path=first.war/WEB-INF/lib/commons-codec-1.3.jar context=file:/D:/javaEE/workspace/.metadata/.plugins/org.jboss.ide.eclipse.as.core/JBoss_5.1_Runtime_Server1289983265781/deploy/ real=file:/D:/javaEE/workspace/.metadata/.plugins/org.jboss.ide.eclipse.as.core/JBoss_5.1_Runtime_Server1289983265781/deploy/first.war/WEB-INF/lib/commons-codec-1.3.jar], DelegatingHandler@13891562[path=first.war/WEB-INF/lib/commons-collections-3.2.1.jar context=file:/D:/javaEE/workspace/.metadata/.plugins/org.jboss.ide.eclipse.as.core/JBoss_5.1_Runtime_Server1289983265781/deploy/ real=file:/D:/javaEE/workspace/.metadata/.plugins/org.jboss.ide.eclipse.as.core/JBoss_5.1_Runtime_Server1289983265781/deploy/first.war/WEB-INF/lib/commons-collections-3.2.1.jar], DelegatingHandler@3753978[path=first.war/WEB-INF/lib/commons-collections-3.2.jar context=file:/D:/javaEE/workspace/.metadata/.plugins/org.jboss.ide.eclipse.as.core/JBoss_5.1_Runtime_Server1289983265781/deploy/ real=file:/D:/javaEE/workspace/.metadata/.plugins/org.jboss.ide.eclipse.as.core/JBoss_5.1_Runtime_Server1289983265781/deploy/first.war/WEB-INF/lib/commons-collections-3.2.jar], DelegatingHandler@10776903[path=first.war/WEB-INF/lib/commons-digester-1.8.jar context=file:/D:/javaEE/workspace/.metadata/.plugins/org.jboss.ide.eclipse.as.core/JBoss_5.1_Runtime_Server1289983265781/deploy/ real=file:/D:/javaEE/workspace/.metadata/.plugins/org.jboss.ide.eclipse.as.core/JBoss_5.1_Runtime_Server1289983265781/deploy/first.war/WEB-INF/lib/commons-digester-1.8.jar], DelegatingHandler@588283[path=first.war/WEB-INF/lib/commons-httpclient-3.1.jar context=file:/D:/javaEE/workspace/.metadata/.plugins/org.jboss.ide.eclipse.as.core/JBoss_5.1_Runtime_Server1289983265781/deploy/ real=file:/D:/javaEE/workspace/.metadata/.plugins/org.jboss.ide.eclipse.as.core/JBoss_5.1_Runtime_Server1289983265781/deploy/first.war/WEB-INF/lib/commons-httpclient-3.1.jar], DelegatingHandler@22273841[path=first.war/WEB-INF/lib/commons-io-1.4.jar context=file:/D:/javaEE/workspace/.metadata/.plugins/org.jboss.ide.eclipse.as.core/JBoss_5.1_Runtime_Server1289983265781/deploy/ real=file:/D:/javaEE/workspace/.metadata/.plugins/org.jboss.ide.eclipse.as.core/JBoss_5.1_Runtime_Server1289983265781/deploy/first.war/WEB-INF/lib/commons-io-1.4.jar], DelegatingHandler@23218488[path=first.war/WEB-INF/lib/commons-lang-2.4.jar context=file:/D:/javaEE/workspace/.metadata/.plugins/org.jboss.ide.eclipse.as.core/JBoss_5.1_Runtime_Server1289983265781/deploy/ real=file:/D:/javaEE/workspace/.metadata/.plugins/org.jboss.ide.eclipse.as.core/JBoss_5.1_Runtime_Server1289983265781/deploy/first.war/WEB-INF/lib/commons-lang-2.4.jar], DelegatingHandler@28646410[path=first.war/WEB-INF/lib/commons-logging-1.1.1.jar context=file:/D:/javaEE/workspace/.metadata/.plugins/org.jboss.ide.eclipse.as.core/JBoss_5.1_Runtime_Server1289983265781/deploy/ real=file:/D:/javaEE/workspace/.metadata/.plugins/org.jboss.ide.eclipse.as.core/JBoss_5.1_Runtime_Server1289983265781/deploy/first.war/WEB-INF/lib/commons-logging-1.1.1.jar], DelegatingHandler@21232737[path=first.war/WEB-INF/lib/cssparser-0.9.5.jar context=file:/D:/javaEE/workspace/.metadata/.plugins/org.jboss.ide.eclipse.as.core/JBoss_5.1_Runtime_Server1289983265781/deploy/ real=file:/D:/javaEE/workspace/.metadata/.plugins/org.jboss.ide.eclipse.as.core/JBoss_5.1_Runtime_Server1289983265781/deploy/first.war/WEB-INF/lib/cssparser-0.9.5.jar], DelegatingHandler@7232382[path=first.war/WEB-INF/lib/htmlunit-2.8.jar context=file:/D:/javaEE/workspace/.metadata/.plugins/org.jboss.ide.eclipse.as.core/JBoss_5.1_Runtime_Server1289983265781/deploy/ real=file:/D:/javaEE/workspace/.metadata/.plugins/org.jboss.ide.eclipse.as.core/JBoss_5.1_Runtime_Server1289983265781/deploy/first.war/WEB-INF/lib/htmlunit-2.8.jar], DelegatingHandler@20501343[path=first.war/WEB-INF/lib/htmlunit-core-js-2.8.jar context=file:/D:/javaEE/workspace/.metadata/.plugins/org.jboss.ide.eclipse.as.core/JBoss_5.1_Runtime_Server1289983265781/deploy/ real=file:/D:/javaEE/workspace/.metadata/.plugins/org.jboss.ide.eclipse.as.core/JBoss_5.1_Runtime_Server1289983265781/deploy/first.war/WEB-INF/lib/htmlunit-core-js-2.8.jar], DelegatingHandler@29166548[path=first.war/WEB-INF/lib/jboss-jsfunit-core-1.3.0.Final.jar context=file:/D:/javaEE/workspace/.metadata/.plugins/org.jboss.ide.eclipse.as.core/JBoss_5.1_Runtime_Server1289983265781/deploy/ real=file:/D:/javaEE/workspace/.metadata/.plugins/org.jboss.ide.eclipse.as.core/JBoss_5.1_Runtime_Server1289983265781/deploy/first.war/WEB-INF/lib/jboss-jsfunit-core-1.3.0.Final.jar], DelegatingHandler@5490870[path=first.war/WEB-INF/lib/junit-3.8.1.jar context=file:/D:/javaEE/workspace/.metadata/.plugins/org.jboss.ide.eclipse.as.core/JBoss_5.1_Runtime_Server1289983265781/deploy/ real=file:/D:/javaEE/workspace/.metadata/.plugins/org.jboss.ide.eclipse.as.core/JBoss_5.1_Runtime_Server1289983265781/deploy/first.war/WEB-INF/lib/junit-3.8.1.jar], DelegatingHandler@10367809[path=first.war/WEB-INF/lib/nekohtml-1.9.14.jar context=file:/D:/javaEE/workspace/.metadata/.plugins/org.jboss.ide.eclipse.as.core/JBoss_5.1_Runtime_Server1289983265781/deploy/ real=file:/D:/javaEE/workspace/.metadata/.plugins/org.jboss.ide.eclipse.as.core/JBoss_5.1_Runtime_Server1289983265781/deploy/first.war/WEB-INF/lib/nekohtml-1.9.14.jar], DelegatingHandler@3608971[path=first.war/WEB-INF/lib/richfaces-api-3.2.2.GA.jar context=file:/D:/javaEE/workspace/.metadata/.plugins/org.jboss.ide.eclipse.as.core/JBoss_5.1_Runtime_Server1289983265781/deploy/ real=file:/D:/javaEE/workspace/.metadata/.plugins/org.jboss.ide.eclipse.as.core/JBoss_5.1_Runtime_Server1289983265781/deploy/first.war/WEB-INF/lib/richfaces-api-3.2.2.GA.jar], DelegatingHandler@23127768[path=first.war/WEB-INF/lib/richfaces-impl-3.2.2.GA.jar context=file:/D:/javaEE/workspace/.metadata/.plugins/org.jboss.ide.eclipse.as.core/JBoss_5.1_Runtime_Server1289983265781/deploy/ real=file:/D:/javaEE/workspace/.metadata/.plugins/org.jboss.ide.eclipse.as.core/JBoss_5.1_Runtime_Server1289983265781/deploy/first.war/WEB-INF/lib/richfaces-impl-3.2.2.GA.jar], DelegatingHandler@13860345[path=first.war/WEB-INF/lib/richfaces-ui-3.2.2.GA.jar context=file:/D:/javaEE/workspace/.metadata/.plugins/org.jboss.ide.eclipse.as.core/JBoss_5.1_Runtime_Server1289983265781/deploy/ real=file:/D:/javaEE/workspace/.metadata/.plugins/org.jboss.ide.eclipse.as.core/JBoss_5.1_Runtime_Server1289983265781/deploy/first.war/WEB-INF/lib/richfaces-ui-3.2.2.GA.jar], DelegatingHandler@15960508[path=first.war/WEB-INF/lib/sac-1.3.jar context=file:/D:/javaEE/workspace/.metadata/.plugins/org.jboss.ide.eclipse.as.core/JBoss_5.1_Runtime_Server1289983265781/deploy/ real=file:/D:/javaEE/workspace/.metadata/.plugins/org.jboss.ide.eclipse.as.core/JBoss_5.1_Runtime_Server1289983265781/deploy/first.war/WEB-INF/lib/sac-1.3.jar], DelegatingHandler@14131824[path=first.war/WEB-INF/lib/standard.jar context=file:/D:/javaEE/workspace/.metadata/.plugins/org.jboss.ide.eclipse.as.core/JBoss_5.1_Runtime_Server1289983265781/deploy/ real=file:/D:/javaEE/workspace/.metadata/.plugins/org.jboss.ide.eclipse.as.core/JBoss_5.1_Runtime_Server1289983265781/deploy/first.war/WEB-INF/lib/standard.jar]] delegates=null exported=[, org.codehaus.cargo.container.installer, org.richfaces.webapp.taglib, org.codehaus.cargo.module.webapp.orion, org.apache.cactus.server.runner, org.apache.cactus.integration.ant.deployment.application, com.gargoylesoftware.htmlunit.attachment, org.apache.tools.ant.taskdefs, org.apache.commons.beanutils.locale.converters, META-INF.maven.org.richfaces.ui.togglePanel, META-INF.maven.net.sourceforge.htmlunit.htmlunit, net.sourceforge.htmlunit.corejs.javascript.serialize, org.richfaces.renderkit.html.scripts.dnd, org.apache.taglibs.standard.tag.rt.core, net.sourceforge.htmlunit.corejs.javascript, org.ajax4jsf.org.w3c.tidy, META-INF.maven.org.richfaces.ui.inputnumber-slider, org.codehaus.cargo.container.internal.resources.weblogic8x, org.apache.cactus.integration.ant.container.orion, org.apache.cactus.integration.ant.container.resources.orion2x.ear, org.ajax4jsf.taglib.html.jsp, org.apache.tools.ant.helper, META-INF.resources.jsfunit, org.apache.taglibs.standard.tag.common.fmt, org.apache.taglibs.standard.lang.support, META-INF.maven.org.richfaces.ui.tabPanel, org.ajax4jsf, org.apache.commons.lang.enum, junit.runner, org.apache.commons.lang, META-INF.maven.org.richfaces.ui.menu-components, org.apache.commons.digester, org.codehaus.cargo.container.internal.resources.jo1x, org.richfaces.renderkit.html.scripts.json, org.apache.commons.lang.text, org.apache.cactus.internal.client, org.aspectj.runtime.internal, org.apache.taglibs.standard.lang.jstl.parser, org.ajax4jsf.resource, META-INF.maven.org.jboss.jsfunit.jboss-jsfunit-core, org.apache.tools.bzip2, org.apache.taglibs.standard.resources, org.richfaces.ui.component, org.apache.taglibs.standard.tag.el.sql, org.apache.commons.collections.functors, com.gargoylesoftware.htmlunit.xml, META-INF.skins, META-INF.maven.org.richfaces.ui.hotKey, org.apache.cactus.spi.server, org.codehaus.cargo.container.internal.tomcat, META-INF.services, META-INF.maven.org.richfaces.ui.virtualEarth, org.apache.commons.digester.parser, net.sourceforge.htmlunit.corejs.javascript.debug, org.apache.cactus.integration.ant.deployment.resources, META-INF.maven.org.richfaces.ui.toolBar, org.aspectj.runtime, com.gargoylesoftware.htmlunit.protocol.javascript, junit.awtui, org.apache.tools.ant.taskdefs.cvslib, com.gargoylesoftware.htmlunit.gae, org.apache.taglibs.standard.functions, net.sourceforge.htmlunit.corejs.javascript.xml, org.apache.commons.collections.collection, org.apache.cactus.internal.server.runner, org.cyberneko.html.filters, META-INF.maven.org.richfaces.ui.contextMenu, META-INF.maven.org.richfaces.ui.richfaces-ui, org.apache.cactus.util, org.apache.cactus.client.authentication, org.apache.tools.ant.input, net.sourceforge.htmlunit.corejs.javascript.ast, META-INF.maven.org.richfaces.ui.tree, META-INF.maven.org.richfaces.ui.paint2D, org.codehaus.cargo.ant.tomcat, META-INF.maven.org.richfaces.ui.panelmenu, org.ajax4jsf.context, org.codehaus.cargo.container.property, org.apache.commons.digester.substitution, META-INF.maven.org.richfaces.ui.columns, org.apache.commons.codec.language, org.apache.cactus.integration.ant.container.enhydra, com.gargoylesoftware.htmlunit.javascript.host.canvas, META-INF.maven.org.richfaces.ui.beanValidator, org.apache.commons.beanutils, org.codehaus.cargo.container.configuration, org.jboss.jsfunit.init, org.richfaces.util, org.aspectj.lang, org.apache.cactus.integration.ant.container.resources.resin2x, org.richfaces.component.state, org.codehaus.cargo.ant.weblogic, org.apache.cactus.integration.ant.container.resources.orion2x.share, org.codehaus.cargo.module.ejb, META-INF.maven.org.richfaces.ui.simpleTogglePanel, org.codehaus.cargo.module.ejb.weblogic, org.apache.commons.io, org.codehaus.cargo.util.monitor, org.codehaus.cargo.container.deployable.jboss, org.apache.cactus.integration.ant.container.resources.resin3x, org.apache.taglibs.standard.tag.el.xml, org.ajax4jsf.util.style, META-INF, net.sourceforge.htmlunit.corejs.javascript.annotations, org.richfaces.ui.taglib, META-INF.maven.org.richfaces.ui.core, META-INF.maven.org.richfaces.ui.inplaceSelect, org.codehaus.cargo.container.weblogic, org.apache.cactus.integration.ant.container.weblogic, org.ajax4jsf.resource.image.animatedgif, org.codehaus.cargo.module.application, org.apache.commons.collections.keyvalue, org.codehaus.cargo.container.spi, org.apache.taglibs.standard, org.codehaus.cargo.container.internal.resources.cargocpc.war, org.richfaces.model.filter, org.richfaces.renderkit.html.scripts.scriptaculous, META-INF.maven.org.richfaces.ui.dropdown-menu, com.steadystate.css.userdata, org.richfaces.renderkit.html.script, org.apache.cactus.spi.client.connector, com.gargoylesoftware.htmlunit.ssl, org.richfaces.model.selection, org.apache.taglibs.standard.tag.common.core, META-INF.maven.org.richfaces.ui.spacer, org.richfaces.ui.application, com.gargoylesoftware.htmlunit.html.impl, org.ajax4jsf.event, org.apache.commons.httpclient.methods, org.richfaces.model.internal, org.apache.commons.lang.builder, org.apache.commons.httpclient.params, org.apache.commons.digester.plugins.strategies, org.ajax4jsf.xml.serializer, org.apache.tools.ant.listener, org.apache.taglibs.standard.tag.el.core, org.apache.tools.ant.util.regexp, org.apache.commons.logging.impl, org.codehaus.cargo.module.webapp.tomcat, org.apache.commons.collections, org.apache.taglibs.standard.lang.jstl.test.beans, org.apache.tools.zip, org.cyberneko.html.xercesbridge, net.sourceforge.htmlunit.corejs.javascript.tools.debugger.treetable, org.richfaces.ui.renderkit.html, org.apache.commons.httpclient.protocol, com.gargoylesoftware.htmlunit.javascript.host, org.richfaces.function, org.apache.cactus.integration.ant.container.resources.tomcat5x, org.apache.commons.lang.exception, org.codehaus.cargo.container.internal.jetty, org.richfaces.taglib, org.ajax4jsf.renderkit.html, org.apache.commons.collections.set, META-INF.maven.org.richfaces.ui.fileUpload, org.apache.taglibs.standard.tei, org.richfaces.event, META-INF.maven.org.richfaces.ui.orderingList, org.ajax4jsf.model, org.richfaces.event.extdt, org.richfaces.renderkit.html.templates, org.apache.cactus.integration.ant.container.resources.tomcat4x, org.richfaces.ui.component.html, org.codehaus.cargo.ant.orion, org.richfaces.model.impl.expressive, org.apache.cactus.util.log, org.codehaus.cargo.container.internal.resin, org.apache.taglibs.standard.tlv, org.apache.commons.httpclient.cookie, net.sourceforge.htmlunit.corejs.javascript.json, META-INF.maven.org.richfaces.framework.richfaces-api, org.ajax4jsf.javascript.scripts, org.codehaus.cargo.module.webapp, org.apache.tools.ant.types.selectors, org.apache.taglibs.standard.tag.rt.fmt, org.richfaces.json, org.apache.commons.codec.net, org.apache.cactus.integration.ant.container.tomcat, org.apache.taglibs.standard.lang.jstl, org.ajax4jsf.ajax, org.apache.cactus.server, org.apache.cactus.integration.ant.container.resources.tomcat3x, org.ajax4jsf.css, org.richfaces.renderkit.html.swf, org.codehaus.cargo.container.internal.resources.resin2x, META-INF.maven.org.richfaces.ui.jQuery, org.richfaces.el, org.apache.commons.lang.math, org.jboss.jsfunit.framework, org.apache.commons.collections.comparators, org.apache.commons.lang.enums, org.richfaces.renderkit.html.images, META-INF.maven.org.richfaces.ui.state, org.codehaus.cargo.ant.jo, org.codehaus.cargo.container.internal.resources.resin3x, org.richfaces.skin, org.codehaus.cargo.container.deployable, org.richfaces.renderkit, com.steadystate.css.sac, com.gargoylesoftware.htmlunit.html.xpath, com.gargoylesoftware.htmlunit.util, com.gargoylesoftware.htmlunit.javascript.regexp, org.ajax4jsf.io.parser, org.apache.taglibs.standard.tag.common.xml, org.apache.commons.io.input, org.richfaces.renderkit.html.scripts, org.apache.tools.ant.taskdefs.rmic, org.richfaces.renderkit.html.css, org.apache.tools.ant, org.codehaus.cargo.container.deployer, org.richfaces.renderkit.html, net.sourceforge.htmlunit.corejs.javascript.tools, org.richfaces.iterator, org.apache.cactus.integration.ant.container.jboss, org.cyberneko.html.res, org.codehaus.cargo.module.webapp.websphere, org.codehaus.cargo.module.internal.resource, org.apache.tools.ant.util.facade, org.codehaus.cargo.container.internal.orion, META-INF.maven.org.richfaces.ui.treeModel, META-INF.maven.org.richfaces.ui.componentControl, org.w3c.css.sac, META-INF.maven.commons-logging.commons-logging, org.apache.commons.codec.binary, org.apache.commons.digester.plugins, org.apache.commons.beanutils.converters, org.codehaus.cargo.container.internal.jo, org.codehaus.cargo.container.resin, com.gargoylesoftware.htmlunit.javascript.host.html, org.apache.taglibs.standard.tag.common.sql, META-INF.maven.org.richfaces.ui.insert, net.sourceforge.htmlunit.corejs.classfile, org.w3c.css.sac.helpers, org.apache.commons.collections.list, org.apache.cactus.extension.jetty, org.jboss.jsfunit.context, org.ajax4jsf.util.base64, org.richfaces.renderkit.html.scripts.jquery, junit.swingui, org.jboss.jsfunit.jsfsession, org.first, com.gargoylesoftware.htmlunit, org.apache.commons.httpclient.auth, org.codehaus.cargo.util, org.apache.commons.codec, org.apache.cactus.integration.ant.container.resin, org.richfaces.renderkit.html.images.background, org.ajax4jsf.webapp.tidy, com.gargoylesoftware.htmlunit.javascript, net.sourceforge.htmlunit.corejs.javascript.resources, net.sourceforge.htmlunit.corejs.javascript.regexp, junit.textui, org.apache.commons.io.filefilter, org.richfaces.event.sort, org.apache.commons.io.output, net.sourceforge.htmlunit.corejs.javascript.tools.debugger.downloaded, org.ajax4jsf.request, org.ajax4jsf.component.html, org.jboss.jsfunit.seam, org.ajax4jsf.javascript, org.codehaus.cargo.container.internal.resources.orion1x2x, org.ajax4jsf.io, net.sourceforge.htmlunit.corejs.javascript.tools.shell, com.gargoylesoftware.htmlunit.javascript.host.xml, org.apache.cactus.internal.server, org.apache.cactus.internal, org.apache.cactus.integration.ant, org.apache.cactus.integration.ant.container, org.richfaces.model.impl, org.richfaces.model, org.codehaus.cargo.container, org.codehaus.cargo.module.ejb.orion, org.apache.commons.collections.map, org.codehaus.cargo.container.deployable.tomcat, org.codehaus.cargo.container.internal.util, org.codehaus.cargo.container.jetty, org.apache.commons.httpclient.util, net.sourceforge.htmlunit.corejs.javascript.jdk13, org.apache.taglibs.standard.tag.rt.xml, net.sourceforge.htmlunit.corejs.javascript.jdk15, org.ajax4jsf.renderkit, junit.swingui.icons, org.aspectj.lang.reflect, org.apache.cactus.integration.ant.container.resources.orion1x.share, net.sourceforge.htmlunit.corejs.javascript.tools.debugger, META-INF.maven.org.richfaces.ui.progressBar, META-INF.maven.commons-lang.commons-lang, org.apache.cactus, org.ajax4jsf.resource.image, org.apache.taglibs.standard.tag.el.fmt, org.apache.cactus.internal.client.connector.http, org.ajax4jsf.taglib.html.facelets, META-INF.maven.org.richfaces.ui.inputnumber-spinner, org.codehaus.cargo.module, META-INF.maven.commons-io.commons-io, junit.extensions, org.apache.commons.collections.iterators, META-INF.maven.org.richfaces.ui.combobox, org.apache.tools.ant.util, org.apache.tools.ant.filters, org.aspectj.runtime.reflect, com.gargoylesoftware.htmlunit.html, META-INF.maven.commons-collections.commons-collections, META-INF.maven.org.richfaces.ui.modal-panel, org.apache.cactus.integration.ant.container.resources.orion1x.war, META-INF.maven.org.richfaces.framework.richfaces-impl, org.ajax4jsf.cache, org.cyberneko.html, org.richfaces.renderkit.html.js, org.richfaces.javacc, org.richfaces.utils, com.steadystate.css.parser, org.ajax4jsf.util, org.apache.cactus.spi.client, org.richfaces.component.state.events, META-INF.maven.org.richfaces.ui.separator, org.richfaces.component.util, org.richfaces.renderkit.html.gradientimages, org.cyberneko.html.parsers, junit.framework, org.apache.commons.collections.bag, org.richfaces.component.nsutils, org.codehaus.cargo.container.jo, org.richfaces.renderkit.images, org.ajax4jsf.exception, org.codehaus.cargo.container.internal.resources.cargocpc.war.WEB-INF, META-INF.maven.org.richfaces.ui.gmap, org.codehaus.cargo.container.tomcat, org.codehaus.cargo.ant.resin, org.apache.commons.httpclient.methods.multipart, org.ajax4jsf.webapp, org.apache.cactus.integration.ant.container.resources.orion2x.war, org.apache.taglibs.standard.tag.rt.sql, org.codehaus.cargo.module.webapp.jboss, org.codehaus.cargo.ant, META-INF.maven.org.richfaces.ui.scrollableDataTable, org.apache.taglibs.standard.lang.jstl.test, org.apache.commons.beanutils.locale, org.aspectj.runtime.internal.cflowstack, org.richfaces.taglib.html.jsp, org.apache.cactus.internal.util, org.apache.tools.tar, META-INF.maven.org.richfaces.ui.suggestionbox, org.ajax4jsf.renderkit.compiler, org.ajax4jsf.resource.util, org.apache.cactus.integration.ant.util, META-INF.maven.org.richfaces.ui.extendedDataTable, com.trend.iwss.jscan.runtime, org.codehaus.cargo.container.internal.weblogic, org.apache.tools.mail, org.ajax4jsf.webapp.taglib, org.apache.tools.ant.taskdefs.condition, org.apache.cactus.integration.ant.deployment.webapp, org.apache.tools.ant.types, com.gargoylesoftware.htmlunit.javascript.host.css, META-INF.maven.org.richfaces.ui.datascroller, org.apache.cactus.integration.ant.deployment, org.richfaces.convert.selection, com.gargoylesoftware.htmlunit.javascript.configuration, org.codehaus.cargo.container.internal.resources.tomcat3x, org.richfaces.component.xml, META-INF.maven.org.richfaces.ui.dataFilterSlider, META-INF.maven.org.richfaces.ui.inplaceInput, org.apache.cactus.extension.jsp, org.apache.taglibs.standard.extra.spath, org.apache.tools.ant.taskdefs.email, org.richfaces.component.html, META-INF.maven.org.richfaces.ui.pickList, org.apache.cactus.integration.ant.container.resources.orion1x.ear, org.apache.commons.collections.bidimap, com.gargoylesoftware.htmlunit.javascript.background, org.codehaus.cargo.container.internal.resources.tomcat4x, META-INF.maven.org.richfaces.ui.dataTable, org.apache.commons.lang.mutable, org.apache.commons.httpclient, org.richfaces.ui.model, META-INF.maven.org.richfaces.ui.effect, META-INF.maven.net.sourceforge.cssparser.cssparser, org.codehaus.cargo.container.internal.resources.tomcat5x, org.codehaus.cargo.module.webapp.weblogic, org.codehaus.cargo.container.internal, org.ajax4jsf.resource.cached, META-INF.maven.org.richfaces.ui.functions, META-INF.maven.org.richfaces.ui.calendar, META-INF.maven.org.richfaces.ui.listShuttle, org.apache.commons.collections.buffer, org.apache.commons.lang.time, images, org.codehaus.cargo.module.ejb.websphere, org.ajax4jsf.config, META-INF.maven.org.richfaces.ui.panelbar, org.apache.cactus.integration.ant.container.resources.weblogic6x, com.gargoylesoftware.htmlunit.html.applets, org.apache.commons.digester.xmlrules, org.apache.commons.codec.digest, org.richfaces.validator, org.ajax4jsf.application, com.steadystate.css.parser.selectors, org.richfaces.component.events, org.apache.commons.io.comparator, org.codehaus.cargo.container.orion, com.gargoylesoftware.htmlunit.protocol.data, META-INF.maven.org.richfaces.ui.tooltip, net.sourceforge.htmlunit.corejs.javascript.optimizer, org.apache.tools.ant.taskdefs.compilers, org.ajax4jsf.webapp.nekko, com.steadystate.css.dom, org.apache.tools.ant.filters.util, org.ajax4jsf.component, org.richfaces.renderkit.html.iconimages, org.apache.cactus.integration.ant.container.resources.weblogic7x, org.richfaces.event.scroll, com.gargoylesoftware.htmlunit.protocol.about, org.apache.cactus.internal.configuration, org.richfaces.component, META-INF.maven.org.richfaces.ui.panel, META-INF.maven.org.richfaces.ui.message, org.ajax4jsf.xml.serializer.utils, org.richfaces.convert.rowkey, META-INF.maven.org.richfaces.ui.drag-drop, org.richfaces.ui.renderkit.html.css, org.richfaces] IMPORT-ALLNON_EMPTY}}at org.jboss.classloader.spi.base.BaseClassLoader.loadClass(BaseClassLoader.java:448)at java.lang.ClassLoader.loadClass(Unknown Source)at java.lang.ClassLoader.loadClassInternal(Unknown Source)... 50 more

    this is my first time to use jsfunit. i read the document for two days ,but i still finish it ...i don't know where i was wrong..

    sorry ,my english is poor ,i can't express good..can you stand me?? thanks.


    DB:2.43:I Hava A Problem In Jsfunit 1j


    That's very strange. I've never seen an applet alert with JSFUnit. JSFUnit does not use an applet, so I assume that must be coming from Eclipse. Maybe you should try to deploy your WAR manually and then run from your browser instead of Eclipse.

    Stan

  • RELEVANCY SCORE 2.40

    DB:2.40:Suggestionbox Jsfunit 1.2 Exception Invoking Jsxfunction_Send mx



    Hi everybody!

    I used JSFUnit for 1 year. It's great library!

    I have a problem with a JSFUnit test on a RichFace suggestionBox. I got this error :

    Exception invoking jsxFunction_send

    ======= EXCEPTION START ========

    Exception class=[java.lang.RuntimeException]

    com.gargoylesoftware.htmlunit.ScriptException: Exception invoking jsxFunction_send

    at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine$HtmlUnitContextAction.run(JavaScriptEngine.java:527)

    at net.sourceforge.htmlunit.corejs.javascript.Context.call(Context.java:537)

    at net.sourceforge.htmlunit.corejs.javascript.ContextFactory.call(ContextFactory.java:538)

    at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine.callFunction(JavaScriptEngine.java:457)

    at com.gargoylesoftware.htmlunit.html.HtmlPage.executeJavaScriptFunctionIfPossible(HtmlPage.java:910)

    at com.gargoylesoftware.htmlunit.javascript.host.EventListenersContainer.executeEventListeners(EventListenersContainer.java:159)

    at com.gargoylesoftware.htmlunit.javascript.host.EventListenersContainer.executeBubblingListeners(EventListenersContainer.java:216)

    at com.gargoylesoftware.htmlunit.javascript.host.Node.fireEvent(Node.java:645)

    at com.gargoylesoftware.htmlunit.html.HtmlElement$2.run(HtmlElement.java:887)

    at net.sourceforge.htmlunit.corejs.javascript.Context.call(Context.java:537)

    at net.sourceforge.htmlunit.corejs.javascript.ContextFactory.call(ContextFactory.java:538)

    at com.gargoylesoftware.htmlunit.html.HtmlElement.fireEvent(HtmlElement.java:892)

    at com.gargoylesoftware.htmlunit.html.HtmlElement.click(HtmlElement.java:1248)

    at com.gargoylesoftware.htmlunit.html.HtmlElement.click(HtmlElement.java:1212)

    at com.gargoylesoftware.htmlunit.html.HtmlElement.click(HtmlElement.java:1179)

    at org.jboss.jsfunit.jsfsession.JSFClientSession.click(JSFClientSession.java:225)

    at fr.ipsofacto.smiles.test.NavigatorJSFUnit.click(NavigatorJSFUnit.java:127)

    at fr.ipsofacto.smiles.test.SocieteTest.testSocieteAjoutContact(SocieteTest.java:317)

    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)

    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)

    at org.apache.cactus.internal.AbstractCactusTestCase.runBareServer(AbstractCactusTestCase.java:153)

    at org.apache.cactus.internal.server.AbstractWebTestCaller.doTest(AbstractWebTestCaller.java:119)

    at org.apache.cactus.internal.server.AbstractWebTestController.handleRequest_aroundBody0(AbstractWebTestController.java:93)

    at org.apache.cactus.internal.server.AbstractWebTestController.handleRequest_aroundBody1$advice(AbstractWebTestController.java:224)

    at org.apache.cactus.internal.server.AbstractWebTestController.handleRequest(AbstractWebTestController.java)

    at org.apache.cactus.server.ServletTestRedirector.doPost_aroundBody2(ServletTestRedirector.java:101)

    at org.apache.cactus.server.ServletTestRedirector.doPost_aroundBody3$advice(ServletTestRedirector.java:224)

    at org.apache.cactus.server.ServletTestRedirector.doPost(ServletTestRedirector.java)

    at org.jboss.jsfunit.framework.JSFUnitServletRedirector.doPost(JSFUnitServletRedirector.java:46)

    at org.apache.cactus.server.ServletTestRedirector.doGet_aroundBody0(ServletTestRedirector.java:72)

    at org.apache.cactus.server.ServletTestRedirector.doGet_aroundBody1$advice(ServletTestRedirector.java:224)

    at org.apache.cactus.server.ServletTestRedirector.doGet(ServletTestRedirector.java)

    at org.jboss.jsfunit.framework.JSFUnitServletRedirector.doGet(JSFUnitServletRedirector.java:52)

    at javax.servlet.http.HttpServlet.service(HttpServlet.java:734)

    at javax.servlet.http.HttpServlet.service(HttpServlet.java:847)

    at org.apache.catalina.core.ApplicationFilterChain.servletService(ApplicationFilterChain.java:427)

    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:333)

    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:214)

    at org.jboss.jsfunit.framework.JSFUnitFilter.doFilter(JSFUnitFilter.java:119)

    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:246)

    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:214)

    at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:313)

    at org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:287)

    at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:218)

    at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:648)

    at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:593)

    at com.sun.enterprise.web.WebPipeline.invoke(WebPipeline.java:94)

    at com.sun.enterprise.web.PESessionLockingStandardPipeline.invoke(PESessionLockingStandardPipeline.java:98)

    at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:222)

    at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:648)

    at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:593)

    at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:587)

    at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:1096)

    at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:166)

    at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:648)

    at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:593)

    at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:587)

    at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:1096)

    at org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:288)

    at com.sun.enterprise.web.connector.grizzly.DefaultProcessorTask.invokeAdapter(DefaultProcessorTask.java:647)

    at com.sun.enterprise.web.connector.grizzly.comet.CometEngine.executeServlet(CometEngine.java:609)

    at com.sun.enterprise.web.connector.grizzly.comet.CometEngine.handle(CometEngine.java:356)

    at com.sun.enterprise.web.connector.grizzly.comet.CometAsyncFilter.doFilter(CometAsyncFilter.java:84)

    at com.sun.enterprise.web.connector.grizzly.async.DefaultAsyncExecutor.invokeFilters(DefaultAsyncExecutor.java:175)

    at com.sun.enterprise.web.connector.grizzly.async.DefaultAsyncExecutor.interrupt(DefaultAsyncExecutor.java:153)

    at com.sun.enterprise.web.connector.grizzly.async.AsyncProcessorTask.doTask(AsyncProcessorTask.java:92)

    at com.sun.enterprise.web.connector.grizzly.TaskBase.run(TaskBase.java:265)

    at com.sun.enterprise.web.connector.grizzly.ssl.SSLWorkerThread.run(SSLWorkerThread.java:106)

    Caused by: java.lang.RuntimeException: Exception invoking jsxFunction_send

    at net.sourceforge.htmlunit.corejs.javascript.MemberBox.invoke(MemberBox.java:190)

    at net.sourceforge.htmlunit.corejs.javascript.FunctionObject.call(FunctionObject.java:479)

    at net.sourceforge.htmlunit.corejs.javascript.Interpreter.interpretLoop(Interpreter.java:1702)

    at net.sourceforge.htmlunit.corejs.javascript.Interpreter.interpret(Interpreter.java:845)

    at net.sourceforge.htmlunit.corejs.javascript.InterpretedFunction.call(InterpretedFunction.java:164)

    at net.sourceforge.htmlunit.corejs.javascript.ContextFactory.doTopCall(ContextFactory.java:429)

    at com.gargoylesoftware.htmlunit.javascript.HtmlUnitContextFactory.doTopCall(HtmlUnitContextFactory.java:264)

    at net.sourceforge.htmlunit.corejs.javascript.ScriptRuntime.doTopCall(ScriptRuntime.java:3157)

    at net.sourceforge.htmlunit.corejs.javascript.InterpretedFunction.call(InterpretedFunction.java:162)

    at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine.callFunction(JavaScriptEngine.java:485)

    at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine$4.doRun(JavaScriptEngine.java:450)

    at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine$HtmlUnitContextAction.run(JavaScriptEngine.java:521)

    ... 71 more

    Caused by: java.lang.RuntimeException: Exception invoking jsxGet_responseXML

    at net.sourceforge.htmlunit.corejs.javascript.MemberBox.invoke(MemberBox.java:190)

    at net.sourceforge.htmlunit.corejs.javascript.ScriptableObject.getImpl(ScriptableObject.java:2363)

    at net.sourceforge.htmlunit.corejs.javascript.ScriptableObject.get(ScriptableObject.java:328)

    at com.gargoylesoftware.htmlunit.javascript.SimpleScriptable.get(SimpleScriptable.java:74)

    at com.gargoylesoftware.htmlunit.javascript.host.xml.XMLHttpRequest.get(XMLHttpRequest.java:547)

    at net.sourceforge.htmlunit.corejs.javascript.ScriptableObject.getProperty(ScriptableObject.java:1963)

    at net.sourceforge.htmlunit.corejs.javascript.ScriptRuntime.getObjectPropNoWarn(ScriptRuntime.java:1526)

    at net.sourceforge.htmlunit.corejs.javascript.Interpreter.interpretLoop(Interpreter.java:1393)

    at net.sourceforge.htmlunit.corejs.javascript.Interpreter.interpret(Interpreter.java:845)

    at net.sourceforge.htmlunit.corejs.javascript.InterpretedFunction.call(InterpretedFunction.java:164)

    at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine.callFunction(JavaScriptEngine.java:485)

    at com.gargoylesoftware.htmlunit.javascript.host.xml.XMLHttpRequest.setState(XMLHttpRequest.java:171)

    at com.gargoylesoftware.htmlunit.javascript.host.xml.XMLHttpRequest.doSend(XMLHttpRequest.java:498)

    at com.gargoylesoftware.htmlunit.javascript.host.xml.XMLHttpRequest.jsxFunction_send(XMLHttpRequest.java:431)

    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)

    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)

    at net.sourceforge.htmlunit.corejs.javascript.MemberBox.invoke(MemberBox.java:164)

    ... 82 more

    Caused by: java.lang.ClassCastException: com.gargoylesoftware.htmlunit.xml.XmlPage cannot be cast to com.gargoylesoftware.htmlunit.html.HtmlPage

    at com.gargoylesoftware.htmlunit.html.FrameWindow.getEnclosingPage(FrameWindow.java:92)

    at com.gargoylesoftware.htmlunit.WebClient$CurrentWindowTracker.webWindowContentChanged(WebClient.java:1836)

    at com.gargoylesoftware.htmlunit.WebClient.fireWindowContentChanged(WebClient.java:845)

    at com.gargoylesoftware.htmlunit.WebClient.loadWebResponseInto(WebClient.java:423)

    at com.gargoylesoftware.htmlunit.WebClient.getPage(WebClient.java:303)

    at com.gargoylesoftware.htmlunit.html.BaseFrame.init(BaseFrame.java:71)

    at com.gargoylesoftware.htmlunit.html.HtmlInlineFrame.init(HtmlInlineFrame.java:48)

    at com.gargoylesoftware.htmlunit.html.DefaultElementFactory.createElementNS(DefaultElementFactory.java:231)

    at com.gargoylesoftware.htmlunit.xml.XmlUtil.createFrom(XmlUtil.java:153)

    at com.gargoylesoftware.htmlunit.xml.XmlUtil.copy(XmlUtil.java:209)

    at com.gargoylesoftware.htmlunit.xml.XmlUtil.copy(XmlUtil.java:211)

    at com.gargoylesoftware.htmlunit.xml.XmlUtil.copy(XmlUtil.java:211)

    at com.gargoylesoftware.htmlunit.xml.XmlUtil.copy(XmlUtil.java:211)

    at com.gargoylesoftware.htmlunit.xml.XmlUtil.copy(XmlUtil.java:211)

    at com.gargoylesoftware.htmlunit.xml.XmlUtil.copy(XmlUtil.java:211)

    at com.gargoylesoftware.htmlunit.xml.XmlUtil.appendChild(XmlUtil.java:142)

    at com.gargoylesoftware.htmlunit.xml.XmlPage.init(XmlPage.java:114)

    at com.gargoylesoftware.htmlunit.xml.XmlPage.init(XmlPage.java:72)

    at com.gargoylesoftware.htmlunit.javascript.host.xml.XMLHttpRequest.jsxGet_responseXML(XMLHttpRequest.java:279)

    at sun.reflect.GeneratedMethodAccessor685.invoke(Unknown Source)

    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)

    at net.sourceforge.htmlunit.corejs.javascript.MemberBox.invoke(MemberBox.java:164)

    ... 100 more

    Enclosed exception:

    java.lang.RuntimeException: Exception invoking jsxFunction_send

    at net.sourceforge.htmlunit.corejs.javascript.MemberBox.invoke(MemberBox.java:190)

    at net.sourceforge.htmlunit.corejs.javascript.FunctionObject.call(FunctionObject.java:479)

    at net.sourceforge.htmlunit.corejs.javascript.Interpreter.interpretLoop(Interpreter.java:1702)

    at net.sourceforge.htmlunit.corejs.javascript.Interpreter.interpret(Interpreter.java:845)

    at net.sourceforge.htmlunit.corejs.javascript.InterpretedFunction.call(InterpretedFunction.java:164)

    at net.sourceforge.htmlunit.corejs.javascript.ContextFactory.doTopCall(ContextFactory.java:429)

    at com.gargoylesoftware.htmlunit.javascript.HtmlUnitContextFactory.doTopCall(HtmlUnitContextFactory.java:264)

    at net.sourceforge.htmlunit.corejs.javascript.ScriptRuntime.doTopCall(ScriptRuntime.java:3157)

    at net.sourceforge.htmlunit.corejs.javascript.InterpretedFunction.call(InterpretedFunction.java:162)

    at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine.callFunction(JavaScriptEngine.java:485)

    at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine$4.doRun(JavaScriptEngine.java:450)

    at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine$HtmlUnitContextAction.run(JavaScriptEngine.java:521)

    at net.sourceforge.htmlunit.corejs.javascript.Context.call(Context.java:537)

    at net.sourceforge.htmlunit.corejs.javascript.ContextFactory.call(ContextFactory.java:538)

    at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine.callFunction(JavaScriptEngine.java:457)

    at com.gargoylesoftware.htmlunit.html.HtmlPage.executeJavaScriptFunctionIfPossible(HtmlPage.java:910)

    at com.gargoylesoftware.htmlunit.javascript.host.EventListenersContainer.executeEventListeners(EventListenersContainer.java:159)

    at com.gargoylesoftware.htmlunit.javascript.host.EventListenersContainer.executeBubblingListeners(EventListenersContainer.java:216)

    at com.gargoylesoftware.htmlunit.javascript.host.Node.fireEvent(Node.java:645)

    at com.gargoylesoftware.htmlunit.html.HtmlElement$2.run(HtmlElement.java:887)

    at net.sourceforge.htmlunit.corejs.javascript.Context.call(Context.java:537)

    at net.sourceforge.htmlunit.corejs.javascript.ContextFactory.call(ContextFactory.java:538)

    at com.gargoylesoftware.htmlunit.html.HtmlElement.fireEvent(HtmlElement.java:892)

    at com.gargoylesoftware.htmlunit.html.HtmlElement.click(HtmlElement.java:1248)

    at com.gargoylesoftware.htmlunit.html.HtmlElement.click(HtmlElement.java:1212)

    at com.gargoylesoftware.htmlunit.html.HtmlElement.click(HtmlElement.java:1179)

    at org.jboss.jsfunit.jsfsession.JSFClientSession.click(JSFClientSession.java:225)

    at fr.ipsofacto.smiles.test.NavigatorJSFUnit.click(NavigatorJSFUnit.java:127)

    at fr.ipsofacto.smiles.test.SocieteTest.testSocieteAjoutContact(SocieteTest.java:317)

    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)

    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)

    at org.apache.cactus.internal.AbstractCactusTestCase.runBareServer(AbstractCactusTestCase.java:153)

    at org.apache.cactus.internal.server.AbstractWebTestCaller.doTest(AbstractWebTestCaller.java:119)

    at org.apache.cactus.internal.server.AbstractWebTestController.handleRequest_aroundBody0(AbstractWebTestController.java:93)

    at org.apache.cactus.internal.server.AbstractWebTestController.handleRequest_aroundBody1$advice(AbstractWebTestController.java:224)

    at org.apache.cactus.internal.server.AbstractWebTestController.handleRequest(AbstractWebTestController.java)

    at org.apache.cactus.server.ServletTestRedirector.doPost_aroundBody2(ServletTestRedirector.java:101)

    at org.apache.cactus.server.ServletTestRedirector.doPost_aroundBody3$advice(ServletTestRedirector.java:224)

    at org.apache.cactus.server.ServletTestRedirector.doPost(ServletTestRedirector.java)

    at org.jboss.jsfunit.framework.JSFUnitServletRedirector.doPost(JSFUnitServletRedirector.java:46)

    at org.apache.cactus.server.ServletTestRedirector.doGet_aroundBody0(ServletTestRedirector.java:72)

    at org.apache.cactus.server.ServletTestRedirector.doGet_aroundBody1$advice(ServletTestRedirector.java:224)

    at org.apache.cactus.server.ServletTestRedirector.doGet(ServletTestRedirector.java)

    at org.jboss.jsfunit.framework.JSFUnitServletRedirector.doGet(JSFUnitServletRedirector.java:52)

    at javax.servlet.http.HttpServlet.service(HttpServlet.java:734)

    at javax.servlet.http.HttpServlet.service(HttpServlet.java:847)

    at org.apache.catalina.core.ApplicationFilterChain.servletService(ApplicationFilterChain.java:427)

    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:333)

    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:214)

    at org.jboss.jsfunit.framework.JSFUnitFilter.doFilter(JSFUnitFilter.java:119)

    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:246)

    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:214)

    at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:313)

    at org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:287)

    at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:218)

    at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:648)

    at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:593)

    at com.sun.enterprise.web.WebPipeline.invoke(WebPipeline.java:94)

    at com.sun.enterprise.web.PESessionLockingStandardPipeline.invoke(PESessionLockingStandardPipeline.java:98)

    at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:222)

    at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:648)

    at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:593)

    at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:587)

    at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:1096)

    at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:166)

    at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:648)

    at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:593)

    at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:587)

    at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:1096)

    at org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:288)

    at com.sun.enterprise.web.connector.grizzly.DefaultProcessorTask.invokeAdapter(DefaultProcessorTask.java:647)

    at com.sun.enterprise.web.connector.grizzly.comet.CometEngine.executeServlet(CometEngine.java:609)

    at com.sun.enterprise.web.connector.grizzly.comet.CometEngine.handle(CometEngine.java:356)

    at com.sun.enterprise.web.connector.grizzly.comet.CometAsyncFilter.doFilter(CometAsyncFilter.java:84)

    at com.sun.enterprise.web.connector.grizzly.async.DefaultAsyncExecutor.invokeFilters(DefaultAsyncExecutor.java:175)

    at com.sun.enterprise.web.connector.grizzly.async.DefaultAsyncExecutor.interrupt(DefaultAsyncExecutor.java:153)

    at com.sun.enterprise.web.connector.grizzly.async.AsyncProcessorTask.doTask(AsyncProcessorTask.java:92)

    at com.sun.enterprise.web.connector.grizzly.TaskBase.run(TaskBase.java:265)

    at com.sun.enterprise.web.connector.grizzly.ssl.SSLWorkerThread.run(SSLWorkerThread.java:106)

    Caused by: java.lang.RuntimeException: Exception invoking jsxGet_responseXML

    at net.sourceforge.htmlunit.corejs.javascript.MemberBox.invoke(MemberBox.java:190)

    at net.sourceforge.htmlunit.corejs.javascript.ScriptableObject.getImpl(ScriptableObject.java:2363)

    at net.sourceforge.htmlunit.corejs.javascript.ScriptableObject.get(ScriptableObject.java:328)

    at com.gargoylesoftware.htmlunit.javascript.SimpleScriptable.get(SimpleScriptable.java:74)

    at com.gargoylesoftware.htmlunit.javascript.host.xml.XMLHttpRequest.get(XMLHttpRequest.java:547)

    at net.sourceforge.htmlunit.corejs.javascript.ScriptableObject.getProperty(ScriptableObject.java:1963)

    at net.sourceforge.htmlunit.corejs.javascript.ScriptRuntime.getObjectPropNoWarn(ScriptRuntime.java:1526)

    at net.sourceforge.htmlunit.corejs.javascript.Interpreter.interpretLoop(Interpreter.java:1393)

    at net.sourceforge.htmlunit.corejs.javascript.Interpreter.interpret(Interpreter.java:845)

    at net.sourceforge.htmlunit.corejs.javascript.InterpretedFunction.call(InterpretedFunction.java:164)

    at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine.callFunction(JavaScriptEngine.java:485)

    at com.gargoylesoftware.htmlunit.javascript.host.xml.XMLHttpRequest.setState(XMLHttpRequest.java:171)

    at com.gargoylesoftware.htmlunit.javascript.host.xml.XMLHttpRequest.doSend(XMLHttpRequest.java:498)

    at com.gargoylesoftware.htmlunit.javascript.host.xml.XMLHttpRequest.jsxFunction_send(XMLHttpRequest.java:431)

    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)

    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)

    at net.sourceforge.htmlunit.corejs.javascript.MemberBox.invoke(MemberBox.java:164)

    ... 82 more

    Caused by: java.lang.ClassCastException: com.gargoylesoftware.htmlunit.xml.XmlPage cannot be cast to com.gargoylesoftware.htmlunit.html.HtmlPage

    at com.gargoylesoftware.htmlunit.html.FrameWindow.getEnclosingPage(FrameWindow.java:92)

    at com.gargoylesoftware.htmlunit.WebClient$CurrentWindowTracker.webWindowContentChanged(WebClient.java:1836)

    at com.gargoylesoftware.htmlunit.WebClient.fireWindowContentChanged(WebClient.java:845)

    at com.gargoylesoftware.htmlunit.WebClient.loadWebResponseInto(WebClient.java:423)

    at com.gargoylesoftware.htmlunit.WebClient.getPage(WebClient.java:303)

    at com.gargoylesoftware.htmlunit.html.BaseFrame.init(BaseFrame.java:71)

    at com.gargoylesoftware.htmlunit.html.HtmlInlineFrame.init(HtmlInlineFrame.java:48)

    at com.gargoylesoftware.htmlunit.html.DefaultElementFactory.createElementNS(DefaultElementFactory.java:231)

    at com.gargoylesoftware.htmlunit.xml.XmlUtil.createFrom(XmlUtil.java:153)

    at com.gargoylesoftware.htmlunit.xml.XmlUtil.copy(XmlUtil.java:209)

    at com.gargoylesoftware.htmlunit.xml.XmlUtil.copy(XmlUtil.java:211)

    at com.gargoylesoftware.htmlunit.xml.XmlUtil.copy(XmlUtil.java:211)

    at com.gargoylesoftware.htmlunit.xml.XmlUtil.copy(XmlUtil.java:211)

    at com.gargoylesoftware.htmlunit.xml.XmlUtil.copy(XmlUtil.java:211)

    at com.gargoylesoftware.htmlunit.xml.XmlUtil.copy(XmlUtil.java:211)

    at com.gargoylesoftware.htmlunit.xml.XmlUtil.appendChild(XmlUtil.java:142)

    at com.gargoylesoftware.htmlunit.xml.XmlPage.init(XmlPage.java:114)

    at com.gargoylesoftware.htmlunit.xml.XmlPage.init(XmlPage.java:72)

    at com.gargoylesoftware.htmlunit.javascript.host.xml.XMLHttpRequest.jsxGet_responseXML(XMLHttpRequest.java:279)

    at sun.reflect.GeneratedMethodAccessor685.invoke(Unknown Source)

    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)

    at net.sourceforge.htmlunit.corejs.javascript.MemberBox.invoke(MemberBox.java:164)

    ... 100 more

    == CALLING JAVASCRIPT ==

    function (event) {

    if (!Event || !Event.extend || (event.eventName event.eventName != eventName)) {

    return false;

    }

    Event.extend(event);

    handler.call(element, event);

    }

    ======= EXCEPTION END ========

    I tried to switch from JSFUnit 1.1 to 1.2. I read before this discussion http://community.jboss.org/thread/147729?tstart=0

    and I also switched to HTMLUnit 2.8 SNAPSHOT (the build 1719) but now i got this error:

    java.lang.AbstractMethodError: org.jboss.jsfunit.framework.JSFUnitWebConnection.getResponse(Lcom/gargoylesoftware/htmlunit/WebRequest;)Lcom/gargoylesoftware/htmlunit/WebResponse;

    I don't understand what happen. I made the same test manually and everything was ok.So, i think there is something wrong with JSFUnit or HTMLUnit 2.7 / 2.8(build 1719). Following is my library list :

    ant-1.5.4.jaraspectjrt-1.2.1.jarcactus-13-1.7.1.jarcactus-ant-13-1.7.1.jarcargo-0.5.jarcommons-codec-1.4.jarcommons-collections-3.2.1.jarcommons-httpclient-3.1.jarcommons-io-1.4.jarcommons-lang-2.4.jarcommons-logging-1.1.1.jarcssparser-0.9.5.jarhtmlunit-2.7.jarhtmlunit-core-js-2.7.jarjboss-jsfunit-analysis-1.2.0.Final.jarjboss-jsfunit-ant-1.2.0.Final.jarjboss-jsfunit-core-1.2.0.Final.jarjboss-jsfunit-richfaces-1.2.0.Final.jarjunit-3.8.1.jarnekohtml-1.9.14.jarsac-1.3.jarserializer-2.7.1.jarxalan-2.7.1.jarxercesImpl-2.9.1.jarxml-apis-1.3.04.jar

    Thanks for your help.

    DB:2.40:Suggestionbox Jsfunit 1.2 Exception Invoking Jsxfunction_Send mx


    Hi Stan,

    I'll try to download the same HTMLUnit version from Andrew. And wait with impatience the next version of JSFUnit 1.3.

    Thanks for your answer.

  • RELEVANCY SCORE 2.35

    DB:2.35:Htmlunit And Xmlhttprequest m1


    hey
    how r u?
    I need help in useing xmlhttprequest class
    i want to create this code:
    //-------------------------------------------
    String method=new String("POST");
    String url1=new String
    ("http://www.getit.co.il/ie2/XMLServer_New.asp");
    boolean bo=true;

    XMLHttpRequest xmlhttp=new XMLHttpRequest();

    xmlhttp.jsxFunction_open(method,url1,bo,null,null);
    xmlhttp.jsxFunction_send(xmlRequest);
    //-------------------------------------------

    And im getting the Exception:

    java.lang.RuntimeException: Unable to find window
    associated with
    com.gargoylesoftware.htmlunit.javascript.host.XMLHttpReques
    t@14b7453
    at
    com.gargoylesoftware.htmlunit.javascript.SimpleScriptable.g
    etWindow(SimpleScriptable.java:541)

    please help!!!!!!!!!!

    alon

    DB:2.35:Htmlunit And Xmlhttprequest m1

    hey
    how r u?
    I need help in useing xmlhttprequest class
    i want to create this code:
    //-------------------------------------------
    String method=new String("POST");
    String url1=new String
    ("http://www.getit.co.il/ie2/XMLServer_New.asp");
    boolean bo=true;

    XMLHttpRequest xmlhttp=new XMLHttpRequest();

    xmlhttp.jsxFunction_open(method,url1,bo,null,null);
    xmlhttp.jsxFunction_send(xmlRequest);
    //-------------------------------------------

    And im getting the Exception:

    java.lang.RuntimeException: Unable to find window
    associated with
    com.gargoylesoftware.htmlunit.javascript.host.XMLHttpReques
    t@14b7453
    at
    com.gargoylesoftware.htmlunit.javascript.SimpleScriptable.g
    etWindow(SimpleScriptable.java:541)

    please help!!!!!!!!!!

    alon

  • RELEVANCY SCORE 2.35

    DB:2.35:Jsfunit2 Disable Javascript Processing On Htmlunit m1



    Using JSFUnit2, how can I disable Javascript processing on WebClient on embedded HttpUnit. I tried with old jsfunit 1.3 style code to get hold of WebClientSpec and disable JS but that did not work with jsfunit2 / Arquillian

    With pure JSFUnit 2 test can we get hold of HttpUnit objects to enable/disable its features?

    P.S. I'm getting following errors while getting the page (using FF browser annotation):

    EcmaError: lineNumber=[4086] column=[0] lineSource=[no source] name=[TypeError] sourceName=[script in http://localhost:9090/test/index.jsf?_nkw=ipod from (948, 106) to (12907, 10)] message=[TypeError: Object's getDefaultValue() method returned an object. (script in http://localhost:9090/test/index.jsf?_nkw=ipod from (948, 106) to (12907, 10)#4086)]

    com.gargoylesoftware.htmlunit.ScriptException: TypeError: Object's getDefaultValue() method returned an object.

    With default browser, error is this

    Caused by: java.io.WriteAbortedException: writing aborted; java.io.NotSerializableException: com.gargoylesoftware.htmlunit.javascript.background.JavaScriptFunctionJob

    at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1332)

    DB:2.35:Jsfunit2 Disable Javascript Processing On Htmlunit m1


    You should be able to disable javascript using the old JSFUnit 1.3 code instead of using the annotations. I can't think of any reason why this would not work. It does bring to mind that we probably need a @JSFUnitFactory annotation that allows you to further customize the JSFSession before it is created.

    Stan

  • RELEVANCY SCORE 2.32

    DB:2.32:Javascript Error Opening Popup (Testing Application With Htmlunit And Adf) 9k


    Hello,

    We are having a problem using HtmlUnit-1.14 to verify an application implemented using ADFFaces. The problem occurs once we try to open a popup which displays a jspx page that we have developed. When we try to open the popup using HTMLUnit we get an JavaScript error "..htmlunit.ScriptException: TypeError: Cannot find function importNode" (see the complete trace at the end of the message). This JavaScript error occurs inside the page that triggers the popup. We have configured HTMLUnit as to behave as FIREFOX_2. If we do the same using the browser (FirefoxX2) it works fine. We also try the same using the latest SNAPSHOT of HTMLUnit (htmlunit-2.0-SNAPSHOT.jar downloaded today 02/29/2008) and we get another exception "..htmlunit.ScriptException: TypeError: Cannot read property "length" from undefined" (see the complete trace at the end of the message).

    Additionaly, we have noticed that this error does't happends if we open a date chooser popup. It seems to happend only when the popup renders a jspx page.

    In the jspx we use the following code to open de popup:

    ----------------------------------
    af:selectInputText binding="#{backing_busquedaAuditoriaBusquedas.usuarioSelectInputText}"
    value="#{backing_busquedaAuditoriaBusquedas.filtros.usuario.nombre}"
    id="usuarioSelectInputText"
    windowHeight="500" windowWidth="500"
    autoSubmit="true"
    returnListener="#{backing_busquedaAuditoriaBusquedas.returnDialogoUsuario}"
    action="dialog:busquedaUsuariosDialog"/
    ----------------------------------

    The HTML code generated by this component is the following:

    ----------------------------------
    script
    var _pprUpdateMode=false;
    function _adfspu(f,v,e,s,o)
    {
    _pprUpdateMode=true;
    if(!o)
    o=new Object();
    o.event=(e)?e:'update';
    if(s)o.source=s;
    _submitPartialChange(f,v,o);
    }
    /script

    input autocomplete="off" readonly="readonly" id="form1:usuarioSelectInputText" name="form1:usuarioSelectInputText" onchange="_adfspu('form1',1,'form1:usuarioSelectInputText','form1:usuarioSelectInputText');return true;" class="x8" size="30" type="text"
    img src="/uiSipi/adf/images/t.gif" alt="" height="1" width="8"
    a href="# onclick="_adfspu('form1',0,0,'form1:usuarioSelectInputText',{part:'b');return false;"
    img src="/uiSipi/skins/sipi/skin_images/find_24.gif" style="" align="middle" border="0" height="24" width="24"
    /a
    ----------------------------------

    Once we click the anchor, HTMLUnit throws the exception shown at the end of this post. The exception ocurrs inside the JavaScript method "_submitPartialChange(f,v,o);".

    As we previously mentioned, it we use a date chooser component like "selectInputDate" which also displays a popup window (in order to choose the date) we do not get any error in HTMLUnit, i.e. the popup is correctly opened.

    The code used in the JSPX page for the selectInputDate is the following:

    ----------------------------------
    af:selectInputDate label="#{res['filtro.fechaDesde']}"
    binding="#{backing_busquedaAuditoriaBusquedas.fechaDesdeInput}"
    id="fechaDesdeInput" columns="25"
    value="#{backing_busquedaAuditoriaBusquedas.filtros.fechaDesde}"

    f:convertDateTime timeStyle="default" type="both"
    pattern="#{backing_common.timeDateFormat}"/
    /af:selectInputDate
    ----------------------------------

    And the HTML code generated:

    ----------------------------------
    script
    var _locale='es';
    var _tLocale='es';
    /script
    script src="/uiSipi/adf/jsLibs/resources/LocaleElements_es10_1_3_3_0.js"/script
    script
    var _df2DYS=1950;
    /script
    input id="form1:fechaDesdeInput" name="form1:fechaDesdeInput" onblur="_dfb(this)" class="x8" size="25" type="text"
    img src="/uiSipi/adf/images/t.gif" alt="" height="1" width="8"
    script
    var _jspDir='/uiSipi/faces/__ADFv__?_afPfm=2';
    var _enc='windows-1252';
    /script
    script
    var _uixLocaleTZ=-180;
    /script
    a href="#" onclick="_ldp('form1','form1:fechaDesdeInput'); return false"
    img src="/uiSipi/skins/sipi/skin_images/date32.png" style="padding-right: 5px;" title="Seleccionar para acceder al selector de fecha" alt="Seleccionar para acceder al selector de fecha" align="middle" border="0" height="20" width="16"
    /a
    ----------------------------------

    Any ideas of why this error may be happening?

    Thanks!

    **********************************
    Exception using HTMLUnit-1.14
    **********************************

    ======= EXCEPTION START ========
    Exception class=[org.mozilla.javascript.WrappedException]
    com.gargoylesoftware.htmlunit.ScriptException: Wrapped com.gargoylesoftware.htmlunit.ScriptException: TypeError: Cannot find function importNode. (http://negrainau.tilsor.com.uy:7777/uiSipi/adf/jsLibs/Common10_1_3_3_0.js#5707) (http://negrainau.tilsor.com.uy:7777/uiSipi/adf/jsLibs/Common10_1_3_3_0.js#3006)
    at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine$HtmlUnitContextAction.run(JavaScriptEngine.java:557)
    at org.mozilla.javascript.Context.call(Context.java:564)
    at org.mozilla.javascript.Context.call(Context.java:499)
    at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine.callFunction(JavaScriptEngine.java:470)
    at com.gargoylesoftware.htmlunit.html.HtmlPage.executeJavaScriptFunctionIfPossible(HtmlPage.java:751)
    at com.gargoylesoftware.htmlunit.javascript.host.EventListenersContainer.executeEventHandler(EventListenersContainer.java:175)
    at com.gargoylesoftware.htmlunit.javascript.host.EventListenersContainer.executeBubblingListeners(EventListenersContainer.java:188)
    at com.gargoylesoftware.htmlunit.javascript.host.Node.fireEvent(Node.java:565)
    at com.gargoylesoftware.htmlunit.html.HtmlElement$1.run(HtmlElement.java:1210)
    at org.mozilla.javascript.Context.call(Context.java:577)
    at org.mozilla.javascript.Context.call(Context.java:499)
    at com.gargoylesoftware.htmlunit.html.HtmlElement.fireEvent(HtmlElement.java:1214)
    at com.gargoylesoftware.htmlunit.html.ClickableElement.click(ClickableElement.java:135)
    at com.gargoylesoftware.htmlunit.html.ClickableElement.click(ClickableElement.java:109)
    at com.gargoylesoftware.htmlunit.html.ClickableElement.click(ClickableElement.java:87)
    at uy.com.tilsor.sipi.testing.auditoria.TSCUAUD4.test1(TSCUAUD4.java:99)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:585)
    at junit.framework.TestCase.runTest(TestCase.java:154)
    at junit.framework.TestCase.runBare(TestCase.java:127)
    at junit.framework.TestResult$1.protect(TestResult.java:106)
    at junit.framework.TestResult.runProtected(TestResult.java:124)
    at junit.framework.TestResult.run(TestResult.java:109)
    at junit.framework.TestCase.run(TestCase.java:118)
    at junit.framework.TestSuite.runTest(TestSuite.java:208)
    at junit.framework.TestSuite.run(TestSuite.java:203)
    at oracle.jdevimpl.junit.runner.TestRunner.doRun(TestRunner.java:111)
    at oracle.jdevimpl.junit.runner.TestRunner.start(TestRunner.java:91)
    at oracle.jdevimpl.junit.runner.TestRunner.main(TestRunner.java:43)
    Caused by: org.mozilla.javascript.WrappedException: Wrapped com.gargoylesoftware.htmlunit.ScriptException: TypeError: Cannot find function importNode. (http://negrainau.tilsor.com.uy:7777/uiSipi/adf/jsLibs/Common10_1_3_3_0.js#5707) (http://negrainau.tilsor.com.uy:7777/uiSipi/adf/jsLibs/Common10_1_3_3_0.js#3006)
    at org.mozilla.javascript.Context.throwAsScriptRuntimeEx(Context.java:1757)
    at org.mozilla.javascript.MemberBox.invoke(MemberBox.java:170)
    at org.mozilla.javascript.FunctionObject.call(FunctionObject.java:474)
    at org.mozilla.javascript.Interpreter.interpretLoop(Interpreter.java:3237)
    at org.mozilla.javascript.Interpreter.interpret(Interpreter.java:2394)
    at org.mozilla.javascript.InterpretedFunction.call(InterpretedFunction.java:162)
    at org.mozilla.javascript.ContextFactory.doTopCall(ContextFactory.java:393)
    at com.gargoylesoftware.htmlunit.javascript.HtmlUnitContextFactory.doTopCall(HtmlUnitContextFactory.java:185)
    at org.mozilla.javascript.ScriptRuntime.doTopCall(ScriptRuntime.java:2834)
    at org.mozilla.javascript.InterpretedFunction.call(InterpretedFunction.java:160)
    at com.gargoylesoftware.htmlunit.javascript.host.EventHandler.call(EventHandler.java:99)
    at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine.callFunction(JavaScriptEngine.java:499)
    at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine$6.doRun(JavaScriptEngine.java:464)
    at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine$HtmlUnitContextAction.run(JavaScriptEngine.java:553)
    ... 30 more
    Caused by: com.gargoylesoftware.htmlunit.ScriptException: TypeError: Cannot find function importNode. (http://negrainau.tilsor.com.uy:7777/uiSipi/adf/jsLibs/Common10_1_3_3_0.js#5707)
    at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine$HtmlUnitContextAction.run(JavaScriptEngine.java:557)
    at org.mozilla.javascript.Context.call(Context.java:564)
    at org.mozilla.javascript.Context.call(Context.java:499)
    at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine.execute(JavaScriptEngine.java:439)
    at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine.execute(JavaScriptEngine.java:414)
    at com.gargoylesoftware.htmlunit.html.HtmlPage.executeJavaScriptIfPossible(HtmlPage.java:716)
    at com.gargoylesoftware.htmlunit.html.HtmlScript.executeInlineScriptIfNeeded(HtmlScript.java:249)
    at com.gargoylesoftware.htmlunit.html.HtmlScript.appendDomChild(HtmlScript.java:185)
    at com.gargoylesoftware.htmlunit.html.HTMLParser$HtmlUnitDOMBuilder.handleCharacters(HTMLParser.java:443)
    at com.gargoylesoftware.htmlunit.html.HTMLParser$HtmlUnitDOMBuilder.endElement(HTMLParser.java:401)
    at org.apache.xerces.parsers.AbstractSAXParser.endElement(Unknown Source)
    at org.cyberneko.html.filters.DefaultFilter.endElement(DefaultFilter.java:249)
    at org.cyberneko.html.filters.NamespaceBinder.endElement(NamespaceBinder.java:367)
    at org.cyberneko.html.HTMLTagBalancer.callEndElement(HTMLTagBalancer.java:1015)
    at org.cyberneko.html.HTMLTagBalancer.endElement(HTMLTagBalancer.java:888)
    at org.cyberneko.html.HTMLScanner$SpecialScanner.scan(HTMLScanner.java:2831)
    at org.cyberneko.html.HTMLScanner.scanDocument(HTMLScanner.java:809)
    at org.cyberneko.html.HTMLConfiguration.parse(HTMLConfiguration.java:478)
    at org.cyberneko.html.HTMLConfiguration.parse(HTMLConfiguration.java:431)
    at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
    at com.gargoylesoftware.htmlunit.html.HTMLParser.parse(HTMLParser.java:253)
    at com.gargoylesoftware.htmlunit.DefaultPageCreator.createHtmlPage(DefaultPageCreator.java:116)
    at com.gargoylesoftware.htmlunit.DefaultPageCreator.createPage(DefaultPageCreator.java:89)
    at com.gargoylesoftware.htmlunit.WebClient.loadWebResponseInto(WebClient.java:450)
    at com.gargoylesoftware.htmlunit.WebClient.getPage(WebClient.java:359)
    at com.gargoylesoftware.htmlunit.WebClient.getPage(WebClient.java:382)
    at com.gargoylesoftware.htmlunit.html.HtmlForm.submit(HtmlForm.java:242)
    at com.gargoylesoftware.htmlunit.javascript.host.HTMLFormElement.jsxFunction_submit(HTMLFormElement.java:244)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:585)
    at org.mozilla.javascript.MemberBox.invoke(MemberBox.java:155)
    ... 42 more
    Caused by: org.mozilla.javascript.EcmaError: TypeError: Cannot find function importNode. (http://negrainau.tilsor.com.uy:7777/uiSipi/adf/jsLibs/Common10_1_3_3_0.js#5707)
    at org.mozilla.javascript.ScriptRuntime.constructError(ScriptRuntime.java:3350)
    at org.mozilla.javascript.ScriptRuntime.constructError(ScriptRuntime.java:3340)
    at org.mozilla.javascript.ScriptRuntime.typeError(ScriptRuntime.java:3356)
    at org.mozilla.javascript.ScriptRuntime.typeError1(ScriptRuntime.java:3368)
    at org.mozilla.javascript.ScriptRuntime.notFunctionError(ScriptRuntime.java:3428)
    at org.mozilla.javascript.ScriptRuntime.getPropFunctionAndThis(ScriptRuntime.java:2052)
    at org.mozilla.javascript.Interpreter.interpretLoop(Interpreter.java:3081)
    at org.mozilla.javascript.Interpreter.interpret(Interpreter.java:2394)
    at org.mozilla.javascript.InterpretedFunction.exec(InterpretedFunction.java:176)
    at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine$5.doRun(JavaScriptEngine.java:431)
    at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine$HtmlUnitContextAction.run(JavaScriptEngine.java:553)
    ... 74 more
    WrappedException: org.mozilla.javascript.WrappedException: Wrapped com.gargoylesoftware.htmlunit.ScriptException: TypeError: Cannot find function importNode. (http://negrainau.tilsor.com.uy:7777/uiSipi/adf/jsLibs/Common10_1_3_3_0.js#5707) (http://negrainau.tilsor.com.uy:7777/uiSipi/adf/jsLibs/Common10_1_3_3_0.js#3006)
    at org.mozilla.javascript.Context.throwAsScriptRuntimeEx(Context.java:1757)
    at org.mozilla.javascript.MemberBox.invoke(MemberBox.java:170)
    at org.mozilla.javascript.FunctionObject.call(FunctionObject.java:474)
    at org.mozilla.javascript.Interpreter.interpretLoop(Interpreter.java:3237)
    at script.submitForm(http://negrainau.tilsor.com.uy:7777/uiSipi/adf/jsLibs/Common10_1_3_3_0.js:3006)
    at script._submitPartialChange(http://negrainau.tilsor.com.uy:7777/uiSipi/adf/jsLibs/Common10_1_3_3_0.js:4096)
    at script._adfspu(script in http://negrainau.tilsor.com.uy:7777/uiSipi/faces/busquedaAuditoriaBusquedas.jspx from (2, 3284) to (0, 0):2)
    at script(onclick event for HtmlAnchor[a href="#" onclick="_adfspu('form1',0,0,'form1:usuarioSelectInputText',{part:'b'});return false;"]:1)
    at org.mozilla.javascript.Interpreter.interpret(Interpreter.java:2394)
    at org.mozilla.javascript.InterpretedFunction.call(InterpretedFunction.java:162)
    at org.mozilla.javascript.ContextFactory.doTopCall(ContextFactory.java:393)
    at com.gargoylesoftware.htmlunit.javascript.HtmlUnitContextFactory.doTopCall(HtmlUnitContextFactory.java:185)
    at org.mozilla.javascript.ScriptRuntime.doTopCall(ScriptRuntime.java:2834)
    at org.mozilla.javascript.InterpretedFunction.call(InterpretedFunction.java:160)
    at com.gargoylesoftware.htmlunit.javascript.host.EventHandler.call(EventHandler.java:99)
    at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine.callFunction(JavaScriptEngine.java:499)
    at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine$6.doRun(JavaScriptEngine.java:464)
    at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine$HtmlUnitContextAction.run(JavaScriptEngine.java:553)
    at org.mozilla.javascript.Context.call(Context.java:564)
    at org.mozilla.javascript.Context.call(Context.java:499)
    at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine.callFunction(JavaScriptEngine.java:470)
    at com.gargoylesoftware.htmlunit.html.HtmlPage.executeJavaScriptFunctionIfPossible(HtmlPage.java:751)
    at com.gargoylesoftware.htmlunit.javascript.host.EventListenersContainer.executeEventHandler(EventListenersContainer.java:175)
    at com.gargoylesoftware.htmlunit.javascript.host.EventListenersContainer.executeBubblingListeners(EventListenersContainer.java:188)
    at com.gargoylesoftware.htmlunit.javascript.host.Node.fireEvent(Node.java:565)
    at com.gargoylesoftware.htmlunit.html.HtmlElement$1.run(HtmlElement.java:1210)
    at org.mozilla.javascript.Context.call(Context.java:577)
    at org.mozilla.javascript.Context.call(Context.java:499)
    at com.gargoylesoftware.htmlunit.html.HtmlElement.fireEvent(HtmlElement.java:1214)
    at com.gargoylesoftware.htmlunit.html.ClickableElement.click(ClickableElement.java:135)
    at com.gargoylesoftware.htmlunit.html.ClickableElement.click(ClickableElement.java:109)
    at com.gargoylesoftware.htmlunit.html.ClickableElement.click(ClickableElement.java:87)
    at uy.com.tilsor.sipi.testing.auditoria.TSCUAUD4.test1(TSCUAUD4.java:99)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:585)
    at junit.framework.TestCase.runTest(TestCase.java:154)
    at junit.framework.TestCase.runBare(TestCase.java:127)
    at junit.framework.TestResult$1.protect(TestResult.java:106)
    at junit.framework.TestResult.runProtected(TestResult.java:124)
    at junit.framework.TestResult.run(TestResult.java:109)
    at junit.framework.TestCase.run(TestCase.java:118)
    at junit.framework.TestSuite.runTest(TestSuite.java:208)
    at junit.framework.TestSuite.run(TestSuite.java:203)
    at oracle.jdevimpl.junit.runner.TestRunner.doRun(TestRunner.java:111)
    at oracle.jdevimpl.junit.runner.TestRunner.start(TestRunner.java:91)
    at oracle.jdevimpl.junit.runner.TestRunner.main(TestRunner.java:43)
    Caused by: com.gargoylesoftware.htmlunit.ScriptException: TypeError: Cannot find function importNode. (http://negrainau.tilsor.com.uy:7777/uiSipi/adf/jsLibs/Common10_1_3_3_0.js#5707)
    at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine$HtmlUnitContextAction.run(JavaScriptEngine.java:557)
    at org.mozilla.javascript.Context.call(Context.java:564)
    at org.mozilla.javascript.Context.call(Context.java:499)
    at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine.execute(JavaScriptEngine.java:439)
    at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine.execute(JavaScriptEngine.java:414)
    at com.gargoylesoftware.htmlunit.html.HtmlPage.executeJavaScriptIfPossible(HtmlPage.java:716)
    at com.gargoylesoftware.htmlunit.html.HtmlScript.executeInlineScriptIfNeeded(HtmlScript.java:249)
    at com.gargoylesoftware.htmlunit.html.HtmlScript.appendDomChild(HtmlScript.java:185)
    at com.gargoylesoftware.htmlunit.html.HTMLParser$HtmlUnitDOMBuilder.handleCharacters(HTMLParser.java:443)
    at com.gargoylesoftware.htmlunit.html.HTMLParser$HtmlUnitDOMBuilder.endElement(HTMLParser.java:401)
    at org.apache.xerces.parsers.AbstractSAXParser.endElement(Unknown Source)
    at org.cyberneko.html.filters.DefaultFilter.endElement(DefaultFilter.java:249)
    at org.cyberneko.html.filters.NamespaceBinder.endElement(NamespaceBinder.java:367)
    at org.cyberneko.html.HTMLTagBalancer.callEndElement(HTMLTagBalancer.java:1015)
    at org.cyberneko.html.HTMLTagBalancer.endElement(HTMLTagBalancer.java:888)
    at org.cyberneko.html.HTMLScanner$SpecialScanner.scan(HTMLScanner.java:2831)
    at org.cyberneko.html.HTMLScanner.scanDocument(HTMLScanner.java:809)
    at org.cyberneko.html.HTMLConfiguration.parse(HTMLConfiguration.java:478)
    at org.cyberneko.html.HTMLConfiguration.parse(HTMLConfiguration.java:431)
    at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
    at com.gargoylesoftware.htmlunit.html.HTMLParser.parse(HTMLParser.java:253)
    at com.gargoylesoftware.htmlunit.DefaultPageCreator.createHtmlPage(DefaultPageCreator.java:116)
    at com.gargoylesoftware.htmlunit.DefaultPageCreator.createPage(DefaultPageCreator.java:89)
    at com.gargoylesoftware.htmlunit.WebClient.loadWebResponseInto(WebClient.java:450)
    at com.gargoylesoftware.htmlunit.WebClient.getPage(WebClient.java:359)
    at com.gargoylesoftware.htmlunit.WebClient.getPage(WebClient.java:382)
    at com.gargoylesoftware.htmlunit.html.HtmlForm.submit(HtmlForm.java:242)
    at com.gargoylesoftware.htmlunit.javascript.host.HTMLFormElement.jsxFunction_submit(HTMLFormElement.java:244)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:585)
    at org.mozilla.javascript.MemberBox.invoke(MemberBox.java:155)
    ... 42 more
    Caused by: org.mozilla.javascript.EcmaError: TypeError: Cannot find function importNode. (http://negrainau.tilsor.com.uy:7777/uiSipi/adf/jsLibs/Common10_1_3_3_0.js#5707)
    at org.mozilla.javascript.ScriptRuntime.constructError(ScriptRuntime.java:3350)
    at org.mozilla.javascript.ScriptRuntime.constructError(ScriptRuntime.java:3340)
    at org.mozilla.javascript.ScriptRuntime.typeError(ScriptRuntime.java:3356)
    at org.mozilla.javascript.ScriptRuntime.typeError1(ScriptRuntime.java:3368)
    at org.mozilla.javascript.ScriptRuntime.notFunctionError(ScriptRuntime.java:3428)
    at org.mozilla.javascript.ScriptRuntime.getPropFunctionAndThis(ScriptRuntime.java:2052)
    at org.mozilla.javascript.Interpreter.interpretLoop(Interpreter.java:3081)
    at org.mozilla.javascript.Interpreter.interpret(Interpreter.java:2394)
    at org.mozilla.javascript.InterpretedFunction.exec(InterpretedFunction.java:176)
    at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine$5.doRun(JavaScriptEngine.java:431)
    at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine$HtmlUnitContextAction.run(JavaScriptEngine.java:553)
    ... 74 more
    Inside wrapped exception:
    ======= EXCEPTION START ========
    EcmaError: lineNumber=[5707] column=[0] lineSource=[no source] name=[TypeError] sourceName=[http://negrainau.tilsor.com.uy:7777/uiSipi/adf/jsLibs/Common10_1_3_3_0.js] message=[TypeError: Cannot find function importNode. (http://negrainau.tilsor.com.uy:7777/uiSipi/adf/jsLibs/Common10_1_3_3_0.js#5707)]
    com.gargoylesoftware.htmlunit.ScriptException: TypeError: Cannot find function importNode. (http://negrainau.tilsor.com.uy:7777/uiSipi/adf/jsLibs/Common10_1_3_3_0.js#5707)
    at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine$HtmlUnitContextAction.run(JavaScriptEngine.java:557)
    at org.mozilla.javascript.Context.call(Context.java:564)
    at org.mozilla.javascript.Context.call(Context.java:499)
    at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine.execute(JavaScriptEngine.java:439)
    at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine.execute(JavaScriptEngine.java:414)
    at com.gargoylesoftware.htmlunit.html.HtmlPage.executeJavaScriptIfPossible(HtmlPage.java:716)
    at com.gargoylesoftware.htmlunit.html.HtmlScript.executeInlineScriptIfNeeded(HtmlScript.java:249)
    at com.gargoylesoftware.htmlunit.html.HtmlScript.appendDomChild(HtmlScript.java:185)
    at com.gargoylesoftware.htmlunit.html.HTMLParser$HtmlUnitDOMBuilder.handleCharacters(HTMLParser.java:443)
    at com.gargoylesoftware.htmlunit.html.HTMLParser$HtmlUnitDOMBuilder.endElement(HTMLParser.java:401)
    at org.apache.xerces.parsers.AbstractSAXParser.endElement(Unknown Source)
    at org.cyberneko.html.filters.DefaultFilter.endElement(DefaultFilter.java:249)
    at org.cyberneko.html.filters.NamespaceBinder.endElement(NamespaceBinder.java:367)
    at org.cyberneko.html.HTMLTagBalancer.callEndElement(HTMLTagBalancer.java:1015)
    at org.cyberneko.html.HTMLTagBalancer.endElement(HTMLTagBalancer.java:888)
    at org.cyberneko.html.HTMLScanner$SpecialScanner.scan(HTMLScanner.java:2831)
    at org.cyberneko.html.HTMLScanner.scanDocument(HTMLScanner.java:809)
    at org.cyberneko.html.HTMLConfiguration.parse(HTMLConfiguration.java:478)
    at org.cyberneko.html.HTMLConfiguration.parse(HTMLConfiguration.java:431)
    at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
    at com.gargoylesoftware.htmlunit.html.HTMLParser.parse(HTMLParser.java:253)
    at com.gargoylesoftware.htmlunit.DefaultPageCreator.createHtmlPage(DefaultPageCreator.java:116)
    at com.gargoylesoftware.htmlunit.DefaultPageCreator.createPage(DefaultPageCreator.java:89)
    at com.gargoylesoftware.htmlunit.WebClient.loadWebResponseInto(WebClient.java:450)
    at com.gargoylesoftware.htmlunit.WebClient.getPage(WebClient.java:359)
    at com.gargoylesoftware.htmlunit.WebClient.getPage(WebClient.java:382)
    at com.gargoylesoftware.htmlunit.html.HtmlForm.submit(HtmlForm.java:242)
    at com.gargoylesoftware.htmlunit.javascript.host.HTMLFormElement.jsxFunction_submit(HTMLFormElement.java:244)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:585)
    at org.mozilla.javascript.MemberBox.invoke(MemberBox.java:155)
    at org.mozilla.javascript.FunctionObject.call(FunctionObject.java:474)
    at org.mozilla.javascript.Interpreter.interpretLoop(Interpreter.java:3237)
    at org.mozilla.javascript.Interpreter.interpret(Interpreter.java:2394)
    at org.mozilla.javascript.InterpretedFunction.call(InterpretedFunction.java:162)
    at org.mozilla.javascript.ContextFactory.doTopCall(ContextFactory.java:393)
    at com.gargoylesoftware.htmlunit.javascript.HtmlUnitContextFactory.doTopCall(HtmlUnitContextFactory.java:185)
    at org.mozilla.javascript.ScriptRuntime.doTopCall(ScriptRuntime.java:2834)
    at org.mozilla.javascript.InterpretedFunction.call(InterpretedFunction.java:160)
    at com.gargoylesoftware.htmlunit.javascript.host.EventHandler.call(EventHandler.java:99)
    at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine.callFunction(JavaScriptEngine.java:499)
    at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine$6.doRun(JavaScriptEngine.java:464)
    at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine$HtmlUnitContextAction.run(JavaScriptEngine.java:553)
    at org.mozilla.javascript.Context.call(Context.java:564)
    at org.mozilla.javascript.Context.call(Context.java:499)
    at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine.callFunction(JavaScriptEngine.java:470)
    at com.gargoylesoftware.htmlunit.html.HtmlPage.executeJavaScriptFunctionIfPossible(HtmlPage.java:751)
    at com.gargoylesoftware.htmlunit.javascript.host.EventListenersContainer.executeEventHandler(EventListenersContainer.java:175)
    at com.gargoylesoftware.htmlunit.javascript.host.EventListenersContainer.executeBubblingListeners(EventListenersContainer.java:188)
    at com.gargoylesoftware.htmlunit.javascript.host.Node.fireEvent(Node.java:565)
    at com.gargoylesoftware.htmlunit.html.HtmlElement$1.run(HtmlElement.java:1210)
    at org.mozilla.javascript.Context.call(Context.java:577)
    at org.mozilla.javascript.Context.call(Context.java:499)
    at com.gargoylesoftware.htmlunit.html.HtmlElement.fireEvent(HtmlElement.java:1214)
    at com.gargoylesoftware.htmlunit.html.ClickableElement.click(ClickableElement.java:135)
    at com.gargoylesoftware.htmlunit.html.ClickableElement.click(ClickableElement.java:109)
    at com.gargoylesoftware.htmlunit.html.ClickableElement.click(ClickableElement.java:87)
    at uy.com.tilsor.sipi.testing.auditoria.TSCUAUD4.test1(TSCUAUD4.java:99)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:585)
    at junit.framework.TestCase.runTest(TestCase.java:154)
    at junit.framework.TestCase.runBare(TestCase.java:127)
    at junit.framework.TestResult$1.protect(TestResult.java:106)
    at junit.framework.TestResult.runProtected(TestResult.java:124)
    at junit.framework.TestResult.run(TestResult.java:109)
    at junit.framework.TestCase.run(TestCase.java:118)
    at junit.framework.TestSuite.runTest(TestSuite.java:208)
    at junit.framework.TestSuite.run(TestSuite.java:203)
    at oracle.jdevimpl.junit.runner.TestRunner.doRun(TestRunner.java:111)
    at oracle.jdevimpl.junit.runner.TestRunner.start(TestRunner.java:91)
    at oracle.jdevimpl.junit.runner.TestRunner.main(TestRunner.java:43)
    Caused by: org.mozilla.javascript.EcmaError: TypeError: Cannot find function importNode. (http://negrainau.tilsor.com.uy:7777/uiSipi/adf/jsLibs/Common10_1_3_3_0.js#5707)
    at org.mozilla.javascript.ScriptRuntime.constructError(ScriptRuntime.java:3350)
    at org.mozilla.javascript.ScriptRuntime.constructError(ScriptRuntime.java:3340)
    at org.mozilla.javascript.ScriptRuntime.typeError(ScriptRuntime.java:3356)
    at org.mozilla.javascript.ScriptRuntime.typeError1(ScriptRuntime.java:3368)
    at org.mozilla.javascript.ScriptRuntime.notFunctionError(ScriptRuntime.java:3428)
    at org.mozilla.javascript.ScriptRuntime.getPropFunctionAndThis(ScriptRuntime.java:2052)
    at org.mozilla.javascript.Interpreter.interpretLoop(Interpreter.java:3081)
    at org.mozilla.javascript.Interpreter.interpret(Interpreter.java:2394)
    at org.mozilla.javascript.InterpretedFunction.exec(InterpretedFunction.java:176)
    at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine$5.doRun(JavaScriptEngine.java:431)
    at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine$HtmlUnitContextAction.run(JavaScriptEngine.java:553)
    ... 74 more
    Enclosed exception:
    org.mozilla.javascript.EcmaError: TypeError: Cannot find function importNode. (http://negrainau.tilsor.com.uy:7777/uiSipi/adf/jsLibs/Common10_1_3_3_0.js#5707)
    at org.mozilla.javascript.ScriptRuntime.constructError(ScriptRuntime.java:3350)
    at org.mozilla.javascript.ScriptRuntime.constructError(ScriptRuntime.java:3340)
    at org.mozilla.javascript.ScriptRuntime.typeError(ScriptRuntime.java:3356)
    at org.mozilla.javascript.ScriptRuntime.typeError1(ScriptRuntime.java:3368)
    at org.mozilla.javascript.ScriptRuntime.notFunctionError(ScriptRuntime.java:3428)
    at org.mozilla.javascript.ScriptRuntime.getPropFunctionAndThis(ScriptRuntime.java:2052)
    at org.mozilla.javascript.Interpreter.interpretLoop(Interpreter.java:3081)
    at script._setOuterHTML(http://negrainau.tilsor.com.uy:7777/uiSipi/adf/jsLibs/Common10_1_3_3_0.js:5707)
    at script._partialChange(http://negrainau.tilsor.com.uy:7777/uiSipi/adf/jsLibs/Common10_1_3_3_0.js:5560)
    at script(script in http://negrainau.tilsor.com.uy:7777/uiSipi/faces/busquedaAuditoriaBusquedas.jspx?_afPfm=1 from (5, 1015) to (0, 0):5)
    at org.mozilla.javascript.Interpreter.interpret(Interpreter.java:2394)
    at org.mozilla.javascript.InterpretedFunction.exec(InterpretedFunction.java:176)
    at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine$5.doRun(JavaScriptEngine.java:431)
    at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine$HtmlUnitContextAction.run(JavaScriptEngine.java:553)
    at org.mozilla.javascript.Context.call(Context.java:564)
    at org.mozilla.javascript.Context.call(Context.java:499)
    at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine.execute(JavaScriptEngine.java:439)
    at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine.execute(JavaScriptEngine.java:414)
    at com.gargoylesoftware.htmlunit.html.HtmlPage.executeJavaScriptIfPossible(HtmlPage.java:716)
    at com.gargoylesoftware.htmlunit.html.HtmlScript.executeInlineScriptIfNeeded(HtmlScript.java:249)
    at com.gargoylesoftware.htmlunit.html.HtmlScript.appendDomChild(HtmlScript.java:185)
    at com.gargoylesoftware.htmlunit.html.HTMLParser$HtmlUnitDOMBuilder.handleCharacters(HTMLParser.java:443)
    at com.gargoylesoftware.htmlunit.html.HTMLParser$HtmlUnitDOMBuilder.endElement(HTMLParser.java:401)
    at org.apache.xerces.parsers.AbstractSAXParser.endElement(Unknown Source)
    at org.cyberneko.html.filters.DefaultFilter.endElement(DefaultFilter.java:249)
    at org.cyberneko.html.filters.NamespaceBinder.endElement(NamespaceBinder.java:367)
    at org.cyberneko.html.HTMLTagBalancer.callEndElement(HTMLTagBalancer.java:1015)
    at org.cyberneko.html.HTMLTagBalancer.endElement(HTMLTagBalancer.java:888)
    at org.cyberneko.html.HTMLScanner$SpecialScanner.scan(HTMLScanner.java:2831)
    at org.cyberneko.html.HTMLScanner.scanDocument(HTMLScanner.java:809)
    at org.cyberneko.html.HTMLConfiguration.parse(HTMLConfiguration.java:478)
    at org.cyberneko.html.HTMLConfiguration.parse(HTMLConfiguration.java:431)
    at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
    at com.gargoylesoftware.htmlunit.html.HTMLParser.parse(HTMLParser.java:253)
    at com.gargoylesoftware.htmlunit.DefaultPageCreator.createHtmlPage(DefaultPageCreator.java:116)
    at com.gargoylesoftware.htmlunit.DefaultPageCreator.createPage(DefaultPageCreator.java:89)
    at com.gargoylesoftware.htmlunit.WebClient.loadWebResponseInto(WebClient.java:450)
    at com.gargoylesoftware.htmlunit.WebClient.getPage(WebClient.java:359)
    at com.gargoylesoftware.htmlunit.WebClient.getPage(WebClient.java:382)
    at com.gargoylesoftware.htmlunit.html.HtmlForm.submit(HtmlForm.java:242)
    at com.gargoylesoftware.htmlunit.javascript.host.HTMLFormElement.jsxFunction_submit(HTMLFormElement.java:244)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:585)
    at org.mozilla.javascript.MemberBox.invoke(MemberBox.java:155)
    at org.mozilla.javascript.FunctionObject.call(FunctionObject.java:474)
    at org.mozilla.javascript.Interpreter.interpretLoop(Interpreter.java:3237)
    at script.submitForm(http://negrainau.tilsor.com.uy:7777/uiSipi/adf/jsLibs/Common10_1_3_3_0.js:3006)
    at script._submitPartialChange(http://negrainau.tilsor.com.uy:7777/uiSipi/adf/jsLibs/Common10_1_3_3_0.js:4096)
    at script._adfspu(script in http://negrainau.tilsor.com.uy:7777/uiSipi/faces/busquedaAuditoriaBusquedas.jspx from (2, 3284) to (0, 0):2)
    at script(onclick event for HtmlAnchor[a href="#" onclick="_adfspu('form1',0,0,'form1:usuarioSelectInputText',{part:'b'});return false;"]:1)
    at org.mozilla.javascript.Interpreter.interpret(Interpreter.java:2394)
    at org.mozilla.javascript.InterpretedFunction.call(InterpretedFunction.java:162)
    at org.mozilla.javascript.ContextFactory.doTopCall(ContextFactory.java:393)
    at com.gargoylesoftware.htmlunit.javascript.HtmlUnitContextFactory.doTopCall(HtmlUnitContextFactory.java:185)
    at org.mozilla.javascript.ScriptRuntime.doTopCall(ScriptRuntime.java:2834)
    at org.mozilla.javascript.InterpretedFunction.call(InterpretedFunction.java:160)
    at com.gargoylesoftware.htmlunit.javascript.host.EventHandler.call(EventHandler.java:99)
    at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine.callFunction(JavaScriptEngine.java:499)
    at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine$6.doRun(JavaScriptEngine.java:464)
    at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine$HtmlUnitContextAction.run(JavaScriptEngine.java:553)
    at org.mozilla.javascript.Context.call(Context.java:564)
    at org.mozilla.javascript.Context.call(Context.java:499)
    at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine.callFunction(JavaScriptEngine.java:470)
    at com.gargoylesoftware.htmlunit.html.HtmlPage.executeJavaScriptFunctionIfPossible(HtmlPage.java:751)
    at com.gargoylesoftware.htmlunit.javascript.host.EventListenersContainer.executeEventHandler(EventListenersContainer.java:175)
    at com.gargoylesoftware.htmlunit.javascript.host.EventListenersContainer.executeBubblingListeners(EventListenersContainer.java:188)
    at com.gargoylesoftware.htmlunit.javascript.host.Node.fireEvent(Node.java:565)
    at com.gargoylesoftware.htmlunit.html.HtmlElement$1.run(HtmlElement.java:1210)
    at org.mozilla.javascript.Context.call(Context.java:577)
    at org.mozilla.javascript.Context.call(Context.java:499)
    at com.gargoylesoftware.htmlunit.html.HtmlElement.fireEvent(HtmlElement.java:1214)
    at com.gargoylesoftware.htmlunit.html.ClickableElement.click(ClickableElement.java:135)
    at com.gargoylesoftware.htmlunit.html.ClickableElement.click(ClickableElement.java:109)
    at com.gargoylesoftware.htmlunit.html.ClickableElement.click(ClickableElement.java:87)
    at uy.com.tilsor.sipi.testing.auditoria.TSCUAUD4.test1(TSCUAUD4.java:99)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:585)
    at junit.framework.TestCase.runTest(TestCase.java:154)
    at junit.framework.TestCase.runBare(TestCase.java:127)
    at junit.framework.TestResult$1.protect(TestResult.java:106)
    at junit.framework.TestResult.runProtected(TestResult.java:124)
    at junit.framework.TestResult.run(TestResult.java:109)
    at junit.framework.TestCase.run(TestCase.java:118)
    at junit.framework.TestSuite.runTest(TestSuite.java:208)
    at junit.framework.TestSuite.run(TestSuite.java:203)
    at oracle.jdevimpl.junit.runner.TestRunner.doRun(TestRunner.java:111)
    at oracle.jdevimpl.junit.runner.TestRunner.start(TestRunner.java:91)
    at oracle.jdevimpl.junit.runner.TestRunner.main(TestRunner.java:43)
    ======= EXCEPTION END ========
    == CALLING JAVASCRIPT ==
    function () {
    [native code, arity=0]
    }

    ======= EXCEPTION END ========

    **********************************
    Exception using HTMLUnit-2.0-SNAPSHOT
    **********************************

    ======= EXCEPTION START ========
    Exception class=[org.mozilla.javascript.WrappedException]
    com.gargoylesoftware.htmlunit.ScriptException: Wrapped com.gargoylesoftware.htmlunit.ScriptException: Wrapped com.gargoylesoftware.htmlunit.ScriptException: TypeError: Cannot read property "length" from undefined (http://negrainau.tilsor.com.uy:7777/uiSipi/adf/jsLibs/Common10_1_3_3_0.js#4384) (http://negrainau.tilsor.com.uy:7777/uiSipi/adf/jsLibs/Common10_1_3_3_0.js#4177) (http://negrainau.tilsor.com.uy:7777/uiSipi/adf/jsLibs/Common10_1_3_3_0.js#3006)
    at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine$HtmlUnitContextAction.run(JavaScriptEngine.java:557)
    at org.mozilla.javascript.Context.call(Context.java:564)
    at org.mozilla.javascript.Context.call(Context.java:499)
    at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine.callFunction(JavaScriptEngine.java:470)
    at com.gargoylesoftware.htmlunit.html.HtmlPage.executeJavaScriptFunctionIfPossible(HtmlPage.java:1003)
    at com.gargoylesoftware.htmlunit.javascript.host.EventListenersContainer.executeEventHandler(EventListenersContainer.java:173)
    at com.gargoylesoftware.htmlunit.javascript.host.EventListenersContainer.executeBubblingListeners(EventListenersContainer.java:186)
    at com.gargoylesoftware.htmlunit.javascript.host.Node.fireEvent(Node.java:590)
    at com.gargoylesoftware.htmlunit.html.HtmlElement$2.run(HtmlElement.java:1257)
    at org.mozilla.javascript.Context.call(Context.java:577)
    at org.mozilla.javascript.Context.call(Context.java:499)
    at com.gargoylesoftware.htmlunit.html.HtmlElement.fireEvent(HtmlElement.java:1261)
    at com.gargoylesoftware.htmlunit.html.ClickableElement.click(ClickableElement.java:135)
    at com.gargoylesoftware.htmlunit.html.ClickableElement.click(ClickableElement.java:109)
    at com.gargoylesoftware.htmlunit.html.ClickableElement.click(ClickableElement.java:87)
    at uy.com.tilsor.sipi.testing.auditoria.TSCUAUD4.test1(TSCUAUD4.java:99)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:585)
    at junit.framework.TestCase.runTest(TestCase.java:154)
    at junit.framework.TestCase.runBare(TestCase.java:127)
    at junit.framework.TestResult$1.protect(TestResult.java:106)
    at junit.framework.TestResult.runProtected(TestResult.java:124)
    at junit.framework.TestResult.run(TestResult.java:109)
    at junit.framework.TestCase.run(TestCase.java:118)
    at junit.framework.TestSuite.runTest(TestSuite.java:208)
    at junit.framework.TestSuite.run(TestSuite.java:203)
    at oracle.jdevimpl.junit.runner.TestRunner.doRun(TestRunner.java:111)
    at oracle.jdevimpl.junit.runner.TestRunner.start(TestRunner.java:91)
    at oracle.jdevimpl.junit.runner.TestRunner.main(TestRunner.java:43)
    Caused by: org.mozilla.javascript.WrappedException: Wrapped com.gargoylesoftware.htmlunit.ScriptException: Wrapped com.gargoylesoftware.htmlunit.ScriptException: TypeError: Cannot read property "length" from undefined (http://negrainau.tilsor.com.uy:7777/uiSipi/adf/jsLibs/Common10_1_3_3_0.js#4384) (http://negrainau.tilsor.com.uy:7777/uiSipi/adf/jsLibs/Common10_1_3_3_0.js#4177) (http://negrainau.tilsor.com.uy:7777/uiSipi/adf/jsLibs/Common10_1_3_3_0.js#3006)
    at org.mozilla.javascript.Context.throwAsScriptRuntimeEx(Context.java:1757)
    at org.mozilla.javascript.MemberBox.invoke(MemberBox.java:170)
    at org.mozilla.javascript.FunctionObject.call(FunctionObject.java:474)
    at org.mozilla.javascript.Interpreter.interpretLoop(Interpreter.java:3237)
    at org.mozilla.javascript.Interpreter.interpret(Interpreter.java:2394)
    at org.mozilla.javascript.InterpretedFunction.call(InterpretedFunction.java:162)
    at org.mozilla.javascript.ContextFactory.doTopCall(ContextFactory.java:393)
    at com.gargoylesoftware.htmlunit.javascript.HtmlUnitContextFactory.doTopCall(HtmlUnitContextFactory.java:192)
    at org.mozilla.javascript.ScriptRuntime.doTopCall(ScriptRuntime.java:2834)
    at org.mozilla.javascript.InterpretedFunction.call(InterpretedFunction.java:160)
    at com.gargoylesoftware.htmlunit.javascript.host.EventHandler.call(EventHandler.java:100)
    at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine.callFunction(JavaScriptEngine.java:499)
    at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine$6.doRun(JavaScriptEngine.java:463)
    at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine$HtmlUnitContextAction.run(JavaScriptEngine.java:553)
    ... 30 more
    Caused by: com.gargoylesoftware.htmlunit.ScriptException: Wrapped com.gargoylesoftware.htmlunit.ScriptException: TypeError: Cannot read property "length" from undefined (http://negrainau.tilsor.com.uy:7777/uiSipi/adf/jsLibs/Common10_1_3_3_0.js#4384) (http://negrainau.tilsor.com.uy:7777/uiSipi/adf/jsLibs/Common10_1_3_3_0.js#4177)
    at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine$HtmlUnitContextAction.run(JavaScriptEngine.java:557)
    at org.mozilla.javascript.Context.call(Context.java:564)
    at org.mozilla.javascript.Context.call(Context.java:499)
    at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine.execute(JavaScriptEngine.java:438)
    at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine.execute(JavaScriptEngine.java:412)
    at com.gargoylesoftware.htmlunit.html.HtmlPage.executeJavaScriptIfPossible(HtmlPage.java:968)
    at com.gargoylesoftware.htmlunit.html.HtmlScript.executeInlineScriptIfNeeded(HtmlScript.java:262)
    at com.gargoylesoftware.htmlunit.html.HtmlScript.appendDomChild(HtmlScript.java:174)
    at com.gargoylesoftware.htmlunit.html.HTMLParser$HtmlUnitDOMBuilder.handleCharacters(HTMLParser.java:508)
    at com.gargoylesoftware.htmlunit.html.HTMLParser$HtmlUnitDOMBuilder.endElement(HTMLParser.java:466)
    at org.apache.xerces.parsers.AbstractSAXParser.endElement(Unknown Source)
    at org.cyberneko.html.filters.DefaultFilter.endElement(DefaultFilter.java:249)
    at org.cyberneko.html.filters.NamespaceBinder.endElement(NamespaceBinder.java:367)
    at org.cyberneko.html.HTMLTagBalancer.callEndElement(HTMLTagBalancer.java:1015)
    at org.cyberneko.html.HTMLTagBalancer.endElement(HTMLTagBalancer.java:888)
    at org.cyberneko.html.HTMLScanner$SpecialScanner.scan(HTMLScanner.java:2831)
    at org.cyberneko.html.HTMLScanner.scanDocument(HTMLScanner.java:809)
    at org.cyberneko.html.HTMLConfiguration.parse(HTMLConfiguration.java:478)
    at org.cyberneko.html.HTMLConfiguration.parse(HTMLConfiguration.java:431)
    at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
    at com.gargoylesoftware.htmlunit.html.HTMLParser.parse(HTMLParser.java:257)
    at com.gargoylesoftware.htmlunit.DefaultPageCreator.createHtmlPage(DefaultPageCreator.java:116)
    at com.gargoylesoftware.htmlunit.DefaultPageCreator.createPage(DefaultPageCreator.java:89)
    at com.gargoylesoftware.htmlunit.WebClient.loadWebResponseInto(WebClient.java:453)
    at com.gargoylesoftware.htmlunit.WebClient.getPage(WebClient.java:362)
    at com.gargoylesoftware.htmlunit.WebClient.getPage(WebClient.java:385)
    at com.gargoylesoftware.htmlunit.html.HtmlForm.submit(HtmlForm.java:187)
    at com.gargoylesoftware.htmlunit.javascript.host.HTMLFormElement.jsxFunction_submit(HTMLFormElement.java:244)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:585)
    at org.mozilla.javascript.MemberBox.invoke(MemberBox.java:155)
    ... 42 more
    Caused by: org.mozilla.javascript.WrappedException: Wrapped com.gargoylesoftware.htmlunit.ScriptException: TypeError: Cannot read property "length" from undefined (http://negrainau.tilsor.com.uy:7777/uiSipi/adf/jsLibs/Common10_1_3_3_0.js#4384) (http://negrainau.tilsor.com.uy:7777/uiSipi/adf/jsLibs/Common10_1_3_3_0.js#4177)
    at org.mozilla.javascript.Context.throwAsScriptRuntimeEx(Context.java:1757)
    at org.mozilla.javascript.MemberBox.invoke(MemberBox.java:170)
    at org.mozilla.javascript.FunctionObject.call(FunctionObject.java:474)
    at org.mozilla.javascript.Interpreter.interpretLoop(Interpreter.java:3237)
    at org.mozilla.javascript.Interpreter.interpret(Interpreter.java:2394)
    at org.mozilla.javascript.InterpretedFunction.exec(InterpretedFunction.java:176)
    at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine$5.doRun(JavaScriptEngine.java:429)
    at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine$HtmlUnitContextAction.run(JavaScriptEngine.java:553)
    ... 74 more
    Caused by: com.gargoylesoftware.htmlunit.ScriptException: TypeError: Cannot read property "length" from undefined (http://negrainau.tilsor.com.uy:7777/uiSipi/adf/jsLibs/Common10_1_3_3_0.js#4384)
    at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine$HtmlUnitContextAction.run(JavaScriptEngine.java:557)
    at org.mozilla.javascript.Context.call(Context.java:564)
    at org.mozilla.javascript.Context.call(Context.java:499)
    at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine.execute(JavaScriptEngine.java:438)
    at com.gargoylesoftware.htmlunit.html.HtmlPage.loadExternalJavaScriptFile(HtmlPage.java:1046)
    at com.gargoylesoftware.htmlunit.html.HtmlScript.executeScriptIfNeeded(HtmlScript.java:289)
    at com.gargoylesoftware.htmlunit.html.HtmlScript.onAddedToPage(HtmlScript.java:210)
    at com.gargoylesoftware.htmlunit.html.HtmlPage.notifyNodeAdded(HtmlPage.java:1741)
    at com.gargoylesoftware.htmlunit.html.DomNode.insertBefore(DomNode.java:964)
    at com.gargoylesoftware.htmlunit.javascript.host.Node.jsxFunction_insertBefore(Node.java:257)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:585)
    at org.mozilla.javascript.MemberBox.invoke(MemberBox.java:155)
    ... 80 more
    Caused by: org.mozilla.javascript.EcmaError: TypeError: Cannot read property "length" from undefined (http://negrainau.tilsor.com.uy:7777/uiSipi/adf/jsLibs/Common10_1_3_3_0.js#4384)
    at org.mozilla.javascript.ScriptRuntime.constructError(ScriptRuntime.java:3350)
    at org.mozilla.javascript.ScriptRuntime.constructError(ScriptRuntime.java:3340)
    at org.mozilla.javascript.ScriptRuntime.typeError(ScriptRuntime.java:3356)
    at org.mozilla.javascript.ScriptRuntime.typeError2(ScriptRuntime.java:3375)
    at org.mozilla.javascript.ScriptRuntime.undefReadError(ScriptRuntime.java:3388)
    at org.mozilla.javascript.ScriptRuntime.getObjectProp(ScriptRuntime.java:1362)
    at org.mozilla.javascript.Interpreter.interpretLoop(Interpreter.java:2965)
    at org.mozilla.javascript.Interpreter.interpret(Interpreter.java:2394)
    at org.mozilla.javascript.InterpretedFunction.exec(InterpretedFunction.java:176)
    at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine$5.doRun(JavaScriptEngine.java:429)
    at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine$HtmlUnitContextAction.run(JavaScriptEngine.java:553)
    ... 94 more
    WrappedException: org.mozilla.javascript.WrappedException: Wrapped com.gargoylesoftware.htmlunit.ScriptException: Wrapped com.gargoylesoftware.htmlunit.ScriptException: TypeError: Cannot read property "length" from undefined (http://negrainau.tilsor.com.uy:7777/uiSipi/adf/jsLibs/Common10_1_3_3_0.js#4384) (http://negrainau.tilsor.com.uy:7777/uiSipi/adf/jsLibs/Common10_1_3_3_0.js#4177) (http://negrainau.tilsor.com.uy:7777/uiSipi/adf/jsLibs/Common10_1_3_3_0.js#3006)
    at org.mozilla.javascript.Context.throwAsScriptRuntimeEx(Context.java:1757)
    at org.mozilla.javascript.MemberBox.invoke(MemberBox.java:170)
    at org.mozilla.javascript.FunctionObject.call(FunctionObject.java:474)
    at org.mozilla.javascript.Interpreter.interpretLoop(Interpreter.java:3237)
    at script.submitForm(http://negrainau.tilsor.com.uy:7777/uiSipi/adf/jsLibs/Common10_1_3_3_0.js:3006)
    at script._submitPartialChange(http://negrainau.tilsor.com.uy:7777/uiSipi/adf/jsLibs/Common10_1_3_3_0.js:4096)
    at script._adfspu(script in http://negrainau.tilsor.com.uy:7777/uiSipi/faces/busquedaAuditoriaBusquedas.jspx from (2, 3284) to (0, 0):2)
    at script(onclick event for HtmlAnchor[a href="#" onclick="_adfspu('form1',0,0,'form1:usuarioSelectInputText',{part:'b'});return false;"]:1)
    at org.mozilla.javascript.Interpreter.interpret(Interpreter.java:2394)
    at org.mozilla.javascript.InterpretedFunction.call(InterpretedFunction.java:162)
    at org.mozilla.javascript.ContextFactory.doTopCall(ContextFactory.java:393)
    at com.gargoylesoftware.htmlunit.javascript.HtmlUnitContextFactory.doTopCall(HtmlUnitContextFactory.java:192)
    at org.mozilla.javascript.ScriptRuntime.doTopCall(ScriptRuntime.java:2834)
    at org.mozilla.javascript.InterpretedFunction.call(InterpretedFunction.java:160)
    at com.gargoylesoftware.htmlunit.javascript.host.EventHandler.call(EventHandler.java:100)
    at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine.callFunction(JavaScriptEngine.java:499)
    at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine$6.doRun(JavaScriptEngine.java:463)
    at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine$HtmlUnitContextAction.run(JavaScriptEngine.java:553)
    at org.mozilla.javascript.Context.call(Context.java:564)
    at org.mozilla.javascript.Context.call(Context.java:499)
    at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine.callFunction(JavaScriptEngine.java:470)
    at com.gargoylesoftware.htmlunit.html.HtmlPage.executeJavaScriptFunctionIfPossible(HtmlPage.java:1003)
    at com.gargoylesoftware.htmlunit.javascript.host.EventListenersContainer.executeEventHandler(EventListenersContainer.java:173)
    at com.gargoylesoftware.htmlunit.javascript.host.EventListenersContainer.executeBubblingListeners(EventListenersContainer.java:186)
    at com.gargoylesoftware.htmlunit.javascript.host.Node.fireEvent(Node.java:590)
    at com.gargoylesoftware.htmlunit.html.HtmlElement$2.run(HtmlElement.java:1257)
    at org.mozilla.javascript.Context.call(Context.java:577)
    at org.mozilla.javascript.Context.call(Context.java:499)
    at com.gargoylesoftware.htmlunit.html.HtmlElement.fireEvent(HtmlElement.java:1261)
    at com.gargoylesoftware.htmlunit.html.ClickableElement.click(ClickableElement.java:135)
    at com.gargoylesoftware.htmlunit.html.ClickableElement.click(ClickableElement.java:109)
    at com.gargoylesoftware.htmlunit.html.ClickableElement.click(ClickableElement.java:87)
    at uy.com.tilsor.sipi.testing.auditoria.TSCUAUD4.test1(TSCUAUD4.java:99)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:585)
    at junit.framework.TestCase.runTest(TestCase.java:154)
    at junit.framework.TestCase.runBare(TestCase.java:127)
    at junit.framework.TestResult$1.protect(TestResult.java:106)
    at junit.framework.TestResult.runProtected(TestResult.java:124)
    at junit.framework.TestResult.run(TestResult.java:109)
    at junit.framework.TestCase.run(TestCase.java:118)
    at junit.framework.TestSuite.runTest(TestSuite.java:208)
    at junit.framework.TestSuite.run(TestSuite.java:203)
    at oracle.jdevimpl.junit.runner.TestRunner.doRun(TestRunner.java:111)
    at oracle.jdevimpl.junit.runner.TestRunner.start(TestRunner.java:91)
    at oracle.jdevimpl.junit.runner.TestRunner.main(TestRunner.java:43)
    Caused by: com.gargoylesoftware.htmlunit.ScriptException: Wrapped com.gargoylesoftware.htmlunit.ScriptException: TypeError: Cannot read property "length" from undefined (http://negrainau.tilsor.com.uy:7777/uiSipi/adf/jsLibs/Common10_1_3_3_0.js#4384) (http://negrainau.tilsor.com.uy:7777/uiSipi/adf/jsLibs/Common10_1_3_3_0.js#4177)
    at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine$HtmlUnitContextAction.run(JavaScriptEngine.java:557)
    at org.mozilla.javascript.Context.call(Context.java:564)
    at org.mozilla.javascript.Context.call(Context.java:499)
    at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine.execute(JavaScriptEngine.java:438)
    at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine.execute(JavaScriptEngine.java:412)
    at com.gargoylesoftware.htmlunit.html.HtmlPage.executeJavaScriptIfPossible(HtmlPage.java:968)
    at com.gargoylesoftware.htmlunit.html.HtmlScript.executeInlineScriptIfNeeded(HtmlScript.java:262)
    at com.gargoylesoftware.htmlunit.html.HtmlScript.appendDomChild(HtmlScript.java:174)
    at com.gargoylesoftware.htmlunit.html.HTMLParser$HtmlUnitDOMBuilder.handleCharacters(HTMLParser.java:508)
    at com.gargoylesoftware.htmlunit.html.HTMLParser$HtmlUnitDOMBuilder.endElement(HTMLParser.java:466)
    at org.apache.xerces.parsers.AbstractSAXParser.endElement(Unknown Source)
    at org.cyberneko.html.filters.DefaultFilter.endElement(DefaultFilter.java:249)
    at org.cyberneko.html.filters.NamespaceBinder.endElement(NamespaceBinder.java:367)
    at org.cyberneko.html.HTMLTagBalancer.callEndElement(HTMLTagBalancer.java:1015)
    at org.cyberneko.html.HTMLTagBalancer.endElement(HTMLTagBalancer.java:888)
    at org.cyberneko.html.HTMLScanner$SpecialScanner.scan(HTMLScanner.java:2831)
    at org.cyberneko.html.HTMLScanner.scanDocument(HTMLScanner.java:809)
    at org.cyberneko.html.HTMLConfiguration.parse(HTMLConfiguration.java:478)
    at org.cyberneko.html.HTMLConfiguration.parse(HTMLConfiguration.java:431)
    at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
    at com.gargoylesoftware.htmlunit.html.HTMLParser.parse(HTMLParser.java:257)
    at com.gargoylesoftware.htmlunit.DefaultPageCreator.createHtmlPage(DefaultPageCreator.java:116)
    at com.gargoylesoftware.htmlunit.DefaultPageCreator.createPage(DefaultPageCreator.java:89)
    at com.gargoylesoftware.htmlunit.WebClient.loadWebResponseInto(WebClient.java:453)
    at com.gargoylesoftware.htmlunit.WebClient.getPage(WebClient.java:362)
    at com.gargoylesoftware.htmlunit.WebClient.getPage(WebClient.java:385)
    at com.gargoylesoftware.htmlunit.html.HtmlForm.submit(HtmlForm.java:187)
    at com.gargoylesoftware.htmlunit.javascript.host.HTMLFormElement.jsxFunction_submit(HTMLFormElement.java:244)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:585)
    at org.mozilla.javascript.MemberBox.invoke(MemberBox.java:155)
    ... 42 more
    Caused by: org.mozilla.javascript.WrappedException: Wrapped com.gargoylesoftware.htmlunit.ScriptException: TypeError: Cannot read property "length" from undefined (http://negrainau.tilsor.com.uy:7777/uiSipi/adf/jsLibs/Common10_1_3_3_0.js#4384) (http://negrainau.tilsor.com.uy:7777/uiSipi/adf/jsLibs/Common10_1_3_3_0.js#4177)
    at org.mozilla.javascript.Context.throwAsScriptRuntimeEx(Context.java:1757)
    at org.mozilla.javascript.MemberBox.invoke(MemberBox.java:170)
    at org.mozilla.javascript.FunctionObject.call(FunctionObject.java:474)
    at org.mozilla.javascript.Interpreter.interpretLoop(Interpreter.java:3237)
    at org.mozilla.javascript.Interpreter.interpret(Interpreter.java:2394)
    at org.mozilla.javascript.InterpretedFunction.exec(InterpretedFunction.java:176)
    at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine$5.doRun(JavaScriptEngine.java:429)
    at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine$HtmlUnitContextAction.run(JavaScriptEngine.java:553)
    ... 74 more
    Caused by: com.gargoylesoftware.htmlunit.ScriptException: TypeError: Cannot read property "length" from undefined (http://negrainau.tilsor.com.uy:7777/uiSipi/adf/jsLibs/Common10_1_3_3_0.js#4384)
    at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine$HtmlUnitContextAction.run(JavaScriptEngine.java:557)
    at org.mozilla.javascript.Context.call(Context.java:564)
    at org.mozilla.javascript.Context.call(Context.java:499)
    at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine.execute(JavaScriptEngine.java:438)
    at com.gargoylesoftware.htmlunit.html.HtmlPage.loadExternalJavaScriptFile(HtmlPage.java:1046)
    at com.gargoylesoftware.htmlunit.html.HtmlScript.executeScriptIfNeeded(HtmlScript.java:289)
    at com.gargoylesoftware.htmlunit.html.HtmlScript.onAddedToPage(HtmlScript.java:210)
    at com.gargoylesoftware.htmlunit.html.HtmlPage.notifyNodeAdded(HtmlPage.java:1741)
    at com.gargoylesoftware.htmlunit.html.DomNode.insertBefore(DomNode.java:964)
    at com.gargoylesoftware.htmlunit.javascript.host.Node.jsxFunction_insertBefore(Node.java:257)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:585)
    at org.mozilla.javascript.MemberBox.invoke(MemberBox.java:155)
    ... 80 more
    Caused by: org.mozilla.javascript.EcmaError: TypeError: Cannot read property "length" from undefined (http://negrainau.tilsor.com.uy:7777/uiSipi/adf/jsLibs/Common10_1_3_3_0.js#4384)
    at org.mozilla.javascript.ScriptRuntime.constructError(ScriptRuntime.java:3350)
    at org.mozilla.javascript.ScriptRuntime.constructError(ScriptRuntime.java:3340)
    at org.mozilla.javascript.ScriptRuntime.typeError(ScriptRuntime.java:3356)
    at org.mozilla.javascript.ScriptRuntime.typeError2(ScriptRuntime.java:3375)
    at org.mozilla.javascript.ScriptRuntime.undefReadError(ScriptRuntime.java:3388)
    at org.mozilla.javascript.ScriptRuntime.getObjectProp(ScriptRuntime.java:1362)
    at org.mozilla.javascript.Interpreter.interpretLoop(Interpreter.java:2965)
    at org.mozilla.javascript.Interpreter.interpret(Interpreter.java:2394)
    at org.mozilla.javascript.InterpretedFunction.exec(InterpretedFunction.java:176)
    at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine$5.doRun(JavaScriptEngine.java:429)
    at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine$HtmlUnitContextAction.run(JavaScriptEngine.java:553)
    ... 94 more
    Inside wrapped exception:
    ======= EXCEPTION START ========
    Exception class=[org.mozilla.javascript.WrappedException]
    com.gargoylesoftware.htmlunit.ScriptException: Wrapped com.gargoylesoftware.htmlunit.ScriptException: TypeError: Cannot read property "length" from undefined (http://negrainau.tilsor.com.uy:7777/uiSipi/adf/jsLibs/Common10_1_3_3_0.js#4384) (http://negrainau.tilsor.com.uy:7777/uiSipi/adf/jsLibs/Common10_1_3_3_0.js#4177)
    at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine$HtmlUnitContextAction.run(JavaScriptEngine.java:557)
    at org.mozilla.javascript.Context.call(Context.java:564)
    at org.mozilla.javascript.Context.call(Context.java:499)
    at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine.execute(JavaScriptEngine.java:438)
    at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine.execute(JavaScriptEngine.java:412)
    at com.gargoylesoftware.htmlunit.html.HtmlPage.executeJavaScriptIfPossible(HtmlPage.java:968)
    at com.gargoylesoftware.htmlunit.html.HtmlScript.executeInlineScriptIfNeeded(HtmlScript.java:262)
    at com.gargoylesoftware.htmlunit.html.HtmlScript.appendDomChild(HtmlScript.java:174)
    at com.gargoylesoftware.htmlunit.html.HTMLParser$HtmlUnitDOMBuilder.handleCharacters(HTMLParser.java:508)
    at com.gargoylesoftware.htmlunit.html.HTMLParser$HtmlUnitDOMBuilder.endElement(HTMLParser.java:466)
    at org.apache.xerces.parsers.AbstractSAXParser.endElement(Unknown Source)
    at org.cyberneko.html.filters.DefaultFilter.endElement(DefaultFilter.java:249)
    at org.cyberneko.html.filters.NamespaceBinder.endElement(NamespaceBinder.java:367)
    at org.cyberneko.html.HTMLTagBalancer.callEndElement(HTMLTagBalancer.java:1015)
    at org.cyberneko.html.HTMLTagBalancer.endElement(HTMLTagBalancer.java:888)
    at org.cyberneko.html.HTMLScanner$SpecialScanner.scan(HTMLScanner.java:2831)
    at org.cyberneko.html.HTMLScanner.scanDocument(HTMLScanner.java:809)
    at org.cyberneko.html.HTMLConfiguration.parse(HTMLConfiguration.java:478)
    at org.cyberneko.html.HTMLConfiguration.parse(HTMLConfiguration.java:431)
    at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
    at com.gargoylesoftware.htmlunit.html.HTMLParser.parse(HTMLParser.java:257)
    at com.gargoylesoftware.htmlunit.DefaultPageCreator.createHtmlPage(DefaultPageCreator.java:116)
    at com.gargoylesoftware.htmlunit.DefaultPageCreator.createPage(DefaultPageCreator.java:89)
    at com.gargoylesoftware.htmlunit.WebClient.loadWebResponseInto(WebClient.java:453)
    at com.gargoylesoftware.htmlunit.WebClient.getPage(WebClient.java:362)
    at com.gargoylesoftware.htmlunit.WebClient.getPage(WebClient.java:385)
    at com.gargoylesoftware.htmlunit.html.HtmlForm.submit(HtmlForm.java:187)
    at com.gargoylesoftware.htmlunit.javascript.host.HTMLFormElement.jsxFunction_submit(HTMLFormElement.java:244)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:585)
    at org.mozilla.javascript.MemberBox.invoke(MemberBox.java:155)
    at org.mozilla.javascript.FunctionObject.call(FunctionObject.java:474)
    at org.mozilla.javascript.Interpreter.interpretLoop(Interpreter.java:3237)
    at org.mozilla.javascript.Interpreter.interpret(Interpreter.java:2394)
    at org.mozilla.javascript.InterpretedFunction.call(InterpretedFunction.java:162)
    at org.mozilla.javascript.ContextFactory.doTopCall(ContextFactory.java:393)
    at com.gargoylesoftware.htmlunit.javascript.HtmlUnitContextFactory.doTopCall(HtmlUnitContextFactory.java:192)
    at org.mozilla.javascript.ScriptRuntime.doTopCall(ScriptRuntime.java:2834)
    at org.mozilla.javascript.InterpretedFunction.call(InterpretedFunction.java:160)
    at com.gargoylesoftware.htmlunit.javascript.host.EventHandler.call(EventHandler.java:100)
    at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine.callFunction(JavaScriptEngine.java:499)
    at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine$6.doRun(JavaScriptEngine.java:463)
    at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine$HtmlUnitContextAction.run(JavaScriptEngine.java:553)
    at org.mozilla.javascript.Context.call(Context.java:564)
    at org.mozilla.javascript.Context.call(Context.java:499)
    at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine.callFunction(JavaScriptEngine.java:470)
    at com.gargoylesoftware.htmlunit.html.HtmlPage.executeJavaScriptFunctionIfPossible(HtmlPage.java:1003)
    at com.gargoylesoftware.htmlunit.javascript.host.EventListenersContainer.executeEventHandler(EventListenersContainer.java:173)
    at com.gargoylesoftware.htmlunit.javascript.host.EventListenersContainer.executeBubblingListeners(EventListenersContainer.java:186)
    at com.gargoylesoftware.htmlunit.javascript.host.Node.fireEvent(Node.java:590)
    at com.gargoylesoftware.htmlunit.html.HtmlElement$2.run(HtmlElement.java:1257)
    at org.mozilla.javascript.Context.call(Context.java:577)
    at org.mozilla.javascript.Context.call(Context.java:499)
    at com.gargoylesoftware.htmlunit.html.HtmlElement.fireEvent(HtmlElement.java:1261)
    at com.gargoylesoftware.htmlunit.html.ClickableElement.click(ClickableElement.java:135)
    at com.gargoylesoftware.htmlunit.html.ClickableElement.click(ClickableElement.java:109)
    at com.gargoylesoftware.htmlunit.html.ClickableElement.click(ClickableElement.java:87)
    at uy.com.tilsor.sipi.testing.auditoria.TSCUAUD4.test1(TSCUAUD4.java:99)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:585)
    at junit.framework.TestCase.runTest(TestCase.java:154)
    at junit.framework.TestCase.runBare(TestCase.java:127)
    at junit.framework.TestResult$1.protect(TestResult.java:106)
    at junit.framework.TestResult.runProtected(TestResult.java:124)
    at junit.framework.TestResult.run(TestResult.java:109)
    at junit.framework.TestCase.run(TestCase.java:118)
    at junit.framework.TestSuite.runTest(TestSuite.java:208)
    at junit.framework.TestSuite.run(TestSuite.java:203)
    at oracle.jdevimpl.junit.runner.TestRunner.doRun(TestRunner.java:111)
    at oracle.jdevimpl.junit.runner.TestRunner.start(TestRunner.java:91)
    at oracle.jdevimpl.junit.runner.TestRunner.main(TestRunner.java:43)
    Caused by: org.mozilla.javascript.WrappedException: Wrapped com.gargoylesoftware.htmlunit.ScriptException: TypeError: Cannot read property "length" from undefined (http://negrainau.tilsor.com.uy:7777/uiSipi/adf/jsLibs/Common10_1_3_3_0.js#4384) (http://negrainau.tilsor.com.uy:7777/uiSipi/adf/jsLibs/Common10_1_3_3_0.js#4177)
    at org.mozilla.javascript.Context.throwAsScriptRuntimeEx(Context.java:1757)
    at org.mozilla.javascript.MemberBox.invoke(MemberBox.java:170)
    at org.mozilla.javascript.FunctionObject.call(FunctionObject.java:474)
    at org.mozilla.javascript.Interpreter.interpretLoop(Interpreter.java:3237)
    at org.mozilla.javascript.Interpreter.interpret(Interpreter.java:2394)
    at org.mozilla.javascript.InterpretedFunction.exec(InterpretedFunction.java:176)
    at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine$5.doRun(JavaScriptEngine.java:429)
    at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine$HtmlUnitContextAction.run(JavaScriptEngine.java:553)
    ... 74 more
    Caused by: com.gargoylesoftware.htmlunit.ScriptException: TypeError: Cannot read property "length" from undefined (http://negrainau.tilsor.com.uy:7777/uiSipi/adf/jsLibs/Common10_1_3_3_0.js#4384)
    at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine$HtmlUnitContextAction.run(JavaScriptEngine.java:557)
    at org.mozilla.javascript.Context.call(Context.java:564)
    at org.mozilla.javascript.Context.call(Context.java:499)
    at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine.execute(JavaScriptEngine.java:438)
    at com.gargoylesoftware.htmlunit.html.HtmlPage.loadExternalJavaScriptFile(HtmlPage.java:1046)
    at com.gargoylesoftware.htmlunit.html.HtmlScript.executeScriptIfNeeded(HtmlScript.java:289)
    at com.gargoylesoftware.htmlunit.html.HtmlScript.onAddedToPage(HtmlScript.java:210)
    at com.gargoylesoftware.htmlunit.html.HtmlPage.notifyNodeAdded(HtmlPage.java:1741)
    at com.gargoylesoftware.htmlunit.html.DomNode.insertBefore(DomNode.java:964)
    at com.gargoylesoftware.htmlunit.javascript.host.Node.jsxFunction_insertBefore(Node.java:257)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:585)
    at org.mozilla.javascript.MemberBox.invoke(MemberBox.java:155)
    ... 80 more
    Caused by: org.mozilla.javascript.EcmaError: TypeError: Cannot read property "length" from undefined (http://negrainau.tilsor.com.uy:7777/uiSipi/adf/jsLibs/Common10_1_3_3_0.js#4384)
    at org.mozilla.javascript.ScriptRuntime.constructError(ScriptRuntime.java:3350)
    at org.mozilla.javascript.ScriptRuntime.constructError(ScriptRuntime.java:3340)
    at org.mozilla.javascript.ScriptRuntime.typeError(ScriptRuntime.java:3356)
    at org.mozilla.javascript.ScriptRuntime.typeError2(ScriptRuntime.java:3375)
    at org.mozilla.javascript.ScriptRuntime.undefReadError(ScriptRuntime.java:3388)
    at org.mozilla.javascript.ScriptRuntime.getObjectProp(ScriptRuntime.java:1362)
    at org.mozilla.javascript.Interpreter.interpretLoop(Interpreter.java:2965)
    at org.mozilla.javascript.Interpreter.interpret(Interpreter.java:2394)
    at org.mozilla.javascript.InterpretedFunction.exec(InterpretedFunction.java:176)
    at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine$5.doRun(JavaScriptEngine.java:429)
    at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine$HtmlUnitContextAction.run(JavaScriptEngine.java:553)
    ... 94 more
    WrappedException: org.mozilla.javascript.WrappedException: Wrapped com.gargoylesoftware.htmlunit.ScriptException: TypeError: Cannot read property "length" from undefined (http://negrainau.tilsor.com.uy:7777/uiSipi/adf/jsLibs/Common10_1_3_3_0.js#4384) (http://negrainau.tilsor.com.uy:7777/uiSipi/adf/jsLibs/Common10_1_3_3_0.js#4177)
    at org.mozilla.javascript.Context.throwAsScriptRuntimeEx(Context.java:1757)
    at org.mozilla.javascript.MemberBox.invoke(MemberBox.java:170)
    at org.mozilla.javascript.FunctionObject.call(FunctionObject.java:474)
    at org.mozilla.javascript.Interpreter.interpretLoop(Interpreter.java:3237)
    at script._loadScriptLibrariesGecko(http://negrainau.tilsor.com.uy:7777/uiSipi/adf/jsLibs/Common10_1_3_3_0.js:4177)
    at script._loadScriptLibraries(http://negrainau.tilsor.com.uy:7777/uiSipi/adf/jsLibs/Common10_1_3_3_0.js:4195)
    at script._partialChange(http://negrainau.tilsor.com.uy:7777/uiSipi/adf/jsLibs/Common10_1_3_3_0.js:5578)
    at script(script in http://negrainau.tilsor.com.uy:7777/uiSipi/faces/busquedaAuditoriaBusquedas.jspx?_afPfm=1 from (5, 1014) to (0, 0):5)
    at org.mozilla.javascript.Interpreter.interpret(Interpreter.java:2394)
    at org.mozilla.javascript.InterpretedFunction.exec(InterpretedFunction.java:176)
    at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine$5.doRun(JavaScriptEngine.java:429)
    at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine$HtmlUnitContextAction.run(JavaScriptEngine.java:553)
    at org.mozilla.javascript.Context.call(Context.java:564)
    at org.mozilla.javascript.Context.call(Context.java:499)
    at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine.execute(JavaScriptEngine.java:438)
    at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine.execute(JavaScriptEngine.java:412)
    at com.gargoylesoftware.htmlunit.html.HtmlPage.executeJavaScriptIfPossible(HtmlPage.java:968)
    at com.gargoylesoftware.htmlunit.html.HtmlScript.executeInlineScriptIfNeeded(HtmlScript.java:262)
    at com.gargoylesoftware.htmlunit.html.HtmlScript.appendDomChild(HtmlScript.java:174)
    at com.gargoylesoftware.htmlunit.html.HTMLParser$HtmlUnitDOMBuilder.handleCharacters(HTMLParser.java:508)
    at com.gargoylesoftware.htmlunit.html.HTMLParser$HtmlUnitDOMBuilder.endElement(HTMLParser.java:466)
    at org.apache.xerces.parsers.AbstractSAXParser.endElement(Unknown Source)
    at org.cyberneko.html.filters.DefaultFilter.endElement(DefaultFilter.java:249)
    at org.cyberneko.html.filters.NamespaceBinder.endElement(NamespaceBinder.java:367)
    at org.cyberneko.html.HTMLTagBalancer.callEndElement(HTMLTagBalancer.java:1015)
    at org.cyberneko.html.HTMLTagBalancer.endElement(HTMLTagBalancer.java:888)
    at org.cyberneko.html.HTMLScanner$SpecialScanner.scan(HTMLScanner.java:2831)
    at org.cyberneko.html.HTMLScanner.scanDocument(HTMLScanner.java:809)
    at org.cyberneko.html.HTMLConfiguration.parse(HTMLConfiguration.java:478)
    at org.cyberneko.html.HTMLConfiguration.parse(HTMLConfiguration.java:431)
    at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
    at com.gargoylesoftware.htmlunit.html.HTMLParser.parse(HTMLParser.java:257)
    at com.gargoylesoftware.htmlunit.DefaultPageCreator.createHtmlPage(DefaultPageCreator.java:116)
    at com.gargoylesoftware.htmlunit.DefaultPageCreator.createPage(DefaultPageCreator.java:89)
    at com.gargoylesoftware.htmlunit.WebClient.loadWebResponseInto(WebClient.java:453)
    at com.gargoylesoftware.htmlunit.WebClient.getPage(WebClient.java:362)
    at com.gargoylesoftware.htmlunit.WebClient.getPage(WebClient.java:385)
    at com.gargoylesoftware.htmlunit.html.HtmlForm.submit(HtmlForm.java:187)
    at com.gargoylesoftware.htmlunit.javascript.host.HTMLFormElement.jsxFunction_submit(HTMLFormElement.java:244)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:585)
    at org.mozilla.javascript.MemberBox.invoke(MemberBox.java:155)
    at org.mozilla.javascript.FunctionObject.call(FunctionObject.java:474)
    at org.mozilla.javascript.Interpreter.interpretLoop(Interpreter.java:3237)
    at script.submitForm(http://negrainau.tilsor.com.uy:7777/uiSipi/adf/jsLibs/Common10_1_3_3_0.js:3006)
    at script._submitPartialChange(http://negrainau.tilsor.com.uy:7777/uiSipi/adf/jsLibs/Common10_1_3_3_0.js:4096)
    at script._adfspu(script in http://negrainau.tilsor.com.uy:7777/uiSipi/faces/busquedaAuditoriaBusquedas.jspx from (2, 3284) to (0, 0):2)
    at script(onclick event for HtmlAnchor[a href="#" onclick="_adfspu('form1',0,0,'form1:usuarioSelectInputText',{part:'b'});return false;"]:1)
    at org.mozilla.javascript.Interpreter.interpret(Interpreter.java:2394)
    at org.mozilla.javascript.InterpretedFunction.call(InterpretedFunction.java:162)
    at org.mozilla.javascript.ContextFactory.doTopCall(ContextFactory.java:393)
    at com.gargoylesoftware.htmlunit.javascript.HtmlUnitContextFactory.doTopCall(HtmlUnitContextFactory.java:192)
    at org.mozilla.javascript.ScriptRuntime.doTopCall(ScriptRuntime.java:2834)
    at org.mozilla.javascript.InterpretedFunction.call(InterpretedFunction.java:160)
    at com.gargoylesoftware.htmlunit.javascript.host.EventHandler.call(EventHandler.java:100)
    at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine.callFunction(JavaScriptEngine.java:499)
    at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine$6.doRun(JavaScriptEngine.java:463)
    at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine$HtmlUnitContextAction.run(JavaScriptEngine.java:553)
    at org.mozilla.javascript.Context.call(Context.java:564)
    at org.mozilla.javascript.Context.call(Context.java:499)
    at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine.callFunction(JavaScriptEngine.java:470)
    at com.gargoylesoftware.htmlunit.html.HtmlPage.executeJavaScriptFunctionIfPossible(HtmlPage.java:1003)
    at com.gargoylesoftware.htmlunit.javascript.host.EventListenersContainer.executeEventHandler(EventListenersContainer.java:173)
    at com.gargoylesoftware.htmlunit.javascript.host.EventListenersContainer.executeBubblingListeners(EventListenersContainer.java:186)
    at com.gargoylesoftware.htmlunit.javascript.host.Node.fireEvent(Node.java:590)
    at com.gargoylesoftware.htmlunit.html.HtmlElement$2.run(HtmlElement.java:1257)
    at org.mozilla.javascript.Context.call(Context.java:577)
    at org.mozilla.javascript.Context.call(Context.java:499)
    at com.gargoylesoftware.htmlunit.html.HtmlElement.fireEvent(HtmlElement.java:1261)
    at com.gargoylesoftware.htmlunit.html.ClickableElement.click(ClickableElement.java:135)
    at com.gargoylesoftware.htmlunit.html.ClickableElement.click(ClickableElement.java:109)
    at com.gargoylesoftware.htmlunit.html.ClickableElement.click(ClickableElement.java:87)
    at uy.com.tilsor.sipi.testing.auditoria.TSCUAUD4.test1(TSCUAUD4.java:99)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:585)
    at junit.framework.TestCase.runTest(TestCase.java:154)
    at junit.framework.TestCase.runBare(TestCase.java:127)
    at junit.framework.TestResult$1.protect(TestResult.java:106)
    at junit.framework.TestResult.runProtected(TestResult.java:124)
    at junit.framework.TestResult.run(TestResult.java:109)
    at junit.framework.TestCase.run(TestCase.java:118)
    at junit.framework.TestSuite.runTest(TestSuite.java:208)
    at junit.framework.TestSuite.run(TestSuite.java:203)
    at oracle.jdevimpl.junit.runner.TestRunner.doRun(TestRunner.java:111)
    at oracle.jdevimpl.junit.runner.TestRunner.start(TestRunner.java:91)
    at oracle.jdevimpl.junit.runner.TestRunner.main(TestRunner.java:43)
    Caused by: com.gargoylesoftware.htmlunit.ScriptException: TypeError: Cannot read property "length" from undefined (http://negrainau.tilsor.com.uy:7777/uiSipi/adf/jsLibs/Common10_1_3_3_0.js#4384)
    at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine$HtmlUnitContextAction.run(JavaScriptEngine.java:557)
    at org.mozilla.javascript.Context.call(Context.java:564)
    at org.mozilla.javascript.Context.call(Context.java:499)
    at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine.execute(JavaScriptEngine.java:438)
    at com.gargoylesoftware.htmlunit.html.HtmlPage.loadExternalJavaScriptFile(HtmlPage.java:1046)
    at com.gargoylesoftware.htmlunit.html.HtmlScript.executeScriptIfNeeded(HtmlScript.java:289)
    at com.gargoylesoftware.htmlunit.html.HtmlScript.onAddedToPage(HtmlScript.java:210)
    at com.gargoylesoftware.htmlunit.html.HtmlPage.notifyNodeAdded(HtmlPage.java:1741)
    at com.gargoylesoftware.htmlunit.html.DomNode.insertBefore(DomNode.java:964)
    at com.gargoylesoftware.htmlunit.javascript.host.Node.jsxFunction_insertBefore(Node.java:257)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:585)
    at org.mozilla.javascript.MemberBox.invoke(MemberBox.java:155)
    ... 80 more
    Caused by: org.mozilla.javascript.EcmaError: TypeError: Cannot read property "length" from undefined (http://negrainau.tilsor.com.uy:7777/uiSipi/adf/jsLibs/Common10_1_3_3_0.js#4384)
    at org.mozilla.javascript.ScriptRuntime.constructError(ScriptRuntime.java:3350)
    at org.mozilla.javascript.ScriptRuntime.constructError(ScriptRuntime.java:3340)
    at org.mozilla.javascript.ScriptRuntime.typeError(ScriptRuntime.java:3356)
    at org.mozilla.javascript.ScriptRuntime.typeError2(ScriptRuntime.java:3375)
    at org.mozilla.javascript.ScriptRuntime.undefReadError(ScriptRuntime.java:3388)
    at org.mozilla.javascript.ScriptRuntime.getObjectProp(ScriptRuntime.java:1362)
    at org.mozilla.javascript.Interpreter.interpretLoop(Interpreter.java:2965)
    at org.mozilla.javascript.Interpreter.interpret(Interpreter.java:2394)
    at org.mozilla.javascript.InterpretedFunction.exec(InterpretedFunction.java:176)
    at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine$5.doRun(JavaScriptEngine.java:429)
    at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine$HtmlUnitContextAction.run(JavaScriptEngine.java:553)
    ... 94 more
    Inside wrapped exception:
    ======= EXCEPTION START ========
    EcmaError: lineNumber=[4384] column=[0] lineSource=[no source] name=[TypeError] sourceName=[http://negrainau.tilsor.com.uy:7777/uiSipi/adf/jsLibs/Common10_1_3_3_0.js] message=[TypeError: Cannot read property "length" from undefined (http://negrainau.tilsor.com.uy:7777/uiSipi/adf/jsLibs/Common10_1_3_3_0.js#4384)]
    com.gargoylesoftware.htmlunit.ScriptException: TypeError: Cannot read property "length" from undefined (http://negrainau.tilsor.com.uy:7777/uiSipi/adf/jsLibs/Common10_1_3_3_0.js#4384)
    at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine$HtmlUnitContextAction.run(JavaScriptEngine.java:557)
    at org.mozilla.javascript.Context.call(Context.java:564)
    at org.mozilla.javascript.Context.call(Context.java:499)
    at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine.execute(JavaScriptEngine.java:438)
    at com.gargoylesoftware.htmlunit.html.HtmlPage.loadExternalJavaScriptFile(HtmlPage.java:1046)
    at com.gargoylesoftware.htmlunit.html.HtmlScript.executeScriptIfNeeded(HtmlScript.java:289)
    at com.gargoylesoftware.htmlunit.html.HtmlScript.onAddedToPage(HtmlScript.java:210)
    at com.gargoylesoftware.htmlunit.html.HtmlPage.notifyNodeAdded(HtmlPage.java:1741)
    at com.gargoylesoftware.htmlunit.html.DomNode.insertBefore(DomNode.java:964)
    at com.gargoylesoftware.htmlunit.javascript.host.Node.jsxFunction_insertBefore(Node.java:257)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:585)
    at org.mozilla.javascript.MemberBox.invoke(MemberBox.java:155)
    at org.mozilla.javascript.FunctionObject.call(FunctionObject.java:474)
    at org.mozilla.javascript.Interpreter.interpretLoop(Interpreter.java:3237)
    at org.mozilla.javascript.Interpreter.interpret(Interpreter.java:2394)
    at org.mozilla.javascript.InterpretedFunction.exec(InterpretedFunction.java:176)
    at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine$5.doRun(JavaScriptEngine.java:429)
    at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine$HtmlUnitContextAction.run(JavaScriptEngine.java:553)
    at org.mozilla.javascript.Context.call(Context.java:564)
    at org.mozilla.javascript.Context.call(Context.java:499)
    at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine.execute(JavaScriptEngine.java:438)
    at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine.execute(JavaScriptEngine.java:412)
    at com.gargoylesoftware.htmlunit.html.HtmlPage.executeJavaScriptIfPossible(HtmlPage.java:968)
    at com.gargoylesoftware.htmlunit.html.HtmlScript.executeInlineScriptIfNeeded(HtmlScript.java:262)
    at com.gargoylesoftware.htmlunit.html.HtmlScript.appendDomChild(HtmlScript.java:174)
    at com.gargoylesoftware.htmlunit.html.HTMLParser$HtmlUnitDOMBuilder.handleCharacters(HTMLParser.java:508)
    at com.gargoylesoftware.htmlunit.html.HTMLParser$HtmlUnitDOMBuilder.endElement(HTMLParser.java:466)
    at org.apache.xerces.parsers.AbstractSAXParser.endElement(Unknown Source)
    at org.cyberneko.html.filters.DefaultFilter.endElement(DefaultFilter.java:249)
    at org.cyberneko.html.filters.NamespaceBinder.endElement(NamespaceBinder.java:367)
    at org.cyberneko.html.HTMLTagBalancer.callEndElement(HTMLTagBalancer.java:1015)
    at org.cyberneko.html.HTMLTagBalancer.endElement(HTMLTagBalancer.java:888)
    at org.cyberneko.html.HTMLScanner$SpecialScanner.scan(HTMLScanner.java:2831)
    at org.cyberneko.html.HTMLScanner.scanDocument(HTMLScanner.java:809)
    at org.cyberneko.html.HTMLConfiguration.parse(HTMLConfiguration.java:478)
    at org.cyberneko.html.HTMLConfiguration.parse(HTMLConfiguration.java:431)
    at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
    at com.gargoylesoftware.htmlunit.html.HTMLParser.parse(HTMLParser.java:257)
    at com.gargoylesoftware.htmlunit.DefaultPageCreator.createHtmlPage(DefaultPageCreator.java:116)
    at com.gargoylesoftware.htmlunit.DefaultPageCreator.createPage(DefaultPageCreator.java:89)
    at com.gargoylesoftware.htmlunit.WebClient.loadWebResponseInto(WebClient.java:453)
    at com.gargoylesoftware.htmlunit.WebClient.getPage(WebClient.java:362)
    at com.gargoylesoftware.htmlunit.WebClient.getPage(WebClient.java:385)
    at com.gargoylesoftware.htmlunit.html.HtmlForm.submit(HtmlForm.java:187)
    at com.gargoylesoftware.htmlunit.javascript.host.HTMLFormElement.jsxFunction_submit(HTMLFormElement.java:244)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:585)
    at org.mozilla.javascript.MemberBox.invoke(MemberBox.java:155)
    at org.mozilla.javascript.FunctionObject.call(FunctionObject.java:474)
    at org.mozilla.javascript.Interpreter.interpretLoop(Interpreter.java:3237)
    at org.mozilla.javascript.Interpreter.interpret(Interpreter.java:2394)
    at org.mozilla.javascript.InterpretedFunction.call(InterpretedFunction.java:162)
    at org.mozilla.javascript.ContextFactory.doTopCall(ContextFactory.java:393)
    at com.gargoylesoftware.htmlunit.javascript.HtmlUnitContextFactory.doTopCall(HtmlUnitContextFactory.java:192)
    at org.mozilla.javascript.ScriptRuntime.doTopCall(ScriptRuntime.java:2834)
    at org.mozilla.javascript.InterpretedFunction.call(InterpretedFunction.java:160)
    at com.gargoylesoftware.htmlunit.javascript.host.EventHandler.call(EventHandler.java:100)
    at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine.callFunction(JavaScriptEngine.java:499)
    at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine$6.doRun(JavaScriptEngine.java:463)
    at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine$HtmlUnitContextAction.run(JavaScriptEngine.java:553)
    at org.mozilla.javascript.Context.call(Context.java:564)
    at org.mozilla.javascript.Context.call(Context.java:499)
    at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine.callFunction(JavaScriptEngine.java:470)
    at com.gargoylesoftware.htmlunit.html.HtmlPage.executeJavaScriptFunctionIfPossible(HtmlPage.java:1003)
    at com.gargoylesoftware.htmlunit.javascript.host.EventListenersContainer.executeEventHandler(EventListenersContainer.java:173)
    at com.gargoylesoftware.htmlunit.javascript.host.EventListenersContainer.executeBubblingListeners(EventListenersContainer.java:186)
    at com.gargoylesoftware.htmlunit.javascript.host.Node.fireEvent(Node.java:590)
    at com.gargoylesoftware.htmlunit.html.HtmlElement$2.run(HtmlElement.java:1257)
    at org.mozilla.javascript.Context.call(Context.java:577)
    at org.mozilla.javascript.Context.call(Context.java:499)
    at com.gargoylesoftware.htmlunit.html.HtmlElement.fireEvent(HtmlElement.java:1261)
    at com.gargoylesoftware.htmlunit.html.ClickableElement.click(ClickableElement.java:135)
    at com.gargoylesoftware.htmlunit.html.ClickableElement.click(ClickableElement.java:109)
    at com.gargoylesoftware.htmlunit.html.ClickableElement.click(ClickableElement.java:87)
    at uy.com.tilsor.sipi.testing.auditoria.TSCUAUD4.test1(TSCUAUD4.java:99)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:585)
    at junit.framework.TestCase.runTest(TestCase.java:154)
    at junit.framework.TestCase.runBare(TestCase.java:127)
    at junit.framework.TestResult$1.protect(TestResult.java:106)
    at junit.framework.TestResult.runProtected(TestResult.java:124)
    at junit.framework.TestResult.run(TestResult.java:109)
    at junit.framework.TestCase.run(TestCase.java:118)
    at junit.framework.TestSuite.runTest(TestSuite.java:208)
    at junit.framework.TestSuite.run(TestSuite.java:203)
    at oracle.jdevimpl.junit.runner.TestRunner.doRun(TestRunner.java:111)
    at oracle.jdevimpl.junit.runner.TestRunner.start(TestRunner.java:91)
    at oracle.jdevimpl.junit.runner.TestRunner.main(TestRunner.java:43)
    Caused by: org.mozilla.javascript.EcmaError: TypeError: Cannot read property "length" from undefined (http://negrainau.tilsor.com.uy:7777/uiSipi/adf/jsLibs/Common10_1_3_3_0.js#4384)
    at org.mozilla.javascript.ScriptRuntime.constructError(ScriptRuntime.java:3350)
    at org.mozilla.javascript.ScriptRuntime.constructError(ScriptRuntime.java:3340)
    at org.mozilla.javascript.ScriptRuntime.typeError(ScriptRuntime.java:3356)
    at org.mozilla.javascript.ScriptRuntime.typeError2(ScriptRuntime.java:3375)
    at org.mozilla.javascript.ScriptRuntime.undefReadError(ScriptRuntime.java:3388)
    at org.mozilla.javascript.ScriptRuntime.getObjectProp(ScriptRuntime.java:1362)
    at org.mozilla.javascript.Interpreter.interpretLoop(Interpreter.java:2965)
    at org.mozilla.javascript.Interpreter.interpret(Interpreter.java:2394)
    at org.mozilla.javascript.InterpretedFunction.exec(InterpretedFunction.java:176)
    at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine$5.doRun(JavaScriptEngine.java:429)
    at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine$HtmlUnitContextAction.run(JavaScriptEngine.java:553)
    ... 94 more
    Enclosed exception:
    org.mozilla.javascript.EcmaError: TypeError: Cannot read property "length" from undefined (http://negrainau.tilsor.com.uy:7777/uiSipi/adf/jsLibs/Common10_1_3_3_0.js#4384)
    at org.mozilla.javascript.ScriptRuntime.constructError(ScriptRuntime.java:3350)
    at org.mozilla.javascript.ScriptRuntime.constructError(ScriptRuntime.java:3340)
    at org.mozilla.javascript.ScriptRuntime.typeError(ScriptRuntime.java:3356)
    at org.mozilla.javascript.ScriptRuntime.typeError2(ScriptRuntime.java:3375)
    at org.mozilla.javascript.ScriptRuntime.undefReadError(ScriptRuntime.java:3388)
    at org.mozilla.javascript.ScriptRuntime.getObjectProp(ScriptRuntime.java:1362)
    at org.mozilla.javascript.Interpreter.interpretLoop(Interpreter.java:2965)
    at script._getCommentedScript(http://negrainau.tilsor.com.uy:7777/uiSipi/adf/jsLibs/Common10_1_3_3_0.js:4384)
    at script(http://negrainau.tilsor.com.uy:7777/uiSipi/adf/jsLibs/ScriptEval10_1_3_3_0.js:6)
    at org.mozilla.javascript.Interpreter.interpret(Interpreter.java:2394)
    at org.mozilla.javascript.InterpretedFunction.exec(InterpretedFunction.java:176)
    at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine$5.doRun(JavaScriptEngine.java:429)
    at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine$HtmlUnitContextAction.run(JavaScriptEngine.java:553)
    at org.mozilla.javascript.Context.call(Context.java:564)
    at org.mozilla.javascript.Context.call(Context.java:499)
    at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine.execute(JavaScriptEngine.java:438)
    at com.gargoylesoftware.htmlunit.html.HtmlPage.loadExternalJavaScriptFile(HtmlPage.java:1046)
    at com.gargoylesoftware.htmlunit.html.HtmlScript.executeScriptIfNeeded(HtmlScript.java:289)
    at com.gargoylesoftware.htmlunit.html.HtmlScript.onAddedToPage(HtmlScript.java:210)
    at com.gargoylesoftware.htmlunit.html.HtmlPage.notifyNodeAdded(HtmlPage.java:1741)
    at com.gargoylesoftware.htmlunit.html.DomNode.insertBefore(DomNode.java:964)
    at com.gargoylesoftware.htmlunit.javascript.host.Node.jsxFunction_insertBefore(Node.java:257)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:585)
    at org.mozilla.javascript.MemberBox.invoke(MemberBox.java:155)
    at org.mozilla.javascript.FunctionObject.call(FunctionObject.java:474)
    at org.mozilla.javascript.Interpreter.interpretLoop(Interpreter.java:3237)
    at script._loadScriptLibrariesGecko(http://negrainau.tilsor.com.uy:7777/uiSipi/adf/jsLibs/Common10_1_3_3_0.js:4177)
    at script._loadScriptLibraries(http://negrainau.tilsor.com.uy:7777/uiSipi/adf/jsLibs/Common10_1_3_3_0.js:4195)
    at script._partialChange(http://negrainau.tilsor.com.uy:7777/uiSipi/adf/jsLibs/Common10_1_3_3_0.js:5578)
    at script(script in http://negrainau.tilsor.com.uy:7777/uiSipi/faces/busquedaAuditoriaBusquedas.jspx?_afPfm=1 from (5, 1014) to (0, 0):5)
    at org.mozilla.javascript.Interpreter.interpret(Interpreter.java:2394)
    at org.mozilla.javascript.InterpretedFunction.exec(InterpretedFunction.java:176)
    at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine$5.doRun(JavaScriptEngine.java:429)
    at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine$HtmlUnitContextAction.run(JavaScriptEngine.java:553)
    at org.mozilla.javascript.Context.call(Context.java:564)
    at org.mozilla.javascript.Context.call(Context.java:499)
    at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine.execute(JavaScriptEngine.java:438)
    at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine.execute(JavaScriptEngine.java:412)
    at com.gargoylesoftware.htmlunit.html.HtmlPage.executeJavaScriptIfPossible(HtmlPage.java:968)
    at com.gargoylesoftware.htmlunit.html.HtmlScript.executeInlineScriptIfNeeded(HtmlScript.java:262)
    at com.gargoylesoftware.htmlunit.html.HtmlScript.appendDomChild(HtmlScript.java:174)
    at com.gargoylesoftware.htmlunit.html.HTMLParser$HtmlUnitDOMBuilder.handleCharacters(HTMLParser.java:508)
    at com.gargoylesoftware.htmlunit.html.HTMLParser$HtmlUnitDOMBuilder.endElement(HTMLParser.java:466)
    at org.apache.xerces.parsers.AbstractSAXParser.endElement(Unknown Source)
    at org.cyberneko.html.filters.DefaultFilter.endElement(DefaultFilter.java:249)
    at org.cyberneko.html.filters.NamespaceBinder.endElement(NamespaceBinder.java:367)
    at org.cyberneko.html.HTMLTagBalancer.callEndElement(HTMLTagBalancer.java:1015)
    at org.cyberneko.html.HTMLTagBalancer.endElement(HTMLTagBalancer.java:888)
    at org.cyberneko.html.HTMLScanner$SpecialScanner.scan(HTMLScanner.java:2831)
    at org.cyberneko.html.HTMLScanner.scanDocument(HTMLScanner.java:809)
    at org.cyberneko.html.HTMLConfiguration.parse(HTMLConfiguration.java:478)
    at org.cyberneko.html.HTMLConfiguration.parse(HTMLConfiguration.java:431)
    at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
    at com.gargoylesoftware.htmlunit.html.HTMLParser.parse(HTMLParser.java:257)
    at com.gargoylesoftware.htmlunit.DefaultPageCreator.createHtmlPage(DefaultPageCreator.java:116)
    at com.gargoylesoftware.htmlunit.DefaultPageCreator.createPage(DefaultPageCreator.java:89)
    at com.gargoylesoftware.htmlunit.WebClient.loadWebResponseInto(WebClient.java:453)
    at com.gargoylesoftware.htmlunit.WebClient.getPage(WebClient.java:362)
    at com.gargoylesoftware.htmlunit.WebClient.getPage(WebClient.java:385)
    at com.gargoylesoftware.htmlunit.html.HtmlForm.submit(HtmlForm.java:187)
    at com.gargoylesoftware.htmlunit.javascript.host.HTMLFormElement.jsxFunction_submit(HTMLFormElement.java:244)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:585)
    at org.mozilla.javascript.MemberBox.invoke(MemberBox.java:155)
    at org.mozilla.javascript.FunctionObject.call(FunctionObject.java:474)
    at org.mozilla.javascript.Interpreter.interpretLoop(Interpreter.java:3237)
    at script.submitForm(http://negrainau.tilsor.com.uy:7777/uiSipi/adf/jsLibs/Common10_1_3_3_0.js:3006)
    at script._submitPartialChange(http://negrainau.tilsor.com.uy:7777/uiSipi/adf/jsLibs/Common10_1_3_3_0.js:4096)
    at script._adfspu(script in http://negrainau.tilsor.com.uy:7777/uiSipi/faces/busquedaAuditoriaBusquedas.jspx from (2, 3284) to (0, 0):2)
    at script(onclick event for HtmlAnchor[a href="#" onclick="_adfspu('form1',0,0,'form1:usuarioSelectInputText',{part:'b'});return false;"]:1)
    at org.mozilla.javascript.Interpreter.interpret(Interpreter.java:2394)
    at org.mozilla.javascript.InterpretedFunction.call(InterpretedFunction.java:162)
    at org.mozilla.javascript.ContextFactory.doTopCall(ContextFactory.java:393)
    at com.gargoylesoftware.htmlunit.javascript.HtmlUnitContextFactory.doTopCall(HtmlUnitContextFactory.java:192)
    at org.mozilla.javascript.ScriptRuntime.doTopCall(ScriptRuntime.java:2834)
    at org.mozilla.javascript.InterpretedFunction.call(InterpretedFunction.java:160)
    at com.gargoylesoftware.htmlunit.javascript.host.EventHandler.call(EventHandler.java:100)
    at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine.callFunction(JavaScriptEngine.java:499)
    at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine$6.doRun(JavaScriptEngine.java:463)
    at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine$HtmlUnitContextAction.run(JavaScriptEngine.java:553)
    at org.mozilla.javascript.Context.call(Context.java:564)
    at org.mozilla.javascript.Context.call(Context.java:499)
    at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine.callFunction(JavaScriptEngine.java:470)
    at com.gargoylesoftware.htmlunit.html.HtmlPage.executeJavaScriptFunctionIfPossible(HtmlPage.java:1003)
    at com.gargoylesoftware.htmlunit.javascript.host.EventListenersContainer.executeEventHandler(EventListenersContainer.java:173)
    at com.gargoylesoftware.htmlunit.javascript.host.EventListenersContainer.executeBubblingListeners(EventListenersContainer.java:186)
    at com.gargoylesoftware.htmlunit.javascript.host.Node.fireEvent(Node.java:590)
    at com.gargoylesoftware.htmlunit.html.HtmlElement$2.run(HtmlElement.java:1257)
    at org.mozilla.javascript.Context.call(Context.java:577)
    at org.mozilla.javascript.Context.call(Context.java:499)
    at com.gargoylesoftware.htmlunit.html.HtmlElement.fireEvent(HtmlElement.java:1261)
    at com.gargoylesoftware.htmlunit.html.ClickableElement.click(ClickableElement.java:135)
    at com.gargoylesoftware.htmlunit.html.ClickableElement.click(ClickableElement.java:109)
    at com.gargoylesoftware.htmlunit.html.ClickableElement.click(ClickableElement.java:87)
    at uy.com.tilsor.sipi.testing.auditoria.TSCUAUD4.test1(TSCUAUD4.java:99)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:585)
    at junit.framework.TestCase.runTest(TestCase.java:154)
    at junit.framework.TestCase.runBare(TestCase.java:127)
    at junit.framework.TestResult$1.protect(TestResult.java:106)
    at junit.framework.TestResult.runProtected(TestResult.java:124)
    at junit.framework.TestResult.run(TestResult.java:109)
    at junit.framework.TestCase.run(TestCase.java:118)
    at junit.framework.TestSuite.runTest(TestSuite.java:208)
    at junit.framework.TestSuite.run(TestSuite.java:203)
    at oracle.jdevimpl.junit.runner.TestRunner.doRun(TestRunner.java:111)
    at oracle.jdevimpl.junit.runner.TestRunner.start(TestRunner.java:91)
    at oracle.jdevimpl.junit.runner.TestRunner.main(TestRunner.java:43)
    ======= EXCEPTION END ========
    ======= EXCEPTION END ========
    == CALLING JAVASCRIPT ==
    function () {
    [native code, arity=0]
    }

    ======= EXCEPTION END =======

    DB:2.32:Javascript Error Opening Popup (Testing Application With Htmlunit And Adf) 9k

    Hello,

    We are having a problem using HtmlUnit-1.14 to verify an application implemented using ADFFaces. The problem occurs once we try to open a popup which displays a jspx page that we have developed. When we try to open the popup using HTMLUnit we get an JavaScript error "..htmlunit.ScriptException: TypeError: Cannot find function importNode" (see the complete trace at the end of the message). This JavaScript error occurs inside the page that triggers the popup. We have configured HTMLUnit as to behave as FIREFOX_2. If we do the same using the browser (FirefoxX2) it works fine. We also try the same using the latest SNAPSHOT of HTMLUnit (htmlunit-2.0-SNAPSHOT.jar downloaded today 02/29/2008) and we get another exception "..htmlunit.ScriptException: TypeError: Cannot read property "length" from undefined" (see the complete trace at the end of the message).

    Additionaly, we have noticed that this error does't happends if we open a date chooser popup. It seems to happend only when the popup renders a jspx page.

    In the jspx we use the following code to open de popup:

    ----------------------------------
    af:selectInputText binding="#{backing_busquedaAuditoriaBusquedas.usuarioSelectInputText}"
    value="#{backing_busquedaAuditoriaBusquedas.filtros.usuario.nombre}"
    id="usuarioSelectInputText"
    windowHeight="500" windowWidth="500"
    autoSubmit="true"
    returnListener="#{backing_busquedaAuditoriaBusquedas.returnDialogoUsuario}"
    action="dialog:busquedaUsuariosDialog"/
    ----------------------------------

    The HTML code generated by this component is the following:

    ----------------------------------
    script
    var _pprUpdateMode=false;
    function _adfspu(f,v,e,s,o)
    {
    _pprUpdateMode=true;
    if(!o)
    o=new Object();
    o.event=(e)?e:'update';
    if(s)o.source=s;
    _submitPartialChange(f,v,o);
    }
    /script

    input autocomplete="off" readonly="readonly" id="form1:usuarioSelectInputText" name="form1:usuarioSelectInputText" onchange="_adfspu('form1',1,'form1:usuarioSelectInputText','form1:usuarioSelectInputText');return true;" class="x8" size="30" type="text"
    img src="/uiSipi/adf/images/t.gif" alt="" height="1" width="8"
    a href="# onclick="_adfspu('form1',0,0,'form1:usuarioSelectInputText',{part:'b');return false;"
    img src="/uiSipi/skins/sipi/skin_images/find_24.gif" style="" align="middle" border="0" height="24" width="24"
    /a
    ----------------------------------

    Once we click the anchor, HTMLUnit throws the exception shown at the end of this post. The exception ocurrs inside the JavaScript method "_submitPartialChange(f,v,o);".

    As we previously mentioned, it we use a date chooser component like "selectInputDate" which also displays a popup window (in order to choose the date) we do not get any error in HTMLUnit, i.e. the popup is correctly opened.

    The code used in the JSPX page for the selectInputDate is the following:

    ----------------------------------
    af:selectInputDate label="#{res['filtro.fechaDesde']}"
    binding="#{backing_busquedaAuditoriaBusquedas.fechaDesdeInput}"
    id="fechaDesdeInput" columns="25"
    value="#{backing_busquedaAuditoriaBusquedas.filtros.fechaDesde}"

    f:convertDateTime timeStyle="default" type="both"
    pattern="#{backing_common.timeDateFormat}"/
    /af:selectInputDate
    ----------------------------------

    And the HTML code generated:

    ----------------------------------
    script
    var _locale='es';
    var _tLocale='es';
    /script
    script src="/uiSipi/adf/jsLibs/resources/LocaleElements_es10_1_3_3_0.js"/script
    script
    var _df2DYS=1950;
    /script
    input id="form1:fechaDesdeInput" name="form1:fechaDesdeInput" onblur="_dfb(this)" class="x8" size="25" type="text"
    img src="/uiSipi/adf/images/t.gif" alt="" height="1" width="8"
    script
    var _jspDir='/uiSipi/faces/__ADFv__?_afPfm=2';
    var _enc='windows-1252';
    /script
    script
    var _uixLocaleTZ=-180;
    /script
    a href="#" onclick="_ldp('form1','form1:fechaDesdeInput'); return false"
    img src="/uiSipi/skins/sipi/skin_images/date32.png" style="padding-right: 5px;" title="Seleccionar para acceder al selector de fecha" alt="Seleccionar para acceder al selector de fecha" align="middle" border="0" height="20" width="16"
    /a
    ----------------------------------

    Any ideas of why this error may be happening?

    Thanks!

    **********************************
    Exception using HTMLUnit-1.14
    **********************************

    ======= EXCEPTION START ========
    Exception class=[org.mozilla.javascript.WrappedException]
    com.gargoylesoftware.htmlunit.ScriptException: Wrapped com.gargoylesoftware.htmlunit.ScriptException: TypeError: Cannot find function importNode. (http://negrainau.tilsor.com.uy:7777/uiSipi/adf/jsLibs/Common10_1_3_3_0.js#5707) (http://negrainau.tilsor.com.uy:7777/uiSipi/adf/jsLibs/Common10_1_3_3_0.js#3006)
    at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine$HtmlUnitContextAction.run(JavaScriptEngine.java:557)
    at org.mozilla.javascript.Context.call(Context.java:564)
    at org.mozilla.javascript.Context.call(Context.java:499)
    at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine.callFunction(JavaScriptEngine.java:470)
    at com.gargoylesoftware.htmlunit.html.HtmlPage.executeJavaScriptFunctionIfPossible(HtmlPage.java:751)
    at com.gargoylesoftware.htmlunit.javascript.host.EventListenersContainer.executeEventHandler(EventListenersContainer.java:175)
    at com.gargoylesoftware.htmlunit.javascript.host.EventListenersContainer.executeBubblingListeners(EventListenersContainer.java:188)
    at com.gargoylesoftware.htmlunit.javascript.host.Node.fireEvent(Node.java:565)
    at com.gargoylesoftware.htmlunit.html.HtmlElement$1.run(HtmlElement.java:1210)
    at org.mozilla.javascript.Context.call(Context.java:577)
    at org.mozilla.javascript.Context.call(Context.java:499)
    at com.gargoylesoftware.htmlunit.html.HtmlElement.fireEvent(HtmlElement.java:1214)
    at com.gargoylesoftware.htmlunit.html.ClickableElement.click(ClickableElement.java:135)
    at com.gargoylesoftware.htmlunit.html.ClickableElement.click(ClickableElement.java:109)
    at com.gargoylesoftware.htmlunit.html.ClickableElement.click(ClickableElement.java:87)
    at uy.com.tilsor.sipi.testing.auditoria.TSCUAUD4.test1(TSCUAUD4.java:99)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:585)
    at junit.framework.TestCase.runTest(TestCase.java:154)
    at junit.framework.TestCase.runBare(TestCase.java:127)
    at junit.framework.TestResult$1.protect(TestResult.java:106)
    at junit.framework.TestResult.runProtected(TestResult.java:124)
    at junit.framework.TestResult.run(TestResult.java:109)
    at junit.framework.TestCase.run(TestCase.java:118)
    at junit.framework.TestSuite.runTest(TestSuite.java:208)
    at junit.framework.TestSuite.run(TestSuite.java:203)
    at oracle.jdevimpl.junit.runner.TestRunner.doRun(TestRunner.java:111)
    at oracle.jdevimpl.junit.runner.TestRunner.start(TestRunner.java:91)
    at oracle.jdevimpl.junit.runner.TestRunner.main(TestRunner.java:43)
    Caused by: org.mozilla.javascript.WrappedException: Wrapped com.gargoylesoftware.htmlunit.ScriptException: TypeError: Cannot find function importNode. (http://negrainau.tilsor.com.uy:7777/uiSipi/adf/jsLibs/Common10_1_3_3_0.js#5707) (http://negrainau.tilsor.com.uy:7777/uiSipi/adf/jsLibs/Common10_1_3_3_0.js#3006)
    at org.mozilla.javascript.Context.throwAsScriptRuntimeEx(Context.java:1757)
    at org.mozilla.javascript.MemberBox.invoke(MemberBox.java:170)
    at org.mozilla.javascript.FunctionObject.call(FunctionObject.java:474)
    at org.mozilla.javascript.Interpreter.interpretLoop(Interpreter.java:3237)
    at org.mozilla.javascript.Interpreter.interpret(Interpreter.java:2394)
    at org.mozilla.javascript.InterpretedFunction.call(InterpretedFunction.java:162)
    at org.mozilla.javascript.ContextFactory.doTopCall(ContextFactory.java:393)
    at com.gargoylesoftware.htmlunit.javascript.HtmlUnitContextFactory.doTopCall(HtmlUnitContextFactory.java:185)
    at org.mozilla.javascript.ScriptRuntime.doTopCall(ScriptRuntime.java:2834)
    at org.mozilla.javascript.InterpretedFunction.call(InterpretedFunction.java:160)
    at com.gargoylesoftware.htmlunit.javascript.host.EventHandler.call(EventHandler.java:99)
    at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine.callFunction(JavaScriptEngine.java:499)
    at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine$6.doRun(JavaScriptEngine.java:464)
    at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine$HtmlUnitContextAction.run(JavaScriptEngine.java:553)
    ... 30 more
    Caused by: com.gargoylesoftware.htmlunit.ScriptException: TypeError: Cannot find function importNode. (http://negrainau.tilsor.com.uy:7777/uiSipi/adf/jsLibs/Common10_1_3_3_0.js#5707)
    at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine$HtmlUnitContextAction.run(JavaScriptEngine.java:557)
    at org.mozilla.javascript.Context.call(Context.java:564)
    at org.mozilla.javascript.Context.call(Context.java:499)
    at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine.execute(JavaScriptEngine.java:439)
    at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine.execute(JavaScriptEngine.java:414)
    at com.gargoylesoftware.htmlunit.html.HtmlPage.executeJavaScriptIfPossible(HtmlPage.java:716)
    at com.gargoylesoftware.htmlunit.html.HtmlScript.executeInlineScriptIfNeeded(HtmlScript.java:249)
    at com.gargoylesoftware.htmlunit.html.HtmlScript.appendDomChild(HtmlScript.java:185)
    at com.gargoylesoftware.htmlunit.html.HTMLParser$HtmlUnitDOMBuilder.handleCharacters(HTMLParser.java:443)
    at com.gargoylesoftware.htmlunit.html.HTMLParser$HtmlUnitDOMBuilder.endElement(HTMLParser.java:401)
    at org.apache.xerces.parsers.AbstractSAXParser.endElement(Unknown Source)
    at org.cyberneko.html.filters.DefaultFilter.endElement(DefaultFilter.java:249)
    at org.cyberneko.html.filters.NamespaceBinder.endElement(NamespaceBinder.java:367)
    at org.cyberneko.html.HTMLTagBalancer.callEndElement(HTMLTagBalancer.java:1015)
    at org.cyberneko.html.HTMLTagBalancer.endElement(HTMLTagBalancer.java:888)
    at org.cyberneko.html.HTMLScanner$SpecialScanner.scan(HTMLScanner.java:2831)
    at org.cyberneko.html.HTMLScanner.scanDocument(HTMLScanner.java:809)
    at org.cyberneko.html.HTMLConfiguration.parse(HTMLConfiguration.java:478)
    at org.cyberneko.html.HTMLConfiguration.parse(HTMLConfiguration.java:431)
    at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
    at com.gargoylesoftware.htmlunit.html.HTMLParser.parse(HTMLParser.java:253)
    at com.gargoylesoftware.htmlunit.DefaultPageCreator.createHtmlPage(DefaultPageCreator.java:116)
    at com.gargoylesoftware.htmlunit.DefaultPageCreator.createPage(DefaultPageCreator.java:89)
    at com.gargoylesoftware.htmlunit.WebClient.loadWebResponseInto(WebClient.java:450)
    at com.gargoylesoftware.htmlunit.WebClient.getPage(WebClient.java:359)
    at com.gargoylesoftware.htmlunit.WebClient.getPage(WebClient.java:382)
    at com.gargoylesoftware.htmlunit.html.HtmlForm.submit(HtmlForm.java:242)
    at com.gargoylesoftware.htmlunit.javascript.host.HTMLFormElement.jsxFunction_submit(HTMLFormElement.java:244)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:585)
    at org.mozilla.javascript.MemberBox.invoke(MemberBox.java:155)
    ... 42 more
    Caused by: org.mozilla.javascript.EcmaError: TypeError: Cannot find function importNode. (http://negrainau.tilsor.com.uy:7777/uiSipi/adf/jsLibs/Common10_1_3_3_0.js#5707)
    at org.mozilla.javascript.ScriptRuntime.constructError(ScriptRuntime.java:3350)
    at org.mozilla.javascript.ScriptRuntime.constructError(ScriptRuntime.java:3340)
    at org.mozilla.javascript.ScriptRuntime.typeError(ScriptRuntime.java:3356)
    at org.mozilla.javascript.ScriptRuntime.typeError1(ScriptRuntime.java:3368)
    at org.mozilla.javascript.ScriptRuntime.notFunctionError(ScriptRuntime.java:3428)
    at org.mozilla.javascript.ScriptRuntime.getPropFunctionAndThis(ScriptRuntime.java:2052)
    at org.mozilla.javascript.Interpreter.interpretLoop(Interpreter.java:3081)
    at org.mozilla.javascript.Interpreter.interpret(Interpreter.java:2394)
    at org.mozilla.javascript.InterpretedFunction.exec(InterpretedFunction.java:176)
    at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine$5.doRun(JavaScriptEngine.java:431)
    at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine$HtmlUnitContextAction.run(JavaScriptEngine.java:553)
    ... 74 more
    WrappedException: org.mozilla.javascript.WrappedException: Wrapped com.gargoylesoftware.htmlunit.ScriptException: TypeError: Cannot find function importNode. (http://negrainau.tilsor.com.uy:7777/uiSipi/adf/jsLibs/Common10_1_3_3_0.js#5707) (http://negrainau.tilsor.com.uy:7777/uiSipi/adf/jsLibs/Common10_1_3_3_0.js#3006)
    at org.mozilla.javascript.Context.throwAsScriptRuntimeEx(Context.java:1757)
    at org.mozilla.javascript.MemberBox.invoke(MemberBox.java:170)
    at org.mozilla.javascript.FunctionObject.call(FunctionObject.java:474)
    at org.mozilla.javascript.Interpreter.interpretLoop(Interpreter.java:3237)
    at script.submitForm(http://negrainau.tilsor.com.uy:7777/uiSipi/adf/jsLibs/Common10_1_3_3_0.js:3006)
    at script._submitPartialChange(http://negrainau.tilsor.com.uy:7777/uiSipi/adf/jsLibs/Common10_1_3_3_0.js:4096)
    at script._adfspu(script in http://negrainau.tilsor.com.uy:7777/uiSipi/faces/busquedaAuditoriaBusquedas.jspx from (2, 3284) to (0, 0):2)
    at script(onclick event for HtmlAnchor[a href="#" onclick="_adfspu('form1',0,0,'form1:usuarioSelectInputText',{part:'b'});return false;"]:1)
    at org.mozilla.javascript.Interpreter.interpret(Interpreter.java:2394)
    at org.mozilla.javascript.InterpretedFunction.call(InterpretedFunction.java:162)
    at org.mozilla.javascript.ContextFactory.doTopCall(ContextFactory.java:393)
    at com.gargoylesoftware.htmlunit.javascript.HtmlUnitContextFactory.doTopCall(HtmlUnitContextFactory.java:185)
    at org.mozilla.javascript.ScriptRuntime.doTopCall(ScriptRuntime.java:2834)
    at org.mozilla.javascript.InterpretedFunction.call(InterpretedFunction.java:160)
    at com.gargoylesoftware.htmlunit.javascript.host.EventHandler.call(EventHandler.java:99)
    at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine.callFunction(JavaScriptEngine.java:499)
    at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine$6.doRun(JavaScriptEngine.java:464)
    at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine$HtmlUnitContextAction.run(JavaScriptEngine.java:553)
    at org.mozilla.javascript.Context.call(Context.java:564)
    at org.mozilla.javascript.Context.call(Context.java:499)
    at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine.callFunction(JavaScriptEngine.java:470)
    at com.gargoylesoftware.htmlunit.html.HtmlPage.executeJavaScriptFunctionIfPossible(HtmlPage.java:751)
    at com.gargoylesoftware.htmlunit.javascript.host.EventListenersContainer.executeEventHandler(EventListenersContainer.java:175)
    at com.gargoylesoftware.htmlunit.javascript.host.EventListenersContainer.executeBubblingListeners(EventListenersContainer.java:188)
    at com.gargoylesoftware.htmlunit.javascript.host.Node.fireEvent(Node.java:565)
    at com.gargoylesoftware.htmlunit.html.HtmlElement$1.run(HtmlElement.java:1210)
    at org.mozilla.javascript.Context.call(Context.java:577)
    at org.mozilla.javascript.Context.call(Context.java:499)
    at com.gargoylesoftware.htmlunit.html.HtmlElement.fireEvent(HtmlElement.java:1214)
    at com.gargoylesoftware.htmlunit.html.ClickableElement.click(ClickableElement.java:135)
    at com.gargoylesoftware.htmlunit.html.ClickableElement.click(ClickableElement.java:109)
    at com.gargoylesoftware.htmlunit.html.ClickableElement.click(ClickableElement.java:87)
    at uy.com.tilsor.sipi.testing.auditoria.TSCUAUD4.test1(TSCUAUD4.java:99)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:585)
    at junit.framework.TestCase.runTest(TestCase.java:154)
    at junit.framework.TestCase.runBare(TestCase.java:127)
    at junit.framework.TestResult$1.protect(TestResult.java:106)
    at junit.framework.TestResult.runProtected(TestResult.java:124)
    at junit.framework.TestResult.run(TestResult.java:109)
    at junit.framework.TestCase.run(TestCase.java:118)
    at junit.framework.TestSuite.runTest(TestSuite.java:208)
    at junit.framework.TestSuite.run(TestSuite.java:203)
    at oracle.jdevimpl.junit.runner.TestRunner.doRun(TestRunner.java:111)
    at oracle.jdevimpl.junit.runner.TestRunner.start(TestRunner.java:91)
    at oracle.jdevimpl.junit.runner.TestRunner.main(TestRunner.java:43)
    Caused by: com.gargoylesoftware.htmlunit.ScriptException: TypeError: Cannot find function importNode. (http://negrainau.tilsor.com.uy:7777/uiSipi/adf/jsLibs/Common10_1_3_3_0.js#5707)
    at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine$HtmlUnitContextAction.run(JavaScriptEngine.java:557)
    at org.mozilla.javascript.Context.call(Context.java:564)
    at org.mozilla.javascript.Context.call(Context.java:499)
    at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine.execute(JavaScriptEngine.java:439)
    at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine.execute(JavaScriptEngine.java:414)
    at com.gargoylesoftware.htmlunit.html.HtmlPage.executeJavaScriptIfPossible(HtmlPage.java:716)
    at com.gargoylesoftware.htmlunit.html.HtmlScript.executeInlineScriptIfNeeded(HtmlScript.java:249)
    at com.gargoylesoftware.htmlunit.html.HtmlScript.appendDomChild(HtmlScript.java:185)
    at com.gargoylesoftware.htmlunit.html.HTMLParser$HtmlUnitDOMBuilder.handleCharacters(HTMLParser.java:443)
    at com.gargoylesoftware.htmlunit.html.HTMLParser$HtmlUnitDOMBuilder.endElement(HTMLParser.java:401)
    at org.apache.xerces.parsers.AbstractSAXParser.endElement(Unknown Source)
    at org.cyberneko.html.filters.DefaultFilter.endElement(DefaultFilter.java:249)
    at org.cyberneko.html.filters.NamespaceBinder.endElement(NamespaceBinder.java:367)
    at org.cyberneko.html.HTMLTagBalancer.callEndElement(HTMLTagBalancer.java:1015)
    at org.cyberneko.html.HTMLTagBalancer.endElement(HTMLTagBalancer.java:888)
    at org.cyberneko.html.HTMLScanner$SpecialScanner.scan(HTMLScanner.java:2831)
    at org.cyberneko.html.HTMLScanner.scanDocument(HTMLScanner.java:809)
    at org.cyberneko.html.HTMLConfiguration.parse(HTMLConfiguration.java:478)
    at org.cyberneko.html.HTMLConfiguration.parse(HTMLConfiguration.java:431)
    at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
    at com.gargoylesoftware.htmlunit.html.HTMLParser.parse(HTMLParser.java:253)
    at com.gargoylesoftware.htmlunit.DefaultPageCreator.createHtmlPage(DefaultPageCreator.java:116)
    at com.gargoylesoftware.htmlunit.DefaultPageCreator.createPage(DefaultPageCreator.java:89)
    at com.gargoylesoftware.htmlunit.WebClient.loadWebResponseInto(WebClient.java:450)
    at com.gargoylesoftware.htmlunit.WebClient.getPage(WebClient.java:359)
    at com.gargoylesoftware.htmlunit.WebClient.getPage(WebClient.java:382)
    at com.gargoylesoftware.htmlunit.html.HtmlForm.submit(HtmlForm.java:242)
    at com.gargoylesoftware.htmlunit.javascript.host.HTMLFormElement.jsxFunction_submit(HTMLFormElement.java:244)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:585)
    at org.mozilla.javascript.MemberBox.invoke(MemberBox.java:155)
    ... 42 more
    Caused by: org.mozilla.javascript.EcmaError: TypeError: Cannot find function importNode. (http://negrainau.tilsor.com.uy:7777/uiSipi/adf/jsLibs/Common10_1_3_3_0.js#5707)
    at org.mozilla.javascript.ScriptRuntime.constructError(ScriptRuntime.java:3350)
    at org.mozilla.javascript.ScriptRuntime.constructError(ScriptRuntime.java:3340)
    at org.mozilla.javascript.ScriptRuntime.typeError(ScriptRuntime.java:3356)
    at org.mozilla.javascript.ScriptRuntime.typeError1(ScriptRuntime.java:3368)
    at org.mozilla.javascript.ScriptRuntime.notFunctionError(ScriptRuntime.java:3428)
    at org.mozilla.javascript.ScriptRuntime.getPropFunctionAndThis(ScriptRuntime.java:2052)
    at org.mozilla.javascript.Interpreter.interpretLoop(Interpreter.java:3081)
    at org.mozilla.javascript.Interpreter.interpret(Interpreter.java:2394)
    at org.mozilla.javascript.InterpretedFunction.exec(InterpretedFunction.java:176)
    at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine$5.doRun(JavaScriptEngine.java:431)
    at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine$HtmlUnitContextAction.run(JavaScriptEngine.java:553)
    ... 74 more
    Inside wrapped exception:
    ======= EXCEPTION START ========
    EcmaError: lineNumber=[5707] column=[0] lineSource=[no source] name=[TypeError] sourceName=[http://negrainau.tilsor.com.uy:7777/uiSipi/adf/jsLibs/Common10_1_3_3_0.js] message=[TypeError: Cannot find function importNode. (http://negrainau.tilsor.com.uy:7777/uiSipi/adf/jsLibs/Common10_1_3_3_0.js#5707)]
    com.gargoylesoftware.htmlunit.ScriptException: TypeError: Cannot find function importNode. (http://negrainau.tilsor.com.uy:7777/uiSipi/adf/jsLibs/Common10_1_3_3_0.js#5707)
    at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine$HtmlUnitContextAction.run(JavaScriptEngine.java:557)
    at org.mozilla.javascript.Context.call(Context.java:564)
    at org.mozilla.javascript.Context.call(Context.java:499)
    at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine.execute(JavaScriptEngine.java:439)
    at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine.execute(JavaScriptEngine.java:414)
    at com.gargoylesoftware.htmlunit.html.HtmlPage.executeJavaScriptIfPossible(HtmlPage.java:716)
    at com.gargoylesoftware.htmlunit.html.HtmlScript.executeInlineScriptIfNeeded(HtmlScript.java:249)
    at com.gargoylesoftware.htmlunit.html.HtmlScript.appendDomChild(HtmlScript.java:185)
    at com.gargoylesoftware.htmlunit.html.HTMLParser$HtmlUnitDOMBuilder.handleCharacters(HTMLParser.java:443)
    at com.gargoylesoftware.htmlunit.html.HTMLParser$HtmlUnitDOMBuilder.endElement(HTMLParser.java:401)
    at org.apache.xerces.parsers.AbstractSAXParser.endElement(Unknown Source)
    at org.cyberneko.html.filters.DefaultFilter.endElement(DefaultFilter.java:249)
    at org.cyberneko.html.filters.NamespaceBinder.endElement(NamespaceBinder.java:367)
    at org.cyberneko.html.HTMLTagBalancer.callEndElement(HTMLTagBalancer.java:1015)
    at org.cyberneko.html.HTMLTagBalancer.endElement(HTMLTagBalancer.java:888)
    at org.cyberneko.html.HTMLScanner$SpecialScanner.scan(HTMLScanner.java:2831)
    at org.cyberneko.html.HTMLScanner.scanDocument(HTMLScanner.java:809)
    at org.cyberneko.html.HTMLConfiguration.parse(HTMLConfiguration.java:478)
    at org.cyberneko.html.HTMLConfiguration.parse(HTMLConfiguration.java:431)
    at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
    at com.gargoylesoftware.htmlunit.html.HTMLParser.parse(HTMLParser.java:253)
    at com.gargoylesoftware.htmlunit.DefaultPageCreator.createHtmlPage(DefaultPageCreator.java:116)
    at com.gargoylesoftware.htmlunit.DefaultPageCreator.createPage(DefaultPageCreator.java:89)
    at com.gargoylesoftware.htmlunit.WebClient.loadWebResponseInto(WebClient.java:450)
    at com.gargoylesoftware.htmlunit.WebClient.getPage(WebClient.java:359)
    at com.gargoylesoftware.htmlunit.WebClient.getPage(WebClient.java:382)
    at com.gargoylesoftware.htmlunit.html.HtmlForm.submit(HtmlForm.java:242)
    at com.gargoylesoftware.htmlunit.javascript.host.HTMLFormElement.jsxFunction_submit(HTMLFormElement.java:244)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:585)
    at org.mozilla.javascript.MemberBox.invoke(MemberBox.java:155)
    at org.mozilla.javascript.FunctionObject.call(FunctionObject.java:474)
    at org.mozilla.javascript.Interpreter.interpretLoop(Interpreter.java:3237)
    at org.mozilla.javascript.Interpreter.interpret(Interpreter.java:2394)
    at org.mozilla.javascript.InterpretedFunction.call(InterpretedFunction.java:162)
    at org.mozilla.javascript.ContextFactory.doTopCall(ContextFactory.java:393)
    at com.gargoylesoftware.htmlunit.javascript.HtmlUnitContextFactory.doTopCall(HtmlUnitContextFactory.java:185)
    at org.mozilla.javascript.ScriptRuntime.doTopCall(ScriptRuntime.java:2834)
    at org.mozilla.javascript.InterpretedFunction.call(InterpretedFunction.java:160)
    at com.gargoylesoftware.htmlunit.javascript.host.EventHandler.call(EventHandler.java:99)
    at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine.callFunction(JavaScriptEngine.java:499)
    at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine$6.doRun(JavaScriptEngine.java:464)
    at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine$HtmlUnitContextAction.run(JavaScriptEngine.java:553)
    at org.mozilla.javascript.Context.call(Context.java:564)
    at org.mozilla.javascript.Context.call(Context.java:499)
    at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine.callFunction(JavaScriptEngine.java:470)
    at com.gargoylesoftware.htmlunit.html.HtmlPage.executeJavaScriptFunctionIfPossible(HtmlPage.java:751)
    at com.gargoylesoftware.htmlunit.javascript.host.EventListenersContainer.executeEventHandler(EventListenersContainer.java:175)
    at com.gargoylesoftware.htmlunit.javascript.host.EventListenersContainer.executeBubblingListeners(EventListenersContainer.java:188)
    at com.gargoylesoftware.htmlunit.javascript.host.Node.fireEvent(Node.java:565)
    at com.gargoylesoftware.htmlunit.html.HtmlElement$1.run(HtmlElement.java:1210)
    at org.mozilla.javascript.Context.call(Context.java:577)
    at org.mozilla.javascript.Context.call(Context.java:499)
    at com.gargoylesoftware.htmlunit.html.HtmlElement.fireEvent(HtmlElement.java:1214)
    at com.gargoylesoftware.htmlunit.html.ClickableElement.click(ClickableElement.java:135)
    at com.gargoylesoftware.htmlunit.html.ClickableElement.click(ClickableElement.java:109)
    at com.gargoylesoftware.htmlunit.html.ClickableElement.click(ClickableElement.java:87)
    at uy.com.tilsor.sipi.testing.auditoria.TSCUAUD4.test1(TSCUAUD4.java:99)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:585)
    at junit.framework.TestCase.runTest(TestCase.java:154)
    at junit.framework.TestCase.runBare(TestCase.java:127)
    at junit.framework.TestResult$1.protect(TestResult.java:106)
    at junit.framework.TestResult.runProtected(TestResult.java:124)
    at junit.framework.TestResult.run(TestResult.java:109)
    at junit.framework.TestCase.run(TestCase.java:118)
    at junit.framework.TestSuite.runTest(TestSuite.java:208)
    at junit.framework.TestSuite.run(TestSuite.java:203)
    at oracle.jdevimpl.junit.runner.TestRunner.doRun(TestRunner.java:111)
    at oracle.jdevimpl.junit.runner.TestRunner.start(TestRunner.java:91)
    at oracle.jdevimpl.junit.runner.TestRunner.main(TestRunner.java:43)
    Caused by: org.mozilla.javascript.EcmaError: TypeError: Cannot find function importNode. (http://negrainau.tilsor.com.uy:7777/uiSipi/adf/jsLibs/Common10_1_3_3_0.js#5707)
    at org.mozilla.javascript.ScriptRuntime.constructError(ScriptRuntime.java:3350)
    at org.mozilla.javascript.ScriptRuntime.constructError(ScriptRuntime.java:3340)
    at org.mozilla.javascript.ScriptRuntime.typeError(ScriptRuntime.java:3356)
    at org.mozilla.javascript.ScriptRuntime.typeError1(ScriptRuntime.java:3368)
    at org.mozilla.javascript.ScriptRuntime.notFunctionError(ScriptRuntime.java:3428)
    at org.mozilla.javascript.ScriptRuntime.getPropFunctionAndThis(ScriptRuntime.java:2052)
    at org.mozilla.javascript.Interpreter.interpretLoop(Interpreter.java:3081)
    at org.mozilla.javascript.Interpreter.interpret(Interpreter.java:2394)
    at org.mozilla.javascript.InterpretedFunction.exec(InterpretedFunction.java:176)
    at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine$5.doRun(JavaScriptEngine.java:431)
    at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine$HtmlUnitContextAction.run(JavaScriptEngine.java:553)
    ... 74 more
    Enclosed exception:
    org.mozilla.javascript.EcmaError: TypeError: Cannot find function importNode. (http://negrainau.tilsor.com.uy:7777/uiSipi/adf/jsLibs/Common10_1_3_3_0.js#5707)
    at org.mozilla.javascript.ScriptRuntime.constructError(ScriptRuntime.java:3350)
    at org.mozilla.javascript.ScriptRuntime.constructError(ScriptRuntime.java:3340)
    at org.mozilla.javascript.ScriptRuntime.typeError(ScriptRuntime.java:3356)
    at org.mozilla.javascript.ScriptRuntime.typeError1(ScriptRuntime.java:3368)
    at org.mozilla.javascript.ScriptRuntime.notFunctionError(ScriptRuntime.java:3428)
    at org.mozilla.javascript.ScriptRuntime.getPropFunctionAndThis(ScriptRuntime.java:2052)
    at org.mozilla.javascript.Interpreter.interpretLoop(Interpreter.java:3081)
    at script._setOuterHTML(http://negrainau.tilsor.com.uy:7777/uiSipi/adf/jsLibs/Common10_1_3_3_0.js:5707)
    at script._partialChange(http://negrainau.tilsor.com.uy:7777/uiSipi/adf/jsLibs/Common10_1_3_3_0.js:5560)
    at script(script in http://negrainau.tilsor.com.uy:7777/uiSipi/faces/busquedaAuditoriaBusquedas.jspx?_afPfm=1 from (5, 1015) to (0, 0):5)
    at org.mozilla.javascript.Interpreter.interpret(Interpreter.java:2394)
    at org.mozilla.javascript.InterpretedFunction.exec(InterpretedFunction.java:176)
    at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine$5.doRun(JavaScriptEngine.java:431)
    at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine$HtmlUnitContextAction.run(JavaScriptEngine.java:553)
    at org.mozilla.javascript.Context.call(Context.java:564)
    at org.mozilla.javascript.Context.call(Context.java:499)
    at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine.execute(JavaScriptEngine.java:439)
    at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine.execute(JavaScriptEngine.java:414)
    at com.gargoylesoftware.htmlunit.html.HtmlPage.executeJavaScriptIfPossible(HtmlPage.java:716)
    at com.gargoylesoftware.htmlunit.html.HtmlScript.executeInlineScriptIfNeeded(HtmlScript.java:249)
    at com.gargoylesoftware.htmlunit.html.HtmlScript.appendDomChild(HtmlScript.java:185)
    at com.gargoylesoftware.htmlunit.html.HTMLParser$HtmlUnitDOMBuilder.handleCharacters(HTMLParser.java:443)
    at com.gargoylesoftware.htmlunit.html.HTMLParser$HtmlUnitDOMBuilder.endElement(HTMLParser.java:401)
    at org.apache.xerces.parsers.AbstractSAXParser.endElement(Unknown Source)
    at org.cyberneko.html.filters.DefaultFilter.endElement(DefaultFilter.java:249)
    at org.cyberneko.html.filters.NamespaceBinder.endElement(NamespaceBinder.java:367)
    at org.cyberneko.html.HTMLTagBalancer.callEndElement(HTMLTagBalancer.java:1015)
    at org.cyberneko.html.HTMLTagBalancer.endElement(HTMLTagBalancer.java:888)
    at org.cyberneko.html.HTMLScanner$SpecialScanner.scan(HTMLScanner.java:2831)
    at org.cyberneko.html.HTMLScanner.scanDocument(HTMLScanner.java:809)
    at org.cyberneko.html.HTMLConfiguration.parse(HTMLConfiguration.java:478)
    at org.cyberneko.html.HTMLConfiguration.parse(HTMLConfiguration.java:431)
    at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
    at com.gargoylesoftware.htmlunit.html.HTMLParser.parse(HTMLParser.java:253)
    at com.gargoylesoftware.htmlunit.DefaultPageCreator.createHtmlPage(DefaultPageCreator.java:116)
    at com.gargoylesoftware.htmlunit.DefaultPageCreator.createPage(DefaultPageCreator.java:89)
    at com.gargoylesoftware.htmlunit.WebClient.loadWebResponseInto(WebClient.java:450)
    at com.gargoylesoftware.htmlunit.WebClient.getPage(WebClient.java:359)
    at com.gargoylesoftware.htmlunit.WebClient.getPage(WebClient.java:382)
    at com.gargoylesoftware.htmlunit.html.HtmlForm.submit(HtmlForm.java:242)
    at com.gargoylesoftware.htmlunit.javascript.host.HTMLFormElement.jsxFunction_submit(HTMLFormElement.java:244)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:585)
    at org.mozilla.javascript.MemberBox.invoke(MemberBox.java:155)
    at org.mozilla.javascript.FunctionObject.call(FunctionObject.java:474)
    at org.mozilla.javascript.Interpreter.interpretLoop(Interpreter.java:3237)
    at script.submitForm(http://negrainau.tilsor.com.uy:7777/uiSipi/adf/jsLibs/Common10_1_3_3_0.js:3006)
    at script._submitPartialChange(http://negrainau.tilsor.com.uy:7777/uiSipi/adf/jsLibs/Common10_1_3_3_0.js:4096)
    at script._adfspu(script in http://negrainau.tilsor.com.uy:7777/uiSipi/faces/busquedaAuditoriaBusquedas.jspx from (2, 3284) to (0, 0):2)
    at script(onclick event for HtmlAnchor[a href="#" onclick="_adfspu('form1',0,0,'form1:usuarioSelectInputText',{part:'b'});return false;"]:1)
    at org.mozilla.javascript.Interpreter.interpret(Interpreter.java:2394)
    at org.mozilla.javascript.InterpretedFunction.call(InterpretedFunction.java:162)
    at org.mozilla.javascript.ContextFactory.doTopCall(ContextFactory.java:393)
    at com.gargoylesoftware.htmlunit.javascript.HtmlUnitContextFactory.doTopCall(HtmlUnitContextFactory.java:185)
    at org.mozilla.javascript.ScriptRuntime.doTopCall(ScriptRuntime.java:2834)
    at org.mozilla.javascript.InterpretedFunction.call(InterpretedFunction.java:160)
    at com.gargoylesoftware.htmlunit.javascript.host.EventHandler.call(EventHandler.java:99)
    at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine.callFunction(JavaScriptEngine.java:499)
    at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine$6.doRun(JavaScriptEngine.java:464)
    at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine$HtmlUnitContextAction.run(JavaScriptEngine.java:553)
    at org.mozilla.javascript.Context.call(Context.java:564)
    at org.mozilla.javascript.Context.call(Context.java:499)
    at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine.callFunction(JavaScriptEngine.java:470)
    at com.gargoylesoftware.htmlunit.html.HtmlPage.executeJavaScriptFunctionIfPossible(HtmlPage.java:751)
    at com.gargoylesoftware.htmlunit.javascript.host.EventListenersContainer.executeEventHandler(EventListenersContainer.java:175)
    at com.gargoylesoftware.htmlunit.javascript.host.EventListenersContainer.executeBubblingListeners(EventListenersContainer.java:188)
    at com.gargoylesoftware.htmlunit.javascript.host.Node.fireEvent(Node.java:565)
    at com.gargoylesoftware.htmlunit.html.HtmlElement$1.run(HtmlElement.java:1210)
    at org.mozilla.javascript.Context.call(Context.java:577)
    at org.mozilla.javascript.Context.call(Context.java:499)
    at com.gargoylesoftware.htmlunit.html.HtmlElement.fireEvent(HtmlElement.java:1214)
    at com.gargoylesoftware.htmlunit.html.ClickableElement.click(ClickableElement.java:135)
    at com.gargoylesoftware.htmlunit.html.ClickableElement.click(ClickableElement.java:109)
    at com.gargoylesoftware.htmlunit.html.ClickableElement.click(ClickableElement.java:87)
    at uy.com.tilsor.sipi.testing.auditoria.TSCUAUD4.test1(TSCUAUD4.java:99)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:585)
    at junit.framework.TestCase.runTest(TestCase.java:154)
    at junit.framework.TestCase.runBare(TestCase.java:127)
    at junit.framework.TestResult$1.protect(TestResult.java:106)
    at junit.framework.TestResult.runProtected(TestResult.java:124)
    at junit.framework.TestResult.run(TestResult.java:109)
    at junit.framework.TestCase.run(TestCase.java:118)
    at junit.framework.TestSuite.runTest(TestSuite.java:208)
    at junit.framework.TestSuite.run(TestSuite.java:203)
    at oracle.jdevimpl.junit.runner.TestRunner.doRun(TestRunner.java:111)
    at oracle.jdevimpl.junit.runner.TestRunner.start(TestRunner.java:91)
    at oracle.jdevimpl.junit.runner.TestRunner.main(TestRunner.java:43)
    ======= EXCEPTION END ========
    == CALLING JAVASCRIPT ==
    function () {
    [native code, arity=0]
    }

    ======= EXCEPTION END ========

    **********************************
    Exception using HTMLUnit-2.0-SNAPSHOT
    **********************************

    ======= EXCEPTION START ========
    Exception class=[org.mozilla.javascript.WrappedException]
    com.gargoylesoftware.htmlunit.ScriptException: Wrapped com.gargoylesoftware.htmlunit.ScriptException: Wrapped com.gargoylesoftware.htmlunit.ScriptException: TypeError: Cannot read property "length" from undefined (http://negrainau.tilsor.com.uy:7777/uiSipi/adf/jsLibs/Common10_1_3_3_0.js#4384) (http://negrainau.tilsor.com.uy:7777/uiSipi/adf/jsLibs/Common10_1_3_3_0.js#4177) (http://negrainau.tilsor.com.uy:7777/uiSipi/adf/jsLibs/Common10_1_3_3_0.js#3006)
    at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine$HtmlUnitContextAction.run(JavaScriptEngine.java:557)
    at org.mozilla.javascript.Context.call(Context.java:564)
    at org.mozilla.javascript.Context.call(Context.java:499)
    at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine.callFunction(JavaScriptEngine.java:470)
    at com.gargoylesoftware.htmlunit.html.HtmlPage.executeJavaScriptFunctionIfPossible(HtmlPage.java:1003)
    at com.gargoylesoftware.htmlunit.javascript.host.EventListenersContainer.executeEventHandler(EventListenersContainer.java:173)
    at com.gargoylesoftware.htmlunit.javascript.host.EventListenersContainer.executeBubblingListeners(EventListenersContainer.java:186)
    at com.gargoylesoftware.htmlunit.javascript.host.Node.fireEvent(Node.java:590)
    at com.gargoylesoftware.htmlunit.html.HtmlElement$2.run(HtmlElement.java:1257)
    at org.mozilla.javascript.Context.call(Context.java:577)
    at org.mozilla.javascript.Context.call(Context.java:499)
    at com.gargoylesoftware.htmlunit.html.HtmlElement.fireEvent(HtmlElement.java:1261)
    at com.gargoylesoftware.htmlunit.html.ClickableElement.click(ClickableElement.java:135)
    at com.gargoylesoftware.htmlunit.html.ClickableElement.click(ClickableElement.java:109)
    at com.gargoylesoftware.htmlunit.html.ClickableElement.click(ClickableElement.java:87)
    at uy.com.tilsor.sipi.testing.auditoria.TSCUAUD4.test1(TSCUAUD4.java:99)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:585)
    at junit.framework.TestCase.runTest(TestCase.java:154)
    at junit.framework.TestCase.runBare(TestCase.java:127)
    at junit.framework.TestResult$1.protect(TestResult.java:106)
    at junit.framework.TestResult.runProtected(TestResult.java:124)
    at junit.framework.TestResult.run(TestResult.java:109)
    at junit.framework.TestCase.run(TestCase.java:118)
    at junit.framework.TestSuite.runTest(TestSuite.java:208)
    at junit.framework.TestSuite.run(TestSuite.java:203)
    at oracle.jdevimpl.junit.runner.TestRunner.doRun(TestRunner.java:111)
    at oracle.jdevimpl.junit.runner.TestRunner.start(TestRunner.java:91)
    at oracle.jdevimpl.junit.runner.TestRunner.main(TestRunner.java:43)
    Caused by: org.mozilla.javascript.WrappedException: Wrapped com.gargoylesoftware.htmlunit.ScriptException: Wrapped com.gargoylesoftware.htmlunit.ScriptException: TypeError: Cannot read property "length" from undefined (http://negrainau.tilsor.com.uy:7777/uiSipi/adf/jsLibs/Common10_1_3_3_0.js#4384) (http://negrainau.tilsor.com.uy:7777/uiSipi/adf/jsLibs/Common10_1_3_3_0.js#4177) (http://negrainau.tilsor.com.uy:7777/uiSipi/adf/jsLibs/Common10_1_3_3_0.js#3006)
    at org.mozilla.javascript.Context.throwAsScriptRuntimeEx(Context.java:1757)
    at org.mozilla.javascript.MemberBox.invoke(MemberBox.java:170)
    at org.mozilla.javascript.FunctionObject.call(FunctionObject.java:474)
    at org.mozilla.javascript.Interpreter.interpretLoop(Interpreter.java:3237)
    at org.mozilla.javascript.Interpreter.interpret(Interpreter.java:2394)
    at org.mozilla.javascript.InterpretedFunction.call(InterpretedFunction.java:162)
    at org.mozilla.javascript.ContextFactory.doTopCall(ContextFactory.java:393)
    at com.gargoylesoftware.htmlunit.javascript.HtmlUnitContextFactory.doTopCall(HtmlUnitContextFactory.java:192)
    at org.mozilla.javascript.ScriptRuntime.doTopCall(ScriptRuntime.java:2834)
    at org.mozilla.javascript.InterpretedFunction.call(InterpretedFunction.java:160)
    at com.gargoylesoftware.htmlunit.javascript.host.EventHandler.call(EventHandler.java:100)
    at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine.callFunction(JavaScriptEngine.java:499)
    at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine$6.doRun(JavaScriptEngine.java:463)
    at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine$HtmlUnitContextAction.run(JavaScriptEngine.java:553)
    ... 30 more
    Caused by: com.gargoylesoftware.htmlunit.ScriptException: Wrapped com.gargoylesoftware.htmlunit.ScriptException: TypeError: Cannot read property "length" from undefined (http://negrainau.tilsor.com.uy:7777/uiSipi/adf/jsLibs/Common10_1_3_3_0.js#4384) (http://negrainau.tilsor.com.uy:7777/uiSipi/adf/jsLibs/Common10_1_3_3_0.js#4177)
    at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine$HtmlUnitContextAction.run(JavaScriptEngine.java:557)
    at org.mozilla.javascript.Context.call(Context.java:564)
    at org.mozilla.javascript.Context.call(Context.java:499)
    at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine.execute(JavaScriptEngine.java:438)
    at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine.execute(JavaScriptEngine.java:412)
    at com.gargoylesoftware.htmlunit.html.HtmlPage.executeJavaScriptIfPossible(HtmlPage.java:968)
    at com.gargoylesoftware.htmlunit.html.HtmlScript.executeInlineScriptIfNeeded(HtmlScript.java:262)
    at com.gargoylesoftware.htmlunit.html.HtmlScript.appendDomChild(HtmlScript.java:174)
    at com.gargoylesoftware.htmlunit.html.HTMLParser$HtmlUnitDOMBuilder.handleCharacters(HTMLParser.java:508)
    at com.gargoylesoftware.htmlunit.html.HTMLParser$HtmlUnitDOMBuilder.endElement(HTMLParser.java:466)
    at org.apache.xerces.parsers.AbstractSAXParser.endElement(Unknown Source)
    at org.cyberneko.html.filters.DefaultFilter.endElement(DefaultFilter.java:249)
    at org.cyberneko.html.filters.NamespaceBinder.endElement(NamespaceBinder.java:367)
    at org.cyberneko.html.HTMLTagBalancer.callEndElement(HTMLTagBalancer.java:1015)
    at org.cyberneko.html.HTMLTagBalancer.endElement(HTMLTagBalancer.java:888)
    at org.cyberneko.html.HTMLScanner$SpecialScanner.scan(HTMLScanner.java:2831)
    at org.cyberneko.html.HTMLScanner.scanDocument(HTMLScanner.java:809)
    at org.cyberneko.html.HTMLConfiguration.parse(HTMLConfiguration.java:478)
    at org.cyberneko.html.HTMLConfiguration.parse(HTMLConfiguration.java:431)
    at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
    at com.gargoylesoftware.htmlunit.html.HTMLParser.parse(HTMLParser.java:257)
    at com.gargoylesoftware.htmlunit.DefaultPageCreator.createHtmlPage(DefaultPageCreator.java:116)
    at com.gargoylesoftware.htmlunit.DefaultPageCreator.createPage(DefaultPageCreator.java:89)
    at com.gargoylesoftware.htmlunit.WebClient.loadWebResponseInto(WebClient.java:453)
    at com.gargoylesoftware.htmlunit.WebClient.getPage(WebClient.java:362)
    at com.gargoylesoftware.htmlunit.WebClient.getPage(WebClient.java:385)
    at com.gargoylesoftware.htmlunit.html.HtmlForm.submit(HtmlForm.java:187)
    at com.gargoylesoftware.htmlunit.javascript.host.HTMLFormElement.jsxFunction_submit(HTMLFormElement.java:244)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:585)
    at org.mozilla.javascript.MemberBox.invoke(MemberBox.java:155)
    ... 42 more
    Caused by: org.mozilla.javascript.WrappedException: Wrapped com.gargoylesoftware.htmlunit.ScriptException: TypeError: Cannot read property "length" from undefined (http://negrainau.tilsor.com.uy:7777/uiSipi/adf/jsLibs/Common10_1_3_3_0.js#4384) (http://negrainau.tilsor.com.uy:7777/uiSipi/adf/jsLibs/Common10_1_3_3_0.js#4177)
    at org.mozilla.javascript.Context.throwAsScriptRuntimeEx(Context.java:1757)
    at org.mozilla.javascript.MemberBox.invoke(MemberBox.java:170)
    at org.mozilla.javascript.FunctionObject.call(FunctionObject.java:474)
    at org.mozilla.javascript.Interpreter.interpretLoop(Interpreter.java:3237)
    at org.mozilla.javascript.Interpreter.interpret(Interpreter.java:2394)
    at org.mozilla.javascript.InterpretedFunction.exec(InterpretedFunction.java:176)
    at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine$5.doRun(JavaScriptEngine.java:429)
    at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine$HtmlUnitContextAction.run(JavaScriptEngine.java:553)
    ... 74 more
    Caused by: com.gargoylesoftware.htmlunit.ScriptException: TypeError: Cannot read property "length" from undefined (http://negrainau.tilsor.com.uy:7777/uiSipi/adf/jsLibs/Common10_1_3_3_0.js#4384)
    at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine$HtmlUnitContextAction.run(JavaScriptEngine.java:557)
    at org.mozilla.javascript.Context.call(Context.java:564)
    at org.mozilla.javascript.Context.call(Context.java:499)
    at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine.execute(JavaScriptEngine.java:438)
    at com.gargoylesoftware.htmlunit.html.HtmlPage.loadExternalJavaScriptFile(HtmlPage.java:1046)
    at com.gargoylesoftware.htmlunit.html.HtmlScript.executeScriptIfNeeded(HtmlScript.java:289)
    at com.gargoylesoftware.htmlunit.html.HtmlScript.onAddedToPage(HtmlScript.java:210)
    at com.gargoylesoftware.htmlunit.html.HtmlPage.notifyNodeAdded(HtmlPage.java:1741)
    at com.gargoylesoftware.htmlunit.html.DomNode.insertBefore(DomNode.java:964)
    at com.gargoylesoftware.htmlunit.javascript.host.Node.jsxFunction_insertBefore(Node.java:257)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:585)
    at org.mozilla.javascript.MemberBox.invoke(MemberBox.java:155)
    ... 80 more
    Caused by: org.mozilla.javascript.EcmaError: TypeError: Cannot read property "length" from undefined (http://negrainau.tilsor.com.uy:7777/uiSipi/adf/jsLibs/Common10_1_3_3_0.js#4384)
    at org.mozilla.javascript.ScriptRuntime.constructError(ScriptRuntime.java:3350)
    at org.mozilla.javascript.ScriptRuntime.constructError(ScriptRuntime.java:3340)
    at org.mozilla.javascript.ScriptRuntime.typeError(ScriptRuntime.java:3356)
    at org.mozilla.javascript.ScriptRuntime.typeError2(ScriptRuntime.java:3375)
    at org.mozilla.javascript.ScriptRuntime.undefReadError(ScriptRuntime.java:3388)
    at org.mozilla.javascript.ScriptRuntime.getObjectProp(ScriptRuntime.java:1362)
    at org.mozilla.javascript.Interpreter.interpretLoop(Interpreter.java:2965)
    at org.mozilla.javascript.Interpreter.interpret(Interpreter.java:2394)
    at org.mozilla.javascript.InterpretedFunction.exec(InterpretedFunction.java:176)
    at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine$5.doRun(JavaScriptEngine.java:429)
    at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine$HtmlUnitContextAction.run(JavaScriptEngine.java:553)
    ... 94 more
    WrappedException: org.mozilla.javascript.WrappedException: Wrapped com.gargoylesoftware.htmlunit.ScriptException: Wrapped com.gargoylesoftware.htmlunit.ScriptException: TypeError: Cannot read property "length" from undefined (http://negrainau.tilsor.com.uy:7777/uiSipi/adf/jsLibs/Common10_1_3_3_0.js#4384) (http://negrainau.tilsor.com.uy:7777/uiSipi/adf/jsLibs/Common10_1_3_3_0.js#4177) (http://negrainau.tilsor.com.uy:7777/uiSipi/adf/jsLibs/Common10_1_3_3_0.js#3006)
    at org.mozilla.javascript.Context.throwAsScriptRuntimeEx(Context.java:1757)
    at org.mozilla.javascript.MemberBox.invoke(MemberBox.java:170)
    at org.mozilla.javascript.FunctionObject.call(FunctionObject.java:474)
    at org.mozilla.javascript.Interpreter.interpretLoop(Interpreter.java:3237)
    at script.submitForm(http://negrainau.tilsor.com.uy:7777/uiSipi/adf/jsLibs/Common10_1_3_3_0.js:3006)
    at script._submitPartialChange(http://negrainau.tilsor.com.uy:7777/uiSipi/adf/jsLibs/Common10_1_3_3_0.js:4096)
    at script._adfspu(script in http://negrainau.tilsor.com.uy:7777/uiSipi/faces/busquedaAuditoriaBusquedas.jspx from (2, 3284) to (0, 0):2)
    at script(onclick event for HtmlAnchor[a href="#" onclick="_adfspu('form1',0,0,'form1:usuarioSelectInputText',{part:'b'});return false;"]:1)
    at org.mozilla.javascript.Interpreter.interpret(Interpreter.java:2394)
    at org.mozilla.javascript.InterpretedFunction.call(InterpretedFunction.java:162)
    at org.mozilla.javascript.ContextFactory.doTopCall(ContextFactory.java:393)
    at com.gargoylesoftware.htmlunit.javascript.HtmlUnitContextFactory.doTopCall(HtmlUnitContextFactory.java:192)
    at org.mozilla.javascript.ScriptRuntime.doTopCall(ScriptRuntime.java:2834)
    at org.mozilla.javascript.InterpretedFunction.call(InterpretedFunction.java:160)
    at com.gargoylesoftware.htmlunit.javascript.host.EventHandler.call(EventHandler.java:100)
    at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine.callFunction(JavaScriptEngine.java:499)
    at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine$6.doRun(JavaScriptEngine.java:463)
    at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine$HtmlUnitContextAction.run(JavaScriptEngine.java:553)
    at org.mozilla.javascript.Context.call(Context.java:564)
    at org.mozilla.javascript.Context.call(Context.java:499)
    at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine.callFunction(JavaScriptEngine.java:470)
    at com.gargoylesoftware.htmlunit.html.HtmlPage.executeJavaScriptFunctionIfPossible(HtmlPage.java:1003)
    at com.gargoylesoftware.htmlunit.javascript.host.EventListenersContainer.executeEventHandler(EventListenersContainer.java:173)
    at com.gargoylesoftware.htmlunit.javascript.host.EventListenersContainer.executeBubblingListeners(EventListenersContainer.java:186)
    at com.gargoylesoftware.htmlunit.javascript.host.Node.fireEvent(Node.java:590)
    at com.gargoylesoftware.htmlunit.html.HtmlElement$2.run(HtmlElement.java:1257)
    at org.mozilla.javascript.Context.call(Context.java:577)
    at org.mozilla.javascript.Context.call(Context.java:499)
    at com.gargoylesoftware.htmlunit.html.HtmlElement.fireEvent(HtmlElement.java:1261)
    at com.gargoylesoftware.htmlunit.html.ClickableElement.click(ClickableElement.java:135)
    at com.gargoylesoftware.htmlunit.html.ClickableElement.click(ClickableElement.java:109)
    at com.gargoylesoftware.htmlunit.html.ClickableElement.click(ClickableElement.java:87)
    at uy.com.tilsor.sipi.testing.auditoria.TSCUAUD4.test1(TSCUAUD4.java:99)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:585)
    at junit.framework.TestCase.runTest(TestCase.java:154)
    at junit.framework.TestCase.runBare(TestCase.java:127)
    at junit.framework.TestResult$1.protect(TestResult.java:106)
    at junit.framework.TestResult.runProtected(TestResult.java:124)
    at junit.framework.TestResult.run(TestResult.java:109)
    at junit.framework.TestCase.run(TestCase.java:118)
    at junit.framework.TestSuite.runTest(TestSuite.java:208)
    at junit.framework.TestSuite.run(TestSuite.java:203)
    at oracle.jdevimpl.junit.runner.TestRunner.doRun(TestRunner.java:111)
    at oracle.jdevimpl.junit.runner.TestRunner.start(TestRunner.java:91)
    at oracle.jdevimpl.junit.runner.TestRunner.main(TestRunner.java:43)
    Caused by: com.gargoylesoftware.htmlunit.ScriptException: Wrapped com.gargoylesoftware.htmlunit.ScriptException: TypeError: Cannot read property "length" from undefined (http://negrainau.tilsor.com.uy:7777/uiSipi/adf/jsLibs/Common10_1_3_3_0.js#4384) (http://negrainau.tilsor.com.uy:7777/uiSipi/adf/jsLibs/Common10_1_3_3_0.js#4177)
    at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine$HtmlUnitContextAction.run(JavaScriptEngine.java:557)
    at org.mozilla.javascript.Context.call(Context.java:564)
    at org.mozilla.javascript.Context.call(Context.java:499)
    at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine.execute(JavaScriptEngine.java:438)
    at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine.execute(JavaScriptEngine.java:412)
    at com.gargoylesoftware.htmlunit.html.HtmlPage.executeJavaScriptIfPossible(HtmlPage.java:968)
    at com.gargoylesoftware.htmlunit.html.HtmlScript.executeInlineScriptIfNeeded(HtmlScript.java:262)
    at com.gargoylesoftware.htmlunit.html.HtmlScript.appendDomChild(HtmlScript.java:174)
    at com.gargoylesoftware.htmlunit.html.HTMLParser$HtmlUnitDOMBuilder.handleCharacters(HTMLParser.java:508)
    at com.gargoylesoftware.htmlunit.html.HTMLParser$HtmlUnitDOMBuilder.endElement(HTMLParser.java:466)
    at org.apache.xerces.parsers.AbstractSAXParser.endElement(Unknown Source)
    at org.cyberneko.html.filters.DefaultFilter.endElement(DefaultFilter.java:249)
    at org.cyberneko.html.filters.NamespaceBinder.endElement(NamespaceBinder.java:367)
    at org.cyberneko.html.HTMLTagBalancer.callEndElement(HTMLTagBalancer.java:1015)
    at org.cyberneko.html.HTMLTagBalancer.endElement(HTMLTagBalancer.java:888)
    at org.cyberneko.html.HTMLScanner$SpecialScanner.scan(HTMLScanner.java:2831)
    at org.cyberneko.html.HTMLScanner.scanDocument(HTMLScanner.java:809)
    at org.cyberneko.html.HTMLConfiguration.parse(HTMLConfiguration.java:478)
    at org.cyberneko.html.HTMLConfiguration.parse(HTMLConfiguration.java:431)
    at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
    at com.gargoylesoftware.htmlunit.html.HTMLParser.parse(HTMLParser.java:257)
    at com.gargoylesoftware.htmlunit.DefaultPageCreator.createHtmlPage(DefaultPageCreator.java:116)
    at com.gargoylesoftware.htmlunit.DefaultPageCreator.createPage(DefaultPageCreator.java:89)
    at com.gargoylesoftware.htmlunit.WebClient.loadWebResponseInto(WebClient.java:453)
    at com.gargoylesoftware.htmlunit.WebClient.getPage(WebClient.java:362)
    at com.gargoylesoftware.htmlunit.WebClient.getPage(WebClient.java:385)
    at com.gargoylesoftware.htmlunit.html.HtmlForm.submit(HtmlForm.java:187)
    at com.gargoylesoftware.htmlunit.javascript.host.HTMLFormElement.jsxFunction_submit(HTMLFormElement.java:244)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:585)
    at org.mozilla.javascript.MemberBox.invoke(MemberBox.java:155)
    ... 42 more
    Caused by: org.mozilla.javascript.WrappedException: Wrapped com.gargoylesoftware.htmlunit.ScriptException: TypeError: Cannot read property "length" from undefined (http://negrainau.tilsor.com.uy:7777/uiSipi/adf/jsLibs/Common10_1_3_3_0.js#4384) (http://negrainau.tilsor.com.uy:7777/uiSipi/adf/jsLibs/Common10_1_3_3_0.js#4177)
    at org.mozilla.javascript.Context.throwAsScriptRuntimeEx(Context.java:1757)
    at org.mozilla.javascript.MemberBox.invoke(MemberBox.java:170)
    at org.mozilla.javascript.FunctionObject.call(FunctionObject.java:474)
    at org.mozilla.javascript.Interpreter.interpretLoop(Interpreter.java:3237)
    at org.mozilla.javascript.Interpreter.interpret(Interpreter.java:2394)
    at org.mozilla.javascript.InterpretedFunction.exec(InterpretedFunction.java:176)
    at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine$5.doRun(JavaScriptEngine.java:429)
    at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine$HtmlUnitContextAction.run(JavaScriptEngine.java:553)
    ... 74 more
    Caused by: com.gargoylesoftware.htmlunit.ScriptException: TypeError: Cannot read property "length" from undefined (http://negrainau.tilsor.com.uy:7777/uiSipi/adf/jsLibs/Common10_1_3_3_0.js#4384)
    at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine$HtmlUnitContextAction.run(JavaScriptEngine.java:557)
    at org.mozilla.javascript.Context.call(Context.java:564)
    at org.mozilla.javascript.Context.call(Context.java:499)
    at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine.execute(JavaScriptEngine.java:438)
    at com.gargoylesoftware.htmlunit.html.HtmlPage.loadExternalJavaScriptFile(HtmlPage.java:1046)
    at com.gargoylesoftware.htmlunit.html.HtmlScript.executeScriptIfNeeded(HtmlScript.java:289)
    at com.gargoylesoftware.htmlunit.html.HtmlScript.onAddedToPage(HtmlScript.java:210)
    at com.gargoylesoftware.htmlunit.html.HtmlPage.notifyNodeAdded(HtmlPage.java:1741)
    at com.gargoylesoftware.htmlunit.html.DomNode.insertBefore(DomNode.java:964)
    at com.gargoylesoftware.htmlunit.javascript.host.Node.jsxFunction_insertBefore(Node.java:257)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:585)
    at org.mozilla.javascript.MemberBox.invoke(MemberBox.java:155)
    ... 80 more
    Caused by: org.mozilla.javascript.EcmaError: TypeError: Cannot read property "length" from undefined (http://negrainau.tilsor.com.uy:7777/uiSipi/adf/jsLibs/Common10_1_3_3_0.js#4384)
    at org.mozilla.javascript.ScriptRuntime.constructError(ScriptRuntime.java:3350)
    at org.mozilla.javascript.ScriptRuntime.constructError(ScriptRuntime.java:3340)
    at org.mozilla.javascript.ScriptRuntime.typeError(ScriptRuntime.java:3356)
    at org.mozilla.javascript.ScriptRuntime.typeError2(ScriptRuntime.java:3375)
    at org.mozilla.javascript.ScriptRuntime.undefReadError(ScriptRuntime.java:3388)
    at org.mozilla.javascript.ScriptRuntime.getObjectProp(ScriptRuntime.java:1362)
    at org.mozilla.javascript.Interpreter.interpretLoop(Interpreter.java:2965)
    at org.mozilla.javascript.Interpreter.interpret(Interpreter.java:2394)
    at org.mozilla.javascript.InterpretedFunction.exec(InterpretedFunction.java:176)
    at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine$5.doRun(JavaScriptEngine.java:429)
    at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine$HtmlUnitContextAction.run(JavaScriptEngine.java:553)
    ... 94 more
    Inside wrapped exception:
    ======= EXCEPTION START ========
    Exception class=[org.mozilla.javascript.WrappedException]
    com.gargoylesoftware.htmlunit.ScriptException: Wrapped com.gargoylesoftware.htmlunit.ScriptException: TypeError: Cannot read property "length" from undefined (http://negrainau.tilsor.com.uy:7777/uiSipi/adf/jsLibs/Common10_1_3_3_0.js#4384) (http://negrainau.tilsor.com.uy:7777/uiSipi/adf/jsLibs/Common10_1_3_3_0.js#4177)
    at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine$HtmlUnitContextAction.run(JavaScriptEngine.java:557)
    at org.mozilla.javascript.Context.call(Context.java:564)
    at org.mozilla.javascript.Context.call(Context.java:499)
    at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine.execute(JavaScriptEngine.java:438)
    at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine.execute(JavaScriptEngine.java:412)
    at com.gargoylesoftware.htmlunit.html.HtmlPage.executeJavaScriptIfPossible(HtmlPage.java:968)
    at com.gargoylesoftware.htmlunit.html.HtmlScript.executeInlineScriptIfNeeded(HtmlScript.java:262)
    at com.gargoylesoftware.htmlunit.html.HtmlScript.appendDomChild(HtmlScript.java:174)
    at com.gargoylesoftware.htmlunit.html.HTMLParser$HtmlUnitDOMBuilder.handleCharacters(HTMLParser.java:508)
    at com.gargoylesoftware.htmlunit.html.HTMLParser$HtmlUnitDOMBuilder.endElement(HTMLParser.java:466)
    at org.apache.xerces.parsers.AbstractSAXParser.endElement(Unknown Source)
    at org.cyberneko.html.filters.DefaultFilter.endElement(DefaultFilter.java:249)
    at org.cyberneko.html.filters.NamespaceBinder.endElement(NamespaceBinder.java:367)
    at org.cyberneko.html.HTMLTagBalancer.callEndElement(HTMLTagBalancer.java:1015)
    at org.cyberneko.html.HTMLTagBalancer.endElement(HTMLTagBalancer.java:888)
    at org.cyberneko.html.HTMLScanner$SpecialScanner.scan(HTMLScanner.java:2831)
    at org.cyberneko.html.HTMLScanner.scanDocument(HTMLScanner.java:809)
    at org.cyberneko.html.HTMLConfiguration.parse(HTMLConfiguration.java:478)
    at org.cyberneko.html.HTMLConfiguration.parse(HTMLConfiguration.java:431)
    at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
    at com.gargoylesoftware.htmlunit.html.HTMLParser.parse(HTMLParser.java:257)
    at com.gargoylesoftware.htmlunit.DefaultPageCreator.createHtmlPage(DefaultPageCreator.java:116)
    at com.gargoylesoftware.htmlunit.DefaultPageCreator.createPage(DefaultPageCreator.java:89)
    at com.gargoylesoftware.htmlunit.WebClient.loadWebResponseInto(WebClient.java:453)
    at com.gargoylesoftware.htmlunit.WebClient.getPage(WebClient.java:362)
    at com.gargoylesoftware.htmlunit.WebClient.getPage(WebClient.java:385)
    at com.gargoylesoftware.htmlunit.html.HtmlForm.submit(HtmlForm.java:187)
    at com.gargoylesoftware.htmlunit.javascript.host.HTMLFormElement.jsxFunction_submit(HTMLFormElement.java:244)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:585)
    at org.mozilla.javascript.MemberBox.invoke(MemberBox.java:155)
    at org.mozilla.javascript.FunctionObject.call(FunctionObject.java:474)
    at org.mozilla.javascript.Interpreter.interpretLoop(Interpreter.java:3237)
    at org.mozilla.javascript.Interpreter.interpret(Interpreter.java:2394)
    at org.mozilla.javascript.InterpretedFunction.call(InterpretedFunction.java:162)
    at org.mozilla.javascript.ContextFactory.doTopCall(ContextFactory.java:393)
    at com.gargoylesoftware.htmlunit.javascript.HtmlUnitContextFactory.doTopCall(HtmlUnitContextFactory.java:192)
    at org.mozilla.javascript.ScriptRuntime.doTopCall(ScriptRuntime.java:2834)
    at org.mozilla.javascript.InterpretedFunction.call(InterpretedFunction.java:160)
    at com.gargoylesoftware.htmlunit.javascript.host.EventHandler.call(EventHandler.java:100)
    at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine.callFunction(JavaScriptEngine.java:499)
    at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine$6.doRun(JavaScriptEngine.java:463)
    at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine$HtmlUnitContextAction.run(JavaScriptEngine.java:553)
    at org.mozilla.javascript.Context.call(Context.java:564)
    at org.mozilla.javascript.Context.call(Context.java:499)
    at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine.callFunction(JavaScriptEngine.java:470)
    at com.gargoylesoftware.htmlunit.html.HtmlPage.executeJavaScriptFunctionIfPossible(HtmlPage.java:1003)
    at com.gargoylesoftware.htmlunit.javascript.host.EventListenersContainer.executeEventHandler(EventListenersContainer.java:173)
    at com.gargoylesoftware.htmlunit.javascript.host.EventListenersContainer.executeBubblingListeners(EventListenersContainer.java:186)
    at com.gargoylesoftware.htmlunit.javascript.host.Node.fireEvent(Node.java:590)
    at com.gargoylesoftware.htmlunit.html.HtmlElement$2.run(HtmlElement.java:1257)
    at org.mozilla.javascript.Context.call(Context.java:577)
    at org.mozilla.javascript.Context.call(Context.java:499)
    at com.gargoylesoftware.htmlunit.html.HtmlElement.fireEvent(HtmlElement.java:1261)
    at com.gargoylesoftware.htmlunit.html.ClickableElement.click(ClickableElement.java:135)
    at com.gargoylesoftware.htmlunit.html.ClickableElement.click(ClickableElement.java:109)
    at com.gargoylesoftware.htmlunit.html.ClickableElement.click(ClickableElement.java:87)
    at uy.com.tilsor.sipi.testing.auditoria.TSCUAUD4.test1(TSCUAUD4.java:99)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:585)
    at junit.framework.TestCase.runTest(TestCase.java:154)
    at junit.framework.TestCase.runBare(TestCase.java:127)
    at junit.framework.TestResult$1.protect(TestResult.java:106)
    at junit.framework.TestResult.runProtected(TestResult.java:124)
    at junit.framework.TestResult.run(TestResult.java:109)
    at junit.framework.TestCase.run(TestCase.java:118)
    at junit.framework.TestSuite.runTest(TestSuite.java:208)
    at junit.framework.TestSuite.run(TestSuite.java:203)
    at oracle.jdevimpl.junit.runner.TestRunner.doRun(TestRunner.java:111)
    at oracle.jdevimpl.junit.runner.TestRunner.start(TestRunner.java:91)
    at oracle.jdevimpl.junit.runner.TestRunner.main(TestRunner.java:43)
    Caused by: org.mozilla.javascript.WrappedException: Wrapped com.gargoylesoftware.htmlunit.ScriptException: TypeError: Cannot read property "length" from undefined (http://negrainau.tilsor.com.uy:7777/uiSipi/adf/jsLibs/Common10_1_3_3_0.js#4384) (http://negrainau.tilsor.com.uy:7777/uiSipi/adf/jsLibs/Common10_1_3_3_0.js#4177)
    at org.mozilla.javascript.Context.throwAsScriptRuntimeEx(Context.java:1757)
    at org.mozilla.javascript.MemberBox.invoke(MemberBox.java:170)
    at org.mozilla.javascript.FunctionObject.call(FunctionObject.java:474)
    at org.mozilla.javascript.Interpreter.interpretLoop(Interpreter.java:3237)
    at org.mozilla.javascript.Interpreter.interpret(Interpreter.java:2394)
    at org.mozilla.javascript.InterpretedFunction.exec(InterpretedFunction.java:176)
    at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine$5.doRun(JavaScriptEngine.java:429)
    at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine$HtmlUnitContextAction.run(JavaScriptEngine.java:553)
    ... 74 more
    Caused by: com.gargoylesoftware.htmlunit.ScriptException: TypeError: Cannot read property "length" from undefined (http://negrainau.tilsor.com.uy:7777/uiSipi/adf/jsLibs/Common10_1_3_3_0.js#4384)
    at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine$HtmlUnitContextAction.run(JavaScriptEngine.java:557)
    at org.mozilla.javascript.Context.call(Context.java:564)
    at org.mozilla.javascript.Context.call(Context.java:499)
    at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine.execute(JavaScriptEngine.java:438)
    at com.gargoylesoftware.htmlunit.html.HtmlPage.loadExternalJavaScriptFile(HtmlPage.java:1046)
    at com.gargoylesoftware.htmlunit.html.HtmlScript.executeScriptIfNeeded(HtmlScript.java:289)
    at com.gargoylesoftware.htmlunit.html.HtmlScript.onAddedToPage(HtmlScript.java:210)
    at com.gargoylesoftware.htmlunit.html.HtmlPage.notifyNodeAdded(HtmlPage.java:1741)
    at com.gargoylesoftware.htmlunit.html.DomNode.insertBefore(DomNode.java:964)
    at com.gargoylesoftware.htmlunit.javascript.host.Node.jsxFunction_insertBefore(Node.java:257)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:585)
    at org.mozilla.javascript.MemberBox.invoke(MemberBox.java:155)
    ... 80 more
    Caused by: org.mozilla.javascript.EcmaError: TypeError: Cannot read property "length" from undefined (http://negrainau.tilsor.com.uy:7777/uiSipi/adf/jsLibs/Common10_1_3_3_0.js#4384)
    at org.mozilla.javascript.ScriptRuntime.constructError(ScriptRuntime.java:3350)
    at org.mozilla.javascript.ScriptRuntime.constructError(ScriptRuntime.java:3340)
    at org.mozilla.javascript.ScriptRuntime.typeError(ScriptRuntime.java:3356)
    at org.mozilla.javascript.ScriptRuntime.typeError2(ScriptRuntime.java:3375)
    at org.mozilla.javascript.ScriptRuntime.undefReadError(ScriptRuntime.java:3388)
    at org.mozilla.javascript.ScriptRuntime.getObjectProp(ScriptRuntime.java:1362)
    at org.mozilla.javascript.Interpreter.interpretLoop(Interpreter.java:2965)
    at org.mozilla.javascript.Interpreter.interpret(Interpreter.java:2394)
    at org.mozilla.javascript.InterpretedFunction.exec(InterpretedFunction.java:176)
    at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine$5.doRun(JavaScriptEngine.java:429)
    at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine$HtmlUnitContextAction.run(JavaScriptEngine.java:553)
    ... 94 more
    WrappedException: org.mozilla.javascript.WrappedException: Wrapped com.gargoylesoftware.htmlunit.ScriptException: TypeError: Cannot read property "length" from undefined (http://negrainau.tilsor.com.uy:7777/uiSipi/adf/jsLibs/Common10_1_3_3_0.js#4384) (http://negrainau.tilsor.com.uy:7777/uiSipi/adf/jsLibs/Common10_1_3_3_0.js#4177)
    at org.mozilla.javascript.Context.throwAsScriptRuntimeEx(Context.java:1757)
    at org.mozilla.javascript.MemberBox.invoke(MemberBox.java:170)
    at org.mozilla.javascript.FunctionObject.call(FunctionObject.java:474)
    at org.mozilla.javascript.Interpreter.interpretLoop(Interpreter.java:3237)
    at script._loadScriptLibrariesGecko(http://negrainau.tilsor.com.uy:7777/uiSipi/adf/jsLibs/Common10_1_3_3_0.js:4177)
    at script._loadScriptLibraries(http://negrainau.tilsor.com.uy:7777/uiSipi/adf/jsLibs/Common10_1_3_3_0.js:4195)
    at script._partialChange(http://negrainau.tilsor.com.uy:7777/uiSipi/adf/jsLibs/Common10_1_3_3_0.js:5578)
    at script(script in http://negrainau.tilsor.com.uy:7777/uiSipi/faces/busquedaAuditoriaBusquedas.jspx?_afPfm=1 from (5, 1014) to (0, 0):5)
    at org.mozilla.javascript.Interpreter.interpret(Interpreter.java:2394)
    at org.mozilla.javascript.InterpretedFunction.exec(InterpretedFunction.java:176)
    at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine$5.doRun(JavaScriptEngine.java:429)
    at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine$HtmlUnitContextAction.run(JavaScriptEngine.java:553)
    at org.mozilla.javascript.Context.call(Context.java:564)
    at org.mozilla.javascript.Context.call(Context.java:499)
    at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine.execute(JavaScriptEngine.java:438)
    at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine.execute(JavaScriptEngine.java:412)
    at com.gargoylesoftware.htmlunit.html.HtmlPage.executeJavaScriptIfPossible(HtmlPage.java:968)
    at com.gargoylesoftware.htmlunit.html.HtmlScript.executeInlineScriptIfNeeded(HtmlScript.java:262)
    at com.gargoylesoftware.htmlunit.html.HtmlScript.appendDomChild(HtmlScript.java:174)
    at com.gargoylesoftware.htmlunit.html.HTMLParser$HtmlUnitDOMBuilder.handleCharacters(HTMLParser.java:508)
    at com.gargoylesoftware.htmlunit.html.HTMLParser$HtmlUnitDOMBuilder.endElement(HTMLParser.java:466)
    at org.apache.xerces.parsers.AbstractSAXParser.endElement(Unknown Source)
    at org.cyberneko.html.filters.DefaultFilter.endElement(DefaultFilter.java:249)
    at org.cyberneko.html.filters.NamespaceBinder.endElement(NamespaceBinder.java:367)
    at org.cyberneko.html.HTMLTagBalancer.callEndElement(HTMLTagBalancer.java:1015)
    at org.cyberneko.html.HTMLTagBalancer.endElement(HTMLTagBalancer.java:888)
    at org.cyberneko.html.HTMLScanner$SpecialScanner.scan(HTMLScanner.java:2831)
    at org.cyberneko.html.HTMLScanner.scanDocument(HTMLScanner.java:809)
    at org.cyberneko.html.HTMLConfiguration.parse(HTMLConfiguration.java:478)
    at org.cyberneko.html.HTMLConfiguration.parse(HTMLConfiguration.java:431)
    at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
    at com.gargoylesoftware.htmlunit.html.HTMLParser.parse(HTMLParser.java:257)
    at com.gargoylesoftware.htmlunit.DefaultPageCreator.createHtmlPage(DefaultPageCreator.java:116)
    at com.gargoylesoftware.htmlunit.DefaultPageCreator.createPage(DefaultPageCreator.java:89)
    at com.gargoylesoftware.htmlunit.WebClient.loadWebResponseInto(WebClient.java:453)
    at com.gargoylesoftware.htmlunit.WebClient.getPage(WebClient.java:362)
    at com.gargoylesoftware.htmlunit.WebClient.getPage(WebClient.java:385)
    at com.gargoylesoftware.htmlunit.html.HtmlForm.submit(HtmlForm.java:187)
    at com.gargoylesoftware.htmlunit.javascript.host.HTMLFormElement.jsxFunction_submit(HTMLFormElement.java:244)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:585)
    at org.mozilla.javascript.MemberBox.invoke(MemberBox.java:155)
    at org.mozilla.javascript.FunctionObject.call(FunctionObject.java:474)
    at org.mozilla.javascript.Interpreter.interpretLoop(Interpreter.java:3237)
    at script.submitForm(http://negrainau.tilsor.com.uy:7777/uiSipi/adf/jsLibs/Common10_1_3_3_0.js:3006)
    at script._submitPartialChange(http://negrainau.tilsor.com.uy:7777/uiSipi/adf/jsLibs/Common10_1_3_3_0.js:4096)
    at script._adfspu(script in http://negrainau.tilsor.com.uy:7777/uiSipi/faces/busquedaAuditoriaBusquedas.jspx from (2, 3284) to (0, 0):2)
    at script(onclick event for HtmlAnchor[a href="#" onclick="_adfspu('form1',0,0,'form1:usuarioSelectInputText',{part:'b'});return false;"]:1)
    at org.mozilla.javascript.Interpreter.interpret(Interpreter.java:2394)
    at org.mozilla.javascript.InterpretedFunction.call(InterpretedFunction.java:162)
    at org.mozilla.javascript.ContextFactory.doTopCall(ContextFactory.java:393)
    at com.gargoylesoftware.htmlunit.javascript.HtmlUnitContextFactory.doTopCall(HtmlUnitContextFactory.java:192)
    at org.mozilla.javascript.ScriptRuntime.doTopCall(ScriptRuntime.java:2834)
    at org.mozilla.javascript.InterpretedFunction.call(InterpretedFunction.java:160)
    at com.gargoylesoftware.htmlunit.javascript.host.EventHandler.call(EventHandler.java:100)
    at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine.callFunction(JavaScriptEngine.java:499)
    at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine$6.doRun(JavaScriptEngine.java:463)
    at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine$HtmlUnitContextAction.run(JavaScriptEngine.java:553)
    at org.mozilla.javascript.Context.call(Context.java:564)
    at org.mozilla.javascript.Context.call(Context.java:499)
    at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine.callFunction(JavaScriptEngine.java:470)
    at com.gargoylesoftware.htmlunit.html.HtmlPage.executeJavaScriptFunctionIfPossible(HtmlPage.java:1003)
    at com.gargoylesoftware.htmlunit.javascript.host.EventListenersContainer.executeEventHandler(EventListenersContainer.java:173)
    at com.gargoylesoftware.htmlunit.javascript.host.EventListenersContainer.executeBubblingListeners(EventListenersContainer.java:186)
    at com.gargoylesoftware.htmlunit.javascript.host.Node.fireEvent(Node.java:590)
    at com.gargoylesoftware.htmlunit.html.HtmlElement$2.run(HtmlElement.java:1257)
    at org.mozilla.javascript.Context.call(Context.java:577)
    at org.mozilla.javascript.Context.call(Context.java:499)
    at com.gargoylesoftware.htmlunit.html.HtmlElement.fireEvent(HtmlElement.java:1261)
    at com.gargoylesoftware.htmlunit.html.ClickableElement.click(ClickableElement.java:135)
    at com.gargoylesoftware.htmlunit.html.ClickableElement.click(ClickableElement.java:109)
    at com.gargoylesoftware.htmlunit.html.ClickableElement.click(ClickableElement.java:87)
    at uy.com.tilsor.sipi.testing.auditoria.TSCUAUD4.test1(TSCUAUD4.java:99)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:585)
    at junit.framework.TestCase.runTest(TestCase.java:154)
    at junit.framework.TestCase.runBare(TestCase.java:127)
    at junit.framework.TestResult$1.protect(TestResult.java:106)
    at junit.framework.TestResult.runProtected(TestResult.java:124)
    at junit.framework.TestResult.run(TestResult.java:109)
    at junit.framework.TestCase.run(TestCase.java:118)
    at junit.framework.TestSuite.runTest(TestSuite.java:208)
    at junit.framework.TestSuite.run(TestSuite.java:203)
    at oracle.jdevimpl.junit.runner.TestRunner.doRun(TestRunner.java:111)
    at oracle.jdevimpl.junit.runner.TestRunner.start(TestRunner.java:91)
    at oracle.jdevimpl.junit.runner.TestRunner.main(TestRunner.java:43)
    Caused by: com.gargoylesoftware.htmlunit.ScriptException: TypeError: Cannot read property "length" from undefined (http://negrainau.tilsor.com.uy:7777/uiSipi/adf/jsLibs/Common10_1_3_3_0.js#4384)
    at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine$HtmlUnitContextAction.run(JavaScriptEngine.java:557)
    at org.mozilla.javascript.Context.call(Context.java:564)
    at org.mozilla.javascript.Context.call(Context.java:499)
    at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine.execute(JavaScriptEngine.java:438)
    at com.gargoylesoftware.htmlunit.html.HtmlPage.loadExternalJavaScriptFile(HtmlPage.java:1046)
    at com.gargoylesoftware.htmlunit.html.HtmlScript.executeScriptIfNeeded(HtmlScript.java:289)
    at com.gargoylesoftware.htmlunit.html.HtmlScript.onAddedToPage(HtmlScript.java:210)
    at com.gargoylesoftware.htmlunit.html.HtmlPage.notifyNodeAdded(HtmlPage.java:1741)
    at com.gargoylesoftware.htmlunit.html.DomNode.insertBefore(DomNode.java:964)
    at com.gargoylesoftware.htmlunit.javascript.host.Node.jsxFunction_insertBefore(Node.java:257)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:585)
    at org.mozilla.javascript.MemberBox.invoke(MemberBox.java:155)
    ... 80 more
    Caused by: org.mozilla.javascript.EcmaError: TypeError: Cannot read property "length" from undefined (http://negrainau.tilsor.com.uy:7777/uiSipi/adf/jsLibs/Common10_1_3_3_0.js#4384)
    at org.mozilla.javascript.ScriptRuntime.constructError(ScriptRuntime.java:3350)
    at org.mozilla.javascript.ScriptRuntime.constructError(ScriptRuntime.java:3340)
    at org.mozilla.javascript.ScriptRuntime.typeError(ScriptRuntime.java:3356)
    at org.mozilla.javascript.ScriptRuntime.typeError2(ScriptRuntime.java:3375)
    at org.mozilla.javascript.ScriptRuntime.undefReadError(ScriptRuntime.java:3388)
    at org.mozilla.javascript.ScriptRuntime.getObjectProp(ScriptRuntime.java:1362)
    at org.mozilla.javascript.Interpreter.interpretLoop(Interpreter.java:2965)
    at org.mozilla.javascript.Interpreter.interpret(Interpreter.java:2394)
    at org.mozilla.javascript.InterpretedFunction.exec(InterpretedFunction.java:176)
    at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine$5.doRun(JavaScriptEngine.java:429)
    at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine$HtmlUnitContextAction.run(JavaScriptEngine.java:553)
    ... 94 more
    Inside wrapped exception:
    ======= EXCEPTION START ========
    EcmaError: lineNumber=[4384] column=[0] lineSource=[no source] name=[TypeError] sourceName=[http://negrainau.tilsor.com.uy:7777/uiSipi/adf/jsLibs/Common10_1_3_3_0.js] message=[TypeError: Cannot read property "length" from undefined (http://negrainau.tilsor.com.uy:7777/uiSipi/adf/jsLibs/Common10_1_3_3_0.js#4384)]
    com.gargoylesoftware.htmlunit.ScriptException: TypeError: Cannot read property "length" from undefined (http://negrainau.tilsor.com.uy:7777/uiSipi/adf/jsLibs/Common10_1_3_3_0.js#4384)
    at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine$HtmlUnitContextAction.run(JavaScriptEngine.java:557)
    at org.mozilla.javascript.Context.call(Context.java:564)
    at org.mozilla.javascript.Context.call(Context.java:499)
    at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine.execute(JavaScriptEngine.java:438)
    at com.gargoylesoftware.htmlunit.html.HtmlPage.loadExternalJavaScriptFile(HtmlPage.java:1046)
    at com.gargoylesoftware.htmlunit.html.HtmlScript.executeScriptIfNeeded(HtmlScript.java:289)
    at com.gargoylesoftware.htmlunit.html.HtmlScript.onAddedToPage(HtmlScript.java:210)
    at com.gargoylesoftware.htmlunit.html.HtmlPage.notifyNodeAdded(HtmlPage.java:1741)
    at com.gargoylesoftware.htmlunit.html.DomNode.insertBefore(DomNode.java:964)
    at com.gargoylesoftware.htmlunit.javascript.host.Node.jsxFunction_insertBefore(Node.java:257)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:585)
    at org.mozilla.javascript.MemberBox.invoke(MemberBox.java:155)
    at org.mozilla.javascript.FunctionObject.call(FunctionObject.java:474)
    at org.mozilla.javascript.Interpreter.interpretLoop(Interpreter.java:3237)
    at org.mozilla.javascript.Interpreter.interpret(Interpreter.java:2394)
    at org.mozilla.javascript.InterpretedFunction.exec(InterpretedFunction.java:176)
    at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine$5.doRun(JavaScriptEngine.java:429)
    at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine$HtmlUnitContextAction.run(JavaScriptEngine.java:553)
    at org.mozilla.javascript.Context.call(Context.java:564)
    at org.mozilla.javascript.Context.call(Context.java:499)
    at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine.execute(JavaScriptEngine.java:438)
    at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine.execute(JavaScriptEngine.java:412)
    at com.gargoylesoftware.htmlunit.html.HtmlPage.executeJavaScriptIfPossible(HtmlPage.java:968)
    at com.gargoylesoftware.htmlunit.html.HtmlScript.executeInlineScriptIfNeeded(HtmlScript.java:262)
    at com.gargoylesoftware.htmlunit.html.HtmlScript.appendDomChild(HtmlScript.java:174)
    at com.gargoylesoftware.htmlunit.html.HTMLParser$HtmlUnitDOMBuilder.handleCharacters(HTMLParser.java:508)
    at com.gargoylesoftware.htmlunit.html.HTMLParser$HtmlUnitDOMBuilder.endElement(HTMLParser.java:466)
    at org.apache.xerces.parsers.AbstractSAXParser.endElement(Unknown Source)
    at org.cyberneko.html.filters.DefaultFilter.endElement(DefaultFilter.java:249)
    at org.cyberneko.html.filters.NamespaceBinder.endElement(NamespaceBinder.java:367)
    at org.cyberneko.html.HTMLTagBalancer.callEndElement(HTMLTagBalancer.java:1015)
    at org.cyberneko.html.HTMLTagBalancer.endElement(HTMLTagBalancer.java:888)
    at org.cyberneko.html.HTMLScanner$SpecialScanner.scan(HTMLScanner.java:2831)
    at org.cyberneko.html.HTMLScanner.scanDocument(HTMLScanner.java:809)
    at org.cyberneko.html.HTMLConfiguration.parse(HTMLConfiguration.java:478)
    at org.cyberneko.html.HTMLConfiguration.parse(HTMLConfiguration.java:431)
    at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
    at com.gargoylesoftware.htmlunit.html.HTMLParser.parse(HTMLParser.java:257)
    at com.gargoylesoftware.htmlunit.DefaultPageCreator.createHtmlPage(DefaultPageCreator.java:116)
    at com.gargoylesoftware.htmlunit.DefaultPageCreator.createPage(DefaultPageCreator.java:89)
    at com.gargoylesoftware.htmlunit.WebClient.loadWebResponseInto(WebClient.java:453)
    at com.gargoylesoftware.htmlunit.WebClient.getPage(WebClient.java:362)
    at com.gargoylesoftware.htmlunit.WebClient.getPage(WebClient.java:385)
    at com.gargoylesoftware.htmlunit.html.HtmlForm.submit(HtmlForm.java:187)
    at com.gargoylesoftware.htmlunit.javascript.host.HTMLFormElement.jsxFunction_submit(HTMLFormElement.java:244)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:585)
    at org.mozilla.javascript.MemberBox.invoke(MemberBox.java:155)
    at org.mozilla.javascript.FunctionObject.call(FunctionObject.java:474)
    at org.mozilla.javascript.Interpreter.interpretLoop(Interpreter.java:3237)
    at org.mozilla.javascript.Interpreter.interpret(Interpreter.java:2394)
    at org.mozilla.javascript.InterpretedFunction.call(InterpretedFunction.java:162)
    at org.mozilla.javascript.ContextFactory.doTopCall(ContextFactory.java:393)
    at com.gargoylesoftware.htmlunit.javascript.HtmlUnitContextFactory.doTopCall(HtmlUnitContextFactory.java:192)
    at org.mozilla.javascript.ScriptRuntime.doTopCall(ScriptRuntime.java:2834)
    at org.mozilla.javascript.InterpretedFunction.call(InterpretedFunction.java:160)
    at com.gargoylesoftware.htmlunit.javascript.host.EventHandler.call(EventHandler.java:100)
    at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine.callFunction(JavaScriptEngine.java:499)
    at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine$6.doRun(JavaScriptEngine.java:463)
    at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine$HtmlUnitContextAction.run(JavaScriptEngine.java:553)
    at org.mozilla.javascript.Context.call(Context.java:564)
    at org.mozilla.javascript.Context.call(Context.java:499)
    at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine.callFunction(JavaScriptEngine.java:470)
    at com.gargoylesoftware.htmlunit.html.HtmlPage.executeJavaScriptFunctionIfPossible(HtmlPage.java:1003)
    at com.gargoylesoftware.htmlunit.javascript.host.EventListenersContainer.executeEventHandler(EventListenersContainer.java:173)
    at com.gargoylesoftware.htmlunit.javascript.host.EventListenersContainer.executeBubblingListeners(EventListenersContainer.java:186)
    at com.gargoylesoftware.htmlunit.javascript.host.Node.fireEvent(Node.java:590)
    at com.gargoylesoftware.htmlunit.html.HtmlElement$2.run(HtmlElement.java:1257)
    at org.mozilla.javascript.Context.call(Context.java:577)
    at org.mozilla.javascript.Context.call(Context.java:499)
    at com.gargoylesoftware.htmlunit.html.HtmlElement.fireEvent(HtmlElement.java:1261)
    at com.gargoylesoftware.htmlunit.html.ClickableElement.click(ClickableElement.java:135)
    at com.gargoylesoftware.htmlunit.html.ClickableElement.click(ClickableElement.java:109)
    at com.gargoylesoftware.htmlunit.html.ClickableElement.click(ClickableElement.java:87)
    at uy.com.tilsor.sipi.testing.auditoria.TSCUAUD4.test1(TSCUAUD4.java:99)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:585)
    at junit.framework.TestCase.runTest(TestCase.java:154)
    at junit.framework.TestCase.runBare(TestCase.java:127)
    at junit.framework.TestResult$1.protect(TestResult.java:106)
    at junit.framework.TestResult.runProtected(TestResult.java:124)
    at junit.framework.TestResult.run(TestResult.java:109)
    at junit.framework.TestCase.run(TestCase.java:118)
    at junit.framework.TestSuite.runTest(TestSuite.java:208)
    at junit.framework.TestSuite.run(TestSuite.java:203)
    at oracle.jdevimpl.junit.runner.TestRunner.doRun(TestRunner.java:111)
    at oracle.jdevimpl.junit.runner.TestRunner.start(TestRunner.java:91)
    at oracle.jdevimpl.junit.runner.TestRunner.main(TestRunner.java:43)
    Caused by: org.mozilla.javascript.EcmaError: TypeError: Cannot read property "length" from undefined (http://negrainau.tilsor.com.uy:7777/uiSipi/adf/jsLibs/Common10_1_3_3_0.js#4384)
    at org.mozilla.javascript.ScriptRuntime.constructError(ScriptRuntime.java:3350)
    at org.mozilla.javascript.ScriptRuntime.constructError(ScriptRuntime.java:3340)
    at org.mozilla.javascript.ScriptRuntime.typeError(ScriptRuntime.java:3356)
    at org.mozilla.javascript.ScriptRuntime.typeError2(ScriptRuntime.java:3375)
    at org.mozilla.javascript.ScriptRuntime.undefReadError(ScriptRuntime.java:3388)
    at org.mozilla.javascript.ScriptRuntime.getObjectProp(ScriptRuntime.java:1362)
    at org.mozilla.javascript.Interpreter.interpretLoop(Interpreter.java:2965)
    at org.mozilla.javascript.Interpreter.interpret(Interpreter.java:2394)
    at org.mozilla.javascript.InterpretedFunction.exec(InterpretedFunction.java:176)
    at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine$5.doRun(JavaScriptEngine.java:429)
    at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine$HtmlUnitContextAction.run(JavaScriptEngine.java:553)
    ... 94 more
    Enclosed exception:
    org.mozilla.javascript.EcmaError: TypeError: Cannot read property "length" from undefined (http://negrainau.tilsor.com.uy:7777/uiSipi/adf/jsLibs/Common10_1_3_3_0.js#4384)
    at org.mozilla.javascript.ScriptRuntime.constructError(ScriptRuntime.java:3350)
    at org.mozilla.javascript.ScriptRuntime.constructError(ScriptRuntime.java:3340)
    at org.mozilla.javascript.ScriptRuntime.typeError(ScriptRuntime.java:3356)
    at org.mozilla.javascript.ScriptRuntime.typeError2(ScriptRuntime.java:3375)
    at org.mozilla.javascript.ScriptRuntime.undefReadError(ScriptRuntime.java:3388)
    at org.mozilla.javascript.ScriptRuntime.getObjectProp(ScriptRuntime.java:1362)
    at org.mozilla.javascript.Interpreter.interpretLoop(Interpreter.java:2965)
    at script._getCommentedScript(http://negrainau.tilsor.com.uy:7777/uiSipi/adf/jsLibs/Common10_1_3_3_0.js:4384)
    at script(http://negrainau.tilsor.com.uy:7777/uiSipi/adf/jsLibs/ScriptEval10_1_3_3_0.js:6)
    at org.mozilla.javascript.Interpreter.interpret(Interpreter.java:2394)
    at org.mozilla.javascript.InterpretedFunction.exec(InterpretedFunction.java:176)
    at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine$5.doRun(JavaScriptEngine.java:429)
    at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine$HtmlUnitContextAction.run(JavaScriptEngine.java:553)
    at org.mozilla.javascript.Context.call(Context.java:564)
    at org.mozilla.javascript.Context.call(Context.java:499)
    at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine.execute(JavaScriptEngine.java:438)
    at com.gargoylesoftware.htmlunit.html.HtmlPage.loadExternalJavaScriptFile(HtmlPage.java:1046)
    at com.gargoylesoftware.htmlunit.html.HtmlScript.executeScriptIfNeeded(HtmlScript.java:289)
    at com.gargoylesoftware.htmlunit.html.HtmlScript.onAddedToPage(HtmlScript.java:210)
    at com.gargoylesoftware.htmlunit.html.HtmlPage.notifyNodeAdded(HtmlPage.java:1741)
    at com.gargoylesoftware.htmlunit.html.DomNode.insertBefore(DomNode.java:964)
    at com.gargoylesoftware.htmlunit.javascript.host.Node.jsxFunction_insertBefore(Node.java:257)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:585)
    at org.mozilla.javascript.MemberBox.invoke(MemberBox.java:155)
    at org.mozilla.javascript.FunctionObject.call(FunctionObject.java:474)
    at org.mozilla.javascript.Interpreter.interpretLoop(Interpreter.java:3237)
    at script._loadScriptLibrariesGecko(http://negrainau.tilsor.com.uy:7777/uiSipi/adf/jsLibs/Common10_1_3_3_0.js:4177)
    at script._loadScriptLibraries(http://negrainau.tilsor.com.uy:7777/uiSipi/adf/jsLibs/Common10_1_3_3_0.js:4195)
    at script._partialChange(http://negrainau.tilsor.com.uy:7777/uiSipi/adf/jsLibs/Common10_1_3_3_0.js:5578)
    at script(script in http://negrainau.tilsor.com.uy:7777/uiSipi/faces/busquedaAuditoriaBusquedas.jspx?_afPfm=1 from (5, 1014) to (0, 0):5)
    at org.mozilla.javascript.Interpreter.interpret(Interpreter.java:2394)
    at org.mozilla.javascript.InterpretedFunction.exec(InterpretedFunction.java:176)
    at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine$5.doRun(JavaScriptEngine.java:429)
    at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine$HtmlUnitContextAction.run(JavaScriptEngine.java:553)
    at org.mozilla.javascript.Context.call(Context.java:564)
    at org.mozilla.javascript.Context.call(Context.java:499)
    at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine.execute(JavaScriptEngine.java:438)
    at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine.execute(JavaScriptEngine.java:412)
    at com.gargoylesoftware.htmlunit.html.HtmlPage.executeJavaScriptIfPossible(HtmlPage.java:968)
    at com.gargoylesoftware.htmlunit.html.HtmlScript.executeInlineScriptIfNeeded(HtmlScript.java:262)
    at com.gargoylesoftware.htmlunit.html.HtmlScript.appendDomChild(HtmlScript.java:174)
    at com.gargoylesoftware.htmlunit.html.HTMLParser$HtmlUnitDOMBuilder.handleCharacters(HTMLParser.java:508)
    at com.gargoylesoftware.htmlunit.html.HTMLParser$HtmlUnitDOMBuilder.endElement(HTMLParser.java:466)
    at org.apache.xerces.parsers.AbstractSAXParser.endElement(Unknown Source)
    at org.cyberneko.html.filters.DefaultFilter.endElement(DefaultFilter.java:249)
    at org.cyberneko.html.filters.NamespaceBinder.endElement(NamespaceBinder.java:367)
    at org.cyberneko.html.HTMLTagBalancer.callEndElement(HTMLTagBalancer.java:1015)
    at org.cyberneko.html.HTMLTagBalancer.endElement(HTMLTagBalancer.java:888)
    at org.cyberneko.html.HTMLScanner$SpecialScanner.scan(HTMLScanner.java:2831)
    at org.cyberneko.html.HTMLScanner.scanDocument(HTMLScanner.java:809)
    at org.cyberneko.html.HTMLConfiguration.parse(HTMLConfiguration.java:478)
    at org.cyberneko.html.HTMLConfiguration.parse(HTMLConfiguration.java:431)
    at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
    at com.gargoylesoftware.htmlunit.html.HTMLParser.parse(HTMLParser.java:257)
    at com.gargoylesoftware.htmlunit.DefaultPageCreator.createHtmlPage(DefaultPageCreator.java:116)
    at com.gargoylesoftware.htmlunit.DefaultPageCreator.createPage(DefaultPageCreator.java:89)
    at com.gargoylesoftware.htmlunit.WebClient.loadWebResponseInto(WebClient.java:453)
    at com.gargoylesoftware.htmlunit.WebClient.getPage(WebClient.java:362)
    at com.gargoylesoftware.htmlunit.WebClient.getPage(WebClient.java:385)
    at com.gargoylesoftware.htmlunit.html.HtmlForm.submit(HtmlForm.java:187)
    at com.gargoylesoftware.htmlunit.javascript.host.HTMLFormElement.jsxFunction_submit(HTMLFormElement.java:244)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:585)
    at org.mozilla.javascript.MemberBox.invoke(MemberBox.java:155)
    at org.mozilla.javascript.FunctionObject.call(FunctionObject.java:474)
    at org.mozilla.javascript.Interpreter.interpretLoop(Interpreter.java:3237)
    at script.submitForm(http://negrainau.tilsor.com.uy:7777/uiSipi/adf/jsLibs/Common10_1_3_3_0.js:3006)
    at script._submitPartialChange(http://negrainau.tilsor.com.uy:7777/uiSipi/adf/jsLibs/Common10_1_3_3_0.js:4096)
    at script._adfspu(script in http://negrainau.tilsor.com.uy:7777/uiSipi/faces/busquedaAuditoriaBusquedas.jspx from (2, 3284) to (0, 0):2)
    at script(onclick event for HtmlAnchor[a href="#" onclick="_adfspu('form1',0,0,'form1:usuarioSelectInputText',{part:'b'});return false;"]:1)
    at org.mozilla.javascript.Interpreter.interpret(Interpreter.java:2394)
    at org.mozilla.javascript.InterpretedFunction.call(InterpretedFunction.java:162)
    at org.mozilla.javascript.ContextFactory.doTopCall(ContextFactory.java:393)
    at com.gargoylesoftware.htmlunit.javascript.HtmlUnitContextFactory.doTopCall(HtmlUnitContextFactory.java:192)
    at org.mozilla.javascript.ScriptRuntime.doTopCall(ScriptRuntime.java:2834)
    at org.mozilla.javascript.InterpretedFunction.call(InterpretedFunction.java:160)
    at com.gargoylesoftware.htmlunit.javascript.host.EventHandler.call(EventHandler.java:100)
    at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine.callFunction(JavaScriptEngine.java:499)
    at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine$6.doRun(JavaScriptEngine.java:463)
    at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine$HtmlUnitContextAction.run(JavaScriptEngine.java:553)
    at org.mozilla.javascript.Context.call(Context.java:564)
    at org.mozilla.javascript.Context.call(Context.java:499)
    at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine.callFunction(JavaScriptEngine.java:470)
    at com.gargoylesoftware.htmlunit.html.HtmlPage.executeJavaScriptFunctionIfPossible(HtmlPage.java:1003)
    at com.gargoylesoftware.htmlunit.javascript.host.EventListenersContainer.executeEventHandler(EventListenersContainer.java:173)
    at com.gargoylesoftware.htmlunit.javascript.host.EventListenersContainer.executeBubblingListeners(EventListenersContainer.java:186)
    at com.gargoylesoftware.htmlunit.javascript.host.Node.fireEvent(Node.java:590)
    at com.gargoylesoftware.htmlunit.html.HtmlElement$2.run(HtmlElement.java:1257)
    at org.mozilla.javascript.Context.call(Context.java:577)
    at org.mozilla.javascript.Context.call(Context.java:499)
    at com.gargoylesoftware.htmlunit.html.HtmlElement.fireEvent(HtmlElement.java:1261)
    at com.gargoylesoftware.htmlunit.html.ClickableElement.click(ClickableElement.java:135)
    at com.gargoylesoftware.htmlunit.html.ClickableElement.click(ClickableElement.java:109)
    at com.gargoylesoftware.htmlunit.html.ClickableElement.click(ClickableElement.java:87)
    at uy.com.tilsor.sipi.testing.auditoria.TSCUAUD4.test1(TSCUAUD4.java:99)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:585)
    at junit.framework.TestCase.runTest(TestCase.java:154)
    at junit.framework.TestCase.runBare(TestCase.java:127)
    at junit.framework.TestResult$1.protect(TestResult.java:106)
    at junit.framework.TestResult.runProtected(TestResult.java:124)
    at junit.framework.TestResult.run(TestResult.java:109)
    at junit.framework.TestCase.run(TestCase.java:118)
    at junit.framework.TestSuite.runTest(TestSuite.java:208)
    at junit.framework.TestSuite.run(TestSuite.java:203)
    at oracle.jdevimpl.junit.runner.TestRunner.doRun(TestRunner.java:111)
    at oracle.jdevimpl.junit.runner.TestRunner.start(TestRunner.java:91)
    at oracle.jdevimpl.junit.runner.TestRunner.main(TestRunner.java:43)
    ======= EXCEPTION END ========
    ======= EXCEPTION END ========
    == CALLING JAVASCRIPT ==
    function () {
    [native code, arity=0]
    }

    ======= EXCEPTION END =======

  • RELEVANCY SCORE 2.32

    DB:2.32:Htmlunit sc


    Hello. I am creating my first HtmlUnit app. Here is what I have thus far:

    -----

    WebClient client = new WebClient();

    HtmlPage page = client.getPage ("http://mydomain.com/welcome.jsp");

    HtmlHiddenInput hidden = (HtmlHiddenInput) page.getElementByName("pagecodes");

    System.out.println(hidden);

    -----

    The output displays the entire input line:

    input type=hidden name=pagecodes value=12345

    -----

    How can I retrieve only the value of this hidden input?

    Desired output: 12345

    -----

    Any suggestions are greatly appreciated.

    DB:2.32:Htmlunit sc

    A quick look at the API documentation for the HtmlHiddenInput class shows that it has a "getValueAttribute" method whose description is

    Return the value of the attribute "value".

  • RELEVANCY SCORE 2.32

    DB:2.32:Calling Javascript Method From Htmlunit da


    I need to traverse to another page for which I need to click on an anchor tag. On click of which the JS method gets executed and returns the page URL. However when make us of the following code the result is null. when I try to use the standard click() function I get Null.Snippet:JS Function:{code}script language="javascript" function doSubmit(QS){var strLink ="https://www.hudhomestore.com/pages/FilterBlank.aspx?caseNumber=" + QS + "redir=PropertySummarysLanguage=ENGLISHzipCode=city=county=sState=AKfromPrice=0toPrice=0fCaseNumber=bed=0bath=0street=buyerType=0specialProgram=Status=0OrderbyName=SCASENUMBEROrderbyValue=ASCsPageSize=10pageId=1"top.location.href = strLink;}{code}Java Code:{code}if(anchor1.getTagName().equals("a")) { String js = anchor1.getAttribute("onClick"); System.out.println("Anchor is " + js); ScriptResult result = page1.executeJavaScript("javascript:" + anchor1.getAttribute("onClick")); if(result != null) { System.out.println("Result Aint Null" + result.toString()); Object jsResult = result.getJavaScriptResult(); if(jsResult != null) { System.out.println("Result: " + jsResult); } } } {/code}Please help me.RegardsNitin

    DB:2.32:Calling Javascript Method From Htmlunit da

    I need to traverse to another page for which I need to click on an anchor tag. On click of which the JS method gets executed and returns the page URL. However when make us of the following code the result is null. when I try to use the standard click() function I get Null.Snippet:JS Function:{code}script language="javascript" function doSubmit(QS){var strLink ="https://www.hudhomestore.com/pages/FilterBlank.aspx?caseNumber=" + QS + "redir=PropertySummarysLanguage=ENGLISHzipCode=city=county=sState=AKfromPrice=0toPrice=0fCaseNumber=bed=0bath=0street=buyerType=0specialProgram=Status=0OrderbyName=SCASENUMBEROrderbyValue=ASCsPageSize=10pageId=1"top.location.href = strLink;}{code}Java Code:{code}if(anchor1.getTagName().equals("a")) { String js = anchor1.getAttribute("onClick"); System.out.println("Anchor is " + js); ScriptResult result = page1.executeJavaScript("javascript:" + anchor1.getAttribute("onClick")); if(result != null) { System.out.println("Result Aint Null" + result.toString()); Object jsResult = result.getJavaScriptResult(); if(jsResult != null) { System.out.println("Result: " + jsResult); } } } {/code}Please help me.RegardsNitin

  • RELEVANCY SCORE 2.28

    DB:2.28:Java.Security.Cert.Certificateexception: Certificate Not Trusted- Htmlunit x1


    When try to implement htmlunit test for SSL secured application which runs in WPS Server. and this application gets login info(username and password ) by system poppup window

    HtmlPage page = (HtmlPage) webClient.getPage(new URL("application url"));
    i have used the above code to create HtmlPage object and i am getting below error. So can any one help on this place to create htmlPage object,

    Exception in thread "main" javax.net.ssl.SSLHandshakeException: java.security.cert.CertificateException: Certificate not Trusted
    at com.ibm.jsse2.bx.a(bx.java:77)
    at com.ibm.jsse2.by.a(by.java:101)
    at com.ibm.jsse2.by.a(by.java:137)
    at com.ibm.jsse2.w.a(w.java:35)
    at com.ibm.jsse2.w.a(w.java:131)
    at com.ibm.jsse2.v.a(v.java:184)
    at com.ibm.jsse2.by.a(by.java:119)
    at com.ibm.jsse2.by.l(by.java:329)
    at com.ibm.jsse2.by.a(by.java:39)
    at com.ibm.jsse2.f.write(f.java:9)
    at java.io.BufferedOutputStream.flushBuffer(BufferedOutputStream.java:86)
    at java.io.BufferedOutputStream.flush(BufferedOutputStream.java:144)
    at org.apache.commons.httpclient.HttpConnection.flushRequestOutputStream(HttpConnection.java:827)
    at org.apache.commons.httpclient.HttpMethodBase.writeRequest(HttpMethodBase.java:1915)
    at org.apache.commons.httpclient.HttpMethodBase.execute(HttpMethodBase.java:997)
    at org.apache.commons.httpclient.HttpMethodDirector.executeWithRetry(HttpMethodDirector.java:382)
    at org.apache.commons.httpclient.HttpMethodDirector.executeMethod(HttpMethodDirector.java:168)
    at org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:393)
    at org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:324)
    at com.gargoylesoftware.htmlunit.HttpWebConnection.getResponse(HttpWebConnection.java:157)
    at com.gargoylesoftware.htmlunit.WebClient.loadWebResponse(WebClient.java:1401)
    at com.gargoylesoftware.htmlunit.WebClient.getPage(WebClient.java:549)
    at com.gargoylesoftware.htmlunit.WebClient.getPage(WebClient.java:477)
    at com.gargoylesoftware.htmlunit.WebClient.getPage(WebClient.java:349)
    at com.gargoylesoftware.htmlunit.WebClient.getPage(WebClient.java:293)
    at financing.tools.hub.htmlunit.SupportPlaceOnQueueTest.main(SupportPlaceOnQueueTest.java:51)
    Caused by: java.security.cert.CertificateException: Certificate not Trusted
    at com.ibm.jsse.bi.a(Unknown Source)
    at com.ibm.jsse.bi.checkServerTrusted(Unknown Source)
    at com.ibm.jsse2.ba.checkServerTrusted(ba.java:11)
    at com.ibm.jsse2.w.a(w.java:71)
    ... 22 more

    DB:2.28:Java.Security.Cert.Certificateexception: Certificate Not Trusted- Htmlunit x1

    When try to implement htmlunit test for SSL secured application which runs in WPS Server. and this application gets login info(username and password ) by system poppup window

    HtmlPage page = (HtmlPage) webClient.getPage(new URL("application url"));
    i have used the above code to create HtmlPage object and i am getting below error. So can any one help on this place to create htmlPage object,

    Exception in thread "main" javax.net.ssl.SSLHandshakeException: java.security.cert.CertificateException: Certificate not Trusted
    at com.ibm.jsse2.bx.a(bx.java:77)
    at com.ibm.jsse2.by.a(by.java:101)
    at com.ibm.jsse2.by.a(by.java:137)
    at com.ibm.jsse2.w.a(w.java:35)
    at com.ibm.jsse2.w.a(w.java:131)
    at com.ibm.jsse2.v.a(v.java:184)
    at com.ibm.jsse2.by.a(by.java:119)
    at com.ibm.jsse2.by.l(by.java:329)
    at com.ibm.jsse2.by.a(by.java:39)
    at com.ibm.jsse2.f.write(f.java:9)
    at java.io.BufferedOutputStream.flushBuffer(BufferedOutputStream.java:86)
    at java.io.BufferedOutputStream.flush(BufferedOutputStream.java:144)
    at org.apache.commons.httpclient.HttpConnection.flushRequestOutputStream(HttpConnection.java:827)
    at org.apache.commons.httpclient.HttpMethodBase.writeRequest(HttpMethodBase.java:1915)
    at org.apache.commons.httpclient.HttpMethodBase.execute(HttpMethodBase.java:997)
    at org.apache.commons.httpclient.HttpMethodDirector.executeWithRetry(HttpMethodDirector.java:382)
    at org.apache.commons.httpclient.HttpMethodDirector.executeMethod(HttpMethodDirector.java:168)
    at org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:393)
    at org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:324)
    at com.gargoylesoftware.htmlunit.HttpWebConnection.getResponse(HttpWebConnection.java:157)
    at com.gargoylesoftware.htmlunit.WebClient.loadWebResponse(WebClient.java:1401)
    at com.gargoylesoftware.htmlunit.WebClient.getPage(WebClient.java:549)
    at com.gargoylesoftware.htmlunit.WebClient.getPage(WebClient.java:477)
    at com.gargoylesoftware.htmlunit.WebClient.getPage(WebClient.java:349)
    at com.gargoylesoftware.htmlunit.WebClient.getPage(WebClient.java:293)
    at financing.tools.hub.htmlunit.SupportPlaceOnQueueTest.main(SupportPlaceOnQueueTest.java:51)
    Caused by: java.security.cert.CertificateException: Certificate not Trusted
    at com.ibm.jsse.bi.a(Unknown Source)
    at com.ibm.jsse.bi.checkServerTrusted(Unknown Source)
    at com.ibm.jsse2.ba.checkServerTrusted(ba.java:11)
    at com.ibm.jsse2.w.a(w.java:71)
    ... 22 more

  • RELEVANCY SCORE 2.22

    DB:2.22:Error/Warning With Htmlunit a3


    Hi, i've just started to use HTMLUnit and i'm just running some test code that visits google.ie. I'm getting loads od CSS warning messages and the following message also:
    Dec 5, 2012 11:09:51 AM com.gargoylesoftware.htmlunit.javascript.host.html.HTMLElement addBehavior
    WARNING: Unimplemented behavior: #default#userdata

    Does anyone know how to get rid of this error?
    Thanks,
    Marie

    DB:2.22:Error/Warning With Htmlunit a3

    Hi, i've just started to use HTMLUnit and i'm just running some test code that visits google.ie. I'm getting loads od CSS warning messages and the following message also:
    Dec 5, 2012 11:09:51 AM com.gargoylesoftware.htmlunit.javascript.host.html.HTMLElement addBehavior
    WARNING: Unimplemented behavior: #default#userdata

    Does anyone know how to get rid of this error?
    Thanks,
    Marie