Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Problem while building jsp/servlet in j2me

 
sachin warang
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi friends,
I'm building Servlet in j2me.When i run this Servlet on web browser the Servlet running fine.But while in application when i used
conn = (HttpConnection)Connector.open( url );
where url = "http://localhost:8080/servlets-examples/hits"

It hangs ,the debugger stuck at this method .It didn't throw any Exception also.

Whats the problem?how could i resolve this issue?
Note:
I've used the follwing tutorial
http://developers.sun.com/techtopics/mobility/midp/articles/tutorial2/
to build servlet in MIDlet.

Regards,
Sachin Warang.
 
sachin warang
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi friends,

I debug the code while doing so i realised that it is throwing SecurityException .
So edit the preferences> where in security i've change the settings to untrusted and restore the settings.
After clicking on OK .
The application works fine.

Regards,
Sachin Warang.
 
Mark Spritzler
ranger
Sheriff
Posts: 17278
6
IntelliJ IDE Mac Spring
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic