title: Class ClassFormatError :Absent-Code-attribute-in-method-that-is-not-native
body: <p>I have JSP project run on tomcat 6.0.32 and java 6, that suddenly threw this exception</p>
  
  <pre><code>java.lang.ClassFormatError: Absent Code attribute in method that is not native or abstract in class file com/company/secure/Account
  java.lang.ClassLoader.defineClass1(Native Method)
  java.lang.ClassLoader.defineClassCond(ClassLoader.java:631)
  java.lang.ClassLoader.defineClass(ClassLoader.java:615)
  java.security.SecureClassLoader.defineClass(SecureClassLoader.java:141)
  org.apache.catalina.loader.WebappClassLoader.findClassInternal(WebappClassLoader.java:2818)
  org.apache.catalina.loader.WebappClassLoader.findClass(WebappClassLoader.java:1159)
  org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1647)
  org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1526)
  org.apache.jasper.servlet.JasperLoader.loadClass(JasperLoader.java:128)
  org.apache.jasper.servlet.JasperLoader.loadClass(JasperLoader.java:66)
  java.lang.Class.getDeclaredConstructors0(Native Method)
  java.lang.Class.privateGetDeclaredConstructors(Class.java:2389)
  java.lang.Class.getConstructor0(Class.java:2699)
  java.lang.Class.newInstance0(Class.java:326)
  java.lang.Class.newInstance(Class.java:308)
  org.apache.jasper.servlet.JspServletWrapper.getServlet(JspServletWrapper.java:150)
  org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:338)
  org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:313)
  org.apache.jasper.servlet.JspServlet.service(JspServlet.java:260)
  javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
  filters.ObjectsCacheFilter.doFilter(ObjectsCacheFilter.java:43)
  filters.FilterCach.doFilter(FilterCach.java:81)
  filters.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:123)
  </code></pre>
  
  <p>note The full stack trace of the root cause is available in the Apache Tomcat/6.0.32 logs.
  Apache Tomcat/6.0.32</p>