Friday, April 17, 2009

SAMSUNG 手机安装 MIDlet 出现“内容不匹配”

昨天通过 OTA 方式从 Apache 服务器上在一部 SAMSUNG SGH-L760 上安装 MIDlet,下载完 JAD 确认安装,开始下载 JAR 之前,手机报错说“内容不匹配 (Content mismatch)”。同样的 JAD 和 JAR 在另外一个主机上就能成功下载安装,而且这一组 JAD 和 JAR 在同服务器上另外一个 HTTP 服务应用上也能成功安装,一时觉得纳闷。

开始怀疑是端口问题,因为出现安装错误的 Apache 服务器是运行在 82 端口上的。但是同样是从这个 Apache 服务,另外一部 SonyEricsson K610i 就能正常下载安装,而且如果是端口问题,没道理 JAD 能下载而 JAR 不能。

然后开始怀疑是 JAR 文件的 Content-Type 问题,因为在确认安装的界面上,有显示应用类型是 application/vnd.sun.j2me.java-archive。打开 Apache 的配置文件 /etc/httpd/conf/httpd.conf,发现没有定义 .jad.jar 文件的语句,于是添加如下两行:
AddType text/vnd.sun.j2me.app-descriptor .jad
AddType application/vnd.sun.j2me.java-archive .jar
然后重启 Apache 服务,问题解决。MIDlet 成功在 SAMSUNG SGH-L760 上安装了。

5 comments:

Anonymous said...

The gratіtude of every home in оur Island, іn our Empire,
and indeed throughout the world, except in the abodes of the
guilty, goes out to the British airmen wɦo, undaunted bу odds,
սnwearied in their constant challenge and mortal danger, are turning the tide of the world war by their prowess and by their devotion. Never in the fielԀ of human cοnflict
was so much owed by sօ many to so few.

Look at my webpage - scientology

Unknown said...

cheap nfl jerseys, http://www.cheapnfljerseys.org/
louis vuitton handbags, http://www.louisvuittonhandbag.us/
cheap mlb jerseys, http://www.cheapmlbjerseys.us.com/
nike free 5, http://www.nikefree5.us/
air jordan shoes, http://www.airjordanshoes.us.org/
tiffany outlet, http://www.tiffany-outlet.us.com/
cheap mlb jerseys, http://www.cheapmlbjerseys.net/
oakley, http://www.occhialioakleyoutlets.it/
tory burch outlet, http://www.toryburchoutletonline.in.net/
nba jerseys, http://www.nbajerseys.us.com/
chanel handbags, http://www.chanelhandbags-outlet.us.com/
asics, http://www.asicsisrael.com/
louis vuitton outlet, http://www.louisvuittonoutletstore.name/
hermes belt, http://www.hermesbelts.us/
michael kors factory outlet, http://www.michaelkorsfactoryoutlets.in.net/
chanel outlet, http://www.chaneloutletstore.us.com/
ray ban sunglasses, http://www.ray-bansunglassess.in.net/
basketball shoes, http://www.basketballshoes.us.com/
michael kors handbags, http://www.michaelkorshandbags.in.net/
nike roshe, http://www.nikerosherunshoes.co.uk/
ray ban sunglasses, http://www.raybansunglass.com.au/
air max 2014, http://www.airmax2014.net/
christian louboutin, http://www.scarpelouboutin.it/
north face jackets, http://www.thenorthfaces.in.net/
coach outlet store, http://www.coach-outlet-store.us.com/
2015929caihuali

mmjiaxin said...

ferragamo shoes
michael kors outlet
rolex watches outlet
tory burch outlet online
michael kors handbags
coach outlet store
mac cosmetics
michael kors outlet online
wellensteyn outlet
michael kors outlet
canada goose outelt
air max 2014
ray ban,rayban,occhiali ray ban,ray-ban,ray ban occhiali,ray ban sunglasses
woolrich outlet store
fred perry polo shirts
michael kors outlet
tiffany outlet
canada goose jackets
oakley outlet store
mizuno running shoes
mm1205

Unknown said...

valentino shoes on sale
fitflops
true religion outlet
pandora charms
pandora charms
nike air max
michael kors purses
rolex submariner
nike air force white
versace shoes
tiffany and co
ray bans
cheap ugg sale
oakley sunglasses
coach outlet
kate spade handbags
adidas superstar
hollister sale
polo ralph lauren uk
moncler outlet store
mizuno running shoes
discount oakley sunglasses
prada outlet
fitflop uk
polo ralph lauren
zhenwei20160721

Unknown said...

michael kors outlet
ralph lauren uk
true religion
louboutin
hermes birkin
michael kors handbags
oakley sunglasses
coach factory outlet
michael kors handbags
swarovski crystal
xushengda0609