A robust starter web application to ease Java webapp development.

Home | Tutorials | Demos | Issues

Appfuse-wicket-ibatis UserModel class logging/debugging

View: New views
3 Messages — Rating Filter:   Alert me  

Re: Appfuse-wicket-ibatis UserModel class logging/debugging

by mraible :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

You should be able to add the following to your class and then call log.debug(message) and logging messages will show up in your console.

private final Log log = LogFactory.getLog(YourClass.class);

Matt

On Thu, Jun 18, 2009 at 2:52 PM, David Brown <dbrown@...> wrote:
Hello appfuse folks, I have a very nice web app worked up from the appfuse-wicket-ibatis-1.8.2 module and the efforts of Matt Raible. I have been able to duplicate all of the necessary classes to implement my own functionality similar to the: UserXXX.java classes. My version of these classes is listing the records correctly from the IBatis-MySQL config. However, when I click on a record to do so-called: edit-link the targeted record the web-app blows up at my version of the UserModel.java (Object load() method). I have source level debugged this but the app is blowing up before I can examine any variables. None of the testcases are failing or have errors. I am opting to just do some good-ol' logging. The BasePage defines a logger but this is not available in the UserModel.class. Suggestions as how to introduce logging without blowing up my web-app or unduly impacting Matt's carefully designed architecture would be appreciated. I am not a wicket expert so any ideas whatever will help. Particulars follow. Please advise, David.


OS: Windows XP
JDK: 1.5
Maven: 2.1.0

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@...
For additional commands, e-mail: users-help@...



Parent Message unknown Appfuse-wicket-ibatis UserModel class logging/debugging

by David Brown-48 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hello appfuse folks, I have a very nice web app worked up from the appfuse-wicket-ibatis-1.8.2 module and the efforts of Matt Raible. I have been able to duplicate all of the necessary classes to implement my own functionality similar to the: UserXXX.java classes. My version of these classes is listing the records correctly from the IBatis-MySQL config. However, when I click on a record to do so-called: edit-link the targeted record the web-app blows up at my version of the UserModel.java (Object load() method). I have source level debugged this but the app is blowing up before I can examine any variables. None of the testcases are failing or have errors. I am opting to just do some good-ol' logging. The BasePage defines a logger but this is not available in the UserModel.class. Suggestions as how to introduce logging without blowing up my web-app or unduly impacting Matt's carefully designed architecture would be appreciated. I am not a wicket expert so any ideas whatever will help. Particulars follow. Please advise, David.


OS: Windows XP
JDK: 1.5
Maven: 2.1.0

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@...
For additional commands, e-mail: users-help@...


Re: Appfuse-wicket-ibatis UserModel class logging/debugging

by David Brown-48 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hello Matt, thanks for the speedy and informative reply. Just like Log4j (Doh!)



----- Original Message -----
From: "Matt Raible" <matt@...>
To: users@...
Sent: Thursday, June 18, 2009 3:49:58 PM GMT -06:00 US/Canada Central
Subject: Re: [appfuse-user] Appfuse-wicket-ibatis UserModel class  logging/debugging

You should be able to add the following to your class and then call
log.debug(message) and logging messages will show up in your console.

private final Log log = LogFactory.getLog(YourClass.class);

Matt

On Thu, Jun 18, 2009 at 2:52 PM, David Brown
<dbrown@...>wrote:

> Hello appfuse folks, I have a very nice web app worked up from the
> appfuse-wicket-ibatis-1.8.2 module and the efforts of Matt Raible. I have
> been able to duplicate all of the necessary classes to implement my own
> functionality similar to the: UserXXX.java classes. My version of these
> classes is listing the records correctly from the IBatis-MySQL config.
> However, when I click on a record to do so-called: edit-link the targeted
> record the web-app blows up at my version of the UserModel.java (Object
> load() method). I have source level debugged this but the app is blowing up
> before I can examine any variables. None of the testcases are failing or
> have errors. I am opting to just do some good-ol' logging. The BasePage
> defines a logger but this is not available in the UserModel.class.
> Suggestions as how to introduce logging without blowing up my web-app or
> unduly impacting Matt's carefully designed architecture would be
> appreciated. I am not a wicket expert so any ideas whatever will help.
> Particulars follow. Please advise, David.
>
>
> OS: Windows XP
> JDK: 1.5
> Maven: 2.1.0
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@...
> For additional commands, e-mail: users-help@...
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@...
For additional commands, e-mail: users-help@...