Guest User

I applied the build_collection=true and did rebuild to use memory collection from client. WAS has been initiated, but I noticed NullPointerException. If I applied the build_collection=false, it would be in normal condition. It would be helpful if you could explain what to do.
1.environment: jdk1.7 64bit, Resin4, Windows2008
I tested with Jennifer 4.5.5 and 4.6.1 version.
2. build log:

D:\jennifer\jennifer4.6.1\agent>lwst40.bat jdk15 “D:\java\jdk1.7.0_10_x64\jre\lib\rt.jar”

D:\jennifer\jennifer4.6.1\agent>java -Djvm=jdk15 -Dbuild_jdbc=true -Dbuild_classloader=true -Dbuild_thread=false -Dbuild_collection=true -Dbuild_file=true -Dbuild_socket=true -Dbuild_xml=false -cp .\lwst.setup.jar com.javaservice.lwst.setup.Main “D:\java\jdk1.7.0_10_x64\jre\lib\rt.jar”
##########################################################
Jennifer LWST ver 4.6.1

  1. build properties ###########################
  • Want to change build-options, check the lwst.sh/lwst.bat
  • ex) -Dbuild_collection=false
  • if the OS is TRU64 , set -Dtype_collection=tru64
  • —> Support JAVA5 since LWST3.20
    ##########################################################
    build_jdbc = true
    build_jdbc_datasource = true
    build_jdbc_drivermanager = truebuild_collection = true build_collection_map = true build_collection_list = true build_classloader = false build_thread = false build_file = true build_socket = true build_xml = false

    ##########################################################
    build classes… [D:\java\jdk1.7.0_10_x64\jre\lib\rt.jar]
    javax/naming/InitialContext.class patch…
    java/net/Socket.class patch…
    java/util/TreeMap.class patch…
    java/util/LinkedList.class patch…
    java/util/ArrayList.class patch…
    java/io/FileOutputStream.class patch…
    java/io/FileInputStream.class patch…
    java/util/HashMap.class patch…
    java/util/Vector.class patch…
    java/util/Hashtable.class patch…
    ##########################################################
    build new lwst.jar and make configure …
    copy files from old-jar to new-jar …
    ##########################################################
    build ok…

    D:\jennifer\jennifer4.6.1\agent>move lwst.out.jar lwst.jdk.jar
    1 file has been moved.

    3.WAS activated log:

    Error occurred during initialization of VM
    java.lang.Error: java.lang.NullPointerException
    at java.util.concurrent.atomic.AtomicInteger.(AtomicInteger.java:63)
    at java.lang.ThreadLocal.(ThreadLocal.java:89)
    at com.javaservice.lwst.CollectionTrace.(Unknown Source)
    at java.util.HashMap.put(HashMap.java:485)
    at sun.reflect.Reflection.(Reflection.java:47)
    at sun.misc.Unsafe.(Unsafe.java:46)
    at java.util.Hashtable.(Hashtable.java:234)
    at java.lang.System.initializeSystemClass(System.java:1114)
    Caused by: java.lang.NullPointerException
    at java.util.concurrent.atomic.AtomicInteger.(AtomicInteger.java:61)
    at java.lang.ThreadLocal.(ThreadLocal.java:89)
    at com.javaservice.lwst.CollectionTrace.(Unknown Source)
    at java.util.HashMap.put(HashMap.java:485)
    at sun.reflect.Reflection.(Reflection.java:47)
    at sun.misc.Unsafe.(Unsafe.java:46)
    at java.util.Hashtable.(Hashtable.java:234)
    at java.lang.System.initializeSystemClass(System.java:1114)

  • Khalid Saeed

    You need to apply the jdk17, not jdk15 while building the lwst. In addition, please change the lwst.setup.jar into lwst.setup.jdk7.jar at lwst40.bat. Plus, you might want to apply the lwst.boot.jdk7.jar at –Xbootclasspaht instead of lwst.boot.jar.