• 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:
  • Tim Cooke
  • Campbell Ritchie
  • Ron McLeod
  • Liutauras Vilda
  • Jeanne Boyarsky
Sheriffs:
  • Junilu Lacar
  • Rob Spoor
  • Paul Clapham
Saloon Keepers:
  • Tim Holloway
  • Tim Moores
  • Jesse Silverman
  • Stephan van Hulst
  • Carey Brown
Bartenders:
  • Al Hobbs
  • Piet Souris
  • Frits Walraven

Applet + java.io.IOException: Connection failure with 407...HELP.....

 
Ranch Hand
Posts: 103
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi All,
I have developed an applet-servlet application in Jbuilder9. When I run my applet from JBuilder it runs fine.
So, this is what i did...
I copied my package class file to
D:\JBuilder9\thirdparty\jakarta-tomcat-4.1.24-LE-jdk14\webapps\examples\WEB-INF\classes

and my LoginScreen.html file in
D:\JBuilder9\thirdparty\jakarta-tomcat-4.1.24-LE-jdk14\webapps\ROOT
LoginScreen.html
----------------
<html>
<head>
<title>
</title>
</head>
<body>
<applet
codebase = "."
archive = "ScanStation.jar"
code = "scanstation.LoginScreen.class"
name = "ScanStation"
width = "350"
height = "200"
hspace = "0"
vspace = "0"
align = "middle"
>
</applet>
</body>
</html>
When i run this from Internet Explorer as....
http://10.120.123.15:8080/LoginScreen.html
it displays the Login screen that i created....But when i hit my button to submit it's not displaying anything....
In my Java Console....I am getting the following error.
Java(TM) Plug-in: Version 1.3.1_05
Using JRE version 1.3.1_05 Java HotSpot(TM) Client VM
User home directory = C:\Documents and Settings\sam
User has overriden browser's proxy settings.
Proxy Configuration: Manual Configuration
Proxy: XXX.XXXXXX.com:80
Proxy Overrides:
----------------------------------------------------
c: clear console window
f: finalize objects on finalization queue
g: garbage collect
h: display this help message
l: dump classloader list
m: print memory usage
q: hide console
s: dump system properties
t: dump thread list
x: clear classloader cache
0-5: set trace level to <n>
----------------------------------------------------
http://10.120.123.15:8080/examples/servlet/scanstation.ServletClass?Login=SAM&Login=SAM
Connecting...
Getting input stream
java.io.IOException: Connection failure with 407
Exception occurred during event dispatching:
java.lang.NullPointerException
at scanstation.LoginScreen.displayLogInInformation(LoginScreen.java:220)
at scanstation.LoginScreen.jButton1_actionPerformed(LoginScreen.java:151)
at scanstation.LoginScreen$1.actionPerformed(LoginScreen.java:88)
at javax.swing.AbstractButton.fireActionPerformed(Unknown Source)
at javax.swing.AbstractButton$ForwardActionEvents.actionPerformed(Unknown Source)
at javax.swing.DefaultButtonModel.fireActionPerformed(Unknown Source)
at javax.swing.DefaultButtonModel.setPressed(Unknown Source)
at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(Unknown Source)
at java.awt.Component.processMouseEvent(Unknown Source)
at java.awt.Component.processEvent(Unknown Source)
at java.awt.Container.processEvent(Unknown Source)
at java.awt.Component.dispatchEventImpl(Unknown Source)
at java.awt.Container.dispatchEventImpl(Unknown Source)
at java.awt.Component.dispatchEvent(Unknown Source)
at java.awt.LightweightDispatcher.retargetMouseEvent(Unknown Source)
at java.awt.LightweightDispatcher.processMouseEvent(Unknown Source)
at java.awt.LightweightDispatcher.dispatchEvent(Unknown Source)
at java.awt.Container.dispatchEventImpl(Unknown Source)
at java.awt.Component.dispatchEvent(Unknown Source)
at java.awt.EventQueue.dispatchEvent(Unknown Source)
at java.awt.EventDispatchThread.pumpOneEventForHierarchy(Unknown Source)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.run(Unknown Source)

Any help will be greatly appreciated.....
 
Bartender
Posts: 9626
16
Mac OS X Linux Windows
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I don't suppose you are trying to open a socket connection or database connection to a server other than your webserver? Applets can only open connections to the server they were downloaded from. If that's not the problem you may have to show the relevant code.
 
WHAT is your favorite color? Blue, no yellow, ahhhhhhh! Tiny ad:
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop
https://coderanch.com/wiki/718759/books/Building-World-Backyard-Paul-Wheaton
reply
    Bookmark Topic Watch Topic
  • New Topic