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
Developer
filmaj
Posts: 18
Registered: ‎09-02-2009
My Device: Not Specified
Accepted Solution

Ant build.xml, device complains about Secure API access

Hello everyone,

 

I've recently tried to automate parts of my application development workflow, so I started using Apache Ant and the BB Ant Tools (http://bb-ant-tools.sourceforge.net/) to create a build.xml file to compile, sign and potentially launch the final application binaries. Before, I was using the Eclipse plugin (and still am, for actual coding/development). In general I only use JDE 4.6.1 and JDE 4.7.

 

I have an interesting problem. First, I'll post my build.xml file:

 

 

<project name="PhoneGap BlackBerry Ant Build" default="build">
	<taskdef resource="bb-ant-defs.xml" />
	<!-- PROPERTY DEFINITION - FILL THESE OUT! -->
	<!-- rapc and sigtool require the jde.home property to be set -->
	<property name="jde.home" location="C:\eclipse\plugins\net.rim.eide.componentpack4.6.1_4.6.1.27\components\" />
	<!-- directory of simulator to copy files to -->
	<property name="simulator.home" location="C:\eclipse\plugins\net.rim.eide.componentpack4.6.1_4.6.1.27\components\simulator\" />
	<!-- directory of BlackBerry application source code. Should include two directories: a 'com' and a 'www'. -->
	<property name="src.dir" location="src" />
	<!-- directory where you want the final binaries to be copied to. -->
	<property name="build.dir" location="build" />
	<!-- name of the binaries to generate (i.e. <blah>.cod, <blah>.jar, etc.) -->
	<property name="cod.name" value="AntPGTest" />
	<!-- password for the Signature Tool -->
	<property name="password" value="some_random_password" />
 
 	<target name="build">
		<delete dir="www" />
		<mkdir dir="www" />
		<delete dir="${build.dir}" />
		<mkdir dir="${build.dir}" />
		<copy todir="www">
			<fileset dir="src/www" />
		</copy>
		<delete dir="src/www" />
		<rapc output="${cod.name}">
			<src>
	      		<fileset dir="src" />
	      		<fileset dir="www" />
			</src>
			<jdp title="PhoneGap BlackBerry" />
		</rapc>
		<mkdir dir="src/www" />
		<copy todir="src/www">
			<fileset dir="www" />
		</copy>
		<delete dir="www" />
 		<copy todir="${build.dir}">
 			<fileset dir="" includes="*.cod,*.cso,*.debug,*.jad,*.jar" />
 		</copy>
 		<delete file="${cod.name}.cod" />
 		<delete file="${cod.name}.cso" />
 		<delete file="${cod.name}.debug" />
 		<delete file="${cod.name}.jad" />
 		<delete file="${cod.name}.jar" />
	</target>
 
	<target name="sign" depends="build">
		<sigtool codfile="${build.dir}/${cod.name}.cod" password="${password}" />
	</target>
 
	<target name="clean">
		<delete dir="${build.dir}" />
   	</target>
 
	<target name="load-simulator" depends="sign">
		<copy todir="${simulator.home}">
			<fileset dir="${build.dir}" includes="*.cod,*.cso,*.debug,*.jad,*.jar" />
		</copy>
	</target>
	<target name="load-device" depends="sign">
		<exec executable="${jde.home}/bin/JavaLoader.exe" dir="." failonerror="true">
			<arg value="-u" />
			<arg value="load" />
			<arg value="${build.dir}/${cod.name}.cod" />
		</exec>
	</target>
</project>

 A quick summary of what is above. There are four Ant tasks: build, clean, load-simulator, load-device. All of them work fine. Due to some project-specific constraints, I need to move some folders around right before running rapc, just so that the directory gets maintained in the final .cod file properly. However, none of this is an issue.

 

