Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8790819
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T22:45:18+00:00 2026-06-13T22:45:18+00:00

This is my code. I use a simple way to make POST httprespon. Mounted

  • 0
  • This is my code.
  • I use a simple way to make POST httprespon.
  • Mounted on applet.
  • I work correctly in Eclipse.
  • But mounted in appletviewer cause shot down.
  • Web page will be shot down too.
  • The amount of data is too large to deal with?
  • Or is there any other reasons?
  • I need help Thank you

    public class we extends Applet
    {
    Button sd = new Button("11");
    Label title= new Label();
    Label prompt = new Label();
    TextField input = new TextField(8);
    Label result = new Label();
    
    public void init()
    {
        add(sd);
            }
    
    public void start() {
    
    }
    
    public void paint (Graphics g) {
    
    }
    
    public boolean action(Event e, Object o) {
        if (e.target == input) {
            match();
        } else if (e.target == sd) {
            abandon();
        }
        return true;
    }   
    private void match() {      
    }
    private void abandon() {
        String url="http://119.14.80.132/ACT_ID_355";
    
    HttpPost httppost=new HttpPost(url);
    
    List<NameValuePair> params=new ArrayList<NameValuePair>();
    
    params.add(new BasicNameValuePair("UNCLOSE1","1"));
    
    try {
        httppost.setEntity(new UrlEncodedFormEntity(params,HTTP.ISO_8859_1));
    } catch (UnsupportedEncodingException e1) {
    
        e1.printStackTrace();
    }
    
    HttpResponse response = null;
    try {
        response = new DefaultHttpClient().execute(httppost);
    } catch (ClientProtocolException e1) {
    
        e1.printStackTrace();
    } catch (IOException e1) {
    
        e1.printStackTrace();
    }
    
    if(response.getStatusLine().getStatusCode()==200){
        try {
            String resultq=EntityUtils.toString(response.getEntity());
        } catch (ParseException e1) {
    
            e1.printStackTrace();
        } catch (IOException e1) {
    
            e1.printStackTrace();
        }
    }
    
    }
    

    }

appletviewer

Exception in thread "AWT-EventQueue-1" java.security.AccessControlException: acc
ess denied ("java.net.SocketPermission" "119.14.80.132:80" "connect,resolve")
        at java.security.AccessControlContext.checkPermission(AccessControlConte
xt.java:366)
        at java.security.AccessController.checkPermission(AccessController.java:
560)
        at java.lang.SecurityManager.checkPermission(SecurityManager.java:549)
        at java.lang.SecurityManager.checkConnect(SecurityManager.java:1051)
        at java.net.Socket.connect(Socket.java:574)
        at org.apache.http.conn.scheme.PlainSocketFactory.connectSocket(PlainSoc
ketFactory.java:127)
        at org.apache.http.impl.conn.DefaultClientConnectionOperator.openConnect
ion(DefaultClientConnectionOperator.java:180)
        at org.apache.http.impl.conn.ManagedClientConnectionImpl.open(ManagedCli
entConnectionImpl.java:294)
        at org.apache.http.impl.client.DefaultRequestDirector.tryConnect(Default
RequestDirector.java:640)
        at org.apache.http.impl.client.DefaultRequestDirector.execute(DefaultReq
uestDirector.java:479)
        at org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpCl
ient.java:906)
        at org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpCl
ient.java:805)
        at org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpCl
ient.java:784)
        at we.abandon(we.java:130)
        at we.action(we.java:49)
        at java.awt.Component.handleEvent(Component.java:6751)
        at java.awt.Component.postEvent(Component.java:5160)
        at java.awt.Component.postEvent(Component.java:5170)
        at java.awt.Component.dispatchEventImpl(Component.java:4877)
        at java.awt.Component.dispatchEvent(Component.java:4687)
        at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:723)
        at java.awt.EventQueue.access$200(EventQueue.java:103)
        at java.awt.EventQueue$3.run(EventQueue.java:682)
        at java.awt.EventQueue$3.run(EventQueue.java:680)
        at java.security.AccessController.doPrivileged(Native Method)
        at java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDo
main.java:76)
        at java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDo
main.java:87)
        at java.awt.EventQueue$4.run(EventQueue.java:696)
        at java.awt.EventQueue$4.run(EventQueue.java:694)
        at java.security.AccessController.doPrivileged(Native Method)
        at java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDo
main.java:76)
        at java.awt.EventQueue.dispatchEvent(EventQueue.java:693)
        at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThre
ad.java:244)
        at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.
java:163)
        at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThre
ad.java:151)
        at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:147)

        at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:139)

        at java.awt.EventDispatchThread.run(EventDispatchThread.java:97)
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-13T22:45:19+00:00Added an answer on June 13, 2026 at 10:45 pm

    An applet runs in a ‘Sandbox’. It is only allowed to open a connection to the server it is downloaded from. The error you are seeing is a security violation because you are trying to connect to another server.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I use this code: http://blogswizards.com/plugin-development/sliding-boxes-and-captions-with-jquery On a simple gallery site I am building. Specifically
A common piece of code I use for simple string splitting looks like this:
In my open-source plain C code I use this simple structure to read and
Am I missing something? I use this simple code <a name=fb_share type=button href=https://www.facebook.com/sharer.php?u=123.abc.comt=TEst>share on
I know this code use to work, I must have accidentally changed something when
I am using twitter4j-2.1.3.jar to make a simple post to twitter. The code I
I am trying to use some sample code and my compiler won't compile this
I am learning to use xmlhttprequest/AJAX. In this sample code from w3schools, I do
hello I have this code that use to sort a datatable. Dim sortingIndex As
How could I refactor this code to use only one Dir[ ] call? Dir[

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.