This week's book giveaway is in the iOS forum.
We're giving away four copies of Classic Computer Science Problems in Swift and have David Kopec on-line!
See this thread for details.
Win a copy of Classic Computer Science Problems in Swift this week in the iOS forum!
  • 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: 75
  • 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: 3447
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.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!