J2ME and web client Communication

Hi,
I get the following error when I run a MIDlet which connects to a Web Client
( which has developed by Eclipse Struts and deployed on Jboss )
java.io.IOException: cannot find status code in response:
at com.sun.midp.io.j2me.http.Protocol.readResponseMessage(+113)
at com.sun.midp.io.j2me.http.Protocol.finishRequestGetResponseHeader(+39)
at com.sun.midp.io.j2me.http.Protocol.sendRequest(+50)
at com.sun.midp.io.j2me.http.Protocol.sendRequest(+6)
at com.sun.midp.io.j2me.http.Protocol.getResponseMessage(+8)
at Mobileapp.sendLoginGet(+90)
at Mobileapp.run(+33)
I am able to send the HTTP GET request but somehow I do not get the response.
Could anyone help me.
Jayaraj

Hi Jayraj,
Ive been working with the J2ME HTTP connection and might be able to help.
Will be able to help you if you can send me the code snippet which is causing the error.
Also, do you get this error when using the emulator or a phone?

Similar Messages

  • BASIC authentication and web client problems

    I have a very simple web service that is working. Now before attempting to use
    SSL, I want to test authenticating using BASIC authentication. I’ve made the
    changes to web.xml and even though the other web service pages authenticate ok
    (ex. http://localhost:7001/fileexchange/FileExchangeFacade), I am prompted again
    for authentication for web service itself. I can never authenticate to http://localhost:7001/fileexchange/FileExchangeFacade?operation.view=helloWorld.
    Has anyone completed this and if so, how does it work? I must have missed something
    simple.
    First, I setup the security constraint as follows:
    <security-constraint>
    <web-resource-collection>
    <web-resource-name>file-exchange-resources</web-resource-name>
    <url-pattern>/*</url-pattern>
    </web-resource-collection>
    <auth-constraint>
    <role-name>Administrators</role-name>
    </auth-constraint>
    </security-constraint>
    <login-config>
    <auth-method>BASIC</auth-method>
    <realm-name>myrealm</realm-name>
    </login-config>
    <security-role>
    <description>An administrators</description>
    <role-name>Administrators</role-name>
    </security-role>
    That allows me to secure / authenticate to the JSPs in the web service test app
    provided. Then I tried working with the admin server console to setup roles /
    privileges. I couldn’t get this to work but I easily could have done something
    wrong since there are no step by step examples other than the general docs in
    the programming guide.
    Next, since the web service deploys as a web application, I figured the problem
    must be that the internal WLS servlet needs security information defined in web.xml.
    I saw the programming guide listed the servlet name and discussed servlet mapping
    so I added the normal security entries for a servlet as follows and re-jarred
    the WAR and EAR.
    <servlet>
    <servlet-name>WebServiceServlet</servlet-name>
    <servlet-class>
    weblogic.webservice.server.servlet.WebServiceServlet
    </servlet-class>
    </servlet>
    <servlet-mapping>
    <servlet-name>WebServiceServlet</servlet-name>
    <url-pattern>/FileExchangeFacade/*</url-pattern>
    <security-role-ref>
    <role-name>Administrators</role-name>
    <role-link>Administrators</role-link>
    </security-role-ref>
    </servlet-mapping>
    It still doesn’t work. Any idea on how to get it to authenticate?
    Thanks,
    Dave

    Ok, this looks like an issue with the test page.
    When the test page gets a request to invoke a
    web service, it creates a client proxy and call invoke
    on the proxy. This will case the client proxy to
    create a new HTTP post connection to the server.
    Test page pulls out the username/passwd from the
    GET request from the browser and pass it to the
    POST request it makes to the web service. I think,
    the test page needs to do the same for realm. I will
    file a CR for this (CR105320).
    Please contact support with the case number if you
    need a patch for this.
    http://manojc.com
    "Malcolm Robbins" <[email protected]> wrote in message
    news:[email protected]...
    "Malcolm Robbins" <[email protected]> wrote in message
    news:[email protected]...
    One more thing.
    I took out explicit realm mapping and noticed that the firstauthentication
    challenge was for the WebLogic standard realm which was fine and
    authentication was successful. (i.e. I got to the web service "homepage").
    Actually I meant it was listed as "Weblogic Server" in the 1st challenge.
    When I stepped into the web service method and pressed the Invoke buttonon
    the web service methods the realm was "default" and authenticationfailed.
    Why does the domain change and how do I cover this?Is was actually listed as "Default".
    However this is the same domain I believe because I've done a further
    experiment and set the domains explicitely
    in the deployment WAR deployment (Other tab) and in the web.xml file. The
    second challange is then asking for re-authentication in the correctdomain
    (myrealm) but it does not accept the valid user/password and just re
    challenges until 3 attempts then it displays the SOAP message and theserver
    log file has the following exception:
    java.io.FileNotFoundException: Response: '401: Unauthorized xxx' for url:
    'http://localhost:7001/webservice/TraderService?WSDL'
    at
    weblogic.net.http.HttpURLConnection.getInputStream(HttpURLConnection.java:36
    2)
    at java.net.URL.openStream(URL.java:793)
    at
    weblogic.webservice.tools.wsdlp.DefinitionFactory.createDefinition(Definitio
    nFactory.java:73)
    at
    weblogic.webservice.tools.wsdlp.WSDLParser.<init>(WSDLParser.java:63)
    at
    weblogic.webservice.WebServiceFactory.createFromWSDL(WebServiceFactory.java:
    108)
    at
    weblogic.webservice.WebServiceFactory.createFromWSDL(WebServiceFactory.java:
    84)
    at
    weblogic.webservice.server.servlet.ServletBase.invokeOperation(ServletBase.j
    ava:230)
    at
    weblogic.webservice.server.servlet.WebServiceServlet.invokeOperation(WebServ
    iceServlet.java:306)
    at
    weblogic.webservice.server.servlet.ServletBase.handleGet(ServletBase.java:19
    8)
    at
    weblogic.webservice.server.servlet.ServletBase.doGet(ServletBase.java:124)
    at
    weblogic.webservice.server.servlet.WebServiceServlet.doGet(WebServiceServlet
    .java:224)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
    at
    weblogic.servlet.internal.ServletStubImpl$ServletInvocationAction.run(Servle
    tStubImpl.java:1058)
    at
    weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java
    :401)
    at
    weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java
    :306)
    at
    weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(W
    ebAppServletContext.java:5412)
    at
    weblogic.security.service.SecurityServiceManager.runAs(SecurityServiceManage
    r.java:744)
    at
    weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServletCo
    ntext.java:3086)
    at
    weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.java
    :2544)
    at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:153)
    at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:134)

  • J2ME and Web Services

    Hi all,
    I looking for full tutorial on how to use web services in j2me.
    I need to send and recieve data from a remote server.
    Can you please give me a link to get start.
    Best regards...

    Check http://wireless.java.sun.com/midp/articles/. It should help you.

  • J2ME and web services call (rpc)

    Hi to all.
    I need consume a web services with a blackberry app and his methods has the style "enconded/rpc" instead of "document/literal". Is it possible? I used the stub generator from WTK 2.5.2 but i encounter a error.
    Thanks in advance.
    Bruno.

    Check http://wireless.java.sun.com/midp/articles/. It should help you.

  • Internet Based Client Communication can not be established

    Hi,
    I have one Primary Site Server and a Database Server. It was only using HTTP connection before. By reading several articles I created PKI environment and made SCCM communicate with a test client via https. I dont have DMZ, so I want to use the existing site
    server for both internal and internet clients communication.  
    To test https communication, I installed MS Project while Client Configuration Manager General properties showed Client Certificate=PKI and Connection Type=Intranet. So obviously it can communicate via https on intranet.
    To test HTTPS Communication on Internet side, I entered a public DNS manually on the client computer and deleted DNS records for that PC from DNS. I also editted hosts file on the client by entering sccm.mydomain.com with public ip address. I set firewall to
    allow 443 on that public ip address.
    I checked and the Client Configuration Manager General properties shows Certificate=PKI and Connection Type=Internet.
    First I entered the address https://sccm.mydomain.com from the test client I see a IIS8 Web page. Then, I tried to get a report which shows installed programs on a computer and report result was not reflecting the latest changes I made. So I am not sure whether
    https on internet is working or not.
    I noticed  that  Client Configuration Manager Properties Network Tab, Internet Based Management Point (FQDN) is blank. I guess there should be sccm server internet address(sccm.mydomain.com). I installed client manually with the command below meaning
    I already entered the internet address for SCCM but IBMP FQDN is blank.
    ccmsetup.exe /usepkicert smsmp="sccm2012.mydomain.local" ccmhostname="sccm.mydomain.com" smssitecode="XYZ"
    Please advise.
    1. How can I test if https working on Internet Side?
    2. Is it normal to have Internet Based Management Point (FQDN) as blank?
    3. Is there anything wrong with the design I am trying to implement above?
    Thanks a lot
    Yavuz Selim Atmaca

    Here's a guide I made (MP/DP in a DMZ) but it should work for your scenario.
    http://www.systemcenterdudes.com/?p=193
    Make sure that your certificate requirement are ok and that your server FQDN is publicly published and available.
    You must have an internet FQDN in your client properties. You can enter it manually, use a script or by using the ccmhostnameproperties in your client installation. (as you did)
    To test, I usually connect directly on the internet bypassing the corporate network. It's the best test you can made.
    Your scenario and troubleshooting steps are fine, you're probably just missing a minor thing.
    Benoit Lecours | Blog: System Center Dudes

  • 701 Mail, Calendar, Social network and Web bug.

    Hello
    im pretty satisfied with my 701 but just right now i started to experience bugs. let me explain
    Calendar- sometime (always when i go through widget) when i open a calendar, it opens a speciffic day (the one that is actual), and im unable to select month or any other view point, and i cannot see any of my notes in the calendar until i restart my phone.
    Mail- widget sometimes doesnt refresh inbox even though i have it set on 15 mins. (happend last time for a week. thought i had no mail, instead i found 10 new messages.) also sometimes my mailbox wont open using widget, only with a normal Email icon.
    Social network just doesnt want to open at all. says (in translation something like "Unable to launch the client"
    Web- even though i have 3g network signal and mobile data are turned ON, opera mobile, and Web client (the nokia one) both cannot connect to the internet for some time.
    i tried backing up my phone data (not applications only galery, phonebook, music, ebooks etc and videos) and erasing (reseting) my settings. when i turned my phone on again, it asked me to enter time, date, my nokia account etc. as if i just bought the phone. then i loaded my backup files. email looks like its working again, calendar got stuck just today again... social network still doesnt work, web still cannot connect to 3g network sometimes.. 
    dunno what else to try, starting to be little angry, since calendar and web are the things i use more often then sms and calls. 
    is this common? will there be an update to fix this? or is there a simple solution to my prob?
    i would add an attachment supplying info about my phone but i have no idea where to get such file.
    thanks for help.
    Solved!
    Go to Solution.

    No problems here!  
    Any way the Feature Pack 1 will solve those problems ...  

  • CIC-WEB CLIENT & WIN CLIENT

    Hi,
    Please tell me the
    1.Difference between WEB CLIENT & WIN CLIENT
    2.What are the advanatges/drawbacks of each.
    3.If we have to implement what is the Prerequiste for both.
    Regards,
    Natasha P

    Hi,
      CIC win clent and web client are there upto 5.0.
    Now WIn client is obsolete, only webclient is there.
    Differences: Win client wil work with in the network only. Web client will work if you have a internet fecility.
    The Interaction Center (IC) WinClient is a SAP GUI-based agent desktop interface for interaction center agents that provides a framework for processing IC WinClient functions. It can be used for any business transactions via phone, e-mail, chat, paging, Web call back, or voice-over Internet Protocol (VoIP).
    Web client will be webased user can open any where and do the transactions.
    Now in crm2007 there is no win client, only WEB CHANNEL is there.
    This area of SAP Customer Relationship Management (SAP CRM) enables you to turn the Internet into a profitable sales and interaction channel for both business partners and consumers by providing your customers with a personalized Web experience and convenient self-services. The CRM Web Channel applications cover Web-based sales and service transactions, targeted marketing, and analytics for system and customer behavior.
    Through BSP application we will develop the web channel. In new version there are many customization in webchannel.
    Regards
    Srinu

  • VSAN Health Plugin Breaks Web Client

    I installed the vSAN Health Plugin, and when I went to the web client to finish the host install; I was able to browse the environment but the middle portion is... blank.  I uninstalled the plugin and web client functioned as normal.  Has anyone else seen this?  I plan on opening an SR tomorrow.  Thank you, Zach.

    "I fixed it by uninstalling the plugin, rebooting vCenter and reinstalling the plugin (reboot vCenter again). I did this twice (uninstall/reinstall/uninstall/reinstall) and rebooting vCenter after each step so I could document and open a SR, but it ended up working after that."
    I'm having the same issue as Zach and the suggestion from elerium unfortunately did not have any affect.
    I've had an SR opened since last week but they haven't made any headway yet.

  • Simultaneous development for desktop and web

    What I'm looking for is simultaneous development of a desktop client and a web client (as an applet). Basically, the desktop client and the web client should provide the same functionality. What I'd like to do is develop these two concurrently; with the same tool, using the same codebase with build-specific changes being kept to the absolute minimum. To estimate the size and difficulty of the project.. JDBC, sockets, graphics.
    From what I read, Java Studio Enterprise would be OK for working on both aspects. Functionality would be provided by a set of special Beans I'd write. What I'm wondering about is that how well could this succeed. Question time!
    * I'd like to have the desktop client use SWT and the web client Swing. It should be possible to wrap these to provide a common API for myself, but how much work am I looking at?
    * Regarding the question above - if I use a visual RAD tool like Sun Java Studio Enterprise, how easy/much work would it be replace the widget library with their "cross-platform" widget library equivalents (so that in the code, it'd reference my own versions and all)? This is about reducing the build-specific changes again - when I drag and drop a button to a form, I'd want it to be one of my own magical SWT/Swing buttons.
    * I'd imagine the application would get fairly large - how much unavoidable change should I expect between the desktop client and web client? Are there any serious pitfalls/caveats?
    * Would it be feasible to realize the desktop "client" through Web Start - just make the applet and have it launched through that?
    I'm evaluating different views and ideas for a possible project and would like to know how Java would fare in something like this. Let me know what you think. Thanks for your input!

    Maybe something like OpenID Connect built on top of oAuth 2.0 would be applicable?
    Users can manage their identities with an Identity Provider. Your Web and Desktop applications become Relying Parties and they will be given an ID Token and possibly an Access Token when the user is authenticated with the Identity Provider.
    The Identity Provider could be extended to federate onto other Identity Providers such as ADFS, Google, Facebook...

  • Siebel8-Sample web client

    Hi,
    To practice Siebel8 I have tried to install sample tools and web client,I could access tools but not able to access call center application,problem is application is not launching.My OS is Vista.Could you please suggest any solution on Vista platform.Please let me know is any inputs required from my end.
    Thank You

    Hi,
    Following are my inputs provided to the questions:
    What exact version of Siebel 8? (8.0 or 8.0.0.4?)
    Siebel 8.0
    Do you get any errors in the logs?
    (e.g. Program Files\Siebel\8.0\web client\LOG\siebel.log)
    Only one log file is created with one KB,stating to enter License key to proceed.
    I have provided latest license keys while I am logging in to Tools and could access tools but not client(trying to access callcenter application)
    It is showing IE can not display this web page.
    when I am trying to login to application Log file is not created.
    Have you tried increasing the logging by setting the environment variable?
    SIEBEL_LOG_EVENTS (Values from 1 to 5, 5 being the highest log level)
    one KB Log file also not created,at this point could you please provide steps to move further
    Take a look at:
    Oracle's Siebel Business Applications Bookshelf Documentation Library, Version 8.0
    [http://download.oracle.com/docs/cd/B40099_02/homepage.htm]
    This trying to navigate.
    If my notebook has got mozilla firefox, is there any impact while accessing webclient.
    Could you please suggest what steps I need to follow to login to sample call center application.
    Thank You

  • Spring Tools Suite and vSphere Web Client plugins

    Hi, I am new to this environment.  I am developing VMware vSphere Web Client plugins.  In the setup for vSphere Web Client plugins, it is indicated that the preferred tools include Spring Tools Suite, which is a derivative of Eclipse.  It is an optional component to use the FlashBuilder tool.  Optionally, the VMware documentation indicates that you can use Eclipse instead of the Spring Tools Suite, but different setup is needed.
    I am posting here (instead of VMware/STS) for the following reasons.  I am able to set up the environment without the FlashBuilder tool.  I am able to develop Web Client plugins without the FlashBuilder tool.  However, I believe the FlashBuilder tool will make development easier.  When I try to get the FlashBuilder to load, I no longer can get things to work; I cannot develop Web Client plugins.  Lastly, the FlashBuilder tool is the only piece of the puzzle that is a licensed product, and therefore, I will not be able to purchase the product if I cannot get the trial version to work.
    FlashBuilder has a plugin installer for Eclipse.  I have tried to install the plugin to Spring Tools Suite, and I have tried to install the plugin to a regular version of Eclipse.  In either case, the problem I run into is that I cannot locate the VMware files, and doesn't have the virgo service which is present when I did not have the FlashBuilder plugin installed.
    Does anyone have any experience or familiarity in getting FlashBuilder to work in this type of setup?  Clearly it is doable, but using all of the documentation that I can find online, I cannot get FlashBuilder to work in my environment.
    Thank you for any help or suggestions you might have.

    Oh sorry, I thought that I had. I had gone to "contact adobe" and clicked on "customer service".  It then told me to "select a product", to which I chose "Flash Builder".  I then had to tell it that the question was in regard to "downloading, installing, setup" (of said Flash Builder).  From there it told me I can ask the community or call a representative... when I clicked "community" I thought the initial "Flash Builder" setting that I chose would apply to where the question got posted, but it seems it did not.

  • BB Browser compatibility with Communicator 2007 Web Client

    I need to use the BB Browser to access a Communicator 2007 web client.  After entering the URL, the device requests/runs scripts and when the progess bar completes, briefly flashes "loading" and loads a blank screen.  Other folks can use this URL with an iPhone, any hope of getting this to work on the BB?

    Hi,
    From Lync Online document, Lync Online support Lync 2010 and 2013 desktop client. But not mention OCS 2007 R2 client.
    More details:
    https://technet.microsoft.com/en-us/library/dn194468.aspx
    The forum you posted is for Lync Server On Premise only. The issue is more related to Lync online, you can also post a question on Office365 forum for assistance. Thank you for your understanding.
    http://community.office365.com/en-us/f/166.aspx
    Best Regards,
    Eason Huang
    Eason Huang
    TechNet Community Support

  • Web-Service Proxy and Web-Service Client access in a Bean (EJB 3.0)

    Hello Community,
    i want to access the SAP Knowledge-Management via the Webservice "RepositoryFrameworkWS", which resides on our Portal-System, from my Java-Application, which runs on a NW CE 7.11 Ehp1 Java Server.
    I choosed to create a WS-Client as a deployable client. So i created an Bean Project, imported the WSDL and created a WS-Proxy in that project. Additionaly i added some beans to that Bean-Project which use the WS-Proxy to access the KM.
    So far so good.
    But the WSDL also creates a Service-Endpoint, which already has an url for the WS-Target and Authentication-Information (in my case it seems that no Authentication is active) in its body.
    Because my client shell run on different systems in the future i searched for a way to easiliy deploy my application and adapt target-information elsewhere. I found in the documentation, that after deploying the deployable WS-Proxy/Client this can be done in the NW-Administrator under SOA-Management->Application and Scenario Communication->Single Service Administration.
    To my surprise i found my deployed WS there. And the entry for the there listed Port was configurable. But unfortunatly this customization is ignored by the application. For example i changed authentication to a HTTP-Authentication with a specific user and also changed to Target-URL. But with no success.
    What's wrong here?
    i accessed the WS in my bean in the following way:
        public Class xyz
         @WebServiceRef (name="RepositoryFrameworkWS")
         RepositoryFrameworkWS service;
          RepositoryFrameworkWSViDocument vi = service.getPort(RepositoryFrameworkWSViDocument.class);
         vi.findResources(rid,....)
    regards
    Matthias Hayk
    Edited by: Matthias Hayk on Sep 15, 2009 10:13 AM

    Hi Matthias
    In Single Service Administration there are two views: Webservices and WS Clients configurations. First of all you should enable BASIC HTTP authentication in WS configuration. Then go to WS Client configuration and enter user/password in HTTP BASIC authentication settings.
    Hope this help.
    BR, Siarhei

  • Web client and desktop client not available for Interactive reporting 11.1.2.2

    Hi team,
    Currnetly we are usning EPM 11.1.2.2 , we are trying to install and configure
    Interactive reporting in Linux 64 bit system.
    we are few questions jotted below:
    Interactive reporting studio client & Interactive reporting Dashboard Development Studio client are disabled.
    post installation we are not able to see IR Client folder in <EPM HOME> location.
    while launching workspace we are not able to see the WEB Client Interactive reporting under TOOLS-->INSTALL.
    we read in a blog, which states it  Interactive reporting needs a license. whether it needs any special License for using it?
    we downloaded the Entire Dump of EPMS 11.1.2.2  from Oracle Edelivery website.
    Kindly let us know we are missing any where?
    we are strucked at this point.
    Regards
    Chinu

    If you want the 11.1.2.0 assemblies you will need to contact Oracle as they have been removed from edelivery.
    Cheers
    John
    http://john-goodwin.blogspot.com/

  • BO XI 3.1 SP3 SSO with CMC and Webi Rich Client

    Hello,
    Is it possible in BO XI 3.1 SP3 to use SSO with CMC and Webi Rich Client ?
    It works fine with InfoView, Designer and Desktop Intelligence.
    Regards

    Hi,
    What kind of SSO authentication are you trying to set up? (AD, LDAP,...)
    I think it's AD regarding your command line.
    But be aware that in SSO, you don't need to configure the command line to run the client.
    Have a look at the following guide.
    [Configuring Manual Kerberos Authentication and-or SSO in Distributed Environments with XI 3.1 SP3.pdf|https://bosap-support.wdf.sap.corp/sap/support/sapnotes/public/services/attachment.htm?iv_key=002007204200000183782010&iv_version=0005&alt=2BCE4CB10DF674B172F4F3F7B32A284F49333135358877720E883731B332AF34CACD2AB52C0A2C8DCACA09084EF4CB494E4E0F2ECE8E2F89772908C9CE70CD2DF77675F7F2D1750C09514BCECFCFCE4C8DCF4BCC4DB5F575F4F4F3F57771F571F6F70B01B25D83D4120B0A722092A599504EB16D715E3E00&iv_guid=DF838310BFAAE8F1B486001A64C54696]
    Regarding accessing CMC with SSO, it's not recomended at all as if you break this access, than you can't connect anymore to the CMC and modify settings.
    Regards,
    Philippe
    Edited by: Philippe Tavares on Feb 15, 2011 4:11 PM

Maybe you are looking for

  • Can you see which timeline clips are being used in Media Browser?

    I'm a relatively new user and may not be familiar enough with cs5.5 but is there a way to see what clips are being used on the editing timeline in the media browser. I open premiere pro - Project is loaded. I edit the scene until it is finished. When

  • MSI K8N-Neo4 and PCI-E x4

    Hi Folks, I've got an MSI K8N-Neo4 (MS-7125) motherboard that I'm looking to add a RAID card to.  It's got a PCI-Express x4 slot on the board that I'd like to utilize.  However, I've seen some conflicting information regarding it's use.  In the manua

  • Delivery note with reference to sales order - 0 quantity items

    Hi all, our system allows items with quantity 0 to be created in delivery notes with reference to sales orders. This happens when some items in a sales order are out of stock while others are availiable. The unavailable items are included in the deli

  • How to store Comma Seperated Value in a File with Jsp

    Hai friends, I need to get all the filed values like Empname,salary ,location.......... and at the end of jsp page i have to put a browse button when i choose a file using theis browse button the total content in the form shoud store in that file as

  • How to make duplicate of a camera roll photo before editing

    How do I make a duplicate of a photo to edit on my iPhone or iPad. I want to use an editing app to add effects but want to keep the original thanks!