Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • Sep 23 13:19
    jknack commented #2363
  • Sep 23 13:16
    agentgt commented #2363
  • Sep 22 23:49

    jknack on 2.x

    fix build: windows new lines (compare)

  • Sep 22 22:20
    jknack closed #1332
  • Sep 22 22:20
    jknack milestoned #1332
  • Sep 22 22:20
    jknack labeled #1332
  • Sep 22 22:19

    dependabot[bot] on npm_and_yarn

    (compare)

  • Sep 22 22:19

    jknack on 2.x

    Bump swagger-ui-dist from 3.52.… Merge pull request #2426 from j… (compare)

  • Sep 22 22:19
    jknack closed #2426
  • Sep 22 22:19
    jknack milestoned #2426
  • Sep 22 22:19

    dependabot[bot] on maven

    (compare)

  • Sep 22 22:19

    jknack on 2.x

    Bump slf4j.version from 1.7.30 … Merge pull request #2424 from j… (compare)

  • Sep 22 22:19
    jknack closed #2424
  • Sep 22 22:18
    jknack milestoned #2424
  • Sep 22 22:15
    jknack closed #2413
  • Sep 22 22:15
    jknack closed #2428
  • Sep 22 22:15
    jknack closed #2363
  • Sep 22 22:15

    jknack on 2.x

    Fix broken images in 1.x doc Expect/Continue support: Add Se… Jackson module: Add XML support… (compare)

  • Sep 22 19:47
    jknack milestoned #2413
  • Sep 22 19:47
    jknack labeled #2413
Edgar Espina
@jknack
looks like a bug in the generator
delete/remove the test directory: /Users/peal6230/Documents/dev/projects/timiiz/io.timiiz:server:0.0.1/src/test
hmm also
not sure about the : in project folder
io.timiiz:server:0.0.1
Pascal Le Merrer
@PascalLeMerrer
the project folder is named like this because I understood the generator said the name parameter should be "Application name or coordinates (groupId:artifactId:version)". I was surprised it used this for naming the folder.
Edgar Espina
@jknack
yea think it is another bug
Pascal Le Merrer
@PascalLeMerrer
It's much better when renaming the folder to something more conventional :)
Edgar Espina
@jknack
yea sorry
Pascal Le Merrer
@PascalLeMerrer
no problem, it's very kind of you to develop this project and make it open source
Edgar Espina
@jknack
thank you!
Pascal Le Merrer
@PascalLeMerrer
and to answer so quickly to my question!
Nguyen Huu Tuan
@snowyukischnee
hi @jknack, can you help me this
Daniel Sokil
@s0kil
Are there any plans to also provide first class Scala support?
Edgar Espina
@jknack
Hi Daniel, no plans at all
Edgar Espina
@jknack
Hashim Sayyid
@Sayyiditow

hi @jknack is it possible to configure the error handler on another class that extends jooby, then mount it to the main class?
Something similar to how mvc, websocket routes work. So you can initialize all routes using a separate class that extends jooby (not main), then in the main class which also extends jooby, just do mount(class that changes with mvc controllers).

Trying to keep the main class minimal and unchanging all the time.

--Edit, websocket also works with mount. Couldn't get error handlers to work.

Mészáros István
@imeszaros
@Sayyiditow i think this is an upcoming feature: jooby-project/jooby#1905
SabrinaKall
@SabrinaKall
hi @jknack , we're having some trouble with kotlin, jooby (v1.6.8, I know, I'm sorry) and swagger: Results.noContent() is being interpreted as a return type Result with status code 200, instead of 204 as expected. We're already using the ApiTool to modify some descriptions, is there a way to correct the indicated status codes as well?
Hashim Sayyid
@Sayyiditow

@Sayyiditow i think this is an upcoming feature: jooby-project/jooby#1905

cool thanks.