My problem is that once I load the final, signed cod file onto the device, my BlackBerry tells me that the application is attempting to access secure APIs - the classic 'hey dummy, you forgot to sign your binaries!' error. Or so I thought. I then pointed the signature tool, manually from command-line, to the final generated .cod file, and the signature tool reports that it is signed and everything! Anyone have any ideas? I am running a BlackBerry Bold 9000.

 

If I take the source code and import it into a fresh Eclipse BlackBerry project, everything builds, signs, deploys and runs on device fine. I am sort of at a loss as to what the problem could be. I also tried, instead of running JavaLoader.exe -u load codname.cod, 'extracting' the final cod file into it's sub-cod files (I hope you guys know what I mean) and using javaloader.exe with the generated .jad file. javaloader reports that both (in this case, the project I'm working on is composed of two 'sub-cod' files) sub-cod files were loaded onto device fine, but when I go to run it, it says codname-1.cod could not be found. 

 

Originally, I tried pointing Ant to the stock RIM JDE tools instead of the tools located in the eclipse directory (where the JDE Eclipse plugin resides), but it turned out that the signature keys I received from RIM we're already installed into the Eclipse plugin signature tool, and I had no way of installing the signature keys into the 'other' signature tool - hope that makes sense. Thus, Ant uses the Eclipse plugin tools.

 

Thanks in advance to anyone who can offer any kind of insight or advice.

 

Cheers!

Fil Maj

Web Software Engineer

Nitobi

 

Please use plain text.
Developer
Posts: 1,474
Registered: ‎04-14-2009
My Device: Not Specified

Re: Ant build.xml, device complains about Secure API access

[ Edited ]

Please clear the Event Log on the device, install your module(s), try starting your app, then obtain the Event Log and post it here. The Event Log will contain more details about the issue, in particular, the name of the signature that is missing.

 

It may be that the bin\sigtool.db is different between your Eclipse and JDE installations and your JDE sigtool.db lists fewer web signers.

Please use plain text.
Developer
filmaj
Posts: 18
Registered: ‎09-02-2009
My Device: Not Specified

Re: Ant build.xml, device complains about Secure API access

Hi again,

 

Thanks for replying. Here is what the contents of the log are after clearing and running the 'load-device' Ant task (FYI the app name is AntPGTest):

 

 

a net.rim.tunnel - STnc-00000000 - 12/1 10:45:57

a net.rim.tunnel - Open-internet.com - 12/1 10:45:57

a net.rim.tcp - open - 12/1 10:45:57

a net.rim.ippp - RXCd   473 - 12/1 10:45:57

a net.rim.link - Strt - 12/1 10:45:56

a net.rim.link - CNSc - 12/1 10:45:56

W net.rim.scan - CRAf - 12/1 10:45:56

a net.rim.ippp - TXst   241 - 12/1 10:45:55

a net.rim.link - NKSt - 12/1 10:45:54

a net.rim.scan - NKFn - 12/1 10:45:54

a PhoneApp - app-deac - 12/1 10:45:47

W net.rim.link - FaAs - 12/1 10:45:46

W net.rim.if-wlan - StIF - 12/1 10:45:46

W net.rim.if-wlan - StNT - 12/1 10:45:46

W net.rim.srp - DaUv - 12/1 10:45:46

W net.rim.srp - Inet - 12/1 10:45:46

W net.rim.srp - WlCe - 12/1 10:45:46

a net.rim.link - NkDn - 12/1 10:45:46

a net.rim.srp - Wlan - 12/1 10:45:46

a net.rim.link - NKDn - 12/1 10:45:46

a net.rim.link - Strt - 12/1 10:45:40

a net.rim.link - CNSc - 12/1 10:45:40

W net.rim.scan - CRAf - 12/1 10:45:40

a net.rim.link - NKSt - 12/1 10:45:40

a net.rim.scan - NKFn - 12/1 10:45:40

S Java Exception - RuntimeException - 12/1 10:45:37

| Error starting AntPGTest: Module 'AntPGTest' attempts to access a secure API.

| net_rim_bb_framework_api-1(4A2982D5)

|  ApplicationEntryPoint

|  run

|  0x2680

