Anonymous_User Absent Member.
Absent Member.
337 views

Error appears when debugging a generic collector for ADONIS


We have Sentinel 6.1

We are working with a new collector for the DNS appliance ADONIS , and
when we are debbuging an error appears in the function SUBSTR


When this error doen´t appear during debugging too, looks like the
collector enters in a loop, the funtion where the debugging stands is


"this.read = function"


The generic collector doesn´t been modified in the functions preParse,
Parse and Normalized.

The generic collector it´s in JAva script and It was maded with the ANT
templates in ECLIPSE.


--
marrovdr
------------------------------------------------------------------------
marrovdr's Profile: http://forums.novell.com/member.php?userid=41874
View this thread: http://forums.novell.com/showthread.php?t=423439

0 Likes
1 Reply
Anonymous_User Absent Member.
Absent Member.

Re: Error appears when debugging a generic collector for ADONIS


Hmm....

Well I'm not sure we have quite enough information yet to really help
you. That said, there are some basic things we can check:

1) Are you saying that you are seeing this error with a completely
unmodified Collector, e.g. you ran the "Create New Collector Plug-in"
Ant task, then immediately built and deployed the result?

2) Are you using the 'stable' SDK or the SVN-based 'current' branch?

Also, I'm not clear what you're saying about the this.read bit, but the
line that states:
record.connectorData = getData(5);
(which is in the Connector.read() method) is where the Collector
fetches the next record from the Connector. You should note that if no
data is retrieved, you'll basically get an empty record. If you try to
do any parsing on that data, you can run into problems because the
variable you are trying to operate on don't exist.

By this I mean that if rec.s_RXBufferString doesn't exist (e.g. you got
a null record from the Connector), but you try to do:
this.s_RXBufferString.substr(5,8);
you'll get an error like "method substr() is undefined" or something.

Also I should note that if your Collector is pausing at the getData()
line, that probably means that your device isn't actually sending any
records - check using a Raw Data Tap on the Event Source.


--
DCorlette
------------------------------------------------------------------------
DCorlette's Profile: http://forums.novell.com/member.php?userid=4437
View this thread: http://forums.novell.com/showthread.php?t=423439

0 Likes
The opinions expressed above are the personal opinions of the authors, not of Micro Focus. By using this site, you accept the Terms of Use and Rules of Participation. Certain versions of content ("Material") accessible here may contain branding from Hewlett-Packard Company (now HP Inc.) and Hewlett Packard Enterprise Company. As of September 1, 2017, the Material is now offered by Micro Focus, a separately owned and operated company. Any reference to the HP and Hewlett Packard Enterprise/HPE marks is historical in nature, and the HP and Hewlett Packard Enterprise/HPE marks are the property of their respective owners.