All:
I've set up a basic app just to test the stringArray prototype available in
Entity Modeler. I'm not sure if I'm just using this prototype completely
incorrectly or if something is broken. I'm using MySQL for the test. My model
is super simple with one entity:
Person
For that entity I have attributes: firstName, lastName, nicknames with the
latter having the "stringArray" prototype. However, in my basic app, my
application crashes displaying a list of 'Person'. I'm not displaying or
requesting the nicknames attribute at this time. The app runs fine if I remove
the attribute from the model that is using the "stringArray" prototype.
Here is the strack trace:
[2012-2-27 21:59:40 PST] <WorkerThread0>
com.webobjects.foundation.NSForwardException [java.lang.NoSuchMethodException]
Class com.webobjects.foundation.NSArray does not implement method
stringArray:java.lang.NoSuchMethodException: Class
com.webobjects.foundation.NSArray does not implement method stringArray
at
com.webobjects.foundation.NSForwardException._runtimeExceptionForThrowable(NSForwardException.java:45)
at
com.webobjects.eoaccess.EOAttribute.newValueForString(EOAttribute.java:2003)
at
com.webobjects.jdbcadaptor.JDBCColumn._newValueForString(JDBCColumn.java:675)
at
com.webobjects.jdbcadaptor.JDBCColumn._fetchCorrectObject(JDBCColumn.java:334)
at
com.webobjects.jdbcadaptor.JDBCColumn._fetchValue(JDBCColumn.java:384)
at com.webobjects.jdbcadaptor.JDBCColumn.fetchValue(JDBCColumn.java:372)
at
com.webobjects.jdbcadaptor.JDBCChannel.fetchRow(JDBCChannel.java:1462)
at
com.webobjects.eoaccess.EODatabaseChannel._fetchObject(EODatabaseChannel.java:321)
at
com.webobjects.eoaccess.EODatabaseContext._objectsWithFetchSpecificationEditingContext(EODatabaseContext.java:3071)
at
com.webobjects.eoaccess.EODatabaseContext.objectsWithFetchSpecification(EODatabaseContext.java:3195)
at
com.webobjects.eocontrol.EOObjectStoreCoordinator.objectsWithFetchSpecification(EOObjectStoreCoordinator.java:488)
at
com.webobjects.eocontrol.EOEditingContext.objectsWithFetchSpecification(EOEditingContext.java:4069)
at
er.extensions.eof.ERXEC.objectsWithFetchSpecification(ERXEC.java:1215)
at
com.webobjects.eocontrol.EOEditingContext.objectsWithFetchSpecification(EOEditingContext.java:4444)
at
er.extensions.eof.ERXFetchSpecification.fetchObjects(ERXFetchSpecification.java:125)
at
edu.ucla.gseis.arraytest.entities._Person.fetchPersons(_Person.java:100)
at
edu.ucla.gseis.arraytest.entities._Person.fetchAllPersons(_Person.java:94)
at
edu.ucla.gseis.arraytest.entities._Person.fetchAllPersons(_Person.java:90)
at edu.ucla.gseis.arraytest.components.Main.personList(Main.java:44)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at
com.webobjects.foundation.NSKeyValueCoding$ValueAccessor$1.methodValue(NSKeyValueCoding.java:636)
at
com.webobjects.foundation.NSKeyValueCoding$_MethodBinding.valueInObject(NSKeyValueCoding.java:1134)
at
com.webobjects.foundation.NSKeyValueCoding$DefaultImplementation.valueForKey(NSKeyValueCoding.java:1324)
at
com.webobjects.appserver.WOComponent.valueForKey(WOComponent.java:1736)
at
com.webobjects.foundation.NSKeyValueCoding$Utility.valueForKey(NSKeyValueCoding.java:447)
at
com.webobjects.foundation.NSKeyValueCodingAdditions$DefaultImplementation.valueForKeyPath(NSKeyValueCodingAdditions.java:212)
at
com.webobjects.appserver.WOComponent.valueForKeyPath(WOComponent.java:1804)
at
com.webobjects.appserver._private.WOKeyValueAssociation.valueInComponent(WOKeyValueAssociation.java:50)
at
er.extensions.components._private.ERXWORepetition.createContext(ERXWORepetition.java:416)
at
er.extensions.components._private.ERXWORepetition.appendToResponse(ERXWORepetition.java:573)
at
com.webobjects.appserver._private.WODynamicGroup.appendChildrenToResponse(WODynamicGroup.java:126)
at
er.ajax.AjaxUpdateContainer.appendToResponse(AjaxUpdateContainer.java:186)
at
com.webobjects.appserver._private.WODynamicGroup.appendChildrenToResponse(WODynamicGroup.java:126)
at
com.webobjects.appserver._private.WODynamicGroup.appendToResponse(WODynamicGroup.java:136)
at
com.webobjects.appserver.WOComponent.appendToResponse(WOComponent.java:1122)
at
er.extensions.components.ERXComponent.appendToResponse(ERXComponent.java:117)
at
com.webobjects.appserver.WOSession.appendToResponse(WOSession.java:1385)
at
er.extensions.appserver.ERXSession.appendToResponse(ERXSession.java:552)
at
com.webobjects.appserver.WOApplication.appendToResponse(WOApplication.java:1794)
at
er.extensions.appserver.ERXApplication.appendToResponse(ERXApplication.java:1924)
at
com.webobjects.appserver._private.WOComponentRequestHandler._dispatchWithPreparedPage(WOComponentRequestHandler.java:242)
at
com.webobjects.appserver._private.WOComponentRequestHandler._dispatchWithPreparedSession(WOComponentRequestHandler.java:298)
at
com.webobjects.appserver._private.WOComponentRequestHandler._dispatchWithPreparedApplication(WOComponentRequestHandler.java:332)
at
com.webobjects.appserver._private.WOComponentRequestHandler._handleRequest(WOComponentRequestHandler.java:369)
at
com.webobjects.appserver._private.WOComponentRequestHandler.handleRequest(WOComponentRequestHandler.java:445)
at
com.webobjects.appserver.WOApplication.dispatchRequest(WOApplication.java:1687)
at
er.extensions.appserver.ERXApplication.dispatchRequestImmediately(ERXApplication.java:2029)
at
er.extensions.appserver.ERXApplication.dispatchRequest(ERXApplication.java:1994)
at
com.webobjects.appserver._private.WOWorkerThread.runOnce(WOWorkerThread.java:144)
at
com.webobjects.appserver._private.WOWorkerThread.run(WOWorkerThread.java:226)
at java.lang.Thread.run(Thread.java:680)
Caused by: java.lang.NoSuchMethodException: Class
com.webobjects.foundation.NSArray does not implement method stringArray
at
com.webobjects.foundation.NSSelector.methodOnClass(NSSelector.java:274)
at com.webobjects.foundation.NSSelector.invoke(NSSelector.java:358)
at com.webobjects.foundation.NSSelector.invoke(NSSelector.java:409)
at
com.webobjects.eoaccess.EOAttribute.newValueForString(EOAttribute.java:1995)
... 52 more
Tim
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list ([email protected])
Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com
This email sent to [email protected]