Re: Many to Many Grief
Re: Many to Many Grief
- Subject: Re: Many to Many Grief
- From: Chuck Hill <email@hidden>
- Date: Tue, 5 Apr 2005 17:36:33 -0700
It looks like something is wrong in your model, with the relationship.
Double check it to make sure that every thing is connected and there
are no missing parts.
Chuck
On Apr 5, 2005, at 5:08 PM, Greg wrote:
Hi,
I have an Entity name ProUser and another call ProService. ProService
is a list of services that the user can select that they offer via
checkboxes. I used the Create Many to many menu option in EOModeller
to create the relationship which flattens it into ProUser. I created a
component that I wanted to have a list of all the checkboxes so that
the user can select which ones they want. I used a WOCheckBoxList and
hooked everything up and it throws an Exception (see below). I thought
this might have been me misusing the WOCheckBoxList component so I
changed it to a CheckBoxMatrix with a maxColumns of 1 to effectively
give the same display behaviour, but the SAME exception occurs, so I'm
at a loss as to why.
I had a search through the archives and looked for previous problems
and made sure that I was following the commandments of EOF (you know
the ones I recite when go to bed at night and when I wake up in the
morning :-)). I was trying to see if I can actually turn on debugging
of the raw rows returned from the db, but couldn't seem to find
anything in NSLog's javadoc.
Does anyone have any suggestions on trying to figure what is a miss?
Any help is greatly appreciated.
Regards,
Greg
2005-04-06 09:59:42,002 DEBUG ShoeBox[-:50212 2] NSLog
(ERXNSLogLog4jBridge.java:44) - === Begin Internal Transaction
2005-04-06 09:59:42,007 DEBUG ShoeBox[-:50212 2] NSLog
(ERXNSLogLog4jBridge.java:44) - evaluateExpression:
<com.webobjects.jdbcadaptor.PostgresqlExpression: "SELECT t0.name,
t0.serviceID FROM ProService t0">
2005-04-06 09:59:42,015 DEBUG ShoeBox[-:50212 2] NSLog
(ERXNSLogLog4jBridge.java:44) - 8 row(s) processed
2005-04-06 09:59:42,020 DEBUG ShoeBox[-:50212 2] NSLog
(ERXNSLogLog4jBridge.java:44) - === Commit Internal Transaction
2005-04-06 09:59:42,126 WARN ShoeBox[-:50212 2] NSLog
(ERXNSLogLog4jBridge.java:41) -
<com.webobjects.appserver._private.WOComponentRequestHandler>:
Exception occurred while handling request:
java.lang.NullPointerException
[2005-04-06 09:59:42 EST] <WorkerThread1>
java.lang.NullPointerException
at
com.webobjects.foundation._NSStringUtilities.concat(_NSStringUtilities.
java:213)
at
com.webobjects.eoaccess.EOSQLExpression._aliasForRelatedAttributeRelati
onshipPath(EOSQLExpression.java:264)
at
com.webobjects.eoaccess.EOSQLExpression.joinExpression(EOSQLExpression.
java:1169)
at
com.webobjects.eoaccess.EOSQLExpression.prepareSelectExpressionWithAttr
ibutes(EOSQLExpression.java:1033)
at
com.webobjects.jdbcadaptor.JDBCExpression.prepareSelectExpressionWithAt
tributes(JDBCExpression.java:273)
at
com.webobjects.eoaccess.EOSQLExpressionFactory.selectStatementForAttrib
utes(EOSQLExpressionFactory.java:219)
at
com.webobjects.jdbcadaptor.JDBCChannel.selectAttributes(JDBCChannel.jav
a:178)
at
com.webobjects.eoaccess.EODatabaseChannel._selectWithFetchSpecification
EditingContext(EODatabaseChannel.java:879)
at
com.webobjects.eoaccess.EODatabaseChannel.selectObjectsWithFetchSpecifi
cation(EODatabaseChannel.java:216)
at
com.webobjects.eoaccess.EODatabaseContext._objectsWithFetchSpecificatio
nEditingContext(EODatabaseContext.java:3196)
at
com.webobjects.eoaccess.EODatabaseContext.objectsWithFetchSpecification
(EODatabaseContext.java:3337)
at
com.webobjects.eocontrol.EOObjectStoreCoordinator.objectsWithFetchSpeci
fication(EOObjectStoreCoordinator.java:539)
at
com.webobjects.eocontrol.EOEditingContext.objectsWithFetchSpecification
(EOEditingContext.java:4053)
at er.extensions.ERXEC.objectsWithFetchSpecification(ERXEC.java:547)
at
com.webobjects.eoaccess.EODatabaseContext.objectsForSourceGlobalID(EODa
tabaseContext.java:4251)
at
com.webobjects.eocontrol.EOObjectStoreCoordinator.objectsForSourceGloba
lID(EOObjectStoreCoordinator.java:682)
at
com.webobjects.eocontrol.EOEditingContext.objectsForSourceGlobalID(EOEd
itingContext.java:3904)
at er.extensions.ERXEC.objectsForSourceGlobalID(ERXEC.java:517)
at
com.webobjects.eoaccess.EODatabaseContext._fireArrayFault(EODatabaseCon
text.java:4418)
at
com.webobjects.eoaccess.EOAccessArrayFaultHandler.completeInitializatio
nOfObject(EOAccessArrayFaultHandler.java:70)
at
com.webobjects.eocontrol._EOCheapCopyMutableArray.willRead(_EOCheapCopy
MutableArray.java:38)
at
com.webobjects.eocontrol._EOCheapCopyMutableArray.count(_EOCheapCopyMut
ableArray.java:92)
at com.webobjects.foundation.NSArray.containsObject(NSArray.java:601)
at
com.webobjects.appserver._private.WOCheckBoxList.appendToResponse(WOChe
ckBoxList.java:254)
at
er.extensions.ERXPatcher$DynamicElementsPatches$CheckBoxList.appendToRe
sponse(ERXPatcher.java:397)
at
com.webobjects.appserver._private.WODynamicGroup.appendChildrenToRespon
se(WODynamicGroup.java:121)
at
com.webobjects.appserver._private.WOForm.appendChildrenToResponse(WOFor
m.java:124)
at er.extensions.ERXWOForm.appendToResponse(ERXWOForm.java:68)
at
com.webobjects.appserver._private.WOComponentContent.appendToResponse(W
OComponentContent.java:43)
at
com.webobjects.appserver._private.WODynamicGroup.appendChildrenToRespon
se(WODynamicGroup.java:121)
at
com.webobjects.appserver._private.WODynamicGroup.appendToResponse(WODyn
amicGroup.java:130)
at
com.webobjects.appserver.WOComponent.appendToResponse(WOComponent.java:
992)
at
com.webobjects.appserver._private.WOComponentReference.appendToResponse
(WOComponentReference.java:111)
at
com.webobjects.appserver._private.WODynamicGroup.appendChildrenToRespon
se(WODynamicGroup.java:121)
at
com.webobjects.appserver._private.WODynamicGroup.appendToResponse(WODyn
amicGroup.java:130)
at
com.webobjects.appserver.WOComponent.appendToResponse(WOComponent.java:
992)
at
au.com.shoebox.woapplication.ShoeBoxComponent.appendToResponse(ShoeBoxC
omponent.java:67)
at
com.webobjects.appserver.WOSession.appendToResponse(WOSession.java:
1198)
at er.extensions.ERXSession.appendToResponse(ERXSession.java:510)
at
com.webobjects.appserver.WOApplication.appendToResponse(WOApplication.j
ava:1418)
at
er.extensions.ERXApplication.appendToResponse(ERXApplication.java:606)
at
com.webobjects.appserver._private.WOComponentRequestHandler._dispatchWi
thPreparedPage(WOComponentRequestHandler.java:230)
at
com.webobjects.appserver._private.WOComponentRequestHandler._dispatchWi
thPreparedSession(WOComponentRequestHandler.java:287)
at
com.webobjects.appserver._private.WOComponentRequestHandler._dispatchWi
thPreparedApplication(WOComponentRequestHandler.java:322)
at
com.webobjects.appserver._private.WOComponentRequestHandler._handleRequ
est(WOComponentRequestHandler.java:358)
at
com.webobjects.appserver._private.WOComponentRequestHandler.handleReque
st(WOComponentRequestHandler.java:432)
at
com.webobjects.appserver.WOApplication.dispatchRequest(WOApplication.ja
va:1306)
at
er.extensions.ERXApplication.dispatchRequest(ERXApplication.java:638)
at
com.webobjects.appserver._private.WOWorkerThread.runOnce(WOWorkerThread
.java:173)
at
com.webobjects.appserver._private.WOWorkerThread.run(WOWorkerThread.jav
a:254)
at java.lang.Thread.run(Thread.java:552)
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
village.net
This email sent to email@hidden
--
Practical WebObjects - a book for intermediate WebObjects developers
who want to increase their overall knowledge of WebObjects, or those
who are trying to solve specific application development problems.
http://www.global-village.net/products/practical_webobjects
_______________________________________________
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