How to recover from XML error?

View: New views
5 Messages — Rating Filter:   Alert me  

How to recover from XML error?

by Whit Blauvelt :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi,

Went to add a new rule and compile, got this error:

Compiling rule sets for firewall: jet
fwb_ipt -v -f /home/whit/jet -d /home/whit -o /home/whit/jet.fw -i id16569X19849
*** Loading data ...Error: Error parsing XML from file '/home/whit/jet' (use_dtd=1)
XML Parser reported:
element Library: validity error : Element Library content does not follow the DTD, expecting (AnyNetwork | AnyIPService | AnyInterval | ObjectGroup | Host | Firewall | Network | NetworkIPv6 | IPv4 | IPv6 | DNSName | AddressTable | physAddress | AddressRange | ObjectRef | ServiceGroup | IPService | ICMPService | ICMP6Service | TCPService | UDPService | CustomService | ServiceRef | IntervalGroup | Interval | IntervalRef | Interface | Policy | NAT | PolicyRule | NATRule | Library | TagService)*, got (ObjectRef ObjectRef ServiceRef ObjectRef ServiceRef ObjectRef ServiceRef ObjectRef ServiceRef ObjectRef ServiceRef ObjectRef ObjectRef ObjectRef ObjectRef ObjectRef ObjectRef ObjectRef ObjectRef ObjectRef ObjectRef ObjectRef ObjectRef ObjectRef ObjectRef ObjectRef ObjectRef ObjectRef ObjectRef ObjectRef ObjectRef ObjectRef ObjectRef ObjectRef ObjectRef ObjectRef ObjectRef ObjectRef ObjectRef ObjectRef ObjectRef ObjectRef ObjectRef ObjectRef ObjectRef ObjectRef ObjectRef ServiceRef ObjectRef ServiceRef ServiceRef ServiceRef Interval UserService ObjectRef ObjectRef ObjectRef ObjectRef ObjectRef ObjectRef ObjectRef )

^

Deleted the new rule, but the error persists. Closed the file to try to
reopen it, and now the same error occurs and it refused to open.

Does this happen much?

Whit


------------------------------------------------------------------------------
Enter the BlackBerry Developer Challenge  
This is your chance to win up to $100,000 in prizes! For a limited time,
vendors submitting new applications to BlackBerry App World(TM) will have
the opportunity to enter the BlackBerry Developer Challenge. See full prize  
details at: http://p.sf.net/sfu/Challenge
_______________________________________________
Fwbuilder-discussion mailing list
Fwbuilder-discussion@...
https://lists.sourceforge.net/lists/listinfo/fwbuilder-discussion

Re: How to recover from XML error?

by Whit Blauvelt :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Fixed it. The top of the file had a long section started by:

<Library id="sysid99" name="Deleted Objects" comment="" ro="False">

Deleting everything within it - between that and

</Library>

took care of it.

- W

On Fri, Jul 17, 2009 at 09:52:24PM -0400, Whit Blauvelt wrote:

> Hi,
>
> Went to add a new rule and compile, got this error:
>
> Compiling rule sets for firewall: jet
> fwb_ipt -v -f /home/whit/jet -d /home/whit -o /home/whit/jet.fw -i id16569X19849
> *** Loading data ...Error: Error parsing XML from file '/home/whit/jet' (use_dtd=1)
> XML Parser reported:
> element Library: validity error : Element Library content does not follow the DTD, expecting (AnyNetwork | AnyIPService | AnyInterval | ObjectGroup | Host | Firewall | Network | NetworkIPv6 | IPv4 | IPv6 | DNSName | AddressTable | physAddress | AddressRange | ObjectRef | ServiceGroup | IPService | ICMPService | ICMP6Service | TCPService | UDPService | CustomService | ServiceRef | IntervalGroup | Interval | IntervalRef | Interface | Policy | NAT | PolicyRule | NATRule | Library | TagService)*, got (ObjectRef ObjectRef ServiceRef ObjectRef ServiceRef ObjectRef ServiceRef ObjectRef ServiceRef ObjectRef ServiceRef ObjectRef ObjectRef ObjectRef ObjectRef ObjectRef ObjectRef ObjectRef ObjectRef ObjectRef ObjectRef ObjectRef ObjectRef ObjectRef ObjectRef ObjectRef ObjectRef ObjectRef ObjectRef ObjectRef ObjectRef ObjectRef ObjectRef ObjectRef ObjectRef ObjectRef ObjectRef ObjectRef ObjectRef ObjectRef ObjectRef ObjectRef ObjectRef ObjectRef ObjectRef ObjectRef ObjectRef ServiceRef ObjectRef ServiceRef ServiceRef ServiceRef Interval UserService ObjectRef ObjectRef ObjectRef ObjectRef ObjectRef ObjectRef ObjectRef )
>
> ^
>
> Deleted the new rule, but the error persists. Closed the file to try to
> reopen it, and now the same error occurs and it refused to open.
>
> Does this happen much?
>
> Whit
>

