title: java.lang.Exception: java.lang.VerifyError: JVMVRFY012 stack shape inconsistent;
body: <p>We have just migrated from IBM Websphere 7 (Java 1.6) to Websphere 9 (Java 1.8).
  I'm facing issue with Long casting, code breaks while loading jsp, code snippet below (This code is written in JSP): </p>
  
  <pre><code>        long caseNum = 0L, empid = 0L;
          Long employeeId;
  
  
              employeeId = ((Long) request.getAttribute("EMPID") == null) ? 0L
                      : (Long) request.getAttribute("EMPID");
              empid = employeeId.longValue();
  </code></pre>
  
  <p>Below is the stack strace,</p>
  
  <p><strong>java.lang.Exception: java.lang.VerifyError: JVMVRFY012 stack shape inconsistent; class=com/ibm/_jsp/_TMTSSTaskSummary, method=_jspService(Ljavax/servlet/http/HttpServletRequest;Ljavax/servlet/http/HttpServletResponse;)V, pc=13805</strong>
  Exception Details:
    Location:
      com/ibm/_jsp/_TMTSSTaskSummary._jspService(Ljavax/servlet/http/HttpServletRequest;Ljavax/servlet/http/HttpServletResponse;)V @13805: JBifnull
    Reason:
      Type top (current frame, locals[120]) is not assignable to 'java/lang/Long' (stack map, locals[120])
    Current Frame:
      bci: @13805
      flags: { }
      locals: { 'com/ibm/_jsp/_TMTSSTaskSummary', 'javax/servlet/http/HttpServletRequest', 'javax/servlet/http/HttpServletResponse', 'javax/servlet/jsp/PageContext', 'javax/servlet/http/HttpSession', 'javax/servlet/ServletContext', 'javax/servlet/ServletConfig', 'javax/servlet/jsp/JspWriter', 'java/lang/Object', 'javax/servlet/jsp/JspWriter', 'com/presentation/view/pageelements/SecurityAttr', 'java/lang/String', integer, 'java/lang/String', 'javax/servlet/http/HttpSession', 'java/lang/String', 'java/lang/String', integer, integer, 'java/util/Map', integer, 'java/lang/String', integer, 'java/lang/String', 'java/lang/String', integer, integer, integer, integer, 'java/lang/String', 'java/lang/String', 'java/lang/String', 'java/lang/String', 'java/lang/Object', 'java/lang/Object', 'java/lang/Object', 'java/lang/String', 'java/lang/Object', 'java/lang/String', 'java/lang/Object', 'java/lang/String', 'java/lang','2017-08-04 15:26:47.067','0','A','TMTSS~100: UnKnown Error','859469','518722','null','null')</p>
  
  <p>Can anybody suggest any solution for this.
  I read about using splitverify but it works with AspectJ. Is there any other solution?</p>