Edgar Espina
@jknack
Adam Gent
@agentgt
The OpenAPI module is impressive but kind of scary and brittle. We were originally using a custom compile time annotation processor that has grown stale so I was investigating Jooby's OpenAPI. The problem with the ASM parsing openapi is it seems really really complicated and you basically have to construct a Jooby subclass in a very specific way.
For example inheritance is not supported.
Doing dynamic stuff with the contextPath is also
However I don't really have a better solution and I like I said before the ASM parsing very impressive.
If Jooby only had the JAXRS annotations I would vastly prefer a plain jane Java APT with some bare minimum for POJO schema detection ASM stuff.
That is the other problem with the openapi implementation. It requires a maven plugin. An APT does not.
Adam Gent
@agentgt
Anyway my current solution for our code base right now is to make a subclass Jooby called FakeJooby that then mvc installs all of our controllers and then give the maven plugin that class instead of our real Jooby.
Adam Gent
@agentgt
I wonder how many folks are making APIs with script API vs the MVC/JAXRS API
It seems like if you are doing an the microservice you have to annotate anyway so you might as well do the MVC style
Adam Gent
@agentgt
Oh besides inheritance and dynamic contextPath obviously adding scripts/mvc after the jooby object is instantiated doesn't work either.
I wouldn't be surprised if multiple constructors and/or constructors that take arguments doesn't work Amazingly it works and now that I think about it makes since it just looking for mvc calls
Adam Gent
@agentgt
Also you can't name your "application" class Jooby anything because the OpenAPI module does a replace("Jooby") on the name
so MyJooby for example as a classname would fail because it would become Myopenapi.json
That is probably abug
Hashim Sayyid
@Sayyiditow

@Sayyiditow Try with: https://jooby.io/#router-composing-install

Thanks!

Md. Jaber Hossain
@mhossain191058
Hi i think jooby is the fastest java based full stack web framework in the market right?
lospejos
@lospejos
Hi! I'm trying to start Jooby project that uses HikariCP on Java 14/15, mvn package works fine, I see a resulting fatjar. But in Idea I see errors cannot resolve symbol DataSource near import javax.sql.DataSource; line. I also cannot find this package javax.sql inside fatjar. I also see, that io.jooby.hikari.HikariModule has line import javax.sql.DataSource;. It seems that javax.sql is removed from JDK 14, 15. Does Jooby supports working on Java 14, 15? Thanks
lospejos
@lospejos
@jknack Hi! When do you plan to release a Jooby 2.9.5 version? I see in this version you upgraded Jackson to 2.12.0 and get rid of Jackson AfterBurner which had problems with Java 9+ (sun.misc.Unsafe and all this stuff), so I want to adopt new version of Jooby. Thanks
Edgar Espina
@jknack
nothing stop us from new release
so I can try between today and weekend
jackson 2.12.0 get rid of afterburner?
did you fix the Java 14/15 Datasource error? How did you fix it?
lospejos
@lospejos
@jknack jackson 2.12.0 get rid of afterburner? It seems yes, see here: https://github.com/FasterXML/jackson/wiki/Jackson-Release-2.12#new-modules-status-changes
@jknack
nothing stop us from new release
so I can try between today and weekend
OK, sounds good :-) Will wait for it
@jknack did you fix the Java 14/15 Datasource error? How did you fix it? No, currently I switched to another project. It seems that I something did wrong and faced this DataSource error.
andychan82
@andychan82

Hi! Just found an OOM problem when using netty as the server implementation, here is the code i used. I am using go-hey as the load test tools and try to load the server with post body. With netty implementation, i get out-of-memory problem. With jetty implementation, the garbage collection works well, and no out-of-memory problem.

./hey -z 10s -m POST -d '{"key":"value"}' http://127.0.0.1:8080

Below is the code i used for testing:

package app;
import io.jooby.Jooby;
public class App extends Jooby {
  {
    get("/", ctx -> "Welcome to Jooby!");
    post("/", ctx -> "you are using post request!!!");
  }
  public static void main(final String[] args) {
    runApp(args, App::new);
  }
}
lospejos
@lospejos
@humar82 Consider creating issue here https://github.com/jooby-project/jooby/issues
lospejos
@lospejos
@jknack I have one more question, that is not very clear for me: if I will use MVC API style (with annotations), will it lead to some runtime reflection, performance penalty or requirement to use Java reflection API inside Jooby? I mean, If I will use MVC API style, will it be as safe, performant (from runtime point of view, not compiling/building application) as script API style? Thanks