J2ME application connection dosent work because of "Loading..." pag...

J2ME application connection dosent work because of "Loading..." pag... SearchSearch
Author Message
Vikas Murthy
Posted on Monday, July 21, 2003 - 09:36 am:   

We develop among other things J2ME applications which communicate with a server over WAP (Email Client). Client normally sends HTTP requests and uses the response for processing. Becuase the WAP gateway introduces the intermediate "loading" page, the response is not understood by the client. Is there anyway to disable feature.
Bryce Norwood - NowSMS Support
Posted on Tuesday, July 22, 2003 - 05:12 pm:   

Hi Vikas,

Are you using v2.18 of WAP3GX?

I understand the redirect behaviour has been changed for this and other reasons.

If you have an earlier version, you can simply go to http://www.wap3gx.com, and download the latest trial version. This can be installed over an existing copy and read its existing serial number.

If you are using v2.18 ... is it possible for you to provide an example URL that we can test to see what is going on?

-bn
Vikas Murthy
Posted on Wednesday, July 23, 2003 - 06:23 am:   

Hi,
I downloaded the latest version and tried it.The loading page is no longer coming. However It looks like the WAP gateway is not passing on the additional headers being sent by my Web Server. This seems to be causing the problem
Bryce Norwood - NowSMS Support
Posted on Wednesday, July 23, 2003 - 02:28 pm:   

Vikas,

What additional headers?
Vikas
Posted on Thursday, July 24, 2003 - 05:34 am:   

Hi,

The web application the J2ME client talks to, sends some application specific data in the headers. These are the headers that are not coming back to the client application.

Vikas
Kent Williams
Posted on Thursday, July 24, 2003 - 02:05 pm:   

Vikas,

We normally filter extra headers because they add to the size of the WAP response. And many WAP devices have serious limits in the response sizes that they will support.

What are the headers that you are using. We could probably setup an INI setting to allow some extra headers to be converted to the WAP side.

What is a typical type of HTTP response header from your application server?

- Kent Williams
WAP3GX Support
Vikas Murthy
Posted on Friday, July 25, 2003 - 06:19 am:   

Hi,

The headers are generated by application and hence quite specific to the application. If we could make a setting to allow all the HTTP headers it would be great.

Thanks
Vikas
Kent Williams
Posted on Monday, August 04, 2003 - 05:10 am:   

Hi Vikas,

I apologise for the delay getting back to you. Bryce told me to investigate this, but I forgot to give you a reply.

I'm hesitant about an "all headers" setting, basically because of the size consideration that Bryce mentioned above.

I could envision a setting to allow all "X-" headers pass, or perhaps some other wildcard. Would that work for your application?

- Kent Williams
WAP3GX Support
Vikas Murthy
Posted on Tuesday, August 05, 2003 - 11:09 am:   

Hi Kent,

That would be great. It would be nice if you could give a setting for all "J-" headers to pass. Our application would work fine.

Thanks
Vikas
Kent Williams
Posted on Wednesday, August 06, 2003 - 10:10 pm:   

Vikas,

I've sent you an e-mail.

- Kent
Vikas Murthy
Posted on Thursday, August 07, 2003 - 06:17 am:   

Kent,

I haven't received your e-mail. Is it possible to resend the mail?

Vikas
Kent Williams
Posted on Thursday, August 07, 2003 - 04:39 pm:   

Resending now.

It may have been stuck in my outbox.
RicardoLowe
Unregistered guest
Posted on Thursday, October 23, 2003 - 10:30 pm:   

How about posting the fix to this thread so that I can also know how to make the setting?
Karla Reyes
Unregistered guest
Posted on Thursday, March 18, 2004 - 07:44 am:   

hi,

i am developing a j2me application which can view open office email attachments on a mobile phone. i am using jwsdp1.3 as my server, apache james as a mail server and sun one studio for j2me. i am connecting to an imap store to view my inbox folder on my webmail.

i have tested my application only with the j2me toolkit.

how can i connect the gateway with my application and with the server?

how can i configure nowsms as a gateway to test it on a real gsm phone? how will i configure the gateway to "log-in and view my inbox" from the gsm phone?


thanks..}




Kent Williams
Moderator
Username: Kent

Post Number: 46
Registered: 10-2003
Posted on Thursday, March 18, 2004 - 05:53 pm:   

Hi Karla,

A WAP gateway is just a specialised type of proxy server.

In a phone, you have settings for configuring how the browser connects over the network. In the GPRS environment, you have a GPRS APN (Access Point Name) setting, and an IP address for a WAP proxy/gateway. (And sometimes there is a prompt for a port or connection type for the WAP proxy/gateway. Unless you have one of the newer Nokia phones that uses an HTTP/WAP2 based proxy, you would normally choose port 9201, or connection-type = permanent, or connection-type = connection oriented. The terminology varies from phone to phone, with different ways of configuring the same setting.)

