• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Exception during processing: java.lang.ClassCastException

 
Ranch Hand
Posts: 71
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I have a stateless session bean which has a method that returns a collection. S0
I wrote a wrapper class that uses this stateless bean, converts
this collection to standard string[] and deployed to Weblogic appserver 8.1.

But after deploying, when I tried to access this webservice, I am getting:

xmlns:bea_fault="http://www.bea.com/servers/wls70/webservice/fault/1.0.0">java.lang.ClassCastException

This is the method in the wrapper class, which I am trying to access from webservice client:

public String[] getA(String custtomerNumber) {
String[] retAs = null;
try {
ArrayList als = (ArrayList)sfb.getAls(custNum); //sfb is the session bean home
retAs = new String[als.size()];
for(int i = 0; i < als.size(); i++){
retAs[i] = (String)als.get(i);
}
} catch (RemoteException e) {
e.printStackTrace();
}
return retAs;
}
 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic