Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
    Daniel Korbel
    @masterdany88
    do YOu need sources?
    if it is Your project and You need sources You need configure Your project to export sources
    Ahmad K. Bawaneh
    @vegegoku
    ok, i added this plugin
    id "org.wisepersist.gwt" version "1.0.13"
    then applied it
    apply plugin: "gwt"
    then used gwt as dependency type
    and it is working now
    Daniel Korbel
    @masterdany88
    strange think happens -strict flag is making my build fail
    Compiling module pl.korbeldaniel.demo.module
        Tracing compile failure path for type 'org.gwtproject.core.client.ScriptInjector'
           [ERROR] Errors in 'jar:file:/builds/masterdany88/cleanarchitecturetutorial/.gradle/caches/modules-2/files-2.1/org.gwtproject.core/gwt-core/1.0-SNAPSHOT/3c715396b7161c7c6f94e6e4e799cacad074e14/gwt-core-1.0-SNAPSHOT.jar!/org/gwtproject/core/client/ScriptInjector.java'
              [ERROR] Line 43: The method getAny(String) is undefined for the type JsPropertyMap<Any>
              [ERROR] Line 108: The method getAny(String) is undefined for the type JsPropertyMap<Any>
              [ERROR] Line 239: Void methods cannot return a value
        Tracing compile failure path for type 'com.google.gwt.validation.client.impl.GwtBeanDescriptorImpl'
           [ERROR] Errors in 'jar:file:/builds/masterdany88/cleanarchitecturetutorial/.gradle/caches/modules-2/files-2.1/com.google.gwt/gwt-user/2.8.2/a2b9be2c996a658c4e009ba652a9c6a81c88a797/gwt-user-2.8.2.jar!/com/google/gwt/validation/client/impl/GwtBeanDescriptorImpl.java'
              [ERROR] Line 38: The type GwtBeanDescriptorImpl<T> must implement the inherited abstract method BeanDescriptor.getConstraintsForConstructor(Class<?>...)
              [ERROR] Line 38: The type GwtBeanDescriptorImpl<T> must implement the inherited abstract method BeanDescriptor.getConstrainedConstructors()
              [ERROR] Line 38: The type GwtBeanDescriptorImpl<T> must implement the inherited abstract method BeanDescriptor.getConstraintsForMethod(String, Class<?>...)
              [ERROR] Line 38: The type GwtBeanDescriptorImpl<T> must implement the inherited abstract method BeanDescriptor.getConstrainedMethods(MethodType, MethodType...)
           [ERROR] Errors in 'jar:file:/builds/masterdany88/cleanarchitecturetutorial/.gradle/caches/modules-2/files-2.1/com.google.gwt/gwt-user/2.8.2/a2b9be2c996a658c4e009ba652a9c6a81c88a797/gwt-user-2.8.2.jar!/com/google/gwt/validation/client/impl/ConstraintDescriptorImpl.java'
              [ERROR] Line 35: The type ConstraintDescriptorImpl<T> must implement the inherited abstract method ConstraintDescriptor<T>.getMessageTemplate()
              [ERROR] Line 35: The type ConstraintDescriptorImpl<T> must implement the inherited abstract method ConstraintDescriptor<T>.getValidationAppliesTo()
    after removing this flag build is successful
    I've just remove it: compiler.strict = true
    Colin Alworth
    @niloc132
    This message was deleted
    @masterdany88 that means it isnt actually entirely successful
    need to see the full log (with --info), but this means there are actually compile errors, but it doesnt stop the build from producing its output
    reasons why this is bad: sdm will have to re-do a lot of work every compile, so will be much slower than it should be
    other reason: j2cl will not be so forgiving - giving it garbage code will result in failure, instead of "eh, i can make it work, slowly"
    based on the getAny error, i am guessing you still have an incompatible jsinterop-base somewhere, instead of using the older build that is known to work well in gwt2.8.2 with elemental2 1.0.0-rc1
    Daniel Korbel
    @masterdany88
    those build runs on gitlab ci, so there is nothing cached
    My code is very simple. It is basically nalu, domino ui and domino rest as You can see in my code. So it means that the problem lies in one of libraries. Am I right? @vegegoku @FrankHossfeld
    Daniel Korbel
    @masterdany88
    ok. I set up loglevel to info, and added strict flag:
    > Task :client:compileGwt
    Compiling module pl.korbeldaniel.demo.module
       Tracing compile failure path for type 'pl.korbeldaniel.demo.api.resources.ApiResource'
          [ERROR] Errors in 'jar:file:/home/daniel/tutorials/clean_architecture_tutorial/api/build/libs/api-0.0.1-SNAPSHOT-sources.jar!/pl/korbeldaniel/demo/api/resources/ApiResource.java'
             [ERROR] Line 14: No source code is available for type javax.ws.rs.core.HttpHeaders; did you forget to inherit a required module?
             [ERROR] Line 12: No source code is available for type javax.ws.rs.core.Response; did you forget to inherit a required module?
             [ERROR] Line 14: No source code is available for type javax.ws.rs.core.UriInfo; did you forget to inherit a required module?
       Tracing compile failure path for type 'javax.validation.ParameterNameProvider'
          [ERROR] Errors in 'jar:file:/home/daniel/.gradle/caches/modules-2/files-2.1/javax.validation/validation-api/1.1.0.Final/7d49b53caed9bd81d172807c3e096d24f3c57090/validation-api-1.1.0.Final-sources.jar!/javax/validation/ParameterNameProvider.java'
             [ERROR] Line 54: No source code is available for type java.lang.reflect.Method; did you forget to inherit a required module?
             [ERROR] Line 44: No source code is available for type java.lang.reflect.Constructor<T>; did you forget to inherit a required module?
       Tracing compile failure path for type 'javax.validation.executable.ExecutableValidator'
          [ERROR] Errors in 'jar:file:/home/daniel/.gradle/caches/modules-2/files-2.1/javax.validation/validation-api/1.1.0.Final/7d49b53caed9bd81d172807c3e096d24f3c57090/validation-api-1.1.0.Final-sources.jar!/javax/validation/executable/ExecutableValidator.java'
             [ERROR] Line 53: No source code is available for type java.lang.reflect.Method; did you forget to inherit a required module?
             [ERROR] Line 94: No source code is available for type java.lang.reflect.Constructor<T>; did you forget to inherit a required module?
       [ERROR] Aborting compile due to errors in some input files
    
    > Task :client:compileGwt FAILED
    
    Execution failed for task ':client:compileGwt'.
    > Process 'command '/usr/lib/jvm/java-8-openjdk-amd64/bin/java'' finished with non-zero exit value 1
    HttpHeaders should be delivered by domino-rest?
    Daniel Korbel
    @masterdany88
    it is madness. It fails for different reasons:
    
    Tracing compile failure path for type 'javax.validation.executable.ExecutableValidator'
          [ERROR] Errors in 'jar:file:/home/daniel/.gradle/caches/modules-2/files-2.1/javax.validation/validation-api/1.1.0.Final/7d49b53caed9bd81d172807c3e096d24f3c57090/validation-api-1.1.0.Final-sources.jar!/javax/validation/executable/ExecutableValidator.java'
             [ERROR] Line 53: No source code is available for type java.lang.reflect.Method; did you forget to inherit a required module?
             [ERROR] Line 94: No source code is available for type java.lang.reflect.Constructor<T>; did you forget to inherit a required module?
          Checked 1 dependencies for errors.
       Tracing compile failure path for type 'javax.validation.ParameterNameProvider'
          [ERROR] Errors in 'jar:file:/home/daniel/.gradle/caches/modules-2/files-2.1/javax.validation/validation-api/1.1.0.Final/7d49b53caed9bd81d172807c3e096d24f3c57090/validation-api-1.1.0.Final-sources.jar!/javax/validation/ParameterNameProvider.java'
             [ERROR] Line 54: No source code is available for type java.lang.reflect.Method; did you forget to inherit a required module?
             [ERROR] Line 44: No source code is available for type java.lang.reflect.Constructor<T>; did you forget to inherit a required module?
          Checked 1 dependencies for errors.
       Tracing compile failure path for type 'pl.korbeldaniel.demo.api.resources.ApiResource'
          [ERROR] Errors in 'jar:file:/home/daniel/tutorials/clean_architecture_tutorial/api/build/libs/api-0.0.1-SNAPSHOT-sources.jar!/pl/korbeldaniel/demo/api/resources/ApiResource.java'
             [ERROR] Line 14: No source code is available for type javax.ws.rs.core.HttpHeaders; did you forget to inherit a required module?
             [ERROR] Line 12: No source code is available for type javax.ws.rs.core.Response; did you forget to inherit a required module?
             [ERROR] Line 14: No source code is available for type javax.ws.rs.core.UriInfo; did you forget to inherit a required module?
          Checked 1 dependencies for errors.
       Removing invalidated units
    general summary of command ./gradlew clean compileGwt --info :
    Successfully started process 'command '/usr/lib/jvm/java-8-openjdk-amd64/bin/java''
    Compiling module pl.korbeldaniel.demo.module
       Tracing compile failure path for type 'javax.validation.executable.ExecutableValidator'
          [ERROR] Errors in 'jar:file:/home/daniel/.gradle/caches/modules-2/files-2.1/javax.validation/validation-api/1.1.0.Final/7d49b53caed9bd81d172807c3e096d24f3c57090/validation-api-1.1.0.Final-sources.jar!/javax/validation/executable/ExecutableValidator.java'
             [ERROR] Line 53: No source code is available for type java.lang.reflect.Method; did you forget to inherit a required module?
             [ERROR] Line 94: No source code is available for type java.lang.reflect.Constructor<T>; did you forget to inherit a required module?
       Tracing compile failure path for type 'javax.validation.ParameterNameProvider'
          [ERROR] Errors in 'jar:file:/home/daniel/.gradle/caches/modules-2/files-2.1/javax.validation/validation-api/1.1.0.Final/7d49b53caed9bd81d172807c3e096d24f3c57090/validation-api-1.1.0.Final-sources.jar!/javax/validation/ParameterNameProvider.java'
             [ERROR] Line 54: No source code is available for type java.lang.reflect.Method; did you forget to inherit a required module?
             [ERROR] Line 44: No source code is available for type java.lang.reflect.Constructor<T>; did you forget to inherit a required module?
       Tracing compile failure path for type 'pl.korbeldaniel.demo.api.resources.ApiResource'
          [ERROR] Errors in 'jar:file:/home/daniel/tutorials/clean_architecture_tutorial/api/build/libs/api-0.0.1-SNAPSHOT-sources.jar!/pl/korbeldaniel/demo/api/resources/ApiResource.java'
             [ERROR] Line 14: No source code is available for type javax.ws.rs.core.HttpHeaders; did you forget to inherit a required module?
             [ERROR] Line 12: No source code is available for type javax.ws.rs.core.Response; did you forget to inherit a required module?
             [ERROR] Line 14: No source code is available for type javax.ws.rs.core.UriInfo; did you forget to inherit a required module?
       [ERROR] Aborting compile due to errors in some input files
    
    > Task :client:compileGwt FAILED
    :client:compileGwt (Thread[Execution worker for ':',5,main]) completed. Took 17.943 secs.
    
    FAILURE: Build failed with an exception.
    @niloc132 Can You check that?
    Daniel Korbel
    @masterdany88
    I've commented out domino-rest and still getting:
     ./gradlew clean compileGwt 
    
    > Task :client:compileJava
    Note: Nalu-Processor started ...
    Note: Nalu-Processor version >>2.0.1-SNAPSHOT<<
    warning: File for type 'pl.korbeldaniel.demo.client.UiApplicationImpl' created in the last round will not be subject to annotation processing.
    Note: Nalu-Processor finished ... processing takes: 193.9 ms
    Note: /home/daniel/tutorials/clean_architecture_tutorial/client/src/main/java/pl/korbeldaniel/demo/client/ui/login/content/login/LoginComponent.java uses or overrides a deprecated API.
    Note: Recompile with -Xlint:deprecation for details.
    Note: /home/daniel/tutorials/clean_architecture_tutorial/client/src/main/java/pl/korbeldaniel/demo/client/ui/application/shell/content/navigation/NavigationComponent.java uses unchecked or unsafe operations.
    Note: Recompile with -Xlint:unchecked for details.
    1 warning
    
    > Task :client:compileGwt
    Compiling module pl.korbeldaniel.demo.module
       Tracing compile failure path for type 'javax.validation.executable.ExecutableValidator'
          [ERROR] Errors in 'jar:file:/home/daniel/.gradle/caches/modules-2/files-2.1/javax.validation/validation-api/1.1.0.Final/7d49b53caed9bd81d172807c3e096d24f3c57090/validation-api-1.1.0.Final-sources.jar!/javax/validation/executable/ExecutableValidator.java'
             [ERROR] Line 53: No source code is available for type java.lang.reflect.Method; did you forget to inherit a required module?
             [ERROR] Line 94: No source code is available for type java.lang.reflect.Constructor<T>; did you forget to inherit a required module?
       Tracing compile failure path for type 'pl.korbeldaniel.demo.api.resources.ApiResource'
          [ERROR] Errors in 'jar:file:/home/daniel/tutorials/clean_architecture_tutorial/api/build/libs/api-0.0.1-SNAPSHOT-sources.jar!/pl/korbeldaniel/demo/api/resources/ApiResource.java'
             [ERROR] Line 14: No source code is available for type javax.ws.rs.core.HttpHeaders; did you forget to inherit a required module?
             [ERROR] Line 12: No source code is available for type javax.ws.rs.core.Response; did you forget to inherit a required module?
             [ERROR] Line 14: No source code is available for type javax.ws.rs.core.UriInfo; did you forget to inherit a required module?
       Tracing compile failure path for type 'javax.validation.ParameterNameProvider'
          [ERROR] Errors in 'jar:file:/home/daniel/.gradle/caches/modules-2/files-2.1/javax.validation/validation-api/1.1.0.Final/7d49b53caed9bd81d172807c3e096d24f3c57090/validation-api-1.1.0.Final-sources.jar!/javax/validation/ParameterNameProvider.java'
             [ERROR] Line 54: No source code is available for type java.lang.reflect.Method; did you forget to inherit a required module?
             [ERROR] Line 44: No source code is available for type java.lang.reflect.Constructor<T>; did you forget to inherit a required module?
       [ERROR] Aborting compile due to errors in some input files
    
    > Task :client:compileGwt FAILED
    OK it finally compiles with strict flag. I had to remove api project dependency
    Daniel Korbel
    @masterdany88
    Ok. I found out the issue. My gwt project is starting to fails after I've added new module (gradle) which contains jaxrs.
    dependencies {
        gwt project(path:':api')
        gwt project(path:':api', configuration: 'sources')
    }
    Question to @vegegoku did You test such configuration?
    Daniel Korbel
    @masterdany88
    I will later try with removing jax rs dep from such project. But I think if domino rest uses jax rs annotations it should support scanning in other projects/jars also. @niloc132 can You help understanding this problem?
    Gwt module depends on jax rs module. So gwt compiler gets jaxrs and can not emulate it so is failing. Then it gets gwt module which has jax rs emulation supported by domino-rest and it works.
    Ahmad K. Bawaneh
    @vegegoku
    Sorry i will try to check that out as soon as possible
    Daniel Korbel
    @masterdany88
    Don't sorry me. You did great job. Now we need to test it well :-) And the issue is related with gwt behaviour more. This is edge case.
    Colin Alworth
    @niloc132
    @masterdany88 i think you misunderstand me
    what i'm saying is that if you make a build which requires strict to not be set, it will be slow for local sdm work
    if strict fails the build, you are building a classpath of impossible things, and if removing strict works, you've just gotten lucky that the incompatible parts werent actually necessary for the output
    but when you attempt the same code+classpath locally, sdm's performance will suffer greatly because of that incompatibility
    clearly there is an issue here - as discussed previously it is a conflict between domino-ui, the migrated gwt-editor framework, and gwt-user's copy of validation - we need to resolve that, but i'm encouraging you to not accept "it works if i turn off -strict" as a solution on any code that you are going to give to others as a base for their project or as a library
    Colin Alworth
    @niloc132
    (for those not in dominokit/domino, the issue is that domino-ui is using com.google.gwt.editor, and the project here is using org.gwtproject.editor, and each of those pulls in a different set of javax.validation which are apparently incompatible. the fix is to either stop using "new" editors and only use legacy, or to switch to the domino-ui which only uses new editors. we're trying to see if it is possible for these to co-exist for projects mid-migration, but it may be tricky)
    Dmitrii Tikhomirov
    @treblereel

    This document defines a set of JavaScript APIs to compress and decompress streams of binary data.
    https://wicg.github.io/compression

    Available in Chrome 80, very cool

    DavidWilla
    @DavidWilla

    I use Jsinterop for an existing javascript library. I have code like
    @JsType(namespace = JsPackage.GLOBAL, isNative = true, name = "MyCharts")
    public class MyCharts {

    }
    The generated javascript can be referenced through $wnd.MyCharts. However when this existing library is cited through <script src>, the above generated javascript must be referenced through window.MyCharts. How do I resolve this issue?

    Thanks,

    aasifkhan7
    @aasifkhan7
    Hi. Is there some way through which we can decouple the tight coupling due to serialization between client-side code and server-side code in GWT?
    Daniel Korbel
    @masterdany88
    @aasifkhan7 use technology that is server agnostic like rest and json instead of gwt rpc.
    Colin Alworth
    @niloc132
    alternatively, update to new gwt-rpc which is client agnostic and supports other clients (publicly JDK and android, plus half done teavm, privately i have c++, c#, and python, unsure when i can open source those. adding another one like plain JS should not be hard for _de_serialization, but serialization may be a bit trickier, unless you just spam @JsType on all your serializable types) ;)

    @DavidWilla as written, effectively this code will execute for this line of java MyCharts chart = new MyCharts();:

    var $wnd = window;
    var MyCharts = $wnd.MyCharts; // due to the previous line, this is the exact same as saying window.MyCharts
    var chart = new MyCharts();

    can you clarify what you mean by "generated javascript", since it seems like it is the existing js lib that needs to be reference through window.MyCharts, which should be the same as $wnd.MyCharts

    the only exception would be if it is working today in JSNI as window.MyCharts - if that is the case, then you've put the mycharts.js in the wrong place in your document (i assume ScriptInjector? if so, make sure to set the window to be TOP_WINDOW https://stackoverflow.com/a/56250272/860630)
    DavidWilla
    @DavidWilla
    I think "<add-linker name="xsiframe"/>" put the generated javascript code into a iframe which cause my above problem. It works fine after I remove this tag.
    Daniel Korbel
    @masterdany88
    linker was required before gwt 2.7 as far I remember. After that is useless
    Daniel Korbel
    @masterdany88
    after 2.7 can be even harmfull