Re: urgent problem addObjectToBothSides...
Re: urgent problem addObjectToBothSides...
- Subject: Re: urgent problem addObjectToBothSides...
- From: Lachlan Deck <email@hidden>
- Date: Thu, 16 Oct 2008 13:52:00 +1100
On 16/10/2008, at 11:36 AM, WebObjects wrote:
Im having the exact problem when using that method.
I think your problem is different. Mine's rare.
I've found the problem to mine... took a bit of debugging down deep.
EOF wasn't applying a restricting qualifier properly when generating
sql that followed a relationship. I know I've talked with Pierre about
this before... and so I think he's possibly fixed this in 5.4.x (I'm
on 5.3.3).
On Oct 15, 2008, at 5:49 PM, Lachlan Deck wrote:
Hi there,
anyone got any clues on this one?
I've checked the model and it appears to be okay. What else might
cause this problem?
with regards,
--
Lachlan Deck
[2008-10-16 09:29:27 EST] <WorkerThread0>
java.lang.NullPointerException
at
com
.webobjects
.eoaccess
.EOSQLExpression._flattenRelPathEntity(EOSQLExpression.java:302)
at
com
.webobjects
.eoaccess
.EOSQLExpression._aliasForRelationshipPath(EOSQLExpression.java:325)
at
com
.webobjects
.eoaccess
.EOSQLExpression
._aliasForRelatedAttributeRelationshipPath(EOSQLExpression.java:259)
at
com
.webobjects
.eoaccess
.EOSQLExpression.sqlStringForAttributePath(EOSQLExpression.java:2135)
at
com
.webobjects
.eoaccess
._EOExpressionArray.valueForSQLExpression(_EOExpressionArray.java:
177)
at
com
.webobjects
.eoaccess
.EOSQLExpression.sqlStringForAttribute(EOSQLExpression.java:2060)
at
com
.webobjects
.eoaccess
.EOSQLExpression.sqlStringForAttributePath(EOSQLExpression.java:2133)
at
com
.webobjects
.eoaccess
.EOSQLExpression.sqlStringForAttributeNamed(EOSQLExpression.java:
1935)
at
com
.webobjects
.eoaccess
.EOSQLExpression.sqlStringForKeyValueQualifier(EOSQLExpression.java:
1693)
at com.webobjects.eoaccess.EOQualifierSQLGeneration
$
_KeyValueQualifierSupport
.sqlStringForSQLExpression(EOQualifierSQLGeneration.java:441)
at er.extensions.ERXExtensions
$
KeyValueQualifierSQLGenerationSupport
.sqlStringForSQLExpression(ERXExtensions.java:263)
at com.webobjects.eoaccess.EOQualifierSQLGeneration
$Support._sqlStringForSQLExpression(EOQualifierSQLGeneration.java:
151)
at
com
.webobjects
.eoaccess
.EOSQLExpression.sqlStringForArrayOfQualifiers(EOSQLExpression.java:
1562)
at
com
.webobjects
.eoaccess
.EOSQLExpression
.sqlStringForConjoinedQualifiers(EOSQLExpression.java:1597)
at com.webobjects.eoaccess.EOQualifierSQLGeneration
$
_AndQualifierSupport
.sqlStringForSQLExpression(EOQualifierSQLGeneration.java:512)
at com.webobjects.eoaccess.EOQualifierSQLGeneration
$Support._sqlStringForSQLExpression(EOQualifierSQLGeneration.java:
151)
at
com
.webobjects
.eoaccess
.EOSQLExpression.sqlStringForArrayOfQualifiers(EOSQLExpression.java:
1562)
at
com
.webobjects
.eoaccess
.EOSQLExpression
.sqlStringForConjoinedQualifiers(EOSQLExpression.java:1597)
at com.webobjects.eoaccess.EOQualifierSQLGeneration
$
_AndQualifierSupport
.sqlStringForSQLExpression(EOQualifierSQLGeneration.java:512)
at com.webobjects.eoaccess.EOQualifierSQLGeneration
$Support._sqlStringForSQLExpression(EOQualifierSQLGeneration.java:
151)
at
com
.webobjects
.eoaccess
.EOSQLExpression.sqlStringForArrayOfQualifiers(EOSQLExpression.java:
1562)
at
com
.webobjects
.eoaccess
.EOSQLExpression
.sqlStringForConjoinedQualifiers(EOSQLExpression.java:1597)
at com.webobjects.eoaccess.EOQualifierSQLGeneration
$
_AndQualifierSupport
.sqlStringForSQLExpression(EOQualifierSQLGeneration.java:512)
at com.webobjects.eoaccess.EOQualifierSQLGeneration
$Support._sqlStringForSQLExpression(EOQualifierSQLGeneration.java:
151)
at
com
.webobjects
.eoaccess
.EOSQLExpression.sqlStringForArrayOfQualifiers(EOSQLExpression.java:
1562)
at
com
.webobjects
.eoaccess
.EOSQLExpression
.sqlStringForConjoinedQualifiers(EOSQLExpression.java:1597)
at com.webobjects.eoaccess.EOQualifierSQLGeneration
$
_AndQualifierSupport
.sqlStringForSQLExpression(EOQualifierSQLGeneration.java:512)
at com.webobjects.eoaccess.EOQualifierSQLGeneration
$Support._sqlStringForSQLExpression(EOQualifierSQLGeneration.java:
151)
at
com
.webobjects
.eoaccess
.EOSQLExpression
.prepareSelectExpressionWithAttributes(EOSQLExpression.java:1024)
at
com
.webobjects
.jdbcadaptor
.JDBCExpression
.prepareSelectExpressionWithAttributes(JDBCExpression.java:273)
at
com
.webobjects
.eoaccess
.EOSQLExpressionFactory
.selectStatementForAttributes(EOSQLExpressionFactory.java:226)
at
com
.webobjects
.jdbcadaptor.JDBCChannel.selectAttributes(JDBCChannel.java:178)
at
com
.webobjects
.eoaccess
.EODatabaseChannel
._selectWithFetchSpecificationEditingContext(EODatabaseChannel.java:
878)
at
com
.webobjects
.eoaccess
.EODatabaseChannel
.selectObjectsWithFetchSpecification(EODatabaseChannel.java:215)
at
com
.webobjects
.eoaccess
.EODatabaseContext
._objectsWithFetchSpecificationEditingContext
(EODatabaseContext.java:3205)
at
com
.webobjects
.eoaccess
.EODatabaseContext
.objectsWithFetchSpecification(EODatabaseContext.java:3346)
at
com
.ish
.webobjects
.eoaccess
.ISHDatabaseContext
.objectsWithFetchSpecification(ISHDatabaseContext.java:123)
at
com
.webobjects
.eocontrol
.EOObjectStoreCoordinator
.objectsWithFetchSpecification(EOObjectStoreCoordinator.java:539)
at
com
.webobjects
.eocontrol
.EOEditingContext
.objectsWithFetchSpecification(EOEditingContext.java:4114)
at er.extensions.ERXEC.objectsWithFetchSpecification(ERXEC.java:
1090)
at
com
.webobjects
.eoaccess
.EODatabaseContext.objectsForSourceGlobalID(EODatabaseContext.java:
4260)
at
com
.webobjects
.eocontrol
.EOObjectStoreCoordinator
.objectsForSourceGlobalID(EOObjectStoreCoordinator.java:682)
at
com
.webobjects
.eocontrol
.EOEditingContext.objectsForSourceGlobalID(EOEditingContext.java:
3965)
at er.extensions.ERXEC.objectsForSourceGlobalID(ERXEC.java:1051)
at
com
.webobjects
.eoaccess.EODatabaseContext._fireArrayFault(EODatabaseContext.java:
4427)
at
com
.webobjects
.eoaccess
.EOAccessArrayFaultHandler
.completeInitializationOfObject(EOAccessArrayFaultHandler.java:70)
at
com
.webobjects
.eocontrol
._EOCheapCopyMutableArray.willRead(_EOCheapCopyMutableArray.java:38)
at
com
.webobjects
.eocontrol
._EOCheapCopyMutableArray.count(_EOCheapCopyMutableArray.java:92)
at com.webobjects.foundation.NSArray.containsObject(NSArray.java:
481)
at
com
.webobjects
.eocontrol
.EOCustomObject
.includeObjectIntoPropertyWithKey(EOCustomObject.java:907)
at
er
.extensions
.ERXGenericRecord
.includeObjectIntoPropertyWithKey(ERXGenericRecord.java:1171)
at
com
.webobjects
.eocontrol
.EOCustomObject.addObjectToPropertyWithKey(EOCustomObject.java:946)
at
com
.webobjects
.eocontrol
.EOCustomObject
.addObjectToBothSidesOfRelationshipWithKey(EOCustomObject.java:1069)
at
er
.extensions
.ERXGenericRecord
.addObjectToBothSidesOfRelationshipWithKey(ERXGenericRecord.java:588)
_______________________________________________
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
with regards,
--
Lachlan Deck
_______________________________________________
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