1 Reply Latest reply on Dec 5, 2006 9:28 PM by 666705

    error in dataservice for attributes

    666705
      hi,
      We created a dataservvice for our xml DB. We have an element tag (a reference) with an attribute. We are using a namespace for the element. On executing it we get the following error:

      weblogic.xml.query.exceptions.XQueryDynamicException: {err}XQ0027: Validation failed: error: cvc-complex-type.3.2.1: Attribute not allowed (no wildcards allowed): discountprice in element price@http://temp.openuri.org/XMLFiles/inventory.xsd

           at weblogic.xml.query.schema.xmlbeans.XMLValidatorForXMLBeans.giveToken(XMLValidatorForXMLBeans.java:169)

           at weblogic.xml.query.schema.ValidatingIterator.fetchNext(ValidatingIterator.java:148)

           at weblogic.xml.query.iterators.GenericIterator.next(GenericIterator.java:113)

           at com.bea.ld.wrappers.xml.XmlFileIterator.fetchNext(XmlFileIterator.java:100)

           at weblogic.xml.query.iterators.GenericIterator.next(GenericIterator.java:113)

           at weblogic.xml.query.xdbc.iterators.ItemIterator.fetchNext(ItemIterator.java:86)

           at weblogic.xml.query.iterators.GenericIterator.hasNext(GenericIterator.java:134)

           at weblogic.xml.query.runtime.sequences.Subsequence.fetchNext(Subsequence.java:101)

           at weblogic.xml.query.iterators.GenericIterator.next(GenericIterator.java:113)

           at weblogic.xml.query.runtime.querycide.QueryAssassin.fetchNext(QueryAssassin.java:54)

           at weblogic.xml.query.iterators.GenericIterator.peekNext(GenericIterator.java:151)

           at weblogic.xml.query.runtime.qname.InsertNamespaces.fetchNext(InsertNamespaces.java:161)

           at weblogic.xml.query.iterators.GenericIterator.next(GenericIterator.java:113)

           at weblogic.xml.query.runtime.core.QueryIterator.fetchNext(QueryIterator.java:127)

           at weblogic.xml.query.iterators.GenericIterator.next(GenericIterator.java:113)

           at weblogic.xml.query.xdbc.iterators.ItemIterator.fetchNext(ItemIterator.java:86)

           at weblogic.xml.query.iterators.GenericIterator.next(GenericIterator.java:113)

           at weblogic.xml.query.xdbc.util.Serializer.processElement(Serializer.java:274)

           at weblogic.xml.query.xdbc.util.Serializer.processElement(Serializer.java:281)

           at weblogic.xml.query.xdbc.util.Serializer.processElement(Serializer.java:281)

           at weblogic.xml.query.xdbc.util.Serializer.processElement(Serializer.java:281)

      Caused by: weblogic.xml.query.schema.xmlbeans.XMLValidatorForXMLBeans$ValidationException: null

           at weblogic.xml.query.schema.xmlbeans.XMLValidatorForXMLBeans$ExceptionCollection.add(XMLValidatorForXMLBeans.java:340)

           at org.apache.xmlbeans.impl.validator.Validator.emitError(Validator.java:175)

           at org.apache.xmlbeans.impl.validator.Validator.emitFieldError(Validator.java:207)

           at org.apache.xmlbeans.impl.validator.Validator.emitFieldError(Validator.java:193)

           at org.apache.xmlbeans.impl.validator.Validator.attrEvent(Validator.java:675)

           at org.apache.xmlbeans.impl.validator.Validator.nextEvent(Validator.java:247)

           at weblogic.xml.query.schema.xmlbeans.XMLValidatorForXMLBeans.processBeginAttributeToken(XMLValidatorForXMLBeans.java:1160)

           at weblogic.xml.query.schema.xmlbeans.XMLValidatorForXMLBeans.processToken(XMLValidatorForXMLBeans.java:1318)

           at weblogic.xml.query.schema.xmlbeans.XMLValidatorForXMLBeans.processTokensOnHold(XMLValidatorForXMLBeans.java:1349)

           at weblogic.xml.query.schema.xmlbeans.XMLValidatorForXMLBeans.giveToken(XMLValidatorForXMLBeans.java:115)

           at weblogic.xml.query.schema.ValidatingIterator.fetchNext(ValidatingIterator.java:148)

           at weblogic.xml.query.iterators.GenericIterator.next(GenericIterator.java:113)

           at com.bea.ld.wrappers.xml.XmlFileIterator.fetchNext(XmlFileIterator.java:100)

           at weblogic.xml.query.iterators.GenericIterator.next(GenericIterator.java:113)

           at weblogic.xml.query.xdbc.iterators.ItemIterator.fetchNext(ItemIterator.java:86)

           at weblogic.xml.query.iterators.GenericIterator.hasNext(GenericIterator.java:134)

           at weblogic.xml.query.runtime.sequences.Subsequence.fetchNext(Subsequence.java:101)

           at weblogic.xml.query.iterators.GenericIterator.next(GenericIterator.java:113)

           at weblogic.xml.query.runtime.querycide.QueryAssassin.fetchNext(QueryAssassin.java:54)

           at weblogic.xml.query.iterators.GenericIterator.peekNext(GenericIterator.java:151)

           at weblogic.xml.query.runtime.qname.InsertNamespaces.fetchNext(InsertNamespaces.java:161)

           at weblogic.xml.query.iterators.GenericIterator.next(GenericIterator.java:113)

           at weblogic.xml.query.runtime.core.QueryIterator.fetchNext(QueryIterator.java:127)

           at weblogic.xml.query.iterators.GenericIterator.next(GenericIterator.java:113)

           at weblogic.xml.query.xdbc.iterators.ItemIterator.fetchNext(ItemIterator.java:86)

           at weblogic.xml.query.iterators.GenericIterator.next(GenericIterator.java:113)

           at weblogic.xml.query.xdbc.util.Serializer.processElement(Serializer.java:274)

           at weblogic.xml.query.xdbc.util.Serializer.processElement(Serializer.java:281)

           at weblogic.xml.query.xdbc.util.Serializer.processElement(Serializer.java:281)

           at weblogic.xml.query.xdbc.util.Serializer.processElement(Serializer.java:281)

           at weblogic.xml.query.xdbc.util.Serializer.process(Serializer.java:206)

           at weblogic.xml.query.xdbc.util.Serializer.serializeItems(Serializer.java:152)




      Please let us know if we are doing something wrong.
      Thanks,
      Bharath