Uploaded image for project: 'Tapestry'
  1. Tapestry
  2. TAPESTRY-2196

Protected field in a component class does not generate an understandable exception, instead NoClassDefFound


    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Cannot Reproduce
    • Affects Version/s: 5.0.10
    • Fix Version/s: None
    • Component/s: Framework
    • Labels:
    • Environment:
      Windows XP, Eclipse, Tapestry 5, Hibernate, Maven, Jetty


      The exception output I received was a No Class Definition exception. All the jar files were in their appropriate directories, so to debug the issue I had to either follow the debugger deep into Tapestry code or revert my local changes entirely.

      The problem was that I had a protected boolean instance variable in a class representing a form to edit a database object. The variable had no getter or setter because it was never supposed to be referenced by Tapestry, and though it was protected, the class of which it was part was neither extended anywhere nor meant to be.

      The startup form was called TaskList.java. The form with the problem was called ProjectForm.java. The exception output displayed a line from TaskList.tml with a message that ProjectForm.java was without a class definition. This occurred before the TaskList was displayed, one more step before ProjectForm could be displayed.




            • Assignee:
              hlship Howard M. Lewis Ship
              daniel.harvey Daniel
            • Votes:
              0 Vote for this issue
              0 Start watching this issue


              • Created: