QA@IT

UTF-8なのに、日本語の文字の部分がERRORだと指摘される。

5353 PV

@ITの記事「Play frameworkのDB操作を楽にするEBeanの基礎知識 (2/3)」についての質問です。

コマンドプロンプトの出力です。
[info] Loading project definition from C:\play-2.2.3\firstProject\project
[info] Set current project to firstProject (in build file:/C:/play-2.2.3/firstProject/)

--- (Running the application from SBT, auto-reloading is enabled) ---

[info] play - Listening for HTTP on /0:0:0:0:0:0:0:0:9000

(Server started, use Ctrl+D to stop and go back to the console...)

[info] Compiling 2 Java sources to C:\play-2.2.3\firstProject\target\scala-2.10\classes...
[error] C:\play-2.2.3\firstProject\app\controllers\Application.java:13: �G���[: ���̕����́A�G���R�[�f�B���Outf8�Ƀ}�b�v�ł��܂���
[error] // 1??????
[error] ^
[error] C:\play-2.2.3\firstProject\app\controllers\Application.java:13: �G���[: ���̕����́A�G���R�[�f�B���Outf8�Ƀ}�b�v�ł��܂���
[error] // 1??????
[error] ^
[error] C:\play-2.2.3\firstProject\app\controllers\Application.java:13: �G���[: ���̕����́A�G���R�[�f�B���Outf8�Ƀ}�b�v�ł��܂���
[error] // 1??????
[error] ^
[error] C:\play-2.2.3\firstProject\app\controllers\Application.java:15: �G���[: ���̕����́A�G���R�[�f�B���Outf8�Ƀ}�b�v�ł��܂���
[error] parent1.name = "?V?h???Y";
[error] ^
[error] C:\play-2.2.3\firstProject\app\controllers\Application.java:15: �G���[: ���̕����́A�G���R�[�f�B���Outf8�Ƀ}�b�v�ł��܂���
[error] parent1.name = "?V?h???Y";
[error] ^
[error] C:\play-2.2.3\firstProject\app\controllers\Application.java:15: �G���[: ���̕����́A�G���R�[�f�B���Outf8�Ƀ}�b�v�ł��܂���
[error] parent1.name = "?V?h???Y";
[error] ^
[error] C:\play-2.2.3\firstProject\app\controllers\Application.java:15: �G���[: ���̕����́A�G���R�[�f�B���Outf8�Ƀ}�b�v�ł��܂���
[error] parent1.name = "?V?h???Y";
[error] ^
[error] C:\play-2.2.3\firstProject\app\controllers\Application.java:15: �G���[: ���̕����́A�G���R�[�f�B���Outf8�Ƀ}�b�v�ł��܂���
[error] parent1.name = "?V?h???Y";
[error] ^
[error] C:\play-2.2.3\firstProject\app\controllers\Application.java:18: �G���[: ���̕����́A�G���R�[�f�B���Outf8�Ƀ}�b�v�ł��܂���
[error] // 2??????
[error] ^
[error] C:\play-2.2.3\firstProject\app\controllers\Application.java:18: �G���[: ���̕����́A�G���R�[�f�B���Outf8�Ƀ}�b�v�ł��܂���
[error] // 2??????
[error] ^
[error] C:\play-2.2.3\firstProject\app\controllers\Application.java:18: �G���[: ���̕����́A�G���R�[�f�B���Outf8�Ƀ}�b�v�ł��܂���
[error] // 2??????
[error] ^
[error] C:\play-2.2.3\firstProject\app\controllers\Application.java:20: �G���[: ���̕����́A�G���R�[�f�B���Outf8�Ƀ}�b�v�ł��܂���
[error] parent2.name = "??X????Y";
[error] ^
[error] C:\play-2.2.3\firstProject\app\controllers\Application.java:20: �G���[: ���̕����́A�G���R�[�f�B���Outf8�Ƀ}�b�v�ł��܂���
[error] parent2.name = "??X????Y";
[error] ^
[error] C:\play-2.2.3\firstProject\app\controllers\Application.java:20: �G���[: ���̕����́A�G���R�[�f�B���Outf8�Ƀ}�b�v�ł��܂���
[error] parent2.name = "??X????Y";
[error] ^
[error] C:\play-2.2.3\firstProject\app\controllers\Application.java:20: �G���[: ���̕����́A�G���R�[�f�B���Outf8�Ƀ}�b�v�ł��܂���
[error] parent2.name = "??X????Y";
[error] ^
[error] C:\play-2.2.3\firstProject\app\controllers\Application.java:20: �G���[: ���̕����́A�G���R�[�f�B���Outf8�Ƀ}�b�v�ł��܂���
[error] parent2.name = "??X????Y";
[error] ^
[error] C:\play-2.2.3\firstProject\app\controllers\Application.java:23: �G���[: ���̕����́A�G���R�[�f�B���Outf8�Ƀ}�b�v�ł��܂���
[error] // 3??????
[error] ^
[error] C:\play-2.2.3\firstProject\app\controllers\Application.java:23: �G���[: ���̕����́A�G���R�[�f�B���Outf8�Ƀ}�b�v�ł��܂���
[error] // 3??????
[error] ^
[error] C:\play-2.2.3\firstProject\app\controllers\Application.java:23: �G���[: ���̕����́A�G���R�[�f�B���Outf8�Ƀ}�b�v�ł��܂���
[error] // 3??????
[error] ^
[error] C:\play-2.2.3\firstProject\app\controllers\Application.java:25: �G���[: ���̕����́A�G���R�[�f�B���Outf8�Ƀ}�b�v�ł��܂���
[error] parent3.name = "???h???Y";
[error] ^
[error] C:\play-2.2.3\firstProject\app\controllers\Application.java:25: �G���[: ���̕����́A�G���R�[�f�B���Outf8�Ƀ}�b�v�ł��܂���
[error] parent3.name = "???h???Y";
[error] ^
[error] C:\play-2.2.3\firstProject\app\controllers\Application.java:25: �G���[: ���̕����́A�G���R�[�f�B���Outf8�Ƀ}�b�v�ł��܂���
[error] parent3.name = "???h???Y";
[error] ^
[error] C:\play-2.2.3\firstProject\app\controllers\Application.java:25: �G���[: ���̕����́A�G���R�[�f�B���Outf8�Ƀ}�b�v�ł��܂���
[error] parent3.name = "???h???Y";
[error] ^
[error] C:\play-2.2.3\firstProject\app\controllers\Application.java:25: �G���[: ���̕����́A�G���R�[�f�B���Outf8�Ƀ}�b�v�ł��܂���
[error] parent3.name = "???h???Y";
[error] ^
[error] C:\play-2.2.3\firstProject\app\controllers\Application.java:25: �G���[: ���̕����́A�G���R�[�f�B���Outf8�Ƀ}�b�v�ł��܂���
[error] parent3.name = "???h???Y";
[error] ^
[error] C:\play-2.2.3\firstProject\app\controllers\Application.java:28: �G���[: ���̕����́A�G���R�[�f�B���Outf8�Ƀ}�b�v�ł��܂���
[error] // ?????Parent??S????????\??
[error] ^
[error] C:\play-2.2.3\firstProject\app\controllers\Application.java:28: �G���[: ���̕����́A�G���R�[�f�B���Outf8�Ƀ}�b�v�ł��܂���
[error] // ?????Parent??S????????\??
[error] ^
[error] C:\play-2.2.3\firstProject\app\controllers\Application.java:28: �G���[: ���̕����́A�G���R�[�f�B���Outf8�Ƀ}�b�v�ł��܂���
[error] // ?????Parent??S????????\??
[error] ^
[error] C:\play-2.2.3\firstProject\app\controllers\Application.java:28: �G���[: ���̕����́A�G���R�[�f�B���Outf8�Ƀ}�b�v�ł��܂���
[error] // ?????Parent??S????????\??
[error] ^
[error] C:\play-2.2.3\firstProject\app\controllers\Application.java:28: �G���[: ���̕����́A�G���R�[�f�B���Outf8�Ƀ}�b�v�ł��܂���
[error] // ?????Parent??S????????\??
[error] ^
[error] C:\play-2.2.3\firstProject\app\controllers\Application.java:28: �G���[: ���̕����́A�G���R�[�f�B���Outf8�Ƀ}�b�v�ł��܂���
[error] // ?????Parent??S????????\??
[error] ^
[error] C:\play-2.2.3\firstProject\app\controllers\Application.java:28: �G���[: ���̕����́A�G���R�[�f�B���Outf8�Ƀ}�b�v�ł��܂���
[error] // ?????Parent??S????????\??
[error] ^
[error] C:\play-2.2.3\firstProject\app\controllers\Application.java:28: �G���[: ���̕����́A�G���R�[�f�B���Outf8�Ƀ}�b�v�ł��܂���
[error] // ?????Parent??S????????\??
[error] ^
[error] C:\play-2.2.3\firstProject\app\controllers\Application.java:28: �G���[: ���̕����́A�G���R�[�f�B���Outf8�Ƀ}�b�v�ł��܂���
[error] // ?????Parent??S????????\??
[error] ^
[error] C:\play-2.2.3\firstProject\app\controllers\Application.java:28: �G���[: ���̕����́A�G���R�[�f�B���Outf8�Ƀ}�b�v�ł��܂���
[error] // ?????Parent??S????????\??
[error] ^
[error] C:\play-2.2.3\firstProject\app\controllers\Application.java:28: �G���[: ���̕����́A�G���R�[�f�B���Outf8�Ƀ}�b�v�ł��܂���
[error] // ?????Parent??S????????\??
[error] ^
[error] C:\play-2.2.3\firstProject\app\controllers\Application.java:28: �G���[: ���̕����́A�G���R�[�f�B���Outf8�Ƀ}�b�v�ł��܂���
[error] // ?????Parent??S????????\??
[error] ^
[error] C:\play-2.2.3\firstProject\app\controllers\Application.java:28: �G���[: ���̕����́A�G���R�[�f�B���Outf8�Ƀ}�b�v�ł��܂���
[error] // ?????Parent??S????????\??
[error] ^
[error] C:\play-2.2.3\firstProject\app\controllers\Application.java:28: �G���[: ���̕����́A�G���R�[�f�B���Outf8�Ƀ}�b�v�ł��܂���
[error] // ?????Parent??S????????\??
[error] ^
[error] C:\play-2.2.3\firstProject\app\controllers\Application.java:28: �G���[: ���̕����́A�G���R�[�f�B���Outf8�Ƀ}�b�v�ł��܂���
[error] // ?????Parent??S????????\??
[error] ^
[error] �G���[40��
error javac returned nonzero exit code
[error] application -

! @6jiboe9hk - Internal server error, for (GET) [/] ->

play.PlayExceptions$CompilationException: Compilation error[�G���[: ���̕����́A�G���R�[�f�B���Outf8�Ƀ}�b�v�ł��܂���]
at play.PlayReloader$$anon$1$$anonfun$reload$2$$anonfun$apply$14$$anonfun$apply$16.apply(PlayReloader.scala:304) ~[na:na]
at play.PlayReloader$$anon$1$$anonfun$reload$2$$anonfun$apply$14$$anonfun$apply$16.apply(PlayReloader.scala:304) ~[na:na]
at scala.Option.map(Option.scala:145) ~[scala-library.jar:na]
at play.PlayReloader$$anon$1$$anonfun$reload$2$$anonfun$apply$14.apply(PlayReloader.scala:304) ~[na:na]
at play.PlayReloader$$anon$1$$anonfun$reload$2$$anonfun$apply$14.apply(PlayReloader.scala:298) ~[na:na]
at scala.Option.map(Option.scala:145) ~[scala-library.jar:na]
[warn] play - No application found at invoker init
[info] Compiling 2 Java sources to C:\play-2.2.3\firstProject\target\scala-2.10\classes...
[error] C:\play-2.2.3\firstProject\app\controllers\Application.java:13: �G���[: ���̕����́A�G���R�[�f�B���Outf8�Ƀ}�b�v�ł��܂���
[error] // 1??????
[error] ^
[error] C:\play-2.2.3\firstProject\app\controllers\Application.java:13: �G���[: ���̕����́A�G���R�[�f�B���Outf8�Ƀ}�b�v�ł��܂���
[error] // 1??????
[error] ^
[error] C:\play-2.2.3\firstProject\app\controllers\Application.java:13: �G���[: ���̕����́A�G���R�[�f�B���Outf8�Ƀ}�b�v�ł��܂���
[error] // 1??????
[error] ^
[error] C:\play-2.2.3\firstProject\app\controllers\Application.java:15: �G���[: ���̕����́A�G���R�[�f�B���Outf8�Ƀ}�b�v�ł��܂���
[error] parent1.name = "?V?h???Y";
[error] ^
[error] C:\play-2.2.3\firstProject\app\controllers\Application.java:15: �G���[: ���̕����́A�G���R�[�f�B���Outf8�Ƀ}�b�v�ł��܂���
[error] parent1.name = "?V?h???Y";
[error] ^
[error] C:\play-2.2.3\firstProject\app\controllers\Application.java:15: �G���[: ���̕����́A�G���R�[�f�B���Outf8�Ƀ}�b�v�ł��܂���
[error] parent1.name = "?V?h???Y";
[error] ^
[error] C:\play-2.2.3\firstProject\app\controllers\Application.java:15: �G���[: ���̕����́A�G���R�[�f�B���Outf8�Ƀ}�b�v�ł��܂���
[error] parent1.name = "?V?h???Y";
[error] ^
[error] C:\play-2.2.3\firstProject\app\controllers\Application.java:15: �G���[: ���̕����́A�G���R�[�f�B���Outf8�Ƀ}�b�v�ł��܂���
[error] parent1.name = "?V?h???Y";
[error] ^
[error] C:\play-2.2.3\firstProject\app\controllers\Application.java:18: �G���[: ���̕����́A�G���R�[�f�B���Outf8�Ƀ}�b�v�ł��܂���
[error] // 2??????
[error] ^
[error] C:\play-2.2.3\firstProject\app\controllers\Application.java:18: �G���[: ���̕����́A�G���R�[�f�B���Outf8�Ƀ}�b�v�ł��܂���
[error] // 2??????
[error] ^
[error] C:\play-2.2.3\firstProject\app\controllers\Application.java:18: �G���[: ���̕����́A�G���R�[�f�B���Outf8�Ƀ}�b�v�ł��܂���
[error] // 2??????
[error] ^
[error] C:\play-2.2.3\firstProject\app\controllers\Application.java:20: �G���[: ���̕����́A�G���R�[�f�B���Outf8�Ƀ}�b�v�ł��܂���
[error] parent2.name = "??X????Y";
[error] ^
[error] C:\play-2.2.3\firstProject\app\controllers\Application.java:20: �G���[: ���̕����́A�G���R�[�f�B���Outf8�Ƀ}�b�v�ł��܂���
[error] parent2.name = "??X????Y";
[error] ^
[error] C:\play-2.2.3\firstProject\app\controllers\Application.java:20: �G���[: ���̕����́A�G���R�[�f�B���Outf8�Ƀ}�b�v�ł��܂���
[error] parent2.name = "??X????Y";
[error] ^
[error] C:\play-2.2.3\firstProject\app\controllers\Application.java:20: �G���[: ���̕����́A�G���R�[�f�B���Outf8�Ƀ}�b�v�ł��܂���
[error] parent2.name = "??X????Y";
[error] ^
[error] C:\play-2.2.3\firstProject\app\controllers\Application.java:20: �G���[: ���̕����́A�G���R�[�f�B���Outf8�Ƀ}�b�v�ł��܂���
[error] parent2.name = "??X????Y";
[error] ^
[error] C:\play-2.2.3\firstProject\app\controllers\Application.java:23: �G���[: ���̕����́A�G���R�[�f�B���Outf8�Ƀ}�b�v�ł��܂���
[error] // 3??????
[error] ^
[error] C:\play-2.2.3\firstProject\app\controllers\Application.java:23: �G���[: ���̕����́A�G���R�[�f�B���Outf8�Ƀ}�b�v�ł��܂���
[error] // 3??????
[error] ^
[error] C:\play-2.2.3\firstProject\app\controllers\Application.java:23: �G���[: ���̕����́A�G���R�[�f�B���Outf8�Ƀ}�b�v�ł��܂���
[error] // 3??????
[error] ^
[error] C:\play-2.2.3\firstProject\app\controllers\Application.java:25: �G���[: ���̕����́A�G���R�[�f�B���Outf8�Ƀ}�b�v�ł��܂���
[error] parent3.name = "???h???Y";
[error] ^
[error] C:\play-2.2.3\firstProject\app\controllers\Application.java:25: �G���[: ���̕����́A�G���R�[�f�B���Outf8�Ƀ}�b�v�ł��܂���
[error] parent3.name = "???h???Y";
[error] ^
[error] C:\play-2.2.3\firstProject\app\controllers\Application.java:25: �G���[: ���̕����́A�G���R�[�f�B���Outf8�Ƀ}�b�v�ł��܂���
[error] parent3.name = "???h???Y";
[error] ^
[error] C:\play-2.2.3\firstProject\app\controllers\Application.java:25: �G���[: ���̕����́A�G���R�[�f�B���Outf8�Ƀ}�b�v�ł��܂���
[error] parent3.name = "???h???Y";
[error] ^
[error] C:\play-2.2.3\firstProject\app\controllers\Application.java:25: �G���[: ���̕����́A�G���R�[�f�B���Outf8�Ƀ}�b�v�ł��܂���
[error] parent3.name = "???h???Y";
[error] ^
[error] C:\play-2.2.3\firstProject\app\controllers\Application.java:25: �G���[: ���̕����́A�G���R�[�f�B���Outf8�Ƀ}�b�v�ł��܂���
[error] parent3.name = "???h???Y";
[error] ^
[error] C:\play-2.2.3\firstProject\app\controllers\Application.java:28: �G���[: ���̕����́A�G���R�[�f�B���Outf8�Ƀ}�b�v�ł��܂���
[error] // ?????Parent??S????????\??
[error] ^
[error] C:\play-2.2.3\firstProject\app\controllers\Application.java:28: �G���[: ���̕����́A�G���R�[�f�B���Outf8�Ƀ}�b�v�ł��܂���
[error] // ?????Parent??S????????\??
[error] ^
[error] C:\play-2.2.3\firstProject\app\controllers\Application.java:28: �G���[: ���̕����́A�G���R�[�f�B���Outf8�Ƀ}�b�v�ł��܂���
[error] // ?????Parent??S????????\??
[error] ^
[error] C:\play-2.2.3\firstProject\app\controllers\Application.java:28: �G���[: ���̕����́A�G���R�[�f�B���Outf8�Ƀ}�b�v�ł��܂���
[error] // ?????Parent??S????????\??
[error] ^
[error] C:\play-2.2.3\firstProject\app\controllers\Application.java:28: �G���[: ���̕����́A�G���R�[�f�B���Outf8�Ƀ}�b�v�ł��܂���
[error] // ?????Parent??S????????\??
[error] ^
[error] C:\play-2.2.3\firstProject\app\controllers\Application.java:28: �G���[: ���̕����́A�G���R�[�f�B���Outf8�Ƀ}�b�v�ł��܂���
[error] // ?????Parent??S????????\??
[error] ^
[error] C:\play-2.2.3\firstProject\app\controllers\Application.java:28: �G���[: ���̕����́A�G���R�[�f�B���Outf8�Ƀ}�b�v�ł��܂���
[error] // ?????Parent??S????????\??
[error] ^
[error] C:\play-2.2.3\firstProject\app\controllers\Application.java:28: �G���[: ���̕����́A�G���R�[�f�B���Outf8�Ƀ}�b�v�ł��܂���
[error] // ?????Parent??S????????\??
[error] ^
[error] C:\play-2.2.3\firstProject\app\controllers\Application.java:28: �G���[: ���̕����́A�G���R�[�f�B���Outf8�Ƀ}�b�v�ł��܂���
[error] // ?????Parent??S????????\??
[error] ^
[error] C:\play-2.2.3\firstProject\app\controllers\Application.java:28: �G���[: ���̕����́A�G���R�[�f�B���Outf8�Ƀ}�b�v�ł��܂���
[error] // ?????Parent??S????????\??
[error] ^
[error] C:\play-2.2.3\firstProject\app\controllers\Application.java:28: �G���[: ���̕����́A�G���R�[�f�B���Outf8�Ƀ}�b�v�ł��܂���
[error] // ?????Parent??S????????\??
[error] ^
[error] C:\play-2.2.3\firstProject\app\controllers\Application.java:28: �G���[: ���̕����́A�G���R�[�f�B���Outf8�Ƀ}�b�v�ł��܂���
[error] // ?????Parent??S????????\??
[error] ^
[error] C:\play-2.2.3\firstProject\app\controllers\Application.java:28: �G���[: ���̕����́A�G���R�[�f�B���Outf8�Ƀ}�b�v�ł��܂���
[error] // ?????Parent??S????????\??
[error] ^
[error] C:\play-2.2.3\firstProject\app\controllers\Application.java:28: �G���[: ���̕����́A�G���R�[�f�B���Outf8�Ƀ}�b�v�ł��܂���
[error] // ?????Parent??S????????\??
[error] ^
[error] C:\play-2.2.3\firstProject\app\controllers\Application.java:28: �G���[: ���̕����́A�G���R�[�f�B���Outf8�Ƀ}�b�v�ł��܂���
[error] // ?????Parent??S????????\??
[error] ^
[error] �G���[40��
error javac returned nonzero exit code
[error] application -

! @6jiboecli - Internal server error, for (GET) [/] ->

play.PlayExceptions$CompilationException: Compilation error[�G���[: ���̕����́A�G���R�[�f�B���Outf8�Ƀ}�b�v�ł��܂���]
at play.PlayReloader$$anon$1$$anonfun$reload$2$$anonfun$apply$14$$anonfun$apply$16.apply(PlayReloader.scala:304) ~[na:na]
at play.PlayReloader$$anon$1$$anonfun$reload$2$$anonfun$apply$14$$anonfun$apply$16.apply(PlayReloader.scala:304) ~[na:na]
at scala.Option.map(Option.scala:145) ~[scala-library.jar:na]
at play.PlayReloader$$anon$1$$anonfun$reload$2$$anonfun$apply$14.apply(PlayReloader.scala:304) ~[na:na]
at play.PlayReloader$$anon$1$$anonfun$reload$2$$anonfun$apply$14.apply(PlayReloader.scala:298) ~[na:na]
at scala.Option.map(Option.scala:145) ~[scala-library.jar:na]
[info] Compiling 2 Java sources to C:\play-2.2.3\firstProject\target\scala-2.10\classes...
[error] C:\play-2.2.3\firstProject\app\controllers\Application.java:13: �G���[: ���̕����́A�G���R�[�f�B���Outf8�Ƀ}�b�v�ł��܂���
[error] // 1??????
[error] ^
[error] C:\play-2.2.3\firstProject\app\controllers\Application.java:13: �G���[: ���̕����́A�G���R�[�f�B���Outf8�Ƀ}�b�v�ł��܂���
[error] // 1??????
[error] ^
[error] C:\play-2.2.3\firstProject\app\controllers\Application.java:13: �G���[: ���̕����́A�G���R�[�f�B���Outf8�Ƀ}�b�v�ł��܂���
[error] // 1??????
[error] ^
[error] C:\play-2.2.3\firstProject\app\controllers\Application.java:15: �G���[: ���̕����́A�G���R�[�f�B���Outf8�Ƀ}�b�v�ł��܂���
[error] parent1.name = "?V?h???Y";
[error] ^
[error] C:\play-2.2.3\firstProject\app\controllers\Application.java:15: �G���[: ���̕����́A�G���R�[�f�B���Outf8�Ƀ}�b�v�ł��܂���
[error] parent1.name = "?V?h???Y";
[error] ^
[error] C:\play-2.2.3\firstProject\app\controllers\Application.java:15: �G���[: ���̕����́A�G���R�[�f�B���Outf8�Ƀ}�b�v�ł��܂���
[error] parent1.name = "?V?h???Y";
[error] ^
[error] C:\play-2.2.3\firstProject\app\controllers\Application.java:15: �G���[: ���̕����́A�G���R�[�f�B���Outf8�Ƀ}�b�v�ł��܂���
[error] parent1.name = "?V?h???Y";
[error] ^
[error] C:\play-2.2.3\firstProject\app\controllers\Application.java:15: �G���[: ���̕����́A�G���R�[�f�B���Outf8�Ƀ}�b�v�ł��܂���
[error] parent1.name = "?V?h???Y";
[error] ^
[error] C:\play-2.2.3\firstProject\app\controllers\Application.java:18: �G���[: ���̕����́A�G���R�[�f�B���Outf8�Ƀ}�b�v�ł��܂���
[error] // 2??????
[error] ^
[error] C:\play-2.2.3\firstProject\app\controllers\Application.java:18: �G���[: ���̕����́A�G���R�[�f�B���Outf8�Ƀ}�b�v�ł��܂���
[error] // 2??????
[error] ^
[error] C:\play-2.2.3\firstProject\app\controllers\Application.java:18: �G���[: ���̕����́A�G���R�[�f�B���Outf8�Ƀ}�b�v�ł��܂���
[error] // 2??????
[error] ^
[error] C:\play-2.2.3\firstProject\app\controllers\Application.java:20: �G���[: ���̕����́A�G���R�[�f�B���Outf8�Ƀ}�b�v�ł��܂���
[error] parent2.name = "??X????Y";
[error] ^
[error] C:\play-2.2.3\firstProject\app\controllers\Application.java:20: �G���[: ���̕����́A�G���R�[�f�B���Outf8�Ƀ}�b�v�ł��܂���
[error] parent2.name = "??X????Y";
[error] ^
[error] C:\play-2.2.3\firstProject\app\controllers\Application.java:20: �G���[: ���̕����́A�G���R�[�f�B���Outf8�Ƀ}�b�v�ł��܂���
[error] parent2.name = "??X????Y";
[error] ^
[error] C:\play-2.2.3\firstProject\app\controllers\Application.java:20: �G���[: ���̕����́A�G���R�[�f�B���Outf8�Ƀ}�b�v�ł��܂���
[error] parent2.name = "??X????Y";
[error] ^
[error] C:\play-2.2.3\firstProject\app\controllers\Application.java:20: �G���[: ���̕����́A�G���R�[�f�B���Outf8�Ƀ}�b�v�ł��܂���
[error] parent2.name = "??X????Y";
[error] ^
[error] C:\play-2.2.3\firstProject\app\controllers\Application.java:23: �G���[: ���̕����́A�G���R�[�f�B���Outf8�Ƀ}�b�v�ł��܂���
[error] // 3??????
[error] ^
[error] C:\play-2.2.3\firstProject\app\controllers\Application.java:23: �G���[: ���̕����́A�G���R�[�f�B���Outf8�Ƀ}�b�v�ł��܂���
[error] // 3??????
[error] ^
[error] C:\play-2.2.3\firstProject\app\controllers\Application.java:23: �G���[: ���̕����́A�G���R�[�f�B���Outf8�Ƀ}�b�v�ł��܂���
[error] // 3??????
[error] ^
[error] C:\play-2.2.3\firstProject\app\controllers\Application.java:25: �G���[: ���̕����́A�G���R�[�f�B���Outf8�Ƀ}�b�v�ł��܂���
[error] parent3.name = "???h???Y";
[error] ^
[error] C:\play-2.2.3\firstProject\app\controllers\Application.java:25: �G���[: ���̕����́A�G���R�[�f�B���Outf8�Ƀ}�b�v�ł��܂���
[error] parent3.name = "???h???Y";
[error] ^
[error] C:\play-2.2.3\firstProject\app\controllers\Application.java:25: �G���[: ���̕����́A�G���R�[�f�B���Outf8�Ƀ}�b�v�ł��܂���
[error] parent3.name = "???h???Y";
[error] ^
[error] C:\play-2.2.3\firstProject\app\controllers\Application.java:25: �G���[: ���̕����́A�G���R�[�f�B���Outf8�Ƀ}�b�v�ł��܂���
[error] parent3.name = "???h???Y";
[error] ^
[error] C:\play-2.2.3\firstProject\app\controllers\Application.java:25: �G���[: ���̕����́A�G���R�[�f�B���Outf8�Ƀ}�b�v�ł��܂���
[error] parent3.name = "???h???Y";
[error] ^
[error] C:\play-2.2.3\firstProject\app\controllers\Application.java:25: �G���[: ���̕����́A�G���R�[�f�B���Outf8�Ƀ}�b�v�ł��܂���
[error] parent3.name = "???h???Y";
[error] ^
[error] C:\play-2.2.3\firstProject\app\controllers\Application.java:28: �G���[: ���̕����́A�G���R�[�f�B���Outf8�Ƀ}�b�v�ł��܂���
[error] // ?????Parent??S????????\??
[error] ^
[error] C:\play-2.2.3\firstProject\app\controllers\Application.java:28: �G���[: ���̕����́A�G���R�[�f�B���Outf8�Ƀ}�b�v�ł��܂���
[error] // ?????Parent??S????????\??
[error] ^
[error] C:\play-2.2.3\firstProject\app\controllers\Application.java:28: �G���[: ���̕����́A�G���R�[�f�B���Outf8�Ƀ}�b�v�ł��܂���
[error] // ?????Parent??S????????\??
[error] ^
[error] C:\play-2.2.3\firstProject\app\controllers\Application.java:28: �G���[: ���̕����́A�G���R�[�f�B���Outf8�Ƀ}�b�v�ł��܂���
[error] // ?????Parent??S????????\??
[error] ^
[error] C:\play-2.2.3\firstProject\app\controllers\Application.java:28: �G���[: ���̕����́A�G���R�[�f�B���Outf8�Ƀ}�b�v�ł��܂���
[error] // ?????Parent??S????????\??
[error] ^
[error] C:\play-2.2.3\firstProject\app\controllers\Application.java:28: �G���[: ���̕����́A�G���R�[�f�B���Outf8�Ƀ}�b�v�ł��܂���
[error] // ?????Parent??S????????\??
[error] ^
[error] C:\play-2.2.3\firstProject\app\controllers\Application.java:28: �G���[: ���̕����́A�G���R�[�f�B���Outf8�Ƀ}�b�v�ł��܂���
[error] // ?????Parent??S????????\??
[error] ^
[error] C:\play-2.2.3\firstProject\app\controllers\Application.java:28: �G���[: ���̕����́A�G���R�[�f�B���Outf8�Ƀ}�b�v�ł��܂���
[error] // ?????Parent??S????????\??
[error] ^
[error] C:\play-2.2.3\firstProject\app\controllers\Application.java:28: �G���[: ���̕����́A�G���R�[�f�B���Outf8�Ƀ}�b�v�ł��܂���
[error] // ?????Parent??S????????\??
[error] ^
[error] C:\play-2.2.3\firstProject\app\controllers\Application.java:28: �G���[: ���̕����́A�G���R�[�f�B���Outf8�Ƀ}�b�v�ł��܂���
[error] // ?????Parent??S????????\??
[error] ^
[error] C:\play-2.2.3\firstProject\app\controllers\Application.java:28: �G���[: ���̕����́A�G���R�[�f�B���Outf8�Ƀ}�b�v�ł��܂���
[error] // ?????Parent??S????????\??
[error] ^
[error] C:\play-2.2.3\firstProject\app\controllers\Application.java:28: �G���[: ���̕����́A�G���R�[�f�B���Outf8�Ƀ}�b�v�ł��܂���
[error] // ?????Parent??S????????\??
[error] ^
[error] C:\play-2.2.3\firstProject\app\controllers\Application.java:28: �G���[: ���̕����́A�G���R�[�f�B���Outf8�Ƀ}�b�v�ł��܂���
[error] // ?????Parent??S????????\??
[error] ^
[error] C:\play-2.2.3\firstProject\app\controllers\Application.java:28: �G���[: ���̕����́A�G���R�[�f�B���Outf8�Ƀ}�b�v�ł��܂���
[error] // ?????Parent??S????????\??
[error] ^
[error] C:\play-2.2.3\firstProject\app\controllers\Application.java:28: �G���[: ���̕����́A�G���R�[�f�B���Outf8�Ƀ}�b�v�ł��܂���
[error] // ?????Parent??S????????\??
[error] ^
[error] �G���[40��
error javac returned nonzero exit code
[error] application -

! @6jiboeem9 - Internal server error, for (GET) [/] ->

play.PlayExceptions$CompilationException: Compilation error[�G���[: ���̕����́A�G���R�[�f�B���Outf8�Ƀ}�b�v�ł��܂���]
at play.PlayReloader$$anon$1$$anonfun$reload$2$$anonfun$apply$14$$anonfun$apply$16.apply(PlayReloader.scala:304) ~[na:na]
at play.PlayReloader$$anon$1$$anonfun$reload$2$$anonfun$apply$14$$anonfun$apply$16.apply(PlayReloader.scala:304) ~[na:na]
at scala.Option.map(Option.scala:145) ~[scala-library.jar:na]
at play.PlayReloader$$anon$1$$anonfun$reload$2$$anonfun$apply$14.apply(PlayReloader.scala:304) ~[na:na]
at play.PlayReloader$$anon$1$$anonfun$reload$2$$anonfun$apply$14.apply(PlayReloader.scala:298) ~[na:na]
at scala.Option.map(Option.scala:145) ~[scala-library.jar:na]

[success] Total time: 14 s, completed 2014/09/21 12:13:09


WEBブラウザの情報

Compilation error
�G���[: ���̕����́A�G���R�[�f�B���Outf8�Ƀ}�b�v�ł��܂���
In C:\play-2.2.3\firstProject\app\controllers\Application.java at line 13.
10public class Application extends Controller {
11
12 public static Result index() {
13 // 1�Ԗڂ�ۑ�

14 Parent parent1 = new Parent();
15 parent1.name = "�V�h���Y";
16 parent1.save();
17

18 // 2�Ԗڂ�ۑ�

以上となります。何卒宜しく御願い致します。

  • 本件とは関係ないコマンドプロンプトでの文字化けの部分ですが、まず、以前提案したchcp 65001をまだ実施されている場合は止めてください。そのうえで、 play の前に 「set _JAVA_OPTIONS="-Dfile.encoding=SJIS"」(カギ括弧不要、1行のコマンド)としてからやってみてください。 -
  • この setはコマンドプロンプトを開いている間は有効なので、一度実行したらコマンドプロンプトを開き直したりしない限りは指定しなくて構いません。 -

回答

まず先に私の環境では、コメントにあげた

set _JAVA_OPTIONS="-Dfile.encoding=SJIS"

という環境変数指定をplayの前に指定することで、コマンドプロンプト上のエラーの文字化けは改善しました。

副作用(?)として

  • コマンドプロンプトからテキストをコピーするとき、(見えない特殊文字が行末に出力されていることがあるようで)、選択した範囲より短くコピーされる
  • 出力されてる日本語エラーメッセージも、後半が重複文字化けのようなおかしい感じに(javaがutf-88分のバッファサイズとってShift-JIS分しか使ってないからな気がしますけど、残念な感じですね)
  • ブラウザ画面もエラーメッセージ(Shift-JIS)とソース(utf-8)が混在する画面ではどちらかが化ける。

というのがあります。
Play Frameworkは今回初めて触ったのでもっといい解決方法があるのかもしれませんが、とりあえずエラーメッセージは読めるようになったので。

なお、システム環境変数とかユーザー環境変数に指定するのは影響が大きいと思うので、毎回実行する方がいいかなと、思います。( Play Frameworkの build.bat を修正するというの手もありそうですが説明はしません )


エラーの方ですが、ためしに ソースをShift-JISで保存したら以下のエラーがでました。

[info] Compiling 1 Java source to C:\play\firstproject\target\scala-2.10\classes...
[error] C:\play\firstproject\app\controllers\Application.java:14: エラー: この文字は、エンコーディングutf8にマップできま
せんングutf8にマップできませんvできませんワせんん
[error]         // 1??????
[error]             ^
[error] C:\play\firstproject\app\controllers\Application.java:14: エラー: この文字は、エンコーディングutf8にマップできま

エラー指定されている箇所、中に「utf8」という文字を含んでいるところなどから見て、同様のエラーが出ていると思います。
このエラーはApplication.javaをutf8で保存し直してrunしたらなくなりました(insertまで実行されました)ので、
あなたのソースはShiftJISだとか別の文字コードで保存されている可能性が高いです。

utf-8でもBOM付き/BOMなしという違いもありますので、そのあたりも気を付けて保存している文字コードを再度確認してください。
また実行しているファイルと編集しているファイルが同じかどうかも注意が必要ですね。

このあたり文字コードを気にしないといけない状況ではテキストエディタはサクラエディタを利用されるとよいかと思います。サクラエディタで開くと右下に文字コードが表示されます。
(メインのテキストエディタは違うの使ってるんですけど、この日本語処理の安心感があるのでサクラエディタは捨てられないんですよね…)

このあたりは好みがあるので強くはお勧めしませんが、もしメモ帳で作業されているならメモ帳はutf-8はBOM付きだった気がするので他のテキストエディタを検討してください。

編集 履歴 (0)
  • とても、ていねい親切な説明ありがとう御座います。おかげさまで、こちらの@IT様のPlayframework2の講座を全部やりとげてみようと言う気になります。途中で投げ出さなくて良かったです。 -
  • ■あなたのソースはShiftJISだとか別の文字コードで保存されている可能性が高いです。
    ■ご指摘の通りでした。Aplication.javaがSJISのままでした。
    さくらエディタの右下を注意深く見ていたらUTF-8に変換したはずのソースがSJISになっていたので、文字を変換後に、保存して(その時は文字化けしていても)開き直すと文字化けは治っていました。
    おかげさまで原因解明ができました。
    -
  • ■私も、さくらエディタを使っているのですが、SJISをUTF-8に変換した後は、文字化け状態でも、そのまま保存してから、FILEを開き直すと文字化け無しでキレイに表示されるのがコツと言うのが自分で解り、とても良かったです。ご報告です。 -
  • 解決できてよかったです。
    できたら質問の方のパッチも受け入れてください(質問文が長くなってしまっていたので、私の方で同様のエラーを少し省略してみました。)
    -
ウォッチ

この質問への回答やコメントをメールでお知らせします。