• Post Reply Bookmark Topic Watch Topic
  • New Topic

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

 
Ranch Hand
Posts: 55
  • 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 :



 
Ranch Foreman
Posts: 3136
37
  • 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!