Welcome to the Official BlackBerry® Support Community Forums. This is your resource to discuss support topics with your peers, and learn from each other. New to the forum? Please visit the ‘Getting Started’ link below.
inside custom component

BlackBerry Analytics Service

Reply
Developer
billfoust
Posts: 381
Registered: 05-19-2008
My Carrier: AT&T

can't find entry point on app using analytics

I've found only one other post which claims to have encountered this problem, and it had no replies. I'm hoping I just missed one in my search.

 

So I have a perfectly working application. Once I added the webtrends code to it, I not get this error message when trying to start my application. There is no breakpoint I can set that it will hit, but webtrends is obviously the source of the problem.

 

Has anyone encountered this before? I have to assume it is something in the loading the config file (or maybe the config file itself)  but I don't really have any way to see what it might be.

 

Bill

 

Bill
-------------------------------------------
Check out my book on BlackBerry Development for Java.
And my other really really old book
My Apps: FlashKids
Please use plain text.
Developer
billfoust
Posts: 381
Registered: 05-19-2008
My Carrier: AT&T

Re: can't find entry point on app using analytics

I'm gonna put on my whining hat here for a moment. I can't believe that the analytics service is even available for public consumption.  I've spent WAYtoo long just trying to use it and the errors that I get are so deep that I can't even start to figure out what the real problem is.

 

First, I get the 'Unable to find entry point' problem. The app works just fine until I add in the WebTrendsConfigurator code.

 

Now, I get this error:

Application Error - BlackBerry 9800 Simulator---------------------------------------------Error inside JVM:Access violation reading from 0xFFFFFFFC

 

WTF!?

 

I'm sure that I've done something wrong, but at this point I have no idea what. Regardless of what I have done wrong, I shouldn't be able to do ANYTHING that will mess things up this badly. I'm recommending this solution to my clients because one would assume its the best choice for the platform. 

 

Is there a COMPELTE example out there? I havent found one. All we get are code snippets in the JavaDoc?

 

I'm using the 5.0 SDK with a Torch simulator and the .92 Beta sdk of the analytics.

 

 

Bill
-------------------------------------------
Check out my book on BlackBerry Development for Java.
And my other really really old book
My Apps: FlashKids
Please use plain text.
Developer
dnepr
Posts: 723
Registered: 03-12-2009

Re: can't find entry point on app using analytics

The SDK Sample actually shows everything you need. Could you post your start-up snipped and where you put the init code? I've tested it on a Torch simulator and it works fine.
Please use plain text.
Developer
billfoust
Posts: 381
Registered: 05-19-2008
My Carrier: AT&T

Re: can't find entry point on app using analytics

I don't have the code in front of me at the moment, but I can tell you a couple things. I'm only using the Configurator code. None of the other code in the app is active, just the like to load the config.

 

I am executing the configurator command in the main() method.

 

I have the "packagename" set to the full classname of my app.

 

I renamed the config.xml to an app specific name and reference it in the configurator method call.

 

The xml file is located in the src folder with my main app .JAVA file.

 

I think the configurator method call may be correct. When I run the app, I have a breakpoint set on the load method, but it never gets hit. The whole simulator crashes (or I get the missing entry point error) before that can even happen. HOWEVER, when I take the method call out (and leave the library included in the project) everything runs fine.

 

So since it works fine with the library included (but not referenced) I don't think I have done anything wrong there. But, adding any code in which references the library causes the missing entry point error or JVM simulator crash. 

 

LOL! I just found that the "resource list" on this page (http://docs.blackberry.com/en/developers/deliverables/25458/Related_resources_fto_1481181_11.jsp) is mislinked to the advertising docs and not the analytics docs.

Bill
-------------------------------------------
Check out my book on BlackBerry Development for Java.
And my other really really old book
My Apps: FlashKids
Please use plain text.
Developer
dnepr
Posts: 723
Registered: 03-12-2009

Re: can't find entry point on app using analytics

Are you "including" the library or "importing" it?

AFAIK the library has to be packaged within the app work.
Please use plain text.
Developer
billfoust
Posts: 381
Registered: 05-19-2008
My Carrier: AT&T

Re: can't find entry point on app using analytics

I added the library in as an external JAR file in the project. 

 

bill

 

Bill
-------------------------------------------
Check out my book on BlackBerry Development for Java.
And my other really really old book
My Apps: FlashKids
Please use plain text.
Developer
dnepr
Posts: 723
Registered: 03-12-2009

Re: can't find entry point on app using analytics

Are you able to get the RIM Sample to work?
Please use plain text.
BlackBerry Development Advisor
twindsor
Posts: 269
Registered: 07-15-2008
My Carrier: Bell

Re: can't find entry point on app using analytics

I've sent a note to the docs team regarding those incorrect links.

 

If you've added the library to the project, you must make sure you are exporting it as well. If you don't export it and make a call to the API you're going to get these kinds of errors. It's got nothing to do with the Analytics SDK itself, but with the missing code that the JVM is trying to link to.

Tim Windsor
Application Development Consultant
Please use plain text.
Developer
billfoust
Posts: 381
Registered: 05-19-2008
My Carrier: AT&T

Re: can't find entry point on app using analytics

I was missing the Export checkbox. It still caused off errors on one computer, but when I moved the project over to another it worked just fine.  I must have missed that particular line in the instructions. I don't know if there will ever be a time when you DONT want to export the lib, so I'm thinking that export should probably checked by default. It sure lead to a very confusing and frustrating experience for me.

 

Thank you both.Now I just have to see what the reporting is like on the data... :smileyhappy:

Bill
-------------------------------------------
Check out my book on BlackBerry Development for Java.
And my other really really old book
My Apps: FlashKids
Please use plain text.