File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Web Services and the fly likes confused by PrivilegedActionException Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


JavaRanch » Java Forums » Java » Web Services
Reply Bookmark "confused by PrivilegedActionException" Watch "confused by PrivilegedActionException" New topic
Author

confused by PrivilegedActionException

simon keillor
Greenhorn

Joined: Jun 23, 2004
Posts: 24
Hi,

Am very new to web services!!

Am using JDeveloper to create a simple web service, and then a client to test the web service. However when I run the client I get the following error:



I have no idea what is causing this, the client was generated by a code wizard in JDeveloper so in realirt I haven't actually coded anything.

Any pointers would be very much appreciated.


Simon
Peer Reynders
Bartender

Joined: Aug 19, 2005
Posts: 2906
getting exception while invoking service frm client on another system may help.


"Don't succumb to the false authority of a tool or model. There is no substitute for thinking."
Andy Hunt, Pragmatic Thinking & Learning: Refactor Your Wetware p.41
simon keillor
Greenhorn

Joined: Jun 23, 2004
Posts: 24
I understand that, but what password is it looking for?

I never specified any when I created the webservice - i just followed a JDeveloper tutorial to create the service and then the client. Nowhere there does it mention about passowrds!
Peer Reynders
Bartender

Joined: Aug 19, 2005
Posts: 2906
Just some possibilities:

Did you deploy the web service or did you just write the client? If somebody or something else deployed the web service then it may require account credentials - something like a database logon.

Is the Web service deployed locally on your machine or another machine over the network? If you are going over the network you may need to cross a firewall in which case the proxy credentials need to be configured.
simon keillor
Greenhorn

Joined: Jun 23, 2004
Posts: 24
Hi,

You were right. The service was deployed locally on my machine, but the connection I was trying to use was my network address, obviously out firewall was causing problems. When i changed it to localhost it all worked fine.

Can't thank you enough for your help
 
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: confused by PrivilegedActionException
 
Similar Threads
javax.xml.soap.SOAPException: Unable to internalize message
SL handshake failed: X509CertChainIncompleteErr
java.security.PrivilegedActionException: oracle.j2ee.ws.saaj.ContentTypeException: Not a valid SOAP
javax.xml.rpc.soap.SOAPFaultException: Rejected by policy. (from client)
getting exception while invoking service frm client on another system