Thread Rating:
  • 465 Vote(s) - 2.89 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Could not deserialize the object from Curl.
12-11-2013, 07:25 PM,
#1
Could not deserialize the object from Curl.
ORB で通信を行うと、下記のようなメッセージが表示されます。

Could not deserialize the object from Curl.

サービスも、DTOも、正常にジェネレートしたものを利用しています。
なぜでしょうか。
12-11-2013, 07:30 PM, (This post was last modified: 12-11-2013, 07:36 PM by umemura.)
#2
RE: Could not deserialize the object from Curl.
クライアントから、{Array-of {HashTable-of String, any}} の型のデータを渡したいです。
Java側の DTO の型は、List<Map<String, Object>> で定義をしており、
ジェネレートしたDTOの型は、#Array になっています。

クライアント側でDTOに詰める際に、Array型に詰め替えをしています。

Code:
def hash-ary = {{Array-of {HashTable-of String, any}}}
・・・
def ary = {Array}
{for h in hash-ary do
    {ary.append h}
}
set dto.has-list = ary

さらに言うと、配列の要素数が1つの場合はエラーになりません。
なぜなのでしょう。
12-11-2013, 07:37 PM,
#3
RE: Could not deserialize the object from Curl.
{HashTable}型につめかえる必要があるようですね。
要素数が1個の場合と、2個以上の場合でエラーになるかどうかが変わるのが奇妙ですが、
とりあえずは、この方法でいこうと思います。

Code:
def hash-ary = {{Array-of {HashTable-of String, any}}}
・・・
def ary = {Array}
{for h in hash-ary do
    def hst = {HashTable}
    {for s in {h.keys-to-Iterator} do
         set hst[s] = h[s]
    }
    {ary.append hst}
}
set dto.has-list = ary
01-01-2014, 07:25 PM,
#4
RE: Could not deserialize the object from Curl.
Its really good to know me! Great site and a great topic as well i really get amazed to read this thanks. love this way!
Well i have also faced this problem.......it was very disturbing for me.....!
04-11-2015, 04:45 AM,
#5
RE: Could not deserialize the object from Curl.

Such cleaver work and reporting. Keep up the great works guys i've added you guys to my blog roll. This is a great .




Save your time and get on time success in cert killer 70-417 and test king to exams 70-680 by using our latest.


Possibly Related Threads...
Thread Author Replies Views Last Post
  Curl execute Oracle database procedure NamDH 3 4,054 04-21-2017, 03:40 PM
Last Post: tdeng
  TLS通信下でCould not deserialize the object from Curl.発生 MIT 3 4,767 03-10-2017, 08:35 AM
Last Post: MIT
  Protecting SSL private key in a Curl script aensys 1 2,363 02-10-2017, 02:02 PM
Last Post: heavybugtracker
  curl library 7.36.0: curl_easy_perform() function call failed when used for getting a joezhao 1 3,632 10-19-2016, 09:41 AM
Last Post: dyoshida
  Curl IDE からのランチャが見つかりません umemura 1 3,771 06-30-2016, 10:12 AM
Last Post: umemura
  Curl RTE Install smtit 1 2,738 05-06-2016, 12:36 PM
Last Post: dice256
  Curl RTE Command line smtit 1 2,917 04-19-2016, 09:35 AM
Last Post: dice256
  What OS that CURL can support for deloyment? tiennv 1 4,574 08-22-2015, 02:12 AM
Last Post: tdeng
  Curl RTEのPPAPIプラグインについて でり 1 4,398 06-09-2015, 11:03 AM
Last Post: でり
  cURL Client app Michael-2015 1 3,852 04-16-2015, 12:27 PM
Last Post: dyoshida
Forum Jump:


Users browsing this thread:
1 Guest(s)

MyBB SQL Error

MyBB has experienced an internal SQL error and cannot continue.

SQL Error:
1017 - Can't find file: 'mybb_threadviews' (errno: 2)
Query:
INSERT INTO mybb_threadviews (tid) VALUES('1018')