Operators often have multiple GPRS APNs, which control what type of IP access you get when you make a connection (and often, there are different charges with different GPRS APNs).

Operators often have a "WAP" APN, which can only make connections through the operator's WAP gateway.

Also an "internet" APN, which provides full internet connectivity. (You can use a WAP gateway external to the operator, or direct HTTP connectivity if supported.)

And there is sometimes also an "MMS" APN, but that is just used for MMS related traffic.

To connect to your own WAP gateway, external to the operator, you need to be using an "internet" APN. And you simply configure the IP address of the WAP gateway in the phone's settings.

How all of this relates to J2ME, I'm not sure.

And to be honest, I'd probably try this working through your operator's WAP gateway first rather than installing your own. There may be reasons that you ultimately want to install your own gateway ... however it may not be worth going through this learning curve initially.

--
Kent Williams
Now Wireless Support
sumit
Unregistered guest
Posted on Friday, July 16, 2004 - 02:33 pm:   

i am new for wap application.i want to know how to connect mobile tho server
Swart Bees
Unregistered guest
Posted on Wednesday, July 21, 2004 - 10:28 am:   

This has been a very helpful thread thus far as I am facing this exact problem. Can someone please explain to me what the headers should look like when they are passed from the server and how the j2me app receives them.

If I e.g. have a header 'outcome', would I access it in J2ME with the command "c.getHeaderField("J- outcome");"

Kind Regards
Swart Bees
Kent Williams
Moderator
Username: Kent

Post Number: 85
Registered: 10-2003
Posted on Friday, July 23, 2004 - 03:18 am:   

Hi Swart,

I know what goes on at the WAP side of things, but I'm not well versed in J2ME development.

If I understand correctly, if you wanted to send a custom header, from the server side, if you were using PHP, you would do something like this:

header("J-outcome: value to pass in the header");

Then, in the J2ME code on the client, you could retrieve this value with the following code:

c.getHeaderField("J-outcome")

Does that make sense?

Our proxy does not pass through all headers ... primarily because we have to be mindful to support older devices which have strict size limitations and constraints. Some HTTP servers are extremely verbose generating headers of limited (if any) value, so we are selective about what parameters we pass through. However, for Java apps to be able to use custom headers, we do allow any headers that start with "J-" to be passed through the proxy.

--
Kent Williams
Now Wireless Support
anil_citadel
Unregistered guest
Posted on Tuesday, July 27, 2004 - 11:42 am:   

hi all,
I am working on J2ME project. I want to redirect response to different midlet suit means one suit will invoke the Http request using 'A' midlet suit and I want server to give response to 'B' midlet suit. Please help me how can i do this.

Thans and regards,
Anil}
Kent Williams
Moderator
Username: Kent

Post Number: 92
Registered: 10-2003
Posted on Tuesday, August 03, 2004 - 04:15 pm:   

I'm sorry. I'm here to support the Now.WAP Proxy product.

I am not an expert in J2ME, and I do not fully understand what you are asking.
RawCircus
Unregistered guest
Posted on Tuesday, August 10, 2004 - 06:28 pm:   

We need a MIDP 2 obsessed individual with extensive mobile games experience in London to build a prototype for possibly one of the most ambitious wireless/games projects ever devised. If you live in London and are up to the task send an email with your CV to daniel.maclaren@rawcircus.com
Harshini Bandara
New member
Username: Harshinibandara

Post Number: 1
Registered: 10-2004
Posted on Friday, October 01, 2004 - 01:36 pm:   

how to open two connections to send sms in j2me(midp).but one connection must be actvated in once.how to do this
kenny
Unregistered guest
Posted on Tuesday, May 10, 2005 - 11:56 am:   

hi,
i face similar kind of problem.i developed a application that connects to my server using httpconnection.the application works fine in sun's wireless toolkit but when i install in nokia 6600,the connection to server is not happening.

i have a doubt abt the access point setting in the mobile.do you have any idea?
chowhan
Unregistered guest
Posted on Tuesday, May 10, 2005 - 12:27 pm:   

hi all

i too face the same problem ,what kenny is facing.
I have a dout that is this the problem because of
Access point setting in the mobile or because of not having a standard certificate for the MIDlet
Please help me ,how i can overcome this problem
Anonymous
 
Posted on Wednesday, May 11, 2005 - 01:16 pm:   

