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

  • SEARCH
  • Home
  • 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 6214295
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T06:51:05+00:00 2026-05-24T06:51:05+00:00

I have a bugzilla server which i am trying to access through the rest

  • 0

I have a bugzilla server which i am trying to access through the rest api . I want to update the database remotely through REST.
I get the following exception when i try to run my code:

W/DB      (  277): java.net.SocketException: Permission denied
W/DB      (  277):  at org.apache.harmony.luni.platform.OSNetworkSystem.createStreamSocketImpl(Native Method)
W/DB      (  277):  at org.apache.harmony.luni.platform.OSNetworkSystem.createStreamSocket(OSNetworkSystem.java:186)
W/DB      (  277):  at org.apache.harmony.luni.net.PlainSocketImpl.create(PlainSocketImpl.java:265)
W/DB      (  277):  at java.net.Socket.checkClosedAndCreate(Socket.java:873)
W/DB      (  277):  at java.net.Socket.connect(Socket.java:1020)
W/DB      (  277):  at org.apache.http.conn.scheme.PlainSocketFactory.connectSocket(PlainSocketFactory.java:119)
W/DB      (  277):  at org.apache.http.impl.conn.DefaultClientConnectionOperator.openConnection(DefaultClientConnectionOperator.java:143)
W/DB      (  277):  at org.apache.http.impl.conn.AbstractPoolEntry.open(AbstractPoolEntry.java:164)
W/DB      (  277):  at org.apache.http.impl.conn.AbstractPooledConnAdapter.open(AbstractPooledConnAdapter.java:119)
W/DB      (  277):  at org.apache.http.impl.client.DefaultRequestDirector.execute(DefaultRequestDirector.java:348)
W/DB      (  277):  at org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:555)
W/DB      (  277):  at org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:487)
W/DB      (  277):  at org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:465)
W/DB      (  277):  at com.geek.myzilla.RestClient.myputter(RestClient.java:269)
W/DB      (  277):  at com.geek.myzilla.MyZillaActivity.onCreate(MyZillaActivity.java:59)
W/DB      (  277):  at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1047)
W/DB      (  277):  at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2627)

The RestClient.myputter function looks something like this:

public static String myputter(String... params)
{
  String url = params[0];            
  String jsonBody = params[1]; 
  DefaultHttpClient client = new DefaultHttpClient();
   HttpPut putRequest = new HttpPut(url);
   try {
     StringEntity se = new StringEntity(jsonBody);
      se.setContentType("text/json");
      se.setContentEncoding(new BasicHeader(HTTP.CONTENT_TYPE, "application/json"));
      putRequest.setEntity(se);
      putRequest.addHeader("Content-Type", "application/json");
      putRequest.setEntity(se);
      putRequest.setHeader("Accept", "application/json");
      putRequest.setHeader("Content-Type", "application/json");

      HttpResponse response = client.execute(putRequest);
      int status_code=response.getStatusLine().getStatusCode();

The client.execute line is throwing the exception
Any ideas why this is happening?

  • 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-05-24T06:51:06+00:00Added an answer on May 24, 2026 at 6:51 am

    Did you add the Internet permission to the manifest? From Android developers site.

        <uses-permission android:name="android.permission.INTERNET" /> 
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Have you managed to get Aptana Studio debugging to work? I tried following this,
In MonoDevelop I have the following code which compiles: int[] row = new int[indices.Count]{};
I'm trying to configure a Bugzilla instance, which will allow my clients to login,
We have Bugzilla installed on a computer which we would like to act as
Hi i am trying to install bugzilla on my mediatemple server, i am totally
I have an existing Bugzilla installation that I'm trying to upgrade via CVS as
I have installed Bugzilla on my dedicated server with Centos5.5. I have already a
Here is the URL: https://landfill.bugzilla.org/bugzilla-tip/ In my code I have this: Server server =
I have a JIRA environment which already has some information and i'm trying to
Have you ever seen any of there error messages? -- SQL Server 2000 Could

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.