cancel
Showing results for 
Search instead for 
Did you mean: 

Build error while calling parameterized model constructor

Amey-Mogare
Contributor
0 Kudos

Hello All,


System versions: -

  1. Portal version : 7.4 SP9
  2. NWDS version : SAP Enhancement Package 1 for SAP NetWeaver Developer Studio 7.3 SP16 PAT0001


Issue: -


We have a requirement to connect to multiple backends using ARFC2 model in a Web Dynpro Java DC.

To achieve this, we referred to SAPnote# 1920259 - ARFC2: Connecting to multiple backends.

As mentioned in SAP note, we have added SC ‘NWCEIDE 7.31’ as dependency to our custom SC ‘SC_NP_BMDE_COMPANY_OVERVIEW’

Inside Web Dynpro DC, we are getting below error while ‘build’: -

     [javac] ERROR: C:\APPS\NWDS_7.4\eclipse\workspace.jdi\0\t\6A601B8FA5817E2E35F0563525D22185\gen_wdp\packages\de\mgi\np\bmde\model\comp\CIMModelComp.java:191: cannot find symbol

     [javac] ERROR: symbol  : constructor CIMDataModel(java.lang.String,java.lang.String)

     [javac] ERROR: location: class de.mgi.portaldev.bmde.model.CIMDataModel

     [javac] ERROR:  model = new CIMDataModel(backendSystemId, backendSystemClient);

     [javac] ERROR:          ^


Error in log says that it is not able to locate model constructor with parameters (system id and client), which in fact is already present within DC.


Hence, we aren’t able to build the DC.

Any ideas?

Thanks & Regards,

Amey

Accepted Solutions (0)

Answers (2)

Answers (2)

junwu
Active Contributor
0 Kudos

which note said you have to add that dependency?

Amey-Mogare
Contributor
0 Kudos

Hello Jun,

Thanks for reply.

I 'assumed' that note# 1920259 saying to add NWCEIDE dependency to my DC.

My assumption might be incorrect.

Please suggest why I am getting this build error.

Thanks & Regards,

Amey

vijay_kumar49
Active Contributor
0 Kudos

did you tried above steps?

Amey-Mogare
Contributor
0 Kudos

Hello Vijay,

I tried all above steps but still same error while build.

1. SLD is OK

2. No warning message. Just this error message after DC Right click > Development Component > Build

3. No improvement after repair project structure & classpath

4. Reload & Rebuilt project

5. Component properties > DC build state says : Last Build failed

Thanks & Regards,

Amey

Amey-Mogare
Contributor
0 Kudos

Hello Jun,

Could you please share comments on below? 😞

I tried all above steps but still same error while build.

1. SLD is OK

2. No warning message. Just this error message after DC Right click > Development Component > Build

3. No improvement after repair project structure & classpath

4. Reload & Rebuilt project

5. Component properties > DC build state says : Last Build failed

vijay_kumar49
Active Contributor
0 Kudos

Do I need to import CIM Model Data?


Please refer this document. it may help you document 1  and document 2


Kindly let me know if you need any more information from my end


Amey-Mogare
Contributor
0 Kudos

Hello Vijay,

Thanks for reply.

Yes, the CIMModel class is already present within same DC and also added as import in component controller where this constructor call is written.

And strange thing is, no error is shown at compile time, means, the entire DC shows 'clean', no import or compilation error is seen.

But when I 'build' the DC, it shows above error in build log.

Thanks & Regards,

Amey

vijay_kumar49
Active Contributor
0 Kudos

is it repairable? it yes, please check


Did you check SLD is working fine ?


  • Check the error and warning messages.Check if any errors or warnings are repairable by Quick Fix option(Right click on error->Quick Fix->Apply quick fix)
  • Repair project with Project structure & class path
  • Reload project and rebuild. Development component -> Build
  • Check component properties->Dirty DC build status->OK
  • Re start the NWDS