http post does not
I'm setting up a http post in my Blackberry app. I have successfully implemented this in my Android app, so I know the server function find. I tried several different things, and I don't really get errors, it's just that the info on the server is not updated. I looked at this post: Http POST in BlackBerryand many others. I found them useful, but they ultimately do not solve my problem. Yet once, I get errors, but the server is not updated. Here is the code that I currently use:
String url =http://xxxx.com/ratings/add?;deviceside=tru; String postStr1 =business_id=79; String postStr2 =rating=; HttpConnection httpConnection = (HttpConnection) Connector.open(url); httpConnection.setRequestMethod(HttpConnection.POST); httpConnection.setRequestPropertyContent-Typ,application/x-www-form-urlencode); URLEncodedPostData encPostData = new URLEncodedPostDataUTF-, false); encPostData.appendbusiness_i, String.valueOf(790)); encPostData.appendratin, String.valueOf(4)); byte[] postData = encPostData.toString().getBytesUTF-); httpConnection.setRequestPropertyContent-Lengt, String.valueOf(postData.length)); OutputStream os = httpConnection.openOutputStream(); os.write(postData); os.flush()
All ideas
He solved. Had to remove deviceside = true
Tags: BlackBerry Developers
Similar Questions
-
HTTPS Post does not work in the OFA Page
Hi all
I created a Page of the OFA, by clicking on button I do next.
//--------------------------------------------------------
private static String contactService(String xmlInputString) throws Exception {}
String outputStr = null;
OutputStream outputStream = null;
try {}
URL url = new URL ("https://wwwcie.ups.com/ups.app/xml/ShipConfirm");
HttpURLConnection connection = () (HttpURLConnection) url.openConnection;
System.out.println ("Customer connection established with" + url.toString ());
Configure the HTTP POST parameters
connection.setDoOutput (true);
connection.setDoInput (true);
connection.setUseCaches (false);
outputStream = connection.getOutputStream ();
outputStream.write (xmlInputString.getBytes ());
outputStream.flush ();
outputStream.close ();
System.out.println ("Http status =" + connection.getResponseCode () + "" + connection.getResponseMessage ());
outputStr = readURLConnection (connection);
System.out.println ("Response..." + outputStr);
} catch (Exception e) {}
System.out.println ("error sending data to the server..." + e.getMessage ());
throw e;
} {Finally
If (outputStream! = null) {}
outputStream.close ();
outputStream = null;
}
}
Return outputStr;
}
//----------------------------------------------------
public static String readURLConnection (URLConnection uc) throws Exception {}
StringBuffer buffer = new StringBuffer();
BufferedReader reader = null;
try {}
reader = new BufferedReader (new InputStreamReader (uc.getInputStream ()));
Letter int = 0;
reader.readLine ();
While ((letter = reader.read ())! = - 1) {}
Letter from buffer. Append ((Char));
}
Reader.Close ();
} catch (Exception e) {}
System.out.println ("could not read from URL:" + try ());
throw e;
} {Finally
If (reader! = null) {}
Reader.Close ();
Reader = null;
}
}
Return buffer.toString ();
}
Now, when I run this JDEVELOPER local it works fine, but when when depolyed on the server, then when I click the button then page gets hanged and it does nothing.
Is there any setting I should do in APPS environment. or anyone had done the same. any help will be appreciated.
Thank you
Vijay chraibiHello
If your code works fine in JDev and it does not work on the instance, then you can trigger SR with Oracle for Ptoduct JDeveloper.
Kind regards
Out Sharma -
This occurred after a new graphics card to distance was downloaded from Dell technical support
The 'Default programs' tool has solved the problem. See:
How to fix error of HTTP protocol does not have a program recorded at the opening of the Internet shortcuts:
http://www.Winhelponline.com/blog/fix-error-Protocol-HTTP-registered-program-Internet-shortcuts/This solves https thus the protocol settings.
-
FRM-10142 the http listener does not work on the name of the computer to the port 80
Hello
During the race, the oracle 12 c form a following error message
FRM-10142 the http listener does not work on the name of the computer to port 80. Please start the receiver or check your preferences of runtime.
Sandy
First, you will need to check the SST is running.
go to admin server url in your browser, click on the target icon that is left top of your admin home go to the http server and then start your ohs1.
and open your generator of forms go to the updated runtime default url like e.g. OSH, you can find your url such as http://localhost:7777 or http://localhost:7779.
your full url looks like this format http://localhost:7777/forms/frmservlet or http://localhost:7779/forms/frmservlet.
Localhost can be your default ip 127.0.0.1 or any static ip 192.0.0.10 address in this format.
-
frm-10142 http listener does not
Hi all
I am unable to run any form of generator of forms, I get the error frm-10142 (http listener does not)
tried different ports (8888, 9001, 7001)
When I connect to the console like this:
http://127.0.0.1:7001 / console
and click on deployments (11.1.2) formsapp is listed with the new State
When I click on environment = > servers the following is listed:
Name State listening Port
AdminServer (admin) being RUN 7001
STOP WLS_FORMS 9001
STOP WLS_REPORTS 9002
When I connect to the EM with http://127.0.0.1:7001 / em
and under Farm_ClassicDomain, I open the forms node, and then click Forms
then, in the form of deployments, it is empty
the weblogic server is running
OS: 64-bit windows 7
forms: 11.1.2.2.0 64-bit
WLS 10.3.6
could it be caused by a recent update for java 8? (java version = 1.8.0_60)
any ideas?
KR
Martin
If you want to start the console servers, nodemanager must be running.
Go to you $DOMAIN_HOME/bin folder and user batch file to start servers:
StartManagedWebLogic.bat WLS_FORMS
You will be asked for weblogic credential.
Last output message should be something like this: "server started in OPERATION."
Then you can try to access the forms.
Concerning
-
Edit post does not work sometimes
can anyone confirm that editing posts does not work?
just noticed that and tried with no other messages from my friends... no luck
DRA di nit um - oh oh oh - der Komissar geht umtestedit in red
I see another + point to be in this community. I would be able to train up to my level of patience
-
Inspiron 660 - solid Amber Light, No POST, does not start
Hello world
Having badly put in that my Inspiron 660 road. When I press the button, it turns Orange fixed and there is no display. I need to change a few items on the computer?
Full article:
Earlier, before I clicked on the sleep button on my keyboard and left my computer for awhile. When I came back, the computer showed a black screen, but he was still awake. I left alone for a while, but I couldn't get the screen to show so I held the power button.
I then took over, hoping everything was ok, but then it restarted several times by himself. Then he showed a blue screen with a frowny face indicating 'inaccessible boot device '. I decided to try safe mode. After scanning of the hard drive, it eventually start in safe mode. After a few moments, I stopped it safely.
After that, I thought I should try a regular boot. When I hit the power button, it remained white, but there is no display. After leaving it alone for a bit, I tried to turn off by holding the power button. But it does not work. The only option I had was to pull the plug. After reconnecting, there now solid amber light, no display, no post.
Hoping someone has a solution I have at least back on my computer.
Solid amber of the switch shows the dead motherboard.
-
Http connection does not.
Hello world
In my application I use connection Http get method it works very well in a simulator, but not in the device...
And also I tried this separate connection as a thread but no use... its does not work in the unit.
Any idea? I paste my code below please help me...
Thank you
PAPI M
String Url = "http:/mysitepath/filename.php?cmd=test";
try {}
HttpConnection conn = null;
InputStream is = null;
Doc document;
Try
{
Conn = (HttpConnection) Connector.open (Url);
conn.setRequestProperty ("Content-Type", "text/xml");
conn.setRequestMethod (HttpConnection.GET);
DocumentBuilderFactory docBuilderFactory = DocumentBuilderFactory.newInstance ();
DocumentBuilder docBuilder = docBuilderFactory.newDocumentBuilder ();
docBuilder.isValidating ();
doc = docBuilder.parse (conn.openInputStream ());
doc.getDocumentElement () .normalize ();
Dialog.Alert ("Connected");
}
catch (Exception e) {}
Dialog.Alert ("not connected");
Dialog.Alert (try ());
}
{Finally
If (is! = null)
try {is.close (;})
catch (IOException ignored) {}
If (conn! = null)
Try {conn.close () ;}
catch (IOException ignored) {}
}
Conn.Close ();
} catch (Exception e) {}
Dialog.Alert (e.getMessage ());
e.printStackTrace ();
}Ok thank you.. I will check...
-
HTTP redirection does not work on BNG (ASR9000, XR 4.3.0)
Hi all
(1) I have to do for cool subscribers redirect http . Ideally I need to redirect http only for certain users based on the response received from the RADIUS (accept/decline) or according to a RADIUS attribute. For the test I add rule 15 in my control policy-map.
If I remove 15 rule in the policy-map IPOE_POLICYMAP the session active. But if I use policy-map with 15 rule my BNG send DHCP NAK in response to the user try to re - obtain IP address. Discover/NAK-discover/NAK and so on. Session set up. Where is the problem?
without rule 15:
DHCPD PROXY: TP1908: applicant Manager called to CHADRR aaaa.bbbb.cccc with event PACKET
DHCPD PROXY: TP2483: use server response ID 213.x.x.254 for 213.x.x.211 for CHADRR aaaa.bbbb.cccc yiaddr
Article 15:
DHCPD PROXY: TP1908: applicant Manager called to CHADRR 0015.582c.96cb with the DPM_DISCONNECT event
DHCPD PROXY: TP2805: delete customer called for CHADRR 0015.582c.96cb for reason disconnected Session
DHCPD PROXY: TP1908: applicant Manager called to CHADRR 0015.582c.96cb with the PACKAGE-DROP event
(2) can I do "-http redirect" via sent VSA Avpair attributes of BNG in ACCESS-ACCEPT RADIUS? For example I have
successfully car limit through "sub-qos-policy-in/sub-qos-policy-out". It appears cisco -avpair= "url -redirect=http://...". "does not work with ASR9000.
(3) why unauthenticated session cool stay after ACCESS_ACCEPT has been received from RADIUS? It is normal for cool?
I see "sh ipsubscriber session all the detail" and "sh RADIUS.
-------
interface Bundle - Ether1.10
HOMENET description
IPv4 point-to-point
IPv4 unnumbered Loopback1
disable the ARP of learning
Subscriber control type of service-strategy IPOE_POLICYMAP
encapsulation dot1q 10
IPv4 ipsubscriber l2-connected
initiator dhcp
Subscriber control type class-map correspondence-everything DHCP_INIT
match Protocol dhcpv4
end-class-map
Subscriber control policy-map type IPOE_POLICYMAP
starting a match-all event session
class type control subscriber DHCP_INIT - until the failure
5 allow aaa list default format SUB_AUTH password cisco
10 activate dynamic-model IBSUB_TEMPLATE
15 enable dynamic-model IPSUB_UNAUTH_TEMPLATE<-->-->
dynamic model
!
type ipsubscriber IBSUB_TEMPLATE
IPv4 unnumbered Loopback1
way of 100 IPv4 access-group
group-access 100 IPv4 output
!
type ipsubscriber IPSUB_UNAUTH_TEMPLATE
type of service-strategy CPR l4_redirect
Policy-map type ACB l4_redirect
traffic of type class IPSUB_PERMIT_CLASS
transmit
!
traffic of type class HTTP_TRAF_REDIRECT_CLASS
redirect http- http://113.x.x.5
!
class type default traffic class
drop
!
end-policy-map
type of traffic IPSUB_PERMIT_CLASS all match class-map
group-access ipv4 110 match
end-class-map
!
type of class-card traffic of correspondence HTTP_TRAF_REDIRECT_CLASS
group-access ipv4 120 game
end-class-map
IPv4-access list 100
10 allow icmp a whole
allow 20 udp a whole
30 permit tcp any 113.x.x.0/24 eq www
allow 40 113.x.x.0/24 eq www a tcp
100 deny ipv4 a
!
IPv4-access list 110
10 allow icmp a whole
allow 20 udp a whole
30 permit tcp any 113.x.x.0/24 eq www
100 deny ipv4 a
!
IPv4-access list 120
30 permit tcp any any eq www
100 deny ipv4 a
---
Concerning
Oleg, another pointer, the first thing you should see, is if the ACB is actually applied to your session, like this:
RP/0/RSP0 / CPU0:BNG #show policy-map type int ACB all
Mon Oct 7 23:54:19.361 UTC
node0_0_CPU0: (null): the service policy is not installed
node0_RSP0_CPU0:
Bundle - Ether100.540.ip395 entry: HTTPRDRT_PBR
Policy name: HTTPRDRT_PBR
Class SRVS_CM
Classification statistics (packets/bytes) (maybe old 10secs)
Correspondence: 197/17039
Statistics transmitted (packets/bytes) (maybe old 10secs)
Total sent: 197/17039
Class HTTPRDRT_CM
Classification statistics (packages)
Matched : 0
HTTPR statistics (packages)
Applications received: 0
Answers: 0
Redirect drops: 0
Class class by default
Classification statistics (packets/bytes) (maybe old 10secs)
Correspondence: 1/102
Statistics dropped (packets/bytes) (maybe old 10secs)
Total has fallen: 1/102
IF you see this and it still doesn't work, then you need to take a look at your config to redirect, for my tests, I used and the ACLs that allow all traffic tcp/www. I've never denied all traffic, as you do on line 100.
-
FRM-10142: the HTTP listener does not work
Hello
To avoid the Frm-10142, I put this in the form designer... Edit Menu-> Preferences-> DURATION.
Give the application server URL:
?. 255.?. ? : 8889/forms90/f90servlet
some time? is the real number of the real IP. But then I again:
FRM-10142: the HTTP listener is not running... Why?
Many thanks and best regards,
Human
Published by: human Chen on May 22, 2012 12:22It is always useful to search before posting, and specifying all the steps you've tried.
Start here.
http://www.rhsmith.UMD.edu/doit/Oracle/frmrun.htm
{: ID = 223623 thread}
Kind regards
-
Some complex web sites like Huffington Post dot com home page load slowly. When that finally they load and you attempt to open a tab, many refuse to load. Blue circle continues to go round and round in a clockwise direction. The box in the bottom left of the screen says "Waiting for ' or 'Read' or ' transfer of" and the name of another web site that apparently contributes to the page. But nothing is happening for several minutes. The more common a 'suspended upward", it is called pixel.quantserve.com. Several attempts to "Reload Tab" do not help. This problem is not present in Internet Explorer itself. Have run AVG anti-virus several times and no viruses have been detected.
Clear the Cache and Cookies
Clear the Cache of the network
Troubleshooting extensions and themes
Check and tell if its working.
-
HLS and external of the Apache HTTP server does not
I installed FMS 4.5 on a debian system already running a server web apache.
I configured the httpd.conf file as mentioned in http://help.Adobe.com/en_US/flashmediaserver/configadmin/WSd391de4d9c7bd6093a7e2f8312a374a-1bde - 8000.html but when I call a url continuously, for example http:// < IP > /hls-live/livepkgr/_definst_/liveevent/livestream.m3u8 demand is still managed by the old apache, not by the FMS.
When I stop the old apache and restart the FMS application is managed by the FMS and works continuously.
Does anyone have any suggestions on that?
Hello
Thank you for using the FMS 4.5
Since you have two copies of apache running on the same computer, they can be separated by specifying the port in the URL. By default, apache which is bundled with FMS works on port 8134 and therefore, you can change the URL to look like http://
: 8134/hls-live/livepkgr/_definst_/liveevent/livestream.m3u8 to point to the apache on FMS. I hope this can help, thank you!
-
RW-50015: ERROR... HTTP listener does not.
Hello
I am a newbie in Oracle e-Business Suite r12 and I just did an installation of single instance on a GNU / linux RHEL5 for educational purposes. After performing the installation, post-installation system controls revealed that services HTTP virtual directory, Login Page, Help Page and JSP did not exist. All errors have the same RW-50015 error code. If anyone can help...Hello
opmnctl: opmn is already running.
Stop the opmn process using the script, then kill all the process manually from the OS and start it again.
Cannot start a process managed after the attempt limit maximum
Journal:
/node/Oracle/prod/inst/apps/PROD_erplab/logs/ora/10.1.3/opmn/HTTP_Server~1Any errors in this log file?
Have you been able to successfully run AutoConfig?
Kind regards
Hussein -
Hello
I have the case study for the notification to the Subscriber specific QA that I had planned to use to send messages to the other sessions without subscriber . I just wanted to know feature QA POSITION.
Well I tried and google hours and reading documentation, but I can't figure out what I did wrong. There is not much information about this post method.
Expected result is a message in the my_queue_debug table, but there is nothing!
Any ideas where it's going?
Oracle 12 c EA
--NAME TYPE VALUE --------------- ------- ----- --aq_tm_processes integer 1 --job_queue_processes integer 1000 --create user aq identified by aq --; --grant dba to aq --; --grant execute on dbms_aq to aq --; create table my_queue_debug(msg varchar2(100)) ; create type my_payload as object (msg varchar2(100)); / set serveroutput on begin dbms_aqadm.create_queue_table('my_queue_table', 'my_payload', multiple_consumers=>true); dbms_aqadm.create_queue('my_queue', 'my_queue_table'); dbms_aqadm.start_queue ('my_queue'); dbms_aq.register ( sys.aq$_reg_info_list( sys.aq$_reg_info('my_queue:aq', dbms_aq.namespace_anonymous, 'plsql://my_queue_callback', hextoraw('FF') ) ), 1 ); end; / create or replace procedure my_queue_callback( context raw, reginfo sys.aq$_reg_info, descr sys.aq$_descriptor, payload raw, payloadl number ) as l_options dbms_aq.dequeue_options_t; l_properties dbms_aq.message_properties_t; l_handle raw(16); l_payload my_payload; begin l_options.msgid := descr.msg_id; l_options.consumer_name := descr.consumer_name; -- dbms_aq.dequeue( queue_name => descr.queue_name, dequeue_options => l_options, message_properties => l_properties, payload => l_payload, msgid => l_handle ); -- insert into my_queue_debug ( msg ) values ( l_payload.msg ); commit; end; / begin dbms_aq.post( sys.aq$_post_info_list( sys.aq$_post_info( 'my_queue:aq', dbms_aq.namespace_anonymous, utl_raw.cast_to_raw( 'my message' ) ) ), 1 ); end; / select user_data from aq$my_queue_table ; select * from my_queue_debug ; drop table my_queue_debug purge ; begin dbms_aqadm.stop_queue('my_queue'); dbms_aqadm.drop_queue('my_queue'); dbms_aqadm.drop_queue_table('my_queue_table'); end; / drop type my_payload ; Table MY_QUEUE_DEBUG created. Type MY_PAYLOAD compiled PL/SQL procedure successfully completed. Procedure MY_QUEUE_CALLBACK compiled PL/SQL procedure successfully completed. no rows selected no rows selected Table MY_QUEUE_DEBUG dropped. PL/SQL procedure successfully completed. Type MY_PAYLOAD dropped.
Hello
change your reminder of PL/SQL procedure, that it will only insert a line:
create or replace procedure my_queue_callback( context raw, reginfo sys.aq$_reg_info, descr sys.aq$_descriptor, payload raw, payloadl number ) as l_options dbms_aq.dequeue_options_t; l_properties dbms_aq.message_properties_t; l_handle raw(16); l_payload my_payload; begin insert into my_queue_debug ( msg ) values ( 'this is a test payload'); commit; end; /
Change the entry in the register of the recall without a consumer:
begin dbms_aq.register ( sys.aq$_reg_info_list( sys.aq$_reg_info('my_queue', dbms_aq.namespace_anonymous, 'plsql://my_queue_callback', hextoraw('FF') ) ), 1 ); end; /
The unit test works now:
SQL> SQL> select * from my_queue_debug; no rows selected SQL> SQL> begin 2 3 dbms_aq.post( 4 sys.aq$_post_info_list( 5 sys.aq$_post_info( 6 'my_queue', 7 dbms_aq.namespace_anonymous, 8 utl_raw.cast_to_raw( 'my message' ) ) ), 1 ); 9 10 end; 11 / PL/SQL procedure successfully completed. SQL> SQL> SQL> exec dbms_lock.sleep(10); PL/SQL procedure successfully completed. SQL> SQL> select * from my_queue_debug; MSG ----------------------------------------------------------- this is a test payload
It is important to do not query the table immediately after the message. The callback mechanism needs a bit of time.
Kind regards
WoG
-
version 12.3.3 poster/does not work correctly
10 Windows on a Dell laptop running iTunes 12.3.3. The iTunes store appears zoomed in on my laptop screen and I can't click it right, especially on the right side. When I try to zoom out click on the right side of the screen I can't select one of these things.
I was therefore impossible to browse the genres of Music tab, etc., or lists of albums of songs/albums. Can only get around the shop via the search bar. But my music library works very well.
The current generation of iTunes doesn't make the iTunes Store properly when scaling of fonts is not set to 100%. Extended fonts mean that the active regions don't line up. Change the setting or make back up to the previous generation and wait for the next. See the programs installation of iTunes to download links. If you roll back to 12.3.3.17 to 12.3.2.35, for example, then you will also need restore the database in the manner described in the empty/corrupted after upgrade/crash iTunes library. The tip makes suggestions to reintroduce recent purchases, so at worst, you lose a few meters or a newly created playlist.
TT2
Maybe you are looking for
-
Time of execution not fatal error handling
How can I prevent that pop... I use errchk but he still overides... I'm a beginner. Please help If the error occurs I want to deal with, I don't want to show him the world
-
problem with pdf on surface RT reader
Hello I tried to open a file in the Surface RT pdf reader provided by microsoft. I was able to open the file, but only the place came on the screen instead of character. I tried to print this file of surface and same printer print square instead of c
-
formula customized for Total in PivotTable
HelloI have a PivotTable that is based on a combined SQL and need to have a line for a total with a custom formula.The pivot table looks as shown below:I need to calculate the % of line = category 4 / Total. The Total column is calculated beforehand
-
Just tried to open After Effects and got the error above - all my other apps CC seem to well. Could do without having to re - install and reading a few posts to say that a reinstall didn't work?ConcerningAlan
-
[CS6] Rotation of the causes of loss of quality?
I drew a large number of boxes for a background with the pencil tool, and once I'm done to fill the entire canvas I wanted to rotate 45 degrees, but once I did all the blocks get fuzzy caused.