Before I proceed here's a quick disclaimer: English is not my first language, some of the terminology I used might be incorrect.
I tried solving it and my final solution was not a real number (which would infer I did something fundamentally wrong).
$I=\frac{1}{2} \int_{-\infty}^\infty \frac{z\sin 3z}{z^2+1} dz$
I tried finding the roots of $z^2+1$ which ended up being $\pm i$
Knowing only i is part of the contour in the upper-half plane, that would mean $Rez(f, -i) = 0$ and therefore I would only need to calculate $Rez(f, i)$
$z=i$ seemed to be a first degree pole, therefore $Rez(f, i) = \frac{1}{0!} \displaystyle\lim_{z\rightarrow i} ((z-i) f(z)) = \lim_{z\rightarrow i} (z-i)\frac{z\sin 3z}{(z-i)(z+i)} = \frac{i \sin 3i}{2i} = \frac{\sin 3i}{2} = \frac{e^{-3} -e + 3}{2}$
That seems all well and good until I realized that the integral is now $I = i \pi \frac{e^{-3} -e + 3}{2}$ which would leave me with a complex solution.
Where did I go wrong?