------------------------------------------------------------------------------
Enter the BlackBerry Developer Challenge  
This is your chance to win up to $100,000 in prizes! For a limited time,
vendors submitting new applications to BlackBerry App World(TM) will have
the opportunity to enter the BlackBerry Developer Challenge. See full prize  
details at: http://p.sf.net/sfu/Challenge
_______________________________________________
Fwbuilder-discussion mailing list
Fwbuilder-discussion@...
https://lists.sourceforge.net/lists/listinfo/fwbuilder-discussion

Re: How to recover from XML error?

by Vadim Kurland ✎ :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


thanks for reporting this, I'll fix

--vk

On Jul 17, 2009, at 6:52 PM, Whit Blauvelt wrote:

> Hi,
>
> Went to add a new rule and compile, got this error:
>
> Compiling rule sets for firewall: jet
> fwb_ipt -v -f /home/whit/jet -d /home/whit -o /home/whit/jet.fw -i  
> id16569X19849
> *** Loading data ...Error: Error parsing XML from file '/home/whit/
> jet' (use_dtd=1)
> XML Parser reported:
> element Library: validity error : Element Library content does not  
> follow the DTD, expecting (AnyNetwork | AnyIPService | AnyInterval |  
> ObjectGroup | Host | Firewall | Network | NetworkIPv6 | IPv4 | IPv6  
> | DNSName | AddressTable | physAddress | AddressRange | ObjectRef |  
> ServiceGroup | IPService | ICMPService | ICMP6Service | TCPService |  
> UDPService | CustomService | ServiceRef | IntervalGroup | Interval |  
> IntervalRef | Interface | Policy | NAT | PolicyRule | NATRule |  
> Library | TagService)*, got (ObjectRef ObjectRef ServiceRef  
> ObjectRef ServiceRef ObjectRef ServiceRef ObjectRef ServiceRef  
> ObjectRef ServiceRef ObjectRef ObjectRef ObjectRef ObjectRef  
> ObjectRef ObjectRef ObjectRef ObjectRef ObjectRef ObjectRef  
> ObjectRef ObjectRef ObjectRef ObjectRef ObjectRef ObjectRef  
> ObjectRef ObjectRef ObjectRef ObjectRef ObjectRef ObjectRef  
> ObjectRef ObjectRef ObjectRef ObjectRef ObjectRef ObjectRef  
> ObjectRef ObjectRef ObjectRef ObjectRef ObjectRef ObjectRef  
> ObjectRef ObjectRef ServiceRef ObjectRef ServiceRef ServiceRef  
> ServiceRef Interval UserService ObjectRef ObjectRef ObjectRef  
> ObjectRef ObjectRef ObjectRef ObjectRef )
>
> ^
>
> Deleted the new rule, but the error persists. Closed the file to try  
> to
> reopen it, and now the same error occurs and it refused to open.
>
> Does this happen much?
>
> Whit
>
>
> ------------------------------------------------------------------------------
> Enter the BlackBerry Developer Challenge
> This is your chance to win up to $100,000 in prizes! For a limited  
> time,
> vendors submitting new applications to BlackBerry App World(TM) will  
> have
> the opportunity to enter the BlackBerry Developer Challenge. See  
> full prize
> details at: http://p.sf.net/sfu/Challenge
> _______________________________________________
> Fwbuilder-discussion mailing list
> Fwbuilder-discussion@...
> https://lists.sourceforge.net/lists/listinfo/fwbuilder-discussion
>

Vadim Kurland ✍
vadim@...







------------------------------------------------------------------------------
Enter the BlackBerry Developer Challenge  
This is your chance to win up to $100,000 in prizes! For a limited time,
vendors submitting new applications to BlackBerry App World(TM) will have
the opportunity to enter the BlackBerry Developer Challenge. See full prize  
details at: http://p.sf.net/sfu/Challenge
_______________________________________________
Fwbuilder-discussion mailing list
Fwbuilder-discussion@...
https://lists.sourceforge.net/lists/listinfo/fwbuilder-discussion

Re: How to recover from XML error?

by Vadim Kurland ✎ :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


I created bug report for this:

https://sourceforge.net/tracker/?func=detail&aid=2823424&group_id=5314&atid=1070394

On Jul 17, 2009, at 8:02 PM, Vadim Kurland ✎ wrote:

