Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
    qiudaozhang
    @qiudaozhang
    package to a jar ,run it ,say java.lang.ClassNotFoundException: play.core.server.ProdServerStart
    how to resolve it ?
    Alexis Hernandez
    @AlexITC
    you likely got a binary incompatibility dependency in your classpath, run sbt evicted to try finding that out
    makefernandez
    @makefernandez
    brabo-hi
    @brabo-hi
    Hi all, by default AllowedHostsFilterreturns 400 how can i override this and redirect to another domain instead ?
    makefernandez
    @makefernandez

    Hi Guys! Im working on eclipse 2.8.13 on scala 2.13 and i want to connecto to sql server my application.conf is

    db.default.driver=com.microsoft.sqlserver.jdbc.SQLServerDriver
    db.default.url="jdbc:sqlserver://127.0.0.1:1433;databaseName=PRE_PROD;"
    db.default.user="sa"
    db.default.password="test12"

    return Cannot initialize to database [default] ondb.default.url
    seem to be ok , any ideas?
    library dependencie
    libraryDependencies += "com.microsoft.sqlserver" % "mssql-jdbc" % "11.1.1.jre18-preview"

    Jeremias
    @Dfic_twitter
    Can I use gRPC with Scala 2.13?
    makefernandez
    @makefernandez
    @makefernandez
    Hi! someone have or had error when trying connect to sql server from play 2.8.13 on eclipse java project?
    https://stackoverflow.com/questions/72290735/for-sqlserver-please-explicitly-choose-either-sqlserver16-or-sqlserver17-as-the
    NKM
    @nkmittal
    For XML handling is there a Scala library which allows validation of incoming XML just like we do for JSON (using case classes and libraries such as io.circe) ?
    I am using Play 2.6 and Scala 2.12
    Răzvan Rotaru
    @roti
    Are old jar files which were previously hosted by Bintray available somewhere? I'm thinking of Play Framework 2.1 and 2.2.
    learnerjava830
    @learnerjava830
    I searched for several hours but couldn't understand the differences between Lagom Vs Play vs Spring/Tomcat? Can someone please kindly help me to understand with an example
    sharonmary
    @sharonmary:matrix.org
    [m]
    Good news
    Put an end to your financial problems,now you can start earning with your PC or mobile phone, PAY INSTANTLY!
    So far I’ve made over €5,500 in last 12days of doing this!(HOW) info inbox me the directly Telegram
    👇👇
    https://t.me/+klV1ANnp3q02YjU0
    learnerjava830
    @learnerjava830
    Can someone some demo projects which runs current play framework ?
    Alexis Hernandez
    @AlexITC
    learnerjava830
    @learnerjava830

    How to make the language as English in this javascript app?

    I come across this beautiful electron app - https://github.com/c10342/player The locale is being configured in player-master\src\renderer\lang\index.js

    The toggle of language works fine on clicking language button from chinese to english.

    Is it possible to make the default language as english on startup? i tried with index.js but not successfull.

    Thanks in advance

    learnerjava830
    @learnerjava830
    success and found the solution
    // file player-master\src\renderer\lang\index.js
    if(!locale){
    locale = 'en'
    }
    learnerjava830
    @learnerjava830

    Which Approach Is Best for Processing a huge CSV file?

    I searched the internet on how to processing huge csv file via Java

    I found out

    a. Spring Batch
    b. Apache Nifi
    c. Apache Mina
    d. Kafka

    Basically i want to insert millions of records after validation into DB.

    Which one is preferable as finally the data is to be committed to the DB very quickly or fast...

    Note: Hundreds or Thousands of users will do the similar operation at the same time and system should not crash

    Thanks

    Alexis Hernandez
    @AlexITC
    assuming you are using play, look into akka-streams
    learnerjava830
    @learnerjava830
    Can somone please kindly share me some real time deadlock use cases - real time example - not just like one resource held another and another tries to acquire the lock and causes deadlock.
    learnerjava830
    @learnerjava830
    what are the differences between Encache vs Spring Cache?
    learnerjava830
    @learnerjava830

    Five Cases Of Encoding - Which One is Best Approach

    I have a password which has plus value in the front and fails or missed out when it is sends as a request parameter. On reading/searching internet i observed we can solve the problem via the following

    a. encode in front-end - (ex: https://stackoverflow.com/questions/53546691/preserving-plus-sign-in-urlencoded-http-post-request)
    b. encode in back-end - (ex: extends ClientHttpRequestInterceptor and add functionality)
    c. convert the password to base64url in front-end and pass and do the decode in the back-end
    d. send the password in request body instead of request parameter
    e. send the hash value instead of actual value as hash will not have any plus or special characters

    Thanks

    learnerjava830
    @learnerjava830
    What is the best open source tool/software for performance verfiying to identify performance bugs in Java?
    learnerjava830
    @learnerjava830

    Text Over Image with Java Web Application

    https://www.baeldung.com/java-add-text-to-image
    https://www.geeksforgeeks.org/java-program-to-add-text-to-an-image-in-opencv/

    I want to display an image in the web application where user can add text on the image.

    Finally i need to save in DB, later user has to view the editable text and edit if required

    How to achieve this in java web application - UI? back-end? DB (json or image or co-ordinates) ?

    Does any opensource can be used in all the levels? Can someone suggest some comments/feedback

    learnerjava830
    @learnerjava830

    URL url = new URL(...); --> FAILS here when i try to download a https image - "javax.imageio.IIOException ... "Can't get input stream from URL!""

    Note:
    URL works from browser
    URL works in standalone program
    URL fails when used in java web application

    Question:

    1. Is any special treatment required to access https image from web app?
    2. How does it works in standalone program but not via web app though the certs are not installed in local machine?

    What is the correct/right approach and what is the underlying differences?

    Thanks

    Ben Zoller
    @BennyMcBenBen

    Hello. Is there any guidance on using a Scala 2.13 newtype as a path segment parameter?

    package object model {
      @newtype case class FileId(raw: String)
    }

    and the routes file contains

    GET   /files/:id   controllers.HomeController.getFileContents(id: model.FileId)

    I wrote a custom binder but I get this error

    [error] /play-scala-seed/conf/routes:8:1: class type required but model.FileId.Type found
    [error] GET /files/:id controllers.HomeController.getFileContents(id: model.FileId)

    I have tried using zio-prelude too but I get a similar error. Has anyone else tried this?

    Alexis Hernandez
    @AlexITC
    I have done this with value classes, there is a chance it could work with newtype https://github.com/AlexITC/crypto-coin-alerts/blob/develop/alerts-server/app/com/alexitc/coinalerts/commons/PlayBinders.scala
    gitexp2050
    @gitexp2050
    When i searched for best open source application for java web application development i come across 1. Quarkus (https://quarkus.io/) 2. Open Liberty (https://openliberty.io/) 3. Spring Boot with Webflux (https://docs.spring.io/spring-framework/docs/current/reference/html/web-reactive.html) 4. Play Framework (https://www.playframework.com/).....What are the differences with these and how to decide which one is the best among all?
    gitexp2050
    @gitexp2050
    What are the differences between Play vs OpenLiberty vs Quarkus vs Spring Boot??? How Play is going to differ from Quarkus. Spring Boot and OpenLiberty
    Derya Aydede
    @Derya
    hello! what's the best place to get help with play? once upon a time long ago, there used to be this really great setup where i could ask questions on here and some really wonderful delightful people would help me out. i did try the play framework discord but it seems to be dead in there.
    gitexp2050
    @gitexp2050
    How to process millions of records one by one...What is the quickest way ? Basically need to do search always the table which has millions of records...
    Alexis Hernandez
    @AlexITC
    @Derya discord is the official chat now
    gitexp2050
    @gitexp2050

    I have 100 queries to run in a single query and print the result as time taken

    for example,
    select from employee, select from employee_address, select * from sales

    How to combine all the queries and print the time taken with a single query?

    Not programming but in MySQL query, need the report/summary of execution time with one query

    Thanks

    gitexp2050
    @gitexp2050

    I'm new beginner in java and have a assignment to do heap and thread dump analysis and find out the bug and exact root cause..basically a demo to be shown

    Can someone guide me where i can get some samples of Thread and Heap Dump with issues, steps to find the actual issue or root cause in the dumps ?

    Bug identification with thread dump and heap dump which has issues.

    Joesan
    @joesan
    Is there a way to re-use package names in the routes? Kind of like a place holder that can resolve itself during compilation?
    For example., I declare a constant package name like default = com.example.myapp.controllers
    and then use for other routes definition like {{default}}.MyAppController.myFunc(id: Int)
    Igor Tovstopyat-Nelip
    @igortn
    How do I access Configuration in a (static) twirl template? Is it possible to pass it as a constructor parameter so it would be injected?
    Matthias Kurz
    @mkurz
    @gitexp2050 @joesan @igortn This gitter channel is abandoned by the Play team, please use Discord or GitHub discussions, see https://www.playframework.com/get-involved
    gitexp2050
    @gitexp2050
    can anyone help me with a javascript clarification? please kindly ping me
    Franz Granlund
    @franzgranlund
    Hi! Will Play 2.9.x still use the non-BSL (Business Source License 1.1) Akka license? Play 2.8.x still uses Akka 2.6 that is under Apache license, right? The license change for Akka really screws up things :-/
    Franz Granlund
    @franzgranlund
    I got an answer to my question on discord. gmethvin said: ” Yes. Play will continue using Akka 2.6.x in Play 2.9.x. There are no plans to ever depend on a BSL-licensed Akka. If Apache Pekko gains traction then Play will likely switch to Pekko in a future Play release; the rest of the OSS community will likely do the same.”
    gitexp2050
    @gitexp2050
    any notetaking app build using play framework? please help me with few links to refer?
    karliesmith569
    @karliesmith569
    Gopay is an online payment processor whose job is to send submitted funds straight to the intended recipient. It offers more than 30 payment options in 13 different currencies, making it incredibly flexible. Simply register for an account and preserve all of your payment options. You may read the entire post on https://casinoonline-cz.com/platba/gopay/ to find out everything you need to know about making deposits at Gopay Casino. At this time, the GoPay payment gateway is being supported by an increasing number of casinos. This improves player security while also giving players more insight into where their money is going. No online casino wants you to struggle with deposits and withdrawals rather than taking pleasure in the excitement of your favourite games, after all.
    gitexp2050
    @gitexp2050
    Which is the best place to store image and server front-end quickly or fastly? Need to display 100 images in front-end
    1. S3
    2. Firebase
    3. DB
    4. Application Server folder webapps/project
    5. Shared folder common to application servers
    6. Folder in the Application Server outside the project (c:\ or d: drives)
    7. How many API calls to be sent to the server ? Each Image Each API call?
    Ginny
    @ginnyvt
    Hi all! I am pretty new to Scala. I have 2 JSON data sets, and how can I convert them into appropriate models?
    {"departments" :  [
            {
                "id": 141754,
                "name": "Administration",
            },
            {
                "id": 141750,
                "name": "IT",
            }
    ]
    };
    {"employees" :  [
            {
                "id": 123,
                "name": "John Doe",
                "departments": [141754, 141750]
            },
            {
                "id": 456,
                "name": "Jane Doe",
                 "departments": [141750]
            }
    ]
    };
    Aidar
    @SunPj
    Hi. I have created a play-scala library which might be helpful for sketching the apps.
    https://github.com/SunPj/sharest
    I am going to add more things like http4s, slick support, etc. Just wanted to get some feedback if someone is interested in this kind of stuff. Thanks