Hello:
Please, help!!!!

I’m trying to override this EXCEPTION:

My reference:
[        << class ERXDatabaseContextDelegate  [code]>>
         /*
         public boolean databaseContextFailedToFetchObject(EODatabaseContext 
context, Object object, EOGlobalID gid)
         */
         
        This is Kelly Hawks' fix for the missing to one relationship. 
        Delegate on EODatabaseContext that gets called when a to-one fault 
cannot find its data in
        the database. The object that is returned is a cleared fault.
        We raise here to restore the functionality that existed prior to 
WebObjects 4.5.
        Whenever a fault fails for a globalID (i.e. the object is NOT found in 
the database), we raise
        an {@link com.webobjects.eoaccess.EOObjectNotAvailableException 
EOObjectNotAvailableException}. <br>
        If you have entities you don't really care about, you can set the 
system property
        
<code>er.extensions.ERXDatabaseContextDelegate.tolerantEntityPattern</code> to 
a regular expression
        that will be tested against the GID entity name. If it matches, then 
only an error will be logged
        but no exception will be thrown.
 
]


IllegalStateException: The object with globalID 
_EOIntegralKeyGlobalID[ERAttachment (java.lang.Integer)3716] could not be found 
in the database. This could be result of a referential integrity problem with 
the database. An empty fault could not be created because the object's class 
could not be determined (e.g. the GID is temporary or it is for an abstract 
entity).

.
.
.

  at 
com.webobjects.eoaccess.EODatabaseContext._fetchSingleObject(EODatabaseContext.java:3426)
     ... skipped 2 stack elements
  at 
com.webobjects.eoaccess.EOAccessDeferredFaultHandler.createFaultForDeferredFault(EOAccessDeferredFaultHandler.java:49)




Is this the correct entry for above property in the Properties resource file?:

er.extensions.ERXDatabaseContextDelegate.tolerantEntityPattern=("ERAttachment", 
"ERDatabaseAttachment”)

It is NOT working ..

Thanks

Kwasi


 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list      (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to