The SIF® Zone
creating, assimilating, and promoting excellence in SIF® agent development

Unknown element or attribute

rated by 0 users
Not Answered This post has 0 verified answers | 6 Replies | 4 Followers

Top 25 Contributor
8 Posts
Points 100
bthread posted on 11-17-2009 12:21

I am getting the following error from my SIF agent:
Handling exception by creating a SIF_Error
Unknown element or attribute: [Category=1; Code=3] Unknown element or attribute. SIF_Action is not a recognized attribute of the Address

The ADK won't let the message through. I am using attached to a Mizuni ZIS and they have sent me the message that isn't being let through. They say it conforms to SIF 2.x standards. Here is the message:
<SIF_Message xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" Version="2.0r1" xmlns="http://www.sifinfo.org/infrastructure/2.x">
<SIF_Event>
<SIF_Header>
<SIF_MsgId>B8B54E67D5AC4D74A8D924E65BF8FF95</SIF_MsgId>
<SIF_Timestamp>2009-11-04T09:54:50.575206-06:00</SIF_Timestamp>
<SIF_SourceId>CatoosaHorizontal2.0r1</SIF_SourceId>
</SIF_Header>
<SIF_ObjectData>
<SIF_EventObject ObjectName="StudentPersonal" Action="Change">
<StudentPersonal RefId="5EE7B1111DFA4257A48E5761B94582F2">
<AddressList>
<Address Type="0765" SIF_Action="Delete" />
</AddressList>
<PhoneNumberList>
<PhoneNumber Type="0096">
<Number />
</PhoneNumber>
</PhoneNumberList>
<EconomicDisadvantage>Yes</EconomicDisadvantage>
</StudentPersonal>
</SIF_EventObject>
</SIF_ObjectData>
</SIF_Event>
</SIF_Message>

The ADK is configured to run in 2.0.r1. I had to turn my agent off because of this error.
Can you help?

  • | Post Points: 25

All Replies

Top 10 Contributor
72 Posts
Points 1,495

Hi,

Is the Mizuni ZIS throwing the error or is it the ADK.  What ADK version is being used?  Java or .net?

I am able to parse this message using the ADK 2.3.0 set to Version 2.0r1.  Please see JUnit test below. 

Note: SIF_Event.xml contains the SIF_Event found in your post.

Jonathan

 

public class SIFEventParseTest extends TestCase {
    private Agent agent;
   
    protected void setUp() throws Exception {
        super.setUp();
       
        ADK.initialize();
        ADK.setVersion(SIFVersion.SIF20r1);

        agent = new TestAgent();
        agent.initialize();
    }

    protected void tearDown() throws Exception {
        super.tearDown();
    }
   
   
    public void testParseSIFEvent() {
        boolean success = false;
       
        try {
            SIF_Event event = getSIF_Event();
            if (event != null)
                success=true;
        }
        catch (Exception e) {
            // TODO Auto-generated catch block
            e.printStackTrace();
        }
       
        assertTrue(success);
    }
   
   
    private SIF_Event getSIF_Event() {
        SIF_Event event = null;   
       
        try {
            File file = new File("./junit/adkcoretests/src/SIF_Event.xml");
            FileReader reader = new FileReader(file);
            char[] buffer = new char[(int) file.length()];
            reader.read(buffer);
           
            SIFPullParser parser = new SIFPullParser();
           
            event = (SIF_Event)parser.parse(new String(buffer));
        }
        catch (SIFException e) {
            // TODO Auto-generated catch block
            e.printStackTrace();
        }
        catch (FileNotFoundException e) {
            File test = new File("./");
            System.out.println(test.getAbsolutePath());
            // TODO Auto-generated catch block
            e.printStackTrace();
        }
        catch (ADKParsingException e) {
            // TODO Auto-generated catch block
            e.printStackTrace();
        }
        catch (IOException e) {
            // TODO Auto-generated catch block
            e.printStackTrace();
        }
        return event;
    }

}

  • | Post Points: 25
Top 25 Contributor
8 Posts
Points 100

I am using the .NET ADK version 2.2.0.2.  That is the newest I see available for download.

The Edustructures ADK is throwing the error.
The error is being generated and written to a log before my windows service gets the message.

  • | Post Points: 25
Top 10 Contributor
48 Posts
Points 1,210

Hi there,

Sorry for the delayed response there. We've verified that the Java ADK is working correctly with the message but we're thinking we'll need to get a new build of the .NET ADK to support that.  We will let you know as soon as that becomes available.

Cheers!

-Jared

  • | Post Points: 25
Top 25 Contributor
8 Posts
Points 100

Has the .NET ADK been fixed yet?  I have a district that is waiting to get their SIF agent back up and running.
I had to stop it because of the amount of errors this problem was generating.

  • | Post Points: 25
Top 10 Contributor
215 Posts
Points 5,055

This has been fixed in the 2.3.0 release, which is available today on our download site.

Andrew Elmhorst
Chief Architect
Edustructures 

  • | Post Points: 25
Top 25 Contributor
8 Posts
Points 100

I updated my agent today, restarted it, and it looks like it is sycning records without the error I was getting before.  Thank You.

  • | Post Points: 5
Page 1 of 1 (7 items) | RSS
Copyright ©2006-2009 sifzone.com
Sponsored by Edustructures
We Connect the Systems that Power Education
 
SIF and Schools Interoperability Framework are trademarks of the Schools Interoperability Framework Association.