| net_rim_bb_ribbon_app-2(4A298AA0)

|  ApplicationEntry

|  invoke

|  0x4B3

| net_rim_bb_ribbon_app-1(4A298AA0)

|  RibbonLauncherImpl

|  <private>

|  0x4B17

| net_rim_bb_ribbon_app-1(4A298AA0)

|  RibbonLauncherImpl

|  launch

|  0x3592

| net_rim_bb_ribbon_app(4A298AA0)

|  ApplicationMenu

|  trackwheelClick

|  0x852

| net_rim_bb_ribbon_app(4A298AA0)

|  ApplicationMenu

|  navigationClick

|  0x872

| net_rim_cldc-9(4A298199)

|  Screen

|  dispatchNavigationEvent

|  0x3F25

| net_rim_cldc-9(4A298199)

|  UiEngineImpl

|  processMessage

|  0x9D88

| net_rim_cldc-6(4A298199)

|  Application

|  processNextMessage

|  0x13F9

| net_rim_cldc-6(4A298199)

|  Application

|  enterEventDispatcher

|  0xAA8

| net_rim_bb_ribbon_app-1(4A298AA0)

|  RibbonLauncherApp

|  main

|  0x305D

a System - Error starting AntPGTest: Module 'AntPGTest' attempts to access a secure API. - 12/1 10:45:37

a System - Linker error: 'VerifyError' for AntPGTest - 12/1 10:45:37

a System - Module 'AntPGTest' attempts to access a secure API. - 12/1 10:45:37

a System - module 1524 cannot reference net.rim.device.api.io.file.FileSystemJournalListener - 12/1 10:45:37

a System - VM:LINK AntPGTest - 12/1 10:45:37

W net.rim.link - AFCi - 12/1 10:45:31

a net.rim.link - NkDn - 12/1 10:45:31

W net.rim.srp - DaUv - 12/1 10:45:31

W net.rim.srp - Inet - 12/1 10:45:31

W net.rim.srp - WlCe - 12/1 10:45:31

a net.rim.srp - Wlan - 12/1 10:45:31

a net.rim.link - NKDn - 12/1 10:45:31

W net.rim.if-wlan - StIF - 12/1 10:45:31

W net.rim.if-wlan - StNT - 12/1 10:45:31

a net.rim.link - Strt - 12/1 10:45:31

a net.rim.link - CNSc - 12/1 10:45:31

W net.rim.scan - CRAf - 12/1 10:45:31

W net.rim.scan - ScnC - 12/1 10:45:31

a net.rim.scan - Usac - 12/1 10:45:31

a net.rim.link - NKSt - 12/1 10:45:23

a net.rim.scan - NKFn - 12/1 10:45:23

a System - CMM: AntPGTest(1524) no sig from 0x33 - 12/1 10:45:20

a net.rim.browser - RMen - 12/1 10:45:20

a net.rim.browser - RMen - 12/1 10:45:20

a net.rim.browser - RMen - 12/1 10:45:19

a net.rim.browser - RMen - 12/1 10:45:19

a net.rim.browser - RMen - 12/1 10:45:19

a net.rim.browser - RMen - 12/1 10:45:19

a net.rim.browser - RMen - 12/1 10:45:19

a System - Linker error: 'VerifyError' for AntPGTest - 12/1 10:45:18

a System - Module 'AntPGTest' attempts to access a secure API. - 12/1 10:45:18

a System - module 1524 cannot reference net.rim.device.api.io.file.FileSystemJournalListener - 12/1 10:45:18

a System - CMM: AntPGTest(1524) no sig from 0x545252 - 12/1 10:45:18

a System - VM:LINK AntPGTest - 12/1 10:45:18

a System - CMM: Evernote(4159) no sig from 0x33 - 12/1 10:45:14

a System - CMM: AntPGTest(1524) no sig from 0x33 - 12/1 10:45:14

a System - CMM: GoogleMaps(1502) no sig from 0x33 - 12/1 10:45:14

a System - CMM: GoogleMail(1459) no sig from 0x33 - 12/1 10:45:14

a System - CMM: GoogleSearch(1217) no sig from 0x33 - 12/1 10:45:14

a System - CMM: TckTckTck(1181) no sig from 0x33 - 12/1 10:45:14

a System - CMM: SecurIDLib(638) no sig from 0x33 - 12/1 10:45:14

a System - CMM: THK2_v46_480x320(222) no sig from 0x33 - 12/1 10:45:14

a System - CMM: Sudoku_v46_480x320(203) no sig from 0x33 - 12/1 10:45:14

a System - CMM: Klondike_v46_480x320(181) no sig from 0x33 - 12/1 10:45:14

a System - CMM: DocsToGoCommonResource__es(177) no sig from 0x33 - 12/1 10:45:14

a System - CMM: SheetToGoResource__es(174) no sig from 0x33 - 12/1 10:45:14

a System - CMM: SlideshowToGoResource__es(171) no sig from 0x33 - 12/1 10:45:14

a System - CMM: WordToGoResource__es(168) no sig from 0x33 - 12/1 10:45:14

a System - CMM: DocsToGoCommonResource__de(165) no sig from 0x33 - 12/1 10:45:14

a System - CMM: SheetToGoResource__de(162) no sig from 0x33 - 12/1 10:45:14

a System - CMM: SlideshowToGoResource__de(159) no sig from 0x33 - 12/1 10:45:14

a System - CMM: WordToGoResource__de(156) no sig from 0x33 - 12/1 10:45:14

a System - CMM: DocsToGoCommonResource__it(153) no sig from 0x33 - 12/1 10:45:14

a System - CMM: SheetToGoResource__it(150) no sig from 0x33 - 12/1 10:45:14

a System - CMM: SlideshowToGoResource__it(147) no sig from 0x33 - 12/1 10:45:14

a System - CMM: WordToGoResource__it(144) no sig from 0x33 - 12/1 10:45:14

a System - CMM: SheetToGoResource__fr(141) no sig from 0x33 - 12/1 10:45:14

a System - CMM: DocsToGoCommonResource__fr(138) no sig from 0x33 - 12/1 10:45:14

a System - CMM: SlideshowToGoResource__fr(135) no sig from 0x33 - 12/1 10:45:14

a System - CMM: WordToGoResource__fr(132) no sig from 0x33 - 12/1 10:45:14

a System - CMM: SheetToGoResource__en(129) no sig from 0x33 - 12/1 10:45:14

a System - CMM: SheetToGoResource(126) no sig from 0x33 - 12/1 10:45:14

a System - CMM: SheetToGo(114) no sig from 0x33 - 12/1 10:45:14

a System - CMM: DocsToGoCommonResource__en(111) no sig from 0x33 - 12/1 10:45:14

a System - CMM: DocsToGoCommonResource(108) no sig from 0x33 - 12/1 10:45:14

a System - CMM: DocsToGoCommon(72) no sig from 0x33 - 12/1 10:45:14

a System - CMM: SlideshowToGoResource__en(69) no sig from 0x33 - 12/1 10:45:14

a System - CMM: SlideshowToGoResource(66) no sig from 0x33 - 12/1 10:45:14

a System - CMM: SlideshowToGo(51) no sig from 0x33 - 12/1 10:45:14

a System - CMM: WordToGoResource__en(48) no sig from 0x33 - 12/1 10:45:14

a System - CMM: WordToGoResource(45) no sig from 0x33 - 12/1 10:45:14

a System - CMM: WordToGo(27) no sig from 0x33 - 12/1 10:45:14

a System - VM:-RR RX=4.5M,RF=9.1M,FF=36.5M,OF=418K,OS=14.2M,ON=93.9K,OR=0,FR=0,TR=21.5K,RR=0,IS=7.1K RA=16M,RS=14.2M,RN=55.6K TA=1.3M,TS=0,TN=3.2K PA=0,PS=0,PN=18K R0=70.2M,1=420.6K,2=15K,3=86.5K,4=1.8M,7=52.8K,8=3K,9=14.8M,10=13.5K,11=51K,12=285.4K,13=24.3K,14=156,15=193.7K,20=4.7K,21=524,22=60.1K - 12/1 10:45:14

