Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8931147
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T09:02:54+00:00 2026-06-15T09:02:54+00:00

I have next parent-class: public class ListUIModel<T extends BaseModel> extends BaseModel implements List<T> {

  • 0

I have next parent-class:

public class ListUIModel<T extends BaseModel> extends BaseModel implements List<T> {

    protected ArrayList<T> list = new ArrayList<T>();

    public ListUIModel() {
    }

    public ListUIModel(T... models) {
        list = ArraysUtil.asList(models);
    }

    //implementation of List interface...

And have class derived from ListUIModel:

public class ProducersUIModel extends ListUIModel<ProducerUIModel> {

public ProducersUIModel() {
}

public ProducersUIModel(ProducerUIModel... producers) { 
    super(producers);
}

other methods...

Service method returns PublicationUIModel.

This code is compiled by gwt, and when I run the tomcat, I see this warning:

29 Nov 2012 09:10:59,498: ERROR http-8443-Processor21 org.apache.catalina.core.ContainerBase.[Catalina].[localhost].[/] - userProfileController: ERROR: Could not find class 'org.gwtwidgets.client.temp.TMouseListenerCollection' listed in the serialization policy file '/5C1ACC115899B7BFEC8646E55EC693E0.gwt.rpc'; your server's classpath may be misconfigured
java.lang.ClassNotFoundException: org.gwtwidgets.client.temp.TMouseListenerCollection
    at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1377)
    at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1223)
    at java.lang.Class.forName0(Native Method)...

And GWT’s util CompileReport says:

org.gwtwidgets.client.temp.TMouseListenerCollection
   Serialization status
      Instantiable
   Path
      'org.gwtwidgets.client.temp.TMouseListenerCollection' is reachable as a subtype of type 'class java.util.ArrayList<T>'
      'java.util.ArrayList<T>' is reachable from field 'list' of type 'com.xalmiento.desknet.ui.client.model.ListUIModel<T>'
      'com.xalmiento.desknet.ui.client.model.ListUIModel<com.xalmiento.desknet.ui.client.model.ProducerUIModel>' is reachable as a supertype of type 'class com.xalmiento.desknet.ui.client.model.ProducersUIModel'
      'com.xalmiento.desknet.ui.client.model.ProducersUIModel' is reachable as a subtype of type 'class com.xalmiento.desknet.ui.client.model.ProducersUIModel'

Why GWT tries to load TMouseListenerCollection? I use ArrayList(without in other places) and all right. It’s till difficult to understand for me 🙁

I know that I can explicity exclude this class from .gwt.rpc policy file. But how I resolve this issue with another approach?

Thanks.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-15T09:02:55+00:00Added an answer on June 15, 2026 at 9:02 am

    GWT compiler tries to list out all subtypes from ArrayList which are implementing IsSerializable. The solution is to try removing IsSerializable interface from TMouseListenerCollection or declare list in ListUIModel as transient ( non-serializable ) if it is not to be sent over the rpc.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

@Entity public class Parent { @Id @GeneratedValue(strategy=GenerationType.TABLE) int id; @OneToMany(cascade=CascadeType.REMOVE) List<Item> children = new
I have a quite simple activity like this : public class SurvivalActivity extends Activity
public class TabularMibTreeModel extends DefaultTreeModel { public TabularMibTreeModel() { super(new DefaultMutableTreeNode(Tablular MIBs)); loadParentMibs(); }
I have next interface public interface IMyInterface { string this[string key] { get; set;
I have next tables Order , Transaction , Payment . Class Order has some
I have next code require 'rack/rpc' class Server < Rack::RPC::Server def hello_world Hello, world!
I have a TreeVertex class: // TreeVertex.h #ifndef __TREEVERTEX__ #define __TREEVERTEX__ #include <list> using
I have 3 classes, let's call them 1, 2, and 3. Class 1 extends
Java Q: I can't access a public variable in my parent's class' inner class
Assume we have following JPA Entities: class Parent { @Id private Long id; }

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.