0 Replies Latest reply on Sep 2, 2005 6:41 AM by Håkon Bommen

    Missing empty constructor in Entity examples (EJB 3.0 tutori

    Håkon Bommen Newbie

      Hi.

      I have discovered a bug one of the EJB 3.0 tutorials. In the Entity Beans section both entity beans (Order and LineItem) lack an empty constructor. This will in turn produce a nullPointerException if attempting to recover data from persistent storage.

      http://docs.jboss.org/ejb3/app-server/tutorial/entity/entity.html

      Is it possible to thow a ....say "EmptyConstuctorNotFoundException" or something more intuitive then a nullpointer? I had a hard time figuring out exactly what whent wrong.