a System - VM:+RR RX=4.4M,RF=8.8M,FF=36.9M,OF=418K,OS=14.5M,ON=93.9K,OR=0,FR=0,TR=21.5K,RR=0,IS=7.1K RA=16.3M,RS=14.5M,RN=56.1K TA=1M,TS=0,TN=2.7K PA=0,PS=0,PN=18K R0=70.2M,1=420.6K,2=15K,3=86.5K,4=1.8M,7=52.8K,8=3K,9=15.1M,10=13.5K,11=51K,12=285.4K,13=24.3K,14=156,15=193.7K,20=4.7K,21=524,22=60.1K - 12/1 10:45:14

a System - CMM: add AntPGTest-1(1456) - 12/1 10:45:13

a System - CMM: add AntPGTest(1524) - 12/1 10:45:13

a System - CMM: delete AntPGTest-1(1283,u) - 12/1 10:45:13

a System - CMM: delete AntPGTest(1804,u) - 12/1 10:45:13

a System - -GCt=35,b=0,r=0,g=p,w=19,u=0,c=1 - 12/1 10:45:13

a System - VM:-GC RX=4.4M,RF=8.8M,FF=36.8M,OF=418K,OS=14.5M,ON=93.9K,OR=0,FR=0,TR=21.5K,RR=0,IS=7.1K RA=16.3M,RS=14.5M,RN=56.1K TA=1M,TS=0,TN=2.7K PA=0,PS=0,PN=18K R0=70.2M,1=420.6K,2=15K,3=86.5K,4=1.8M,7=52.8K,8=3K,9=15.1M,10=13.5K,11=51K,12=285.4K,13=24.3K,14=60,15=193.7K,20=4.7K,21=524,22=60.1K,30=6K - 12/1 10:45:13

a System - CMM: AntPGTest(1804) already exists - 12/1 10:45:13

a net.rim.link - NKSt - 12/1 10:45:00

a net.rim.scan - NKFn - 12/1 10:45:00

W net.rim.link - FaAs - 12/1 10:44:51

a net.rim.link - NkDn - 12/1 10:44:51

W net.rim.srp - DaUv - 12/1 10:44:51

W net.rim.srp - Inet - 12/1 10:44:51

W net.rim.srp - WlCe - 12/1 10:44:51

a net.rim.srp - Wlan - 12/1 10:44:51

a net.rim.link - NKDn - 12/1 10:44:51

W net.rim.if-wlan - StIF - 12/1 10:44:51

W net.rim.if-wlan - StNT - 12/1 10:44:51

a net.rim.link - Strt - 12/1 10:44:45

a net.rim.link - CNSc - 12/1 10:44:45

W net.rim.scan - CRAf - 12/1 10:44:45

a System - CMM: AntPGTest(1804) no sig from 0x33 - 12/1 10:44:40

a net.rim.browser - RMen - 12/1 10:44:39

a net.rim.browser - RMen - 12/1 10:44:39

a net.rim.browser - RMen - 12/1 10:44:39

a net.rim.browser - RMen - 12/1 10:44:39

a net.rim.browser - RMen - 12/1 10:44:39

a net.rim.browser - RMen - 12/1 10:44:39

a net.rim.browser - RMen - 12/1 10:44:39

a System - Linker error: 'VerifyError' for AntPGTest - 12/1 10:44:38

a System - Module 'AntPGTest' attempts to access a secure API. - 12/1 10:44:38

a System - module 1804 cannot reference net.rim.device.api.io.file.FileSystemJournalListener - 12/1 10:44:38

a System - CMM: AntPGTest(1804) no sig from 0x545252 - 12/1 10:44:38

