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 Contributor
Posts: 8
Registered: ‎04-29-2010
My Device: curve
My Carrier: Versizon

Problems creating a library for clients to import!

Hi everyone,  I'm pretty new to Blackberry dev, so go easy on me...

 

I'm working on packaging up a blackberry library project, which I would like to be usable for both the BlackBerry_JDE_PluginFull_1.1.1 and BlackBerry_JDE_PluginFull_1.0.0 environments.   

 

The library needed to be signed since it used some protected classes in the RIM api.

 

I built the library and signed it.  

 

But when I go to test it like a developer would, I can't get a project to be able to import it correctly. 

 

I'm using the two project method described here: http://www.blackberry.com/knowledgecenterpublic/livelink.exe/fetch/2000/348583/800901/How_To_-_Compi... 

 

I have two projects ( project and project-lib ), project is a BB-app project and project-lib is a BB-lib project.

 

project-lib has Blackberry-WT-LibCompile.jar in it's classpath.

project has project-lib included as a dependency project.

 

When I build I get the follow error message:  

 

Executing rapc for the project project-lib at Fri May 07 16:40:51 PDT 2010.
C:\eclipses\BB_0001_BB_TF_SigningKeysInstalled\eclipse\plugins\net.rim.eide.componentpack4.5.0_4.5.0.16\components\bin\launcher.exe C:\eclipses\BB_0001_BB_TF_SigningKeysInstalled\eclipse\plugins\net.rim.eide.componentpack4.5.0_4.5.0.16\components\bin\rapc.exe  -quiet import=..\..\..\..\eclipses\BB_0001_BB_TF_SigningKeysInstalled\eclipse\plugins\net.rim.eide.componentpack4.5.0_4.5.0.16\components\lib\net_rim_api.jar;..\project-lib\Blackberry-WT-LibCompile.jar library=..\project-lib\project-lib ..\project-lib\project-lib.rapc warnkey=0x52424200;0x52435200;0x52525400 -sourceroot=C:\Users\sniffe\WS_BB0002_TF\project-lib\src C:\Users\sniffe\WS_BB0002_TF\project-lib\bin
..\project-lib\Blackberry-WT-LibCompile.jar(Blackberry-WT-LibCompile.cod): Warning!: Import file is marked non-parseable
rapc executed for the project project-lib

 

Executing rapc for the project project-lib at Fri May 07 16:40:51 PDT 2010.

C:\eclipses\REMOVED...\plugins\net.rim.eide.componentpack4.5.0_4.5.0.16\components\bin\launcher.exe C:\eclipses\REMOVED...\plugins\net.rim.eide.componentpack4.5.0_4.5.0.16\components\bin\rapc.exe  -quiet import=..\..\..\..\eclipses\BB_0001_BB_TF_SigningKeysInstalled\eclipse\plugins\net.rim.eide.componentpack4.5.0_4.5.0.16\components\lib\net_rim_api.jar;..\project-lib\Blackberry-WT-LibCompile.jar library=..\project-lib\project-lib ..\project-lib\project-lib.rapc warnkey=0x52424200;0x52435200;0x52525400 -sourceroot=C:\Users\sniffe\WS_BB0002_TF\project-lib\src C:\Users\sniffe\WS_BB0002_TF\project-lib\bin..\project-lib\Blackberry-WT-LibCompile.jar(Blackberry-WT-LibCompile.cod): Warning!: Import file is marked non-parseablerapc executed for the project project-lib

 

 

Any Ideas???

New Contributor
Posts: 8
Registered: ‎04-29-2010
My Device: curve
My Carrier: Versizon

Re: Problems creating a library for clients to import!

one more piece of info...  When I built on the BlackBerry_JDE_PluginFull_1.1.1 eclipse plug-in I didn't get errors but when I launched the application on the simulator it crashed it:  ( Access violation reading from 0xFFFFFFC ).  I even tried it on an older XP box and it still crashes. 

Developer
Posts: 91
Registered: ‎11-24-2009
My Device: Storm

Re: Problems creating a library for clients to import!

Hello there:

 

Please take a look on:

 

http://supportforums.blackberry.com/t5/Java-Development/Importing-jars-Need-help-with-Verification-e...

 

 

-Luis Fernando

