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
Contributor
Posts: 13
Registered: ‎03-04-2010
My Device: 9700
My Carrier: XL Axiata

Re: Vector causing NoClassDefFound Exception [HELPP URGENT]

Hi Pankajace12..

I already have my method to transform the string into a Vector..

Now i need to know why the exception are happened..

Many Thanks anyway.. =)
Contributor
Posts: 13
Registered: ‎03-04-2010
My Device: 9700
My Carrier: XL Axiata

Re: Vector causing NoClassDefFound Exception [HELPP URGENT]

Dear Peter,

 

The processing order is goes like this :

a) ActivBerry UIApplication Construct all the screen 

b) ActivBerry push the welcome screen 

c) before the homeScreen called, i call beforeshown() method to download all the data and put it in the ui

 

i also have moved the download process into it's own thread and the class still catch the NoClassDefFound exception

 

Man Sad

Contributor
Posts: 13
Registered: ‎03-04-2010
My Device: 9700
My Carrier: XL Axiata

Re: Vector causing NoClassDefFound Exception [HELPP URGENT]

And FYI, I also already succeed to display the UI of HomeScreen without using connection to database.

so i think the problem is in the connection method..

Man Sad

Developer
Posts: 729
Registered: ‎05-04-2011
My Device: 9700

Re: Vector causing NoClassDefFound Exception [HELPP URGENT]

Hi,

 

In the section:

			if(deeperList!=null){
//ITS IN HERE			Dialog.alert("Connected ! " + deeperList.elemetAt(1).toString());
			}

you should also check the size of deeperList as it is possible that no objects were added.

 

E.

 

Contributor
Posts: 13
Registered: ‎03-04-2010
My Device: 9700
My Carrier: XL Axiata

Re: Vector causing NoClassDefFound Exception [HELPP URGENT]

When i call the deeperList().size() my eclipse debugger catch an exception.

so basically, when i try to access any deeperList accessor, the eclipse catch an NoClassDefFound Exception
Developer
Posts: 729
Registered: ‎05-04-2011
My Device: 9700

Re: Vector causing NoClassDefFound Exception [HELPP URGENT]

You can try the following:

 

1. Make sure that your build path does not contain any external jar and all your classes are generated in the same place.

 

2. Make sure that you build for OS 5.0.

 

3. Comment out all the try/catch block in the beforeShown function and add couple of hard coded strings to deeperList.

This will narrow down the problematic area.

 

4. Try and add a call to list.size() (after the catch block) and see if you get an error for this as well. It might be a more general problem rather then the deeperList member.

 

Hope that helps,

 

E.

Contributor
Posts: 13
Registered: ‎03-04-2010
My Device: 9700
My Carrier: XL Axiata

Re: Vector causing NoClassDefFound Exception [HELPP URGENT]

Here i do what u said..

 

Click To Enlarge

 

i still get the NoClassDefFoundException when running the application..

Highlighted
Contributor
Posts: 13
Registered: ‎03-04-2010
My Device: 9700
My Carrier: XL Axiata

Re: Vector causing NoClassDefFound Exception [HELPP URGENT]

Okay guys,

here's the problem..

 

when i try to

 

system.out.println("Some String indicator : " + vector.elementAt(int index));

 

or

 

Dialog.inform("Some String indicator : " + vector.elementAt(int index));

 

to check the data correct or not, i wasn't able to do it and it throw NoClassDefFoundException.

 

but when i do it without the string indicator, the data is printed and no exception were catch.

 

**bleep** i feel stupid..  

 

 

So thank you for your help guys..