ASG
IBM
Zystems
Cressida
Icon
Netflexity
 
  MQSeries.net
Search  Search       Tech Exchange      Education      Certifications      Library      Info Center      SupportPacs      LinkedIn  Search  Search                                                                   FAQ  FAQ   Usergroups  Usergroups
 
Register  ::  Log in Log in to check your private messages
 
RSS Feed - WebSphere MQ Support RSS Feed - Message Broker Support

MQSeries.net Forum Index » WebSphere Process Server (WID/WPS/WAS+) » Error Implementing an interface from Library Module.

Post new topic  Reply to topic
 Error Implementing an interface from Library Module. « View previous topic :: View next topic » 
Author Message
venky
PostPosted: Mon Dec 17, 2007 11:14 am    Post subject: Error Implementing an interface from Library Module. Reply with quote

Master

Joined: 08 Jul 2003
Posts: 205

Hi All,

I've created a mediation library with an interface and few business objects in it. The interface has one input dataobject ( the input dataobject has a child of an array of dataobjects). The output for the interface also has a similar structure to the input.

I created a mediation module and implemented the above interface using a Java SCA component. When I tried to access the array of dataobjects inside the input dataobject using getList("BoName") - then I am getting the following error. (I added the library in this module's dependancy)

"Exception data: java.lang.ClassCastException: java.util.ArrayList."

The same works well if I don't have a library and declare the interface and BOs in the same mediation module where I have the implementation.

Any suggestions ?

Thanks, V.
Back to top
View user's profile Send private message
fjb_saper
PostPosted: Mon Dec 17, 2007 1:22 pm    Post subject: Reply with quote

Grand High Poobah

Joined: 18 Nov 2003
Posts: 20696
Location: LI,NY

Quote:
"Exception data: java.lang.ClassCastException: java.util.ArrayList."
Maybe the object you're getting is not the one you expected?
_________________
MQ & Broker admin
Back to top
View user's profile Send private message Send e-mail
venky
PostPosted: Thu Dec 20, 2007 9:19 am    Post subject: Solved: Error Implementing an interface from Library Module. Reply with quote

Master

Joined: 08 Jul 2003
Posts: 205

The business object was supposed to be declared as an array, but since I didn't specify that it is an array and still was trying to access the BO in my code as an array by invoking the getList () method - I got this error.

Anyways, it is solved now.

Thanks, V.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » WebSphere Process Server (WID/WPS/WAS+) » Error Implementing an interface from Library Module.
Jump to:  



You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
Protected by Anti-Spam ACP
 
 


Theme by Dustin Baccetti
Powered by phpBB © 2001, 2002 phpBB Group

Copyright © MQSeries.net. All rights reserved.