• Post Reply Bookmark Topic Watch Topic
  • New Topic

HTTP.java in ranch --problem

 
shashi kale
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi ,
I'm using the http.java and servlets.java of javaranch but whenever i pass the data from applet to servlet it throws me the error.
Before returning in HTTP11111111111
Before returning in HTTP2222222222
HTTP: java.net.SocketException: Reply from SOCKS server has bad version 72
Before returning in HTTP33333333333333
Exception occurred during event dispatching:
java.lang.NullPointerException
at smp.stats.SMPService.actionPerformed(SMPService.java:799)
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)

so tell me the possible solution for above.

thanks
shashi
 
Chantal Ackermann
Ranch Hand
Posts: 508
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi,
check whether you really instantiated all of your components (especially the buttons). ths NullPointerException indicates, that your calling a method on a null object.
chantal
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!