cancel
Showing results for 
Search instead for 
Did you mean: 

7.4 Migration - Build error: cannot find symbol

Former Member
0 Kudos

Hi,

We are upgrading our portal from 7.0 to 7.4. In this process i am migrating custom Web Dynpro Java DCs to 7.4. While i successfully migrated some of the applications, i am stuck with couple of DCs resulting with build time errors. I see no errors in the design time but when i try to build DC it fails.

Please refer the build log below:

Package com.sap.tc.webdynpro.progmodel.context.ContextException in the build log, is already added in the dependency.

[javac] Compiling 104 source files to D:\7.4 MigrationWorkspace.jdi\0\t\AC08E6F47C847549A6E5F8E294606323\classes

[javac] ERROR: D:\7.4 MigrationWorkspace.jdi\0\t\AC08E6F47C847549A6E5F8E294606323\gen_wdp\packages\com\ab\itr\mm\rolemnt\wdp\IPrivateAddDeleteRecordView.java:554: cannot find symbol

     [javac] ERROR: symbol  : variable NO_FACTORY_NODE

     [javac] ERROR: location: class com.sap.tc.webdynpro.progmodel.context.ContextException

     [javac] ERROR:         throw new ContextException(ContextException.NO_FACTORY_NODE, this, "T_Email_Help_Out");

     [javac] ERROR:                                                    ^

     [javac] ERROR: D:\7.4 MigrationWorkspace.jdi\0\t\AC08E6F47C847549A6E5F8E294606323\gen_wdp\packages\com\ab\itr\mm\rolemnt\wdp\IPrivateAddDeleteRecordView.java:565: cannot find symbol

     [javac] ERROR: symbol  : variable NO_FACTORY_NODE

     [javac] ERROR: location: class com.sap.tc.webdynpro.progmodel.context.ContextException

     [javac] ERROR:         throw new ContextException(ContextException.NO_FACTORY_NODE, this, "T_Email_Help_Out");

     [javac] ERROR:                                                    ^

     [javac] ERROR: D:\7.4 MigrationWorkspace.jdi\0\t\AC08E6F47C847549A6E5F8E294606323\gen_wdp\packages\com\ab\itr\mm\rolemnt\wdp\IPrivateAddDeleteRecordView.java:566: cannot find symbol

     [javac] ERROR: symbol  : method createAndAddElement()

     [javac] ERROR: location: class com.ab.itr.mm.rolemnt.wdp.IPrivateAddDeleteRecordView.IT_Email_Help_OutNode

     [javac] ERROR:       return (IPrivateAddDeleteRecordView.IT_Email_Help_OutElement) node.createAndAddElement();

     [javac] ERROR:

MigrationWorkspace.jdi\0\t\AC08E6F47C847549A6E5F8E294606323\gen_wdp\packages\com\ab\itr\mm\rolemnt\wdp\IPrivateAddDeleteRecordView.java:1102: cannot find symbol

     [javac] ERROR: symbol  : method gciSetBoolean(int,boolean)

     [javac] ERROR: location: class com.ab.itr.mm.rolemnt.wdp.IPrivateAddDeleteRecordView.IContextElement

     [javac] ERROR:       gciSetBoolean(1, value);

     [javac] ERROR:       ^

     [javac] ERROR: D:\7.4 MigrationWorkspace.jdi\0\t\AC08E6F47C847549A6E5F8E294606323\gen_wdp\packages\com\ab\itr\mm\rolemnt\wdp\IPrivateAddDeleteRecordView.java:1112: cannot find symbol

     [javac] ERROR: symbol  : method gciGetString(int)

     [javac] ERROR: location: class com.ab.itr.mm.rolemnt.wdp.IPrivateAddDeleteRecordView.IContextElement

     [javac] ERROR:       return gciGetString(2);

     [javac] ERROR:              ^

     [javac] ERROR: D:\7.4 MigrationWorkspace.jdi\0\t\AC08E6F47C847549A6E5F8E294606323\gen_wdp\packages\com\ab\itr\mm\rolemnt\wdp\IPrivateAddDeleteRecordView.java:1120: cannot find symbol

     [javac] ERROR: symbol  : method gciSetString(int,java.lang.String)

     [javac] ERROR: location: class com.ab.itr.mm.rolemnt.wdp.IPrivateAddDeleteRecordView.IContextElement

     [javac] ERROR:       gciSetString(2, value);

     [javac] ERROR:       ^

     [javac] ERROR: D:\7.4 MigrationWorkspace.jdi\0\t\AC08E6F47C847549A6E5F8E294606323\gen_wdp\packages\com\ab\itr\mm\rolemnt\wdp\IPrivateAddDeleteRecordView.java:1130: cannot find symbol

     [javac] ERROR: symbol  : method gciGetString(int)

     [javac] ERROR: location: class com.ab.itr.mm.rolemnt.wdp.IPrivateAddDeleteRecordView.IContextElement

     [javac] ERROR:       return gciGetString(3);

     [javac] ERROR:              ^

     [javac] ERROR: D:\7.4 MigrationWorkspace.jdi\0\t\AC08E6F47C847549A6E5F8E294606323\gen_wdp\packages\com\ab\itr\mm\rolemnt\wdp\IPrivateAddDeleteRecordView.java:1138: cannot find symbol

     [javac] ERROR: symbol  : method gciSetString(int,java.lang.String)

     [javac] ERROR: location: class com.ab.itr.mm.rolemnt.wdp.IPrivateAddDeleteRecordView.IContextElement

     [javac] ERROR:       gciSetString(3, value);

     [javac] ERROR:       ^

     [javac] ERROR: D:\7.4 MigrationWorkspace.jdi\0\t\AC08E6F47C847549A6E5F8E294606323\gen_wdp\packages\com\ab\itr\mm\rolemnt\wdp\IPrivateAddDeleteRecordView.java:1148: cannot find symbol

     [javac] ERROR: symbol  : method gciGetString(int)

     [javac] ERROR: location: class com.ab.itr.mm.rolemnt.wdp.IPrivateAddDeleteRecordView.IContextElement

     [javac] ERROR:       return gciGetString(4);

Really appreciate any help on this.

Thanks,

Saurabh

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

Please re import model and repair the dc.

Former Member
0 Kudos

Hi,

This seems issue with context and dependency. Please cross check, if the dependency for exception is valid.

Former Member
0 Kudos

Hi Ravi,

Thanks for responding.

The error occurs in auto generated view files created by the framework. I don't see any context mapping issues. No interface controller context is involved in this DC, it only has direct context mapping and model binding. Build time dependencies are also correctly assigned.

Thanks,

Saurabh