What's in your classpath? There might probably be ways to avoid those situations, in GWT, but so few people have run into this that no one investigated further.
--
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+unsubscribe@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.
Saturday, June 30, 2018
Friday, June 29, 2018
Re: GWT RPC file name in ClassNotFoundException
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 flags enabled"
96 - "there are 96 distinct strings in this stream"
...
1 - "the moduleBaseUrl is the first string", aka http://vagrant.ptcnet.ptc.com:2280/Windchill/gwt/com.ptc.windchill.wncgwt.WncGWT/
2 - "the name of the serialization policy file is the second string", aka 1C2DD3E7BC435105789300F99C966F9B
3 - "the name of the RPC interface is the third string", aka com.ptc.cat.ops.client.internal.OperationDispatcher
4 - "the name of the RPC method to call is the fourth string", aka "dispatch"
1 - "there is one argument to this method"
5 - "the class of the first argument to the method is the fifth string" aka java.util.ArrayList/4159755760
5 - "the class of the next object to read (i.e. the only argument to the dispatch() method) is the fifth string" aka java.util.ArrayList/4159755760
1 - "the array list first reads its size from the stream" aka the ArrayList only has one object
6 - "the class of the next object to read (the first and only object in the ArrayList) is the sixth string" aka com.ptc.windchill.enterprise.dsb.client.ops.StructureCompareOperation$StructureCompareOperationParams/619250753
7 - (now we're just guessing, since I don't have the sources for StructureCompareOperationParams, etc) "the class if the first field in StructureCompareOperationParams is the seventh string" aka com.extjs.gxt.ui.client.core.FastMap/3488076414
26 - "the Map_CustomFieldSerializerBase indicates that the next int is the count of items in the map" aka 26 items in the FastMap field of StructureCompareOperationParams
8 - "the first key in the map is an object with class of the 8th string", aka java.lang.String/2004016611 (we're probably going to see 25 more strings representing each key...
9 - "the first key's string value is the 9th string in the stream" aka the key has a value of SOURCE_NCID
8 - "the first value in the map is an object with the class of the 8th string", aka String again
10 - "the first value in the map is the 10th string in the stream" aka the value is -105227984815700591
etc. Guessing beyond this point is tedious and hazard fraught without concrete specifics. Some of this can be confirmed from your original stack trace:
Caused by: com.google.gwt.user.client.rpc.SerializationException: java.lang.ClassNotFoundException: 1C2DD3E7BC435105789300F99C966F9B
at com.google.gwt.user.server.rpc.impl.ServerSerializationStreamReader.deserialize(ServerSerializationStreamReader.java:708)
at com.google.gwt.user.server.rpc.impl.ServerSerializationStreamReader.readObject(ServerSerializationStreamReader.java:592)
at com.google.gwt.user.server.rpc.core.java.util.Arrays$ArrayList_ServerCustomFieldSerializer.instantiate(Arrays.java:71)
at com.google.gwt.user.server.rpc.core.java.util.Arrays$ArrayList_ServerCustomFieldSerializer.instantiateInstance(Arrays.java:106)
at com.google.gwt.user.server.rpc.core.java.util.Arrays$ArrayList_ServerCustomFieldSerializer.instantiateInstance(Arrays.java:39)
at com.google.gwt.user.server.rpc.impl.ServerSerializationStreamReader.instantiate(ServerSerializationStreamReader.java:1088)
at com.google.gwt.user.server.rpc.impl.ServerSerializationStreamReader.deserialize(ServerSerializationStreamReader.java:682)
at com.google.gwt.user.server.rpc.impl.ServerSerializationStreamReader.readObject(ServerSerializationStreamReader.java:592)
at com.google.gwt.user.server.rpc.impl.ServerSerializationStreamReader$ValueReader$8.readValue(ServerSerializationStreamReader.java:149)
at com.google.gwt.user.server.rpc.impl.ServerSerializationStreamReader.deserializeValue(ServerSerializationStreamReader.java:434)
at com.google.gwt.user.server.rpc.impl.ServerSerializationStreamReader.deserializeClass(ServerSerializationStreamReader.java:832)
at com.google.gwt.user.server.rpc.impl.ServerSerializationStreamReader.deserializeImpl(ServerSerializationStreamReader.java:903)
at com.google.gwt.user.server.rpc.impl.ServerSerializationStreamReader.deserializeClass(ServerSerializationStreamReader.java:861)
at com.google.gwt.user.server.rpc.impl.ServerSerializationStreamReader.deserializeImpl(ServerSerializationStreamReader.java:903)
at com.google.gwt.user.server.rpc.impl.ServerSerializationStreamReader.deserializeClass(ServerSerializationStreamReader.java:861)
at com.google.gwt.user.server.rpc.impl.ServerSerializationStreamReader.deserializeImpl(ServerSerializationStreamReader.java:903)
at com.google.gwt.user.server.rpc.impl.ServerSerializationStreamReader.deserialize(ServerSerializationStreamReader.java:687)
at com.google.gwt.user.server.rpc.impl.ServerSerializationStreamReader.readObject(ServerSerializationStreamReader.java:592)
at com.google.gwt.user.server.rpc.core.java.util.Collection_ServerCustomFieldSerializerBase.deserialize(Collection_ServerCustomFieldSerializerBase.java:38)
at com.google.gwt.user.server.rpc.core.java.util.ArrayList_ServerCustomFieldSerializer.deserialize(ArrayList_ServerCustomFieldSerializer.java:40)
at com.google.gwt.user.server.rpc.core.java.util.ArrayList_ServerCustomFieldSerializer.deserializeInstance(ArrayList_ServerCustomFieldSerializer.java:54)
at com.google.gwt.user.server.rpc.core.java.util.ArrayList_ServerCustomFieldSerializer.deserializeInstance(ArrayList_ServerCustomFieldSerializer.java:33)
at com.google.gwt.user.server.rpc.impl.ServerSerializationStreamReader.deserializeImpl(ServerSerializationStreamReader.java:884)
at com.google.gwt.user.server.rpc.impl.ServerSerializationStreamReader.deserialize(ServerSerializationStreamReader.java:687)
at com.google.gwt.user.server.rpc.impl.ServerSerializationStreamReader.readObject(ServerSerializationStreamReader.java:592)
Caused by: com.google.gwt.user.client.rpc.SerializationException: java.lang.ClassNotFoundException: 1C2DD3E7BC435105789300F99C966F9B
at com.google.gwt.user.server.rpc.impl.ServerSerializationStreamReader.deserialize(ServerSerializationStreamReader.java:708)
at com.google.gwt.user.server.rpc.impl.ServerSerializationStreamReader.readObject(ServerSerializationStreamReader.java:592)
at com.google.gwt.user.server.rpc.core.java.util.Arrays$ArrayList_ServerCustomFieldSerializer.instantiate(Arrays.java:71)
at com.google.gwt.user.server.rpc.core.java.util.Arrays$ArrayList_ServerCustomFieldSerializer.instantiateInstance(Arrays.java:106)
at com.google.gwt.user.server.rpc.core.java.util.Arrays$ArrayList_ServerCustomFieldSerializer.instantiateInstance(Arrays.java:39)
at com.google.gwt.user.server.rpc.impl.ServerSerializationStreamReader.instantiate(ServerSerializationStreamReader.java:1088)
at com.google.gwt.user.server.rpc.impl.ServerSerializationStreamReader.deserialize(ServerSerializationStreamReader.java:682)
at com.google.gwt.user.server.rpc.impl.ServerSerializationStreamReader.readObject(ServerSerializationStreamReader.java:592)
at com.google.gwt.user.server.rpc.impl.ServerSerializationStreamReader$ValueReader$8.readValue(ServerSerializationStreamReader.java:149)
at com.google.gwt.user.server.rpc.impl.ServerSerializationStreamReader.deserializeValue(ServerSerializationStreamReader.java:434)
at com.google.gwt.user.server.rpc.impl.ServerSerializationStreamReader.deserializeClass(ServerSerializationStreamReader.java:832)
at com.google.gwt.user.server.rpc.impl.ServerSerializationStreamReader.deserializeImpl(ServerSerializationStreamReader.java:903)
at com.google.gwt.user.server.rpc.impl.ServerSerializationStreamReader.deserializeClass(ServerSerializationStreamReader.java:861)
at com.google.gwt.user.server.rpc.impl.ServerSerializationStreamReader.deserializeImpl(ServerSerializationStreamReader.java:903)
at com.google.gwt.user.server.rpc.impl.ServerSerializationStreamReader.deserializeClass(ServerSerializationStreamReader.java:861)
at com.google.gwt.user.server.rpc.impl.ServerSerializationStreamReader.deserializeImpl(ServerSerializationStreamReader.java:903)
at com.google.gwt.user.server.rpc.impl.ServerSerializationStreamReader.deserialize(ServerSerializationStreamReader.java:687)
at com.google.gwt.user.server.rpc.impl.ServerSerializationStreamReader.readObject(ServerSerializationStreamReader.java:592)
at com.google.gwt.user.server.rpc.core.java.util.Collection_ServerCustomFieldSerializerBase.deserialize(Collection_ServerCustomFieldSerializerBase.java:38)
at com.google.gwt.user.server.rpc.core.java.util.ArrayList_ServerCustomFieldSerializer.deserialize(ArrayList_ServerCustomFieldSerializer.java:40)
at com.google.gwt.user.server.rpc.core.java.util.ArrayList_ServerCustomFieldSerializer.deserializeInstance(ArrayList_ServerCustomFieldSerializer.java:54)
at com.google.gwt.user.server.rpc.core.java.util.ArrayList_ServerCustomFieldSerializer.deserializeInstance(ArrayList_ServerCustomFieldSerializer.java:33)
at com.google.gwt.user.server.rpc.impl.ServerSerializationStreamReader.deserializeImpl(ServerSerializationStreamReader.java:884)
at com.google.gwt.user.server.rpc.impl.ServerSerializationStreamReader.deserialize(ServerSerializationStreamReader.java:687)
at com.google.gwt.user.server.rpc.impl.ServerSerializationStreamReader.readObject(ServerSerializationStreamReader.java:592)
Reading from the bottom, the first readObject is indeed an ArrayList, the second object has no custom field serializer (probably your StructureCompareOperationParams). Since the third readObject is an Arrays.ArrayList (i.e. results of Arrays.asList) instance, chances are the FastMap field in StructureCompareOperationParams was successfully deserialized, and the stream moved on to a later field in StructureCompareOperationParams with a List type? But as we can see here, whatever it attempted to deserialize at that point incorrectly pointed to string "2" rather than some later string, suggesting that the versions on client and server are either out of sync, the payload was modified incorrectly, there is a broken CustomFieldSerializer somewhere in your project or its dependencies, or somehow you've run into a bug in GWT.
There are only 5 occurences of "|2|" in your payload other than the correct first one, I'd imagine that one of those is suspect. or at least will point you in the right direction for what went wrong. Keep in mind that there is nothing inherently insidious about seeing a "2" - it might be the number 2, or the 3rd (zero indexed) value in some enum, or an indication that some collection has 2 items in it. It is also _very_ unlikely that some other string in your payload actually has that same value, but it is technically possible.
Using your own sources you can go over the payload to work this out, but focus on the failing readInt() which returns 2, and see which writeInt(2) on the client caused this bad data to be emitted. Given that GwtHandlerAdapter.processCall is custom, I'd also take a very close look there (or at any other proxy/filter) to see if it could possibly modify the payload in any way.
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+unsubscribe@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: GWT2.8 : org.apache.xerces.parsers.XIncludeAwareParserConfiguration cannot be cast to org.apache.xerces.xni.parser.XMLParserConfiguration
Am Dienstag, 25. Oktober 2016 14:21:40 UTC+2 schrieb Ian Whyman:
It seems still to be an issue with the final 2.8.0 releaseIan
I recently upgraded to GWT 2.8.2 (from the old version 2.6.0) I ran into the same problem ("org.apache.xerces.parsers.XIncludeAwareParserConfiguration cannot be cast to org.apache.xerces.xni.parser.XMLParserConfiguration").
What I would like to understand is, is the Xerces version packaged with GWT 2.8.2 (gwt-dev.jar) incompatible? The fix with
-Djavax.xml.parsers.DocumentBuilderFactory=com.sun.org.apache.xerces.internal.jaxp.DocumentBuilderFactoryImpl
-Djavax.xml.parsers.SAXParserFactory=com.sun.org.apache.xerces.internal.jaxp.SAXParserFactoryImpl
seems to work.
So are we talking about a kind of dependency-problem with GWT (2.8.0+)?
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+unsubscribe@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.
Thursday, June 28, 2018
Re: Radio Button in Cell Table or Data grid.
I think I got it. Will this be correct?
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+unsubscribe@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.
private final SingleSelectionModel<DTO> roleStatusSelectionModel = new SingleSelectionModel<>(KEY_PROVIDER);
roleCellTable.setSelectionModel(roleStatusSelectionModel);
private final CheckboxCell rowSelectionColumnCell = new CheckboxCell(true, false);
final Column<DTO, Boolean> rowSelectionColumn = new Column<DTO, Boolean>(rowSelectionColumnCell) {
@Override
public Boolean getValue(final DTO dto) {
return roleStatusSelectionModel.isSelected(dto);
}
}
final Set<DTO> selectedSet = roleStatusSelectionModel.getSelectedSet();
for (final DTO selected : selectedSet) {
selected.setActive(true);
}
-- Secondly, If I have to do this custom radio based on CheckboxCell, what's the best way?
On Thursday, June 28, 2018 at 11:20:36 AM UTC-5, Thomas Broyer wrote:
Fwiw, if this is about selecting a value, have a look at the SingleSelectionModel and how to apply it to a CheckboxCell. If you want the additional type="radio" on the <input> (for accessibility, mainly), then create your own custom cell based on CheckboxCell.If this is not about selection, then I'm afraid it'll be a bit harder, as you won't have an event/callback/whatever on the "previously selected radio" when you select another one.
On Thursday, June 28, 2018 at 6:07:25 PM UTC+2, BM wrote:Basically to implement custom RadioGroupCell for Cell Table. This is not having a group of Radio buttons within a single cell.So what I want is a cell table which has a cell Column called "Active" and defined with one Radio button in that cell. Unlike checkboxes or custom cell of group of radio buttons within one cell, my requirement is the Radio buttons in all rows are part of one Group so one can select only one at a time.So here is what cell table would look likeRole Active------ --------Admin Radio Button (YES)Role A Radio Button (NO)Role B Radio Button (NO)One can toggle to select only one Radio between roles.I can write a custom cell which has one radio button. But I don't know how each radio buttons becomes part of the single group across the rows.Any help or pointers would be much appreciated.
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+unsubscribe@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: Radio Button in Cell Table or Data grid.
Cheers Thomas. You are right on where my struggle is. Hmm.
Ok so where can I find the SingleSelectionModel and how to apply it to a CheckboxCell example? As long as I can show a widget (either checkbox or radio) which toggles across each row to put ON or OFF value within the DTO field I am okay to show checkbox.
On Thursday, June 28, 2018 at 11:20:36 AM UTC-5, Thomas Broyer wrote:
Fwiw, if this is about selecting a value, have a look at the SingleSelectionModel and how to apply it to a CheckboxCell. If you want the additional type="radio" on the <input> (for accessibility, mainly), then create your own custom cell based on CheckboxCell.If this is not about selection, then I'm afraid it'll be a bit harder, as you won't have an event/callback/whatever on the "previously selected radio" when you select another one.
On Thursday, June 28, 2018 at 6:07:25 PM UTC+2, BM wrote:Basically to implement custom RadioGroupCell for Cell Table. This is not having a group of Radio buttons within a single cell.So what I want is a cell table which has a cell Column called "Active" and defined with one Radio button in that cell. Unlike checkboxes or custom cell of group of radio buttons within one cell, my requirement is the Radio buttons in all rows are part of one Group so one can select only one at a time.So here is what cell table would look likeRole Active------ --------Admin Radio Button (YES)Role A Radio Button (NO)Role B Radio Button (NO)One can toggle to select only one Radio between roles.I can write a custom cell which has one radio button. But I don't know how each radio buttons becomes part of the single group across the rows.Any help or pointers would be much appreciated.
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+unsubscribe@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: Radio Button in Cell Table or Data grid.
Fwiw, if this is about selecting a value, have a look at the SingleSelectionModel and how to apply it to a CheckboxCell. If you want the additional type="radio" on the <input> (for accessibility, mainly), then create your own custom cell based on CheckboxCell.
-- If this is not about selection, then I'm afraid it'll be a bit harder, as you won't have an event/callback/whatever on the "previously selected radio" when you select another one.
On Thursday, June 28, 2018 at 6:07:25 PM UTC+2, BM wrote:
On Thursday, June 28, 2018 at 6:07:25 PM UTC+2, BM wrote:
Basically to implement custom RadioGroupCell for Cell Table. This is not having a group of Radio buttons within a single cell.So what I want is a cell table which has a cell Column called "Active" and defined with one Radio button in that cell. Unlike checkboxes or custom cell of group of radio buttons within one cell, my requirement is the Radio buttons in all rows are part of one Group so one can select only one at a time.So here is what cell table would look likeRole Active------ --------Admin Radio Button (YES)Role A Radio Button (NO)Role B Radio Button (NO)One can toggle to select only one Radio between roles.I can write a custom cell which has one radio button. But I don't know how each radio buttons becomes part of the single group across the rows.Any help or pointers would be much appreciated.
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+unsubscribe@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.
Radio Button in Cell Table or Data grid.
Basically to implement custom RadioGroupCell for Cell Table. This is not having a group of Radio buttons within a single cell.
So what I want is a cell table which has a cell Column called "Active" and defined with one Radio button in that cell. Unlike checkboxes or custom cell of group of radio buttons within one cell, my requirement is the Radio buttons in all rows are part of one Group so one can select only one at a time.
So here is what cell table would look like
Role Active
------ --------
Admin Radio Button (YES)
Role A Radio Button (NO)
Role B Radio Button (NO)
One can toggle to select only one Radio between roles.
I can write a custom cell which has one radio button. But I don't know how each radio buttons becomes part of the single group across the rows.
Any help or pointers would be much appreciated.
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+unsubscribe@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: RadioCell?
Hey,
On Thursday, September 13, 2012 at 12:20:29 AM UTC-5, S. DG wrote:
-- I know this is VERY old post. But do you know the code for RadioGroupCell?
So what I want is a cell table which has a cell Column called "Active" and defined with one Radio button in that cell. Unlike checkboxes or custom cell of group of radio buttons within one cell, my requirement is the Radio buttons in all rows are part of one Group so one can select only one at a time.
So here is what cell table would look like
Role Active
------ --------
Admin Radio Button (YES)
Role A Radio Button (NO)
Role B Radio Button (NO)
One can toggle to select only one Radio between roles.
Any help or pointers would be much appreciated.
On Thursday, September 13, 2012 at 12:20:29 AM UTC-5, S. DG wrote:
I understand your point.Even i had a similar view when i was asked to implement this. But again for Tables where we have not more 2-3 Radio choices i guess it is fine. But I am still not clear why GWT api have not implemented this yet. People have been looking for it for quite sometime now. I started GWT-ing just a week back.Anyways I am able to create my own RadioGroupCell now after reading through this and many other blogs and breaking my head.Thanks to all.
On Thursday, 13 September 2012 09:20:47 UTC+5:30, Andrei wrote:I think it's a bad idea from a user interface perspective. Imagine you have three radio buttons in a cell, and a many rows. Now your user is presented with dozens of radio buttons that take a lot of space. It would look very confusing. Use a regular SelectionCell - this is a UI concept that all users are familiar with. And you will save a lot of time :)
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+unsubscribe@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: GWT csrf protection
My apologies for the bump. This seems to be the most apt place to put this information.
Since we're upgrading our server from JBoss EAP 6.4.x to EAP 7.1.x we ran into an issue with the default XSRF protection of GWT.
Undertow changes Session ID on authentication. To prevent Session Fixation.
Our fix has been to generate a long random string, stick it into the HttpSession and check that the client sends that blob on each request. We just overrode the XsrfProtectedService validation and the XsrfTokenService generation methods.
Even without Undertow this is possible with Servlet API 3.1 servers due to the addition of HttpServletRequest#changeSessionId() method.
With kind regards,
Maarten Daalder
ISAAC
On Sunday, 5 November 2017 20:21:05 UTC+1, Maarten Daalder (ISAAC Software Solutions) wrote:
We are currently using it in production. The code hasn't changed since at least 2.6.0 (and probably earlier).The only problems we currently have are that sometimes the client doesn't fetch a new token on start or that the client has to refresh the browser after the session expired.
On Tuesday, 31 October 2017 13:36:16 UTC+1, Rencia Cloete wrote:Gwt Documentation http://www.gwtproject.org/doc/latest/ as well as GWT IN action https://manning-content.s3.DevGuideSecurityRpcXsrf.html amazonaws.com/download/d/ recommend extending XsrfProtectedService on client side and XsrfProtectedServiceServlet on server side....07888ea-bada-44cc-9c55- ead15ea7fe85/GWT_sample-07.pdf But both thse methods are still marked as "EXPERIMENTAL and subject to change. Do not use this in production code. "What gives? is this a leftover - or are they now safe to use in production?Thanks for your help in advance!
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+unsubscribe@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.
Wednesday, June 27, 2018
Re: GWT RPC file name in ClassNotFoundException
GwtHandlerAdapter class extends the RemoteServiceServlet class and overrides its processCall(String payload) method.
On Tuesday, June 26, 2018 at 11:53:30 AM UTC+5:30, Thomas Broyer wrote:
-- The overriden method only throws error when the payload value is:
7|0|96|http://vagrant.ptcnet.ptc.com:2280/Windchill/gwt/com.ptc.windchill.wncgwt.WncGWT/|1C2DD3E7BC435105789300F99C966F9B|com.ptc.cat.ops.client.internal.OperationDispatcher|dispatch|java.util.ArrayList/4159755760|com.ptc.windchill.enterprise.dsb.client.ops.StructureCompareOperation$StructureCompareOperationParams/619250753|com.extjs.gxt.ui.client.core.FastMap/3488076414|java.lang.String/2004016611|SOURCE_NCID|-105227984815700591|TARGET_NCID|-7516521843859502960|SOURCE_CACHEID|184184|TARGET_CACHEID|184185|SOURCE_ROOT_STRUCTURE_MODEL|com.ptc.cat.entity.client.structure.SimpleMasteredStructureModel/714351732|com.ptc.cat.entity.client.nav.internal.DefaultNavigable/1488927308|com.ptc.cat.entity.client.internal.ServerIdentifier/44651098|wt.part.WTPartMaster|156180|java.util.LinkedList/3953877921|com.ptc.cat.entity.client.ParentInfo/148369529|masterReference|wt.part.WTPart|174404|PART_USES|http://vagrant.ptcnet.ptc.com:2280/Windchill/wtcore/images/part.gif|Part|TARGET_ROOT_STRUCTURE_MODEL|SOURCE_STRUCTURE_MODEL|TARGET_STRUCTURE_MODEL|SOURCE_ATTRIBUTE_MAPPER|com.ptc.cat.entity.client.attribute.AttributeMapper/4173695238|identityBuilder|FILTERED_PART_BUILD_RULE_EPMDOCS|com.ptc.cat.entity.client.attribute.Attribute/1120602003|com.ptc.cat.entity.client.structure.AbstractStructureModel$StructureModelLocation/351430279|Child|SUBSTITUTE_PARTS|AXL_PART_DESCRIBE_DOCS|AVL_NAV_PARAMS|MFR_TO_VEN_NAV_CONSTANT|AXL_PART_REFERENCE_DOCS|REFERENCE_DOCS|CAD_DESCRIBE_DOCS|AML_NAV_PARAMS|DESCRIBE_DOCS|FILTERED_PART_BUILD_RULE_ASSOCIATION_EPMDOCS|ALTERNATE_PARTS|FILTERED_PART_BUILD_HISTORY_EPMDOCS|TARGET_ATTRIBUTE_MAPPER|SOURCE_ATTRIBUTES|TARGET_ATTRIBUTES|IS_INITIATED_FROM_LEFT|java.lang.Boolean/476441737|COMPARE_SUMMARIES_CACHE_ID|0.84591641254933151530079253572|SOURCE_CONTEXT_INFOS|TARGET_CONTEXT_INFOS|SORT_BY_SOURCE|SOURCE_SORT_INFOS|[Lcom.ptc.cat.gxt.client.data.AttributeSortInfo;/3159444690|com.ptc.cat.gxt.client.data.AttributeSortInfo/2832941857|com.extjs.gxt.ui.client.Style$SortDir/3873584144|TARGET_SORT_INFOS|SOURCE_NAV_TYPE_NAMES|java.util.HashSet/3273092938|TARGET_NAV_TYPE_NAMES|SOURCE_SOURCING_CONTEXT_ID|TARGET_SOURCING_CONTEXT_ID|SOURCE_STARTING_PATH|com.ptc.cat.entity.client.CATNodePath/4282519304|TARGET_STARTING_PATH|COMPARE_OPTIONS|{}|graphBuilder|com.ptc.windchill.enterprise.part.structureCompare.server.graph.SCGraphBuilder|applicationName|com.ptc.windchill.enterprise.part.structureCompare.StructureCompare|differenceCalculator|com.ptc.windchill.enterprise.dsb.server.graph.DSBDifferenceCalculator|java.util.HashMap/1797211028|wt.part.WTPartReferenceLink|wt.part.WTPartDescribeLink|wt.part.WTPartAlternateLink|wt.part.WTPartSubstituteLink|com.ptc.windchill.suma.axl.AXLEntry|wt.epm.build.EPMBuildRule|wt.epm.build.EPMBuildHistory|wt.epm.structure.EPMDescribeLink|com.extjs.gxt.ui.client.core.FastSet/2139705081|java.util.Arrays$ArrayList/2507071751|com.ptc.cat.ops.client.DefaultCommandMapPopulator/3331120601|com.ptc.windchill.enterprise.dsb.client.ops.StructureCompareOperation|1|2|3|4|1|5|5|1|6|7|26|8|9|8|10|8|11|8|12|8|13|8|14|8|15|8|16|8|17|18|0|19|0|0|0|20|21|0|22|23|1|24|25|25|20|26|0|27|0|0|0|19|5|1|-14|0|0|20|26|0|27|0|0|0|0|2057|0|28|0|0|5|0|1|29|30|0|0|-19|8|31|18|0|19|0|0|0|20|21|0|22|23|1|24|24|25|20|26|0|27|0|0|0|19|5|1|-25|0|0|-21|0|0|0|0|2057|0|28|0|0|5|0|1|29|30|0|0|-30|8|32|-13|8|33|-24|8|34|35|7|0|7|1|8|36|7|14|8|37|38|36|0|0|0|0|0|39|40|0|8|41|38|36|0|0|0|0|0|-43|0|8|42|38|36|0|0|0|0|0|-43|0|8|43|38|36|0|0|0|0|0|-43|0|8|44|38|36|0|0|0|0|0|-43|0|8|45|38|36|0|0|0|0|0|-43|0|8|46|38|36|0|0|0|0|0|-43|0|8|47|38|36|0|0|0|0|0|-43|0|8|48|38|36|0|0|0|0|0|-43|0|8|49|38|36|0|0|0|0|0|-43|0|8|50|38|36|0|0|0|0|0|-43|0|8|51|38|36|0|0|0|0|0|-43|0|8|52|38|36|0|0|0|0|0|-43|0|8|28|38|36|0|0|0|0|0|-43|0|8|53|35|7|0|7|1|-39|7|14|-41|38|36|0|0|0|0|0|-43|0|-44|38|36|0|0|0|0|0|-43|0|-46|38|36|0|0|0|0|0|-43|0|-48|38|36|0|0|0|0|0|-43|0|-50|38|36|0|0|0|0|0|-43|0|-52|38|36|0|0|0|0|0|-43|0|-54|38|36|0|0|0|0|0|-43|0|-56|38|36|0|0|0|0|0|-43|0|-58|38|36|0|0|0|0|0|-43|0|-60|38|36|0|0|0|0|0|-43|0|-62|38|36|0|0|0|0|0|-43|0|-64|38|36|0|0|0|0|0|-43|0|-66|38|36|0|0|0|0|0|-43|0|-68|38|36|0|0|0|0|0|-43|0|8|54|5|1|-42|8|55|5|1|-75|8|56|57|1|8|58|8|59|8|60|0|8|61|0|8|62|57|1|8|63|64|1|65|36|57|0|0|57|0|0|66|1|0|8|67|64|1|65|36|57|0|0|57|0|0|-106|0|8|68|7|2|-56|69|1|-13|-68|69|1|-13|8|70|7|2|-56|69|1|-24|-68|69|1|-24|8|71|0|8|72|0|8|73|74|1|18|0|-14|0|0|0|-19|0|0|0|2056|0|28|0|0|5|0|1|29|30|0|0|-19|8|75|74|1|18|0|-25|0|0|0|-30|0|0|0|2056|0|28|0|0|5|0|1|29|30|0|0|-30|8|76|8|77|7|3|8|78|8|79|8|80|8|81|8|82|8|83|0|0|0|5|1|-42|0|0|14|0|84|0|1|0|0|5|8|8|85|8|86|8|87|8|88|8|89|8|90|8|91|8|92|0|0|1|-1|93|2|-56|-68|81|0|0|0|0|0|0|0|0|0|94|2|-13|-24|0|0|1|0|1|0|0|0|200|14|95|0|0|0|0|5|2|-21|-21|1|0|81|10|0|0|-21|0|0|1|0|96|1|
For other payloads it do not throw any error.
On Tuesday, June 26, 2018 at 11:53:30 AM UTC+5:30, Thomas Broyer wrote:
What does com.ptc.mvc.gwt.GwtHandlerAdapter do? Could it be responsible for this behavior?
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+unsubscribe@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.
Tuesday, June 26, 2018
What are the most important skills for developers? Voice your opinions and win cool prizes!
The 15th wave of the DeveloperEconomics is live until June 30th!
If you're not familiar with it, the Developer Economics survey asks questions that are 100% relevant to developers out there, with the aim to discover where the industry is going next.
- What are the most important skills for developers?
- Are you getting value from the available dev resources?
- Where do you think development time should be invested?
In order to make it worth your time, the survey offers really great rewards:
- A chance to win valuable prizes like iPhone X, Samsung S9 Plus, HTC Vive Pro, GitHub developer plans, Amazon vouchers, and more!
- Insights into developer trends in your region;
- Access to the State of the Developer Nation Q2, 2018 report with the key findings of the survey.
It's a great way to contribute to the community and learn about the tools and frameworks you might not be familiar with. Over 40,000 developers from 160+ countries take part in the survey every year. It's a fun experience too - at the end of the survey you'll find out who is your Sci-fi alter-ego; aren't you curious?
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+unsubscribe@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.
Monday, June 25, 2018
GWT RPC file name in ClassNotFoundException
What does com.ptc.mvc.gwt.GwtHandlerAdapter do? Could it be responsible for this behavior?
--
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+unsubscribe@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.
--
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+unsubscribe@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.
GWT RPC file name in ClassNotFoundException
I am getting the following error while upgrading from GWT 2.6.1 to GWT 2.8.2:
com.google.gwt.user.client.rpc.IncompatibleRemoteServiceException: java.lang.ClassNotFoundException: 1C2DD3E7BC435105789300F99C966F9B
at com.google.gwt.user.server.rpc.RPC.decodeRequest(RPC.java:323)
at com.ptc.mvc.gwt.GwtHandlerAdapter.processCall(GwtHandlerAdapter.java:156)
at com.google.gwt.user.server.rpc.RemoteServiceServlet.processPost(RemoteServiceServlet.java:305)
at com.google.gwt.user.server.rpc.AbstractRemoteServiceServlet.doPost(AbstractRemoteServiceServlet.java:62)
at com.ptc.mvc.gwt.GwtHandlerAdapter.handle(GwtHandlerAdapter.java:118)
at org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:963)
at org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:897)
at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:970)
at org.springframework.web.servlet.FrameworkServlet.doPost(FrameworkServlet.java:872)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:661)
at org.springframework.web.servlet.FrameworkServlet.service(FrameworkServlet.java:846)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:742)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:231)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
at wt.licenseusage.licensing.LicenseFilter.doFilter(LicenseFilter.java:47)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
at com.ptc.core.ui.validation.URLValidationFilter.doFilter(URLValidationFilter.java:77)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
at wt.httpgw.filter.WTContextBeanFilter.doWithWtContextBeanHandler(WTContextBeanFilter.java:104)
at wt.httpgw.filter.WTContextBeanFilter.doFilter(WTContextBeanFilter.java:58)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
at wt.servlet.CompressionFilter.doFilter(CompressionFilter.java:301)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
at wt.servlet.RequestInterrupter.doFilter(RequestInterrupter.java:335)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
at wt.servlet.ServletRequestMonitor.doFilter(ServletRequestMonitor.java:1660)
at wt.servlet.ServletRequestMonitorFilter.doFilter(ServletRequestMonitorFilter.java:56)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:198)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:96)
at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:496)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:140)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:81)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:87)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:342)
at org.apache.coyote.ajp.AjpProcessor.service(AjpProcessor.java:479)
at org.apache.coyote.AbstractProcessorLight.process(AbstractProcessorLight.java:66)
at org.apache.coyote.AbstractProtocol$ConnectionHandler.process(AbstractProtocol.java:790)
at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1478)
at org.apache.tomcat.util.net.SocketProcessorBase.run(SocketProcessorBase.java:49)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
at java.lang.Thread.run(Thread.java:745)
Caused by: com.google.gwt.user.client.rpc.SerializationException: java.lang.ClassNotFoundException: 1C2DD3E7BC435105789300F99C966F9B
at com.google.gwt.user.server.rpc.impl.ServerSerializationStreamReader.deserialize(ServerSerializationStreamReader.java:708)
at com.google.gwt.user.server.rpc.impl.ServerSerializationStreamReader.readObject(ServerSerializationStreamReader.java:592)
at com.google.gwt.user.server.rpc.core.java.util.Arrays$ArrayList_ServerCustomFieldSerializer.instantiate(Arrays.java:71)
at com.google.gwt.user.server.rpc.core.java.util.Arrays$ArrayList_ServerCustomFieldSerializer.instantiateInstance(Arrays.java:106)
at com.google.gwt.user.server.rpc.core.java.util.Arrays$ArrayList_ServerCustomFieldSerializer.instantiateInstance(Arrays.java:39)
at com.google.gwt.user.server.rpc.impl.ServerSerializationStreamReader.instantiate(ServerSerializationStreamReader.java:1088)
at com.google.gwt.user.server.rpc.impl.ServerSerializationStreamReader.deserialize(ServerSerializationStreamReader.java:682)
at com.google.gwt.user.server.rpc.impl.ServerSerializationStreamReader.readObject(ServerSerializationStreamReader.java:592)
at com.google.gwt.user.server.rpc.impl.ServerSerializationStreamReader$ValueReader$8.readValue(ServerSerializationStreamReader.java:149)
at com.google.gwt.user.server.rpc.impl.ServerSerializationStreamReader.deserializeValue(ServerSerializationStreamReader.java:434)
at com.google.gwt.user.server.rpc.impl.ServerSerializationStreamReader.deserializeClass(ServerSerializationStreamReader.java:832)
at com.google.gwt.user.server.rpc.impl.ServerSerializationStreamReader.deserializeImpl(ServerSerializationStreamReader.java:903)
at com.google.gwt.user.server.rpc.impl.ServerSerializationStreamReader.deserializeClass(ServerSerializationStreamReader.java:861)
at com.google.gwt.user.server.rpc.impl.ServerSerializationStreamReader.deserializeImpl(ServerSerializationStreamReader.java:903)
at com.google.gwt.user.server.rpc.impl.ServerSerializationStreamReader.deserializeClass(ServerSerializationStreamReader.java:861)
at com.google.gwt.user.server.rpc.impl.ServerSerializationStreamReader.deserializeImpl(ServerSerializationStreamReader.java:903)
at com.google.gwt.user.server.rpc.impl.ServerSerializationStreamReader.deserialize(ServerSerializationStreamReader.java:687)
at com.google.gwt.user.server.rpc.impl.ServerSerializationStreamReader.readObject(ServerSerializationStreamReader.java:592)
at com.google.gwt.user.server.rpc.core.java.util.Collection_ServerCustomFieldSerializerBase.deserialize(Collection_ServerCustomFieldSerializerBase.java:38)
at com.google.gwt.user.server.rpc.core.java.util.ArrayList_ServerCustomFieldSerializer.deserialize(ArrayList_ServerCustomFieldSerializer.java:40)
at com.google.gwt.user.server.rpc.core.java.util.ArrayList_ServerCustomFieldSerializer.deserializeInstance(ArrayList_ServerCustomFieldSerializer.java:54)
at com.google.gwt.user.server.rpc.core.java.util.ArrayList_ServerCustomFieldSerializer.deserializeInstance(ArrayList_ServerCustomFieldSerializer.java:33)
at com.google.gwt.user.server.rpc.impl.ServerSerializationStreamReader.deserializeImpl(ServerSerializationStreamReader.java:884)
at com.google.gwt.user.server.rpc.impl.ServerSerializationStreamReader.deserialize(ServerSerializationStreamReader.java:687)
at com.google.gwt.user.server.rpc.impl.ServerSerializationStreamReader.readObject(ServerSerializationStreamReader.java:592)
at com.google.gwt.user.server.rpc.impl.ServerSerializationStreamReader$ValueReader$8.readValue(ServerSerializationStreamReader.java:149)
at com.google.gwt.user.server.rpc.impl.ServerSerializationStreamReader.deserializeValue(ServerSerializationStreamReader.java:434)
at com.google.gwt.user.server.rpc.RPC.decodeRequest(RPC.java:312)
... 49 more
Caused by: java.lang.ClassNotFoundException: 1C2DD3E7BC435105789300F99C966F9B
at org.apache.catalina.loader.WebappClassLoaderBase.loadClass(WebappClassLoaderBase.java:1308)
at org.apache.catalina.loader.WebappClassLoaderBase.loadClass(WebappClassLoaderBase.java:1136)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:348)
at com.google.gwt.user.server.rpc.impl.ServerSerializationStreamReader.deserialize(ServerSerializationStreamReader.java:634)
... 76 more
There exist a gwt.rpc file with name: 1C2DD3E7BC435105789300F99C966F9B
It is not clear which class the error talks about and what does the rpc file name after ClassnotFoundException mean?
PFA the gwt.rpc file.
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+unsubscribe@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.
Friday, June 22, 2018
Re: Jetty version is outdated
Thank you! Much appreciated.
It is, clearly, a pain in a tochas and an upgrade to the latest Jetty in the GWT default Superdev mode would be a better option.
Miss the time when debugging was done using the Firefox GWT plugin where you can just work with the code in the IDE.
Peter
On Jun 22, 2018, at 7:44 AM, Jens <jens.nehlmeier@gmail.com> wrote:
I assume you have everything (client, shared server code) in the same project in IntelliJ. Then IntelliJ has likely already detected the Web Facet for your project. If not you have to add that Web Facet in the Project Structure configuration screen in IntelliJ. Make sure that Deployment Descriptor (web.xml) and Web Resource Directory (path to war folder) is correctly configured in the Web Facet.
Once you have done that you can create an artifact in the Project Structure configuration screen in IntelliJ. Choose Web Application (exploded) -> From Modules and select your GWT project. Then select the created artifact, select the Output Layout tab and remove GWT compiler output if IntelliJ has added it to the artifact automatically. If you don't do that, IntelliJ will do a real GWT compile each time you build the artifact. This is undesired if you use SuperDevMode during development. Also note the artifact output directory, you need that in your GWT / SuperDevMode run configuration and add the folder as DevMode parameter -war <folder of your exploded war artifact>. Once you do that and restart SuperDevMode, it will create a <module>.nocache.js file in your exploded war and copy all GWT public resources to it.
Next install/activate the Jetty integration plugin in IntelliJ. Create a new Jetty -> Local run configuration and at the top right click the configure button to add an application server. Select the unzipped jetty distribution you have downloaded and create the server. In the run configuration you have a deployment tab which allows you to add the artifact to jetty. At the bottom in the Before launch section you could also add build artifact task so that IntelliJ builds your artifact each time you start Jetty, however this is optional. If IntelliJ asks you to add the JMX module to Jetty then do it.
Now you should be able to launch SuperDevMode, then launch Jetty, and your app should be deployed on your custom jetty server. If you use GWT-RPC you might want to add -Dgwt.codeserver.port<port> to your JVM parameters of the Jetty run configuration, so that the GWT-RPC server part can download SourceMaps from SuperDevMode code server.
-- J.--
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+unsubscribe@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.
Subscribe to:
Posts (Atom)