7 Replies Latest reply: Nov 14, 2006 4:55 AM by 843844 RSS

    AVK is not working properly. java.lang.NullPointerException is displayed

    843844
      Hi,

      I Installed AVK. I am doing static varification. when i am running build.xml file it is giving following error.

      E:\CruiseControl\cruisecontrol-bin-2.4.1\projects\wsc\build.xml:122: The following error occurred while executing this line:
      E:\CruiseControl\cruisecontrol-bin-2.4.1\projects\wsc\build.xml:140: java.lang.NullPointerException
      at org.apache.tools.ant.ProjectHelper.addLocationToBuildException(ProjectHelper.java:539)
      at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:384)
      at org.apache.tools.ant.taskdefs.CallTarget.execute(CallTarget.java:107)
      at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)
      at org.apache.tools.ant.Task.perform(Task.java:364)
      at org.apache.tools.ant.Target.execute(Target.java:341)
      at org.apache.tools.ant.Target.performTasks(Target.java:369)
      at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1216)
      at org.apache.tools.ant.Project.executeTarget(Project.java:1185)
      at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:40)
      at org.apache.tools.ant.Project.executeTargets(Project.java:1068)
      at org.apache.tools.ant.Main.runBuild(Main.java:668)
      at org.apache.tools.ant.Main.startAnt(Main.java:187)
      at org.apache.tools.ant.launch.Launcher.run(Launcher.java:246)
      at org.apache.tools.ant.launch.Launcher.main(Launcher.java:67)
      Caused by: E:\CruiseControl\cruisecontrol-bin-2.4.1\projects\wsc\build.xml:140: java.lang.NullPointerException
      at org.apache.tools.ant.Task.perform(Task.java:373)
      at org.apache.tools.ant.Target.execute(Target.java:341)
      at org.apache.tools.ant.Target.performTasks(Target.java:369)
      at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1216)
      at org.apache.tools.ant.helper.SingleCheckExecutor.executeTargets(SingleCheckExecutor.java:37)
      at org.apache.tools.ant.Project.executeTargets(Project.java:1068)
      at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:382)
      ... 13 more
      Caused by: java.lang.NullPointerException
      at java.io.File.<init>(File.java:180)
      at org.apache.tools.ant.taskdefs.optional.sun.verification.AVKTasks.getInstallHomes(AVKTasks.java:140)
      at org.apache.tools.ant.taskdefs.optional.sun.verification.StaticArchiveTest.execute(StaticArchiveTest.java:64)
      at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)
      at org.apache.tools.ant.Task.perform(Task.java:364)
      ... 19 more
      --- Nested Exception ---
      E:\CruiseControl\cruisecontrol-bin-2.4.1\projects\wsc\build.xml:140: java.lang.NullPointerException
      at org.apache.tools.ant.Task.perform(Task.java:373)
      at org.apache.tools.ant.Target.execute(Target.java:341)
      at org.apache.tools.ant.Target.performTasks(Target.java:369)
      at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1216)
      at org.apache.tools.ant.helper.SingleCheckExecutor.executeTargets(SingleCheckExecutor.java:37)
      at org.apache.tools.ant.Project.executeTargets(Project.java:1068)
      at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:382)
      at org.apache.tools.ant.taskdefs.CallTarget.execute(CallTarget.java:107)
      at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)
      at org.apache.tools.ant.Task.perform(Task.java:364)
      at org.apache.tools.ant.Target.execute(Target.java:341)
      at org.apache.tools.ant.Target.performTasks(Target.java:369)
      at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1216)
      at org.apache.tools.ant.Project.executeTarget(Project.java:1185)
      at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:40)
      at org.apache.tools.ant.Project.executeTargets(Project.java:1068)
      at org.apache.tools.ant.Main.runBuild(Main.java:668)
      at org.apache.tools.ant.Main.startAnt(Main.java:187)
      at org.apache.tools.ant.launch.Launcher.run(Launcher.java:246)
      at org.apache.tools.ant.launch.Launcher.main(Launcher.java:67)
      Caused by: java.lang.NullPointerException
      at java.io.File.<init>(File.java:180)
      at org.apache.tools.ant.taskdefs.optional.sun.verification.AVKTasks.getInstallHomes(AVKTasks.java:140)
      at org.apache.tools.ant.taskdefs.optional.sun.verification.StaticArchiveTest.execute(StaticArchiveTest.java:64)
      at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)
      at org.apache.tools.ant.Task.perform(Task.java:364)
      ... 19 more
      --- Nested Exception ---
      java.lang.NullPointerException
      at java.io.File.<init>(File.java:180)
      at org.apache.tools.ant.taskdefs.optional.sun.verification.AVKTasks.getInstallHomes(AVKTasks.java:140)
      at org.apache.tools.ant.taskdefs.optional.sun.verification.StaticArchiveTest.execute(StaticArchiveTest.java:64)
      at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)
      at org.apache.tools.ant.Task.perform(Task.java:364)
      at org.apache.tools.ant.Target.execute(Target.java:341)
      at org.apache.tools.ant.Target.performTasks(Target.java:369)
      at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1216)
      at org.apache.tools.ant.helper.SingleCheckExecutor.executeTargets(SingleCheckExecutor.java:37)
      at org.apache.tools.ant.Project.executeTargets(Project.java:1068)
      at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:382)
      at org.apache.tools.ant.taskdefs.CallTarget.execute(CallTarget.java:107)
      at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)
      at org.apache.tools.ant.Task.perform(Task.java:364)
      at org.apache.tools.ant.Target.execute(Target.java:341)
      at org.apache.tools.ant.Target.performTasks(Target.java:369)
      at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1216)
      at org.apache.tools.ant.Project.executeTarget(Project.java:1185)
      at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:40)
      at org.apache.tools.ant.Project.executeTargets(Project.java:1068)
      at org.apache.tools.ant.Main.runBuild(Main.java:668)
      at org.apache.tools.ant.Main.startAnt(Main.java:187)
      at org.apache.tools.ant.launch.Launcher.run(Launcher.java:246)
      at org.apache.tools.ant.launch.Launcher.main(Launcher.java:67)

      Message was edited by:
      Archievetest
        • 1. Re: AVK is not working properly. java.lang.NullPointerException is displaye
          843844
          Make sure that you have defined the property "avk.home" in your ant build file.
          You can refer to the sample build.xml file provided in the samples directory of AVK installation. It imports a build.properties file which has this property defined.

          --Vikas.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               
          • 2. Re: AVK is not working properly. java.lang.NullPointerException is displaye
            843844
            Hi Vikas,

            I had already setup AVK_HOME instead of avk.home in property file.
            • 3. Re: AVK is not working properly. java.lang.NullPointerException is displaye
              843844
              As you can see "AVK_HOME" and "avk.home" are different. Try providing property avk.home in the build file. It should resolve this problem.
              • 4. Re: AVK is not working properly. java.lang.NullPointerException is displaye
                843844
                Hi Vikas,

                Thank You for your Valuable help. I just changed AVK_HOME to avk.home and application works. but i facing some other problems i will try to solve it
                • 5. Re: AVK is not working properly. java.lang.NullPointerException is displaye
                  843844
                  Hi Vikas,

                  You developed some of verification classes for open source. i impresesed. i see your name in some classes.

                  I am facing following problem.

                  ---------------------------
                  STATIC VERIFICATION RESULTS
                  ---------------------------

                       
                       ----------------------------------
                       NUMBER OF FAILURES/WARNINGS/ERRORS
                       ----------------------------------
                       # of Failures : 0
                  # of Warnings : 0
                       # of Errors : 1

                  -----------------------------------------------------
                  ERRORS THAT OCCURED WHILE RUNNING STATIC VERIFICATION
                  -----------------------------------------------------
                       
                       Error Name : Problem in creating application descriptor
                       Error Description : java.io.IOException: The archive null does not contain deployment descriptor file META-INF/ejb-jar.xml
                       at com.sun.enterprise.deployment.archivist.Archivist.readStandardDeploymentDescriptor(Archivist.java:233)
                       at com.sun.enterprise.deployment.archivist.Archivist.readDeploymentDescriptors(Archivist.java:195)
                       at com.sun.enterprise.deployment.archivist.Archivist.open(Archivist.java:131)
                       at com.sun.enterprise.deployment.archivist.ApplicationArchivist.open(ApplicationArchivist.java:251)
                       at com.sun.enterprise.deployment.archivist.ApplicationArchivist.openArchive(ApplicationArchivist.java:673)
                       at com.sun.enterprise.tools.verifier.VerificationHandler.getApplicationDescriptor(VerificationHandler.java:159)
                       at com.sun.enterprise.tools.verifier.VerificationHandler.verifyArchive(VerificationHandler.java:62)
                       at com.sun.enterprise.tools.verifier.Verifier.verify(Verifier.java:75)
                       at com.sun.enterprise.tools.verifier.Verifier.main(Verifier.java:53)


                  ----------------------------------
                  END OF STATIC VERIFICATION RESULTS
                  ----------------------------------
                  • 6. Re: AVK is not working properly. java.lang.NullPointerException is displaye
                    843844
                    From the stack trace it looks that you are using AVK version 1.4.x
                    You should ensure that a proper ejb deployment descriptor is bundled in your application. As reported by the tool, it is not able to find a deployment descriptor (ejb-jar.xml) in your application.
                    • 7. Re: AVK is not working properly. java.lang.NullPointerException is displaye
                      843844
                      i m deployin Qos that is ossj.
                      But while durin Build of build.xml i m gettin following error.


                      taskdef class org.apache.tools.ant.taskdefs.optional.sun.verification.StaticArchiveTest cannot be found.

                      can u plz help me