• 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
IllegalArgumentException in D2W queryAll page?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

IllegalArgumentException in D2W queryAll page?


  • Subject: IllegalArgumentException in D2W queryAll page?
  • From: Ramsey Gurley <email@hidden>
  • Date: Mon, 08 Sep 2008 16:14:08 -0400

Hi all,

I have a Wonder D2W app with an entity that has a attribute that stores a date.  When doing a search on the queryAll page for that entity using said date attribute, I get the following error


java.lang.IllegalArgumentException: Illegal pattern character 'Y'
at java.text.SimpleDateFormat.compile(SimpleDateFormat.java:678)
at java.text.SimpleDateFormat.initialize(SimpleDateFormat.java:497)
at java.text.SimpleDateFormat.<init>(SimpleDateFormat.java:446)
at com.webobjects.foundation.NSTimestampFormatter$__NSSimpleDateFormat.<init>(NSTimestampFormatter.java:839)
at com.webobjects.foundation.NSTimestampFormatter._getSimpleDateFormat(NSTimestampFormatter.java:569)
at com.webobjects.foundation.NSTimestampFormatter._parseDateFormat(NSTimestampFormatter.java:545)
at com.webobjects.foundation.NSTimestampFormatter.parseObject(NSTimestampFormatter.java:709)
at java.text.Format.parseObject(Format.java:219)
at com.webobjects.woextensions.WOAnyField.setTextFieldValue(WOAnyField.java:186)
...

Obviously, it's choking on a WOTextField formatter.  It doesn't seem to care what my formatter value happens to be in the rules.  I'm wondering if there is an easy fix I'm overlooking before I try to handle the problem myself in a WOAnyField subclass.

Thanks everyone,

Ramsey

Attachment: smime.p7s
Description: S/MIME cryptographic signature

 _______________________________________________
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: IllegalArgumentException in D2W queryAll page?
      • From: Guido Neitzer <email@hidden>
  • Prev by Date: Re: war deployment
  • Next by Date: Re: IllegalArgumentException in D2W queryAll page?
  • Previous by thread: Re: Re-factoring Main component
  • Next by thread: Re: IllegalArgumentException in D2W queryAll page?
  • Index(es):
    • Date
    • Thread