Relative to the transistor: from the provided datasheets the 2SJ117 seems that is produced in a TO-220 package that is not this case. The marking of the MJD117 is J117and it is from the same manufacturer...
You may try to do some measurements without removing it from the circuit board and, if the rest of the circuit permits it, we may be enlighten, just for the curiosity.
Is the device labeled J117 a mosfet (2SJ117) or a BJT (MDJ117)? It is hard to tell. Figure 10 shows the device up close. Notice the middle lead is either broken off or missing. The schematic of a MDJ117 in the DPAK case 369c shows the middle pin missing, as in the picture. However, the code above the MDJ117 designation (451) comprises 3 numbers (YWW), but according to the
spec, it should be 4 numbers (AYWW), where A signifies the assembly location, Y the year and WW the work week. In addition, the middle lead looks like it is sheared off, which would suggest it is not the MJD117.
Since the device is in circuit, measuring the voltages across the leads is problematic in regards to identifying the device as either a 2SJ117 or a MDJ117. For one thing the MDJ117 is a PNP darlington pair, which would not display the traditional BJT characteristics. But, for the record here are values (using a DMM in diode mode):
1 -> 3 .438v
3 -> 1 .438v
1 -> 2 .589v
2 -> 1 1.269v
2 -> 3 1.234v
3 -> 2 .546v
NB: I originally mislabeled the pins on the image wrt to the table. They are now correct.