1 2 Previous Next 22 Replies Latest reply on May 31, 2010 10:55 AM by ajesse Go to original post
      • 15. Re: Static Analysis with JSFUnit

        I seem to have hit a limit... the rest:

        org.jboss.jsfunit.analysis.ManagedBeanScope_JSFUNIT_25_TestCase:

        -------------------------------------------------------------------------------
        Test set: org.jboss.jsfunit.analysis.ManagedBeanScope_JSFUNIT_25_TestCase
        -------------------------------------------------------------------------------
        Tests run: 2, Failures: 0, Errors: 2, Skipped: 0, Time elapsed: 0.018 sec <<< FAILURE!
        testDuplicateManagedBean(org.jboss.jsfunit.analysis.ManagedBeanScope_JSFUNIT_25_TestCase) Time elapsed: 0.002 sec <<< ERROR!
        java.lang.AbstractMethodError: javax.xml.parsers.DocumentBuilderFactory.setFeature(Ljava/lang/String;Z)V
         at org.jboss.jsfunit.analysis.util.ParserUtils.getDocumentBuilder(ParserUtils.java:64)
         at org.jboss.jsfunit.analysis.AbstractFacesConfigTestCase.parseResources(AbstractFacesConfigTestCase.java:72)
         at org.jboss.jsfunit.analysis.AbstractFacesConfigTestCase.<init>(AbstractFacesConfigTestCase.java:66)
         at org.jboss.jsfunit.analysis.ManagedBeanScope_JSFUNIT_25_TestCase$1.<init>(ManagedBeanScope_JSFUNIT_25_TestCase.java:49)
         at org.jboss.jsfunit.analysis.ManagedBeanScope_JSFUNIT_25_TestCase.testDuplicateManagedBean(ManagedBeanScope_JSFUNIT_25_TestCase.java:49)
         at org.jboss.jsfunit.analysis.ManagedBeanScope_JSFUNIT_25_TestCase.testDuplicateManagedBean(ManagedBeanScope_JSFUNIT_25_TestCase.java:49)
         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 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.apache.maven.surefire.junit.JUnitTestSet.execute(JUnitTestSet.java:213)
         at org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.executeTestSet(AbstractDirectoryTestSuite.java:138)
         at org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.execute(AbstractDirectoryTestSuite.java:125)
         at org.apache.maven.surefire.Surefire.run(Surefire.java:132)
         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.apache.maven.surefire.booter.SurefireBooter.runSuitesInProcess(SurefireBooter.java:290)
         at org.apache.maven.surefire.booter.SurefireBooter.main(SurefireBooter.java:818)
        
        testDuplicateManagedBeansDifferentConfigSource(org.jboss.jsfunit.analysis.ManagedBeanScope_JSFUNIT_25_TestCase) Time elapsed: 0.007 sec <<< ERROR!
        java.lang.AbstractMethodError: javax.xml.parsers.DocumentBuilderFactory.setFeature(Ljava/lang/String;Z)V
         at org.jboss.jsfunit.analysis.util.ParserUtils.getDocumentBuilder(ParserUtils.java:64)
         at org.jboss.jsfunit.analysis.AbstractFacesConfigTestCase.parseResources(AbstractFacesConfigTestCase.java:72)
         at org.jboss.jsfunit.analysis.AbstractFacesConfigTestCase.<init>(AbstractFacesConfigTestCase.java:66)
         at org.jboss.jsfunit.analysis.ManagedBeanScope_JSFUNIT_25_TestCase$3.<init>(ManagedBeanScope_JSFUNIT_25_TestCase.java:70)
         at org.jboss.jsfunit.analysis.ManagedBeanScope_JSFUNIT_25_TestCase.testDuplicateManagedBeansDifferentConfigSource(ManagedBeanScope_JSFUNIT_25_TestCase.java:70)
         at org.jboss.jsfunit.analysis.ManagedBeanScope_JSFUNIT_25_TestCase.testDuplicateManagedBeansDifferentConfigSource(ManagedBeanScope_JSFUNIT_25_TestCase.java:70)
         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 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.apache.maven.surefire.junit.JUnitTestSet.execute(JUnitTestSet.java:213)
         at org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.executeTestSet(AbstractDirectoryTestSuite.java:138)
         at org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.execute(AbstractDirectoryTestSuite.java:125)
         at org.apache.maven.surefire.Surefire.run(Surefire.java:132)
         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.apache.maven.surefire.booter.SurefireBooter.runSuitesInProcess(SurefireBooter.java:290)
         at org.apache.maven.surefire.booter.SurefireBooter.main(SurefireBooter.java:818)
        


        org.jboss.jsfunit.analysis.ViewParserTestCase:
        -------------------------------------------------------------------------------
        Test set: org.jboss.jsfunit.analysis.ViewParserTestCase
        -------------------------------------------------------------------------------
        Tests run: 5, Failures: 0, Errors: 5, Skipped: 0, Time elapsed: 0.145 sec <<< FAILURE!
        testAction(org.jboss.jsfunit.analysis.ViewParserTestCase) Time elapsed: 0.005 sec <<< ERROR!
        java.lang.AbstractMethodError: javax.xml.parsers.DocumentBuilderFactory.setFeature(Ljava/lang/String;Z)V
         at org.jboss.jsfunit.analysis.util.ParserUtils.getDocumentBuilder(ParserUtils.java:64)
         at org.jboss.jsfunit.analysis.util.ParserUtils.getDocument(ParserUtils.java:86)
         at org.jboss.jsfunit.analysis.ViewParserTestCase.testAction(ViewParserTestCase.java:50)
         at org.jboss.jsfunit.analysis.ViewParserTestCase.testAction(ViewParserTestCase.java:50)
         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 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.apache.maven.surefire.junit.JUnitTestSet.execute(JUnitTestSet.java:213)
         at org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.executeTestSet(AbstractDirectoryTestSuite.java:138)
         at org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.execute(AbstractDirectoryTestSuite.java:125)
         at org.apache.maven.surefire.Surefire.run(Surefire.java:132)
         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.apache.maven.surefire.booter.SurefireBooter.runSuitesInProcess(SurefireBooter.java:290)
         at org.apache.maven.surefire.booter.SurefireBooter.main(SurefireBooter.java:818)
        
        testActionListenerTag(org.jboss.jsfunit.analysis.ViewParserTestCase) Time elapsed: 0.002 sec <<< ERROR!
        java.lang.AbstractMethodError: javax.xml.parsers.DocumentBuilderFactory.setFeature(Ljava/lang/String;Z)V
         at org.jboss.jsfunit.analysis.util.ParserUtils.getDocumentBuilder(ParserUtils.java:64)
         at org.jboss.jsfunit.analysis.util.ParserUtils.getDocument(ParserUtils.java:86)
         at org.jboss.jsfunit.analysis.ViewParserTestCase.testActionListenerTag(ViewParserTestCase.java:59)
         at org.jboss.jsfunit.analysis.ViewParserTestCase.testActionListenerTag(ViewParserTestCase.java:59)
         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 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.apache.maven.surefire.junit.JUnitTestSet.execute(JUnitTestSet.java:213)
         at org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.executeTestSet(AbstractDirectoryTestSuite.java:138)
         at org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.execute(AbstractDirectoryTestSuite.java:125)
         at org.apache.maven.surefire.Surefire.run(Surefire.java:132)
         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.apache.maven.surefire.booter.SurefireBooter.runSuitesInProcess(SurefireBooter.java:290)
         at org.apache.maven.surefire.booter.SurefireBooter.main(SurefireBooter.java:818)
        
        testActionListenerAttribute(org.jboss.jsfunit.analysis.ViewParserTestCase) Time elapsed: 0.003 sec <<< ERROR!
        java.lang.AbstractMethodError: javax.xml.parsers.DocumentBuilderFactory.setFeature(Ljava/lang/String;Z)V
         at org.jboss.jsfunit.analysis.util.ParserUtils.getDocumentBuilder(ParserUtils.java:64)
         at org.jboss.jsfunit.analysis.util.ParserUtils.getDocument(ParserUtils.java:86)
         at org.jboss.jsfunit.analysis.ViewParserTestCase.testActionListenerAttribute(ViewParserTestCase.java:68)
         at org.jboss.jsfunit.analysis.ViewParserTestCase.testActionListenerAttribute(ViewParserTestCase.java:68)
         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 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.apache.maven.surefire.junit.JUnitTestSet.execute(JUnitTestSet.java:213)
         at org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.executeTestSet(AbstractDirectoryTestSuite.java:138)
         at org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.execute(AbstractDirectoryTestSuite.java:125)
         at org.apache.maven.surefire.Surefire.run(Surefire.java:132)
         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.apache.maven.surefire.booter.SurefireBooter.runSuitesInProcess(SurefireBooter.java:290)
         at org.apache.maven.surefire.booter.SurefireBooter.main(SurefireBooter.java:818)
        
        testTwoDocuments(org.jboss.jsfunit.analysis.ViewParserTestCase) Time elapsed: 0.001 sec <<< ERROR!
        java.lang.AbstractMethodError: javax.xml.parsers.DocumentBuilderFactory.setFeature(Ljava/lang/String;Z)V
         at org.jboss.jsfunit.analysis.util.ParserUtils.getDocumentBuilder(ParserUtils.java:64)
         at org.jboss.jsfunit.analysis.util.ParserUtils.getDocument(ParserUtils.java:86)
         at org.jboss.jsfunit.analysis.ViewParserTestCase.testTwoDocuments(ViewParserTestCase.java:77)
         at org.jboss.jsfunit.analysis.ViewParserTestCase.testTwoDocuments(ViewParserTestCase.java:77)
         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 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.apache.maven.surefire.junit.JUnitTestSet.execute(JUnitTestSet.java:213)
         at org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.executeTestSet(AbstractDirectoryTestSuite.java:138)
         at org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.execute(AbstractDirectoryTestSuite.java:125)
         at org.apache.maven.surefire.Surefire.run(Surefire.java:132)
         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.apache.maven.surefire.booter.SurefireBooter.runSuitesInProcess(SurefireBooter.java:290)
         at org.apache.maven.surefire.booter.SurefireBooter.main(SurefireBooter.java:818)
        
        testNothing(org.jboss.jsfunit.analysis.ViewParserTestCase) Time elapsed: 0.001 sec <<< ERROR!
        java.lang.AbstractMethodError: javax.xml.parsers.DocumentBuilderFactory.setFeature(Ljava/lang/String;Z)V
         at org.jboss.jsfunit.analysis.util.ParserUtils.getDocumentBuilder(ParserUtils.java:64)
         at org.jboss.jsfunit.analysis.util.ParserUtils.getDocument(ParserUtils.java:86)
         at org.jboss.jsfunit.analysis.ViewParserTestCase.testNothing(ViewParserTestCase.java:86)
         at org.jboss.jsfunit.analysis.ViewParserTestCase.testNothing(ViewParserTestCase.java:86)
         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 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.apache.maven.surefire.junit.JUnitTestSet.execute(JUnitTestSet.java:213)
         at org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.executeTestSet(AbstractDirectoryTestSuite.java:138)
         at org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.execute(AbstractDirectoryTestSuite.java:125)
         at org.apache.maven.surefire.Surefire.run(Surefire.java:132)
         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.apache.maven.surefire.booter.SurefireBooter.runSuitesInProcess(SurefireBooter.java:290)
         at org.apache.maven.surefire.booter.SurefireBooter.main(SurefireBooter.java:818)
        


        • 16. Re: Static Analysis with JSFUnit

          BTW: I'm gonna show some results of the static analysis at the JSFDays 2008 conference in my presentation on JSF testing...

          • 17. Re: Static Analysis with JSFUnit
            dennisbyrne

            The NoClassDefFoundError is probably concealing the Exception being thrown in that static block. Can you do me a favor and wrap the static code w/ a try catch block just to make sure it's not throwing an exception?

            Thanks for giving us some exposure @ JSFDays man. Too bad I can't be there.

            • 18. Re: Static Analysis with JSFUnit

              Looking closer at the exception... I remember to have seen similar stuff before I used the Xerces-parser...
              Seems that the Sun (JDK) parser responds to the setFeature() with any parameters (except one) with an exception.

              The easy solution might be, to exchange the parser during the tests with Xerces. I'll look into it after JSFDays... Have to prepare a online-Demo for jsf-unit core

              • 19. Re: Static Analysis with JSFUnit
                mpscholz

                Hi,

                 

                It's quite a while since there was alst post ragrding that topic and I wonder whether something has changed in the two years since then.

                Actually, we are facing a similar error now when running static analysis with JSF Unit on our JSF 2.0 pages (Exception in constructor: testActions (java.lang.RuntimeException: Could not parse file...)) which is due to

                 

                Caused by: java.io.IOException: Server returned HTTP response code: 503 for URL: http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd
                at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1313)

                 

                Is it still the only option to patch the ParserUtils.getDocumentBuilder() method by ourselves?

                 

                (I noticed that the JBoss wiki page referenced in the thread seems to have gone by now)

                • 20. Re: Static Analysis with JSFUnit
                  ajesse

                  I am currently working on the view definition related tests in the Static Analysis package. The configuration file related tests have been refactored and work also in an offline environment.

                   

                  Basically we have a cache for the dtd and schema files which we serve to the XML-parser. The issue is high on my list, as I work very often in an offline environment.

                   

                  Unfortunately some concurrent issues at work and at home do not allow me to allocate as much time as I want. Progress is slow.

                  • 21. Re: Static Analysis with JSFUnit
                    mpscholz

                    Alexander, thanks for the answer.

                    Do you have an estimation yet (or a road map) when this will be available?

                     

                    Best,

                    MP

                    • 22. Re: Static Analysis with JSFUnit
                      ajesse

                      I change the fix-release of the corresponding Jira-issue (https://jira.jboss.org/browse/JSFUNIT-67) to 1.3.0 which would mean GA is end of august.

                       

                      Wanna help? Prepare one or more small test-cases for different view-definitions (jsp, html, xhtml, jspx (all in different versions)), maybe a taglib and a faces-config. That should work when connected or not behind a proxy. And fail when offline or behind a proxy. Then attach it to the jira-issue and vote the issue.

                      With such a test-app half of the work is done.

                       

                      I think most of the work will be to collect the necessary dtds and schemas. And maybe think about an extension mechanism...

                      1 2 Previous Next