error for getting the data from an api using br.readLine
hi
the application is hanging while reading the data using readLine() function . actually the data is coming from remote using particular api call see the following code.
StringBuilder sb = new StringBuilder();
String strtemp;
Runtime runtime = Runtime.getRuntime();
Process process = runtime.exec("cmd.exe /C c:\\curl\\curl -X POST -d \"format=json&api_key=MY739HWQW4PWZ1HIJEWVNSOUAF8EJQ4K\";user[email]=useremail;user[password]=userpassword;user[country]=usercountry;user[mobile_phone]=userphone http://staging-orion.sabsebolo.com/users");
Process process = runtime.exec(url);
BufferedReader inputreader = new BufferedReader(new InputStreamReader(process.getInputStream()));
while ((strtemp = inputreader.readLine()) != null) {
sb=sb.append(strtemp);
}
while executing the above while loop the application is hanging . i find that the application gets hanging while executing inputreader.readLine() function.
please can you help to solve this problem
View Answers
Related Tutorials/Questions & Answers:
Getting data from servlet into javascriptGetting data from servlet into javascript How do i get json
data from my servlet on to a variable in javascript n bind the
data to display onto sigma grid.Has anyone Idea how to do
Advertisements
Getting Textbox data from databaseGetting Textbox
data from database When i m trying to get
data in textbox as readonly
from database i m
getting following error.and my code is shown... an internal
error () that prevented it
from fulfilling this request.
exception
data type used to store name.(getting an error) data type used to store name.(
getting an
error) Statement stm=con.createStatement();
String query="select *
from employee where ename...
getting an
error like dis:
"ename cannot be resolved to a variable"
whats
Getting Textbox data from databaseGetting Textbox
data from database When i m trying to get
data in textbox as readonly
from database i m
getting following error.and my code is shown...
data from database and display it on the textboxes.
<%@page language="java
Getting an error :(Getting an
error :( I implemented the same code as above..
But
getting this
error in console...
Console
Oct 5, 2012 10:18:14 AM org.apache.tomcat.util.digester.SetPropertiesRule begin
WARNING: [SetPropertiesRule]{Server
Why you are not getting value from your data science?Why you are not
getting value
from your
data science? Hi,
I am... for
the tutorials to learn:
Why you are not
getting value
from your
data science?
Try...;Why you are not
getting value
from your
data science?". Also tell me which
Error in reading Excel data using jspError in reading Excel
data using jsp
ERROR while executing bellow code:java.io.IOException: Invalid header signature; read 576460838270094160...() method shows the following
Error message on console
Exporting data from mysql into csv using jspExporting
data from mysql into csv
using jsp Hi friends.... I want to export the
data from mysql to csv file
using... i am having 30 columns in my... in csv file..if i export, am
getting the csv file with all
data in one row
Getting Error - Development processGetting Error Hi , i am
getting error while executing this code. I just want to store date in to database. Dont mistake me for repeated questions... of query values and destination fields are not the same.
my table : Add_
Data Retrieve data from xml using servletsRetrieve
data from xml
using servlets Hi plz send me the code for retrieving the
data from xml File
using Servlets.
Hi,
Do you want... File
using ServletADS_TO_REPLACE_2
Thanks
Hi,
Learn Get
Data From Retrieve data from databse using where in JSPRetrieve
data from databse
using where in JSP Hi, can somebody help me?
I have a jsp page. in that i want to get
data from the database where... help me.
ALL DATABASE CONNECTIONS ARE OK. THE
ERROR IS SHOWN IN "WHERE". IT SAYS
retrieve data from database using jsf retrieve
data from database
using jsf Hello
I want an example of source code to retrieve
data from database
i have a database (oracle) name as db1 it's contain table 'author' composed of three columns idauthor(primary key
Fetching the exact data from file using javaFetching the exact
data from file
using java **hi ...
i am having one .lst file.. that file consists of instructions and opcodes.. now i want to fetch only the opcode
from that file.. could u pls anyone guide me this
using java
Request URl using Retrive data from dtabaseRequest URl
using Retrive
data from dtabase
Using With GWT
the user can create an event. In the create page, we have three buttons. Save as draft... the contents
from the db based on the event id. But this jsp url should
Populate a combo box using data from a databasePopulate a combo box
using data from a database Hi Guys, In need... to populate the first one, and then how to send the
data off to a servlet and preform... to the client
using ajax, and then populate the combo box, I must'nt reload
retrive data from database using jsp in struts? retrive
data from database
using jsp in struts? *search.jsp*
<%@taglib uri="http://struts.apache.org/tags-html" prefix="html"%>
<... searchProduct(SearchDTO sdto) {
String query="select *
from product
Getting Data from XML File (Document) Getting Data from XML File (Document)
...
from a XML file. All xml files store the
data. You can add and modify the
data..._TO_REPLACE_1
This program helps you in retrieving the
data from a XML
file
get from address using javamail api?get
from address
using javamail
api? i want to get
from address of particular mail
using the javamail
api?
actually i had done it in one .jsp file... no to composereplymail.jsp
using the javascript, m
getting message[messageno].getSubject() but when i
Retrieving data from data base using jsp combo boxRetrieving
data from data base
using jsp combo box Hi guys please help me , i have on GUI page int that Server type(like apache,jboss,weblogic) one... of the server it has to display the process name
from database into the process name
getting files from VSSgetting files
from VSS I am not able to get the files
from VSS.I am
using following code.
and just let me know is localpath attribute is for our local project path?
I am
getting the problem in this line failed
Retrieve data using Criteria apiRetrieve
data using Criteria api import org.hibernate.Session;
import org.hibernate.SessionFactory;
import org.hibernate.Query;
import org.hibernate.Criteria;
import org.hibernate.criterion.Restrictions;
import
How to get data from Oracle database using JSPHow to get
data from Oracle database
using JSP hello i have a simple problem in jsp in the sense to get
data from the database like oracle . I have... the answer to retrieve
data from the database by
using servlet or jsp program
create login page using data from text filecreate login page
using data from text file I want to create login page
using data store in textfile(
data submit
from regiter page to textfile)
using jsp and servlet. Thanks
getting started with data sciencegetting started with
data science Hi,
I am beginner in
Data Science...:
getting started with
data science
Try to provide me good examples or tutorials links so that I can learn the
topic "
getting started with
data science"
getting a job in data sciencegetting a job in
data science Hi,
I am beginner in
Data Science... that I can learn the
topic "
getting a job in
data science". Also tell me... in
Data Science and searching for the best tutorials for
getting started
getting a job as a data analystgetting a job as a
data analyst Hi,
I am beginner in
Data Science... that I can learn the
topic "
getting a job as a
data analyst". Also... are beginner in
Data Science and searching for the best tutorials for
getting getting a job in data analyticsgetting a job in
data analytics Hi,
I am beginner in
Data Science... that I can learn the
topic "
getting a job in
data analytics". Also... are beginner in
Data Science and searching for the best tutorials for
getting