• 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: 17309
11
IntelliJ IDE Mac Spring
 
my overalls have superpowers - they repel people who think fashion is important. Tiny ad:
the new thread boost feature brings a LOT of attention to your favorite threads
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!