Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » DSDP - Mobile Tools for Java (MTJ) » Build state machine has not been initialized
Build state machine has not been initialized [message #32286] Mon, 13 July 2009 22:26 Go to next message
Victor Llorens is currently offline Victor LlorensFriend
Messages: 60
Registered: July 2009
Member
Hi all,

I'm in a project with AspectJ (AJDT 2.0) + MTJ 1.0 (Pulsar), trying to do
some stuff with J2ME.

The configuration of the Eclipse's is the following:
Aspectj project enabled.
Put Aspects in classpath when being asked.
Preverification active, packaging unactive.

There are no errors in java code. And with this conf, the virtual machine
can't locate aspects classes when try tu run/debug my app in the emulator.

In mtj 0.9 I had to put aspectjrt library in the aspect inpath. But if I
do so with mtj 1.0 I got the error "build state machine has not been
initialized".

I have rolled back to mtj 0.9.1 :( .

Somebody knows about this error? How to solve it? I'm wrong with the
configuration?

Thanks in advance,
Victor Llorens
Re: Build state machine has not been initialized [message #32321 is a reply to message #32286] Tue, 14 July 2009 00:06 Go to previous messageGo to next message
David Marques is currently offline David MarquesFriend
Messages: 80
Registered: July 2009
Member
Hi Victor,

Please make sure you are adding the aspectJ library correctly to your
project. Please take some time to read the following page
( http://help.eclipse.org/galileo/index.jsp?topic=/org.eclipse .mtj.doc.user/html/gettingstarted/gettingstarted.html).
Hope it helps you solve your issue.

Regards,

David Marques

Victor Llorens wrote:

> Hi all,

> I'm in a project with AspectJ (AJDT 2.0) + MTJ 1.0 (Pulsar), trying to do
> some stuff with J2ME.

> The configuration of the Eclipse's is the following:
> Aspectj project enabled.
> Put Aspects in classpath when being asked.
> Preverification active, packaging unactive.

> There are no errors in java code. And with this conf, the virtual machine
> can't locate aspects classes when try tu run/debug my app in the emulator.

> In mtj 0.9 I had to put aspectjrt library in the aspect inpath. But if I
> do so with mtj 1.0 I got the error "build state machine has not been
> initialized".

> I have rolled back to mtj 0.9.1 :( .

> Somebody knows about this error? How to solve it? I'm wrong with the
> configuration?

> Thanks in advance,
> Victor Llorens
Re: Build state machine has not been initialized [message #32357 is a reply to message #32321] Tue, 14 July 2009 15:36 Go to previous messageGo to next message
Victor Llorens is currently offline Victor LlorensFriend
Messages: 60
Registered: July 2009
Member
Yep, this tutorial is a great one. But it's just to create and configure
the MIDLET environment.

If I remove aspectj functionality the project runs well on emulator, even
in the phone. But without aspects.

I've seen another person talking about this 'spamming' message of the
builder.
It's just like MTJ 1.0 is not friendly with ajdt.

By the way, in the builders preference page, I can see how the number of
"package builder"(s) checkboxs is increasing as I make changes in the
configuration.

Seems that this builder is not ok. I really need a response to the main
problem, meanwhile I will continue investigating.

Thanks a lot,
Victor Llorens
Re: Build state machine has not been initialized [message #32392 is a reply to message #32357] Tue, 14 July 2009 16:48 Go to previous messageGo to next message
David Marques is currently offline David MarquesFriend
Messages: 80
Registered: July 2009
Member
Hello Again Victor,

I am getting little lost here! Your main problem is that you are trying
to add aspectJ to your Java ME application right ??

If so then i suppose you are adding the libraries to the application build
path and exporting the library in order to add the library class files
into the mobile application package right !?

Are you saying you are having problems while packaging the application !?

What do you mean with the paragraph bellow ??

> By the way, in the builders preference page, I can see how the number of
> "package builder"(s) checkboxs is increasing as I make changes in the
> configuration.
Re: Build state machine has not been initialized [message #32424 is a reply to message #32392] Wed, 15 July 2009 07:16 Go to previous messageGo to next message
Victor Llorens is currently offline Victor LlorensFriend
Messages: 60
Registered: July 2009
Member
Thanks for your answres David,

Your are right, amb doing those steps. Even more, if I remove AspectJ from
the classpath project does not compile.

Dunno if it is fault of the preferifyer step or the package builder one.
Maybe this is the main problem.
Do you know if MTJ fills an error log?

> What do you mean with the paragraph bellow ??

>> By the way, in the builders preference page, I can see how the number of
>> "package builder"(s) checkboxs is increasing as I make changes in the
>> configuration.

It's something derived after I got the errors. It's like every time I
reproduce the error, a new package builder appears in the list. And I
think it's not normal behaviour.

Thanks,
Víctor LLorens
Re: Build state machine has not been initialized [message #32529 is a reply to message #32424] Wed, 15 July 2009 12:15 Go to previous messageGo to next message
David Marques is currently offline David MarquesFriend
Messages: 80
Registered: July 2009
Member
Hi Victor,

Could you please open a bug an describe the steps to reproduce the
problem. It would be nice if you could attach a project so we can
reproduce the error.

Regards,

David Marques
Re: Build state machine has not been initialized [message #33427 is a reply to message #32424] Sun, 26 July 2009 02:42 Go to previous message
Diego Tognola is currently offline Diego TognolaFriend
Messages: 14
Registered: July 2009
Junior Member
Just out of interest - how are you using AspectJ in a JME world ?

You may want to look into AspectME as well, pretty cool stuff that
allows you to weave JME apps.

Cheers,
Diego

Victor Llorens wrote:
> Thanks for your answres David,
>
> Your are right, amb doing those steps. Even more, if I remove AspectJ
> from the classpath project does not compile.
>
> Dunno if it is fault of the preferifyer step or the package builder one.
> Maybe this is the main problem.
> Do you know if MTJ fills an error log?
>
>> What do you mean with the paragraph bellow ??
>
>>> By the way, in the builders preference page, I can see how the number
>>> of "package builder"(s) checkboxs is increasing as I make changes in
>>> the configuration.
>
> It's something derived after I got the errors. It's like every time I
> reproduce the error, a new package builder appears in the list. And I
> think it's not normal behaviour.
>
> Thanks,
> Víctor LLorens
>
>
>
Re: Build state machine has not been initialized [message #574807 is a reply to message #32286] Tue, 14 July 2009 00:06 Go to previous message
David Marques is currently offline David MarquesFriend
Messages: 80
Registered: July 2009
Member
Hi Victor,

Please make sure you are adding the aspectJ library correctly to your
project. Please take some time to read the following page
( http://help.eclipse.org/galileo/index.jsp?topic=/org.eclipse .mtj.doc.user/html/gettingstarted/gettingstarted.html).
Hope it helps you solve your issue.

Regards,

David Marques

Victor Llorens wrote:

> Hi all,

> I'm in a project with AspectJ (AJDT 2.0) + MTJ 1.0 (Pulsar), trying to do
> some stuff with J2ME.

> The configuration of the Eclipse's is the following:
> Aspectj project enabled.
> Put Aspects in classpath when being asked.
> Preverification active, packaging unactive.

> There are no errors in java code. And with this conf, the virtual machine
> can't locate aspects classes when try tu run/debug my app in the emulator.

> In mtj 0.9 I had to put aspectjrt library in the aspect inpath. But if I
> do so with mtj 1.0 I got the error "build state machine has not been
> initialized".

> I have rolled back to mtj 0.9.1 :( .

> Somebody knows about this error? How to solve it? I'm wrong with the
> configuration?

> Thanks in advance,
> Victor Llorens
Re: Build state machine has not been initialized [message #574827 is a reply to message #32321] Tue, 14 July 2009 15:36 Go to previous message
Victor Llorens is currently offline Victor LlorensFriend
Messages: 60
Registered: July 2009
Member
Yep, this tutorial is a great one. But it's just to create and configure
the MIDLET environment.

If I remove aspectj functionality the project runs well on emulator, even
in the phone. But without aspects.

I've seen another person talking about this 'spamming' message of the
builder.
It's just like MTJ 1.0 is not friendly with ajdt.

By the way, in the builders preference page, I can see how the number of
"package builder"(s) checkboxs is increasing as I make changes in the
configuration.

Seems that this builder is not ok. I really need a response to the main
problem, meanwhile I will continue investigating.

Thanks a lot,
Victor Llorens
Re: Build state machine has not been initialized [message #574844 is a reply to message #32357] Tue, 14 July 2009 16:48 Go to previous message
David Marques is currently offline David MarquesFriend
Messages: 80
Registered: July 2009
Member
Hello Again Victor,

I am getting little lost here! Your main problem is that you are trying
to add aspectJ to your Java ME application right ??

If so then i suppose you are adding the libraries to the application build
path and exporting the library in order to add the library class files
into the mobile application package right !?

Are you saying you are having problems while packaging the application !?

What do you mean with the paragraph bellow ??

> By the way, in the builders preference page, I can see how the number of
> "package builder"(s) checkboxs is increasing as I make changes in the
> configuration.
Re: Build state machine has not been initialized [message #574858 is a reply to message #32392] Wed, 15 July 2009 07:16 Go to previous message
Victor Llorens is currently offline Victor LlorensFriend
Messages: 60
Registered: July 2009
Member
Thanks for your answres David,

Your are right, amb doing those steps. Even more, if I remove AspectJ from
the classpath project does not compile.

Dunno if it is fault of the preferifyer step or the package builder one.
Maybe this is the main problem.
Do you know if MTJ fills an error log?

> What do you mean with the paragraph bellow ??

>> By the way, in the builders preference page, I can see how the number of
>> "package builder"(s) checkboxs is increasing as I make changes in the
>> configuration.

It's something derived after I got the errors. It's like every time I
reproduce the error, a new package builder appears in the list. And I
think it's not normal behaviour.

Thanks,
Víctor LLorens
Re: Build state machine has not been initialized [message #574962 is a reply to message #32424] Wed, 15 July 2009 12:15 Go to previous message
David Marques is currently offline David MarquesFriend
Messages: 80
Registered: July 2009
Member
Hi Victor,

Could you please open a bug an describe the steps to reproduce the
problem. It would be nice if you could attach a project so we can
reproduce the error.

Regards,

David Marques
Re: Build state machine has not been initialized [message #575424 is a reply to message #32424] Sun, 26 July 2009 02:42 Go to previous message
Diego Tognola is currently offline Diego TognolaFriend
Messages: 14
Registered: July 2009
Junior Member
Just out of interest - how are you using AspectJ in a JME world ?

You may want to look into AspectME as well, pretty cool stuff that
allows you to weave JME apps.

Cheers,
Diego

Victor Llorens wrote:
> Thanks for your answres David,
>
> Your are right, amb doing those steps. Even more, if I remove AspectJ
> from the classpath project does not compile.
>
> Dunno if it is fault of the preferifyer step or the package builder one.
> Maybe this is the main problem.
> Do you know if MTJ fills an error log?
>
>> What do you mean with the paragraph bellow ??
>
>>> By the way, in the builders preference page, I can see how the number
>>> of "package builder"(s) checkboxs is increasing as I make changes in
>>> the configuration.
>
> It's something derived after I got the errors. It's like every time I
> reproduce the error, a new package builder appears in the list. And I
> think it's not normal behaviour.
>
> Thanks,
> Víctor LLorens
>
>
>
Previous Topic:How to use preprocessor?
Next Topic:Wrong encoding of messages_xx-XX.properties
Goto Forum:
  


Current Time: Thu Nov 27 10:05:20 GMT 2014

Powered by FUDForum. Page generated in 0.02413 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software