wood burning stoves 2.0*
The moose likes Sockets and Internet Protocols and the fly likes Please HELP!!! URGENT!!! java.io.IOException: Connection failure with 407  Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Sockets and Internet Protocols
Bookmark "Please HELP!!! URGENT!!! java.io.IOException: Connection failure with 407  " Watch "Please HELP!!! URGENT!!! java.io.IOException: Connection failure with 407  " New topic
Author

Please HELP!!! URGENT!!! java.io.IOException: Connection failure with 407

sam patel
Ranch Hand

Joined: Jun 13, 2002
Posts: 103
Hi,
I need to give a demo on a program next week and i am getting this error....
I am using tomcat 4.0.3, while running my Applet-Servlet program.
If i run my program in the same computer i works fine...
But i am trying to run the program from another computer and getting the following error.
There is nothing wrong with the null pointer....I am definitely sure about this....
I think the problem is with the security (java.io.IOException: Connection failure with 407)...
Thanks in advance....
Error:
=========================
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.passwordTextfield_actionPerformed(LoginScreen.java:255)
at scanstation.LoginScreen$4.actionPerformed(LoginScreen.java:123)
at javax.swing.JTextField.fireActionPerformed(Unknown Source)
at javax.swing.JTextField.postActionEvent(Unknown Source)
at javax.swing.JTextField$NotifyAction.actionPerformed(Unknown Source)
at javax.swing.SwingUtilities.notifyAction(Unknown Source)
at javax.swing.JComponent.processKeyBinding(Unknown Source)
at javax.swing.JComponent.processKeyBindings(Unknown Source)
at javax.swing.JComponent.processKeyEvent(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.processKeyEvent(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)
Maulin Vasavada
Ranch Hand

Joined: Nov 04, 2001
Posts: 1871
hi sam,
what is at line,
at scanstation.LoginScreen.displayLogInInformation(LoginScreen.java:220)
i mean what is the line 220 in LoginScreen.java?
also, it might be helpful if you paste your code here...
thanks
maulin.
sam patel
Ranch Hand

Joined: Jun 13, 2002
Posts: 103
Hi,
Thank you for your reply...
displayLogInInformation returns a Vector...
Basically this is what's happening ...
In the browser the user inputs the username and password... i am taking that username and password and checking in database if its correct...
If it is then it displays next screen...
The problem is not with the NullPointer Exception...
I think the problem is with Some sort of security. I am able to run this program in my computer#1. But when i run that prgram from computer#2 I am getting this error...
I can access the tomcat server of Computer#1 from Computer#2.
Maulin Vasavada
Ranch Hand

Joined: Nov 04, 2001
Posts: 1871
well,
it is giving the NullPointer exception...so we can't ignore that...
it might not because of the application's code may be but there is something wrong somewhere...
i am unable to think of possibilities..
regards
maulin
Vijayakumar Arya
Ranch Hand

Joined: Jan 27, 2003
Posts: 76
I guess that there is nothing to do with null pointer exception. The connection was refused and since the applet could not retrieve the data, the object reference is null. There would be possibly a try - catch block across the code that communicates with the servlet.
HTTP/1.1
407 Proxy Authentication Required
You must authenticate with a proxy server before this request can be serviced.
Please logon to your proxy server and then try again.
Since in system A you won't be using the proxy, so no authentication is required.
hope this helps
----------------
vijay.


Thanks,<p>Vijay<p>The Hand that gives, Gathers.
gautham kasinath
Ranch Hand

Joined: Dec 01, 2000
Posts: 583
more help can be given if you can give a part of the codes..
Lupo


"In the country of the blind, the one eyed man is the King"
Gautham Kasinath CV at : http://www.geocities.com/gkasinath
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Please HELP!!! URGENT!!! java.io.IOException: Connection failure with 407
 
Similar Threads
Rules Round-up Game
Trying to run Applet-Servlet from Other Computer and Getting Error...HELP!!!!
Getting error Incompatible magic value 1784772193 in class file
Do jnlp file updates itself
Applet + java.io.IOException: Connection failure with 407...HELP.....