Many to Many Grief
Many to Many Grief
- Subject: Many to Many Grief
- From: Greg <email@hidden>
- Date: Wed, 6 Apr 2005 10:08:26 +1000
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.j
ava:213)
at
com.webobjects.eoaccess.EOSQLExpression._aliasForRelatedAttributeRelatio
nshipPath(EOSQLExpression.java:264)
at
com.webobjects.eoaccess.EOSQLExpression.joinExpression(EOSQLExpression.j
ava:1169)
at
com.webobjects.eoaccess.EOSQLExpression.prepareSelectExpressionWithAttri
butes(EOSQLExpression.java:1033)
at
com.webobjects.jdbcadaptor.JDBCExpression.prepareSelectExpressionWithAtt
ributes(JDBCExpression.java:273)
at
com.webobjects.eoaccess.EOSQLExpressionFactory.selectStatementForAttribu
tes(EOSQLExpressionFactory.java:219)
at
com.webobjects.jdbcadaptor.JDBCChannel.selectAttributes(JDBCChannel.java
:178)
at
com.webobjects.eoaccess.EODatabaseChannel._selectWithFetchSpecificationE
ditingContext(EODatabaseChannel.java:879)
at
com.webobjects.eoaccess.EODatabaseChannel.selectObjectsWithFetchSpecific
ation(EODatabaseChannel.java:216)
at
com.webobjects.eoaccess.EODatabaseContext._objectsWithFetchSpecification
EditingContext(EODatabaseContext.java:3196)
at
com.webobjects.eoaccess.EODatabaseContext.objectsWithFetchSpecification(
EODatabaseContext.java:3337)
at
com.webobjects.eocontrol.EOObjectStoreCoordinator.objectsWithFetchSpecif
ication(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(EODat
abaseContext.java:4251)
at
com.webobjects.eocontrol.EOObjectStoreCoordinator.objectsForSourceGlobal
ID(EOObjectStoreCoordinator.java:682)
at
com.webobjects.eocontrol.EOEditingContext.objectsForSourceGlobalID(EOEdi
tingContext.java:3904)
at er.extensions.ERXEC.objectsForSourceGlobalID(ERXEC.java:517)
at
com.webobjects.eoaccess.EODatabaseContext._fireArrayFault(EODatabaseCont
ext.java:4418)
at
com.webobjects.eoaccess.EOAccessArrayFaultHandler.completeInitialization
OfObject(EOAccessArrayFaultHandler.java:70)
at
com.webobjects.eocontrol._EOCheapCopyMutableArray.willRead(_EOCheapCopyM
utableArray.java:38)
at
com.webobjects.eocontrol._EOCheapCopyMutableArray.count(_EOCheapCopyMuta
bleArray.java:92)
at com.webobjects.foundation.NSArray.containsObject(NSArray.java:601)
at
com.webobjects.appserver._private.WOCheckBoxList.appendToResponse(WOChec
kBoxList.java:254)
at
er.extensions.ERXPatcher$DynamicElementsPatches$CheckBoxList.appendToRes
ponse(ERXPatcher.java:397)
at
com.webobjects.appserver._private.WODynamicGroup.appendChildrenToRespons
e(WODynamicGroup.java:121)
at
com.webobjects.appserver._private.WOForm.appendChildrenToResponse(WOForm
.java:124)
at er.extensions.ERXWOForm.appendToResponse(ERXWOForm.java:68)
at
com.webobjects.appserver._private.WOComponentContent.appendToResponse(WO
ComponentContent.java:43)
at
com.webobjects.appserver._private.WODynamicGroup.appendChildrenToRespons
e(WODynamicGroup.java:121)
at
com.webobjects.appserver._private.WODynamicGroup.appendToResponse(WODyna
micGroup.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.appendChildrenToRespons
e(WODynamicGroup.java:121)
at
com.webobjects.appserver._private.WODynamicGroup.appendToResponse(WODyna
micGroup.java:130)
at
com.webobjects.appserver.WOComponent.appendToResponse(WOComponent.java:
992)
at
au.com.shoebox.woapplication.ShoeBoxComponent.appendToResponse(ShoeBoxCo
mponent.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.ja
va:1418)
at
er.extensions.ERXApplication.appendToResponse(ERXApplication.java:606)
at
com.webobjects.appserver._private.WOComponentRequestHandler._dispatchWit
hPreparedPage(WOComponentRequestHandler.java:230)
at
com.webobjects.appserver._private.WOComponentRequestHandler._dispatchWit
hPreparedSession(WOComponentRequestHandler.java:287)
at
com.webobjects.appserver._private.WOComponentRequestHandler._dispatchWit
hPreparedApplication(WOComponentRequestHandler.java:322)
at
com.webobjects.appserver._private.WOComponentRequestHandler._handleReque
st(WOComponentRequestHandler.java:358)
at
com.webobjects.appserver._private.WOComponentRequestHandler.handleReques
t(WOComponentRequestHandler.java:432)
at
com.webobjects.appserver.WOApplication.dispatchRequest(WOApplication.jav
a: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.java
: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:
This email sent to email@hidden