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

Native Development

Reply
Developer
Posts: 27
Registered: ‎01-03-2013
My Device: Curve 8520

Invalid value 'application.headless'

I created headless app project using Momentics template for headless application. Both projects (UI+service part) are compiling and building properly....but when I try to Export (create bar file) for UI project it gives me this error

"Invalid value 'application.headless' for attribute 'Invoke-Target-Type'.". This is my bar-descriptor.xml part for headless invoke target

 

<invoke-target id="com.usmani.BB10TrackerHdService">
<invoke-target-type>application.headless</invoke-target-type>
<invoke-target-name>BB10TrackerHd Service</invoke-target-name>
<entry-point-id>BB10TrackerHdService</entry-point-id>
<filter>
<action>bb.action.system.STARTED</action>
<mime-type>application/vnd.blackberry.system.event.STARTED</mime-type>
<property var="uris" value="data&colon;//local" />
</filter>
<filter>
<action>com.usmani.BB10TrackerHdService.RESET</action>
<mime-type>*</mime-type>
<property var="uris" value="headless:" />
</filter>
</invoke-target>

BlackBerry Development Advisor
Posts: 247
Registered: ‎07-14-2008
My Device: Not Specified

Re: Invalid value 'application.headless'

I want to check 2 things first.
1. Are you using the latest version of the IDE?
2. Do you have more than one invoke target that is application.headless?


Shadid
New Developer
Posts: 3
Registered: ‎05-19-2014
My Device: z10

Re: Invalid value 'application.headless'

Hi shaque, 

 

I have the same problem here now. To your two questions,

 

1 I'm using momentics 2.0

2 Just one invote target is application.headless

 

Could you please help me figure it out?

 

Thanks!

Developer
Posts: 27
Registered: ‎01-03-2013
My Device: Curve 8520

Re: Invalid value 'application.headless'

I am sorry for the late response. Momentics 2.0 is not sufficient ... my error was fixed when I updated my development kit within momentics 2.0 to Blackberry 10.2.1....before 10.2.1 headless apps are not supported.

New Developer
Posts: 3
Registered: ‎05-19-2014
My Device: z10

Re: Invalid value 'application.headless'

kartoos,

 

Thanks for your quick reply. Then how about short-running apps, do they run on lower version api?

 

Thanks!

Developer
Posts: 27
Registered: ‎01-03-2013
My Device: Curve 8520

Re: Invalid value 'application.headless'

No ... headless (whether short running or long running) are supported in 10.2.1

New Developer
Posts: 3
Registered: ‎05-19-2014
My Device: z10

Re: Invalid value 'application.headless'

OK, thank you!

Developer
Posts: 120
Registered: ‎02-06-2013
My Device: DAB, DAC, Lost red Z10, Regular Replaced Z10, PlayBook

Re: Invalid value 'application.headless'

I've the latest Momentics ide, Gold 10.2 SDK and I think that's enough to create headless app. But still I'm getting the same error while packaging.

I was told by BlackBerry via email that 10.2 Gold SDK and 10.2.1 OS is enough to create the long running headless app. Not sure, why am I getting this error?

And the fact that short running headless app is supported in 10.2 then there is no reason why application.headless is not a recognized type. Any thoughts, anyone?


Looking for SMTP Servers, Bulk Emails and Bulk SMS services at an affordable price to help boost your business? Look no further. I've the solution for your needs. Contact me now.
Developer
Posts: 27
Registered: ‎01-03-2013
My Device: Curve 8520

Re: Invalid value 'application.headless'

Are you getting unrecognized error ? or are you getting error in signing ?

Developer
Posts: 120
Registered: ‎02-06-2013
My Device: DAB, DAC, Lost red Z10, Regular Replaced Z10, PlayBook

Re: Invalid value 'application.headless'

no it's Manifest error

MANIFEST.MF: Value 'application.headless' for attribute 'Invoke-Target-Type' is not supported for BlackBerry 10.



Looking for SMTP Servers, Bulk Emails and Bulk SMS services at an affordable price to help boost your business? Look no further. I've the solution for your needs. Contact me now.