Re: Access Java from Javascript using JsInterop

2024-08-26 Thread Colin Alworth
method it is >> throwing an error. What I want is to call the Entity from my js file. >> >> I am not sure how to add -generateJsInteropExports to the compiler. >> Althrough I did put > name="generateJsInteropExports" >> value="true"/> in

Re: Access Java from Javascript using JsInterop

2024-08-26 Thread Colin Alworth
Can you share how you're using this from JS and what you expect to work here? Two quick notes: * Make sure you are passing the -generateJsInteropExports flag to the compiler * You almost certainly don't want to use `Integer` here, since there is no corresponding JS type for that. Instead, if

Re: CSP issues with UiBinder

2024-07-31 Thread Colin Alworth
After some discussion in gitter a few hours ago , we filed https://github.com/gwtproject/gwt/issues/9990 as a research topic to look more deeply into this within GWT itself. It looks to me as though

Re: Looking for a GWT expert for a porting of an application from an old version of GWT

2024-07-24 Thread Colin Alworth
Hi Shaik, I typically don't like to be seeming to advertise on the mailing list, but we're doing much of the active development work in GWT these days. Ahmad Bawaneh and I wrote many of the patches to get GWT itself ready to run on newer Java versions, including updating its own build so that w

Re: Looking for a GWT expert for a porting of an application from an old version of GWT

2024-07-24 Thread Colin Alworth
Hi Antonio, I replied to you off-list yesterday, but this is something that our company can help with. You can contact me at co...@vertispan.com to arrange a call to look into your project. We definitely also encourage community resources like the Gitter channel that Frank mentioned, this mail

Re: "Unload event listeners are deprecated" browser error

2024-07-23 Thread Colin Alworth
I put up https://github.com/gwtproject/gwt/pull/9984 as a proposal to resolve this, please take a look. On Thursday, January 25, 2024 at 12:39:55 PM UTC-6 Colin Alworth wrote: > It looks like the purpose of registering the unload handler for any Window > event is to avoid IE6-10 era

Re: module java.base does not "opens java.lang" to unnamed module

2024-06-22 Thread Colin Alworth
t; <https://mail.onelink.me/107872968?pid=NativePlacement&c=Global_Acquisition_YMktg_315_EmailSignatureGrowth_YahooMail:Search,Organize,Conquer&af_sub1=Acquisition&af_sub2=Global_YMktg&af_sub3=&af_sub4=10945&af_sub5=OrganizeConquer__Static_> > > On Fri, Jun 2

Re: module java.base does not "opens java.lang" to unnamed module

2024-06-21 Thread Colin Alworth
Can you share a little more detail, like the full error message with stack trace, and the GWT version you're using? Some improvements were made in this area for GWT 2.11, and some messages of this kind are merely warnings, indicating that reflection was attempted and some fallback can usually be

Re: JDK and GWT Upgrade.

2024-06-20 Thread Colin Alworth
in my .classpath file. Build failure is happening in my > 'compile-gwt' build step. > > On Thursday 13 June 2024 at 19:31:58 UTC+5:30 Colin Alworth wrote: > >> Do note that GWT itself is built with ant - there were no ant-specific >> changes we made to update GWT fro

Re: JDK and GWT Upgrade.

2024-06-13 Thread Colin Alworth
Do note that GWT itself is built with ant - there were no ant-specific changes we made to update GWT from Java 7/8 to 11/17/21 that we build with today. Additionally, the GWT samples that are built with ant had no changes made at all to support newer versions of Java. Your own usage of GWT mi

Re: CWE-749 GWT and eval()

2024-06-12 Thread Colin Alworth
David wrote: > I also use eval in my GWT application. What is an eval alternative in GWT? > > > On Tuesday, June 4, 2024 at 10:12:12 PM UTC+8 Colin Alworth wrote: > >> Consider compiling your application with style=PRETTY or DETAILED so you >> can see more detail on

Re: GWT, Java 17, jakarta.servlet, Eclipse, GWT plugin

2024-06-12 Thread Colin Alworth
> Clearly the GWT plugin/installed Jetty are not Jakarta-ready. I could try to update and rebuild the plugin to make it so (maybe), but I'm so overwhelmed with other chores that I can't afford having that turn into another rabbit hole. It's easier/safer/wiser to go back to javax. If you mean t

Re: CWE-749 GWT and eval()

2024-06-04 Thread Colin Alworth
Consider compiling your application with style=PRETTY or DETAILED so you can see more detail on the name of methods and the classes that surround the code you have questions about, it can make it easier to hunt these down. I pretty-printed the code snippet you shared, which results in this:

Re: Seeking Advice on Legacy Application Migration Strategy

2024-04-26 Thread Colin Alworth
You might run into issues with such an old version of GXT when using a new GWT version - take a look at https://groups.google.com/g/google-web-toolkit/c/If897MPqvw0/m/bSWnmuz9BwAJ for a summary of how to update GXT 2.3.1a-gwt22. With GWT updated to 2.9.0 or beyond, you will be able to run on J

Re: [ERROR] Unable to find 'com/google/common/collect/Collect.gwt.xml' : GWT 2.9

2024-03-30 Thread Colin Alworth
ere the client/local > folder because the old project I want to migrate uses the old version of > mojo gwt-maven plugin and that's where the module is. Could that also be > part of my issue? I specified the path like that because the with Tbroyer > version, the gwt xml module file is

Re: [ERROR] Unable to find 'com/google/common/collect/Collect.gwt.xml' : GWT 2.9

2024-03-30 Thread Colin Alworth
This looks like the same question as https://stackoverflow.com/questions/78202341/how-to-set-up-gwt-super-dev-mode-with-the-new-gwt-maven-plugin-with-a-web-applic, except with some updates - it sounds like you resolved the servlet classpath issue, can you flesh out this example a little more to

Re: Problem with GWT?

2024-03-30 Thread Colin Alworth
There really isn't enough information here to guess what is happen - what else could have changed, like server version or configuration, any errors in your browser dev tools console? On Tuesday, March 26, 2024 at 2:57:37 PM UTC-5 germ...@gmail.com wrote: > When I access the web page, it remains

Re: InvocationTargetException with null cause?

2024-02-29 Thread Colin Alworth
I'm guessing this server has been running for a while, and possibly seen/caught other NPEs before this point? Hotspot has an optimization where it stops producing stack traces for null pointer exceptions (as well as a few other exceptions) after it is thrown a few times (usually "many", but tec

Re: Is moving away from RPC a good idea?

2024-02-09 Thread Colin Alworth
Point 1 is a potentially a serious concern for basically any tooling that decouples through interprocess communication, including grpc+protobuf (with ostensibly "perfect backwards/forwards compatibility") - in tooling that doesn't explicitly force compatibility as GWT-RPC does, you have to impl

Re: GWT Eclipse Plugin 4 Problem

2024-01-31 Thread Colin Alworth
There is a pending patch for this at https://github.com/gwt-plugins/gwt-eclipse-plugin/pull/475. You should be able to pull and build this to get working again on the very latest Eclipse versions - and if you do, leave a comment, a code review, etc, and we can get this merged more expediently.

Re: "Unload event listeners are deprecated" browser error

2024-01-25 Thread Colin Alworth
It looks like the purpose of registering the unload handler for any Window event is to avoid IE6-10 era memory leaks. From the notes on the MDN page, removing those other handlers will break the page when the bfcache is in use, but our use of the unload handler will opt GWT pages out. The simpl

Re: Running GWT 2.4.0 using JDK 17

2024-01-16 Thread Colin Alworth
gt; have attached the GWT.2.4.0 ant build logs and GWT error related build > logs. I am not sure if this gonna work but just wanted to give a try and if > it works it will be helpful. Thank you very much! > > > Regards, > Anjana > > On Tuesday, January 16, 2024 at 6:17

Re: Running GWT 2.4.0 using JDK 17

2024-01-16 Thread Colin Alworth
JDK.1.8 without any code change in GWT.2.4.0 source code*. > > GWT.2.4.0 source code downloaded from - > https://github.com/gwtproject/gwt/releases/tag/2.4.0 > <https://github.com/gwtproject/gwt/releases/tag/2.4.0> > tools - https://github.com/gwtproject/tools/ > <http

Re: Announcing GWT 2.10.1 and 2.11 releases

2024-01-13 Thread Colin Alworth
to use it. Note that this is not compatible with running your jakarta-servlet app inside dev mode, but you will need to run your own server separately from dev mode. -- Colin Alworth co...@colinalworth.com On Sat, Jan 13, 2024, at 7:54 PM, Craig Mitchell wrote: > Awesome! Thank you

Re: Is moving away from RPC a good idea?

2024-01-10 Thread Colin Alworth
With 2.11 released, GWT-RPC (and RequestFactory) work on jakarta.servlet. There are no specific improvements that I'm aware of that require updating beyond the Servlet API 5.0, which is what gwt-servlet-jakarta uses. I _believe_ that RestyGWT relies on Generators, so might make an eventual move

Announcing GWT 2.10.1 and 2.11 releases

2024-01-09 Thread Colin Alworth
I'm excited to announce the release of 2.10.1 and 2.11.0! This is our second release under the new groupId, be sure when you update to change away from "com.google.gwt", as it will not get more updates. If you use GWT-RPC and JPA/JDO annotations in your project, we strongly suggest updating at

Re: Can we uplift GWT2.4.0 to GWT 2.10 directly

2024-01-05 Thread Colin Alworth
Check out the recent thread https://groups.google.com/g/google-web-toolkit/c/3z8KB_5u7ig - most of the discussion applies here too. That is, without knowing what libraries you use, what application code you've written, what error messages you get from attempting either running the app directly

Re: Strategies for dealing with large number of languages?

2024-01-03 Thread Colin Alworth
Apologies, dumb typo right in the first line: It is _no longer_ singly threaded by the time permutations are being built. I hope the rest is more accurate, please feel free to call me out on other dumb mistakes :). On Wednesday, January 3, 2024 at 9:29:20 PM UTC-6 Colin Alworth wrote: > Fi

Re: Strategies for dealing with large number of languages?

2024-01-03 Thread Colin Alworth
First, there's no magic - the compiler is pretty memory/cpu intensive, but by the time permutations are being built, it is singly threaded. Unless you've got a ton of cache and bandwidth to ram, "not scaling linearly" makes a lot of sense no matter what your application is - you're probably abl

Re: Running GWT 2.4.0 using JDK 17

2024-01-03 Thread Colin Alworth
s use more volunteers (contact me off-list). On Wednesday, January 3, 2024 at 2:36:34 PM UTC-6 Jim Douglas wrote: > Apologies for the off-topic question, but is there an estimated timeframe > for GWT 2.11? > > On Wednesday, January 3, 2024 at 8:55:25 AM UTC-8 Colin Alworth wrote: >

Re: Running GWT 2.4.0 using JDK 17

2024-01-03 Thread Colin Alworth
(I wrote a longer reply, but Google Groups ate it and never posted it, so apologies for brevity here): Without more information, it is hard to give a specific answer - are you just hoping to update the Java version and make no changes to the application? It might be that nothing at all needs to

Re: Seeking Guidance: GWT Version with Resolved XSS Vulnerabilities - Which One to Use?

