I have a model with PERSON <- MEMBER. Member is a subclass of person, qualified by a single character 'type' attribute. I generate a Direct to Web project and by default, the 'type' attribute is shown on the query screen for member. This is meaningless, so I use WebAssistant to hide it, but having done so, I get the following crash. Does anyone have an insight as to why this is? (I've already submitted a bug report to Apple.) WebAssistant has added the following rule twice (when type is removed for some strange reason) to user.d2wmodel, and this seems to be the problem:
{ "class" = "com.webobjects.directtoweb.Rule"; "author" = "100"; "rhs" = { "class" = "com.webobjects.directtoweb.Assignment"; "keyPath" = "keyWhenRelationship"; }; "lhs" = { "class" = "com.webobjects.eocontrol.EOAndQualifier"; "qualifiers" = ( { "class" = "com.webobjects.eocontrol.EOKeyValueQualifier"; "value" = "query"; "selectorName" = "isEqualTo"; "key" = "task"; }, { "class" = "com.webobjects.eocontrol.EOKeyValueQualifier"; "value" = "Member"; "selectorName" = "isEqualTo"; "key" = "entity.name"; }, { "class" = "com.webobjects.eocontrol.EOKeyValueQualifier"; "value" = "uniform_sizes"; "selectorName" = "isEqualTo"; "key" = "propertyKey"; } ); }; },
Error: java.lang.NullPointerException Reason:
Stack trace: File | Line# | Method | Package |
| Class.java | 1830 | | java.lang | Class.java | 1214 | | java.lang | D2WUtils.java | 267 | dataTypeForCustomKeyAndEntity | com.webobjects.directtoweb | D2WContext.java | 589 | customAttribute | com.webobjects.directtoweb | D2WContext.java | 577 | attributeForProperty | com.webobjects.directtoweb | D2WContext.java | 562 | attribute | com.webobjects.directtoweb | D2WContext.java | 532 | attribute | com.webobjects.directtoweb | DefaultAssignment.java | 163 | defaultDisplayNameForProperty | com.webobjects.directtoweb | GeneratedMethodAccessor50.java | NA | invoke | sun.reflect | DelegatingMethodAccessorImpl.java | 25 | | sun.reflect | Method.java | 324 | invoke | java.lang.reflect | NSKeyValueCoding.java | 684 | methodValue | com.webobjects.foundation | NSKeyValueCoding.java | 1160 | valueInObject | com.webobjects.foundation | NSKeyValueCoding.java | 1268 | valueForKey | com.webobjects.foundation | KeyValuePath.java | 136 | valueForKeyOnObject | com.webobjects.directtoweb | DefaultAssignment.java | 50 | fire | com.webobjects.directtoweb | Rule.java | 346 | fire | com.webobjects.directtoweb | D2WModel.java | 1480 | _fireRule | com.webobjects.directtoweb | D2WModel.java | 1525 | fireRuleForKeyPathInContext | com.webobjects.directtoweb | D2WFastModel.java | 184 | fireRuleForKeyPathInContext | com.webobjects.directtoweb | D2WContext.java | 278 | inferValueForKey | com.webobjects.directtoweb | D2WContext.java | 166 | valueForKey | com.webobjects.directtoweb | D2WComponent.java | 375 | displayNameForProperty | com.webobjects.directtoweb | D2WComponent.java | 563 | displayNameForKeyWhenRelationship | com.webobjects.directtoweb |
|