Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Web and WebWorks Development

New Developer
Posts: 1
Registered: ‎08-25-2008
My Device: Not Specified

java class cast exception accessing wml page



I have following Blackberry Pearl

8130 Smartphone(CDMA)



I can get more details if you need them.

The cellular provider is Alltel


I am using the blackberry browser and browsing to my wml page i created at http://www.thecellphonepages.com/wmltest.wml


I keep getting an Uncaught Class Cast Exception.


Please let me know how to fix this bug with the Blackberry browser.


Thanks very much,




Guru I
Posts: 19,020
Registered: ‎07-29-2008
My Device: Passport, Playbook, 9320BES
My Carrier: Bouygues _ SFR

Re: java class cast exception accessing wml page


(do you really want to output .wml instead of html ?)

anyway, when I look at your file, I get something like this :


< postfield name="firstName" value="$(firstName)" />


 what is in the value="" attribute is not computed. Is this normal ?


The search box on top-right of this page is your true friend, and the public Knowledge Base too:
BlackBerry Development Advisor
Posts: 15,814
Registered: ‎07-09-2008
My Device: BlackBerry PRIV
My Carrier: Bell

Re: java class cast exception accessing wml page

Is your web service configured to serve WML pages?  Are the appropriate MIME types being sent?


I was able to reprouce the issue with the URL you posted, but the page works fine when hosted from my local web server.

Mark Sohm
BlackBerry Development Advisor

Please refrain from posting new questions in solved threads.
Problem solved? Click the Accept As Solution button.