a System - VM:LINK AntPGTest - 12/1 10:44:38

a System - CMM: Evernote(4159) no sig from 0x33 - 12/1 10:44:34

a System - CMM: AntPGTest(1804) no sig from 0x33 - 12/1 10:44:34

a System - CMM: GoogleMaps(1502) no sig from 0x33 - 12/1 10:44:34

a System - CMM: GoogleMail(1459) no sig from 0x33 - 12/1 10:44:34

a System - CMM: GoogleSearch(1217) no sig from 0x33 - 12/1 10:44:34

a System - CMM: TckTckTck(1181) no sig from 0x33 - 12/1 10:44:34

a System - CMM: SecurIDLib(638) no sig from 0x33 - 12/1 10:44:34

a System - CMM: THK2_v46_480x320(222) no sig from 0x33 - 12/1 10:44:33

a System - CMM: Sudoku_v46_480x320(203) no sig from 0x33 - 12/1 10:44:33

a System - CMM: Klondike_v46_480x320(181) no sig from 0x33 - 12/1 10:44:33

a System - CMM: DocsToGoCommonResource__es(177) no sig from 0x33 - 12/1 10:44:33

a System - CMM: SheetToGoResource__es(174) no sig from 0x33 - 12/1 10:44:33

a System - CMM: SlideshowToGoResource__es(171) no sig from 0x33 - 12/1 10:44:33

a System - CMM: WordToGoResource__es(168) no sig from 0x33 - 12/1 10:44:33

a System - CMM: DocsToGoCommonResource__de(165) no sig from 0x33 - 12/1 10:44:33

a System - CMM: SheetToGoResource__de(162) no sig from 0x33 - 12/1 10:44:33

a System - CMM: SlideshowToGoResource__de(159) no sig from 0x33 - 12/1 10:44:33

a System - CMM: WordToGoResource__de(156) no sig from 0x33 - 12/1 10:44:33

a System - CMM: DocsToGoCommonResource__it(153) no sig from 0x33 - 12/1 10:44:33

a System - CMM: SheetToGoResource__it(150) no sig from 0x33 - 12/1 10:44:33

a System - CMM: SlideshowToGoResource__it(147) no sig from 0x33 - 12/1 10:44:33

a System - CMM: WordToGoResource__it(144) no sig from 0x33 - 12/1 10:44:33

a System - CMM: SheetToGoResource__fr(141) no sig from 0x33 - 12/1 10:44:33

a System - CMM: DocsToGoCommonResource__fr(138) no sig from 0x33 - 12/1 10:44:33

a System - CMM: SlideshowToGoResource__fr(135) no sig from 0x33 - 12/1 10:44:33

a System - CMM: WordToGoResource__fr(132) no sig from 0x33 - 12/1 10:44:33

a System - CMM: SheetToGoResource__en(129) no sig from 0x33 - 12/1 10:44:33

a System - CMM: SheetToGoResource(126) no sig from 0x33 - 12/1 10:44:33

a System - CMM: SheetToGo(114) no sig from 0x33 - 12/1 10:44:33

a System - CMM: DocsToGoCommonResource__en(111) no sig from 0x33 - 12/1 10:44:33

a System - CMM: DocsToGoCommonResource(108) no sig from 0x33 - 12/1 10:44:33

a System - CMM: DocsToGoCommon(72) no sig from 0x33 - 12/1 10:44:33

a System - CMM: SlideshowToGoResource__en(69) no sig from 0x33 - 12/1 10:44:33

a System - CMM: SlideshowToGoResource(66) no sig from 0x33 - 12/1 10:44:33

a System - CMM: SlideshowToGo(51) no sig from 0x33 - 12/1 10:44:33

a System - CMM: WordToGoResource__en(48) no sig from 0x33 - 12/1 10:44:33

a System - CMM: WordToGoResource(45) no sig from 0x33 - 12/1 10:44:33

a System - CMM: WordToGo(27) no sig from 0x33 - 12/1 10:44:33

