zoukankan      html  css  js  c++  java
  • hrift does not support polymorphic data types

    hrift does not support polymorphic data types

    Exception in thread "main" com.facebook.swift.codec.metadata.MetadataErrorException: Error: Metadata extraction encountered 1 errors and 0 warnings
    	at com.facebook.swift.codec.metadata.MetadataErrors.throwIfHasErrors(MetadataErrors.java:73)
    	at com.facebook.swift.codec.metadata.ThriftStructMetadataBuilder.build(ThriftStructMetadataBuilder.java:99)
    	at com.facebook.swift.codec.metadata.ThriftCatalog.extractThriftStructMetadata(ThriftCatalog.java:502)
    	at com.facebook.swift.codec.metadata.ThriftCatalog.getThriftStructMetadata(ThriftCatalog.java:367)
    	at com.facebook.swift.codec.metadata.ThriftCatalog.getThriftType(ThriftCatalog.java:259)
    	at com.facebook.swift.service.metadata.ThriftMethodMetadata.<init>(ThriftMethodMetadata.java:124)
    	at com.facebook.swift.service.metadata.ThriftServiceMetadata.<init>(ThriftServiceMetadata.java:73)
    	at com.facebook.swift.service.ThriftServiceProcessor.<init>(ThriftServiceProcessor.java:79)
    	at com.facebook.swift.service.ThriftServiceProcessor.<init>(ThriftServiceProcessor.java:68)
    	at com.stono.thrift.annotation.server.ServerMain.main(ServerMain.java:15)
    	Suppressed: com.facebook.swift.codec.metadata.MetadataErrorException: Error: ThriftStruct class 'com.stono.thrift.annotation.server.User' is not final (thrift does not support polymorphic data types)
    		at com.facebook.swift.codec.metadata.MetadataErrors.addError(MetadataErrors.java:95)
    		at com.facebook.swift.codec.metadata.AbstractThriftMetadataBuilder.verifyClass(AbstractThriftMetadataBuilder.java:181)
    		at com.facebook.swift.codec.metadata.ThriftStructMetadataBuilder.<init>(ThriftStructMetadataBuilder.java:45)
    		at com.facebook.swift.codec.metadata.ThriftCatalog.extractThriftStructMetadata(ThriftCatalog.java:501)
    		... 7 more

    如果出现这样的错误,是没有在类上面添加final修饰;

  • 相关阅读:
    MyEclipse中的Tomcat跑大项目时内存溢出:permgen space
    MyEclipse新建工作空间后的配置详细步骤
    解决eclipse复制粘贴js代码卡死的问题
    eclipse复制工作空间配置
    maven项目检出后报错(包括编译报错和运行报错)的常见检查处理方式
    MyEclipse中引用的maven配置文件只访问私服的配置
    图标网站
    afasf
    一个权限管理模块的设计(转载)
    奇艺下载
  • 原文地址:https://www.cnblogs.com/stono/p/8278339.html
Copyright © 2011-2022 走看看