Hi,
I am getting the FNF exception like below when I tried to load XML
file. Prior to loading this XML file, I am loading its XSDs using
XSDHelper.INSTANCE.define.

org.eclipse.emf.ecore.xmi.FeatureNotFoundException: Feature
'connectorConfiguration' not found. (http:///temp.xml, 3, 46)

surprisingly, there is no issue if I load XML from static method of
class where I load XSDs. ex.

class X {

X() {
loadXSD1()
loadXSD2()
loadXML()
}

static test() {
X x =new X()
}

if I do from different class like below, then I am getting FNF error.

class Y {


static test() {
X x =new X()
}

}

Here I am attaching XSDs and XML for your reference. Any help highly
appreciated.
Regards
Raman

Attachment: configtypes.xsd
Description: Binary data

<?xml version="1.0" encoding="UTF-8"?>
<p:connectorConfiguration xmlns:p="http://www.ca.com/connex"; xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"; xsi:schemaLocation="http://www.ca.com/connex conn_config.xsd "
xmlns:hello="http://www.ca.com/connex/hello";>
  <connectorInstance xsi:type="p:ConnectorInstance">
    <uuid>7281781</uuid>
	<class>com.abc.hello.caconnector.HelloConnector</class>
    <configuration xsi:type="hello:ConfigData">
      <ipaddress>192.168.12.34</ipaddress>
		<port>319</port>
    </configuration>
  </connectorInstance>
  <connectorInstance xsi:type="p:ConnectorInstance">
    <uuid>7281782</uuid>
	<class>com.abc.hello.caconnector.HelloConnector</class>
    <configuration xsi:type="hello:ConfigData">
      <ipaddress>192.168.12.35</ipaddress>
		<port>320</port>
    </configuration>
  </connectorInstance>
</p:connectorConfiguration>

Attachment: conn_config.xsd
Description: Binary data

Reply via email to