Menu

Exceptions?

Help
eptalon333
2004-11-24
2013-04-25
  • eptalon333

    eptalon333 - 2004-11-24

    Hello again,

    sorry, I dont have the time to test your fix. I am busy running some tests.

    However, I run into problems weith exceptions, both with versions 2.7.0 and 2.7.2 of the test suite.

    When trying to run a test with QAT I get the following:

    java.lang.ClassNotFoundException: qat.qashparser.QASHTestFinder
            at java.net.URLClassLoader$1.run(URLClassLoader.java:199)
            at java.security.AccessController.doPrivileged(Native Method)
            at java.net.URLClassLoader.findClass(URLClassLoader.java:187)
            at java.lang.ClassLoader.loadClass(ClassLoader.java:289)
            at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:274)
            at java.lang.ClassLoader.loadClass(ClassLoader.java:235)
            at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:302)
            at java.lang.Class.forName0(Native Method)
            at java.lang.Class.forName(Class.java:141)
            at qat.parser.GenericTestFinder.<init>(GenericTestFinder.java:33)
            at qat.gui.TestRunner.run(TestRunner.java:67)
    java.lang.ClassNotFoundException: qat.qaxmlparser.QAXMLTestFinder
            at java.net.URLClassLoader$1.run(URLClassLoader.java:199)
            at java.security.AccessController.doPrivileged(Native Method)
            at java.net.URLClassLoader.findClass(URLClassLoader.java:187)
            at java.lang.ClassLoader.loadClass(ClassLoader.java:289)
            at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:274)
            at java.lang.ClassLoader.loadClass(ClassLoader.java:235)
            at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:302)
            at java.lang.Class.forName0(Native Method)
            at java.lang.Class.forName(Class.java:141)
            at qat.parser.GenericTestFinder.<init>(GenericTestFinder.java:33)
            at qat.gui.TestRunner.run(TestRunner.java:67)
    No test finder registered for /tmp/MobileTests/mobile-test-performance/qat/perf/qat/PubSubPublisherApp-async.qash

    Any ideas?

    Robert

     
    • Web Hiker

      Web Hiker - 2004-11-24

      You have an incorrect setting in your project properties for some reason.
      Edit the project properties->project settings, and change the "user defined classes" to use :

      qat.parser.qashparser.QASHParser
      qat.parser.qashparser.QASHTestFinder

      wh.

       
    • eptalon333

      eptalon333 - 2004-11-24

      Thanks for the speedy reply.

      The following occurred with the 2.7.2. version, when trying to parse one of the tests:

      java.lang.NullPointerException
              at qat.parser.qashparser.QASHParser.processCMDGETTRACE(QASHParser.java:1642)
              at qat.parser.qashparser.QASHParser.internalParseFile(QASHParser.java:354)
              at qat.parser.qashparser.QASHParser.parseFile(QASHParser.java:294)
              at qat.gui.TestSpecification.parseTest(TestSpecification.java:140)
              at qat.gui.TestSpecification.runTest(TestSpecification.java:177)
              at qat.gui.TestRunner.run(TestRunner.java:92)

      Robert

       
      • Web Hiker

        Web Hiker - 2004-11-24

        Seems to be just a bug in your QASH script, trying to check the trace of a process which has never been started.
        Check the parser traces, and verify you actually see a call to CMDSTART prior to the CMDTGETTRACE call.

        Also, make sure you have the examples etc all updated from the 2.7.2 delivery, your previous error indicates there might be some mismatch of versions.
        If you use the 2.7.2 delivery, it should work out the box, if it doesn't it's probably an idea to clear out the .qat dir in your home directory. Carefully - this will delete all project settings etc as well, so only do it as a last resort.

        wh

         

Log in to post a comment.