You Are Here:

Community: Developer Discussion Boards

Reply « Previous Thread | Next Thread »

#1 Old Series 40 problem - 2008-03-04, 12:37

Join Date: Apr 2007
Posts: 233
felixksp
Offline
Regular Contributor
Hi all,

I have uploaded to a server a jad and a jar, and it is working correctly the installation process in a Nokia Series 60 3rd edition (N95).

My problem is that when I try to download the jad in a Series 40 a error "Unsupported file format" is displayed. The MIME-Types for jad and jar are set correctly in the server, so I don't know what could be the problem...
Reply With Quote

#2 Old Re: Series 40 problem - 2008-03-04, 13:16

Join Date: Mar 2003
Posts: 6,211
petrib
Offline
Forum Nokia Champion
Which Series 40 devices are you trying to use (in case you're, e.g, trying to use a MIDP 2.0/CLDC 1.1 MIDlet on a MIDP 2.0/CLDC 1.0 or even MIDP 1.0 device)?
Reply With Quote

#3 Old Re: Series 40 problem - 2008-03-04, 13:18

Join Date: Apr 2007
Posts: 233
felixksp
Offline
Regular Contributor
It is not the problem because I can install the application using PC Suite or similar. I am using a Nokia 8800-e.
Reply With Quote

#4 Old Re: Series 40 problem - 2008-03-04, 18:12

Join Date: Apr 2003
Posts: 6,408
Location: USA, CA
hartti's Avatar
hartti
Offline
Nokia Expert
You need to download the JAR file on that device from a Web server.

Hartti
Reply With Quote

#5 Old Re: Series 40 problem - 2008-03-04, 18:23

Join Date: Apr 2007
Posts: 233
felixksp
Offline
Regular Contributor
I don't understand, sorry.

If I click to a link to a JAD file, which references to a JAR in the same folder in the same web server, it is being installed correctly in Series 60 (N95).

I have installed in 8800-e gmail application, which also uses a JAD for installing, and it is installing correctly.

I am sure the difference is in the web server, but I don't know what could be the problem...
Reply With Quote

#6 Old Re: Series 40 problem - 2008-03-04, 18:38

Join Date: Apr 2003
Posts: 6,408
Location: USA, CA
hartti's Avatar
hartti
Offline
Nokia Expert
So are you using the phone browser to connect to the server and downloiad the MIDlet from there?
Also are you using some APIs which are not available on 8800?

Hartti
Reply With Quote

#7 Old Re: Series 40 problem - 2008-03-04, 18:40

Join Date: Apr 2007
Posts: 233
felixksp
Offline
Regular Contributor
No no. I install it using PC Suite without any problem. The problem is installing from our WebServer.
Reply With Quote

#8 Old Re: Series 40 problem - 2008-03-04, 18:43

Join Date: Apr 2003
Posts: 6,408
Location: USA, CA
hartti's Avatar
hartti
Offline
Nokia Expert
Have you the correct JAR and JAD MIME types defined on that server?

scratch this question, I forgot to read your initial post...

I do not have any guesses at this point

Hartti
Reply With Quote

#9 Old Re: Series 40 problem - 2008-03-04, 18:46

Join Date: Apr 2007
Posts: 233
felixksp
Offline
Regular Contributor
Yes yes. I have sniffed the http response from the server, and the unique difference are some headers that our server returns, and google server doesn't.
Reply With Quote

#10 Old Re: Series 40 problem - 2008-03-05, 00:26

Join Date: Apr 2007
Posts: 233
felixksp
Offline
Regular Contributor
First problem fixed. The problem was that our company's server has by default activadted gzip, and the jad was sent compressed to browser. Now the jar download starts correctly.

The problem now is that when finishing download of the jar, a "invalid application" message appears. The jar is signed by JavaVerified, and works correctly in the same device if installed using PC Suite.
Reply With Quote

#11 Old Re: Series 40 problem - 2008-03-05, 05:50

Join Date: Apr 2003
Posts: 6,408
Location: USA, CA
hartti's Avatar
hartti
Offline
Nokia Expert
When you installed the MIDlet over the PC suite, was it installed with JAD file (so it was installed in the trusted 3rd party domain? Could you check that?

Hartti
Reply With Quote

#12 Old Re: Series 40 problem - 2008-03-05, 08:26

Join Date: Apr 2007
Posts: 233
felixksp
Offline
Regular Contributor
I don't understand... I use Nokia PC Suite 6.83, and Install Applications (Nokia Application Installer 3.0). I can navigate in the hard disk of the PC, and I choose the jar file which is in the same folder than the jad file, then double click, and the application is installed.

I have also discovered that if I type in the browser the url of the JAR, it is installed correctly in the phone, but in spite of it is signed by JavaVerified, I can't grant some permission as "Read User Data" to be always allowed (it is like it was not signed). On the other hand, if I install it using PC Suite I can set all permissions correctly.

It seems like if JAR and JAD had differente attributes, but then why does it install correctly using PC Suite? Or why does it install using Web Server in Nokia N95 and other Series 60 3rd edition devices?

Thank you very much.
Reply With Quote

#13 Old Re: Series 40 problem - 2008-03-07, 06:00

Join Date: Feb 2008
Posts: 89
Location: India
Suyash's Avatar
Suyash
Offline
Regular Contributor
Hi Felixksp,

[First of all, Sorry to all viewers, as this is not related to this post "Series 40 problem".]

I have to make a HTTP filter plugin and I found your post related to it very helpful. I have some problem which I have posted in your post "http filter problem" link :

http://discussion.forum.nokia.com/fo...d.php?t=112824
Please check the link and help me as you have already faced the same problem.

Regards,
Suyash.
Reply With Quote

#14 Old Re: Series 40 problem - 2008-03-11, 10:37

Join Date: Feb 2008
Posts: 89
Location: India
Suyash's Avatar
Suyash
Offline
Regular Contributor
Hi felixksp,

I am facing some more problem in the HTTP filter plugin which I have mentioned in your post "http filter problem"
link : http://discussion.forum.nokia.com/fo...d.php?t=112824
Plese have a look at it...

Regards,
Suyash.
Reply With Quote

#15 Old Re: Series 40 problem - 2008-04-04, 14:49

Join Date: Aug 2007
Posts: 774
r2j7's Avatar
r2j7
Offline
Forum Nokia Expert
Hello Felixksp,

try this: before installing the app using PC Suite, try placing the JAD and JAR to different folders. Then install the JAR using PC Suite and check if the 'Always allowed' is still there available.

If not, then it's clear that using PC Suite for JAR installation means installing both JAR + JAD if they are in the same folder.

Regards,
r2j7
Reply With Quote
Reply « Previous Thread | Next Thread »
Display Modes
Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules

You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Forum Jump
Similar Threads
Thread Thread Starter Forum Replies Last Post
MIDP applicatyion accessing a servlet not working in series 60 emulator ferozekadamapuzha Mobile Java General 11 2008-05-07 19:04
Redirect problem on Nokia Series 40 diod General Browsing 2 2008-03-02 11:44
Problem in NewL() of CVideoPlayerUtility (series 60 2.0 SDK) mishrasaurabh General Symbian C++ 1 2004-12-31 14:08
Series 60 Concept Emulator (SDK Beta 0.2 Linux) not working mattbee Mobile Java Tools & SDKs 1 2003-06-10 12:43
Series 60Series 60 MIDP Concept SDK Beta 0.2 Linux bug? kauppi Mobile Java Tools & SDKs 3 2003-04-07 10:05

Rate This

 
Bookmark this page: DeliciousDiggFacebookGoogleYahooStumbleUponRedditDiigoTechnocratiTwitter  Share this page Share this page Print this Page Print this page Invite a friend Invite a friend
京ICP备05048969号    Email Newsletters Press Terms & Conditions Privacy Policy Sitemap Contact Us © 2009 Nokia