Giter Site home page Giter Site logo

scala-webapp's People

Contributors

suaaa7 avatar

Watchers

 avatar

scala-webapp's Issues

CSRF

[warn] p.filters.CSRF - [CSRF] Check failed because no or invalid token found in body for /pictures
[warn] p.filters.CSRF - [CSRF] Check failed with NoTokenInBody for /pictures

mysqlとの接続エラー

Cannot connect to database [default]

In /opt/scala/mojipic/target/scala-2.12/classes/application.conf:11
7play.filters.headers.contentSecurityPolicy = null
8
9# JDBC settings
10db.default.driver="com.mysql.jdbc.Driver"
11db.default.url="jdbc:mysql://192.168.99.100:3306/mojipic"
12db.default.username="root"
13db.default.password="mysql"
14
15# Connection Pool settings

sbt runで起動できない

[root@7f7d2f4e86c2 mojipic]# sbt
[info] Loading settings for project mojipic-build from plugins.sbt ...
[info] Loading project definition from /opt/scala/mojipic/project
[info] Updating ProjectRef(uri("file:/opt/scala/mojipic/project/"), "mojipic-build")...

Request Payloadについて

以下が確認できなかったが大丈夫か

------WebKitFormBoundaryYmZSzh2KcoT1ciEg
Content-Disposition: form-data; name="overlaytext"

LGTM
------WebKitFormBoundaryYmZSzh2KcoT1ciEg
Content-Disposition: form-data; name="overlaytextsize"

60
------WebKitFormBoundaryYmZSzh2KcoT1ciEg
Content-Disposition: form-data; name="file"; filename="test.jpg"
Content-Type: image/jpeg


------WebKitFormBoundaryYmZSzh2KcoT1ciEg--

importに関して

javaのライブラリとscalaのライブラリとで一行空行を入れるべきなのか?

convert失敗

[error] application - Fail to convert.
org.im4java.core.CommandException: java.io.FileNotFoundException: convert
        at org.im4java.core.ImageCommand.run(ImageCommand.java:219)
        at infrastructure.actor.ConvertPictureActor.invokeCmd(ConvertPictureActor.scala:82)
        at infrastructure.actor.ConvertPictureActor.$anonfun$convert$1(ConvertPictureActor.scala:50)
        at scala.runtime.java8.JFunction0$mcV$sp.apply(JFunction0$mcV$sp.java:23)
        at scala.util.Try$.apply(Try.scala:213)
        at infrastructure.actor.ConvertPictureActor.infrastructure$actor$ConvertPictureActor$$convert(ConvertPictureActor.scala:50)
        at infrastructure.actor.ConvertPictureActor$$anonfun$receive$1.$anonfun$applyOrElse$3(ConvertPictureActor.scala:39)
        at infrastructure.actor.ConvertPictureActor$$anonfun$receive$1.$anonfun$applyOrElse$3$adapted(ConvertPictureActor.scala:39)
        at scala.util.Success.foreach(Try.scala:253)
        at scala.concurrent.Future.$anonfun$foreach$1$adapted(Future.scala:229)
Caused by: java.io.FileNotFoundException: convert
        at org.im4java.process.ProcessStarter.searchForCmd(ProcessStarter.java:661)
        at org.im4java.process.ProcessStarter.startProcess(ProcessStarter.java:399)
        at org.im4java.process.ProcessStarter.run(ProcessStarter.java:312)
        at org.im4java.core.ImageCommand.run(ImageCommand.java:215)
        at infrastructure.actor.ConvertPictureActor.invokeCmd(ConvertPictureActor.scala:82)
        at infrastructure.actor.ConvertPictureActor.$anonfun$convert$1(ConvertPictureActor.scala:50)
        at scala.runtime.java8.JFunction0$mcV$sp.apply(JFunction0$mcV$sp.java:23)
        at scala.util.Try$.apply(Try.scala:213)
        at infrastructure.actor.ConvertPictureActor.infrastructure$actor$ConvertPictureActor$$convert(ConvertPictureActor.scala:50)
        at infrastructure.actor.ConvertPictureActor$$anonfun$receive$1.$anonfun$applyOrElse$3(ConvertPictureActor.scala:39)

yumのバージョンが古い

以下でテキストと同じバージョンが見つからない

yum search --showduplicates ImageMagick

yumを更新する必要がありそう

play.api.cacheについて

[info] Compiling 12 Scala sources and 1 Java source to /opt/scala/mojipic/target/scala-2.12/classes ...
[error] /opt/scala/mojipic/app/controllers/PictureController.scala:9:17: object cacheApi is not a member of package play.api
[error] import play.api.cacheApi.SyncCacheApi
[error]                 ^
[error] /opt/scala/mojipic/app/controllers/PictureController.scala:21:14: not found: type SyncCacheApi
[error]   val cache: SyncCacheApi,
[error]              ^
[error] two errors found
[error] (Compile / compileIncremental) Compilation failed
[error] Total time: 3 s, completed Mar 3, 2019 4:14:38 PM

sbt runでの警告

[warn] There may be incompatibilities among your library dependencies; run 'evicted' to see detailed eviction warnings.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.