This week's book giveaway is in the Artificial Intelligence forum.
We're giving away four copies of Pragmatic AI and have Noah Gift on-line!
See this thread for details.
Win a copy of Pragmatic AI this week in the Artificial Intelligence forum!
  • 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 all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Jeanne Boyarsky
  • Liutauras Vilda
  • Campbell Ritchie
  • Tim Cooke
  • Bear Bibeault
Sheriffs:
  • Paul Clapham
  • Junilu Lacar
  • Knute Snortum
Saloon Keepers:
  • Ron McLeod
  • Ganesh Patekar
  • Tim Moores
  • Pete Letkeman
  • Stephan van Hulst
Bartenders:
  • Carey Brown
  • Tim Holloway
  • Joe Ess

Error calling Service javax.xml.bind.JAXBException: java.util.ArrayList is not known to this context  RSS feed

 
Ranch Hand
Posts: 83
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi All,

I have written a very simple SOAP service which returns an arraylist of objects.
When i hit the service using SOAP UI , I get below error. Could someone please adivse on how to fix it.



I also get below info in my service logs



Below is my Service Class :



 
Rancher
Posts: 3602
39
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You need to sort your logging out.
When catching exceptions you ought to ensure you are logging the stack trace as well.
In addition, don't leave catch blocks empty.  You'll never know if an exception is thrown.
At least log a simple debug message, if it's an exception you're not overly interested in.
 
Don't get me started about those stupid light bulbs.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!