Wicket doesn't swallow exceptions to my best knowledge. It should
really be logged somewhere. What about the model you are using, could
that be the root somehow? If you can't figure it out, you could try to
put it in a quickstart project and we could take a look.

Eelco


On 2/26/07, Stewr <[EMAIL PROTECTED]> wrote:
>
> I am running it on Tomcat 5.5 embedded in IntelliJ.  I'm pretty certain that
> I have everything in the classpath.  I have another test app same config
> pretty much and ListView is working fine.
>
>
>
> Eelco Hillenius wrote:
> >
> > Are you sure you don't miss anything on the classpath? And what server
> > are you running it on?
> >
> > Eelco
> >
> >
> > On 2/26/07, Stewr <[EMAIL PROTECTED]> wrote:
> >>
> >> For some reason the exception is not being output to the log or console.
> >> I
> >> have the log level in log4j setup as debug but nothing is
> >> recorded....weird.
> >> I am trying to upload an image to nabble of the intellij debugger showing
> >> the error.  This occurs as I step over the code
> >>
> >> ListView procedures = new ListView("procedures", resultsList) {
> >>             protected void populateItem(ListItem item) {
> >>                 List procedure = (List) item.getModelObject();
> >>                 item.add(new Label("equipment", (String)
> >> procedure.get(0)));
> >>             }
> >>         };
> >>
> >> http://www.nabble.com/file/6790/Screenshot_Error.jpg
> >>
> >>
> >>
> >> igor.vaynberg wrote:
> >> >
> >> > it should be output into the log, so must be in the intellij console?
> >> >
> >> > -igor
> >> >
> >> >
> >> > On 2/26/07, Stewr <[EMAIL PROTECTED]> wrote:
> >> >>
> >> >>
> >> >> Unfortunately I can't get the full stacktrace because the exception
> >> seems
> >> >> to
> >> >> be handled by the framework before it reaches my code.  I can see the
> >> >> exception occur in the debugger, IntelliJ displays it, thens steps
> >> past
> >> >> it,
> >> >> but I can't catch it.
> >> >>
> >> >>
> >> >> igor.vaynberg wrote:
> >> >> >
> >> >> > give us the full stacktrace please
> >> >> >
> >> >> > -igor
> >> >> >
> >> >> >
> >> >> >
> >> >> > On 2/26/07, Stewr <[EMAIL PROTECTED]> wrote:
> >> >> >>
> >> >> >>
> >> >> >> Thanks for the quick reply...procedure is not null at any point
> >> when
> >> >> this
> >> >> >> error is occurring.
> >> >> >>
> >> >> >>
> >> >> >>
> >> >> >> igor.vaynberg wrote:
> >> >> >> >
> >> >> >> >                List procedure = (List) item.getModelObject();
> >> >> >> >                item.add(new Label("equipment", (String)
> >> >> >> > procedure.get(0)));
> >> >> >> >
> >> >> >> > can procedure be null? because thats what it looks like.
> >> >> >> >
> >> >> >> > -igor
> >> >> >> >
> >> >> >> >
> >> >> >> >
> >> >> >> > On 2/26/07, Stewr <[EMAIL PROTECTED]> wrote:
> >> >> >> >>
> >> >> >> >>
> >> >> >> >> I'm using Wicket 1.2.4 and working with a simple page to show a
> >> >> >> ListView.
> >> >> >> >> Here is the constructor for the page.
> >> >> >> >>
> >> >> >> >> public Results(List resultsList) {
> >> >> >> >>        ListView procedures = new ListView("procedures",
> >> >> resultsList)
> >> >> {
> >> >> >> >>
> >> >> >> >>            protected void populateItem(ListItem item) {
> >> >> >> >>
> >> >> >> >>                List procedure = (List) item.getModelObject();
> >> >> >> >>                item.add(new Label("equipment", (String)
> >> >> procedure.get
> >> >> >> >> (0)));
> >> >> >> >>            }
> >> >> >> >>
> >> >> >> >>        };
> >> >> >> >>        add(procedures);
> >> >> >> >>
> >> >> >> >>    }
> >> >> >> >>
> >> >> >> >> I call this constructor from the submit button on another page.
> >> >> >> >>
> >> >> >> >> searchForm.add(new Button("search"){
> >> >> >> >>
> >> >> >> >>            protected void onSubmit() {
> >> >> >> >>
> >> >> >> >>                try {
> >> >> >> >>                    List results =
> >> >> >> >>
> >> lotusService.getLockoutsUsingEquipmentSearch(getSearchCriteria());
> >> >> >> >>                    if(results.size() >0){
> >> >> >> >>                        setResponsePage(new Results(results));
> >> >> >> >>                    }
> >> >> >> >>
> >> >> >> >>                } catch (LotusServiceException e) {
> >> >> >> >>                    e.printStackTrace();
> >> >> >> >>                }
> >> >> >> >>            }
> >> >> >> >>        });
> >> >> >> >>
> >> >> >> >> The results page is very simple.
> >> >> >> >> <html>
> >> >> >> >> <head>
> >> >> >> >>    <title>List of Procedures</title>
> >> >> >> >> </head>
> >> >> >> >>
> >> >> >> >> <body>
> >> >> >> >>      Hello
> >> >> >> >>        <table>
> >> >> >> >>            <tr wicket:id="procedures">
> >> >> >> >>                <td><span wicket:id="equipment"/></td>
> >> >> >> >>            </tr>
> >> >> >> >>        </table>
> >> >> >> >>
> >> >> >> >> </body>
> >> >> >> >> </html>
> >> >> >> >>
> >> >> >> >>
> >> >> >> >> What happens is that I get a null pointer exception thrown on
> >> >> ListView
> >> >> >> >> procedures = new ListView("procedures", resultsList).  The null
> >> >> >> pointer
> >> >> >> >> states Method threw 'java.lang.NullPointerException' exception.
> >> >> >> Cannot
> >> >> >> >> evaluate com.dmflavors.lockout.view.pages.Results$1.toString().
> >> >> The
> >> >> >> >> program
> >> >> >> >> is not stopped by the exception and the Results page is rendered
> >> >> but
> >> >> >> >> without
> >> >> >> >> any ListView.  The resultsList list referred to in the ListView
> >> >> call
> >> >> >> is
> >> >> >> >> populated with values, which are actually other lists...so it is
> >> a
> >> >> >> List
> >> >> >> >> of
> >> >> >> >> Lists.  Any help would be appreciated.
> >> >> >> >>
> >> >> >> >> --
> >> >> >> >> View this message in context:
> >> >> >> >>
> >> >> >>
> >> >>
> >> http://www.nabble.com/Newbie-%3A-Null-Pointer-on-Page-tf3293675.html#a9161474
> >> >> >> >> Sent from the Wicket - User mailing list archive at Nabble.com.
> >> >> >> >>
> >> >> >> >>
> >> >> >> >>
> >> >> >>
> >> >>
> >> -------------------------------------------------------------------------
> >> >> >> >> Take Surveys. Earn Cash. Influence the Future of IT
> >> >> >> >> Join SourceForge.net's Techsay panel and you'll get the chance
> >> to
> >> >> >> share
> >> >> >> >> your
> >> >> >> >> opinions on IT & business topics through brief surveys-and earn
> >> >> cash
> >> >> >> >>
> >> >> >>
> >> >>
> >> http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
> >> >> >> >> _______________________________________________
> >> >> >> >> Wicket-user mailing list
> >> >> >> >> Wicket-user@lists.sourceforge.net
> >> >> >> >> https://lists.sourceforge.net/lists/listinfo/wicket-user
> >> >> >> >>
> >> >> >> >
> >> >> >> >
> >> >> >>
> >> >>
> >> -------------------------------------------------------------------------
> >> >> >> > Take Surveys. Earn Cash. Influence the Future of IT
> >> >> >> > Join SourceForge.net's Techsay panel and you'll get the chance to
> >> >> share
> >> >> >> > your
> >> >> >> > opinions on IT & business topics through brief surveys-and earn
> >> cash
> >> >> >> >
> >> >> >>
> >> >>
> >> http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
> >> >> >> > _______________________________________________
> >> >> >> > Wicket-user mailing list
> >> >> >> > Wicket-user@lists.sourceforge.net
> >> >> >> > https://lists.sourceforge.net/lists/listinfo/wicket-user
> >> >> >> >
> >> >> >> >
> >> >> >>
> >> >> >> --
> >> >> >> View this message in context:
> >> >> >>
> >> >>
> >> http://www.nabble.com/Newbie-%3A-Null-Pointer-on-Page-tf3293675.html#a9162055
> >> >> >> Sent from the Wicket - User mailing list archive at Nabble.com.
> >> >> >>
> >> >> >>
> >> >> >>
> >> >>
> >> -------------------------------------------------------------------------
> >> >> >> Take Surveys. Earn Cash. Influence the Future of IT
> >> >> >> Join SourceForge.net's Techsay panel and you'll get the chance to
> >> >> share
> >> >> >> your
> >> >> >> opinions on IT & business topics through brief surveys-and earn
> >> cash
> >> >> >>
> >> >>
> >> http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
> >> >> >> _______________________________________________
> >> >> >> Wicket-user mailing list
> >> >> >> Wicket-user@lists.sourceforge.net
> >> >> >> https://lists.sourceforge.net/lists/listinfo/wicket-user
> >> >> >>
> >> >> >
> >> >> >
> >> >>
> >> -------------------------------------------------------------------------
> >> >> > Take Surveys. Earn Cash. Influence the Future of IT
> >> >> > Join SourceForge.net's Techsay panel and you'll get the chance to
> >> share
> >> >> > your
> >> >> > opinions on IT & business topics through brief surveys-and earn cash
> >> >> >
> >> >>
> >> http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
> >> >> > _______________________________________________
> >> >> > Wicket-user mailing list
> >> >> > Wicket-user@lists.sourceforge.net
> >> >> > https://lists.sourceforge.net/lists/listinfo/wicket-user
> >> >> >
> >> >> >
> >> >>
> >> >> --
> >> >> View this message in context:
> >> >>
> >> http://www.nabble.com/Newbie-%3A-Null-Pointer-on-Page-tf3293675.html#a9167185
> >> >> Sent from the Wicket - User mailing list archive at Nabble.com.
> >> >>
> >> >>
> >> >>
> >> -------------------------------------------------------------------------
> >> >> Take Surveys. Earn Cash. Influence the Future of IT
> >> >> Join SourceForge.net's Techsay panel and you'll get the chance to
> >> share
> >> >> your
> >> >> opinions on IT & business topics through brief surveys-and earn cash
> >> >>
> >> http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
> >> >> _______________________________________________
> >> >> Wicket-user mailing list
> >> >> Wicket-user@lists.sourceforge.net
> >> >> https://lists.sourceforge.net/lists/listinfo/wicket-user
> >> >>
> >> >
> >> >
> >> -------------------------------------------------------------------------
> >> > Take Surveys. Earn Cash. Influence the Future of IT
> >> > Join SourceForge.net's Techsay panel and you'll get the chance to share
> >> > your
> >> > opinions on IT & business topics through brief surveys-and earn cash
> >> >
> >> http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
> >> > _______________________________________________
> >> > Wicket-user mailing list
> >> > Wicket-user@lists.sourceforge.net
> >> > https://lists.sourceforge.net/lists/listinfo/wicket-user
> >> >
> >> >
> >>
> >> --
> >> View this message in context:
> >> http://www.nabble.com/Newbie-%3A-Null-Pointer-on-Page-tf3293675.html#a9167940
> >> Sent from the Wicket - User mailing list archive at Nabble.com.
> >>
> >>
> >> -------------------------------------------------------------------------
> >> Take Surveys. Earn Cash. Influence the Future of IT
> >> Join SourceForge.net's Techsay panel and you'll get the chance to share
> >> your
> >> opinions on IT & business topics through brief surveys-and earn cash
> >> http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
> >> _______________________________________________
> >> Wicket-user mailing list
> >> Wicket-user@lists.sourceforge.net
> >> https://lists.sourceforge.net/lists/listinfo/wicket-user
> >>
> >
> > -------------------------------------------------------------------------
> > Take Surveys. Earn Cash. Influence the Future of IT
> > Join SourceForge.net's Techsay panel and you'll get the chance to share
> > your
> > opinions on IT & business topics through brief surveys-and earn cash
> > http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
> > _______________________________________________
> > Wicket-user mailing list
> > Wicket-user@lists.sourceforge.net
> > https://lists.sourceforge.net/lists/listinfo/wicket-user
> >
> >
>
> --
> View this message in context: 
> http://www.nabble.com/Newbie-%3A-Null-Pointer-on-Page-tf3293675.html#a9169508
> Sent from the Wicket - User mailing list archive at Nabble.com.
>
>
> -------------------------------------------------------------------------
> Take Surveys. Earn Cash. Influence the Future of IT
> Join SourceForge.net's Techsay panel and you'll get the chance to share your
> opinions on IT & business topics through brief surveys-and earn cash
> http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
> _______________________________________________
> Wicket-user mailing list
> Wicket-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wicket-user
>

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user

Reply via email to