>
> thanks for reporting this, I'll fix
>
> --vk
>
> On Jul 17, 2009, at 6:52 PM, Whit Blauvelt wrote:
>
>> Hi,
>>
>> Went to add a new rule and compile, got this error:
>>
>> Compiling rule sets for firewall: jet
>> fwb_ipt -v -f /home/whit/jet -d /home/whit -o /home/whit/jet.fw -i
>> id16569X19849
>> *** Loading data ...Error: Error parsing XML from file '/home/whit/
>> jet' (use_dtd=1)
>> XML Parser reported:
>> element Library: validity error : Element Library content does not
>> follow the DTD, expecting (AnyNetwork | AnyIPService | AnyInterval |
>> ObjectGroup | Host | Firewall | Network | NetworkIPv6 | IPv4 | IPv6
>> | DNSName | AddressTable | physAddress | AddressRange | ObjectRef |
>> ServiceGroup | IPService | ICMPService | ICMP6Service | TCPService |
>> UDPService | CustomService | ServiceRef | IntervalGroup | Interval |
>> IntervalRef | Interface | Policy | NAT | PolicyRule | NATRule |
>> Library | TagService)*, got (ObjectRef ObjectRef ServiceRef
>> ObjectRef ServiceRef ObjectRef ServiceRef ObjectRef ServiceRef
>> ObjectRef ServiceRef ObjectRef ObjectRef ObjectRef ObjectRef
>> ObjectRef ObjectRef ObjectRef ObjectRef ObjectRef ObjectRef
>> ObjectRef ObjectRef ObjectRef ObjectRef ObjectRef ObjectRef
>> ObjectRef ObjectRef ObjectRef ObjectRef ObjectRef ObjectRef
>> ObjectRef ObjectRef ObjectRef ObjectRef ObjectRef ObjectRef
>> ObjectRef ObjectRef ObjectRef ObjectRef ObjectRef ObjectRef
>> ObjectRef ObjectRef ServiceRef ObjectRef ServiceRef ServiceRef
>> ServiceRef Interval UserService ObjectRef ObjectRef ObjectRef
>> ObjectRef ObjectRef ObjectRef ObjectRef )
>>
>> ^
>>
>> Deleted the new rule, but the error persists. Closed the file to try
>> to
>> reopen it, and now the same error occurs and it refused to open.
>>
>> Does this happen much?
>>
>> Whit
>>
>>
>> ------------------------------------------------------------------------------
>> Enter the BlackBerry Developer Challenge
>> This is your chance to win up to $100,000 in prizes! For a limited
>> time,
>> vendors submitting new applications to BlackBerry App World(TM) will
>> have
>> the opportunity to enter the BlackBerry Developer Challenge. See
>> full prize
>> details at: http://p.sf.net/sfu/Challenge
>> _______________________________________________
>> Fwbuilder-discussion mailing list
>> Fwbuilder-discussion@...
>> https://lists.sourceforge.net/lists/listinfo/fwbuilder-discussion
>>
>
> Vadim Kurland ✍
> vadim@...
>
>
>
>
>
>
>
> ------------------------------------------------------------------------------
> Enter the BlackBerry Developer Challenge
> This is your chance to win up to $100,000 in prizes! For a limited  
> time,
> vendors submitting new applications to BlackBerry App World(TM) will  
> have
> the opportunity to enter the BlackBerry Developer Challenge. See  
> full prize
> details at: http://p.sf.net/sfu/Challenge
> _______________________________________________
> Fwbuilder-discussion mailing list
> Fwbuilder-discussion@...
> https://lists.sourceforge.net/lists/listinfo/fwbuilder-discussion

Vadim Kurland ✍
vadim@...







------------------------------------------------------------------------------
Enter the BlackBerry Developer Challenge  
This is your chance to win up to $100,000 in prizes! For a limited time,
vendors submitting new applications to BlackBerry App World(TM) will have
the opportunity to enter the BlackBerry Developer Challenge. See full prize  
details at: http://p.sf.net/sfu/Challenge
_______________________________________________
Fwbuilder-discussion mailing list
Fwbuilder-discussion@...
https://lists.sourceforge.net/lists/listinfo/fwbuilder-discussion

Re: How to recover from XML error?

by Vadim Kurland ✎ :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


this problem is fixed in v3.0.6 build  1174

the problem triggered when user created and then deleted User Service  
object. When an object is deleted, it is moved to "Deleted Objects"  
library. The bug was with XML DTD that did not allow UserService  
element as a child of Library. This is now fixed.

"testing" repositories have been updated.

--vk

On Jul 17, 2009, at 8:05 PM, Vadim Kurland ✎ wrote:

