Share

BACnet I/P for Java

Tracker: Patches

5 PriorityArray causing BacException - ID: 1960438
Last Update: Settings changed ( sf-robot )

First thanks for this well done Project. I will be glad if I an contribute
to this project.


I got a BACnetException when reading a PriorityArray.
The problem was that PriorityValue was not taking inconsideration of the
closing Tag. So I changed PriorityArray Class, see last two lines. Please
see comment. I'm still a newbie and perhaps this could be solved in a
better way. But now it works.

regards
Galea


package com.serotonin.bacnet4j.type.constructed;

import java.util.ArrayList;
import java.util.List;

import com.serotonin.bacnet4j.exception.BACnetException;
import com.serotonin.util.queue.ByteQueue;

public class PriorityArray extends SequenceOf<PriorityValue> {
public PriorityArray() {
super(new ArrayList<PriorityValue>());
}

public PriorityArray(List<PriorityValue> priorityValues) {
super(priorityValues);
}

public PriorityArray(ByteQueue queue) throws BACnetException {
super(queue, PriorityValue.class, 4); // GALEA we have to stop on
context 4
}
}


Emanuel ( galea ) - 2008-05-08 18:21

5

Closed

None

Nobody/Anonymous

None

None

Public


Comments ( 2 )

Date: 2009-11-22 02:20
Sender: sf-robotSourceForge.net Site Admin

This Tracker item was closed automatically by the system. It was
previously set to a Pending status, and the original submitter
did not respond within 14 days (the time period specified by
the administrator of this Tracker).


Date: 2009-11-07 22:47
Sender: mlohbihlerProject Admin

Can you please describe the BACnetError you were getting and why hardcoding
a context id of 4 fixes it. Thanks.


Attached File

No Files Currently Attached

Changes ( 5 )

Field Old Value Date By
close_date 2009-11-07 22:47 2009-11-22 02:20 sf-robot
allow_comments 1 2009-11-22 02:20 sf-robot
status_id Pending 2009-11-22 02:20 sf-robot
close_date - 2009-11-07 22:47 mlohbihler
status_id Open 2009-11-07 22:47 mlohbihler