As I mentioned previously, I've had some difficulties getting
started with Wicket.  Here is another issue for your
consideration.

Being in experimentation mode, I naively copied some of the
examples to the default package in NetBeans and started
modifying them.  "getClass().getPackage().getName()" threw
NullPointerException.  Naturally, I looked at that again and
again and kept telling myself that that shouldn't throw
NullPointerException. :-)  OK, to make a long story short, I
learned my lesson about putting classes in the default package
(maybe they should call it the null package?).

Now, I'm not positive, but I believe I changed that call, found
that I was getting NullPointerExceptions elsewhere, and then
finally moved the code into another package, eliminating the
problem.  Could it be that getPackage().getName() is being
called within Wicket?  If so, I would advise against it.  There
are probably others that will make the mistake I made.

-Andy


-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
_______________________________________________
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user

Reply via email to