I'm currently working on the following problem: Construct a sequence of random variables $X_n$ and $X$ such that $X_n \overset{\mathbb{P}}{\rightarrow} X$ and $\mathbb{E}[X_n] = 0$ for all $n$ but $\mathbb{E}[X] = \infty$.
I can imagine random variables with infinite expectation like $\mathbb{P}[X] = \frac{1}{n(n+1)}$ for all $n \in \mathbb{N}$ but struggle to see how to construct a sequence that converges to $X$ while meeting the criteria.
Consider a Cauchy r.v. $X$ with density $$f(x)=\frac1\pi\frac1{1+x^2}$$
Define $X_n=X\mathbb{1}_{(0,n)}(X)+X\mathbb{1}_{(-a_n,-n)}(X)$ with $a_n>0$ to be determine so that $E[X_n]=0$:
$$\frac1\pi\Big(\int^{-n}_{-a_n}\frac{x}{1+x^2}\,dx+\int^n_0\frac{x}{1+x^2}\,dx\Big)=\frac1{2\pi}\Big(-\log\big(\frac{1+a^2_n}{1+n^2}\big)+\log(1+n^2)\Big)=0 $$ that is $\log(1+a^2_n)=2\log(1+n^2)$, and so $a_n=\sqrt{n^2+2n}$
Observe that $X_n\xrightarrow{n\rightarrow\infty} X_+$ a.s, and thus in probability.