FW: Problem converting project to WO5.2
FW: Problem converting project to WO5.2
- Subject: FW: Problem converting project to WO5.2
- From: "Xia, Wen" <email@hidden>
- Date: Mon, 27 Jan 2003 11:27:29 -0800
The exception was:
<WorkerThread3>
<com.webobjects.appserver._private.WOComponentRequestHandler>: Exception
occurred while handling request: java.lang.NullPointerException
[2003-01-27 10:31:10 PST] <WorkerThread3> java.lang.NullPointerException
at
com.webobjects.eocontrol.EOCustomObject.willReadRelationship(EOCustomObject.
java:1286)
at
com.webobjects.eocontrol._EOMutableKnownKeyDictionary$Initializer$_LazyGener
icRecordBinding.valueInObject(_EOMutableKnownKeyDictionary.java:552)
at
com.webobjects.eocontrol.EOCustomObject.storedValueForKey(EOCustomObject.jav
a:1729)
at Fund.fundactivity(Fund.java:401)
and ......
Here, "Fund" is an entity and it has a many-to-one relationship with
"FundActivity" entity. The .java classes were generated for those two
entities as well as the relationship. And in the Fund.java, the
"fundactivity" relationship is generated as:
public FundActivity fundactivity() {
return (FundActivity)storedValueForKey("fundactivity");
}
public void setFundactivity(FundActivity value) {
takeStoredValueForKey(value, "fundactivity");
}
The location of the code where it bombs is: fundItem.fundactivity();
"fundItem" is a Fund object with fund data in it. This line is used to
retrieve fundactivity for the fundItem. And the same code works fine in
WO5.1. The reason for it seems to be in WO5.2, relationships are not
faulted automatically. And then we tried prefetch technique to force the
server to pre-fetch the relationship, it works just fine. The code we used
is:
NSArray fetchRel = new NSArray( new Object[]{"fundactivity"});
fetchSpec.setPrefetchingRelationshipKeyPaths(fetchRel);
Thank you both for your reply.
-----Original Message-----
From: Emil Effila [mailto:email@hidden]
Sent: Friday, January 24, 2003 1:14 AM
To: Xia, Wen; 'email@hidden'
Subject: Re: Problem converting project to WO5.2
When you turn on the EOAdaptorDebugEnabled launch parameter, what can you
see?
I think its sound like the same Problem that I have.
What are the errors that he shows, are those Adaptor Errors?
On 1/23/03 7:46 PM, "Xia, Wen" <email@hidden> wrote:
> Hi,
>
> I have a project that has been created in WO 5.0 and effortlessly
converted
> to WO 5.1, WO 5.1.1 and WO 5.1.2. Basically we just cleaned up and
> recompiled the whole project. This project uses 15 entities and quite a
few
> relationships between them. The project has been created on Windows 2000,
> but we were able to convert it to OSX on the Mac before.
>
> Recently we installed WO 5.2 and recompiled the project again. But now all
> codes that use one-to-many and many-to-many relationships bomb or create
> extra records in the output. The project misbehaves consistently on both
> Windows 2000 PC and Mac with OSX. We are using DB2 database, HitSoftware
> JDBC, session().defaultEditingContext() without locking and java code
> dynamically creates fetch specs on every page.
>
> Did anybody else encountered the same problem? What remedies could you
> recommend?
>
> Is there a set of rules on the EOModeler that have been enforced since WO
> 5.1 that may cause code to stop working properly?
>
> Any help will be greatly appreciated.
>
> Regards,
>
> Wen Xia
> _______________________________________________
> webobjects-dev mailing list | email@hidden
> Help/Unsubscribe/Archives:
> http://www.lists.apple.com/mailman/listinfo/webobjects-dev
> Do not post admin requests to the list. They will be ignored.
Emil Effila
________________________________
Application Developer
The Toolpark Corporation AG
Phone: +41 1 396 26 66
Fax: +41 1 391 22 60
www.toolpark.com
________________________________
_______________________________________________
webobjects-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/webobjects-dev
Do not post admin requests to the list. They will be ignored.
_______________________________________________
webobjects-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/webobjects-dev
Do not post admin requests to the list. They will be ignored.