問題タブ [notserializableexception]
For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.
serialization - Hadoop - java.io.NotSerializableException
Hadoop でのシリアライゼーションの問題を理解するのに苦労しています。これが私のクラスです -
Serizable と Writable の両方のインターフェイスを実装すると、次の例外が発生します。
そして、Writable のみを実装すると、NotSerializableException が発生します -
コメントから抽出された詳細情報:
CrawlerTweet
BDAnalytics16.jar ファイルにパッケージ化されています。
助けていただければ幸いです。どうも!
jsf - java.io.NotSerializableException: com.wings.marketingevent.util.FlowWizard
簡単だと思いますが、これで行き詰まりました。https://www.primefaces.org/showcase/ui/panel/wizard.xhtmlwizard
のようにライフレイを使用したいと考えています。私はこれをxhtmlに持っています:
そして豆について:
しかし、[次へ] ボタンをクリックしようとしても、ページが次のタブに変更されず、コンソールに次のエラー メッセージが表示されました。
どうしたの?ありがとう。
java - NotSerializableException が発生しなかったのはなぜですか?
このプログラムは正しく実行され、オブジェクトが正常にシリアル化されますob
。しかし、実行時にjava.io.NotSerializableExceptionが発生すると予想していました。MyClass
Serializable インターフェイスを実装していないクラスを参照しているためです。本当に何が起こっているのですか?
jboss7.x - JBoss AS7 Hornetq - RemoteConenctionFactory ルックアップが RoundRobinConnectionLoadBalancingPolicy NotSerializableException で失敗する
JBoss AS 7 Hornetq を使用しています。スタンドアロンの Java アプリケーションは、キューとやり取りしてメッセージを送信します。環境全体のセットアップが完了し、非常にスムーズに機能していました。ある晴れた日、突然、スタンドアロン アプリケーションが以下の例外で失敗しました。
詳細な例外スタック トレースは次のとおりです。
javax.naming.NamingException: org.jboss.naming.remote.client.ClientUtil.namingException(ClientUtil. java:36) org.jboss.naming.remote.protocol.v1.Protocol$1.execute(Protocol.java:104) で org.jboss.naming.remote.protocol.v1.RemoteNamingStoreV1.lookup(RemoteNamingStoreV1.java:79) で) org.jboss.naming.remote.client.RemoteContext.lookup(RemoteContext.java:79) で org.jboss.naming.remote.client.RemoteContext.lookup(RemoteContext.java:83) で javax.naming.InitialContext. com.infosys.lbs.publishing.LocationProcessor.postMessageInQueue(LocationProcessor.java:377) のルックアップ (不明なソース) com.infosys.lbs.publishing.LocationProcessor.process(LocationProcessor.java:69) の com.infosys.lbs.Publishing.main.Publisher.main(Publisher.java:34) 原因: java.io.NotSerializableException: org.jboss.marshalling.river.RiverMarshaller.doWriteObject(RiverMarshaller) の org.hornetq.api.core.client.loadbalance.RoundRobinConnectionLoadBalancingPolicy .java:891) org.jboss.marshalling.river.RiverMarshaller.doWriteFields(RiverMarshaller.java:1063) org.jboss.marshalling.river.RiverMarshaller.doWriteSerializableObject(RiverMarshaller.java:1019) org.jboss.marshalling. river.RiverMarshaller.doWriteObject(RiverMarshaller.java:885) org.jboss.marshalling.river.RiverMarshaller.doWriteFields(RiverMarshaller.java:1063) org.jboss.marshalling.river.RiverMarshaller.doWriteSerializableObject(RiverMarshaller.java:1019) org.jboss.marshalling.river.RiverMarshaller.doWriteSerializableObject(RiverMarshaller.java:998)marshalling.river.RiverMarshaller.doWriteObject(RiverMarshaller.java:885) org.jboss.marshalling.AbstractObjectOutput.writeObject(AbstractObjectOutput.java:62) org.jboss.marshalling.AbstractMarshaller.writeObject(AbstractMarshaller.java:119) org .jboss.naming.remote.protocol.v1.Protocol$1$2.write(Protocol.java:138) at org.jboss.naming.remote.protocol.v1.WriteUtil.write(WriteUtil.java:61) at org.jboss .naming.remote.protocol.v1.Protocol$1.handleServerMessage(Protocol.java:128) at org.jboss.naming.remote.protocol.v1.RemoteNamingServerV1$MessageReciever$1.run(RemoteNamingServerV1.java:73) at java.util .concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) で java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) で java.lang.Thread.run(Thread.java:662) が発生したに:発生した例外: オブジェクト org.hornetq.jms.client.HornetQJMSConnectionFactory@ea074d のフィールド serverLocator のフィールド loadBalancingPolicy
アプリが接続ファクトリを検索しようとしたときに例外が発生していました
以下は、問題を解決した手順です。
java - JAVA: クラスがシリアライズされない
私は Java についてもっと学ぶためのプログラムに取り組んでおり、ほぼ完成しています。シリアライゼーションに取り組んでからしばらく経ちましたが、ブラッシュアップした後でも、まだ何かが欠けています。このクラスをファイルに保存しようとしていますが、NotSerialzableException がスローされています。このクラス MonetaryField には、シリアル化されてディスクに保存できる非プリミティブ型の SingleField が含まれています。また、次の内容も含まれます。
最後に、これは私が知っていることです。非プリミティブ型の SingleField は、シリアル化されており、ディスクに正常に保存されるため、問題ではありません。e.getCause()
これをデータとして保存するクラスで「 」をクエリすると、「null」と表示されました。「 」を返してもらったらe.getMessage
、「 」のせいにしたjavax.swing.GroupLayout
。GroupLayout を削除した後、" e.getMessage()
" は " " を返しomnitool.MonetaryField$1
ました。Omnitool がメイン パッケージです。私が残っている場所です。そして、皆さんのためにスタック トレース (e.getStackTrace().toString) を印刷しようとしましたが、「[Ljava.lang.StackTraceElement;@6ab7501b
」とだけ言われました... 誰かがそれが何を意味するのか説明できるなら。また、シリアライゼーションに関する数時間の調査をすでに行っていますが、誰かが共有できる良い資料を持っていれば、それは素晴らしいことです!
java - あるアクティビティから別のアクティビティに HttpClient オブジェクトを渡す
DefaultHttpClient
オブジェクトを使用して http rest リクエストを実行するクラスがあります。同じ HttpClient オブジェクトを使用して別のクラスで別のリクエストを実行しようとしていますが、使用しているクラスをシリアル化されたオブジェクトとして新しいアクティビティに渡そうとしました。しかし、実行時に java.io.NotSerializableException を与えると、ロードしている次のアクティビティにオブジェクトをそのままDefaultHttpClient
渡す方法があります。DefaultHttpClient
javafx - SimpleListProperty の NotSerializableException
私はJavafxを使用しており、オブジェクトをListPropertyにラップして、リストのオブジェクトの変更に対してテーブルビューを更新できるようにします。現在、プロジェクトとオブジェクトの ListProperty をシリアル化しようとしていますが、この例外がスローされます。
私のプロジェクト クラスはこのようなもので、私自身のすべてのオブジェクトは既にシリアライズ可能を実装しています。
プロジェクトとその中の機器のリストをシリアル化するにはどうすればよいですか?