RSS PARSING ON J2ME - PROXY PROBLEM

Hi,
fDoes anyone know how to get around proxy settings for rss-reader apps on a mobile phone. I got a tutorial code from netbeans website(http://www.netbeans.org/competition/win-with-netbeans/rss-reader.html) but it's not working when i use it on the emulator...so i figured its because of my university's proxy settings.

Ok, I didn't notice the debugging tutorial. You have to press the debugging button to connect to the emulator.
To stop the constantly repeating gc messages, from the debugMIDlet.bat one must delete the
'-Xverbose:gc'
from the line
'%J2MEWT_HOME%\bin\emulator -Xverbose:gc -Xdebug -Xrunjdwp:transport=dt_socket,address=%5:%6,server=y -Xdescriptor:%7\%4.jad -Xdevice:%device%'

Similar Messages

  • Problem parsing xml(J2ME Web Service spec) containing image in cldc/midp

    Hi,
    I have created a restful web service that generates xml file in app server. I have created xml file using JAXB2.1 spec. This xml file has many elements starting from char data to image (binary data). I could successfully create xml file and developed another test client to read the same file using JAXB. However, I am finding a problem while getting the image in the java me client (cldc1.1 and midp2.0).
    I am using J2ME Web Services Specification, using javax.xml.parsers.SAXParser to parse the xml file. Parsing is successful and got the character data. But the image data is not accurate, so I am not getting the image. I suspect the problem is with encoding but not sure how to solve this. At the server end, I verified that xml file is encoded with "UTF-8" encoding, not sure how to decode at the client end.
    I am totally confused as how to get the accurate image data, not sure if I use kxml parser would solve my problem.
    I would really appreciate if somebody can get back to me as this is very very important.

    Try to send to your web service the byte array instead of string and then convert the byte array into an image
    using a method like the following one in your service:
    // C# code
    public Image ByteArrayToImage(byte[] byteArrayIn)
         MemoryStream ms = new MemoryStream(byteArrayIn);
         Image returnImage = Image.FromStream(ms);
         return returnImage;
    }There can be some problem between encoding in J2ME and .Net so try different encodings in gathering the image bytes in your j2ME application, but, instead of jpg which has more encodings, try png that is a more standardized image compression(open standard).

  • OEL 6.1 YUM proxy problem

    Hi all,
    I have some issue with OEL 6.1 YUM proxy.
    *[root@rac1 tmp]# uname -a*
    Linux rac1.oracle.cloud 2.6.32-100.34.1.el6uek.x86_64 #1 SMP Wed May 25 17:46:45 EDT 2011 x86_64 x86_64 x86_64 GNU/Linux
    *[root@rac1 tmp]# rpm -qa | grep yum*
    yum-metadata-parser-1.1.2-16.el6.x86_64
    yum-3.2.29-17.0.1.el6.noarch
    yum-rhn-plugin-0.9.1-26.0.2.el6.noarch
    yum-utils-1.1.30-6.el6.noarch
    PackageKit-yum-plugin-0.5.8-19.0.1.el6.x86_64
    PackageKit-yum-0.5.8-19.0.1.el6.x86_64
    *[root@rac1 tmp]# cat /etc/yum.repos.d/public-yum-ol6.repo*
    [ol6_ga_base]
    name=Oracle Linux 6 GA - $basearch - base
    baseurl=http://public-yum.oracle.com/repo/OracleLinux/OL6/0/base/$basearch/
    gpgkey=http://public-yum.oracle.com/RPM-GPG-KEY-oracle-ol6
    gpgcheck=0
    enabled=1
    [ol6_u1_base]
    name=Oracle Linux 6 U1 - $basearch - base
    baseurl=http://public-yum.oracle.com/repo/OracleLinux/OL6/1/base/$basearch/
    gpgkey=http://public-yum.oracle.com/RPM-GPG-KEY-oracle-ol6
    gpgcheck=0
    enabled=1
    *[root@rac1 tmp]# cat /etc/yum.conf*
    [main]
    cachedir=/var/cache/yum/$basearch/$releasever
    debuglevel=2
    sslverify=false
    logfile=/var/log/yum.log
    pkgpolicy=newest
    distroverpkg=redhat-release
    tolerant=1
    exactarch=1
    # The proxy server - proxy server:port number
    proxy=http://xxx.xxx.xxx.xxx:3128
    # The account details for yum connections
    proxy_username=xxx
    proxy_password=@$xxx
    *[root@rac1 tmp]# yum update*
    http://public-yum.oracle.com/repo/OracleLinux/OL6/0/base/x86_64/repodata/repomd.xml: [Errno 14] PYCURL ERROR 5 - "Couldn't resolve proxy '[email protected]'"
    Trying other mirror.
    Error: Cannot retrieve repository metadata (repomd.xml) for repository: ol6_ga_base. Please verify its path and try again
    [root@rac1 tmp]#
    In OEL5.7 this works fine without any problem. I think this related to OEL6.1, maybe YUM does not understand proxy, my password for proxy starting with @$ but I changed my password and
    output is changed to
    *[root@rac1 tmp]# yum update*
    http://public-yum.oracle.com/repo/OracleLinux/OL6/0/base/x86_64/repodata/repomd.xml: [Errno 14] PYCURL ERROR 22 - "The requested URL returned error: 407"
    Trying other mirror.
    Error: Cannot retrieve repository metadata (repomd.xml) for repository: ol6_ga_base. Please verify its path and try again
    [root@rac1 tmp]#
    If anyone can help me please reply.
    ./thanks

    Avi Miller wrote:
    __OUTSIDER___ wrote:
    No this will not help. Problem is not related to password I changed it and response is It might help, it's worth trying. Try this:
    # export http_proxy='http://proxy.domain.com:3128'
    # wget --proxy-user="xxx" --proxy-password="xxx" http://public-yum.oracle.com/repo/OracleLinux/OL6/1/base/x86_64/repodata/repomd.xmlIf that works, it is a yum problem. If it doesn't work, it's a proxy problem.Yes it works , interesting that user and password parameters not working with double quotes only with single.
    I also checked this with YUM but YUM is having problem with passwords that starting
    with "@" symbol. I try to set
    export http_proxy="http://username:\@$passwd@IP:PORT"
    for ignoring "@" symbol but no sucess. With OEL5 this is not a problem. In /etc.yum.conf same username and same password.
    Perhaps I should change my password :)
    and last one thing in my home network I have OEL6.1 ( where fortunately with no proxy :) ) I try update linux with "yum update" command
    and it returns that no packages to update , can you tell me why because there are new kernel avalable and I can download and install this new kernel with command "yum install kernel".

  • XI ABAP Proxy problem

    Hi all,
    I am trying to develope an itegration scenario as follows:
    ABAP System ---> XI -
    Java System
    For communication between ABAP System and XI there is a Proxy, however it is not working out.
    The message from ABAP system does not go to XI.
    I got the following message in SXMB_MONI of ABAP Sytem:
    SAP:Error xmlns:SAP="http://sap.com/xi/XI/Message/30" xmlns:SOAP="http://schemas.xmlsoap.org/soap/envelope/" SOAP:mustUnderstand="">
    <SAP:Category>XIProtocol</SAP:Category>
    <SAP:Code area="PARSER">ITEM_MISSING</SAP:Code>
    <SAP:P1>Envelope</SAP:P1>
    <SAP:P2 />
    <SAP:P3 />
    <SAP:P4 />
    <SAP:AdditionalText />
    <SAP:ApplicationFaultMessage namespace="" />
    <SAP:Stack>XML element Envelope missing in SOAP message header (SAP XI Extension)</SAP:Stack>
    <SAP:Retry>M</SAP:Retry>
    </SAP:Error>
    Someone has solved a problem like that?
    Regards
    Fabio

    Hi Fabio,
            I would request to to check for two things,
    1. Whats ur was version? Is it 640? else can you try to change the Commumnication channel in xi adapter to message protocal as xi2.0 ,, i think you used it as xi3.0
    2. retest it.
    3. If it still gets the same error refer the thread,
    XI Proxy Problems
    All the best,
    Anirban.

  • Proxy Problem The proxy server is refusing connections

    I run Windows XP. I did have a Cybot backdoor Activity attack intercepted by Norton Internet Security and I used the Norton NPE to remove it from the computer. I do not know if this caused the proxy problem or not.
    There is no proxy problem connecting to the internet through Internet Explorer just through Mozilla Firefox.
    When Mozilla Firefox tries to connect to the internet I get the following message:
    Firefox is configured to use a proxy server that is refusing connections.
    Check the proxy settings to make sure that they are correct.
    Contact your network administrator to make sure the proxy server is
    working.
    In Mozilla I click Tools, options, advanced, network, settings. Under settings Proxy is set on manual, it says that there is no proxy for the figures typed in.
    So I click auto detect proxy and I then can connect to internet through Mozilla, however when I log out of the internet, the same proxy server issue is recreated.
    What should the Proxy setting be?

    You can find the connection settings in Tools > Options > Advanced : Network : Connection
    If you do not need to use a proxy to connect to internet then select "No Proxy"
    See "Firefox connection settings":
    * https://support.mozilla.com/kb/Firefox+cannot+load+websites+but+other+programs+can
    Start Firefox in <u>[[Safe Mode]]</u> to check if one of the extensions is causing the problem (switch to the DEFAULT theme: Firefox (Tools) > Add-ons > Appearance/Themes).
    *Don't make any changes on the Safe mode start window.
    *https://support.mozilla.com/kb/Safe+Mode
    *https://support.mozilla.com/kb/Troubleshooting+extensions+and+themes
    See also:
    *http://kb.mozillazine.org/Preferences_not_saved

  • Xml Push Parsing in J2Me applications

    Hi all,
    I would like to use Push parser in j2me application.Can u please tell me how can i use sax parser in mobile application.Because when i included "jaxp-api.jar" in mobile application,it gives an error "FactoryFinder class not found".. So please tell me how can i overcome this error or any other push parser available for J2me applications.
    Thanks
    Regards
    Sourab

    Please review this article.
    http://developers.sun.com/techtopics/mobility/midp/articles/parsingxml/
    There is a link to a push parser mid way through the article. If you search "push parser j2me" you should be able to find others.
    If you still are not able to find a push parser you could create your own. How complex is the xml you need to parse?
    I created an example called y!p! some time ago that uses a push parser to parse Yahoo's Image Search web service. (http://developer.yahoo.com/search/image/V1/imageSearch.html)
    You can download the example src code. For a more complex example you could look at w!k!. It uses a push parser to parse html wikipedia articles.
    w!k! push parser src:
    http://hostj2me.cliqcafe.com/www/forumtopicview.html?fid=58&categoryId=36&fpn=0
    w!k! src code:
    http://www.hostj2me.com/appdetails.html?id=1569

  • How to use SAX parser in J2ME

    Please help me how to use SAX parser in J2ME.
    Is there any function to find the value of a particular element from a XML file?
    I am able to get Element name, Values, Attributes. But control is not in my hand, DefaultHanldler automatically invokes Character method, then only I am able to get values. But I don't know when this method gets invoked.
    Is there any way or method so that I can get value of any element or attribute just by passing element name as parameter in SAX parser?
    Is there any other parser through which I can perform this task in J2ME?
    Thanks in advance.

    Hi..
    have a look at this.
    http://www-128.ibm.com/developerworks/library/wi-parsexml/
    MeTitus

  • Validating XML parser for J2ME?

    Hello,
    does anybody know a validating XML parser for J2ME?
    Thanks
    Volker

    I mean the XML parser.
    I want to know if there are XML parsers which can validate a XML document against a DTD or Schema
    Thanks
    Volker

  • Applet Database Proxy Problem

    Hello all,
    I have an applet which connects to a MySQL database for user authentication. Currently I am doing on a local machine and all goes well and fine. But my problem is the same applet when accessed through a proxy the database connection wont happen. Can someone suggest a way to solve it. Or this problem is not solvable.
    Thank you
    joseph

    Use http to do the authentication. Have the applet make a request to the authentication server by name (not by codebase, as this is probably the source of the proxy problem). On the authentication server, you can run a servlet or cgi or whatever to contact the db.

  • In the newest verion of Firefox did you fix the proxy problem?

    I am using firefox 3.6 because of a proxy problem with Firefox 5 I want to upgrade but need to know if you fixed this problem before i do so.

    You can find the connection settings in Tools > Options > Advanced : Network : Connection
    If you do not need to use a proxy to connect to internet then select "No Proxy" if the default "Use the system proxy settings" setting doesn't work.
    See "Firefox connection settings":
    * https://support.mozilla.com/kb/Firefox+cannot+load+websites+but+other+programs+can
    Start Firefox in <u>[[Safe Mode]]</u> to check if one of the extensions is causing the problem (switch to the DEFAULT theme: Firefox (Tools) > Add-ons > Appearance/Themes).
    *Don't make any changes on the Safe mode start window.
    *https://support.mozilla.com/kb/Safe+Mode
    *https://support.mozilla.com/kb/Troubleshooting+extensions+and+themes
    *http://kb.mozillazine.org/Preferences_not_saved

  • RSS Parsing Issue

    I am using a standard RSS parsing script to parse an iTunes
    compatible data feed , however this feed contains items that are
    causing errors. I have attached the code and was hoping someone
    could give me a clue on what I need to add to parse these type of
    'tags' or 'nodes' (not sure what they're called).
    <content:encoded> </content:encoded>
    <wfw:commentRss> </ wfw:commentRss>
    <enclosure url="
    http://digiphoto.thepodcastnetwork.com/audio/tpn_digiphoto_20080907_096.mp3"
    length="44111706" type="audio/mpeg"/>
    <itunes:duration> </itunes:duration>
    The code below is a standard RSS parsing script. Not sure how
    to parse any of the above:
    ---------------------------------------------------------------------

    Hello, we reindexed search yesterday so you may have hit that
    window. I just tried, search RSS seems to be fixed. OK for you?
    Sami

  • XI Proxy Problems

    Hi all,
    I got a strange prob with XI 3.0 and the new SAP ERP.
    Well what I did is a little configuration in the XI and generated a proxy in the SAP ERP to call it.
    But when I call it I get this message in the error part in sxmb_moni in the ERP:
    - <SAP:Error xmlns:SAP="http://sap.com/xi/XI/Message/30" xmlns:SOAP="http://schemas.xmlsoap.org/soap/envelope/" SOAP:mustUnderstand="">
      <SAP:Category>XIProtocol</SAP:Category>
      <SAP:Code area="PARSER">ITEM_MISSING</SAP:Code>
      <SAP:P1>{http://schemas.xmlsoap.org/soap/envelope/}Envelope</SAP:P1>
      <SAP:P2 />
      <SAP:P3 />
      <SAP:P4 />
      <SAP:AdditionalText />
      <SAP:ApplicationFaultMessage namespace="" />
      <SAP:Stack>Das XML-Element {http://schemas.xmlsoap.org/soap/envelope/}Envelope fehlt im SOAP-Message Header (SAP XI Extension)</SAP:Stack>
      <SAP:Retry>M</SAP:Retry>
      </SAP:Error>
    before this message I had an other message, that says that a RFC Destination called XI_INTEGRATIONSERVER dosn't exist. So I created it (never heard from something like that and nothing found in SDN or help portal), but I created it as http connection with no prefix. Can this be the problem?
    Someone has solved a problem like that?
    Regards
    Olli

    Hi Oliver,
    From the first error, It looks like a mapping issue.
    You are missing a mandatory node element data.
    The 2nd error is related to the configuration of the Integration Engine. Check the config guide.
    Thanks
    Prasad

  • HTML parser in J2ME

    Hi all,
    Even I'm stuck with the same problem. I'm developing a J2ME(MIDlet) application in which i have to open a http connection. N also i want to parse the html response n display the contents using J2ME elements in the mobile. I'm not able to solve this problem. Plz help me if any1 has come across the solution of this problem.
    Below links are the related threads:
    http://forums.sun.com/thread.jspa?forumID=76&threadID=250460
    http://forums.sun.com/thread.jspa?forumID=76&threadID=5235530
    Thanks in advance
    Nandy

    Hi All,
    I like to ask if anyone knows if there is a HTML
    parser available in J2ME? I am building an applicationTry google, a few do exist, but I don't know about free ones.
    that needs to display HTML on the client.
    Alternatively I may consider using XML, however I
    learnt that parsing XML is expensive in terms of
    computing power - is it the same for HTML?If you are controlling the content returned, the two would be about the same, as XML and HTML have the same roots. Some XML parsers do exist, and are free to use.
    You might be best of returning a custom format, designed around the limitations of the device you are using .

  • I am getting a proxy problem when loading or a does not recognize problem

    I find that my Firefox is VERY slow. And lately all I can get is a message about proxy server is refusing connection. I found out where I can change proxy server..but I click on "no proxy" hit OK and then it goes right back to saying that I have one! Today I kept getting a message about not being able to find mozilla...and said "they" do not know why.
    I find that off and on I can get on line with Firefox..but then I cannot AGAIN. I am on line now, but not sure how much longer I will be able. Frustrating. I haven't done anything lately to computer except adding a new hard drive which was done way after the problems started! What am I doing wrong?
    Thanks for help

    You can find the connection settings in Tools > Options > Advanced : Network : Connection
    If you do not need to use a proxy to connect to internet then select "No Proxy"
    See "Firefox connection settings":
    * [[Firefox cannot load websites but other programs can]]

  • Proxy problems in 10.9 - anyone else?

    I just want to alert Apple to something that is probably not a common issue in the USA. I work behind firewalls and Mavericks seems to be a step backwards with the handling of this. Constant pop-ups asking for name and password. No change in using auto proxy, detect or manual proxy with saved password. Frequent stalling of Safari and Outlook. Apple Remote Desktop and Airport Utility very prone to suddenly quitting. Many websites such as forums and message boards cause Safari to quit too. At home, these problems are not common. Was really good in 10.6; not bad in 10.7/8; unstable in 10.9. Has something changed in the way the OS is handling this?

    Yeah me too on this.
    Further testing shows that it isn't Safari at fault, it is something in the way the system handles authentication.
    If I use firefox with system settings it also fails, if I set firefox to autodetect, it works perfectly.
    I don't think its kerberos related though, firefox didn't have to ask me for a password even when using autodetect, so it was picking up on the existing auth data.
    Don't know where to go next though.

Maybe you are looking for