cancel
Showing results for 
Search instead for 
Did you mean: 

Web DYnpro java.lang.Classformatter....extra bytes at the end of class file

Former Member
0 Kudos

Hi all,

When I created my view in Web Dynpro (WD) something strange happens. WD automatically adds code of lines to the end of my java files. This code must NOT be put there......it copies some of my java code to the end of the java file.

Some of you gurus know why WD does this? This problem is very annoying, because I get the following error:

java.lang.ClassFormatError: com/nl4b/hours/HoursAppView (Extra bytes at the end of the class file)

at java.lang.ClassLoader.defineClass0(Native Method)

at java.lang.ClassLoader.defineClass(ClassLoader.java:539)

at com.sap.engine.services.deploy.server.ApplicationLoader.defineClassWithInterception(ApplicationLoader.java:168)

at com.sap.engine.services.deploy.server.ApplicationLoader.loadLocalClass(ApplicationLoader.java:140)

at com.sap.engine.frame.core.load.ResourceLoader.loadClass(ResourceLoader.java:143)

I Hope someone can help me.

Kind regards,

Sandhya Banwarie

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Be sure that all of your custom code is in between the @@begin/@@end tags.

Otherwise I've not seen this behavior by WD.

Cindy