• Post Reply Bookmark Topic Watch Topic
  • New Topic

How to resolve the issue related to: Cannot Create a Secure XMLInputFactory

 
Akshay Webdirekt
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am trying to run Junit test case for my application where one of my method call the server to get the location from geo-coordinates but I am getting an error as Cannnot create a secure XMLInputFactory, however when I tried to run my application with the tomcat I am not getting this error and my method call the server and gives response properly.Can anyone please help to find the reason behind this error and proper solution to this problem. Thanks in advance.

Error as follows:
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!