我决定在ubuntu机器上移动我的play框架项目 .
localhost 上,项目运行完美,但在 Ubuntu 上,我遇到以下问题:

[RuntimeException:字节455周围格式错误的输入]

我知道这意味着有一个字符集问题(see here),但我该如何管理呢?或者,至少,我可以在代码中检测错误的确切位置吗?

非常感谢你们 .

Edit 这是完整的堆栈跟踪

java.lang.RuntimeException:在salaary.JavaUTF $ StringFormat $的scala.Predef $ .error(Predef.scala:142)scala.sys.package $ .error(package.scala:27)的字节455周围输入格式错误 . sbinary.JavaUTF $ StringFormat $ .reads(javaprotocol.scala:142)sbinary.JavaUTF $ StringFormat $ .reads(javaprotocol.scala:100)sbinary.Operations $ .read(操作)格式错误$ 1(javaprotocol.scala:109) .scala:9)at sbinary.Generic $$ anon $ 5.reads(generic.scala:71)at sbinary.Operations $ .read(operations.scala:9)at sbinary.Generic $ CollectionFormat $$ anonfun $ read $ 1.apply (generic.scala:23)at sbinary.Generic $ CollectionFormat $$ anonfun $在scala.collection.TraversableLike $$ anonfun $ map $ 1.apply(TraversableLike.scala:244)处读取$ 1.apply(generic.scala:23) scala.collection.TraversableLike $$ anonfun $ map $ 1.apply(TraversableLike.scala:244)at scala.collection.immutable.Range.foreach(Range.scala:141)at scala.collection.TraversableLike $ class.map(TraversableLike . scala:244)at scala.collection.AbstractTraversable.map(Traversab le.scala:105)at sbinary.Generic $ CollectionFormat.reads(generic.scala:23)at sbinary.Operations $ .read(operations.scala:9)at sbinary.Generic $$ anon $ 2.reads(generic.scala: 48)at sbinary.Generic $$ anon $ 2.reads(generic.scala:46)at sbinary.Operations $ .read(operations.scala:9)at sbinary.BasicTypes $$ anon $ 4.reads(standardtypes.scala:29) at sbinary.BasicTypes $$ anon $ 4.reads(standardtypes.scala:24)at sbinary.Operations $ .read(operations.scala:9)at sbinary.Generic $ CollectionFormat $$ anonfun $ read $ 1.apply(generic.scala: 23)在sbinary.Generic $ CollectionFormat $$ anonfun $读取$ 1.apply(generic.scala:23)at scala.collection.TraversableLike $$ anonfun $ map $ 1.apply(TraversableLike.scala:244)at scala.collection.TraversableLike $$ anonfun $ map $ 1.apply(TraversableLike.scala:244)at scala.collection.immutable.Range.foreach(Range.scala:141)at scala.collection.TraversableLike $ class.map(TraversableLike.scala:244)at at scala.collection.AbstractTraversable.map(Traversable.scala:105)at sbinary.Generic $ CollectionFormat.r eads(generic.scala:23)at sbinary.Operations $ .read(operations.scala:9)at sbinary.Generic $$ anon $ 2.reads(generic.scala:48)at sbinary.Generic $$ anon $ 2.reads( generic.scala:46)at sbinary.Operations $ .read(operations.scala:9)at sbinary.Generic $$ anon $ 9.reads(generic.scala:123)at sbinary.Operations $ .read(operations.scala:9) )sbinary.BasicTypes $$ anon $ 4.reads(standardtypes.scala:28)at sbinary.BasicTypes $$ anon $ 4.reads(standardtypes.scala:24)at sbinary.Operations $ .read(operations.scala:9)at sbt.Sync $$ anonfun $ readUncaught $ 1.apply(Sync.scala:89)at sbt.Sync $$ anonfun $ readUncaught $ 1.apply(Sync.scala:88)at sbt.Using.apply(Using.scala:25) at sbt.IO $$ anonfun $ gzipFileIn $ 1 $$ anonfun $ apply $ 7.apply(IO.scala:783)at sbt.IO $$ anonfun $ gzipFileIn $ 1 $$ anonfun $ apply $ 7.apply(IO.scala:782) at sbt.Using.apply(Using.scala:25)at sbt.IO $$ anonfun $ gzipFileIn $ 1.apply(IO.scala:782)at sbt.IO $$ anonfun $ gzipFileIn $ 1.apply(IO.scala:781) )sbt.Using.apply(Using.scala:25)at sbt.IO $ .gzipFileIn(IO.scala:781)at sbt.Sync $ .r ebUncaught(Sync.scala:88)at sbt.Sync $ .readInfo(Sync.scala:84)at sbt.Sync $$ anonfun $ apply $ 1.apply(Sync.scala:29)at sbt.Sync $$ anonfun $ apply $ 1.apply(Sync.scala:23)at com.typesafe.sbt.web.SbtWeb $ .syncMappings(SbtWeb.scala:369)at com.typesafe.sbt.web.SbtWeb $$ anonfun $ projectSettings $ 30.apply(SbtWeb .scala:182)at com.typesafe.sbt.web.SbtWeb $$ anonfun $ projectSettings $ 30.apply(SbtWeb.scala:182)at scala.Function1 $$ anonfun $ compose $ 1.apply(Function1.scala:47)at at sbt . $ tilde $ greater $$ anonfun $$ u2219 $ 1.apply(TypeFunctions.scala:42)at sbt.std.Transform $$ anon $ 4.work(System.scala:64)at sbt.Execute $$ anonfun $ submit $ 1 $$ anonfun $在sbt.Execute $$ anonfun $ apply $ 1 apply(Execute.scala:237 .scala:18)at sbt.Execute.work(Execute.scala:244)at sbt.Execute $$ anonfun $ submit $ 1.apply(Execute.scala:237)at sbt.Execute $$ anonfun $ submit $ 1.apply( Execute.scala:237)atsbt.ConcurrentRestrictions $$ anon $ 4 $$ anonfun $ 1.apply(ConcurrentRestrictions.scala:160)at sbt.CompletionService $$ anon $ 2.call(CompletionService.scala:30)at java.util.concurrent.FutureTask.run(FutureTask . java:262)at java.util.concurrent.Executors $ RunnableAdapter.call(Executors.java:471)at java.util.concurrent.FutureTask.run(FutureTask.java:262)at java.util.concurrent.ThreadPoolExecutor.runWorker (ThreadPoolExecutor.java:1145)java.util.concurrent.ThreadPoolExecutor $ Worker.run(ThreadPoolExecutor.java:615)at java.lang.Thread.run(Thread.java:745)[error](web-assets:assets )字节455 [错误]应用程序周围输入错误 - ! @ 6lap9p99l - 内部服务器错误,对于(GET)[/] - > play.PlayExceptions $ UnexpectedException:意外异常[RuntimeException:字节455周围格式错误的输入]在play.PlayReloader $$ anon $ 1 $$ anonfun $ play $ PlayReloader $$ anon $$ taskFailureHandler $ 1.apply(PlayReloader.scala:237)〜[na:na] at play.PlayReloader $$ anon $ 1 $$ anonfun $ play $ PlayReloader $$ anon $$ taskFailureHandler $ 1.apply(PlayReloader.scala:230 )〜[na:na] at scala.Option.map(Option.scala:145)〜[scala-library-2.11.1.jar:na] at play.PlayReloader $$ anon $ 1.play $ PlayReloader $$ anon $ $ taskFailureHandler(PlayReloader.scala:230)〜[na:na] at play.PlayReloader $$ anon $ 1 $$ anonfun $ reload $ 2.apply(PlayReloader.scala:90)〜[na:na]引起:java.lang .RuntimeException:scala.Predef $ .error(predef.scala:scala.sys.package $ .error(package.scala:27)〜[scala-library-2.11.1.jar:na]的字节455周围格式错误的输入142)〜[scala-library-2.11.1.jar:na] at sbinary.JavaUTF $ StringFormat $ .malformed $ 1(javaprotocol.scala:109)〜[na:na] at sbinary.JavaUTF $ StringForma t $ .reads(javaprotocol.scala:142)〜[na:na]在sbinary.JavaUTF $ StringFormat $ .reads(javaprotocol.scala:100)〜[na:na] [warn] play - 在invoker init上找不到应用程序