Topic
  • 1 reply
  • Latest Post - ‏2014-04-09T10:03:11Z by ParamS
MaheshNavuda
MaheshNavuda
1 Post

Pinned topic JIT issue

‏2014-04-09T09:42:44Z |

We have observing strange issue with JIT.  Following code is failing with error. Getting NPE, put there is no line number in the stacktrace, There is no where in the code i can get NPE, since i am checking null. Note: This method will be called morethan 1000 time sin seconds.

 

...
Caused by: java.lang.NullPointerException
at com.avng.api.util.Id.isId(Id.java)
at com.avng.engine.MetadataCacheBase.getClassInfo(MetadataCacheBase.java:199)
at com.avng.engine.PersisterBase.getInstance(PersisterBase.java:112)

 

Java Code:  Method.Id.isId()

public static boolean isId(String value)

{
     if (value == null)
     {
return false;
}
 
     int valueLength = value.length();
     if (valueLength < 36)
{
return false;

 

Javaversion:

Host Operating System is Windows Server 2003, version 5.2 build 3790 Service Pack 2
Java version = 1.6.0, Java Compiler = j9jit24, Java VM name = IBM J9 VM
}
    return false;
 }
Updated on 2014-04-09T09:44:41Z at 2014-04-09T09:44:41Z by MaheshNavuda
  • ParamS
    ParamS
    18 Posts

    Re: JIT issue

    ‏2014-04-09T10:03:11Z  

    To further understand your issue,  share the following logs

    a) <JAVA_HOME>\jre\bin\java -version output?

    b) Hava you tried to exclude the method "isId" from JIT compilation & verified? If so, what is the result?

         like, -Xjit:exclude={com/avng/api/util/Id.isId*}

    c) Generate a system dump on exception & share the dump.

    Param