Welcome!

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

Java Development

Reply
New Developer
Posts: 33
Registered: ‎01-17-2013
My Device: DEVELOPER
My Carrier: DEVELOPER

Error in App_Descriptor for sample project-NotificationsDemo

Hello,

 

I jus imported the blackberry samples-Notifications Demo program...But i get this following error...can u help me saolve this..

 

Description Resource Path Location Type
InvalidRegex: Pattern value '([a-zA-Z_]{1,63}[\s-a-zA-Z_0-9.]{0,63}[;]?)*' is not a valid regular expression. The reported error was: ''-' is an invalid character range. Write '\-'.' at column '{2}'. BlackBerry_App_Descriptor.xml /NotificationsDemo Unknown XML Problem

New Developer
Posts: 33
Registered: ‎01-17-2013
My Device: DEVELOPER
My Carrier: DEVELOPER

Re: Error in App_Descriptor for sample project-NotificationsDemo

Nobody else facing this error ??? I have seen enough of discussions on the above topic !! all have suggested to revert back to jdk1.6, but is der any other solution than that ???

Developer
Posts: 19,636
Registered: ‎07-14-2008
My Device: Not Specified

Re: Error in App_Descriptor for sample project-NotificationsDemo

I've just looked at the source for that sample and I don't see that regular expressin anywhere.  Where is it?

 

Can I suggest you try another sample to see if the problem is specific to NotificationsDemo. 

Developer
Posts: 16,997
Registered: ‎07-29-2008
My Device: Z10 LE, Z30, Passport
My Carrier: O2 Germany

Re: Error in App_Descriptor for sample project-NotificationsDemo

usually this error means that there is a wrong character in the version field.
the error description says where it occurs (column 2) and what the invalid character is, so you should be able to fix it.
----------------------------------------------------------
feel free to press the like button on the right side to thank the user that helped you.
please mark posts as solved if you found a solution.
@SimonHain on twitter
New Developer
Posts: 33
Registered: ‎01-17-2013
My Device: DEVELOPER
My Carrier: DEVELOPER

Re: Error in App_Descriptor for sample project-NotificationsDemo

I too searched for it and could not find that bro..But if u double click the error it takes u to the app descriptor file...

And if u suggest me some other sample similar to notification demo what is its name ??? or do u have any working simple program for notifications in blackberry ??

New Developer
Posts: 33
Registered: ‎01-17-2013
My Device: DEVELOPER
My Carrier: DEVELOPER

Re: Error in App_Descriptor for sample project-NotificationsDemo

The app descriptor file is not generated by us..it is created automatically by itself...so its contents are not filled by me... In the version column the value is 0.9...Is that an invalid expression ??

Developer
Posts: 16,997
Registered: ‎07-29-2008
My Device: Z10 LE, Z30, Passport
My Carrier: O2 Germany

Re: Error in App_Descriptor for sample project-NotificationsDemo

did you open the desciptor in source code? you should be able to find the '-' there
----------------------------------------------------------
feel free to press the like button on the right side to thank the user that helped you.
please mark posts as solved if you found a solution.
@SimonHain on twitter
Highlighted
New Developer
Posts: 33
Registered: ‎01-17-2013
My Device: DEVELOPER
My Carrier: DEVELOPER

Re: Error in App_Descriptor for sample project-NotificationsDemo

Okay friends..Thnks 4 ur help..

I reverted back to jdk1.6 and found that error is gone.. Now i was just looking at this HTTP PushDemo sample in BBryjava plugin...I went through the readme file and executed all those steps..but finally i get this error in my cmdprompt

 

java.io.FileNotFoundException:http://localhost:8080/push?DESTINATION=2100000A&PORT=100&REQUESTURI=localhost