java.lang.NoSuchFieldError: departmentBase

Oracle Community | r_sudh | 10 years ago
tip
Click on the to mark the solution that helps you, Samebug will learn from it.
As a community member, you’ll be rewarded for you help.
  1. 0

    static fields in class not being seen by glassfish

    Oracle Community | 10 years ago | r_sudh
    java.lang.NoSuchFieldError: departmentBase

    Root Cause Analysis

    1. java.lang.NoSuchFieldError

      departmentBase

      at mycompany.project.ejb.DirectoryBean.getDepartments()
    2. mycompany.project.ejb
      DirectoryBean.getDepartmentList
      1. mycompany.project.ejb.DirectoryBean.getDepartments(DirectoryBean.java:61)
      2. mycompany.project.ejb.DirectoryBean.getDepartmentList(DirectoryBean.java:86)
      2 frames
    3. Java RT
      DelegatingMethodAccessorImpl.invoke
      1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      2. sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      3. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      3 frames