logo       

Re: complexType with simpleContent facet violation message not helpful: msg#00011

Subject: Re: complexType with simpleContent facet violation message not helpful
Hi Michael,

Do you have an SVN commit # for this fix? Does Xerces publish nightly source 
and binary distribution builds anywhere that I can pick up rather than having 
to build Xerces myself from the SVN head?

Thanks,

- Ron

----- Original Message ----
From: Michael Glavassevich <mrglavas@xxxxxxxxxx>
To: j-users@xxxxxxxxxxxxxxxxx
Sent: Friday, November 2, 2007 5:01:12 PM
Subject: Re: complexType with simpleContent facet violation message not helpful


Hi Ron,

We weren't assigning an anonymous type name to the simple type. I just
committed a fix for that. If you pickup the current code from SVN you
should get "#AnonType_Comment2Type" instead of "null" as the type name
 in
the error message.

Thanks.

Michael Glavassevich
XML Parser Development
IBM Toronto Lab
E-mail: mrglavas@xxxxxxxxxx
E-mail: mrglavas@xxxxxxxxxx

Ron Gavlin <rgavlin@xxxxxxxxx> wrote on 10/30/2007 04:58:01 PM:

> I have a maxLength facet on a complexType with simpleContent that
> extends a base complexType. Schema validation performed by the
> included program with the included schemas & xml file results in the
> stack trace listed below. Note the message refers to the relevant
> anonymous type as [type 'null'] which is not helpful. In this case,
> a more helpful error message would refer to either the complexType
> name itself or its base type name. Should I open a JIRA for this
 issue?
>
> STACK TRACE:
>
> org.xml.sax.SAXParseException: cvc-maxLength-valid: Value '
>         commentZZZZZZZZZZZZZZZZZZ
>     ' with length = '30' is not facet-valid with respect to
> maxLength '20' for type 'null'.
>     at org.apache.xerces.util.ErrorHandlerWrapper.
> createSAXParseException(Unknown Source)
>     at org.apache.xerces.util.ErrorHandlerWrapper.error(Unknown
 Source)
>     at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown
Source)
>     at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown
Source)
>     at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown
Source)

<snip/>

> ---------------------------------------------------------------------
> To unsubscribe, e-mail: j-users-unsubscribe@xxxxxxxxxxxxxxxxx
> For additional commands, e-mail: j-users-help@xxxxxxxxxxxxxxxxx


---------------------------------------------------------------------
To unsubscribe, e-mail: j-users-unsubscribe@xxxxxxxxxxxxxxxxx
For additional commands, e-mail: j-users-help@xxxxxxxxxxxxxxxxx


<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

Recently Viewed:
boot-loaders.gr...    php.pear.genera...    debugging.valgr...    kde.redhat.user...    text.xml.xsl.ge...    culture.languag...    hardware.microc...    java.servicemix...    redhat.release....    web.zope.plone....    user-groups.lin...    opendarwin.webk...    video.mjpeg.use...    sysutils.bcfg2....    encryption.gpg....    lx-office.devel...    xfree86.forum/2...    mail.mutt.devel...    acpi.devel/2003...    qnx.openqnx.dev...    network.irc.irs...    freebsd.devel.m...   
Home | blog view | USPTO Patent Archive | advertise | OSDir is an inevitable website. super tiny logo

Free Magazines

Cisco News
Receive a free quarterly e-newsletter with exclusive articles on how Cisco IT uses its own products and solutions to enable the business.
subscribe

Systems Management News, the newspaper for IT systems administration and data center managers! Each issue of Systems Management News is chock-full of news and analysis to help you understand what's happening in your field.
subscribe

The Enterprise Newsweekly eWeek is the essential technology information source for builders of e-business.
subscribe

Oracle Magazine Oracle Magazine contains technology strategy articles, sample code, tips, Oracle and partner news, how to articles for developers and DBAs, and more. Oracle (NASDAQ: ORCL) is the world's largest enterprise software company.
subscribe

Total Telecom Total Telecom is "The Economist of the communications industry".
subscribe