cancel
Showing results for 
Search instead for 
Did you mean: 

WebDynpro JAVA Build Error after migration

Former Member
0 Kudos

Hi Experts,

I have migratated one WDJ DC created in 7.0 to 7.31 using standard Migration wizard provided by NWDS.After that I am getting build error for that DC.

     [wdgen] [Error]   Generation error while processing E:/NWDS7.31/nwds-extsoa-7.3-EHP1-SP08-PAT0011-win32/eclipse/workspace.jdi/0/t/60508CC6EC4A50F3CD365D14A4890A98/gen_wdp/packages/com/pg/dc_xxx/components/xxxcomp/wdp/IPublicXxxComp.java (java.lang.reflect.InvocationTargetException)

     [wdgen] [Info]    Component //WebDynpro/Component:com.pg.dc_xxx.components.xxxcomp.XxxComp could not be generated

     [wdgen] [Error]   Generation failed due to errors (26 seconds)

We checked in Component Controller.there all the standard wdGetContext(),wdGetAPI() etc..are showing as can't resolve.

public XxxComp(IPrivateXxxComp wdThis)

  {

   this.wdThis = wdThis;

   this.wdContext = wdThis.wdGetContext();

   this.wdControllerAPI = wdThis.wdGetAPI();

   this.wdComponentAPI = wdThis.wdGetAPI().getComponent();

  }


Can you please help us to solve the issue.

We are using NWDS is EHP1 SP08 PAT0011 and JDK 1.6_0_30.

Dependency:


Thanks,

Patralekha Sur

Accepted Solutions (1)

Accepted Solutions (1)

former_member191643
Active Contributor
0 Kudos

I had faced a similar issue a while back when i was migrating from 7.2 to 7.31.

But the error highlighting the 'GetContext' and similar methods is a bit weird.

Try this:

1.Remove all dependencies in 7.0

2.Migrate supporting DC first to 7.31

3.Then migrate the dependent DC

4.Then add the required dependencies in 7.31.

Not sure of this but any help is good at the moment.

Also check if the JVM version of both tracks, 7.0 and 7.31 is the same.

Also, please post the full error stack trace from the server logs so that detailed examination can be done.

Hope this helps.

Let us know.

Former Member
0 Kudos

Hi

The above mentioned issue is solved now. Issue was due to missing data types of attributes which were derived from the dependent DCs.

Utility dcs on which my DC was dependent had attributes with data type as " Simple Type" which was working fine in NWDS 7.0 but when it was migrated to 7.3 it started giving issue as simple types of utility dcs were not exposed in public parts.

After adding the simple types of utility dc in its public part and building it. Then in my dc after re-adding dependency it started working.

Thanks

Akanksha

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi

I'm also getting the same error, and in build log getting error message as

[wdgen] [Error]   Generation error while processing E:/eclipse/workspace1.jdi/0/t/212E57C7B46D21B8AD926F8F57AA15DB/gen_wdp/packages/com/pg/dc_XXX/components/pXXXreportcomp/wdp/IPublicXXXReportComp.java (java.lang.reflect.InvocationTargetException)

     [wdgen] [Info]    Component //WebDynpro/Component:com.pg.dc_XXX.components.XXXreportcomp.XXXReportComp could not be generated

     [wdgen] [Error]   Generation failed due to errors (3 seconds)

I'm using NWDS is EHP1 SP08 PAT0011 and JDK 1.6_0_23.

Can anybody help

Thanks
Akanksha

Former Member
0 Kudos

Hi Experts,

Any suggestion?

I have tried all these steps individually to solve the issue, but still the error is there.:

1) Close Project->Open Project->Sync->Rebuild- >Build

2) Change default language of NWDS ( Check the original locale in .dcdef file)

3) Migrate individual components

4) Compare the DCs in both the tracks( 7.0 & 7.31) & added required dependencies.

5) Imported the DC in another machine & found the same error.

6) Remove deprecated dependency & added the required one.


Please help.


Thanks,

Patralekha