Uploaded image for project: 'Errai'
  1. Errai
  2. ERRAI-1076

Marshaller not working after recent Marshaller optimizations

    Details

    • Type: Bug
    • Status: Open (View Workflow)
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: ErraiMarshalling
    • Labels:
      None

      Description

      I randomly started receiving the error in one of my projects:

      java.lang.RuntimeException: no marshaller for type: com.insclix.auction.shared.models.PhotoAnalysisRequest
      

      My marshalling setup is like so:

      errai.marshalling.serializableTypes=com.insclix.auction.shared.models.*
      

      I tried adding @Portable to the PhotoAnalysisRequest class with no success. This is the class:

      public class PhotoAnalysisRequest implements Serializable {
       
      	private AnalysisType type;
      	private String dataUrl;
       
      	public PhotoAnalysisRequest() {}
       
      	public PhotoAnalysisRequest(@MapsTo("type") AnalysisType type, @MapsTo("dataUrl") String dataUrl) {
      		this.type = type;
      		this.dataUrl = dataUrl;
      	}
       
      	public AnalysisType getType() {
      		return type;
      	}
       
      	public void setType(AnalysisType type) {
      		this.type = type;
      	}
       
      	public String getDataUrl() {
      		return dataUrl;
      	}
      	
      	public void setDataUrl(String dataUrl) {
      		this.dataUrl = dataUrl;
      	}
      }
      

      This is in the latest 4.1.0-SNAPSHOT, when digging into the issue I found out that reverting to this commit: https://github.com/errai/errai/commit/b1333de49227ab01fb744e067d4e66b1f8a41ab1 the issue no longer appears.

      Seems the issue is with this commit: https://github.com/errai/errai/commit/297941735e38d1ad4498af6acedd53669026ab61 or a later commit (more likely to be the optimization commit causing the issue).

      What I have tried so far:

      • clean installing my project
      • cleaning all caches
      • added @Portable to the class
      • reverting my recent errai changes to the marshaller (wasn't the issue)

        Gliffy Diagrams

          Attachments

          1. fZlcETh.png
            fZlcETh.png
            47 kB
          2. screenshot-1.png
            screenshot-1.png
            50 kB
          3. screenshot-2.png
            screenshot-2.png
            58 kB

            Activity

              People

              • Assignee:
                mbarkley Max Barkley
                Reporter:
                ben.dol Ben Dol
              • Votes:
                1 Vote for this issue
                Watchers:
                5 Start watching this issue

                Dates

                • Created:
                  Updated: