Hi there,

lately, my application started to crash on “Referenced column - 
p_objectCountAttribute - not found”. It happens in a rather legacy environment, 
Wonder 5.0 (as determined by finding CFBundleShortVersionString of Info.plist 
in ERExtensions) / Java 1.6.0_65 / Mac OS X 10.6.8.

There's no such column nor my code tries to access it anywhere. I understand 
Wonder adds this attribute programmatically to get the count of items; and 
indeed, my code which triggers the exception looks like this:

===
int numberOfMasterRowsWithoutOwner() {
  EOQualifier 
mymasterrow=EOQualifier.qualifierWithQualifierFormat("importObject.dataBlock = 
%@ AND recordOwner = NULL",new NSArray(this))
  return ERXEOControlUtilities.objectCountWithQualifier(this.editingContext(), 
'DBRecord', mymasterrow)
}
===

It used to work properly for quite a long time. Lately though it began to cause 
exceptions like this:

===
Exception in thread "MainPageMasterRowsCountThread_M?sto Ústí nad Labem" 
Semantic error 226. Referenced column - p_objectCountAttribute - not found.
at com.frontbase.jdbc.FBJErrorMetaData.errorMessageAtIndex(Unknown Source)
at com.frontbase.jdbc.FBJErrorMetaData.getExceptionChain(Unknown Source)
at com.frontbase.jdbc.FBJStatement.checkMetaData(Unknown Source)
at com.frontbase.jdbc.FBJStatement.execute(Unknown Source)
at 
com.webobjects.jdbcadaptor.JDBCChannel._bindInputVariablesWithBindingsAndExecute(JDBCChannel.java:272)
at 
com.webobjects.jdbcadaptor.JDBCChannel._evaluateExpression(JDBCChannel.java:337)
at 
com.webobjects.jdbcadaptor.JDBCChannel.evaluateExpression(JDBCChannel.java:296)
at 
er.extensions.eof.ERXEOControlUtilities.__aggregateFunctionWithQualifierAndAggregateAttribute(ERXEOControlUtilities.java:919)
at 
er.extensions.eof.ERXEOControlUtilities._aggregateFunctionWithQualifierAndAggregateAttribute(ERXEOControlUtilities.java:866)
at 
er.extensions.eof.ERXEOControlUtilities.objectCountWithQualifier(ERXEOControlUtilities.java:731)
at 
er.extensions.eof.ERXEOControlUtilities$objectCountWithQualifier$9.call(Unknown 
Source)
at 
org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:48)
at 
org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:113)
at 
org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:141)
at model.DBDataBlock.numberOfMasterRowsWithoutOwner(DBDataBlock.groovy:76)
... ... ...

Semantic error 485. Near: SELECT \"t0\".\"p_objectCountAttribute\" FROM 
\"T_RECORD\" AS \"t0\",\"T_IMPORT\" AS \"T1\" WHERE (\"t0\".\"C_OWNER__ID\" IS 
NULL) AND (\"T1\".\"C_DATA_BLOCK_ID\"=1000389) AND 
(\"t0\".\"C_IMPORT_ID\"=\"T1\".\"C_UID\");.
Semantic error 485. Near: \"T_IMPORT\".
Exception condition 363. Transaction rollback.

        at 
com.webobjects.jdbcadaptor.JDBCContext._jdbcErrorWithChannel(JDBCContext.java:170)
        at 
com.webobjects.jdbcadaptor.JDBCChannel._evaluateExpression(JDBCChannel.java:344)
        at 
com.webobjects.jdbcadaptor.JDBCChannel.evaluateExpression(JDBCChannel.java:296)
        at 
er.extensions.eof.ERXEOControlUtilities.__aggregateFunctionWithQualifierAndAggregateAttribute(ERXEOControlUtilities.java:919)
        at 
er.extensions.eof.ERXEOControlUtilities._aggregateFunctionWithQualifierAndAggregateAttribute(ERXEOControlUtilities.java:866)
        at 
er.extensions.eof.ERXEOControlUtilities.objectCountWithQualifier(ERXEOControlUtilities.java:731)
        at 
er.extensions.eof.ERXEOControlUtilities$objectCountWithQualifier$9.call(Unknown 
Source)
        at 
org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:48)
        at 
org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:113)
        at 
org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:141)
        at 
model.DBDataBlock.numberOfMasterRowsWithoutOwner(DBDataBlock.groovy:76)
... ... ...
===

Any idea what might be the culprit and how to fix the problem?

Thanks a lot,
OC

 _______________________________________________
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