Win a copy of Microservices in Action this week in the Web Services 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:
  • Campbell Ritchie
  • Bear Bibeault
  • Devaka Cooray
  • Liutauras Vilda
  • Jeanne Boyarsky
Sheriffs:
  • Knute Snortum
  • Junilu Lacar
  • paul wheaton
Saloon Keepers:
  • Ganesh Patekar
  • Frits Walraven
  • Tim Moores
  • Ron McLeod
  • Carey Brown
Bartenders:
  • Stephan van Hulst
  • salvin francis
  • Tim Holloway

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

 
Ranch Hand
Posts: 86
  • 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: 3764
40
  • 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.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!