通过 OTA 安装 J2Me

发布于 2024-08-10 12:55:44 字数 548 浏览 15 评论 0原文

我正在尝试通过 OTA 安装我的应用程序 midlet。我使用 apache tomcat 6 作为 ota 服务器,并在 webapps 文件夹中创建一个小项目,其中包含 application.jad、application.jar 和welcome.html,其中有一个指向 .jad 文件的链接。我使用 sun 模拟器测试了安装,它安装得很好。

但是,当我尝试通过输入以下网址在移动设备上安装时:serverurl:8080/JMEAPP/welcome.html,它给出错误“无法继续您请求的操作”。错误号是 502。

令人沮丧的是安装可以在一部手机 (SH06A) 上进行。我测试的所有其他手机都属于日本第三大移动网络提供商(我不知道是否可以在这里提及品牌名称,所以我没有,很抱歉)。所有这些手机都出现上述错误(但它们都不是诺基亚,我们通过蓝牙将其安装在诺基亚手机上,它可以工作。)。但他们似乎都没有读过 jad 文件。

因此,您能告诉我这里的问题吗?这是安全问题吗?或者网络提供商可以阻止他们的手机,以便我们无法在他们的手机上安装任何东西?或者这是一个兼容性问题?

我找不到这个问题的原因。

I'm trying to install my application midlet via OTA. I used apache tomcat 6 as the ota server, and create a small project in the webapps folder which contains application.jad, application.jar and welcome.html which has a link point to the .jad file. I tested the installation using sun emulator it installs just fine.

But when I tried to install on a mobile by typing the url: serverurl:8080/JMEAPP/welcome.html, it gives an error saying "Operation you request cannot be proceeded". Error number is 502.

Frustrating thing is installation works on one phone (SH06A). In all other phones I tested belongs to japan's third largest mobile network provider (I dunno whether it's ok to mention brand names here, so I didn't, I'm sorry). All of those phones gives above mentioned error (But none of them are NOKIA, we installed it on a nokia phone by bluetooth, it works.). But all of them didn't even seems to read the jad file.

Therefore, can you one tell me the issue here. Is it a security issue? or can network providers can block their phones so that we cannot install anything on their phones? Or is this a compatibility issue?

I couldn't find a reason for this issue.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

无声静候 2024-08-17 12:55:44

502 是一条线索。这表明您的手机和服务器之间出现问题,可能是 MNO 网络和服务器之间的位出现问题。如果您只是使用台式计算机上的浏览器查看welcome.html 文件,一切似乎都正常吗?

从你的问题来看还不太清楚——你说SH06A有效——那是OTA吗?但是对于所有失败的移动网络运营商来说,有不同的移动网络运营商吗?

在英国,移动网络运营商运营的代理/缓存中存在一些相当不可预测的过滤。您的问题可能是 MNO 不喜欢将流量发送到特定的 8080 端口。您可以尝试在不同的端口(最好是 80)上运行或创建虚拟服务器,这样 URL 中就不会出现任何端口。

您对 JAD 文件的观察听起来是正确的 - 手机没有加载welcome.html,因此它们没有要尝试加载的 JAD URL。

The 502 is a clue. This indicates that something is going wrong between your handset and your server, probably in the bit between the MNO network and your server. If you just use a browser on your desktop computer to look at the welcome.html file does all seem ok?

It's not quite clear from your question - you say the SH06A worked - was that OTA? But with a different MNO to all the ones that failed?

In the UK there is some, rather unpredictable, filtering in the proxy/caches that MNOs operate. It might be that your problem MNO doesn't like sending traffic to the specific 8080 port. You might try running on a different port (ideally 80) or create a virtual server so no port appears in the URL.

Your observation on JAD files sounds correct - the handsets are not loading the welcome.html, so they don't have the JAD URL to attempt to load.

无需解释 2024-08-17 12:55:44

检查下载 jad 和 jar 时发送的应用程序 mime 类型。如果不是以下内容,那么您可能必须适当地编辑conf文件才能发送mime类型

jad - text/vnd.sun.j2me.app-descriptor
jar - application/java-archive

您可以使用一些数据包嗅探工具来嗅探网络数据包,例如 Wireshark

Check what application mime type is being sent out when you download a jad and a jar. If it is not the following then you might have to edit the conf files appropriately to send the mime types

jad - text/vnd.sun.j2me.app-descriptor
jar - application/java-archive

You can sniff the network packets using some packet sniffing tool like Wireshark

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文