https://kotlinlang.org logo
#exposed
Title
# exposed
r

Ray Eldath

01/28/2020, 4:24 PM
hey everyone. is there anyone who met exception
Invalid argument value: <http://java.io|java.io>.NotSerializableException. Statement(s): null
when using Exposed DAO? i got this when tried to create
Copy code
val created = User.new {
    username = "Ray Eldath"
    email = "<mailto:xxx@xxx.com|xxx@xxx.com>"
}

Authorization.new {
    user = created
    hashedPassword = hp.toBlob()
    role = UserRole.Root
}
in which
Authorization.id
is refer to
User.id
. any idea on this exception? many thanks. 🙃
e

Evan R.

01/29/2020, 1:42 PM
What part of the code is the exception thrown from? Just the authorization.new() call or specifically one of the assignments?
r

Ray Eldath

01/29/2020, 1:45 PM
well, I specify the location and code in my next message, see below. many thanks.
e

Evan R.

01/29/2020, 5:16 PM
I see the related code (the table and DAO definitions) but I’m not sure where your exception is being thrown from. What stack trace is being given?
Never mind, I see it now
4 Views