You haven't created the variable chart22
so it's no surprise that properties are undefined.
Try this
var timerId = setInterval(function() {
console.log("retrieving data from server ");
var url = "http://localhost/someserver call";
$.getJSON(url, function(data) {
$('#chart22').highcharts().series[0].setData(data);
});
}, 30000);
The JSFiddle demo for Series.setData
should have shown you exactly what to do.