Hi everybody, it has been a long time before i find people who has this problem between J2ME and the WAP gateway.In fact,i do a HttpConnection with a POST method. With a Internet APN there isn't problems but with a WAP,there are a lot of troubles. I would ask you if we could use the Internet APN with all the java enabled phones.
mofokom
Unregistered guest
Posted on Tuesday, June 21, 2005 - 12:16 am:   

some phone (Nokia) allow you to set connection preferences for each MIDlet - other phone change the settings for the device (MOTOROLA) there is a lot of paf about what WAP gateways actually do - sometimes they require headers ( accept-lanugage, last modified) sometimes they immediatley send 302 redirects.

often HTTPConnection is incompatable with the wap gateway on 9201 sometimes the gateway host also has an http proxy on 8080.

Customer support services are getting better at responding to "i want to change my apn and not use wap gateway"

The only way to change it on every phone is to call them everyday and ask the same question "i want direct unproxied access to the internet on my phone" they will soon smarten their act.

WAP is crap. but they are configured by default.
neo26
Unregistered guest
Posted on Sunday, July 24, 2005 - 04:24 pm:   

me facing same problem.
My application works well when i use an emulator
but when i moved to real life testing, the server is not getting any request from the client. What can be z problem?
with the emulator,I send text requests to server and the server returns me an image.
with a phone, i download the application to my phone successfully, i launched it but keeps waiting. when i check my server, i see it got no request at all.

Nanda Kumar
Unregistered guest
Posted on Monday, July 25, 2005 - 10:16 am:   

hi to all
i am trying to develop an MMS Application which should able to send the MMS to the Mobile Phones. is it possible ? if so which will be the best platform to Develop is it J2EE else .NET.

if the Appliction is to Linux Platform in sense shall i use .NET with Grasshopper. else J2EE.

if i am using the J2EE what is the SDK that i should Use. i am a beginner and also a fresher. i am not having real time Experince.

it will be helpfull to me if any one able to give an idea to develop the applicatin.

the application which i am going to develop was web orriented. so is it possible? else what is the alternate
Pranav
Unregistered guest
Posted on Sunday, August 21, 2005 - 02:18 pm:   

Hi,

I am facing the problem of GPRS connectivity. My application is working as follows:

MIDlet application will accept and URL, which will point to the jsp file places on the server. J2me application will send http request body of 500 bytes to the server and get the response as the same data from the server. Application prints the Response code and response message on the device screen. Application will do this thing 5 times (Sending request and getting response). If we get successful response of the first request, then only application will send second request.

I am using
Configuration CLDC 1.0
Profile: MIDP 1.0
HTTP 1.0

Request Method:
POST

Request properties:
Content type: application/binary
Content-Length: <data>.lenght

Non working Scenario:
Behavior
From the device, in rare case, request gets hit on the server after that device is not getting any response of the request. I.e. From the first trial, no request hit on the server. In the second trial, first request hit to the server and for second request, not getting any response. I am seeing inconsistent behavior here.

Request goes out of the mobile but not getting any response from the server. I am using GPRS network of Etisalat, UAE. Once i sent a request to the server, device will wait for sometime and gives the error SymbianOS error: - 33 : time-out.

I am not able to understand What is this actually as the same application is working fine from the other GPRS service providers.

Pleaser guide me about this.

Thanks,
Pranav
jignesh kakkad
New member
Username: Jig21nesh

Post Number: 8
Registered: 03-2005
Posted on Sunday, August 21, 2005 - 03:01 pm:   

Hi.. pravan..

i am also developing the j2me application and it is making connection to my server.. it havve same problem i am using orange network.. i spoke to them nearly 2 hrs aboub this issue reason they told me that... there is two kind of GPRS facility avail one is basic and other is advcne GPRS to run yur application you need to activate the advance GPRS service.!! i tested one the same company card... on which advance GPRS was there.!and it was working fine.!!

btw may i know yr email.

jig2nesh@hotmail.com

waiting for the rpely
Thiago Pereira Raposo
New member
Username: Thiagoraposo

Post Number: 1
Registered: 09-2005
Posted on Wednesday, September 14, 2005 - 01:58 pm:   


Hello...
I would like to know how implements a "e-mail notification" on Apache James. To tell the true, I want that James when received an e-mail send a SMS notification to a mobile? It´s possible?
Thank´s
}
Anonymous
 
Posted on Sunday, October 09, 2005 - 10:53 pm:   

I am developing a j2me application, which connects to a server running in a PC, using http connection. The application works fine in the emulator. I can install it, in a mobile Alcatel 756, but when the application is running, the connection to the server is no happening. The method that fail is:

DataOutputStream output = con.openDataOutputStream()

Thanks in advance
moniquiu
Unregistered guest
Posted on Thursday, October 13, 2005 - 04:35 pm:   

hello,

i am developing a j2me application to take pictures. I am using IDE Eclipse, for mobile phones.

