A second-half goal from Jan Bednarek ensured that Poland ended the tournament with a consolation win, but Japan still qualify for the knockout stages due to earning fewer yellow cards than Senegal.
The game began in temperature in the mid-thirties but while the conditions undoubtedly contributed to an uneventful opening 45 minutes, neither side made a sustained effort to open the scoring.
However, both teams quickly reverted back to possession football at the back and it was not long before the crowd began to voice their frustration with whistles coming from the stands.
Japan responded with Takashi Usami having a shot from an acute angle pushed away by Fabianski but the teams went into half time to a chorus of whistles, which appeared to be from the Poland fans.
After the restart, Japan showed the more attacking intent without creating a clear-cut opening and Poland made them pay by taking a surprise lead on the hour mark.
From a deep position, Rafal Kurzawa curled a free kick towards the back post and Bednarek was waiting to volley the ball inside the near post from six yards out for his first international goal.
The goal led to Japan being relegated to third position in the group and although the Asian nation began to up the tempo, they struggled to create clear-cut opportunities with only Maya Yoshida going close with a header from a corner.
Up the other end, Robert Lewandowski should have doubled Poland's advantage when being found by Grosicki, but the Bayern Munich frontman swept the ball over the crossbar from 10 yards out.
However, a goal for Colombia over Senegal changed the situation with Japan being able to go through in second place courtesy of fewer yellow cards and it led to Japan showing very little ambition to try to score a goal due to a second Poland strike changing the group once again.
The closing stages of the game descended into farce with both teams happy to play the ball about with little pressure being applied and it paid off for Japan who reach this stage of the World Cup for the third time in their history.
JAPAN (4-5-1): Kawashima; H.Sakai, Yoshida, Makino, Nagatomo; Yamaguchi, Shibasaki; G.Sakai, Okazaki (Osako 47'), Usami (Inui 65'); Muto (Hasebe 82')
POLAND (4-5-1): Fabianski; Bereszynski, Glik, Bednarek, Jedrzejczyk; Krychowiak, Goralski, Grosicki, Zielinski (Teodorczyk 79'), Kurzawa (Peszko 80'); Lewandowski