• 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 Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • paul wheaton
  • Jeanne Boyarsky
  • Ron McLeod
Sheriffs:
  • Paul Clapham
  • Liutauras Vilda
  • Devaka Cooray
Saloon Keepers:
  • Tim Holloway
  • Roland Mueller
Bartenders:

url connection problem

 
Ranch Hand
Posts: 101
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
In my applet, I'm trying to call an .asp page that executes an update against our sql server database. I'm creating a url object and passing in the url to the asp page. I'm getting the following error and I'm not sure what I'm doing wrong. Thanks.
java.net.UnknownServiceException: no content-type
Here's my code for url portion of the applet...

And here's the code to my asp page...

[ June 06, 2002: Message edited by: tyler jones ]
 
tyler jones
Ranch Hand
Posts: 101
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I modified my code a bit and I'm getting a different error now. I don't know if I made things better or worse

... and this is the error I'm getting....

com.ms.security.SecurityExceptionEx[AlarmContainer$AlarmClock.run]: cannot access "www.mysite.com":80
[ June 06, 2002: Message edited by: tyler jones ]
 
tyler jones
Ranch Hand
Posts: 101
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Nevermind, I figured out that I was getting this because I was opening the htm page on my own machine and the applet was trying to connect to one of our webservers. As soon as I let the applet run from the webserver, it all worked fine. It called the asp page which then updated the database.... wooohooooooo! Now, I can finally finish this project.
 
They gave me pumpkin ice cream. It was not pumpkin pie ice cream. Wiping my tongue on this tiny ad:
We need your help - Coderanch server fundraiser
https://coderanch.com/wiki/782867/Coderanch-server-fundraiser
reply
    Bookmark Topic Watch Topic
  • New Topic