Know i have to send the picture to another phone or an e-mail by mms, but i have no idea how to start this process.

Have any of you got an code example, to see a little how i can do it.

moniquiu@gmail.com

Thanks
Anonymous
 
Posted on Saturday, October 15, 2005 - 05:41 am:   

I am developing a J2ME application and it needs to setup a HTTPConnection. How can I mention the proxy server with authentication in J2ME WTK.

Thanks in Advance
helloworld
Unregistered guest
Posted on Sunday, October 16, 2005 - 12:35 pm:   

what is the solution? any one, i just see every one is facing the same problem. i have also got the same problem. please help anyone
Naresh
Unregistered guest
Posted on Wednesday, October 26, 2005 - 08:50 am:   

Hai,
It seems that many are having the same problem of connecting to a server via http request from their mobile thru j2me applications.

I have an idea about, how to approach to this problem.
There are two types of GPRS connections, provided by the service providers.
1. WAP over GPRS
2. Internet over GPRS.

Everyone will suggest that, everything works fine on the 2nd type (Internet over GPRS).

But Please Suggest me a way to connect to the server with 1st type(WAP over GPRS)

I am very much frustrated with this. Expecting ur help.

Thanks & Regards,
B Naresh
Naresh
Unregistered guest
Posted on Wednesday, October 26, 2005 - 08:54 am:   

And My mail ID is
naresh_b@sifycorp.com

If anyone is wiling to help me, with some samples and suggestions,plz contact me.

My need, now is I want to establish a connection between my mobile and a server via j2me application which has a facility of WAP over GPRS.

Regards,
B Naresh
Mariana
Unregistered guest
Posted on Saturday, November 05, 2005 - 12:13 pm:   

I am developing a j2me application. I have a motorola v600 and I also use the emulator for this model (Motorola_J2ME_SDK_v5.2.1). I have problems with a date. The application show a date in a DateField. I use Calendar and Date. In the emulator the application could change the Date but in the phone doesn't work. Do you have any idea why I'm not able to capture the Date?
Thanks in advance
Naresh
Unregistered guest
Posted on Wednesday, November 09, 2005 - 09:02 am:   

Hai Everybody,
I am having an application which runs on the pc. It pushes audio data by streaming.

Now I have to establish a bluetooh connection with that pc and I have to recieve the streamed audio in my mobile via bluetooth. Now I need guidence to write a J2ME application for that. Experts, Please help me in this issue. Expecting some reply.

Thanks and Regards,
B Naresh
naresh_b@sifycorp.com
Anonymous
 
Posted on Thursday, November 10, 2005 - 12:41 pm:   

Hi all,

I am developing the j2me application. Now i want to connect with pc by using bluetooth technology. Can you help me how to connect via RFCOMM in bluetooth stack.

Thanks and Regards
Dhandapani
Sib Andela
Unregistered guest
Posted on Saturday, November 12, 2005 - 12:04 pm:   

I have a J2Me midlet (KToolbar) communicating HTTP with a servlet (Jakarta-Tomcat) requesting .png images and simple text responses. Works well on my single pc.
I now want to replace the servelet with a .Net aspx page (Visual Studio 2005 Beta with c#).

What do I need to test and debug in this new environment?

Much obliged
Prasad Kavuri
New member
Username: Kavuriprasad

Post Number: 1
Registered: 02-2006
Posted on Monday, April 17, 2006 - 06:53 am:   

Hi all,

We developed an MIDlet, which uses DateField in it's form. My application working fine in any emulator. But when I run the same application in Nokia 3120 we are getting java.util.Date@aedf34 instead of displaying user entered date. I am using DateField to enter the date. If any one come accross the same problem please let me know how to resolve it.
shameer
New member
Username: Shameer

Post Number: 1
Registered: 04-2006
Posted on Wednesday, April 19, 2006 - 11:38 am:   

Hi,}}
I have a device which has in-built web server and it supports GPRS connectivity. I had enabled GPRS option in my SIM (UAE, Etisalat mNET). This device gets connected to internet using GPRS Connection and receives ip from ISP. But I am not able to access web server using this IP from another machine connected to the Internet. But this device is able to send email and sms once get connected. Is there any restriction on HTTP port on GPRS network. Had any one tried accessing a web server hosted in GPRS Network?

Can any one help me out on this? Please !!!!
Bryce Norwood - NowSMS Support
Board Administrator
Username: Bryce

Post Number: 6100
Registered: 10-2002
Posted on Tuesday, June 20, 2006 - 05:21 pm:   

I'm closing this thread, because the recently added postings are not related to the original question.

This is the support forum for the Now.WAP Proxy product, and I'm sorry, but we can't help you with these questions.