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

Marshaller not working after recent Marshaller optimizations


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


      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:


      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




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


                • Created: