gRPC-Web for GWT and/or J2CL?

2018-10-24 Thread Peter Donald
Hi,

It seems like gRPC has gone GA.

https://www.cncf.io/blog/2018/10/24/grpc-web-is-going-ga/

It seems it can emit closure annotated classes and I guess it would be
not too hard to output the equivalent jsinterop annotated classes.
This would make it very easy to get excellent integration into J2CL
and event GWT2.x.

Eyeballing it makes it seem like a very attractive target. Has anyone
used it or done any work with it before? Or know of any equivalent
GWTish generator for it.

-- 
Cheers,

Peter Donald

-- 
You received this message because you are subscribed to the Google Groups "GWT 
Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-web-toolkit+unsubscr...@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at https://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.


Re: Preferred IDE

2018-10-24 Thread foal
Hi, 

I am using Eclipse (STS 4.0) with GWT plugin and it just works.

Stas

On Saturday, October 13, 2018 at 5:22:46 PM UTC+2, subroutines wrote:
>
> Hi,
>
> I am curious to know what is preferred IDE to use GWT?
>

-- 
You received this message because you are subscribed to the Google Groups "GWT 
Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-web-toolkit+unsubscr...@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at https://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.


Orientation For GWT Mobile Application

2018-10-24 Thread malligmrao514
Is there any chance to identify the Orientation of the application and 
change the orientation for the application in GWT.

I am using iPad 12

-- 
You received this message because you are subscribed to the Google Groups "GWT 
Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-web-toolkit+unsubscr...@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at https://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.


Re: parsing GWT messages in oVirt project (webadmin interface)

2018-10-24 Thread Thomas Broyer

On Wednesday, October 24, 2018 at 7:21:08 AM UTC+2, Anastasiya Ruzhanskaya 
wrote:
>
> Also I notice that there might be such situation: there is a  java list of 
> elements, but instead of writing that this is a list type and it has 0 
> elements, I just have 0.
> Also for guid:  there can stand also only 0 without specifying that this 
> is guid type. I am not sure that it is impossible to determine this type in 
> runtime as previously in the same message I already had guid fields.
>
> For the example that I sent, the last numbers correspond to the following:
>
> 14(TransactionScopeOption)|2(enum, =required)|
> 0(useCinderCommandCallback)| (bool)
> 0(vdsRunningOn, null, guid)| (Guid)
> 0(vdsmTaskIds)| (List)
> 0(first last bool param)|
> 0(second last bool param)| 
>
>
The vdsRunningOn and vdsmTaskIds are 'null'. Specifically, vdsmTaskIds is 
not an empty list, it's 'null'; as in "vdsmTaskIds == null" would be 
'true', and "vdsmTaskIds.isEmpty()" would throw a NullPointerException.
 