a System - VM:-RR RX=5.1M,RF=9.9M,FF=36.8M,OF=418.7K,OS=13.6M,ON=93.2K,OR=0,FR=0,TR=20.5K,RR=0,IS=7.1K RA=15.2M,RS=13.6M,RN=55.1K TA=1M,TS=0,TN=3K PA=0,PS=0,PN=18K R0=70.2M,1=420.6K,2=15K,3=86.5K,4=1.8M,7=52.8K,8=3K,9=14M,10=13.3K,11=50.1K,12=285.4K,13=22.7K,14=156,15=193.7K,20=4.7K,21=524,22=60.1K - 12/1 10:44:33

a System - VM:+RR RX=5.1M,RF=9.5M,FF=37.2M,OF=418.7K,OS=13.9M,ON=93.2K,OR=0,FR=0,TR=20.5K,RR=0,IS=7.1K RA=15.6M,RS=13.9M,RN=56.1K TA=739.2K,TS=0,TN=2K PA=0,PS=0,PN=18K R0=70.2M,1=420.6K,2=15K,3=86.5K,4=1.8M,7=52.8K,8=3K,9=14.4M,10=13.3K,11=50.1K,12=285.4K,13=22.7K,14=156,15=193.7K,20=4.7K,21=524,22=60.1K - 12/1 10:44:33

a System - CMM: add AntPGTest-1(1283) - 12/1 10:44:33

a System - CMM: add AntPGTest(1804) - 12/1 10:44:33

a System - CMM: delete AntPGTest-1(1456,u) - 12/1 10:44:33

a System - CMM: delete AntPGTest(1796,u) - 12/1 10:44:33

a System - -GCt=44,b=0,r=0,g=p,w=19,u=0,c=1 - 12/1 10:44:33

a System - VM:-GC RX=5.1M,RF=9.5M,FF=37.2M,OF=418.7K,OS=13.9M,ON=93.2K,OR=0,FR=0,TR=20.5K,RR=0,IS=7.1K RA=15.6M,RS=13.9M,RN=56.1K TA=739.2K,TS=0,TN=2K PA=0,PS=0,PN=18K R0=70.2M,1=420.6K,2=15K,3=86.5K,4=1.8M,7=52.8K,8=3K,9=14.4M,10=13.3K,11=50.1K,12=285.4K,13=22.7K,14=60,15=193.7K,20=4.7K,21=524,22=60.1K,30=6K - 12/1 10:44:33

a System - CMM: AntPGTest(1796) already exists - 12/1 10:44:32

a net.rim.link - NKSt - 12/1 10:44:29

a net.rim.scan - NKFn - 12/1 10:44:29

W net.rim.link - FaAs - 12/1 10:44:20

W net.rim.if-wlan - StIF - 12/1 10:44:20

a net.rim.link - NkDn - 12/1 10:44:20

W net.rim.if-wlan - StNT - 12/1 10:44:20

W net.rim.srp - DaUv - 12/1 10:44:20

W net.rim.srp - Inet - 12/1 10:44:20

W net.rim.srp - WlCe - 12/1 10:44:20

a net.rim.srp - Wlan - 12/1 10:44:20

a net.rim.link - NKDn - 12/1 10:44:20

a net.rim.link - Strt - 12/1 10:44:14

a net.rim.link - CNSc - 12/1 10:44:14

W net.rim.scan - CRAf - 12/1 10:44:14

a net.rim.link - NKSt - 12/1 10:44:14

a net.rim.scan - NKFn - 12/1 10:44:14

W net.rim.link - AFCi - 12/1 10:44:05

W net.rim.if-wlan - StIF - 12/1 10:44:05

W net.rim.srp - DaUv - 12/1 10:44:05

a net.rim.link - NkDn - 12/1 10:44:05

W net.rim.if-wlan - StNT - 12/1 10:44:05

W net.rim.srp - Inet - 12/1 10:44:05

W net.rim.srp - WlCe - 12/1 10:44:05

a net.rim.srp - Wlan - 12/1 10:44:05

a net.rim.link - NKDn - 12/1 10:44:05

a net.rim.link - Strt - 12/1 10:44:05

a net.rim.link - CNSc - 12/1 10:44:05

W net.rim.scan - CRAf - 12/1 10:44:05

a net.rim.link - NKSt - 12/1 10:43:57

a net.rim.scan - NKFn - 12/1 10:43:57

 

 

Hopefully that makes sense to some people here.

 

Thanks in advance for any help!

Please use plain text.
Developer
Posts: 1,474
Registered: ‎04-14-2009
My Device: Not Specified

Re: Ant build.xml, device complains about Secure API access

[ Edited ]

Here's you problem: "cannot reference net.rim.device.api.io.file.FileSystemJournalListener" caused by "no sig from 0x545252" (no RRT signature).

Please use plain text.
Developer
Posts: 1,474
Registered: ‎04-14-2009
My Device: Not Specified

Re: Ant build.xml, device complains about Secure API access

P.S. You can see what signatures your module has by opening the module's details in Options -> Advanced Options -> Applications -> (menu) -> Modules (Signer IDs section of the screen), or by examining the signatures attached to the end of the each .cod file (they are 136 bytes in length each, the signed ID is bytes 3-7 in each record).

Please use plain text.
Developer
filmaj
Posts: 18
Registered: ‎09-02-2009
My Device: Not Specified

Re: Ant build.xml, device complains about Secure API access

Hi klyubin,

 

Thanks a lot for the info you've provided, very helpful. So my module has Signer IDs of 'RBB' and 'RCR'. However, my signature tool doesn't tell me to sign with 'RTT' - here is a snapshot of the signature tool with the Ant-built COD loaded into it:

 

 

As you can see, RTT isn't even listed in there. I've never had this problem before. Any suggestions on how I should proceed?

 

Thanks in advance!

Please use plain text.
Developer
Posts: 1,474
Registered: ‎04-14-2009
My Device: Not Specified

Re: Ant build.xml, device complains about Secure API access

[ Edited ]

I recall there was a post about the v4.7 Signature Tool not generating an RRT signature. I think the solution was to explicitly invoke some obvious API that requires this signature somewhere in your code. For example, add ApplicationManager.getApplicationManager() to the main() method of your application. I'll post the link to the post I'm referring to in a second...

Please use plain text.
Developer
Posts: 1,474
Registered: ‎04-14-2009
My Device: Not Specified

Re: Ant build.xml, device complains about Secure API access

Hm... I can't seem to find the post on this forum where the original poster ran into a similar/same (?) issue. Anyway, you need to force the rapc to add the RRT signature as optional or required to the <your app>.cso or <your app>.csl file respectively. The SignatureTool reads the list of signatures to request from these two files. You can add the RRT signature there either by invoking some API that definitely requires the RRT signature, such as ApplicationManager, or by explicitly adding a line to one of the two files from your Ant script. I would be interested to find out whether this solves your issue.

Please use plain text.
Developer
filmaj
Posts: 18
Registered: ‎09-02-2009
My Device: Not Specified

Re: Ant build.xml, device complains about Secure API access

I tried explicitly invoking the ApplicationManager function that you mentioned, however the signature tool still only signs with the two certificates (RBB and RCR).

 

Here are the contents of the generated CSO file:

 

 

33000000=RIMAPPSA2

52424200=RIM Blackberry Apps API

52434300=RIM Crypto API - Certicom

52434900=RIM Crypto API - Internal

52435200=RIM Crypto API - RIM


How would you recommend I change this file to force the signature tool to add an RTT signature?

 

Please use plain text.
Developer
Posts: 1,474
Registered: ‎04-14-2009
My Device: Not Specified

Re: Ant build.xml, device complains about Secure API access

What's in the .csl file? Also, what's in the sigtool.db file (don't post the customer ID(s) that precede each HTTP URL)?

Please use plain text.