• 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
  • Ron McLeod
  • Rob Spoor
  • Tim Cooke
  • Junilu Lacar
Sheriffs:
  • Henry Wong
  • Liutauras Vilda
  • Jeanne Boyarsky
Saloon Keepers:
  • Jesse Silverman
  • Tim Holloway
  • Stephan van Hulst
  • Tim Moores
  • Carey Brown
Bartenders:
  • Al Hobbs
  • Mikalai Zaikin
  • Piet Souris

ConnectException

 
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi
Below is the code I want to execute . It is for simple download manager . I configured the class in a project in eclipse and executed it as "Run as" "Java Application" . But everytime i receive "Connect Exception" . Do I need to deploy his on sever ? If yes , hen how should i go ahead with deployment with weblogic 10.3 deployment
Please help . This is a little urgent for me .
Thanks in advance !!

Code for the application :
 
Bartender
Posts: 2270
20
Android Java ME Eclipse IDE Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
The url is fine, nothing looks wrong with your code too. Make sure when you are executing this code, you have a valid connection and there is no firewall issue.
 
Ranch Hand
Posts: 153
Eclipse IDE Tomcat Server Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi Swastik ,

I have one doubt , Will it connect to Internet and download from there if we are running from eclipse ( just like command prompt and not with web application).
If yes then ok else i think she needs to deploy on server.

Thanks in advance.
 
Swastik Dey
Bartender
Posts: 2270
20
Android Java ME Eclipse IDE Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I don't think it has got any thing to do with server deployment. It's a desktop application that uses URLConnection class to read stream from a given url.
 
Rudrani Angira
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thanks guys for your replies . Actually he application is not working with internet files . But when I deployed the file in weblogic and gave the url with http port configuration then it downloaded he file and saved it in the project workspace .
Dont know why ...still confused .
 
Swastik Dey
Bartender
Posts: 2270
20
Android Java ME Eclipse IDE Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

http port configuration

. This is where the problem seems to be. What configuration are you using?
 
reply
    Bookmark Topic Watch Topic
  • New Topic