The esterification of 3,4-dihydroxybenzoic acid (I) with refluxing methanol - H2SO4 gives the corresponding methyl ester (II), which is then treated with hydroxylamine in water containing NaOH.