• 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: Strange Validation Error
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Strange Validation Error


  • Subject: Re: Strange Validation Error
  • From: Chuck Hill <email@hidden>
  • Date: Sun, 17 Jul 2011 13:29:14 -0700

An EOF validation error or a database error?  What does the error say?  What is the stack trace?


On 2011-07-16, at 2:40 PM, Johnny Miller wrote:

> Hi,
>
> I don't think I'm doing anything unusual (or anything I have don't a lot in the past at least).  I have an entity that uses single table inheritance and I'm getting a validation error when attempting to save a new object that I really don't understand.
>
> Here is my validation method:
>
> 	public String validateTitle(String value) throws ERXValidationException {
> 		System.out.println("Value for title: " + title());
> 		System.out.println("Value for value: " + value);
> 		if(ERXStringUtilities.stringIsNullOrEmpty(value)) {
> 			throw ERXValidationFactory.defaultFactory().createException(this, TITLE_KEY, value, ERXValidationException.NullPropertyException);
> 		}
>
> 		return value;
> 	}
>
> Here is the output in the console:
>
> Value for title: test
> Value for value: null
>
> Does that ring any bells for somebody (please)?
>
> Johnny Miller
> email@hidden
> www.kahalawai.com
>
> _______________________________________________
> 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

--
Chuck Hill             Senior Consultant / VP Development

Practical WebObjects - for developers who want to increase their overall knowledge of WebObjects or who are trying to solve specific problems.
http://www.global-village.net/products/practical_webobjects







 _______________________________________________
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: Strange Validation Error
      • From: Johnny Miller <email@hidden>
References: 
 >Strange Validation Error (From: Johnny Miller <email@hidden>)

  • Prev by Date: Strange Validation Error
  • Next by Date: Re: Occasional hang loading a particular large page
  • Previous by thread: Strange Validation Error
  • Next by thread: Re: Strange Validation Error
  • Index(es):
    • Date
    • Thread