Hi obogo!
At first, download and install the latest version of Origin at www.origin.com/download (and make sure you have your Origin account ready as well).
If that doesn’t helped, close the origin client and go directly to you origin folder C:\Program Files\Origin Games. Run the origin.exe in this folder with a rightclick -> run as administrator.
Add BF3 and Origin to the exception list of your antivirus/firewall software. Launch a match with disabled software protection, just to verify if your software is blocking your application even while disabled (some programs running still from the background).
This worked out in the most cases, if not, try to deactivate your firewall/antivirus software and/or check the online ports of your connection:
TCP: 80, 443, 9988, 20000-20100, 22990, 17502, 42127
UDP: 3659, 14000-14016, 22990-23006, 25200-25300
For specific instructions on how to open your ports, please visit http://www.portforward.com/ or contact your router manufacturer.
Please let us now, if this problem after this workaround still exist.
Cheers
Basti