小编Ste*_*Cow的帖子

GWT序列化 - 类没有可实例化的子类型

我正在尝试序列化此对象(OperatorDTO),以便我可以使用RPC将其从我的服务器端发送到客户端.我已经阅读了关于这个主题的其他帖子,但我不明白为什么我做的事情与其他人不同.

当我运行我的项目时,会发生此错误

Compiling module edu.example.RPCExample
         Computing all possible rebind results for 'edu.example.client.service.ExampleService'
            Rebinding edu.example.client.service.ExampleService
               Invoking generator com.google.gwt.user.rebind.rpc.ServiceInterfaceProxyGenerator
                  Generating client proxy for remote service interface 'edu.example.client.service.ExampleService'
                     [ERROR] 'edu.example.client.models.OperatorDTO' has no instantiable subtypes
         [ERROR] Errors in 'edu/example/client/service/ExampleServiceClientImpl.java'
            [ERROR] Line 18: Failed to resolve 'edu.example.client.service.ExampleService' via deferred binding
         Unification traversed 16362 fields and methods and 1526 types. 1494 are considered part of the current module and 1494 had all of their fields and methods traversed.
      [ERROR] Compiler returned false
      [WARN] recompile failed
      [WARN] …
Run Code Online (Sandbox Code Playgroud)

java gwt serialization rpc

6
推荐指数
1
解决办法
4957
查看次数

Android:IllegalStateException:无法在MessageQueue.nativePollOnce(MessageQueue.java)上创建图层

多年来,我一直对此错误感到烦恼。

Fatal Exception: java.lang.IllegalStateException: Unable to create layer for MatchCard_
   at android.os.MessageQueue.nativePollOnce(MessageQueue.java)
   at android.os.MessageQueue.next(MessageQueue.java:143)
   at android.os.Looper.loop(Looper.java:130)
   at android.app.ActivityThread.main(ActivityThread.java:5942)
   at java.lang.reflect.Method.invoke(Method.java)
   at java.lang.reflect.Method.invoke(Method.java:372)
   at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1399)
   at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1194)
Run Code Online (Sandbox Code Playgroud)

并非总是如此,而是经常出现。视图是这样构建的

<?xml version="1.0" encoding="utf-8"?>
<com.soudfa.views.RoundedView xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
android:id="@+id/cardView"
android:layout_width="match_parent"
android:layout_height="@integer/match_card_height"
android:layout_gravity="@integer/match_card_card_gravity"
android:transitionGroup="true"
android:layoutDirection="locale"
app:cardPreventCornerOverlap="@bool/match_card_prevent_corner_overlap"
app:corner_radius="@dimen/corner_radius"
app:cardElevation="0dp">

<com.soudfa.fragments.match.views.CustomRecyclerView
    android:id="@+id/recyclerView"
    android:layout_width="match_parent"
    android:layout_height="@integer/match_card_height"
    android:layout_gravity="@integer/match_card_card_gravity"
    android:clickable="true"
    android:focusable="true"
    android:focusableInTouchMode="true"
    android:clipToPadding="false"
    android:scrollbars="@integer/match_card_scroll_bar"
    android:background="@color/brightest"
    android:overScrollMode="never"/>

<FrameLayout
    android:id="@+id/leftActionImageContainer"
    android:layout_width="@dimen/match_card_decision_icon_size_start"
    android:layout_height="@dimen/match_card_decision_icon_size_start"
    android:layout_centerVertical="true"
    android:layout_alignParentStart="true"
    android:alpha="0"
    android:background="@drawable/shape_match_decision_icon_like"
    android:elevation="@dimen/general_elevation"
    android:padding="@dimen/match_card_decision_icon_padding"
    android:scaleType="fitCenter"
    android:scaleX="0"
    android:scaleY="0">

    <ImageView
        android:id="@+id/leftActionImage"
        android:layout_width="match_parent"
        android:layout_height="match_parent"
        android:tint="@color/custom_match_card_action_positive"/>

</FrameLayout>

<FrameLayout
    android:id="@+id/rightActionImageContainer"
    android:layout_width="@dimen/match_card_decision_icon_size_start"
    android:layout_height="@dimen/match_card_decision_icon_size_start"
    android:layout_centerVertical="true"
    android:layout_alignParentEnd="true"
    android:alpha="0" …
Run Code Online (Sandbox Code Playgroud)

android message-queue kotlin

5
推荐指数
0
解决办法
658
查看次数

标签 统计

android ×1

gwt ×1

java ×1

kotlin ×1

message-queue ×1

rpc ×1

serialization ×1