Hi,
I am using
tomcat 4.0.3, while running my Applet-Servlet program. I am getting the following error.
Its giving me NullPointerException because i am passing a vector from
servlet side to
Applet, but its not even
connecting to the servlet. That is why i am getting that error.'
I think the main problem is the tomcat connection.
Also, I am getting java.net.ConnectException: Connection refused: connect error.
What could be the reason of this.
Any help will be greatly appreciated.
Thanks in advance.
Error
=========================
http://localhost:8080/examples/servlet/scanstation.ServletClass?Login=SAM&Login=SAM Connecting...
Getting input stream
Exception occurred during event dispatching:
java.lang.NullPointerException
at scanstation.LoginScreen.displayLogInInformation(LoginScreen.java:221)
at scanstation.LoginScreen.jButton1_actionPerformed(LoginScreen.java:151)
at scanstation.LoginScreen.passwordTextfield_actionPerformed(LoginScreen.java:256)
at scanstation.LoginScreen$4.actionPerformed(LoginScreen.java:123)
at javax.swing.JTextField.fireActionPerformed(JTextField.java:421)
at javax.swing.JTextField.postActionEvent(JTextField.java:586)
java.net.ConnectException: Connection refused: connect
at javax.swing.JTextField$NotifyAction.actionPerformed(JTextField.java:696)
at javax.swing.SwingUtilities.notifyAction(SwingUtilities.java:1384)
at javax.swing.JComponent.processKeyBinding(JComponent.java:2078)
at javax.swing.JComponent.processKeyBindings(JComponent.java:2104)
at javax.swing.JComponent.processKeyEvent(JComponent.java:2041)
at java.awt.Component.processEvent(Component.java:3553)
at java.awt.Container.processEvent(Container.java:1164)
at java.awt.Component.dispatchEventImpl(Component.java:2593)
at java.awt.Container.dispatchEventImpl(Container.java:1213)
at java.awt.Component.dispatchEvent(Component.java:2497)
at java.awt.LightweightDispatcher.processKeyEvent(Container.java:2155)
at java.awt.LightweightDispatcher.dispatchEvent(Container.java:2135)
at java.awt.Container.dispatchEventImpl(Container.java:1200)
at java.awt.Component.dispatchEvent(Component.java:2497)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:339)
at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:131)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:98)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:93)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:85)