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

时间:2015-02-26 15:01:48

标签: java playframework playframework-2.0 playframework-2.2 playframework-2.3

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

  

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

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

非常感谢你们。

编辑以下是完整的堆栈跟踪

  

java.lang.RuntimeException:字节455周围的格式错误的输入           在scala.sys.package $ .error(package.scala:27)           在scala.Predef $ .error(Predef.scala:142)           at sbinary.JavaUTF $ StringFormat $ .malformed $ 1(javaprotocol.scala:109)           at sbinary.JavaUTF $ StringFormat $ .reads(javaprotocol.scala:142)           at sbinary.JavaUTF $ StringFormat $ .reads(javaprotocol.scala:100)           在sbinary.Operations $ .read(operations.scala:9)           在sbinary.Generic $$ anon $ 5.reads(generic.scala:71)           在sbinary.Operations $ .read(operations.scala:9)           在sbinary.Generic $ CollectionFormat $$ anonfun $读取$ 1.apply(generic.scala:23)           在sbinary.Generic $ CollectionFormat $$ anonfun $读取$ 1.apply(generic.scala:23)           在scala.collection.TraversableLike $$ anonfun $ map $ 1.apply(TraversableLike.scala:244)           在scala.collection.TraversableLike $$ anonfun $ map $ 1.apply(TraversableLike.scala:244)           在scala.collection.immutable.Range.foreach(Range.scala:141)           在scala.collection.TraversableLike $ class.map(TraversableLike.scala:244)           在scala.collection.AbstractTraversable.map(Traversable.scala:105)           at sbinary.Generic $ CollectionFormat.reads(generic.scala:23)           在sbinary.Operations $ .read(operations.scala:9)           在sbinary.Generic $$ anon $ 2.reads(generic.scala:48)           在sbinary.Generic $$ anon $ 2.reads(generic.scala:46)           在sbinary.Operations $ .read(operations.scala:9)           在sbinary.BasicTypes $$ anon $ 4.reads(standardtypes.scala:29)           at sbinary.BasicTypes $$ anon $ 4.reads(standardtypes.scala:24)           在sbinary.Operations $ .read(operations.scala:9)           在sbinary.Generic $ CollectionFormat $$ anonfun $读取$ 1.apply(generic.scala:23)           在sbinary.Generic $ CollectionFormat $$ anonfun $读取$ 1.apply(generic.scala:23)           在scala.collection.TraversableLike $$ anonfun $ map $ 1.apply(TraversableLike.scala:244)           在scala.collection.TraversableLike $$ anonfun $ map $ 1.apply(TraversableLike.scala:244)           在scala.collection.immutable.Range.foreach(Range.scala:141)           在scala.collection.TraversableLike $ class.map(TraversableLike.scala:244)           在scala.collection.AbstractTraversable.map(Traversable.scala:105)           at sbinary.Generic $ CollectionFormat.reads(generic.scala:23)           在sbinary.Operations $ .read(operations.scala:9)           在sbinary.Generic $$ anon $ 2.reads(generic.scala:48)           在sbinary.Generic $$ anon $ 2.reads(generic.scala:46)           在sbinary.Operations $ .read(operations.scala:9)           在sbinary.Generic $$ anon $ 9.reads(generic.scala:123)           在sbinary.Operations $ .read(operations.scala:9)           在sbinary.BasicTypes $$ anon $ 4.reads(standardtypes.scala:28)           at sbinary.BasicTypes $$ anon $ 4.reads(standardtypes.scala:24)           在sbinary.Operations $ .read(operations.scala:9)           在sbt.Sync $$ anonfun $ readUncaught $ 1.apply(Sync.scala:89)           在sbt.Sync $$ anonfun $ readUncaught $ 1.apply(Sync.scala:88)           在sbt.Using.apply(Using.scala:25)           在sbt.IO $$ anonfun $ gzipFileIn $ 1 $$ anonfun $ apply $ 7.apply(IO.scala:783)           在sbt.IO $$ anonfun $ gzipFileIn $ 1 $$ anonfun $ apply $ 7.apply(IO.scala:782)           在sbt.Using.apply(Using.scala:25)           在sbt.IO $$ anonfun $ gzipFileIn $ 1.apply(IO.scala:782)           在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 $ .readUncaught(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)           在com.typesafe.sbt.web.SbtWeb $ .syncMappings(SbtWeb.scala:369)           在com.typesafe.sbt.web.SbtWeb $$ anonfun $ projectSettings $ 30.apply(SbtWeb.scala:182)           在com.typesafe.sbt.web.SbtWeb $$ anonfun $ projectSettings $ 30.apply(SbtWeb.scala:182)           在scala.Function1 $$ anonfun $ compose $ 1.apply(Function1.scala:47)           at sbt。$ tilde $ greater $$ anonfun $$ u2219 $ 1.apply(TypeFunctions.scala:42)           在sbt.std.Transform $$ anon $ 4.work(System.scala:64)           在sbt.Execute $$ anonfun $ submit $ 1 $$ anonfun $ apply $ 1.apply(Execute.scala:237)           在sbt.Execute $$ anonfun $ submit $ 1 $$ anonfun $ apply $ 1.apply(Execute.scala:237)           在sbt.ErrorHandling $ .wideConvert(ErrorHandling.scala:18)           在sbt.Execute.work(Execute.scala:244)           在sbt.Execute $$ anonfun $ submit $ 1.apply(Execute.scala:237)           在sbt.Execute $$ anonfun $ submit $ 1.apply(Execute.scala:237)           at sbt.ConcurrentRestrictions $$ anon $ 4 $$ anonfun $ 1.apply(ConcurrentRestrictions.scala:160)           在sbt.CompletionService $$ anon $ 2.call(CompletionService.scala:30)           在java.util.concurrent.FutureTask.run(FutureTask.java:262)           at java.util.concurrent.Executors $ RunnableAdapter.call(Executors.java:471)           在java.util.concurrent.FutureTask.run(FutureTask.java:262)           在java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)           at 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:Unexpected   exception [RuntimeException:字节455周围格式错误的输入]           at 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]           在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:格式错误的输入   字节455           在scala.sys.package $ .error(package.scala:27)〜[scala-library-2.11.1.jar:na]           在scala.Predef $ .error(Predef.scala:142)〜[scala-library-2.11.1.jar:na]           at sbinary.JavaUTF $ StringFormat $ .malformed $ 1(javaprotocol.scala:109)   〜[NA:NA]           at sbinary.JavaUTF $ StringFormat $ .reads(javaprotocol.scala:142)〜[na:na]           at sbinary.JavaUTF $ StringFormat $ .reads(javaprotocol.scala:100)〜[na:na] [warn] play - 在invoker init上找不到应用程序

0 个答案:

没有答案