2023-12-28 Thread Colin Alworth
I think what Frank is saying is that those linked issues all related to the GWTTestCase tooling, which is only used for unit tests, and no reasonably-configured application will be serving GWTTestCase contents to users (and will usually only be available locally for 10s of seconds, on a randoml

Re: Migrating from 2.5.0 to 2.7.0

2023-12-28 Thread Colin Alworth
Its a bit hard to read the screenshots, but it looks like the file your browser/burp network log shows isn't one that even exists in your project? If those bytes were indeed sent over the wire and the old ...15.cache.html file was not present anywhere in your workspace or generated production c

Re: Migration from 2.7.0 to 2.9.0

2023-12-19 Thread Colin Alworth
Can you share the complete build log? At a guess, there is some classpath mismatch, mixing parts of GWT 2.7 with 2.9 - the Core module is always included as an inherits for every module, even if that module is empty, so this suggests an earlier error that prevented that module from working, or

Re: How to debug the java code on the eclipse ide with the tbroyer gwt maven plugin ?

2023-12-12 Thread Colin Alworth
That's great news! Related, I had understood that this didn't work at all, but I discovered via https://bugs.chromium.org/p/chromium/issues/detail?id=327092 that there is an "experimental" feature in chrome that lets locals be displayed. [image: screenshot867.png] However even with this enabled,

Re: How to debug the java code on the eclipse ide with the tbroyer gwt maven plugin ?

2023-12-12 Thread Colin Alworth
The gwt-eclipse-plugin is maintained, but browsers removed the API that was previously used to let a Java debugger connect to a running GWT application. This API was used by a browser plugin that was shipped as part of GWT. Technically GWT still supports this, but I believe only IE11 (and htmlu

Re: Code fails to compile with GWT 2.10.0

2023-11-22 Thread Colin Alworth
Reviewing https://github.com/GwtMaterialDesign/gwt-material/releases, I see that 2.4.0 was the first version that was built against GWT 2.9 itself, and latest HEAD still appears to use GWT 2.9.0 according to the pom file. On the other hand, at https://github.com/GwtMaterialDesign/gwt-material-

Re: GWT New Project doesn't start because of Jetty problems.

2023-10-30 Thread Colin Alworth
Sorry, hit send too early - when using CodeServer, you should be sure to start your own tomcat - for whatever reason, that error message at localhost:8080 indicates that tomcat isn't running or isnt reachable at that port. On Monday, October 30, 2023 at 11:49:43 AM UTC-5 Colin Alworth

Re: GWT New Project doesn't start because of Jetty problems.

2023-10-30 Thread Colin Alworth
[image: log.png] > > [image: log2.png] > > On Sunday, October 29, 2023 at 3:37:49 PM UTC-4 Colin Alworth wrote: > >> There are a few options I would suggest: >> * Upgrade to GWT 2.10 (especially since this is a new project). This is >> probably the simplest and

Re: GWT New Project doesn't start because of Jetty problems.

2023-10-29 Thread Colin Alworth
There are a few options I would suggest: * Upgrade to GWT 2.10 (especially since this is a new project). This is probably the simplest and best option. The new version of Jetty used there will not have this issue with scanning module files. * Stop using DevMode as an application server - run yo

Re: GWT Designer

2023-10-27 Thread Colin Alworth
If memory serves, the GWT Designer tool was never part of GWT itself, but was a component that could be installed in Eclipse, allowing for WYSIWYG UI design (in part by running something like dev mode while you were editing?). Changes that the author of the project made were reflected in standa

Re: GWT: Deserialize objects sent/received via websocket

2023-10-20 Thread Colin Alworth
oes over websocket with binary blobs being >> exchanged. Hence, it is not easy for me to identify which GWT library class >> is in use. >> >> Is there any way how to get this information, (i.e. I could provide the >> URL of the endpoint I am talking to). >&g

Re: GWT: Deserialize objects sent/received via websocket

2023-10-20 Thread Colin Alworth
While GWT offers websocket support, the only support is "now you can send messages on a websocket" - no serialization is offered, beyond what the browser itself provides (allowing sending a utf8 string, arraybuffers, blobs, typedarrays, or arrayviews). How are you verifying messages sent/receiv

Re: com.ait.toolkit.core.Core not found in Gwt-tour

2023-08-17 Thread Colin Alworth
I'm broadly aware that gwt-tour exists (though it hasnt had an update in 8 years), but I don't see any com.ait packages or references in it. On the other hand, I think com.ait.toolkit.core refers to https://github.com/dikalo/ahome-core/, which is a different thing entirely. It appears that ahom

Re: [GWT] [ERROR] Hint: Check that your module inherits 'com.google.gwt.core.Core'

2023-08-14 Thread Colin Alworth
Tiberiu, the fact that it works in Eclipse strongly suggests to me that the ant classpath is different from the eclipse project classpath. That different configuration will lead to different results. This error is typically indicative of some other error happening (typically classpath related)

Re: Partial super source? Possible?

2023-07-21 Thread Colin Alworth
I don't use String.format() a lot, even in the normal JVM, but based on the Javadoc it looks like we could add the format method, and delegate to a java.util.Formatter, but then leave that unimplemented by default. Then, downstream applications could more easily add that, without having to worry

Re: GWT compilation issue with jdk 17

2023-07-21 Thread Colin Alworth
There is community work underway to update GWT-RPC itself to use jakarta.servlet packages, and the same idea could be applied to gwtplatform. Unfortunately, the gwtplatform.com domain is still owned, so any fork could not take over the groupid, but

Re: DataPicker in GWT

2023-07-04 Thread Colin Alworth
It appears that this is specified as part of the DefaultCalendarView type, in the nested DateCell class's update(Date) method. I don't see an obvious way to override that, nor to replace the DatePicker.StandardCss type (package protected). Instead, you might implement CalendarView in your own w

Re: GWT war file deployment issue on Tomcat 9

2023-07-04 Thread Colin Alworth
It looks as though the war file that was deployed was built after Super Dev Mode had been started, but before the production build had been performed, so the generated JS only works with a local development server. Try a clean build, without starting dev mode? If this still doesn't work, can yo

Re: GWT compilation error with JDK 11

2023-07-04 Thread Colin Alworth
ption provided by the GWT >> Plugin installed in Eclipse. >> >> Version: 2020-06 (4.16.0) >> GWT Plugin version: 3.0 >> >> Your help is greatly appreciated! >> >> thanks, >> Jenny >> On Friday, June 16, 2023 at 12:33:18 PM UTC-5 Colin Alwort

Re: Devmode compilation

2023-06-16 Thread Colin Alworth
nlessNull (lw_ui-0.js:272:3) > > It works with -draftCompile. What we are potentially losing having code > compiled with -draftCompile? Is it safe to have it on production? > > On Friday, June 16, 2023 at 7:36:50 PM UTC+2 Colin Alworth wrote: > >> Super Dev Mode skips many opt

Re: Devmode compilation

2023-06-16 Thread Colin Alworth
Super Dev Mode skips many optimizations, both to decrease compile times and also to make incremental compilations possible - it isn't possible to make SDM behave the exact same as a production compile. One way you can get close is to specify -draftCompile (how you specify it may vary based on ho

Re: GWT compilation error with JDK 11

2023-06-16 Thread Colin Alworth
GWT 2.9 should support running on Java 11, both running on JDK 11 and compiling Java 11 sources. Without other information, it sounds like there is a problem with your copy of gwt-dev.jar - the jar might be corrupt, or somehow not on your classpath? Can you verify that the jar is present and

Re: Entry point

2023-05-17 Thread Colin Alworth
see another dialog on which there is a button to add files. > Can we use the entry point to drag and drop files over the area of that > add file button ? > > Regards > Ronit > > On Monday, 15 May 2023 at 04:40:28 UTC+5:30 Colin Alworth wrote: > >> While it is techni

Re: Entry point

2023-05-14 Thread Colin Alworth
While it is technically possible to have more than one EntryPoint declared in your .gwt.xml files(s), order might be hard to control precisely. I believe the order is deterministic, but not strictly defined by the compiler (likely the order in which entry-point> tags are encountered when parsin

Re: Commitment regarding Jakarta

2023-05-03 Thread Colin Alworth
Several volunteer community members are indeed committed to this. There was another recent discussion on this mailing list (just four topics down) that you can see at https://groups.google.com/g/google-web-toolkit/c/vBSKMgdZz1w - I directed the user to the discussion on our issue tracker at ht

Re: HTTP Method Override

2023-04-30 Thread Colin Alworth
I think Thomas is on the right track - the tester ran the query with the method override headers indicating “PUT” instead of “POST”, and saw that the response came back “200 OK”, and assumed that the attack had worked. Instead what happened is that gwt-rpc couldn’t understand the request, and s

Re: GWT 2.10.0 and TLD/JAR Scanner Error

2023-04-30 Thread Colin Alworth
I think a little more detail could help us to identify the problem, but to start with, gwt-dev should never be on your server classpath - and neither should its dependencies. If you have gwt-dev.jar or GWT's preferred apache-jsp.jar on your server classpath, you should remove that (either build

Re: Building artifact without clutter

2023-04-18 Thread Colin Alworth
(Might be a better post for https://groups.google.com/g/google-web-toolkit-contributors) The maven artifacts require one more step to deploy, either to your maven local cache, or to an artifact server you can deploy to. Use the maven/push-gwtproject.sh script (see https://github.com/gwtproject

Re: Privacy Violation with SSN

2023-04-11 Thread Colin Alworth
I haven't seen this come up before in a scan like this, thanks for sharing! This is due to the compiler, but rather than obfuscation, this is due to the compiler solving for a constant value rather than doing the math at runtime. This same constant appears in the GWT showcase as well, at https:

Re: page navigation

2023-04-11 Thread Colin Alworth
It is difficult to be sure what you are asking, but to navigate automatically to a new URL, you might just want Window.Location..assign(newUrl) or Window.Location.replace(newUrl), depending on exactly what behavior you want to have in your user's browser history. Alternatively if you are using

Re: Jakarta EE 9 support in GWT

2023-04-06 Thread Colin Alworth
The work on this topic is being discussed on that ticket and related pull requests. In short, if there is community support to implement and test this, it will be present in a future release. Please try the test builds already discussed there, and consider joining the discussion to help contrib

Re: Question about setting GWT RPC timeout

2023-04-06 Thread Colin Alworth
hich I made when clean-up > for posting., Please ignore them. > Thank you again > > Best regards > Dmitri > > > On Thu, Apr 6, 2023 at 9:49 PM Colin Alworth wrote: > >> I believe you're experiencing different timeouts in different cases. That >> is, the pro

Re: Question about setting GWT RPC timeout

2023-04-06 Thread Colin Alworth
I believe you're experiencing different timeouts in different cases. That is, the problem you're facing of a short timeout before you use your RPC_TIMEOUT_MS is a server-side timeout (or potentially a proxy?), but after you set a client-side timeout, the client is observing that the server is t

Re: Eclpse GWT 3.0 plugin not available

2023-03-20 Thread Colin Alworth
Error scanning file GWT29_JDK11.class at org.eclipse.jetty.annotations.AnnotationParser.parseDir(AnnotationParser.java:708) This error should be fixed with GWT 2.10.0, or by disabling the annotation-based servlet configurations. A very similar issue is discussed at https://github.com/gw

Re: Security Vulnerabilities with GWT

2022-11-16 Thread Colin Alworth
Thanks for working on this, Rafat. I've deployed a build of this to https://repo.vertispan.com/gwt-snapshot/ with version 2.11.0-fix-9778-SNAPSHOT. This uses the new groupIds, org.gwtproject:gwt-servlet:2.11.0-fix-9778-SNAPSHOT. For example, see https://repo.vertispan.com/gwt-snapshot/org/gwtp

Re: Security Vulnerabilities with GWT

2022-10-28 Thread Colin Alworth
This is discussed at https://github.com/gwtproject/gwt/issues/9778 and https://github.com/gwtproject/gwt/issues/9752: this is a false positive, but still needs to be corrected. The simplest fix is probably to just stop packaging up the "I am running an old version" marker file, since the Is th

Re: GWT 2.10.0: gradle gwtSuperDev - java.lang.IllegalArgumentException: No selectors

2022-08-09 Thread Colin Alworth
dev:2.10.0, which should at least force jetty-io and htmlunit to be updated to the expected versions. On Tuesday, August 9, 2022 at 1:58:04 PM UTC-5 Colin Alworth wrote: > Your stack trace lines up except for the top frame - jetty-io > 9.4.4.v20210927 has a blank line for SelectorManager.

Re: GWT 2.10.0: gradle gwtSuperDev - java.lang.IllegalArgumentException: No selectors

2022-08-09 Thread Colin Alworth
Your stack trace lines up except for the top frame - jetty-io 9.4.4.v20210927 has a blank line for SelectorManager.java:81, and the source for the file at that version doesn't contain the string "No selectors". On the other hand, jetty-io 9.2.14.v20151116 has this as a constructor (and line 81

Re: http://localhost:8080/....../gemsInquiry/gemsInquiry.nocaches.js 404 (Not Found)

2022-07-28 Thread Colin Alworth
Can you share how you are starting GWT to debug this, and what the logs show? You should not need (or want) both gwt-maven-plugins in your pom.xml. On Thursday, July 28, 2022 at 8:02:44 AM UTC-5 parthib...@gmail.com wrote: > Hi Everyone, > I am using *Java 17* and *GWT 2.10.0* when trying

Re: Old system in GWT 1.4.61

2022-07-25 Thread Colin Alworth
There is no explicit "Chrome" support in GWT - Chrome started its life as another browser based around the WebKit engine. This is referred to in GWT as "safari", though WebKit started its life as part of the Konqueror browser, which pre-dates Safari's use of it (though arguably Safari populariz

GWT 2.10.0 release

2022-06-23 Thread Colin Alworth
I'm very happy to announce the release of GWT 2.10.0. This is the first release using our new groupId, org.gwtproject, and the final release using com.google.gwt. If you resolve dependencies from Maven Central, please be certain that your project is using com.google.gwt:gwt (or org.gwtproject:g

Re: URGENT: GWT build crash with out of memory

2022-04-01 Thread Colin Alworth
Split points are amazingly expensive to compute (in both CPU and memory) - I would definitely remove all split points currently under 10KB, and strongly consider removing all under 100KB, at least for an application of that size. Odds are excellent that your 4043KB file is your "leftovers" spli

Re: GWT 2.9 compatiblity with GXT 2.3.1a

2021-10-15 Thread Colin Alworth
The short answer is yes, you need to do this for each such bug you find, and if you have a commercial license, you need to do it yourself - the only way to distribute fixes for things like this is under GPLv2, which may not be something you want in your project as a dependency. If this is a gw

Re: GWT 2.9 compatiblity with GXT 2.3.1a

2021-10-13 Thread Colin Alworth
The updated JDT probably caused this (so that gwt 2.8.2 can support Java 8 language features) - at a guess you'll need to cast the result of m.get(prop) on that line to Object so that StringBuilder.append correctly uses the Object overload. On Wednesday, October 13, 2021 at 3:41:52 PM UTC-5 RT

Re: Problem decoding complex AutoBean

2020-07-10 Thread Colin Alworth
I'm not seeing any issue with that code and sample JSON. Here's a quick entrypoint that I made: @Override public void onModuleLoad() { IWebchatThemeConfigurationBean bean = deserializeFromJson("{\n" + "\"themeId\": 1,\n" + "\"name\": \"rpc\"

Re: GWT Server and debug

2020-07-07 Thread Colin Alworth
Yes, remove -nosuperDevMode. On Tuesday, July 7, 2020 at 5:02:19 AM UTC-5, Jasper Suijker wrote: > > Hi, > > We are running with 2.8.2 and want to migrate to 2.9.0 later on. > this is my current gwt server start with arguments: > Main class: > com.google.gwt.dev.DevMode > arguments: >com.t

Re: GWT SingleUploader gets stuck

2020-06-30 Thread Colin Alworth
It looks like this isn't part of GWT itself, but an external library. Here's a stackoverflow post i found from a few years ago that seems to address your issue: https://stackoverflow.com/questions/31424639/gwt-error-when-uploading-file-with-singleuploader It looks like the project might live on

Re: Security Vulnerabilities with GWT

2020-06-29 Thread Colin Alworth
The gwt-servlet issue is only on c++ versions of protobuf, so we believe there is no exploit here at all. The other issues are all specific to gwt-dev, and neither gwt-dev.jar nor gwt-user.jar should ever be deployed as part of a running server application, so none of those should be exploitabl

Re: Security Vulnerabilities with GWT

2020-06-29 Thread Colin Alworth
1. No, these dependencies were not updated as part of the 2.9.0 release 2. An update would come either in a 2.9.x bugfix release, or in 2.10 - the 3.x release is going to be structured in a different enough of a way that none of these will be present. 3. At a quick glance, it appears to be an ove

Re: runAsync + permutations

2020-06-26 Thread Colin Alworth
I'm not sure I've seen this done before, but in theory what you are attempting should be supported? The CodeSplitter runs on each individual permutation, taking both java/js programs as input, and appears to have checks to confirm that only reachable code for that permutation ends up in the spl

Re: StyleInjector chokes on startup

2020-06-24 Thread Colin Alworth
s, and if someone has the need and the bandwidth to resolve this problem fully, we probably can get most of the way there, provided they can accept the caveats and test heavily. -- Colin Alworth co...@colinalworth.com On Wed, Jun 24, 2020, at 5:09 PM, Gordan Krešić wrote: > I'm willing

Re: StyleInjector chokes on startup

2020-06-24 Thread Colin Alworth
Can you clarify the browser event that you are working with? If it is something through JsInterop, then this is expected, since JSNI style calls into Java from JS require $entry, but jsinterop provides no such mechanism. If it is an event from a GWT Widget, then that would go through JSNI, and

Re: Upgrade to 2.9.0 from 2.8.2 is giving compilation errors while doing GWT compile

2020-06-16 Thread Colin Alworth
None of those classes are included in the default JRE emulation provided in either GWT 2.8.2 or 2.9.0 - if this previously worked, you might have had something on your classpath which provided those sources as supersource, or .gwt.xml files in those packages to indicate that they could be transp

Re: GWT Super devmode is not working for me

2020-06-11 Thread Colin Alworth
In GWT 2.7.0 (specifically in the first release candidate), SDM was made the default, and IFrameLinker, XSLinker were deprecated since they didn't work properly with SDM. You can reenable them in your own project though. However, the replacement linker is mentioned in the release notes as having

Re: GWT 2.9 compatiblity with GXT 2.3.1a

2020-06-11 Thread Colin Alworth
There are multiple problems with using GXT 2.x with a recent version of GWT (anything since GWT 2.6 or so, released in 2014). Sencha hasn't offered support for GXT 2 since version 4 was released (and doesn't appear to provide support for GXT 4 any longer either), but the last time I ran into th

Re: Issue with GWT 2.9.0 and Annotations/Predicates emulation

2020-05-29 Thread Colin Alworth
Whoops, sorry, I see it in the other thread "https://groups.google.com/d/topic/google-web-toolkit/aCWkpXWVsD4/discussion";. On Friday, May 29, 2020 at 9:43:36 AM UTC-5, Colin Alworth wrote: > > We did see type inference issues in earlier builds of the JDT version that > GWT

Re: Issue with GWT 2.9.0 and Annotations/Predicates emulation

2020-05-29 Thread Colin Alworth
We did see type inference issues in earlier builds of the JDT version that GWT uses, but after an update was done we thought that the issues were resolved. Can you give an example so we can check to see if JDT has handled this in a later update that we can migrate to? On Friday, May 29, 2020 a

Re: Issue with GWT 2.9.0 and Annotations/Predicates emulation

2020-05-28 Thread Colin Alworth
ns. -Colin On Thursday, May 28, 2020 at 1:03:48 PM UTC-5, David Nouls wrote: > > Strange, just retried today and now the compile worked properly. > > Thanks for the support! > On 19 May 2020, 16:41 +0200, Colin Alworth , wrote: > > Nothing should have changed here as far as I a

Re: GWT 2.9.0 release

2020-05-22 Thread Colin Alworth
son to remove it. >> >>> >>>- As for GWT 2.9.0, we don't see any deprecation warnings during >>>compilation for JSNI, but you're saying JSNI is actually deprecated as >>> of >>>the 2.9.0 release, or is that a forward-loo

Re: Issue with GWT 2.9.0 and Annotations/Predicates emulation

2020-05-19 Thread Colin Alworth
Nothing should have changed here as far as I am aware - GWT itself continues to have emulation for Annotation, Enum, etc (Predicate doesnt seem to be listed in your error) https://gwt.googlesource.com/gwt/+/master/user/super/com/google/gwt/emul/java/lang/annotation/Annotation.java https://gwt.goo

GWT 2.9.0 release

2020-05-13 Thread Colin Alworth
Today we are pleased to announce the next release of GWT, version 2.9.0. Some highlights of this release: * GWT supports Java 9, 10, 11 language features. * The elemental2 1.0.0 release is supported, along with jsinterop-annotations 2.0.0 (except @JsAsync, which requires dropping support for o

Re: JsInterop - fail to iterate @JsType in List

2020-05-12 Thread Colin Alworth
Another option could be to tell GWT that this is just the idea of what the Car type will be, but that there isn't actually a real type called Car that it will be able to find. For example, you could perhaps make this an interface instead of a class (js has no actual interface types, just "it qu

Re: When will development of GWT 3.0 /GWT 2.9 will start

2020-04-04 Thread Colin Alworth
project/gwt, https://gitter.im/vertispan/j2cl, or a few other rooms, or on stackoverflow. -- Colin Alworth co...@colinalworth.com On Sat, Apr 4, 2020, at 12:33 PM, Käpt'n Körk wrote: > Hey there, as a GWT addict I am wondering, if GWT is finally dead? Any search > for GWT 3.0 or

Re: GWT Compilation Out Of Memory

2019-03-14 Thread Colin Alworth
Some quick observations from the docx: The bulk of your split points are sized pretty well, but if you can save the compiler work on those tiny ones and delete/merge them, that would be ideal, and may well help your leftovers. That leftovers is quite large, but not totally out of control at lea

Re: GWT Compilation Out Of Memory

2019-03-14 Thread Colin Alworth
Are you able to answer the other questions too? This looks like the same numbers that was in your last email. "Lines of code" refers to the sources that the developers write, not the generated JS. My reply also asked for more detail on the deferredjs contents, just the last file numerically in

Re: Unexpected behavior

2019-03-14 Thread Colin Alworth
Also telling your JS debugger to pause on uncaught exceptions will help - it will stop when that null.toString() takes place, letting you examine which method you are in when it happens, and which local variable or field is null. On Wednesday, March 13, 2019 at 3:33:48 PM UTC-5, Jens wrote: > >

Re: GWT Compilation Out Of Memory

2019-03-14 Thread Colin Alworth
How much Java code goes into this? Combined file, line counts between shared and client packages? >From your .gwt.rpc files, My guess is that you have a huge amount of duplication between RPC interfaces. Improper use of supertypes, generics, interfaces, etc can cause the compiler to believe tha

Re: When will development of GWT 3.0 /GWT 2.9 will start

2018-07-03 Thread Colin Alworth
GWT 2.9 is already started, you can check it out at current master - you can see the commits and even build it yourself at https://gwt.googlesource.com/gwt/+/master/, or get a nightly build from https://oss.sonatype.org/content/repositories/google/ (i.e. the latest build at https://oss.sonatyp

Re: GWT RPC file name in ClassNotFoundException

2018-06-29 Thread Colin Alworth
The beginning of the payload all looks correct, and it won't be possible for us to fully decode it and see what is wrong without the sources of the various objects mentioned. But the format *appears* to be trying to send something impossible: 7 - "current version of the stream format" 0 - "no fl

  1   2   3   >