Hi guys,
I'm facing a strange error when trying to save a file attachment in D2W
application.
The app is using Wonder 6, subclass of ERXApplication, using PostgreSQL PlugIn
and adaptor,
includes classical frameworks as shown below:
+ of course all traditionals JavaWOFrameworks.
The page with attachment is using ERMD2WEditAttachment component from
ERModernDirectToWeb framework.
The database migration contains application model as well as ERAttachment, and
DB migrations work fine, the application starts normally.
Now when I try to upload an attachment everything goes well, and then on click
on Save button, I get an exception
like this:
09:41:11 PlatformAdmin[44444] DEBUG NSLog Page:
er.modern.look.pages.ERMODInspectPage - Configuration: EditRaceTrack -
evaluateExpression: <com.webobjects.jdbcadaptor.PostgresqlExpression: "INSERT
INTO public.track_point(is_poi, index, label, location, id, inserted_at,
updated_at, race_track_id, uuid) VALUES (?::bool, ?::int4, ?::varchar(255),
?::geography, ?::int4, ?::timestamp, ?::timestamp, ?::int4, ?::varchar(255))"
withBindings: 1:false(isPoi), 2:3(index), 3:"x6"(label),
4:SRID=4326;POINT(-0.163176515307869 51.48046149776507)(location), 5:503(id),
6:2016-06-28 09:41:11.24(insertedAt), 7:2016-06-28 09:41:11.24(updatedAt),
8:9(raceTrackId), 9:"64ca0553-bf61-4e76-a6f6-b3283e5c02e8"(uuid)>
juin 28 09:41:11 PlatformAdmin[44444] DEBUG NSLog Page:
er.modern.look.pages.ERMODInspectPage - Configuration: EditRaceTrack -
evaluateExpression: <com.webobjects.jdbcadaptor.PostgresqlExpression: "INSERT
INTO public.track_point(is_poi, index, label, location, id, inserted_at,
updated_at, race_track_id, uuid) VALUES (?::bool, ?::int4, ?::varchar(255),
?::geography, ?::int4, ?::timestamp, ?::timestamp, ?::int4, ?::varchar(255))"
withBindings: 1:false(isPoi), 2:2(index), 3:"x3"(label),
4:SRID=4326;POINT(-0.1627375610818416 51.48083648606917)(location), 5:569(id),
6:2016-06-28 09:41:11.246(insertedAt), 7:2016-06-28 09:41:11.246(updatedAt),
8:9(raceTrackId), 9:"1fdcbf55-f8f1-4b3a-bdf3-3afba96f4c0c"(uuid)>
juin 28 09:41:11 PlatformAdmin[44444] INFO er.transaction.adaptor.Exceptions
Page: er.modern.look.pages.ERMODInspectPage - Configuration: EditRaceTrack -
Database Exception occured: com.webobjects.eoaccess.EOGeneralAdaptorException:
Unable to find type information for external type 'INTEGER' in attribute 'size'
of entity 'ERFileAttachment'. Check spelling and capitalization.
juin 28 09:41:11 PlatformAdmin[44444] DEBUG NSLog Page:
er.modern.look.pages.ERMODInspectPage - Configuration: EditRaceTrack - ===
Rollback Internal Transaction
juin 28 09:41:11 PlatformAdmin[44444] ERROR
er.extensions.eof.ERXEOAccessUtilities Page:
er.modern.look.pages.ERMODInspectPage - Configuration: EditRaceTrack - Missing
EOFailedAdaptorOperationKey or EOFailedDatabaseOperationKey in
com.webobjects.eoaccess.EOGeneralAdaptorException: Unable to find type
information for external type 'INTEGER' in attribute 'size' of entity
'ERFileAttachment'. Check spelling and capitalization.:
{EOAdaptorOperationsKey = ({_adaptorOperator = "EOAdaptorInsertOperator";
_entity = "TrackPoint"; _changedValues =
... cut here because too much voluminous....
id = 569; insertedAt = 2016-06-28 09:41:11 Etc/GMT; updatedAt = 2016-06-28
09:41:11 Etc/GMT; raceTrackId = 9; uuid =
"1fdcbf55-f8f1-4b3a-bdf3-3afba96f4c0c"; }; }, {_exception = N/A;
_adaptorOperator = "EOAdaptorInsertOperator"; _entity = "ERFileAttachment";
_changedValues = {size = 3720126; configurationName = "kmzAttachment"; width =
<com.webobjects.foundation.NSKeyValueCoding$Null>; height =
<com.webobjects.foundation.NSKeyValueCoding$Null>; available = true; thumbnail
= <com.webobjects.foundation.NSKeyValueCoding$Null>; creationDate = 2016-06-28
09:41:01 Etc/GMT; ownerID = <com.webobjects.foundation.NSKeyValueCoding$Null>;
filesystemPath = "/Users/joe/tmp/data/attachments/Test.kmz"; mimeType =
"application/vnd.google-earth.kmz"; originalFileName = "Test.kmz"; webPath =
"/2.kmz"; id = 2; proxied = true; storageType = "file"; }; }, {_qualifier =
"((id = 9) and (erAttachmentID = null))"; _adaptorOperator =
"EOAdaptorUpdateOperator"; _entity = "RaceTrack"; _changedValues =
{erAttachmentID = 2; updatedAt = 2016-06-28 09:41:11 Etc/GMT; boundaryRect =
SRID=4326;MULTIPOINT(-0.1672380002080964 51.48281898235108,-0.1472338293995268
51.47527413267257); }; }); EOFailedDatabaseOperationKey = {_dbSnapshot = {};
_entity = "ERFileAttachment"; _newRow = {size = 3720126; configurationName =
"kmzAttachment"; width = <com.webobjects.foundation.NSKeyValueCoding$Null>;
height = <com.webobjects.foundation.NSKeyValueCoding$Null>; available = true;
thumbnail = <com.webobjects.foundation.NSKeyValueCoding$Null>; creationDate =
2016-06-28 09:41:01 Etc/GMT; ownerID =
<com.webobjects.foundation.NSKeyValueCoding$Null>;
... cut here because too much voluminous....
mimeType = "application/vnd.google-earth.kmz"; originalFileName = "Test.kmz";
webPath = "/2.kmz"; id = 2; proxied = true; storageType = "file"; }; }; }
juin 28 09:41:12 PlatformAdmin[44444] WARN NSLog -
<er.extensions.appserver.ERXComponentRequestHandler>: Exception occurred while
handling request:
com.webobjects.eoaccess.EOGeneralAdaptorException: Unable to find type
information for external type 'INTEGER' in attribute 'size' of entity
'ERFileAttachment'. Check spelling and capitalization.
[2016-6-28 9:41:12 GMT] <WorkerThread11>
com.webobjects.eoaccess.EOGeneralAdaptorException: Unable to find type
information for external type 'INTEGER' in attribute 'size' of entity
'ERFileAttachment'. Check spelling and capitalization.
at
com.webobjects.eoaccess.EODatabaseContext._exceptionWithDatabaseContextInformationAdded(EODatabaseContext.java:4504)
at
com.webobjects.eoaccess.EODatabaseContext.performChanges(EODatabaseContext.java:6216)
at
com.webobjects.eocontrol.EOObjectStoreCoordinator.saveChangesInEditingContext(EOObjectStoreCoordinator.java:376)
at
com.webobjects.eocontrol.EOEditingContext.saveChanges(EOEditingContext.java:3192)
at er.extensions.eof.ERXEC._saveChanges(ERXEC.java:1179)
at er.extensions.eof.ERXEC.saveChanges(ERXEC.java:1102)
at
er.directtoweb.pages.ERD2WInspectPage.tryToSaveChanges(ERD2WInspectPage.java:243)
at
er.directtoweb.pages.ERD2WInspectPage.submitAction(ERD2WInspectPage.java:293)
at
er.modern.look.pages.ERMODInspectPage.submitAction(ERMODInspectPage.java:101)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at
com.webobjects.foundation.NSKeyValueCoding$ValueAccessor$1.methodValue(NSKeyValueCoding.java:636)
...
It all seems to me like ERAttachments can't find ERPrototypes ?
Would you have someone an advice or idea about what is causing this issue
please ?
Best regards,
Josef
_______________________________________________
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]