• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: EOQualifier timestamp comparison help [i.e., exception]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: EOQualifier timestamp comparison help [i.e., exception]


  • Subject: Re: EOQualifier timestamp comparison help [i.e., exception]
  • From: LD <email@hidden>
  • Date: Fri, 19 Aug 2005 11:26:37 +1000

Hi again,

I'm completely stumped... I've doubled checked the model, pointed the adaptor to a fresh database, deleted build dirs, restarted Xcode, re- ran... but I get the same problem every time. What am I missing?

On 19/08/2005, at 9:47 AM, LD wrote:


On 19/08/2005, at 8:41 AM, Chuck Hill wrote:



Based on the stack trace:


java.lang.NullPointerException
at com.webobjects.eoaccess.EOAttribute.adaptorValueByConvertingAttribut eValue(EOAttribute.java:2020)
at com.webobjects.jdbcadaptor.JDBCColumn.takeInputValue (JDBCColumn.java:562)
at com.webobjects.jdbcadaptor.JDBCChannel._bindInputVariablesWithBindin gsAndExecute(JDBCChannel.java:226)
at com.webobjects.jdbcadaptor.JDBCChannel._evaluateExpression (JDBCChannel.java:303)




I'd look in the model for the problem. Missing a column name, wrong external data type, wrong value type? Something wrong at the entity level?



As far as I can tell, the model looks good...
{columnName = "TIME_STAMP"; name = timestamp; prototypeName = dateTime; }



The prototype dateTime is as follows:
{
    allowsNull = Y;
    columnName = "";
    externalType = timestamp;
    name = dateTime;
    valueClassName = NSCalendarDate;
    valueType = T;
},



[2005-08-19 11:19:19 EST] <main> Creating LifebeatThread now with: BFMOnlineStore 55555 localhost/127.0.0.1 1085 30000
Welcome to BFMOnlineStore!
sharedEditingContext is set...
Initializing PostgresqlPlugin
Purchases Qualifier:
((timestamp > (com.webobjects.foundation.NSTimestamp)'2005-07-06 00:00:20 Etc/GMT') and (accountsInvoiceNumber = null) and (deliveryConsignmentNumber = null))
Refetch error for entity: Purchase
java.lang.NullPointerException
at com.webobjects.eoaccess.EOAttribute.adaptorValueByConvertingAttributeVal ue(EOAttribute.java:2020)
at com.webobjects.jdbcadaptor.JDBCColumn.takeInputValue (JDBCColumn.java:562)
at com.webobjects.jdbcadaptor.JDBCChannel._bindInputVariablesWithBindingsAn dExecute(JDBCChannel.java:226)
at com.webobjects.jdbcadaptor.JDBCChannel._evaluateExpression (JDBCChannel.java:303)
at com.webobjects.jdbcadaptor.JDBCChannel.evaluateExpression (JDBCChannel.java:261)
at com.webobjects.jdbcadaptor.JDBCChannel.selectAttributes (JDBCChannel.java:185)
at com.webobjects.eoaccess.EODatabaseChannel._selectWithFetchSpecificationE ditingContext(EODatabaseChannel.java:879)
at com.webobjects.eoaccess.EODatabaseChannel.selectObjectsWithFetchSpecific ation(EODatabaseChannel.java:216)
at com.webobjects.eoaccess.EODatabaseContext._objectsWithFetchSpecification EditingContext(EODatabaseContext.java:3206)
at com.webobjects.eoaccess.EODatabaseContext.objectsWithFetchSpecification( EODatabaseContext.java:3347)
at com.webobjects.eocontrol.EOObjectStoreCoordinator.objectsWithFetchSpecif ication(EOObjectStoreCoordinator.java:539)
at com.webobjects.eocontrol.EOEditingContext.objectsWithFetchSpecification( EOEditingContext.java:4075)
at com.webobjects.eocontrol.EOSharedEditingContext.objectsWithFetchSpecific ation(EOSharedEditingContext.java:349)
at Application.refetchSharedRecordsForNamedEntity (Application.java:98)
at Application.<init>(Application.java:60)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance (NativeConstructorAccessorImpl.java:39)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance (DelegatingConstructorAccessorImpl.java:27)
at java.lang.reflect.Constructor.newInstance(Constructor.java:274)
at java.lang.Class.newInstance0(Class.java:308)
at java.lang.Class.newInstance(Class.java:261)
at com.webobjects.appserver.WOApplication.main (WOApplication.java:323)
at Application.main(Application.java:24)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke (NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke (DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at com.webobjects._bootstrap.WOBootstrap.main(WOBootstrap.java:71)
[2005-08-19 11:19:19 EST] <main> The URL for webserver connect is:
http://localhost/cgi-bin/WebObjects/BFMOnlineStore.woa/-55555
The URL for direct connect is:
http://localhost:55555/cgi-bin/WebObjects/BFMOnlineStore.woa
[2005-08-19 11:19:20 EST] <main> null
[2005-08-19 11:19:19 EST] <main> Waiting for requests...




_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Follow-Ups:
    • Re: EOQualifier timestamp comparison help [i.e., exception]
      • From: LD <email@hidden>
References: 
 >EOQualifier timestamp comparison help (From: LD <email@hidden>)
 >Re: EOQualifier timestamp comparison help [i.e., exception] (From: LD <email@hidden>)
 >Re: EOQualifier timestamp comparison help [i.e., exception] (From: Chuck Hill <email@hidden>)
 >Re: EOQualifier timestamp comparison help [i.e., exception] (From: LD <email@hidden>)

  • Prev by Date: Re: Updating EOObjects
  • Next by Date: Re: Updating EOObjects
  • Previous by thread: Re: EOQualifier timestamp comparison help [i.e., exception]
  • Next by thread: Re: EOQualifier timestamp comparison help [i.e., exception]
  • Index(es):
    • Date
    • Thread