>
> I created bug report for this:
>
> https://sourceforge.net/tracker/?func=detail&aid=2823424&group_id=5314&atid=1070394
>
> On Jul 17, 2009, at 8:02 PM, Vadim Kurland ✎ wrote:
>
>>
>> thanks for reporting this, I'll fix
>>
>> --vk
>>
>> On Jul 17, 2009, at 6:52 PM, Whit Blauvelt wrote:
>>
>>> Hi,
>>>
>>> Went to add a new rule and compile, got this error:
>>>
>>> Compiling rule sets for firewall: jet
>>> fwb_ipt -v -f /home/whit/jet -d /home/whit -o /home/whit/jet.fw -i
>>> id16569X19849
>>> *** Loading data ...Error: Error parsing XML from file '/home/whit/
>>> jet' (use_dtd=1)
>>> XML Parser reported:
>>> element Library: validity error : Element Library content does not
>>> follow the DTD, expecting (AnyNetwork | AnyIPService | AnyInterval |
>>> ObjectGroup | Host | Firewall | Network | NetworkIPv6 | IPv4 | IPv6
>>> | DNSName | AddressTable | physAddress | AddressRange | ObjectRef |
>>> ServiceGroup | IPService | ICMPService | ICMP6Service | TCPService |
>>> UDPService | CustomService | ServiceRef | IntervalGroup | Interval |
>>> IntervalRef | Interface | Policy | NAT | PolicyRule | NATRule |
>>> Library | TagService)*, got (ObjectRef ObjectRef ServiceRef
>>> ObjectRef ServiceRef ObjectRef ServiceRef ObjectRef ServiceRef
>>> ObjectRef ServiceRef ObjectRef ObjectRef ObjectRef ObjectRef
>>> ObjectRef ObjectRef ObjectRef ObjectRef ObjectRef ObjectRef
>>> ObjectRef ObjectRef ObjectRef ObjectRef ObjectRef ObjectRef
>>> ObjectRef ObjectRef ObjectRef ObjectRef ObjectRef ObjectRef
>>> ObjectRef ObjectRef ObjectRef ObjectRef ObjectRef ObjectRef
>>> ObjectRef ObjectRef ObjectRef ObjectRef ObjectRef ObjectRef
>>> ObjectRef ObjectRef ServiceRef ObjectRef ServiceRef ServiceRef
>>> ServiceRef Interval UserService ObjectRef ObjectRef ObjectRef
>>> ObjectRef ObjectRef ObjectRef ObjectRef )
>>>
>>> ^
>>>
>>> Deleted the new rule, but the error persists. Closed the file to try
>>> to
>>> reopen it, and now the same error occurs and it refused to open.
>>>
>>> Does this happen much?
>>>
>>> Whit
>>>
>>>
>>> ------------------------------------------------------------------------------
>>> Enter the BlackBerry Developer Challenge
>>> This is your chance to win up to $100,000 in prizes! For a limited
>>> time,
>>> vendors submitting new applications to BlackBerry App World(TM) will
>>> have
>>> the opportunity to enter the BlackBerry Developer Challenge. See
>>> full prize
>>> details at: http://p.sf.net/sfu/Challenge
>>> _______________________________________________
>>> Fwbuilder-discussion mailing list
>>> Fwbuilder-discussion@...
>>> https://lists.sourceforge.net/lists/listinfo/fwbuilder-discussion
>>>
>>
>> Vadim Kurland ✍
>> vadim@...
>>
>>
>>
>>
>>
>>
>>
>> ------------------------------------------------------------------------------
>> Enter the BlackBerry Developer Challenge
>> This is your chance to win up to $100,000 in prizes! For a limited
>> time,
>> vendors submitting new applications to BlackBerry App World(TM) will
>> have
>> the opportunity to enter the BlackBerry Developer Challenge. See
>> full prize
>> details at: http://p.sf.net/sfu/Challenge
>> _______________________________________________
>> Fwbuilder-discussion mailing list
>> Fwbuilder-discussion@...
>> https://lists.sourceforge.net/lists/listinfo/fwbuilder-discussion
>
> Vadim Kurland ✍
> vadim@...
>
>
>
>
>
>
>
> ------------------------------------------------------------------------------
> Enter the BlackBerry Developer Challenge
> This is your chance to win up to $100,000 in prizes! For a limited  
> time,
> vendors submitting new applications to BlackBerry App World(TM) will  
> have
> the opportunity to enter the BlackBerry Developer Challenge. See  
> full prize
> details at: http://p.sf.net/sfu/Challenge
> _______________________________________________
> Fwbuilder-discussion mailing list
> Fwbuilder-discussion@...
> https://lists.sourceforge.net/lists/listinfo/fwbuilder-discussion

Vadim Kurland ✍
vadim@...







------------------------------------------------------------------------------
Enter the BlackBerry Developer Challenge  
This is your chance to win up to $100,000 in prizes! For a limited time,
vendors submitting new applications to BlackBerry App World(TM) will have
the opportunity to enter the BlackBerry Developer Challenge. See full prize  
details at: http://p.sf.net/sfu/Challenge
_______________________________________________
Fwbuilder-discussion mailing list
Fwbuilder-discussion@...
https://lists.sourceforge.net/lists/listinfo/fwbuilder-discussion