Re: EOGenerator problem
Re: EOGenerator problem
- Subject: Re: EOGenerator problem
- From: Johann Werner <email@hidden>
- Date: Sat, 10 Feb 2018 22:39:21 +0100
Hi Jeff,
the (very) old EO templates used to use log4j for logging but this was replaced
by slf4j in the current ones some time ago. Perhaps you have a lib problem
there? Passing a null value to e.g. the debug method of slf4j should be no
problem as it converts that to the string „null“ before constructing the
logging message.
What version of Wonder do you use? ERJars includes the slf4j library. What is
the stack trace of your NPE?
If you want to use the old templates instead and you followed the instructions
on the wocommunity wiki, did you download the templates where the link is
pointing to? If the answer is yes then you probably downloaded the (same) new
templates instead of the old ones you wanted. You would have to switch to
another branch like eclipse_3_8 first or go back in git history.
jw
> Am 30.01.2018 um 04:35 schrieb Jeff Schmitz <email@hidden>:
>
> Hello List,
> I recently updated to Eclipse Oxygen and somewhere in the process my
> EOGenerator behavior has been changed. Specifically, where it used to
> generate “set” functions like this:
>
> public void setMiscState1(Boolean value) {
> if (_Entry.LOG.isDebugEnabled()) {
> _Entry.LOG.debug( "updating miscState1 from " + miscState1() + " to " +
> value);
> }
> takeStoredValueForKey(value, _Entry.MISC_STATE1_KEY);
> }
>
> It’s now generating them like below, which causes a null pointer exception
> when miscState1() happens to return null.
>
> public void setMiscState1(Boolean value) {
> log.debug( "updating miscState1 from {} to {}", miscState1(), value);
> takeStoredValueForKey(value, _Entry.MISC_STATE1_KEY);
> }
>
> Any idea how I can get back my old EOGenerator functionality? I have tried
> following the instructions here:
> https://wiki.wocommunity.org/display/WOL/EOGenerator and I specified the
> wondierEntity files in my EOGenerator preferences as suggested.
>
> Thanks!
> Jeff
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden