cancel
Showing results for 
Search instead for 
Did you mean: 

constructor undefined , while initiating model node in component controller

Former Member
0 Kudos

Hi Team,

I am getting constructor undefined error, when i am trying create an object of model node in component contrloller.

i tried the solution provided in this but it is working.

can any one suggest me?

Regards

Bala

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

Were you able to resolve this issue?

If yes, then can you plz tell me how? I am facing the same issue.

Regards.

Rajat

Former Member
0 Kudos

It Is Not working

Former Member
0 Kudos

Hi Balakrishna,

Try doing this:

Right click on the project and select repair Project Structure and class path.

Still not resolved then close your project in NWDS, again open the project and select Reload+Rebuild.

Hope you might find luck.

Warm Regards,

Murtuza

Former Member
0 Kudos

Hi,

Thanks for the reply.

I tried it already,

Its not working.

Regards,

Bala

Former Member
0 Kudos

Hi Balakrishna,

Try re-mporting the model.

Regards,

Murtuza

Former Member
0 Kudos

I tried it, But no solution.

Still i am getting the same problem.

can any one help me out ?

regards

bala

Former Member
0 Kudos

Hi,

Can you post the code

where you are creating instance of the model object..

Regards

Akshaya

former_member751941
Active Contributor
0 Kudos

Hi Balakrishna,

After Re-importing the model do the mapping between

<b>Used Models </b> and <b> Component Controller </b>.

Then Re-Build.

If not work remove <b>.metadata</b> and then import the project.

Regards,

Mithu

Former Member
0 Kudos

Hi Akshaya,

here is my code.

i am just intatiating the model node in component contrlloer.

the below method id in component controller.

public void wdDoInit()

{

//@@begin wdDoInit()

try {

AnyType_Item atm = new <b>AnyType_Item()</b>

wdContext.nodeAnyType_Item().bind(atm);

}

catch (RuntimeException e) {

// TODO Auto-generated catch block

e.printStackTrace();

wdComponentAPI.getMessageManager().reportWarning(e.getMessage());

}

The above bold one is error, saying constructor is undefined.

regards

Bala

Former Member
0 Kudos

Hi,

how to Re-Import the Model?

I have deleted the existing model and created again, still the same problem.

<b>.metadata</b> file is not there in project file, but <b>.metamodel</b> is there.

i have deleted the .metamodel and followed your suggestion, still it has same problem.

Can you please suggest me?

Regards

Bala

former_member751941
Active Contributor
0 Kudos

Hi Balakrishna,

Check this threads.

Regards,

Mithu