cancel
Showing results for 
Search instead for 
Did you mean: 

Build error migrating project from 7.0 to 7.3 NWDS

Former Member
0 Kudos

Hello,

I am migrating projects from 7.0 to 7.3, thus I am:

- exporting a project from NWDS 7.0

- importing it  NWDS 7.3

- creating a DC of type external library for the libraries required by the project

- add dependecy in the project

I migrated several projects but I am stuck on one because of build error.

Here below some lines from the build error log.

Does anyone know what is the cause  ?

Thank you,

Luigi

      [echo]       D:\SAP73\Workspace.jdi\LocalDevelopment\ENGFACADE\sap.com\tc\bl\logging\api\_comp\gen\default\public\api\lib\java\tc~bl~logging~api~defaultttt.jar

      [echo]       D:\SAP73\Workspace.jdi\LocalDevelopment\ENGFACADE\sap.com\tc\bl\exception\lib\_comp\gen\default\public\api\lib\java\core.exception.lib.api.jar

      [echo]    output dir: D:\SAP73\Workspace.jdi\LocalDevelopment\t\45FD579759DDD3460AB696D8E92F4C6F\classes

     [javac] Compiling 37 source files to D:\SAP73\Workspace.jdi\LocalDevelopment\t\45FD579759DDD3460AB696D8E92F4C6F\classes

     [javac] ERROR: D:\SAP73\Workspace.jdi\LocalDevelopment\t\45FD579759DDD3460AB696D8E92F4C6F\gen_wdp\packages\constep\application\createnews\wdp\IPublicCreateNews.java:86: cannot find symbol

     [javac] ERROR: symbol  : method createAndAddElement()

     [javac] ERROR: location: class constep.application.createnews.wdp.IPublicCreateNews.IContextNode

     [javac] ERROR:       return (IPrivateCreateNews.IContextElement)createAndAddElement();

     [javac] ERROR:                                                  ^

     [javac] ERROR: D:\SAP73\Workspace.jdi\LocalDevelopment\t\45FD579759DDD3460AB696D8E92F4C6F\gen_wdp\packages\constep\application\createnews\wdp\IPublicCreateNews.java:115: cannot find symbol

     [javac] ERROR: symbol  : method getChildNode(com.sap.tc.webdynpro.progmodel.gci.IGCINodeInfo)

     [javac] ERROR: location: class constep.application.createnews.wdp.IPublicCreateNews.IContextNode

     [javac] ERROR:       return (IPrivateCreateNews.INEWSSTRNode) getChildNode(gen_delegate.infoNEWSSTR);

Accepted Solutions (0)

Answers (3)

Answers (3)

Former Member
0 Kudos

Hello Luigi,

you have:

return (IPrivateCreateNews.IContextElement)createAndAddElement();

so first you can try with:

return (IPrivateCreateNews)IContextElement.createAndAddElement();

second: check if you have createAndAddElement() method declared and if not create it.

Your code right now is trying to call createAndAddElement from the controller which is not defined. If you want it to work create it or change the code to call createAndAddElement method from a context node.

venkatakalyan_karanam
Active Contributor
0 Kudos

Hi

After creating the project WD in 7.3. environment.

Pls do Project---> Repair-->Internal webdynpro API

I hope this resolves the issue

Regards

KALYAN

Former Member
0 Kudos

Unfortunately not...

I got the same error.

Thank you, anyway,

Luigi

Former Member
0 Kudos

Hi Luigi,

have you tried to migrate the project again?

You can make rebuild in WD DC without any errors?

What are your required DC (Dependencies) in your WD DC, and your jar in public partsDC for EXTLIB DC?

Regards.

Former Member
0 Kudos

Hi Jim,

yes, I tried to rebuilld as well as to migrate the project again without success:

I got the same errors in the build error log (see above).

Here attached a screenshot of dependencies defined.

Thank you,

Luigi

Former Member
0 Kudos

Can you follow or contact with me?

Former Member
0 Kudos

Dear Luigi,

Have you resolved this issue? If not i can help you out.

I have experience in migration form 7.0 - 7.3.

Regards.

Former Member
0 Kudos

Hello Gobinath, Teodor, and thank you for your answers.

About the reply from Teodor, I found the indicated row in the “IPublicCreateNews.java” but the change suggested generate the error

  “type mismatch” as shown in the first screenshot.

Consider that this .java script, has got no error in my version.

Now, please, get a look at the second screenshot where my situation in NWDS 7.3 is summarized.

I have NOT an error in the WD perspective, that is I have NOT an error in the code !

The error in the build.log I posted at the beginning, it is at compilation/build time.

Infact, the errors are showed in the Navigator perspective under the path “..\gen_wdp\packages\....”

Thus, I think there is an issue related to some class/library not imported/linked and that makes the compiler not able to resolve all the code.

In this case, how can I identify the class/library, ecc... missed/requested  in the package ?

Thank you,

Luigi

Former Member
0 Kudos

You have type mismatch in your code. Please attach screenshots with source code to answer on your question.

Former Member
0 Kudos

Hi Roman,

the code has not a "Type mismatch" error in my version.

The "type mismatch" in my previous answer appears after I tried to apply the change proposed by Teodor in the “IPublicCreateNews.java”

As in my answer to Gobinath, this java script is generated by the compiler thus the problem could be a lack of library/class.

Regards,

Luigi

Former Member
0 Kudos

Hi Luigi.

Could you solve this issue?

Regards.

Former Member
0 Kudos

No Jim,

I have not got any solution.

Regards,

Luigi

Former Member
0 Kudos

Ok Luigi, thanks for your answer!

Regards.