This issue is solved, but I have another one, that shows up either in the old project or in a new one that I created exclusively to test ERAttachment, a very simple one, with a very simple model. After selecting the file to upload, the application enters an infinite loop with the following error:
... skipped 6 stack elements
at er.extensions.eof.ERXEOControlUtilities.newPrimaryKeyDictionaryForEntityNamed(ERXEOControlUtilities.java:1238)
at er.extensions.eof.ERXEOControlUtilities.newPrimaryKeyDictionaryForObject(ERXEOControlUtilities.java:1206)
at er.extensions.eof.ERXGenericRecord.primaryKeyDictionary(ERXGenericRecord.java:871)
at er.extensions.eof.ERXGenericRecord.rawPrimaryKeyInTransaction(ERXGenericRecord.java:695)
at er.extensions.eof.ERXGenericRecord.primaryKeyInTransaction(ERXGenericRecord.java:710)
at er.attachment.processors.ERAttachmentProcessor._parsePathTemplate(ERAttachmentProcessor.java:168)
at er.attachment.processors.ERDatabaseAttachmentProcessor._process(ERDatabaseAttachmentProcessor.java:57)
at er.attachment.processors.ERDatabaseAttachmentProcessor._process(ERDatabaseAttachmentProcessor.java:1)
at er.attachment.processors.ERAttachmentProcessor.process(ERAttachmentProcessor.java:346)
at er.attachment.processors.ERAttachmentProcessor.process(ERAttachmentProcessor.java:284)
at er.attachment.components.ERAttachmentUpload._uploadSucceeded(ERAttachmentUpload.java:184)
at er.attachment.components.ERAttachmentUpload.uploadSucceeded(ERAttachmentUpload.java:197)
... skipped 13 stack elements
at er.ajax.AjaxFileUpload.uploadSucceeded(AjaxFileUpload.java:381)
at er.ajax.AjaxFlexibleFileUpload.uploadSucceeded(AjaxFlexibleFileUpload.java:566)
at er.ajax.AjaxFlexibleFileUpload.refreshState(AjaxFlexibleFileUpload.java:321)
at er.ajax.AjaxFlexibleFileUpload.uploadState(AjaxFlexibleFileUpload.java:299)
... skipped 4 stack elements
at org.jabsorb.JSONRPCBridge.call(JSONRPCBridge.java:650)
at er.ajax.AjaxProxy.handleRequest(AjaxProxy.java:195)
... skipped 105 stack elements
at er.ajax.AjaxRequestHandler.handleRequest(AjaxRequestHandler.java:17)
... skipped 3 stack elements
at testeDW.app.Application.dispatchRequest(Application.java:41)
... skipped 3 stack elements
I googled for the problem and found that about a year ago someone had the same problem and nobody presented a solution: