把 String activeContext[] = new String[4];  这句移动到
StringTokenizer st = new StringTokenizer(id[ii], "__");
的上面试试. 即在for循环里面.