Remember to give Kudos(click on the star at your left) if this helped you.
Click on "Accept Solution" if the problem is resolved.
Espanol? Escribeme un mensaje privado.
New Contributor
Posts: 8
Registered: ‎04-29-2010
My Device: curve
My Carrier: Versizon

Re: Problems creating a library for clients to import!

THat does work in the newer plug-in JDE (1.1.1) and allows me to build, but when I run the applicaiton in the simulator I get an Access_violation error at ffffffc.  Below is an excerpt from the failure.zip.

 

  <context>
    <exception code="c0000005" name="ACCESS_VIOLATION" address="204443d9"/>
    <registers>
      <eax>fffffffc</eax>
      <ebx>00000010</ebx>
      <ecx>fffffffc</ecx>
      <edx>fffffffc</edx>
      <esi>0774a5fc</esi>
      <edi>00000000</edi>
      <ebp>0eedf7bc</ebp>
      <esp>0eedf770</esp>
      <eip>204443d9</eip>
      <cs>00000023</cs>
      <ds>0000002b</ds>
      <es>0000002b</es>
      <fs>00000053</fs>
      <gs>0000002b</gs>
      <ss>0000002b</ss>
      <flags>00010202</flags>
    </registers>
  </context>
  <stack>
    <frame level="0" function="PagerMain" offset="00092a59"/>
    <frame level="1" function="PagerMain" offset="00092faf"/>
    <frame level="2" function="PagerMain" offset="0009295e"/>
    <frame level="3" function="PagerMain" offset="000980cb"/>
    <frame level="4" function="PagerMain" offset="000997b9"/>
    <frame level="5" function="PagerMain" offset="00099bd1"/>
    <frame level="6" function="PagerMain" offset="0005dd47"/>
    <frame level="7" function="PagerMain" offset="000614cc"/>
    <frame level="8" function="PagerMain" offset="00063ec7"/>
    <frame level="9" function="PagerMain" offset="00014c95"/>
    <frame level="10" function="PagerMain" offset="00001697"/>
    <frame level="11" function="PagerMain" offset="000000ed"/>
    <frame level="12" function="LcdDrvGetDriverInfo_fledge" offset="000481a7"/>
    <frame level="13" function="RimGetNativeTicksPerSecond" offset="0000642f"/>
    <frame level="14" function="LcdDrvGetDriverInfo_fledge" offset="000586af"/>
    <frame level="15" function="LcdDrvGetDriverInfo_fledge" offset="0005afa4"/>
    <frame level="16" function="PrintCallerInfo" offset="00004526"/>
    <frame level="17" function="PrintCallerInfo" offset="000046df"/>
    <frame level="18" function="BaseThreadInitThunk" offset="00000012"/>
    <frame level="19" function="RtlInitializeExceptionChain" offset="00000063"/>
    <frame level="20" function="RtlInitializeExceptionChain" offset="00000036"/>
  </stack>

Developer
Posts: 91
Registered: ‎11-24-2009
My Device: Storm

Re: Problems creating a library for clients to import!

Is this error coming from a simulator or a real device? If is a simulator, try to test the code on different OS versions.

-Luis Fernando

Remember to give Kudos(click on the star at your left) if this helped you.
Click on "Accept Solution" if the problem is resolved.
Espanol? Escribeme un mensaje privado.
New Member
Posts: 1
Registered: ‎05-26-2010
My Device: 8820
My Carrier: developer

Re: Problems creating a library for clients to import!

Hi, anything new about this? I have the similar problem. I also tried to start the simulator separately and then to load cod file. Simulator didn't crash but it didn't load the cod file too.

Highlighted
New Contributor
Posts: 8
Registered: ‎04-29-2010
My Device: curve
My Carrier: Versizon

Re: Problems creating a library for clients to import!

I was only able to get the simulator to work by building and running the simulator with BB-ANT-TOOLS.

 

This article has instruction on how to configure, build and simulate/debug with BB-ANT-TOOLS

 

http://www.slashdev.ca/2007/05/30/blackberry-development-with-ant-eclipse/

 

Also, I recently upgraded to the eclipse plug-in 1.1.2 and many of my issues were fixed.  ( but building with a signed jar/cod still seems broken :-( ).