Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Client Side Exception

 
Sandeep Advani
Ranch Hand
Posts: 78
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello Friends

I have written a client using Apache AXIS client side API to access a Web Service After running the client, I receive following exception:

java.lang.IllegalAccessException: Class org.apache.axis.providers.java.JavaProvi
der can not access a member of class LookupService with modifiers ""

My client side code is



I can see the web service being deployed by targetting the http:\\localhost:8080\axis on the browser.

Any idea what might cause this exception?

Thanks
Sandeep
 
William Brogden
Author and all-around good cowpoke
Rancher
Posts: 13074
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Java.lang.IllegalAccessException: Class org.apache.axis.providers.java.JavaProvi
der can not access a member of class LookupService with modifiers ""

I think you have an exception generated by the service, not the client side. I suspect that the method you are trying to access does not have the "public" access modifier. Did you write LookupService or get it from somewhere else?
Bill
 
Sandeep Advani
Ranch Hand
Posts: 78
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello Bill,

Lookup Service was written by me. Code snippet is as follows.



Public modifier is there in order to expose the services. Moreover, the services seem to be deployed when I hit the browser hosting Web Services.

Thanks
Sandeep
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic