Strange bug (?)
Strange bug (?)
- Subject: Strange bug (?)
- From: Jonathan Meijer <email@hidden>
- Date: Tue, 14 Sep 2004 10:34:53 -0400
I have a really bizarre issue with WebObjects, and it involves Project
Wonder, so this might not be the best list, but I still want to share
this issue to see if anyone else has/had it, but here we go anyway:
I have been hitting a strange behaviour (possibly a bug) of DirectToWeb
with the Wonder 2.0 frameworks.
This is the way you (or at least I) can reproduce it:
1. Pull up your favourite EOModel with at least two entities, Alpha and
Beta (or whatever names they might have). Alpha should have at least
one property (aside from primary key)... let's say alphaProp, and Beta
should have a property of the different name... so let's say betaProp.
Make sure there are a few rows of data for both entities.
2. Create a clean new D2W project (I use XCode) with your EOModel and
with NeutralLook.
3. Build and run.
4. Click "Login", and on the QueryAll page, click the magnifying glass
next to the Alpha text field... it should give you the list of
entities. Click "Return" on the Alpha List page to return to the
QueryAll page. Click on the magnifying glass next to the Beta text
field... you should get the list of Beta entities.
So far so good. But now let's use Wonder:
5. Stop the app. Delete (delete reference) of
JavaWOExtensions.framework, and add the following frameworks from
Wonder: ERDirectToWeb, ERExtensions, ERNeutralLook and
JavaWOExtensions.
6. In Application.java, add "import er.extensions.*;" and replace all
occurences of WOApplication by ERXApplication. In Session.java, add
"import er.extensions.*;" and replace all occurences of WOSession by
ERXSession.
7. Build and run.
8. Repeat step 4: Click "Login", and on the QueryAll page, click the
magnifying glass next to the Alpha text field... it should give you the
list of entities. Click "Return" on the Alpha List page to return to
the QueryAll page. Click on the magnifying glass next to the Beta text
field... and OUCH! you get an exception saying that "This class does
not have an instance variable of the name alphaProp or _alphaProp"
etc... even though we're using entity Beta!
We just generated the exception I have had since June. Now let's see
how we can work around that.
9. Stop the app. Add the following framework: ERCoreBusinessLogic.
10. Build and run.
11. Repeat step 4, and it should act normally (i.e. no exception).
The problem showed up, though, under other circumstances, even with the
ERCoreBusinessLogic framework added. This strange behaviour has
baffled both me and my colleagues.
Has anyone experienced the same?
Jonathan Meijer
Software Development
FusionDev.ca
(613) 482-1324
email@hidden
_______________________________________________
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