>
> вторник, 23 октября 2018 г., 14:50:33 UTC+3 пользователь Thomas Broyer 
> написал:
>>
>>
>>
>> On Tuesday, October 23, 2018 at 1:16:57 PM UTC+2, Anastasiya Ruzhanskaya 
>> wrote:
>>>
>>> Dear Thomas,
>>> thank you a lot for a detailed answer!
>>>
>>> I saw this documentation, but seems should look more thoroughly into 
>>> serialization inside GWT. 
>>>
>>> Concerning the numbers 0|5|0|0|0 - after VmOperationParameterBase class 
>>> where there is a private field vmId we move down to ActionParameterBase 
>>> class (as you said), so 0 here will correspond to the first parameter 
>>> inside this class in alphabetical order (seems commanId)? And five - to 
>>> some value or to a type of parameter? (sometimes it is not clear does the 
>>> payload mean the type or the value itself). There is a field there - 
>>> ActionType commandType; which has type 5.
>>>
>>
>> From the doc, if the declared type of the value is a primitive type or 
>> java.lang.String, then the value is used directly (for strings, 0 means 
>> null and all other values are indices in the string table); in all other 
>> cases (including "primitive wrapper types" such as java.lang.Boolean or 
>> java.lang.Integer), the value will always start with its runtime type (or 0 
>> if it's null).
>>
>> Assuming we're looking at the correct version of the sources, we'll 
>> indeed find, in order, commandId as a null Guid, commandType as the first 
>> constant of the ActionType enum (type = 5 = ActionType, followed by 0 = 
>> ordinal in the enum). The next 2 '0' would be compensationEnabled as a 
>> boolean false, and correlationId as a null String, respectively.
>> Next would be endProcedure, as the the second (ordinal = 1) constant of 
>> the EndProcedure enum, i.e. PARENT_MANAGED; and so on and so on.
>>
>> The one thing that's not clear in the doc, is how to interpret negative 
>> values for objects (in place of the type or 0 for null, to reference an 
>> already deserialized object). I suppose that you could put each object into 
>> an array, and you'd use the absolute value as a 1-based index in that array.
>> I see a -6 in the payload, but I have no idea at first glance whether 
>> it'll be a numeric value or a reference to an already-deserialized object. 
>> You have to go through the pipe-delimited fields one by one to know what 
>> each one means.
>>  
>>
>>>
>>> вторник, 23 октября 2018 г., 13:26:06 UTC+3 пользователь Thomas Broyer 
>>> написал:

 On Tuesday, October 23, 2018 at 11:46:56 AM UTC+2, Anastasiya 
 Ruzhanskaya wrote:
>
> Hello all!
> I am working with oVirt (which helps to manage virtual machines) 
> project and it uses GWT RPC protocol in it's communications.
> I want to parse messages in GWT RPC format which I get after 
> deciphering the traffic.
>
> I hope that even without being totally familiar with the ovirt 
> project, someone will be able to help me a little bit.
>
> I already separated it on some meaningful parts), numbers in braces 
> just help to make correspondence between payload and strings:
> 7|
> 0|
> 14|
> (1)https://engine.localdomain/ovirt-engine/webadmin/|  //URL
> (2)E8B2AD24442204349EF795039C3B87E5|   // policy name
> (3)org.ovirt.engine.ui.frontend.gwtservices.GenericApiGWTService| 
> //service interface
> (4)runMultipleActions| //name of the method
> (5)org.ovirt.engine.core.common.action.ActionType/12242454|, // type1
> (6)java.util.ArrayList/4159755760|, // type2
> (7)Z| // type3 (bool)
> (8)org.ovirt.engine.core.common.action.ShutdownVmParameters/1694554255| 
> // class which contains uuid of the virtual machine
> (9)org.ovirt.engine.core.compat.Guid/1992968158|
> (10)java.util.UUID/2940008275| // seems the uuid of the virtual 
> machine)
>
> (11)org.ovirt.engine.core.common.action.ActionParametersBase$EndProcedure/1568822488|
> (12)java.util.Collections$EmptyMap/4174664486|
> (1

Re: parsing GWT messages in oVirt project (webadmin interface)

2018-10-24 Thread Thomas Broyer
A null is a null, it has no "runtime type". Whenever you're unserializing a 
Java object (non primitive, non String) value, you'll have:

   - either a 0, which means 'null' (and then you're done, there's nothing 
   else to learn about a 'null')
   - or a positive number, which references the runtime type in the string 
   table. This guides you to how you'll deserialize that value (look for a 
   CustomFieldSerializer, otherwise use the zero-arg constructor then 
   deserialize the object's fields). For example, the declared type (of the 
   method parameter, or of an object's field) could be java.lang.Number, the 
   runtime type will be any of its subclasses: java.lang.Double, 
   java.lang.Long, java.math.BigDecimal, etc. those types will be 
   (de)serialized in different ways.
   - or a negative number, referencing an object that has previously been 
   deserialized (so you already know its actual type, etc.)


On Wednesday, October 24, 2018 at 6:53:21 AM UTC+2, Anastasiya Ruzhanskaya 
wrote:
>
> Yes, -6 was the reference to already serialized values, seems from the 
> previous calls.
>
> Also I would like to ask, if there is a zero value in place where I see 
> there should a type description in a payload, this means that we don't know 
> how to decode it in runtime, but there will be some following info, or it 
> is just 0 and we move to the next field in the class? Or this 0 could  also 
> mean that this is an uninitialized value?
>
> The first field of an object is a number indicating how to decode it. A 
> '0' means null.
>
> вторник, 23 октября 2018 г., 14:50:33 UTC+3 пользователь Thomas Broyer 
> написал:
>>
>>
>>
>> On Tuesday, October 23, 2018 at 1:16:57 PM UTC+2, Anastasiya Ruzhanskaya 
>> wrote:
>>>
>>> Dear Thomas,
>>> thank you a lot for a detailed answer!
>>>
>>> I saw this documentation, but seems should look more thoroughly into 
>>> serialization inside GWT. 
>>>
>>> Concerning the numbers 0|5|0|0|0 - after VmOperationParameterBase class 
>>> where there is a private field vmId we move down to ActionParameterBase 
>>> class (as you said), so 0 here will correspond to the first parameter 
>>> inside this class in alphabetical order (seems commanId)? And five - to 
>>> some value or to a type of parameter? (sometimes it is not clear does the 
>>> payload mean the type or the value itself). There is a field there - 
>>> ActionType commandType; which has type 5.
>>>
>>
>> From the doc, if the declared type of the value is a primitive type or 
>> java.lang.String, then the value is used directly (for strings, 0 means 
>> null and all other values are indices in the string table); in all other 
>> cases (including "primitive wrapper types" such as java.lang.Boolean or 
>> java.lang.Integer), the value will always start with its runtime type (or 0 
>> if it's null).
>>
>> Assuming we're looking at the correct version of the sources, we'll 
>> indeed find, in order, commandId as a null Guid, commandType as the first 
>> constant of the ActionType enum (type = 5 = ActionType, followed by 0 = 
>> ordinal in the enum). The next 2 '0' would be compensationEnabled as a 
>> boolean false, and correlationId as a null String, respectively.
>> Next would be endProcedure, as the the second (ordinal = 1) constant of 
>> the EndProcedure enum, i.e. PARENT_MANAGED; and so on and so on.
>>
>> The one thing that's not clear in the doc, is how to interpret negative 
>> values for objects (in place of the type or 0 for null, to reference an 
>> already deserialized object). I suppose that you could put each object into 
>> an array, and you'd use the absolute value as a 1-based index in that array.
>> I see a -6 in the payload, but I have no idea at first glance whether 
>> it'll be a numeric value or a reference to an already-deserialized object. 
>> You have to go through the pipe-delimited fields one by one to know what 
>> each one means.
>>  
>>
>>>
>>> вторник, 23 октября 2018 г., 13:26:06 UTC+3 пользователь Thomas Broyer 
>>> написал:

 On Tuesday, October 23, 2018 at 11:46:56 AM UTC+2, Anastasiya 
 Ruzhanskaya wrote:
>
> Hello all!
> I am working with oVirt (which helps to manage virtual machines) 
> project and it uses GWT RPC protocol in it's communications.
> I want to parse messages in GWT RPC format which I get after 
> deciphering the traffic.
>
> I hope that even without being totally familiar with the ovirt 
> project, someone will be able to help me a little bit.
>
> I already separated it on some meaningful parts), numbers in braces 
> just help to make correspondence between payload and strings:
> 7|
> 0|
> 14|
> (1)https://engine.localdomain/ovirt-engine/webadmin/|  //URL
> (2)E8B2AD24442204349EF795039C3B87E5|   // policy name
> (3)org.ovirt.engine.ui.frontend.gwtservices.GenericApiGWTService| 
> //service interface
> (4)runMultipleActions| //name of the method
> (5)org.ovirt.engine.core.commo