ASG
IBM
Zystems
Cressida
Icon
Netflexity
 
  MQSeries.net
Search  Search       Tech Exchange      Education      Certifications      Library      Info Center      SupportPacs      LinkedIn  Search  Search                                                                   FAQ  FAQ   Usergroups  Usergroups
 
Register  ::  Log in Log in to check your private messages
 
RSS Feed - WebSphere MQ Support RSS Feed - Message Broker Support

MQSeries.net Forum Index » WebSphere Message Broker (ACE) Support » MB6.1: Problem with XMLNSC schema validation

Post new topic  Reply to topic
 MB6.1: Problem with XMLNSC schema validation « View previous topic :: View next topic » 
Author Message
neckert
PostPosted: Mon Apr 14, 2008 4:30 am    Post subject: MB6.1: Problem with XMLNSC schema validation Reply with quote

Newbie

Joined: 14 Apr 2008
Posts: 4

I created a simple message flow with an MQInput node, a Compute node and an MQOutput node. I enabled validation by setting the validation property of the MQOutput node to "contentAndValue" and created a simple message set from an XML schema.

But when I run the message flow, I always receive the following error:
Code:

(
  (0x01000000):RecoverableException = (
    (0x03000000):File            = 'F:\build\S000_P\src\DataFlowEngine\ImbDataFlowNode.cpp'
    (0x03000000):Line            = 739
    (0x03000000):Function        = 'ImbDataFlowNode::createExceptionList'
    (0x03000000):Type            = 'ComIbmMQOutputNode'
    (0x03000000):Name            = 'EigeneAnwendungDatenfluss#FCMComposite_1_2'
    (0x03000000):Label           = 'EigeneAnwendungDatenfluss.Output'
    (0x03000000):Catalog         = 'BIPv610'
    (0x03000000):Severity        = 3
    (0x03000000):Number          = 2230
    (0x03000000):Text            = 'Node throwing exception'
    (0x01000000):ParserException = (
      (0x03000000):File            = 'F:\build\S000_P\src\MTI\MTIforBroker\GenXmlParser4\ImbXMLNSCParser.cpp'
      (0x03000000):Line            = 673
      (0x03000000):Function        = 'ImbXMLNSCParser::refreshBitStreamFromElementsCommon'
      (0x03000000):Type            = 'ComIbmMQInputNode'
      (0x03000000):Name            = 'EigeneAnwendungDatenfluss#FCMComposite_1_1'
      (0x03000000):Label           = 'EigeneAnwendungDatenfluss.Input'
      (0x03000000):Catalog         = 'BIPv610'
      (0x03000000):Severity        = 3
      (0x03000000):Number          = 5010
      (0x03000000):Text            = 'XML Writing Errors have occurred'
      (0x01000000):ParserException = (
        (0x03000000):File     = 'F:\build\S000_P\src\MTI\MTIforBroker\GenXmlParser4\ImbXMLNSCParser.cpp'
        (0x03000000):Line     = 721
        (0x03000000):Function = 'ImbXMLNSCParser::getCachedIRForMessageSet'
        (0x03000000):Type     = 'ComIbmMQInputNode'
        (0x03000000):Name     = 'EigeneAnwendungDatenfluss#FCMComposite_1_1'
        (0x03000000):Label    = 'EigeneAnwendungDatenfluss.Input'
        (0x03000000):Catalog  = 'BIPv610'
        (0x03000000):Severity = 3
        (0x03000000):Number   = 5028
        (0x03000000):Text     = 'Validation is enabled but pre-processed schemas cannot be located for the specified message set '
        (0x01000000):Insert   = (
          (0x03000000):Type = 5
          (0x03000000):Text = 'MessageSet2'
        )
      )
    )
  )
)

I double checked the name of the message set and deployed it multiple times, but the error still occurs. No idea, what I did wrong!

Not sure whether this is important, but the broker runs on Windows XP.
Back to top
View user's profile Send private message
jefflowrey
PostPosted: Mon Apr 14, 2008 4:35 am    Post subject: Reply with quote

Grand Poobah

Joined: 16 Oct 2002
Posts: 19981

How does the schema show up in the BAR file? as an XSD or a dictionary?

Are you sure that your output message matches the schema? Particuarly important is the root tag and it's namespace!
_________________
I am *not* the model of the modern major general.
Back to top
View user's profile Send private message
neckert
PostPosted: Mon Apr 14, 2008 4:53 am    Post subject: Reply with quote

Newbie

Joined: 14 Apr 2008
Posts: 4

The schema shows up as a dictionary.

The XML schema and the payload of the MQ message look as following:

Code:
<?xml version="1.0" encoding="UTF-8"?>
<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema">
  <xsd:complexType name="comIbmDniType">
    <xsd:sequence>
      <xsd:element name="OU" type="xsd:string"/>
      <xsd:element minOccurs="0" name="Version" type="xsd:string"/>
    </xsd:sequence>
  </xsd:complexType>
  <xsd:element name="ComIbmDni" type="comIbmDniType">
  </xsd:element>
</xsd:schema>


Code:
<ComIbmDni>
 <Version>1.0</Version>
 <OU>OU1</OU>
</ComIbmDni>


Last edited by neckert on Mon Apr 14, 2008 4:59 am; edited 1 time in total
Back to top
View user's profile Send private message
kimbert
PostPosted: Mon Apr 14, 2008 4:53 am    Post subject: Reply with quote

Jedi Council

Joined: 29 Jul 2003
Posts: 5542
Location: Southampton

Your message set does not include XMLNSC in its list of target domains. I'll bet that the BAR file contains MessageSet2.dictionary, but not MessageSet2.xsdzip.
Back to top
View user's profile Send private message
neckert
PostPosted: Mon Apr 14, 2008 5:01 am    Post subject: Reply with quote

Newbie

Joined: 14 Apr 2008
Posts: 4

kimbert wrote:
Your message set does not include XMLNSC in its list of target domains. I'll bet that the BAR file contains MessageSet2.dictionary, but not MessageSet2.xsdzip.


You are right. The BAR file does not contain MessageSet2.xsdzip. But the Message Domain property of the used message set is set to 'XMLNSC'.
Back to top
View user's profile Send private message
neckert
PostPosted: Mon Apr 14, 2008 5:04 am    Post subject: Reply with quote

Newbie

Joined: 14 Apr 2008
Posts: 4

By the way, I use Message Broker Toolkit V6.0.2 not V6.1; does this somehow cause the problem with the missing .xsdzip ressource?
Back to top
View user's profile Send private message
jefflowrey
PostPosted: Mon Apr 14, 2008 5:08 am    Post subject: Reply with quote

Grand Poobah

Joined: 16 Oct 2002
Posts: 19981

neckert wrote:
By the way, I use Message Broker Toolkit V6.0.2 not V6.1; does this somehow cause the problem with the missing .xsdzip ressource?


YES.

You can't add the schema as an xsdzip with the 6.0 toolkit.

Use the 6.1 toolkit for all 6.1 stuff. Use 6.0.2.x toolkit for everything else.

You really need both installed.
_________________
I am *not* the model of the modern major general.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » WebSphere Message Broker (ACE) Support » MB6.1: Problem with XMLNSC schema validation
Jump to:  



You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
Protected by Anti-Spam ACP
 
 


Theme by Dustin Baccetti
Powered by phpBB © 2001, 2002 phpBB Group

Copyright © MQSeries.net. All rights reserved.