java.io.IOException: Unable to locate resource handler.properties


Posted on : Tue, 6th Oct 15 08:50 am UTC
2314 votes
Stack-trace :
java.io.IOException: Unable to locate resource handler.properties
	at org.apache.xmlrpc.server.PropertyHandlerMapping.load(PropertyHandlerMapping.java:53)
	at org.code2care.rpc.JavaServer.main(JavaServer.java:21)

You may get IOException in your XML-RPC based Application when you try to run the server if handler properties file is not placed in the correct location or you have missed to add the file. The file should be placed in your Project folders src folder, if you place it in your package or at the root of the Project folder you will get this error!

File : code snippet Language : Java
PropertyHandlerMapping propHandlerMapping = new PropertyHandlerMapping();
propHandlerMapping.load(Thread.currentThread().getContextClassLoader(),"handler.properties");
xmlRpcServer.setHandlerMapping(propHandlerMapping);


How to resolve IOException XML-RPC


How to resolve IOException XML-RPC

Code2care's mission is to share varied knowledge in technical and non-technical areas gathered during day-to-day learnings and development activities so that our visitors can leverage this portal to find solutions to their queries without re-inventing the wheel. Technical posts include Learnings, Tutorials, Video Tutorials, Code Snippets, Tips-n-tricks.

Follow us : Facebook - Twitter - Google +