https://kotlinlang.org logo
Docs
Join the conversationJoin Slack
Channels
100daysofcode
100daysofkotlin
100daysofkotlin-2021
advent-of-code
aem
ai
alexa
algeria
algolialibraries
amsterdam
android
android-architecture
android-databinding
android-studio
androidgithubprojects
androidthings
androidx
androidx-xprocessing
anime
anko
announcements
apollo-kotlin
appintro
arabic
argentina
arkenv
arksemdevteam
armenia
arrow
arrow-contributors
arrow-meta
ass
atlanta
atm17
atrium
austin
australia
austria
awesome-kotlin
ballast
bangladesh
barcelona
bayarea
bazel
beepiz-libraries
belgium
berlin
big-data
books
boston
brazil
brikk
budapest
build
build-tools
bulgaria
bydgoszcz
cambodia
canada
carrat
carrat-dev
carrat-feed
chicago
chile
china
chucker
cincinnati-user-group
cli
clikt
cloudfoundry
cn
cobalt
code-coverage
codeforces
codemash-precompiler
codereview
codingame
codingconventions
coimbatore
collaborations
colombia
colorado
communities
competitive-programming
competitivecoding
compiler
compose
compose-android
compose-desktop
compose-hiring
compose-ios
compose-mp
compose-ui-showcase
compose-wear
compose-web
connect-audit-events
corda
cork
coroutines
couchbase
coursera
croatia
cryptography
cscenter-course-2016
cucumber-bdd
cyprus
czech
dagger
data2viz
databinding
datascience
dckotlin
debugging
decompose
decouple
denmark
deprecated
detekt
detekt-hint
dev-core
dfw
docs-revamped
dokka
domain-driven-design
doodle
dsl
dublin
dutch
eap
eclipse
ecuador
edinburgh
education
effective-kotlin
effectivekotlin
emacs
embedded-kotlin
estatik
event21-community-content
events
exposed
failgood
fb-internal-demo
feed
firebase
flow
fluid-libraries
forkhandles
forum
fosdem
fp-in-kotlin
framework-elide
freenode
french
fritz2
fuchsia
functional
funktionale
gamedev
ge-kotlin
general-advice
georgia
geospatial
german-lang
getting-started
github-workflows-kt
glance
godot-kotlin
google-io
gradle
graphic
graphkool
graphql
graphql-kotlin
graviton-browser
greece
grpc
gsoc
gui
hackathons
hacktoberfest
hamburg
hamkrest
helios
helsinki
hexagon
hibernate
hikari-cp
hire-me
hiring
hongkong
hoplite
http4k
hungary
hyderabad
image-processing
india
indonesia
inkremental
intellij
intellij-plugins
intellij-tricks
internships
introduce-yourself
io
ios
iran
israel
istanbulcoders
italian
jackson-kotlin
jadx
japanese
jasync-sql
java-to-kotlin-refactoring
javadevelopers
javafx
javalin
javascript
jdbi
jhipster-kotlin
jobsworldwide
jpa
jshdq
juul-libraries
jvm-ir-backend-feedback
jxadapter
k2-early-adopters
kaal
kafka
kakao
kalasim
kapt
karachi
karg
karlsruhe
kash_shell
kaskade
kbuild
kdbc
kgen-doc-tools
kgraphql
kinta
klaxon
klock
kloudformation
kmdc
kmm-español
kmongo
knbt
knote
koalaql
koans
kobalt
kobweb
kodein
kodex
kohesive
koin
koin-dev
komapper
kondor-json
kong
kontent
kontributors
korau
korean
korge
korim
korio
korlibs
korte
kotest
kotest-contributors
kotless
kotlick
kotlin-asia
kotlin-beam
kotlin-by-example
kotlin-csv
kotlin-data-storage
kotlin-foundation
kotlin-fuel
kotlin-in-action
kotlin-inject
kotlin-latam
kotlin-logging
kotlin-multiplatform-contest
kotlin-mumbai
kotlin-native
kotlin-pakistan
kotlin-plugin
kotlin-pune
kotlin-roadmap
kotlin-samples
kotlin-sap
kotlin-serbia
kotlin-spark
kotlin-szeged
kotlin-website
kotlinacademy
kotlinbot
kotlinconf
kotlindl
kotlinforbeginners
kotlingforbeginners
kotlinlondon
kotlinmad
kotlinprogrammers
kotlinsu
kotlintest
kotlintest-devs
kotlintlv
kotlinultimatechallenge
kotlinx-datetime
kotlinx-files
kotlinx-html
kotrix
kotson
kovenant
kprompt
kraph
krawler
kroto-plus
ksp
ktcc
ktfmt
ktlint
ktor
ktp
kubed
kug-leads
kug-torino
kvision
kweb
lambdaworld_cadiz
lanark
language-evolution
language-proposals
latvia
leakcanary
leedskotlinusergroup
lets-have-fun
libgdx
libkgd
library-development
linkeddata
lithuania
london
losangeles
lottie
love
lychee
macedonia
machinelearningbawas
madrid
malaysia
mathematics
meetkotlin
memes
meta
metro-detroit
mexico
miami
micronaut
minnesota
minutest
mirror
mockk
moko
moldova
monsterpuzzle
montreal
moonbean
morocco
motionlayout
mpapt
mu
multiplatform
mumbai
munich
mvikotlin
mvrx
myndocs-oauth2-server
naming
navigation-architecture-component
nepal
new-mexico
new-zealand
newname
nigeria
nodejs
norway
npm-publish
nyc
oceania
ohio-kotlin-users
oldenburg
oolong
opensource
orbit-mvi
osgi
otpisani
package-search
pakistan
panamá
pattern-matching
pbandk
pdx
peru
philippines
phoenix
pinoy
pocketgitclient
polish
popkorn
portugal
practical-functional-programming
proguard
prozis-android-backup
pyhsikal
python
python-contributors
quasar
random
re
react
reaktive
realm
realworldkotlin
reductor
reduks
redux
redux-kotlin
refactoring-to-kotlin
reflect
refreshversions
reports
result
rethink
revolver
rhein-main
rocksdb
romania
room
rpi-pico
rsocket
russian
russian_feed
russian-kotlinasfirst
rx
rxjava
san-diego
science
scotland
scrcast
scrimage
script
scripting
seattle
serialization
server
sg-user-group
singapore
skia-wasm-interop-temp
skrape-it
slovak
snake
sofl-user-group
southafrica
spacemacs
spain
spanish
speaking
spek
spin
splitties
spotify-mobius
spring
spring-security
squarelibraries
stackoverflow
stacks
stayhungrystayfoolish
stdlib
stlouis
strife-discord-lib
strikt
students
stuttgart
sudan
swagger-gradle-codegen
swarm
sweden
swing
swiss-user-group
switzerland
talking-kotlin
tallinn
tampa
teamcity
tegal
tempe
tensorflow
terminal
test
testing
testtestest
texas
tgbotapi
thailand
tornadofx
touchlab-tools
training
tricity-kotlin-user-group
trójmiasto
truth
tunisia
turkey
turkiye
twitter-feed
uae
udacityindia
uk
ukrainian
uniflow
unkonf
uruguay
utah
uuid
vancouver
vankotlin
vertx
videos
vienna
vietnam
vim
vkug
vuejs
web-mpp
webassembly
webrtc
wimix_sentry
wwdc
zircon
Powered by Linen
server
  • t

    tipsy

    06/27/2018, 11:38 PM
    i think that would be a very long list now (but no, i don't know of one)
    👍 2
    n
    o
    • 3
    • 4
  • j

    jtravis

    06/28/2018, 7:16 PM
    We use it at Microsoft.
    👀 6
    s
    • 2
    • 4
  • l

    lemiffe

    07/04/2018, 11:26 AM
    Has anyone ever had this issue when running
    ./gradlew run
    ? (Kotlin + JVM 1.8)
    Tables.java:12: error: package javax.annotation is not visible
    import javax.annotation.Generated;
                ^
      (package javax.annotation is declared in module java.xml.ws.annotation, which is not in the module graph)
    e
    m
    a
    • 4
    • 10
  • k

    klensi

    07/05/2018, 5:23 PM
    which web framework do you recommend?
    c
    l
    +7
    • 10
    • 14
  • f

    Fré Dumazy

    07/06/2018, 8:31 AM
    A bit like the last question here: I'm looking into technologies and frameworks for creating web services that also provide a content management system. We've been using Drupal (php) for this at our office most of the time, but it feels like the framework is blocking us too much. After looking into Symfony CMF (also php), I wonder if there are any good JVM solutions for this? I used Spring Boot and Ktor but I wonder if you know a recommended solution for a CMS that can be coupled with these?
    ➕ 3
    g
    a
    • 3
    • 2
  • q

    quiqua

    07/06/2018, 12:11 PM
    Any recommendations how to integrate
    kotlin-logging
    with
    ktor
    ? 😮
    o
    n
    +2
    • 5
    • 9
  • б

    Бежан Александр

    07/16/2018, 6:51 AM
    Hey guys. I have an issue with Kotlin and Spring. Kotlin NoArg plug-in is not creating default constructor. I already asked on SO https://stackoverflow.com/questions/51352067/noarg-constructor-is-not-getting-created
    n
    k
    • 3
    • 3
  • d

    dave08

    07/16/2018, 5:25 PM
    Anyone know of a simple jsonrpc library for Kotlin?
    c
    g
    • 3
    • 8
  • m

    mp

    07/18/2018, 11:37 PM
    Is there a way to specify inline styles in kotlinx.html? Exploring the API hasn't uncovered it yet if it's there
    s
    • 2
    • 2
  • g

    Gokul

    07/23/2018, 5:51 AM
    Hi, I'm new to Kotlin. I have a Spring Boot application currently written in Java, We are writing new APIS's in Kotlin. I have a question regarding handling
    Entity to DTO conversion
    . I created a
    data class
    for the
    entity
    and added a
    toDto
    method on it. But here the
    Entity
    is aware of the DTO, which isn't really required for the entity. It works fine. But I am not sure if this is the right way of doing it? Any thoughts? 🙏 A simpler version of my code is:
    //Person DTO
    
    data class PersonDto (
    	val name: String
    )
    
    //Person Entity
    
    @Entity
    @Table(name = "persons")
    data class Person(
    @Id
    val id: Integer,
    
    @Column
    val firstName: String,
    
    @Column
    val lastName: String
    )
    
    {
        internal fun toDto(): PersonDto = PersonDto(
                name = "${this.firstName}  ${this.lastName}"
        )
    
    }
    d
    n
    +3
    • 6
    • 16
  • s

    spaisey

    07/26/2018, 7:05 AM
    Hi @Gokul - I would use an Extension on the Entity object to convert to DTO ....
    fun Person.toDto() = PersonDto("${firstName}  ${lastName}")
    . You can then call person.toDto(). The Extension function lives outside the Person class (say, in Extensions.kt) in the same package as the DTO class.
    g
    • 2
    • 3
  • u

    ursus

    07/29/2018, 10:22 PM
    Hi, im android developer. I want to ask, whats the current go to framework for medium sized webserver?
    m
    d
    +3
    • 6
    • 8
  • b

    Bernhard

    08/01/2018, 10:06 AM
    I'd rather inject it though
    m
    h
    • 3
    • 17
  • n

    Nykykof

    08/02/2018, 7:39 AM
    Hello. I'm working on a pure kotlin-based web projetc. It's work fine locally and i want to deploy it on a cloud foundry. But the official Java buildpack does not work for it. Any idea on how i can make this works ? ( I created a channel for it #cloudfoundry)
    g
    n
    +2
    • 5
    • 25
  • b

    bdawg.io

    08/13/2018, 6:14 PM
    My current project is now completely non-blocking behind coroutines EXCEPT for JDBC connecting to MySQL 😢
    n
    h
    +2
    • 5
    • 23
  • e

    evanchooly

    08/13/2018, 6:52 PM
    async jdbc specs are underway
    b
    n
    • 3
    • 4
  • o

    orangy

    08/13/2018, 8:49 PM
    We are building async client libraries based on kotlinx.io, @Deactivated User’s extensive work on various clients (https://github.com/soywiz/ktor-cio-clients) and coroutines. It’s not there yet, but we have some Redis client sources here https://github.com/ktorio/ktor-client-redis Next coming is PostgreSQL, then MySQL and such. We are planning to integrate this work into #squash as an experiment and then see how it works.
    👍 1
    l
    b
    +2
    • 5
    • 7
  • t

    tipsy

    08/20/2018, 9:04 PM
    hopefully it's not too spammy to say that javalin 2.0 is out here: https://javalin.io/news/javalin-2.0.0-stable.html
    👍 2
    🎉 6
    e
    • 2
    • 2
  • o

    oshai

    08/21/2018, 11:59 AM
    I am thinking about porting this mysql/postgres async driver to kotlin: https://github.com/mauricio/postgresql-async Is anyone interested using it? want to assist with the task? please ping me directly
    💪 1
    o
    d
    • 3
    • 10
  • v

    vemilyus

    08/21/2018, 7:39 PM
    Quick tip for you guys: When using coroutines in a Spring
    @Component
    always make sure that the class implements some interface. The Spring CGLib Enhancer messes stuff up and causes hard to find `NullPointerException`s.
    👍 1
    o
    d
    h
    • 4
    • 4
  • e

    evanchooly

    08/22/2018, 6:53 PM
    that was weird
    h
    s
    • 3
    • 3
  • f

    Francis

    08/23/2018, 1:59 PM
    How can we improve that? is the website on github?
    c
    d
    • 3
    • 9
  • j

    janvladimirmostert

    08/30/2018, 1:37 PM
    https://github.com/jasync-sql/jasync-sql
    😱 2
    :kotlin-flag: 5
    😲 1
    d
    o
    • 3
    • 5
  • r

    Raghavendra Rao K

    09/03/2018, 11:20 AM
    Article on features of Kotlin and why we can consider Kotlin as a choice of programming language for the application development.
    d
    • 2
    • 1
  • p

    pankaj

    09/03/2018, 12:49 PM
    not opening for me
    r
    • 2
    • 3
  • l

    LeoColman

    09/11/2018, 2:35 AM
    What if I know for sure that the variable can't be nullable at a given point
    g
    • 2
    • 1
  • l

    LeoColman

    09/11/2018, 2:38 AM
    I mean, should I only use !! if dealing with legacy code?
    n
    a
    +3
    • 6
    • 6
  • d

    Dario Pellegrini

    09/11/2018, 4:55 PM
    Hi everyone! This is not a proper Kotlin question, but a server one. I'm using Vertx and its http server to serve to client a buffer of bytes from a server folder. When this buffer is an MP4 video it breaks on Safari, but actually works on Chrome and Firefox. Safari says error using plugin. I read on web that could be a header problem. As headers I serve - content-type: video/mp4 - content-length: <length of video> Response code served to client: 200 Have you ever experienced something like that?
    s
    t
    • 3
    • 4
  • a

    Ajay

    09/17/2018, 6:07 AM
    Hi All ,I just started my career as backend engineer, what all things should I learn and where can I find best advance java documentation/ course. Also I believe in learning through application and project. where can I search for open source projects to which I can contribute and learn.🙂 Thanks
    d
    • 2
    • 4
  • l

    Lonwabo

    09/21/2018, 6:40 AM
    Hi All, I am are currently rewriting a legacy system with Kotlin, Spring boot and JPA and so I have three modules of which two are services and a shared module which includes entities, Utils and repositories etc. Now on the dependent projects main I have used annotations @ComponentScan(value = ["com.bla.mypackage"]) and @EnableJpaRepositories and I can run the services and beans are autowired but when I run tests I get Unsatisfied dependency exception and my testBase is annotated with Test and @ContextConfiguration(classes = [MyService::class]). What could I be missing?
    h
    • 2
    • 1
Powered by Linen
Title
l

Lonwabo

09/21/2018, 6:40 AM
Hi All, I am are currently rewriting a legacy system with Kotlin, Spring boot and JPA and so I have three modules of which two are services and a shared module which includes entities, Utils and repositories etc. Now on the dependent projects main I have used annotations @ComponentScan(value = ["com.bla.mypackage"]) and @EnableJpaRepositories and I can run the services and beans are autowired but when I run tests I get Unsatisfied dependency exception and my testBase is annotated with Test and @ContextConfiguration(classes = [MyService::class]). What could I be missing?
h

hho

09/21/2018, 6:52 AM
You're missing that we have a dedicated #spring channel 😉
👍 4
View count: 3