I encountered Signature is found in scriptCode exception when trying to make a BTC transfer
The referenced outputs are P2PK
createOutputScript(fromAddress) implies P2PKH
P2PKH scriptSig doesn't match with P2PK pubkeyscript

Resources used to write this three-line answer:

Compile Core
Use 30 GB bandwidth to download the blockchain
Two-three hours of time

but I'm happy to help more if this isn't enough.