Win a copy of Pipeline as Code this week in the Cloud/Virtualization forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Jeanne Boyarsky
  • Bear Bibeault
Sheriffs:
  • Rob Spoor
  • Henry Wong
  • Liutauras Vilda
Saloon Keepers:
  • Tim Moores
  • Carey Brown
  • Stephan van Hulst
  • Tim Holloway
  • Piet Souris
Bartenders:
  • Frits Walraven
  • Himai Minh
  • Jj Roberts

Client Side Exception

 
Ranch Hand
Posts: 78
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Author and all-around good cowpoke
Posts: 13078
6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Self destruct mode activated. Instructions for deactivation encoded in this tiny ad.
SKIP - a book about connecting industrious people with elderly land owners
https://coderanch.com/t/skip-book
reply
    Bookmark Topic Watch Topic
  • New Topic