This week's book giveaway is in the Kotlin forum.
We're giving away four copies of Kotlin in Action and have Dmitry Jemerov & Svetlana Isakova on-line!
See this thread for details.
Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Webservices compatibility in JDK 4 and 5  RSS feed

arvind mulay
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi All,
Got stuck in a weird scenario.

Have got a common webservice for login authenticcation.

Web service was created keeping in mind systems built on JDK 1.5 and onwards.

There are many legacy systems built on JDK 1.4 which are not able to call this webservice.

Attched is the code for webservice. Calling prnot getting cogram :

Program which is causing exception is at following lines for getConstructor method and newInstance method:
java.lang.reflect.Constructor constructor = exceptionClass.getConstructor(String.class);
java.lang.Exception ex = (java.lang.Exception) constructor.newInstance(f.getMessage());

My problem:
1) Cannot upgrade legacy systems to JDK 1.5
2) Cannot make major changes in web service program since already implemented for some system.

Please help me in making the webservice compatible for both JDK 1.4 and 1.5


  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!