Do you have a ERFileAttachment table in your MySQL database? If not, did you
create a migration for ERAttachment, eg:
public class YourModelName1 extends ERAttachmentMigration {
public YourModelName1() {
super("TableWithLinkToAttachment",
"ColumnForRelationshipToErAttachment", true);
}
public NSArray<ERXModelVersion> modelDependencies() {
return null;
}
@Override
public void downgrade(EOEditingContext editingContext,
ERXMigrationDatabase database) throws Throwable {
// DO NOTHING
}
}
> Ok -
>
> Using the WonderMYSQL plugin allowed a complete migration to work!
>
> However, upon testing uploading an attachment I still get this error:
>
> Sep 16 20:25:35 BlessingsApp[6789] DEBUG NSLog Page:
> er.modern.look.pages.ERMODInspectPage - Configuration: EditAuthor - Using
> JDBCPlugIn 'com.webobjects.jdbcadaptor.JDBCPlugIn' for JDBCAdaptor@646971142
> Sep 16 20:25:35 BlessingsApp[6789] ERROR
> er.extensions.eof.ERXEOControlUtilities Page:
> er.modern.look.pages.ERMODInspectPage - Configuration: EditAuthor - Caught
> exception when generating primary key for entity: ERFileAttachment
> IllegalArgumentException: Attempt to insert null object into an
> com.webobjects.foundation.NSMutableDictionary.
> at
> com.webobjects.foundation.NSMutableDictionary.setObjectForKey(NSMutableDictionary.java:68)
> ... skipped 6 stack elements
> at
> er.extensions.eof.ERXEOControlUtilities.newPrimaryKeyDictionaryForEntityNamed(ERXEOControlUtilities.java:1050)
> at
> er.extensions.eof.ERXEOControlUtilities.newPrimaryKeyDictionaryForObject(ERXEOControlUtilities.java:1018)
>
> Thoughts?
> Thanks
> James
> _______________________________________________
> Do not post admin requests to the list. They will be ignored.
> Webobjects-dev mailing list ([email protected])
> Help/Unsubscribe/Update your Subscription:
> http://lists.apple.com/mailman/options/webobjects-dev/probert%40macti.ca
>
> This email sent to [email protected]
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list ([email protected])
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com
This email sent to [email protected]