sentence: background in 1804 , at the start of the napoleonic wars , a powerful french squadron operating from batavia harbor on the dutch island colony of java attacked a large and valuable british merchant convoy sailing from china near the straits of malacca in the battle of pulo aura .